vasnprintf: Support I flag on glibc systems.
[gnulib.git] / ChangeLog
1 2010-11-07  Bruno Haible  <bruno@clisp.org>
2
3         vasnprintf: Support I flag on glibc systems.
4         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
5         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
6         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7         snprintf function.
8         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9         glibc systems.
10         * tests/test-vasnprintf-posix3.c: New file.
11         * modules/vasnprintf-posix-tests (Files): Add it.
12         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
13
14 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15
16         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17         * MODULES.html.sh: For compiler warnings, use name
18         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19
20 2010-11-05  Eric Blake  <eblake@redhat.com>
21
22         ceil, floor: avoid spurious failure with icc
23         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24         [denormals-as-zero] when optimizing without -mieee-fp option.
25         * tests/test-floorf2.c (floorf_reference): Likewise.
26         * tests/test-ceilf1.c (dummy): New function.
27         (main): Use it to outsmart icc's optimization.
28         * tests/test-floorf1.c (dummy, main): Likewise.
29
30         tests: require working signbit
31         * modules/ceilf-tests (Depends-on): Add signbit.
32         * modules/ceill-tests (Depends-on): Likewise.
33         * modules/floorf-tests (Depends-on): Likewise.
34         * modules/floorl-tests (Depends-on): Likewise.
35         * modules/round-tests (Depends-on): Likewise.
36         * modules/roundf-tests (Depends-on): Likewise.
37         * modules/roundl-tests (Depends-on): Likewise.
38         * modules/trunc-tests (Depends-on): Likewise.
39         * modules/truncf-tests (Depends-on): Likewise.
40         * modules/truncl-tests (Depends-on): Likewise.
41
42         strtod: work around icc bug
43         * lib/strtod.c (minus_zero): Define to working value.
44         (strtod): Use it to avoid icc bug.
45
46         copysign: enhance tests
47         * modules/copysign-tests (Files): Add minus-zero.h.
48         * tests/test-copysign.c (main): Also test zeros.
49
50 2010-11-04  Eric Blake  <eblake@redhat.com>
51
52         ceil, floor, round, trunc: enhance tests of -0
53         * tests/test-ceilf1.c (main): Ensure correct sign of result.
54         * tests/test-ceill.c (main): Likewise.
55         * tests/test-floorf1.c (main): Likewise.
56         * tests/test-floorl.c (main): Likewise.
57         * tests/test-round1.c (main): Likewise.
58         * tests/test-roundf1.c (main): Likewise.
59         * tests/test-roundl.c (main): Likewise.
60         * tests/test-trunc1.c (main): Likewise.
61         * tests/test-truncf1.c (main): Likewise.
62         * tests/test-truncl.c (main): Likewise.
63
64 2010-11-04  Eric Blake  <eblake@redhat.com>
65
66         frexp, tests: work around ICC bug with -zero
67         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
68         works with more compilers.
69         * tests/minus-zero.h: New file.
70         * modules/ceilf-tests (Files): Include it.
71         * modules/ceill-tests (Files): Likewise.
72         * modules/floorf-tests (Files): Likewise.
73         * modules/floorl-tests (Files): Likewise.
74         * modules/frexp-nolibm-tests (Files): Likewise.
75         * modules/frexp-tests (Files): Likewise.
76         * modules/frexpl-nolibm-tests (Files): Likewise.
77         * modules/frexpl-tests (Files): Likewise.
78         * modules/isnan-tests (Files): Likewise.
79         * modules/isnand-nolibm-tests (Files): Likewise.
80         * modules/isnand-tests (Files): Likewise.
81         * modules/isnanf-nolibm-tests (Files): Likewise.
82         * modules/isnanf-tests (Files): Likewise.
83         * modules/isnanl-nolibm-tests (Files): Likewise.
84         * modules/isnanl-tests (Files): Likewise.
85         * modules/round-tests (Files): Likewise.
86         * modules/roundf-tests (Files): Likewise.
87         * modules/roundl-tests (Files): Likewise.
88         * modules/ldexpl-tests (Files): Likewise.
89         * modules/signbit-tests (Files): Likewise.
90         * modules/snprintf-posix-tests (Files): Likewise.
91         * modules/sprintf-posix-tests (Files): Likewise.
92         * modules/strtod-tests (Files): Likewise.
93         * modules/trunc-tests (Files): Likewise.
94         * modules/truncf-tests (Files): Likewise.
95         * modules/truncl-tests (Files): Likewise.
96         * modules/vsnprintf-posix-tests (Files): Likewise.
97         * modules/vsprintf-posix-tests (Files): Likewise.
98         * modules/vasnprintf-posix-tests (Files): Likewise.
99         * modules/vasprintf-posix-tests (Files): Likewise.
100         * tests/test-ceilf1.c (main): Use it.
101         * tests/test-ceill.c (main): Likewise.
102         * tests/test-floorf1.c (main): Likewise.
103         * tests/test-floorl.c (main): Likewise.
104         * tests/test-frexp.c (main): Likewise.
105         * tests/test-frexpl.c (main): Likewise.
106         * tests/test-isnan.c (main): Likewise.
107         * tests/test-isnand.h (main): Likewise.
108         * tests/test-isnanf.h (main): Likewise.
109         * tests/test-isnanl.h (main): Likewise.
110         * tests/test-ldexpl.c (main): Likewise.
111         * tests/test-round.c (main): Likewise.
112         * tests/test-roundf.c (main): Likewise.
113         * tests/test-roundl.c (main): Likewise.
114         * tests/test-signbit.c (test_signbitf, test_signbitd)
115         (test_signbitl): Likewise.
116         * tests/test-snprintf-posix.h (test_function): Likewise.
117         * tests/test-sprintf-posix.h (test_function): Likewise.
118         * tests/test-strtod.c (main): Likewise.
119         * tests/test-trunc1.c (main): Likewise.
120         * tests/test-truncf1.c (main): Likewise.
121         * tests/test-truncl.c (main): Likewise.
122
123         isnanl: work around icc bug
124         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
125
126 2010-11-03  Eric Blake  <eblake@redhat.com>
127
128         tests: fix compiler warnings
129         * tests/test-getopt.h (test_getopt): Fix condition.
130         * tests/test-getopt_long.h (test_getopt_long): Likewise.
131         * tests/test-pipe2.c (main): Likewise.
132         * tests/test-quotearg-simple.c (main): Avoid icc warning.
133
134         utimens: fix broken m4 test
135         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
136
137 2010-10-28  Bruno Haible  <bruno@clisp.org>
138
139         posix_spawn*, getdtablesize: Relax license.
140         * modules/posix_spawn (License): Change to LGPLv2+.
141         * modules/posix_spawnp (License): Likewise.
142         * modules/posix_spawn-internal (License): Likewise.
143         * modules/posix_spawnattr_init (License): Likewise.
144         * modules/posix_spawnattr_getflags (License): Likewise.
145         * modules/posix_spawnattr_setflags (License): Likewise.
146         * modules/posix_spawnattr_getpgroup (License): Likewise.
147         * modules/posix_spawnattr_setpgroup (License): Likewise.
148         * modules/posix_spawnattr_getschedparam (License): Likewise.
149         * modules/posix_spawnattr_setschedparam (License): Likewise.
150         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
151         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
152         * modules/posix_spawnattr_getsigdefault (License): Likewise.
153         * modules/posix_spawnattr_setsigdefault (License): Likewise.
154         * modules/posix_spawnattr_getsigmask (License): Likewise.
155         * modules/posix_spawnattr_setsigmask (License): Likewise.
156         * modules/posix_spawnattr_destroy (License): Likewise.
157         * modules/posix_spawn_file_actions_init (License): Likewise.
158         * modules/posix_spawn_file_actions_addclose (License): Likewise.
159         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
160         * modules/posix_spawn_file_actions_addopen (License): Likewise.
161         * modules/posix_spawn_file_actions_destroy (License): Likewise.
162         * modules/getdtablesize (License): Likewise.
163         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
164
165 2010-10-26  Bruno Haible  <bruno@clisp.org>
166
167         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
168         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
169         Cygwin and mingw.
170         Suggested by Eric Blake.
171
172 2010-10-26  Bruno Haible  <bruno@clisp.org>
173
174         stdio: Work around compilation error due to renameat() on Solaris 10.
175         * lib/stdio.in.h: Include <unistd.h> on Solaris.
176         * lib/renameat.c: Don't include <unistd.h> here.
177         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
178         Reported by Paul Eggert and Eric Blake.
179
180 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
181
182         renameat: port to Solaris 10, which declares renameat in unistd.h
183
184         * lib/renameat.c: Include unistd.h before stdio.h, because
185         Solaris 10 declares renameat in unistd.h.  Problem encountered
186         when building GNU tar 1.24 on Solaris 10.
187
188 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
189
190         fdopendir: fix C89 compilation
191         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
192         compilers.
193
194 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
195
196         inttostr: simplify by removing unnecessary redundancy
197         * lib/anytostr.c: Don't include verify.h.
198         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
199         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
200         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
201         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
202         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
203         Likewise.
204         * modules/inttostr (Depends-on): Remove 'verify'.
205
206 2010-10-23  Bruno Haible  <bruno@clisp.org>
207
208         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
209         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
210         Reported by Eric Blake.
211
212 2010-10-23  Bruno Haible  <bruno@clisp.org>
213
214         Tests: Fix LOCALE_JA on MirBSD 10.
215         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
216         to an UTF-8 locale.
217         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
218         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
219         Reported by Eric Blake.
220
221 2010-10-21  Bruno Haible  <bruno@clisp.org>
222
223         nl_langinfo test: Avoid test failure on NetBSD 5.
224         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
225         Reported by Eric Blake.
226
227 2010-10-21  Eric Blake  <eblake@redhat.com>
228
229         c-stack: work around libsigsegv 2.8 bug
230         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
231         overflow on at least PowerPC64.
232
233 2010-10-17  Bruno Haible  <bruno@clisp.org>
234
235         userspec: Drop redundant file.
236         * modules/userspec (Files): Remove lib/inttostr.h.
237
238 2010-10-17  Bruno Haible  <bruno@clisp.org>
239
240         nl_langinfo tests: Silence some warnings.
241         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
242         Reported by Jim Meyering.
243
244 2010-10-17  Bruno Haible  <bruno@clisp.org>
245
246         Make use of GCC's attribute __alloc_size__.
247         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
248         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
249         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
250         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
251         __alloc_size__.
252         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
253         Suggested by Jim Meyering.
254
255 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
256
257         bootstrap: anchor .gitignore entries.
258         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
259         with...
260         (insert_vc_ignore): ... this new function, which prepends `/' to
261         all .gitignore entries before passing them to
262         insert_sorted_if_absent.
263
264 2010-10-16  Bruno Haible  <bruno@clisp.org>
265
266         nextafter: Fix configure check.
267         * modules/nextafter (configure.ac): Correct expected prototype.
268
269 2010-10-16  Bruno Haible  <bruno@clisp.org>
270
271         termios: Update documentation.
272         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
273
274 2010-10-16  Bruno Haible  <bruno@clisp.org>
275
276         tests: Make them compile with TinyCC.
277         * tests/test-strstr.c (main): Remove parentheses around array
278         initializer.
279
280 2010-10-15  Eric Blake  <eblake@redhat.com>
281
282         ignore-value: make header idempotent
283         * lib/ignore-value.h: Add double-inclusion guards.
284         Reported by Stefan Berger.
285
286 2010-10-15  Jim Meyering  <meyering@redhat.com>
287
288         GNUmakefile: handle "stable" target, not "major"
289         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
290         lists in maint.mk and announce-gen.  Without this, "make stable"
291         would fail to ensure that $(VERSION) is up to date.
292
293 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
294
295         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
296         & co.
297
298 2010-10-14  Bruno Haible  <bruno@clisp.org>
299
300         vasnprintf: Don't set errno to 0.
301         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
302         block that sets it to 0.
303         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
304
305 2010-10-14  Bruno Haible  <bruno@clisp.org>
306
307         socketlib: Fix.
308         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
309         gl_PREREQ_SYS_H_WINSOCK2.
310         Reported by Ian Beckwith <ianb@erislabs.net>.
311
312 2010-10-13  Jim Meyering  <meyering@redhat.com>
313
314         test-select-stdin.c: avoid warn_unused_result warnings
315         * tests/test-select-stdin.c: Include "macros.h".
316         ASSERT that read and fflush succeed.
317
318 2010-10-13  Jim Meyering  <meyering@redhat.com>
319
320         git-version-gen: do require git-VC'd files in cwd
321         * build-aux/git-version-gen: Reject a git version string
322         if there are no commits associated with the current directory.
323         This avoids an unlikely false-positive (unrelated dir whose parent
324         repository also contains a tag matching v*), as pointed out
325         by Giuseppe Scrivano in
326         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
327
328 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
329
330         argv-iter: omit nonconforming declaration
331         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
332         enum arg_iter_err declaration, which doesn't conform to C99.
333         Solaris 10 cc warns about this.
334
335 2010-10-13  Eric Blake  <eblake@redhat.com>
336
337         termios: fix compilation on mingw
338         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
339         (gl_TERMIOS_H): Adjust it on mingw.
340         * modules/termios (Makefile.am): Substitute new key.
341         * lib/termios.in.h (includes): Make include_next conditional.
342         * doc/posix-headers/termios.texi (termios.h): Update
343         documentation.
344         Reported by Daniel P. Berrange.
345
346 2010-10-13  Jim Meyering  <meyering@redhat.com>
347
348         git-version-gen: don't require that .git/ be in the current dir
349         * build-aux/git-version-gen: Adjust this script so that it works
350         when run from any working directory beneath the top-level .git/-
351         containing directory.  Inspired by a patch from Giuseppe Scrivano,
352         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
353
354         test-select: avoid warn_unused_result warnings
355         * tests/test-select.c: Include "macros.h".
356         ASSERT that each call to read, write, and pipe succeeds.
357         While not technically required, also check each "close".
358         * modules/select-tests (Files): Add tests/macros.h.
359
360         test-symlinkat: remove declaration of unused local
361         * tests/test-symlinkat.c (main): Remove unused local, "buf".
362
363         test-inttostr: avoid shadowing warnings
364         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
365         and use malloc rather than the stack for the same reason as
366         mentioned in the comment justifying the other allocation.
367
368 2010-10-11  Bruno Haible  <bruno@clisp.org>
369
370         stdlib: Allow multiple gnulib generated replacements to coexist.
371         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
372         Reported by Sam Steingold <sds@gnu.org>.
373
374 2010-10-11  Jim Meyering  <meyering@redhat.com>
375
376         fix a documentation typo
377         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
378
379 2010-10-11  Eric Blake  <eblake@redhat.com>
380
381         futimens: work around Solaris 11 bug
382         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
383         * tests/test-futimens.h (test_futimens): Enhance, rather than
384         weaken test.
385         * doc/posix-functions/futimens.texi (futimens): Document the bug.
386
387 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
388
389         Indentation.
390         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
391         higher-level operators more to the left.
392
393 2010-10-11  Jim Meyering  <meyering@redhat.com>
394
395         test-futimens: avoid unwarranted test failure on Solaris 5.11
396         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
397         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
398         because it tries to dereference the NULL name argument.
399
400 2010-10-11  Bruno Haible  <bruno@clisp.org>
401
402         Indentation.
403         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
404         indentation.
405
406 2010-10-11  Jim Meyering  <meyering@redhat.com>
407
408         spawn.in.h: make indentation consistent with parentheses
409         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
410         Make indentation consistent with parentheses.
411
412 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
413
414         Fix mismatched parens in previous commit
415         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
416         parens.
417
418 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
419
420         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
421
422         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
423         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
424         * lib/malloca.c: Include "verify.h".
425         (verify1): Remove, replacing with a verify call.
426         * lib/relocwrapper.c (verify1): Likewise.
427         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
428         Likewise.
429         * modules/malloca (Depends-on): Add 'verify'.
430         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
431         * modules/vasnprintf (Depends-on): Add 'verify'.
432         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
433         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
434         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
435         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
436         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
437         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
438         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
439
440         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
441
442         Formerly the style was sometimes 2*X - 1, because the C standard
443         was wrongly thought to disallow ?: in integral constant expressions.
444         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
445         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
446         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
447         * lib/stdint.in.h (_verify_intmax_size): Likewise.
448         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
449         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
450         verify that time_t cannot be floating.
451
452 2010-10-08  Eric Blake  <eblake@redhat.com>
453
454         time: enforce recent POSIX ruling that time_t is integral
455         * lib/time.in.h (__time_t_must_be_integral): Detect any
456         problematic systems, allowing the rest of gnulib to assume POSIX.
457
458 2010-10-08  Jim Meyering  <meyering@redhat.com>
459
460         fdopendir: fix a bug on systems lacking openat and /proc support
461         OpenBSD 4.7 is one such system.  The most noticeable effect was
462         failure of any application making nontrivial use of fts: rm, du,
463         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
464           ./rm: traversal failed: `a': Bad file descriptor
465         Debugging that, you see that even though FD 6 was closed just
466         prior to the opendir call in fd_clone_opendir, its resulting
467         dir->dd_fd was 8, rather than the expected value of 6:
468
469         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
470         93                close (fd);
471         (gdb) n
472         94                dir = fd_clone_opendir (dupfd);
473         (gdb) n
474         95                saved_errno = errno;
475         (gdb) p dir->dd_fd
476         $11 = 8
477
478         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
479         The problem is that on OpenBSD, fd_clone_opendir has to resort
480         to using the old-style save/restore CWD mechanism, due to its
481         lack of openat/proc support, and *that* would steal the FD (6)
482         that opendir was supposed to use.
483
484         The fix is to squirrel away the desired FD so that save_cwd uses a
485         different one, and then free the dest FD right before calling opendir.
486         That guarantees opendir will use the required file descriptor.
487
488         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
489
490 2010-10-08  Bruno Haible  <bruno@clisp.org>
491
492         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
493         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
494
495 2010-10-08  Bruno Haible  <bruno@clisp.org>
496
497         nanosleep: Make replacement POSIX compliant.
498         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
499         is out of range.
500         Reported by Jim Meyering.
501
502 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
503
504         bootstrap: add hook for altering gnulib.mk, for Bison
505         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
506         the Bison bootstrapping process can rewrite file names and variables
507         in this file before later parts of 'bootstrap' use the file.
508         Bison wants to include lib/gnulib.mk from the top-level makefile,
509         so it needs the file names in this file to be relative to the top
510         level, not relative to lib; plus it needs variable names to be
511         rewritten.
512         (slurp): Use the new function.
513
514         bootstrap: reformat for readability
515         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
516
517 2010-10-08  Eric Blake  <eblake@redhat.com>
518
519         docs: update cygwin progress
520         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
521         1.7.7.
522         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
523         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
524         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
525         * doc/posix-functions/carg.texi (carg): Likewise.
526         * doc/posix-functions/cargf.texi (cargf): Likewise.
527         * doc/posix-functions/casin.texi (casin): Likewise.
528         * doc/posix-functions/casinf.texi (casinf): Likewise.
529         * doc/posix-functions/casinh.texi (casinh): Likewise.
530         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
531         * doc/posix-functions/catan.texi (catan): Likewise.
532         * doc/posix-functions/catanf.texi (catanf): Likewise.
533         * doc/posix-functions/catanh.texi (catanh): Likewise.
534         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
535         * doc/posix-functions/ccos.texi (ccos): Likewise.
536         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
537         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
538         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
539         * doc/posix-functions/cexp.texi (cexp): Likewise.
540         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
541         * doc/posix-functions/cimag.texi (cimag): Likewise.
542         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
543         * doc/posix-functions/clog.texi (clog): Likewise.
544         * doc/posix-functions/clogf.texi (clogf): Likewise.
545         * doc/posix-functions/conj.texi (conj): Likewise.
546         * doc/posix-functions/conjf.texi (conjf): Likewise.
547         * doc/posix-functions/cpow.texi (cpow): Likewise.
548         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
549         * doc/posix-functions/cproj.texi (cproj): Likewise.
550         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
551         * doc/posix-functions/creal.texi (creal): Likewise.
552         * doc/posix-functions/crealf.texi (crealf): Likewise.
553         * doc/posix-functions/csin.texi (csin): Likewise.
554         * doc/posix-functions/csinf.texi (csinf): Likewise.
555         * doc/posix-functions/csinh.texi (csinh): Likewise.
556         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
557         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
558         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
559         * doc/posix-functions/ctan.texi (ctan): Likewise.
560         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
561         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
562         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
563         * doc/posix-headers/complex.texi (complex.h): Likewise.
564
565 2010-10-07  Jim Meyering  <meyering@redhat.com>
566
567         parse-datetime: avoid compilation failure on OpenBSD 4.7
568         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
569         This works around a compilation failure on OpenBSD 4.7:
570         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
571
572 2010-10-07  Eric Blake  <eblake@redhat.com>
573
574         docs: update cygwin progress
575         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
576         1.7.6.
577         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
578         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
579         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
580         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
581         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
582         Likewise.
583         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
584         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
585         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
586         Likewise.
587         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
588         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
589         Likewise.
590         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
591         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
592         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
593         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
594         Likewise.
595         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
596         Likewise.
597         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
598
599         docs: update parse-datetime history
600         * doc/parse-datetime.texi (Authors of parse_datetime): Better
601         documentation of this function's history and alternatives.
602
603         cygwin: use more robust version check
604         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
605         exclude an eventual cygwin 1.9.1.
606         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
607         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
608         (gl_FUNC_STRCASESTR): Likewise.
609         Reported by Bruno Haible.
610
611 2010-10-06  Bruno Haible  <bruno@clisp.org>
612
613         string, sys_select: Avoid #including large headers unless necessary.
614         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
615         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
616         OSF/1, BeOS, Haiku.
617         Reported by Jim Meyering.
618
619 2010-10-05  Eric Blake  <eblake@redhat.com>
620
621         memmem, strstr, strcasestr: fix bug with long periodic needle
622         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
623         periodic needle having false positive.
624         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
625         and cygwin 1.7.7.
626         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
627         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
628         (gl_FUNC_STRCASESTR): Likewise.
629         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
630         * tests/test-memmem.c (main): Expose the bug.
631         * tests/test-strcasestr.c (main): Likewise.
632         * tests/test-strstr.c (main): Likewise.
633         * tests/test-c-strcasestr.c (main): Likewise.
634         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
635         * doc/posix-functions/strstr.texi (strstr): Likewise.
636         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
637         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
638
639 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
640
641         parse-datetime: do some more renaming
642         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
643         parse_datetime, not get_date.  Mention the renaming.
644         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
645         in comments.
646         * m4/bison.m4: Likewise.
647
648 2010-10-05  Eric Blake  <eblake@redhat.com>
649
650         parse-datetime: better name than get_date
651         * NEWS: Reword the deprecation notice.
652         * modules/get_date: Rename to modules/parse-datetime.
653         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
654         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
655         * lib/get_date.y: Rename to lib/parse-datetime.y.
656         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
657         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
658         * doc/getdate.texi: Provide fallback wrapper.
659         * lib/getdate.h: Move guts, and wrap...
660         * lib/parse-datetime.h: ...new file.
661         * lib/parse-datetime.y (get_date): Rename...
662         (parse_datetime): ...to this.
663         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
664         (gl_PARSE_DATETIME): ...to this.
665         * doc/posix-functions/getdate.texi (get_date): Provide fallback
666         documentation.
667         * modules/getdate (Files): Provide fallback docs and header.
668         (Notice, Depends-on): Update references.
669         * tests/test-parse-datetime.c: Likewise.
670         * DEPENDENCIES: Likewise.
671         * MODULES.html.sh (Date and time <time.h>): Likewise.
672         * doc/parse-datetime.texi (Date input formats)
673         (Authors of parse_datetime): Likewise.
674         * modules/parse-datetime (Files, configure.ac, Makefile.am)
675         (Include): Likewise.
676         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
677         * gnulib-tool: Likewise.
678         * m4/bison.m4 (gl_BISON): Likewise.
679         Suggested by Bruno Haible.
680
681 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
682
683         more ports to Solaris tr, which needs [] around ranges
684         * gnulib-tool: Solaris tr needs [] around ranges.
685         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
686         * tests/test-pipe-filter-gi1.c (main): Likewise.
687         * tests/test-pipe-filter-ii1.c (main): Likewise.
688
689 2010-10-05  Eric Blake  <eblake@redhat.com>
690
691         bootstrap: fix Solaris regression
692         * build-aux/bootstrap (check_versions): Solaris tr still needs []
693         around ranges.
694         Reported by Pádraig Brady.
695
696         bootstrap: work with pkg-config
697         * build-aux/bootstrap (check_versions): Also transliterate - in
698         prerequisite name.
699         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
700         prerequisites that were already found, to avoid confusion.
701         Reported by Justin Clift.
702
703         faccessat: remove unused wrappers
704         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
705         presence of these wrappers dragged in -lgen on Solaris.
706         Reported by Clemens Brogi; fix suggested by Paul Eggert.
707
708 2010-10-05  Jim Meyering  <meyering@redhat.com>
709
710         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
711         * Makefile (sc_pragma_columns): New syntax-check rule.
712
713 2010-10-04  Bruno Haible  <bruno@clisp.org>
714
715         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
716         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
717         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
718         Reported by Bruce Korb and Eric Blake.
719
720 2010-10-04  Bruno Haible  <bruno@clisp.org>
721
722         threadlib: Make option --with-libpth-prefix work.
723         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
724         use $LIBPTH, not just -lpth.
725
726 2010-10-04  Bruno Haible  <bruno@clisp.org>
727
728         Avoid line length limitation from HP NonStop system header files.
729         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
730         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
731         * lib/ctype.in.h: Likewise.
732         * lib/dirent.in.h: Likewise.
733         * lib/errno.in.h: Likewise.
734         * lib/fcntl.in.h: Likewise.
735         * lib/float.in.h: Likewise.
736         * lib/getopt.in.h: Likewise.
737         * lib/iconv.in.h: Likewise.
738         * lib/inttypes.in.h: Likewise.
739         * lib/langinfo.in.h: Likewise.
740         * lib/locale.in.h: Likewise.
741         * lib/math.in.h: Likewise.
742         * lib/netdb.in.h: Likewise.
743         * lib/netinet_in.in.h: Likewise.
744         * lib/poll.in.h: Likewise.
745         * lib/pthread.in.h: Likewise.
746         * lib/pty.in.h: Likewise.
747         * lib/sched.in.h: Likewise.
748         * lib/se-selinux.in.h: Likewise.
749         * lib/search.in.h: Likewise.
750         * lib/signal.in.h: Likewise.
751         * lib/spawn.in.h: Likewise.
752         * lib/stdarg.in.h: Likewise.
753         * lib/stddef.in.h: Likewise.
754         * lib/stdint.in.h: Likewise.
755         * lib/stdio.in.h: Likewise.
756         * lib/stdlib.in.h: Likewise.
757         * lib/string.in.h: Likewise.
758         * lib/strings.in.h: Likewise.
759         * lib/sys_file.in.h: Likewise.
760         * lib/sys_ioctl.in.h: Likewise.
761         * lib/sys_select.in.h: Likewise.
762         * lib/sys_socket.in.h: Likewise.
763         * lib/sys_stat.in.h: Likewise.
764         * lib/sys_time.in.h: Likewise.
765         * lib/sys_times.in.h: Likewise.
766         * lib/sys_utsname.in.h: Likewise.
767         * lib/sys_wait.in.h: Likewise.
768         * lib/sysexits.in.h: Likewise.
769         * lib/termios.in.h: Likewise.
770         * lib/time.in.h: Likewise.
771         * lib/unistd.in.h: Likewise.
772         * lib/wchar.in.h: Likewise.
773         * lib/wctype.in.h: Likewise.
774         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
775         * modules/ctype (Makefile.am): Likewise.
776         * modules/dirent (Makefile.am): Likewise.
777         * modules/errno (Makefile.am): Likewise.
778         * modules/fcntl-h (Makefile.am): Likewise.
779         * modules/float (Makefile.am): Likewise.
780         * modules/getopt-posix (Makefile.am): Likewise.
781         * modules/iconv-h (Makefile.am): Likewise.
782         * modules/inttypes (Makefile.am): Likewise.
783         * modules/langinfo (Makefile.am): Likewise.
784         * modules/locale (Makefile.am): Likewise.
785         * modules/math (Makefile.am): Likewise.
786         * modules/netdb (Makefile.am): Likewise.
787         * modules/netinet_in (Makefile.am): Likewise.
788         * modules/poll-h (Makefile.am): Likewise.
789         * modules/pthread (Makefile.am): Likewise.
790         * modules/pty (Makefile.am): Likewise.
791         * modules/sched (Makefile.am): Likewise.
792         * modules/search (Makefile.am): Likewise.
793         * modules/selinux-h (Makefile.am): Likewise.
794         * modules/signal (Makefile.am): Likewise.
795         * modules/spawn (Makefile.am): Likewise.
796         * modules/stdarg (Makefile.am): Likewise.
797         * modules/stddef (Makefile.am): Likewise.
798         * modules/stdint (Makefile.am): Likewise.
799         * modules/stdio (Makefile.am): Likewise.
800         * modules/stdlib (Makefile.am): Likewise.
801         * modules/string (Makefile.am): Likewise.
802         * modules/strings (Makefile.am): Likewise.
803         * modules/sys_file (Makefile.am): Likewise.
804         * modules/sys_ioctl (Makefile.am): Likewise.
805         * modules/sys_select (Makefile.am): Likewise.
806         * modules/sys_socket (Makefile.am): Likewise.
807         * modules/sys_stat (Makefile.am): Likewise.
808         * modules/sys_time (Makefile.am): Likewise.
809         * modules/sys_times (Makefile.am): Likewise.
810         * modules/sys_utsname (Makefile.am): Likewise.
811         * modules/sys_wait (Makefile.am): Likewise.
812         * modules/sysexits (Makefile.am): Likewise.
813         * modules/termios (Makefile.am): Likewise.
814         * modules/time (Makefile.am): Likewise.
815         * modules/unistd (Makefile.am): Likewise.
816         * modules/wchar (Makefile.am): Likewise.
817         * modules/wctype (Makefile.am): Likewise.
818
819 2010-10-04  Bruno Haible  <bruno@clisp.org>
820
821         read-file tests: Avoid a test failure on NonStop Kernel.
822         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
823         a regular file.
824         Reported by Joachim Schmitz <schmitz@hp.com>.
825
826 2010-10-03  Bruno Haible  <bruno@clisp.org>
827
828         gnulib-tool: Fixes for --create-testdir with --libtool.
829         * gnulib-tool (func_get_automake_snippet): Don't augment
830         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
831         an executable.
832         (func_create_testdir): Handle module 'alloca' like func_import.
833         Reported by Bruce Korb <bruce.korb@gmail.com>.
834
835 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
836
837         Avoid some lines longer than 80 characters.
838         * lib/stdint.in.h: Break long comment lines.
839         * lib/math.in.h: Likewise.
840         (_GL_NUM_UINT_WORDS): New macro, for readability.
841         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
842         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
843         * lib/stdlib.in.h: Likewise.
844         * lib/spawn.in.h: Likewise.
845         * lib/sys_socket.in.h: Update an URL.
846         * lib/sys_stat.in.h: Break long line.
847
848 2010-10-03  Bruno Haible  <bruno@clisp.org>
849             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
850
851         acl: Add support for ACLs on NonStop Kernel.
852         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
853         Check whether the function aclsort() exists.
854         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
855         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
856         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
857         (acl_nontrivial [HAVE_ACLSORT]: New function.
858         (file_has_acl): Implement for NonStop Kernel.
859         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
860         (qset_acl): Implement for NonStop Kernel.
861         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
862         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
863         (main): Implement for NonStop Kernel.
864         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
865         Kernel. Handle this flavor.
866         * tests/test-set-mode-acl.sh: Likewise.
867         * tests/test-copy-acl.sh: Likewise.
868         * tests/test-copy-file.sh: Likewise.
869
870 2010-10-03  Bruno Haible  <bruno@clisp.org>
871
872         Info about ACLs on NonStop Kernel.
873         * doc/acl-resources.txt: Add info about NonStop Kernel.
874         References by Joachim Schmitz <schmitz@hp.com>.
875
876 2010-10-02  Bruno Haible  <bruno@clisp.org>
877
878         Define missing EDQUOT on NonStop Kernel.
879         * lib/errno.in.h (EDQUOT): Assign a value if missing.
880         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
881         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
882         missing.
883         * doc/posix-headers/errno.texi: Mention the NSK bug.
884         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
885         Reported by Joachim Schmitz <schmitz@hp.com>.
886
887 2010-10-02  Bruno Haible  <bruno@clisp.org>
888
889         Update doc for POSIX:2008.
890         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
891         Update URL of POSIX specification.
892
893 2010-10-02  Bruno Haible  <bruno@clisp.org>
894
895         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
896         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
897         from gnulib, not from Automake.
898
899 2010-10-02  Bruno Haible  <bruno@clisp.org>
900
901         New module 'system-posix'.
902         * modules/system-posix: New file.
903         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
904         module is present.
905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
906         GNULIB_SYSTEM_POSIX.
907         * modules/stdlib (Depends-on): Remove sys_wait.
908         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
909         * doc/posix-functions/system.texi: Mention the new module.
910         * doc/posix-headers/stdlib.texi: Likewise.
911         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
912         define test_sys_wait_macros to a no-op.
913         Reported by Sam Steingold <sds@gnu.org>.
914
915 2010-09-30  Bruno Haible  <bruno@clisp.org>
916
917         More renaming from 'getdate' to 'get_date'.
918         * doc/get_date.texi: Renamed from doc/getdate.texi.
919         * modules/get_date (Files): Update.
920         * MODULES.html.sh (Date and time <time.h>): Update.
921         * DEPENDENCIES: Update.
922         * gnulib-tool: Update comment.
923         * m4/bison.m4 (gl_BISON): Likewise.
924         * m4/get_date.m4 (gl_GET_DATE): Likewise.
925
926 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
927
928         bootstrap: support ACLOCAL_FLAGS during aclocal
929         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
930         can add additional -I dir for third-party .m4 files.
931
932 2010-09-30  Eric Blake  <eblake@redhat.com>
933
934         bootstrap: use glibtoolize on MacOS
935         * build-aux/bootstrap (check_versions): Convert libtool into
936         libtoolize.
937         (tool search): Move libtool check earlier, and look for
938         glibtoolize for MacOS.
939         (gnulib_tool_options): Auto-add --libtool when appropriate.
940         Reported by Justin Clift.
941
942         poll: fix typo that broke test on MacOS
943         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
944         Reported by Justin Clift.
945
946         getdate: rename to get_date
947         Note: getdate.h is not renamed, to minimize client impact.
948         * modules/getdate: Mark obsolete.  Move old contents...
949         * modules/get_date: ...to new module name.
950         * modules/getdate-tests: Move...
951         * modules/get_date-tests: ...here.
952         * m4/getdate.m4: Move...
953         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
954         * lib/getdate.y: Move...
955         * lib/get_date.y: ...here.
956         * tests/test-getdate.c: Move...
957         * tests/test-get_date.c: ...here.
958         * doc/posix-functions/getdate.texi (getdate): Update name.
959         * NEWS: Mention the change.
960
961 2010-09-29  Bruno Haible  <bruno@clisp.org>
962
963         Separate the module 'waitpid' from the module 'sys_wait'.
964         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
965         present.
966         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
967         gl_MODULE_INDICATOR_FOR_TESTS.
968         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
969         * modules/sys_wait (Depends-on): Remove waitpid.
970         (Makefile.am): Substitute GNULIB_WAITPID.
971         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
972         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
973         signature only if the 'waitpid' module is present.
974         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
975         * NEWS: Mention the change.
976         * modules/grantpt (Depends-on): Add waitpid.
977         * modules/wait-process (Depends-on): Likewise.
978
979 2010-09-29  Bruno Haible  <bruno@clisp.org>
980
981         More tests for module 'sys_wait'.
982         * modules/sys_wait-c++-tests: New file.
983         * tests/test-sys_wait-c++.cc: New file.
984         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
985         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
986
987 2010-09-29  Bruno Haible  <bruno@clisp.org>
988
989         New module 'waitpid'.
990         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
991         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
992         Don't include <process.h>.
993         (waitpid): Declare only, using modern idiom.
994         * m4/waitpid.m4: New file.
995         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
996         * modules/waitpid: New file.
997         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
998         (Makefile.am): Update.
999         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1000
1001 2010-09-28  Bruno Haible  <bruno@clisp.org>
1002
1003         poll: Assume ANSI C.
1004         * lib/poll.c (poll): Use an ANSI C declaration.
1005
1006 2010-09-28  Bruno Haible  <bruno@clisp.org>
1007
1008         poll-h: Create poll.h on all platforms.
1009         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1010         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1011         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1012         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1013         (gl_REPLACE_POLL_H): Don't set POLL_H.
1014         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1015         * modules/poll-h (Depends-on): Add include_next.
1016         (Makefile.am): Create poll.h unconditionally. Substitute also
1017         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1018
1019 2010-09-28  Bruno Haible  <bruno@clisp.org>
1020
1021         Tests for module 'poll-h'.
1022         * modules/poll-h-c++-tests: New file.
1023         * tests/test-poll-h-c++.cc: New file.
1024
1025         Tests for module 'poll-h'.
1026         * modules/poll-h-tests: New file.
1027         * tests/test-poll-h.c: New file.
1028
1029 2010-09-28  Bruno Haible  <bruno@clisp.org>
1030
1031         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1032         * modules/poll-h (Depends-on): Add 'extensions'.
1033
1034 2010-09-28  Bruno Haible  <bruno@clisp.org>
1035
1036         New module 'poll-h'.
1037         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1038         (poll): Use modern idiom.
1039         * modules/poll-h: New file.
1040         * modules/poll (Files): Remove lib/poll.in.h.
1041         (Depends-on): Add poll-h.
1042         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1043         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1044         * m4/poll_h.m4: New file.
1045         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1046         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1047         and invoke gl_REPLACE_POLL_H.
1048         * lib/poll.c: Use common idiom.
1049         * tests/test-poll.c: Likewise.
1050         * doc/posix-headers/poll.texi: Mention the poll-h module.
1051         Suggested by Eric Blake.
1052
1053 2010-09-26  Bruno Haible  <bruno@clisp.org>
1054
1055         sys_wait: Implement WSTOPSIG.
1056         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1057         Reported by Simon Josefsson.
1058
1059 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1060
1061         stdlib, sys_wait: Avoid compilation error on mingw.
1062         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1063
1064 2010-09-26  Bruno Haible  <bruno@clisp.org>
1065
1066         stdlib tests: Avoid code duplication.
1067         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1068         * modules/sys_wait-tests (Files): Likewise.
1069         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1070         * tests/test-stdlib.c: Include test-sys_wait.h.
1071         (main): Invoke test_sys_wait_macros.
1072         * tests/test-sys_wait.c: Include test-sys_wait.h.
1073         (main): Invoke test_sys_wait_macros.
1074
1075 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1076
1077         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1078         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1079         sure Windows sockets are working before calling getaddrinfo.
1080         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1081         * doc/gnulib.texi (Windows sockets): Fix typo.
1082
1083 2010-09-25  Bruno Haible  <bruno@clisp.org>
1084
1085         Tests for module 'regex-quote'.
1086         * modules/regex-quote-tests: New file.
1087         * tests/test-regex-quote.c: New file.
1088
1089         New module 'regex-quote'.
1090         * lib/regex-quote.h: New file.
1091         * lib/regex-quote.c: New file.
1092         * modules/regex-quote: New file.
1093         Suggested by Reuben Thomas <rrt@sc3d.org>.
1094
1095 2010-09-24  Bruno Haible  <bruno@clisp.org>
1096
1097         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1098         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1099
1100 2010-09-23  Bruno Haible  <bruno@clisp.org>
1101
1102         setenv: Relax license.
1103         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1104         Blake.
1105         Requested by Eric Blake.
1106
1107 2010-09-22  Bruno Haible  <bruno@clisp.org>
1108
1109         termios: Relax license.
1110         * modules/termios (License): Change to LGPLv2+.
1111         Requested by Eric Blake.
1112
1113 2010-09-22  Bruno Haible  <bruno@clisp.org>
1114
1115         threadlib: Allow the package to change the default to 'no'.
1116         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1117         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1118         Reported by Paul Eggert.
1119
1120 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1121             Bruno Haible  <bruno@clisp.org>
1122
1123         Fix endless loop in mbmemcasecoll.
1124         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1125         byte.
1126         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1127
1128 2010-09-22  Bruno Haible  <bruno@clisp.org>
1129
1130         Tests for module 'memcoll'.
1131         * modules/memcoll-tests: New file.
1132         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1133
1134         memcoll, xmemcoll: Clarify size vs. length.
1135         * modules/memcoll.c (memcoll0): Clarify specification.
1136         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1137         passed to collate_error.
1138
1139 2010-09-22  Bruno Haible  <bruno@clisp.org>
1140
1141         Tests for module 'memcasecmp'.
1142         * modules/memcasecmp-tests: New file.
1143         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1144
1145 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1146
1147         * lib/pthread.in.h: Add split double-inclusion guard, and include
1148         system <pthread.h> if there is one.  Use @@-style as in other
1149         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1150         pthread.h doesn't.
1151         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1152         (pthread_mutexattr_settype, pthread_mutex_trylock):
1153         New static inline functions, if there's no system <pthread.h>.
1154         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1155         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1156         Approximate with mutexes if the system lacks spinlocks, as in
1157         MacOS.
1158         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1159         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1160         @@-style.  Check for spinlocks separately.
1161         (gl_PTHREAD_DEFAULTS): New macro.
1162         * modules/pthread: Redo to use a more typical style for in.h files.
1163
1164 2010-09-21  Eric Blake  <eblake@redhat.com>
1165
1166         net_if: enhance tests
1167         * tests/test-net_if.c (main): Move signature checks earlier.
1168         Print failures to stderr.
1169         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1170         Document the bug that we do not yet fix.
1171
1172 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1173
1174         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1175         about gnulib, not GSS.
1176
1177 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1178
1179         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1180         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1181         for Emacs.
1182         * build-aux/pmccabe2html: Make Makefile.am example code more
1183         cut-and-paste friendly.
1184
1185 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1186
1187         * tests/test-net_if.c: New file.
1188         * modules/net_if-tests: New file.
1189
1190 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1191
1192         pthread: add pthread_spin_destroy
1193         * lib/pthread.in.h (pthread_spin_destroy): New function.
1194
1195 2010-09-19  Bruno Haible  <bruno@clisp.org>
1196
1197         gnulib-tool: Fix --help output.
1198         * gnulib-tool (func_usage): Fix help message.
1199         Reported by Reuben Thomas <rrt@sc3d.org>.
1200
1201 2010-09-18  Jim Meyering  <meyering@redhat.com>
1202
1203         maint.mk: avoid unexpanded \n in two diagnostics
1204         * top/maint.mk (sc_prohibit_always_true_header_tests):
1205         Don't use a literal \n in a halt=... assignment.  It would not be
1206         expanded, and the two \n bytes would appear in the diagnostic output
1207         rather than the desired newline.  Use halt=$$(printf ... instead.
1208         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1209
1210 2010-09-18  Bruno Haible  <bruno@clisp.org>
1211
1212         netinet_in: Doc tweak.
1213         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1214         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1215
1216 2010-09-18  Jim Meyering  <meyering@redhat.com>
1217
1218         init.sh: correct an outdated comment
1219         * tests/init.sh (create_exe_shims_):  s/function/alias/
1220
1221         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1222         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
1223         a file named "*.exe" is removed between the glob expansion and the
1224         processing of that oddly named file.
1225
1226 2010-09-17  Eric Blake  <eblake@redhat.com>
1227
1228         mirbsd: add some more support
1229         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
1230         in BSD family.
1231         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
1232         devices as OpenBSD.
1233         * m4/host-os.m4 (mirbsd): Add MirBSD.
1234
1235         tests: fix unportable assumption on sys/wait.h
1236         * tests/test-sys_wait.c (main): Relax test.
1237         * tests/test-stdlib.c (main): Likewise.
1238
1239         init.sh: accomodate directory with no .exes
1240         * tests/init.sh: Accomodate directory containing only scripts.
1241
1242         tests: avoid compiler warning
1243         * tests/test-stdlib.c (main): Use the variable.
1244
1245         fdutimens, fdutimensat: update signature, again
1246         * lib/utimens.h (gl_futimens): Delete, and move signature...
1247         (fdutimens): ...here.
1248         (fdutimensat): Rearrange signature.
1249         (lutimensat): Rename variable for clarity.
1250         * lib/fdutimensat.c (fdutimensat): Update signature.
1251         * lib/utimens.c (fdutimens): Likewise.
1252         (gl_futimens): Delete.
1253         (utimens, lutimens): Update callers.
1254         * lib/futimens.c (futimens): Likewise.
1255         * tests/test-fdutimensat.c: Likewise.
1256         * tests/test-utimens.c: Likewise.
1257         * tests/test-futimens.h: Update comment.
1258         * NEWS: Mention this.
1259         Suggested by Paul Eggert.
1260
1261 2010-09-17  Bruno Haible  <bruno@clisp.org>
1262
1263         Take over the maintenance of some older macros from Autoconf.
1264         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1265         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1266         GNU Autoconf.
1267         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1268         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1269
1270 2010-09-17  Eric Blake  <eblake@redhat.com>
1271
1272         fdutimensat: drop atflag validation
1273         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1274         with valid fd, to close a race scenario where futimens is
1275         unsupported and FILE was replaced by a symlink.
1276         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1277         accordingly.
1278         Suggested by Paul Eggert.
1279
1280 2010-09-16  Bruno Haible  <bruno@clisp.org>
1281
1282         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1283         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1284
1285 2010-09-16  Bruno Haible  <bruno@clisp.org>
1286
1287         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1288         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1289         login_tty exists.
1290         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1291
1292 2010-09-16  Bruno Haible  <bruno@clisp.org>
1293
1294         login_tty: Make the replacement code work on BSD systems.
1295         * lib/login_tty.c: Include <sys/ioctl.h>.
1296         (login_tty): Use ioctl TIOCSCTTY when available.
1297         * modules/login_tty (Depends-on): Add sys_ioctl.
1298         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1299
1300 2010-09-16  Bruno Haible  <bruno@clisp.org>
1301
1302         login_tty: Stricter unit test.
1303         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1304         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1305         and tcgetsid() after login_tty.
1306         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1307
1308 2010-09-16  Bruno Haible  <bruno@clisp.org>
1309
1310         New module 'tcgetsid'.
1311         * lib/tcgetsid.c: New file.
1312         * m4/tcgetsid.m4: New file.
1313         * modules/tcgetsid: New file.
1314         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1315         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1316         GNULIB_TCGETSID, HAVE_TCGETSID.
1317         * lib/termios.in.h: Include <sys/types.h>.
1318         (tcgetsid): New declaration.
1319         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1320         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1321         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1322         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1323
1324 2010-09-16  Bruno Haible  <bruno@clisp.org>
1325
1326         Tests for module 'termios'.
1327         * modules/termios-c++-tests: New file.
1328         * modules/termios-tests: New file.
1329         * tests/test-termios-c++.cc: New file.
1330         * tests/test-termios.c: New file.
1331
1332         New module 'termios'.
1333         * modules/termios: New file.
1334         * lib/termios.in.h: New file.
1335         * m4/termios_h.m4: New file.
1336         * doc/posix-headers/termios.texi: Mention the new module.
1337
1338 2010-09-16  Eric Blake  <eblake@redhat.com>
1339
1340         fdutimensat: add an atflag parameter
1341         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1342         * lib/utimens.h (fdutimensat): Update prototype.
1343         * tests/test-fdutimensat.c: Adjust test to match.
1344         * NEWS: Document the change.
1345         Suggested by Paul Eggert.
1346
1347 2010-09-16  Bruno Haible  <bruno@clisp.org>
1348
1349         Fix typos in comments.
1350         * lib/striconveh.h: Fix typo in comment.
1351         * lib/login_tty.c (login_tty): Likewise.
1352
1353 2010-09-15  Bruno Haible  <bruno@clisp.org>
1354
1355         stdlib: clarify MirBSD WEXITSTATUS bug
1356         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1357         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1358
1359 2010-09-15  Eric Blake  <eblake@redhat.com>
1360
1361         stdlib: work around MirBSD WEXITSTATUS bug
1362         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1363         * modules/stdlib (Depends-on): Add sys_wait.
1364         * tests/test-sys_wait.c (main): Enhance test.
1365         * tests/test-stdlib.c (main): Likewise.
1366         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1367
1368         docs: mention MacOS issue with WEXITSTATUS(constant)
1369         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1370         issue.
1371         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1372
1373         strnlen: add tests
1374         * modules/strnlen-tests: New file.
1375         * tests/test-strnlen.c: Likewise.
1376
1377 2010-09-14  Bruno Haible  <bruno@clisp.org>
1378
1379         unistr/base: Avoid link errors when module 'libunistring' is also used.
1380         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1381         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1382         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1383         Declare also when HAVE_LIBUNISTRING is set.
1384         Reported by Pádraig Brady <P@draigbrady.com>.
1385
1386 2010-09-14  Eric Blake  <eblake@redhat.com>
1387
1388         test-rawmemchr: make more robust
1389         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1390         (Depends-on, configure.ac): Add needed prerequisites to use it.
1391         * modules/memchr-tests (Files, Depends-on, configure.ac):
1392         Likewise, to avoid implicit reliance on memchr module prereqs.
1393         * tests/test-memchr.c (main): Ensure proper masking.
1394         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
1395         reads.
1396
1397         memchr: detect glibc Alpha bug
1398         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
1399         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
1400         Alpha.
1401         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
1402         * tests/test-memchr.c (main): Enhance test.
1403         Reported by Nelson H. F. Beebe.
1404
1405 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1406
1407         fts, getcwd, glob: audit for dirfd returning -1
1408         * lib/fts.c (opendir): Remove #define; no longer used.
1409         (opendirat): New arg PDIR_FD.  All callers changed.
1410         (fts_build, _opendir2): Use new opendirat to avoid the need for
1411         dirfd, or for checking whether dirfd returns a negative value.
1412         Don't use opendir; always use openat followed by fdopendir.
1413         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
1414         it.
1415         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
1416         returns -1 here.
1417         * modules/fts (Depends-on): Remove dirfd.
1418         * modules/getcwd (Depends-on): Likewise.
1419
1420 2010-09-13  Eric Blake  <eblake@redhat.com>
1421
1422         float: fix broken MirBSD header
1423         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
1424         * doc/posix-headers/float.texi (float.h): Document it.
1425
1426 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1427
1428         fts: use O_NOFOLLOW to avoid race condition when opening a directory
1429         * lib/fts.c (opendirat): New arg extra_flags.
1430         (__opendir2): Use it to avoid following symlinks when opening
1431         a directory, if symlinks are not supposed to be followed.  See
1432         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
1433
1434         fdopendir: preserve argument fd before returning
1435         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
1436         (fdopendir_with_dup, fd_clone_opendir): New static functions.
1437         (fdopendir): Use them, arranging for FD to be open to the same
1438         directory that it was when it started.  (It might be temporarily
1439         closed while fdopendir is running, so this not thread- or
1440         signal-safe.)  Be careful to do the right thing even when file
1441         descriptors are scarce and dup fails with errno == EMFILE.  See
1442         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
1443
1444 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
1445
1446         regex: Pass the system regex if its only problem is 32-bit regoff_t.
1447         * NEWS: Document change.
1448         * m4/regex.m4: Disable test for regoff_t size.
1449
1450 2010-09-13  Jim Meyering  <meyering@redhat.com>
1451
1452         fts: don't operate on an invalid file descriptor after failed dup
1453         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
1454         negative file descriptor.
1455
1456 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1457
1458         savedir: add streamsavedir, deprecate fdsavedir
1459         * NEWS: Mention deprecation of fdsavedir.
1460         * lib/savedir.c (streamsavedir): New extern function, whose name
1461         ends in "savedir" to be consistent with the others.  This differs
1462         from savedirstream in that it doesn't close its argument.  The
1463         next version of GNU tar will use this instead of fdsavedir, to
1464         avoid some race conditions and conserve file descriptors.
1465         (savedirstream): Reimplement as a wrapper around streamsavedir.
1466         (fdsavedir): Add a comment deprecating this function.  As far as
1467         I know, only GNU tar used it, and GNU tar doesn't need it any more.
1468         * lib/savedir.h (streamsavedir): New decl.
1469         (fdsavedir): Add a comment deprecating this.
1470
1471 2010-09-10  Bruno Haible  <bruno@clisp.org>
1472
1473         langinfo: Fix last commit.
1474         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
1475         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
1476         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1477
1478 2010-09-10  Bruno Haible  <bruno@clisp.org>
1479
1480         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
1481         * lib/progreloc.c (O_EXEC): Define fallback.
1482
1483 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1484
1485         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
1486         * NEWS: Document recent changes to fcntl-h.
1487         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
1488         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
1489         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
1490         Similarly for O_SEARCH; this last was already true, but not documented.
1491         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
1492         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
1493         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
1494         Likewise.
1495         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
1496         is zero, not whether it is defined.
1497         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
1498         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
1499         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
1500
1501 2010-09-10  Bruno Haible  <bruno@clisp.org>
1502
1503         langinfo, nl_langinfo: Fix for IRIX 5.3.
1504         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
1505         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
1506         HAVE_LANGINFO_YESEXPR.
1507         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
1508         HAVE_LANGINFO_YESEXPR.
1509         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
1510         HAVE_LANGINFO_T_FMT_AMPM is 0.
1511         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
1512         HAVE_LANGINFO_YESEXPR is 0.
1513         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
1514         NOEXPR.
1515         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
1516         * doc/posix-functions/nl_langinfo.texi: Likewise.
1517         Reported by Eric Blake.
1518
1519 2010-09-10  Bruno Haible  <bruno@clisp.org>
1520
1521         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
1522         * doc/glibc-functions/login_tty.texi: Mention the include file problem
1523         on FreeBSD 8.0 and OpenBSD 4.6.
1524         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
1525         * m4/pty_h.m4 (gl_PTY_H): Likewise.
1526         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
1527         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
1528         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
1529         ac_includes_default.
1530         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1531
1532 2010-09-09  Eric Blake  <eblake@redhat.com>
1533
1534         strsignal: work around NetBSD bug
1535         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
1536         * lib/string.in.h (includes): Likewise.
1537         * doc/posix-functions/strsignal.texi (strsignal): Document the
1538         bug.
1539         Reported by Nelson H. F. Beebe.
1540
1541         gnulib-tool: work with NetBSD /bin/sh
1542         * gnulib-tool (func_cache_var, func_cache_lookup_module)
1543         (func_get_description, func_get_comment, func_get_status)
1544         (func_get_notice, func_get_applicability, func_get_filelist)
1545         (func_get_dependencies, func_get_autoconf_early_snippet)
1546         (func_get_autoconf_snippet, func_get_automake_snippet)
1547         (func_get_include_directive, func_get_link_directive)
1548         (func_get_license, func_get_maintainer, func_import): Avoid
1549         shell syntax errors from parsing syntax extensions.
1550
1551 2010-09-09  Bruno Haible  <bruno@clisp.org>
1552
1553         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1554         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
1555         a reliable way to determine whether the 'alias' command works.
1556
1557 2010-09-08  Jim Meyering  <meyering@redhat.com>
1558
1559         init.sh: penalize a set-x-impaired shell; don't disqualify it
1560         * tests/init.sh: Too many shells corrupt application stderr when
1561         you set -x, so we can't afford to disqualify them, since at least
1562         on Irix-6.5, that would disqualify all bourne shells.
1563         Instead, use a two-pass approach.
1564         On the first pass, try to find a shell that meets the stricter
1565         condition that set -x does not corrupt stderr.
1566         If no shell meets the stricter condition, retest each candidate
1567         shell, but without that extra condition.  Finally, when
1568         VERBOSE=yes is requested and set -x might cause trouble, simply
1569         issue a warning and refrain from enabling debug output.
1570
1571 2010-09-08  Eric Blake  <eblake@redhat.com>
1572
1573         unsetenv: fix OpenBSD bug
1574         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
1575         * doc/posix-functions/unsetenv.texi (unsetenv): Update
1576         documentation.
1577         Reported by Jim Meyering.
1578
1579         strtod: work around IRIX 6.5 bug
1580         * lib/strtod.c (strtod): Reparse number on shorter string if
1581         exponent parse was invalid.
1582         * tests/test-strtod.c (main): Add check for "0x1p 2".
1583         Reported by Tom G. Christensen.
1584
1585         getopt: optimize previous patch
1586         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
1587         empty variable.  Speed up awk script.
1588         Reported by Paolo Bonzini.
1589
1590 2010-09-08  Jim Meyering  <meyering@redhat.com>
1591
1592         test.sh: disqualify shells for which set -x corrupts stderr
1593         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
1594         and OpenBSD 4.7.  They make it so with "set -x", environment settings
1595         appear in stderr output.  For example, this command:
1596             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
1597         prints "P=1" on those two systems:
1598
1599 2010-09-08  Bruno Haible  <bruno@clisp.org>
1600
1601         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1602         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
1603         commands, because some shells ignore redirections when there is an
1604         error in the command lookup.
1605         Reported by Eric Blake.
1606
1607 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
1608
1609         * lib/regex.h: Fix a mention of `regex_compile' (should be
1610         `re_compile_pattern').
1611         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
1612         (re_set_registers): Correct name of parameter in comment.
1613
1614         * doc/regex.texi: Add documentation for missing syntax flags.
1615         Remove commented-out documentation of defunct syntax option
1616         RE_NO_EMPTY_ALTS.
1617         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
1618         Add documentation of re_set_registers.
1619         Document trick to re-use a pattern buffer by setting fastmap manually.
1620         Update documentation of struct re_pattern_buffer per public members.
1621         Uncomment documentation of equivalence class operators and
1622         collating symbol operators, since they are now implemented,
1623         Explain leftmost-longest matching in relation to alternatives.
1624         Tidy documentation of substring matching.
1625         Remove POSIX documentation, which is done better in
1626         glibc, and refer the reader there. Keep BSD API documentation, as
1627         that is not readily available elsewhere.
1628
1629 2010-09-07  Eric Blake  <eblake@redhat.com>
1630
1631         getopt: handle POSIXLY_CORRECT set but not exported
1632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
1633         export state of POSIXLY_CORRECT, due to bash set -o posix.
1634         Reported by Dustin J. Mitchell.
1635
1636 2010-09-05  Bruno Haible  <bruno@clisp.org>
1637
1638         gnulib-tool: Highlight the changed options.
1639         * gnulib-tool (func_usage): Display the --import, --add-import,
1640         --remove-import explanations in bold font.
1641
1642 2010-09-06  Karl Berry  <karl@gnu.org>
1643
1644         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
1645
1646 2010-09-05  Bruno Haible  <bruno@clisp.org>
1647
1648         uniwidth/width: Update comment.
1649         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
1650         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
1651
1652 2010-09-05  Bruno Haible  <bruno@clisp.org>
1653
1654         isinf, isnan: Relax license.
1655         * modules/isinf (License): Change from GPL to LGPL, with consent from
1656         Ben Pfaff.
1657         * modules/isnan (License): Likewise.
1658         Requested by Ludovic Courtès.
1659
1660 2010-09-04  Bruno Haible  <bruno@clisp.org>
1661
1662         gnulib-tool: Help migration from --import to --add-import or --update.
1663         * gnulib-tool: Emit a verbose error message when --import is used
1664         without any module name.
1665
1666 2010-09-04  Bruno Haible  <bruno@clisp.org>
1667
1668         Update doc about gnulib-tool.
1669         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
1670         'gnulib-tool --update' in more detail.
1671         Reported by Eric Blake.
1672
1673 2010-09-04  Bruno Haible  <bruno@clisp.org>
1674
1675         gnulib-tool: Change --import. New options --add/remove-import.
1676         * gnulib-tool: New options --add-import, --remove-import.
1677         (func_usage): Document them.
1678         (have_associative): Define always.
1679         (func_import): In import mode, don't merge the specified settings with
1680         the cached settings. Implement remove-import mode.
1681         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
1682         Explain when to use them versus --import.
1683         (Simple update): Use --add-import instead of --import.
1684         * NEWS: Mention the change.
1685
1686 2010-09-04  Bruno Haible  <bruno@clisp.org>
1687
1688         * doc/gnulib-tool.texi (Initial import): Update paragraph about
1689         separate gnulib.mk.
1690
1691 2010-09-04  Bruno Haible  <bruno@clisp.org>
1692
1693         gnulib-tool: Don't talk about CVS any more.
1694         * gnulib-tool (func_usage, func_import): Write "version control"
1695         instead of CVS.
1696
1697 2010-09-04  Jim Meyering  <meyering@redhat.com>
1698
1699         maint.mk: avoid obscure sc_copyright_check failure in coreutils
1700         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
1701         false positives (whose names may be ill-chosen) when searching
1702         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
1703         would cause a false-positive.
1704
1705         avoid coreutils "make distcheck" failure
1706         Coreutils tests with an absolute build directory name that contains
1707         a space.  Not quoting this directory name caused a failure.
1708         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
1709         * tests/test-vc-list-files-cvs.sh: Likewise.
1710
1711 2010-09-04  Bruno Haible  <bruno@clisp.org>
1712
1713         gnulib-tool: Avoid error when run in a package without Makefile.am.
1714         * gnulib-tool: When collecting the m4dirs in a package that does not
1715         have a Makefile.am, eliminate those directories that contain no
1716         gnulib-cache.m4. Fix expression that counts these directories.
1717
1718 2010-09-04  Bruno Haible  <bruno@clisp.org>
1719
1720         update-copyright test: Improve output when perl is missing or too old.
1721         * tests/test-update-copyright.sh: Move test of Perl version down after
1722         the test whether Perl exists. Provide an explanation relating Perl's
1723         error message to Automake's SKIP: message.
1724
1725 2010-09-04  Bruno Haible  <bruno@clisp.org>
1726
1727         Don't augment PATH in TESTS_ENVIRONMENT.
1728         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
1729         set abs_aux_dir instead of augmenting PATH.
1730         * modules/vc-list-files-tests (Makefile.am): Likewise.
1731         * tests/test-update-copyright.sh: Augment PATH here.
1732         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
1733         path_prepend_.
1734         * tests/test-vc-list-files-git.sh: Likewise.
1735
1736 2010-09-04  Jim Meyering  <meyering@redhat.com>
1737
1738         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
1739         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
1740
1741 2010-09-04  Bruno Haible  <bruno@clisp.org>
1742
1743         strdup: Fix compilation error in C++ mode.
1744         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
1745         the macro.
1746
1747 2010-09-04  Bruno Haible  <bruno@clisp.org>
1748
1749         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
1750         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
1751         macro into a function.
1752         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1753
1754 2010-09-04  Bruno Haible  <bruno@clisp.org>
1755
1756         Set PATH_SEPARATOR the same way autoconf does.
1757         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
1758         the value of PATH_SEPARATOR the same way autoconf-generated configure
1759         scripts do.
1760         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
1761         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
1762
1763 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1764
1765         Set PATH_SEPARATOR the same way autoconf does.
1766         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
1767         the same way autoconf-generated configure scripts do.
1768         * posix-modules: Likewise.
1769
1770 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1771
1772         hash: fix safe_hasher const typo
1773         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
1774         const; otherwise, there is a type error later.
1775
1776 2010-09-02  Jim Meyering  <meyering@redhat.com>
1777
1778         test-update-copyright.sh: require perl 5.8.0
1779         * tests/test-update-copyright.sh: Require 5.8.0,
1780         which Tom G. Christensen has confirmed is adequate,
1781         while 5.6.1 is not.
1782
1783 2010-09-02  Eric Blake  <eblake@redhat.com>
1784
1785         tests: init.sh improvements for re-exec'ing with zsh
1786         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
1787         -vx through shell re-exec.
1788         Reported by Tom G. Christensen.
1789
1790         wctype: fix typo in previous commit
1791         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
1792         Reported by Ludovic Courtès.
1793
1794 2010-09-02  Jim Meyering  <meyering@redhat.com>
1795
1796         test-update-copyright.sh: skip test if Perl is too old
1797         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
1798         Reported by Tom G. Christensen.
1799
1800 2010-09-02  Bruno Haible  <bruno@clisp.org>
1801
1802         wctype: Avoid compilation error on IRIX 6.5.30.
1803         * lib/wctype.in.h (iswblank): Declare with a replacement if
1804         REPLACE_ISWBLANK is set.
1805         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
1806         declared. Set REPLACE_ISWBLANK.
1807         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
1808         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
1809         * doc/posix-headers/wctype.texi: Likewise.
1810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1811
1812 2010-09-01  Bruno Haible  <bruno@clisp.org>
1813
1814         New module 'socketlib'.
1815         * modules/socketlib: New file.
1816         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
1817         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
1818         * modules/sockets (Depends-on): Add socketlib.
1819         Suggested by Sam Steingold <sds@gnu.org>.
1820
1821 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1822
1823         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
1824
1825         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
1826         when one needs search access to a directory but not read access.
1827         On systems where it is available, it works in some cases where
1828         O_RDONLY does not, namely on directories that are searchable but
1829         not readable, and which need only to be searchable.  If O_SEARCH
1830         is not available, fall back to the traditional method of using
1831         O_RDONLY.
1832
1833         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
1834         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
1835         when opening a directory that needs only to be searchable.
1836         * lib/chdir-safer.c (chdir_no_follow): Likewise.
1837         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
1838         * lib/openat-proc.c (openat_proc_name): Likewise.
1839         * lib/openat.c (openat_needs_fchdir): Likewise.
1840         * lib/save-cwd.c (save_cwd): Likewise.
1841         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
1842
1843 2010-08-28  Bruno Haible  <bruno@clisp.org>
1844
1845         New module 'host-cpu-c-abi'.
1846         * modules/host-cpu-c-abi: New file.
1847         * m4/host-cpu-c-abi.m4: New file, based on part of
1848         clisp/src/m4/general.m4.
1849         Requested by Sam Steingold <sds@gnu.org>.
1850
1851 2010-08-31  Eric Blake  <eblake@redhat.com>
1852         and Jim Meyering  <meyering@redhat.com>
1853
1854         hash: factor, and guard against misbehaving hasher function
1855         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
1856         of table->hasher's return value.  Also protect against a hash value
1857         so large that adding it to table->bucket results in a NULL pointer.
1858         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
1859         Use it in place of open-coded check-and-abort.
1860
1861 2010-08-30  Bruno Haible  <bruno@clisp.org>
1862
1863         hash: silence spurious clang warning
1864         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
1865         Reported by Eric Blake.
1866
1867 2010-08-30  Eric Blake  <eblake@redhat.com>
1868
1869         strstr, memmem, strcasestr: avoid leaked shell message
1870         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
1871         FreeBSD.
1872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1873         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1874
1875         tests: silence clang warning
1876         * tests/test-malloca.c (do_allocation): Avoid dead store.
1877
1878 2010-08-29  Bruno Haible  <bruno@clisp.org>
1879
1880         gettext: Fix recent mistake.
1881         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
1882
1883 2010-08-29  Bruno Haible  <bruno@clisp.org>
1884
1885         selinux-h: Offer a --without-selinux option.
1886         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
1887         --without-selinux was specified, skip all tests and define
1888         HAVE_SELINUX_SELINUX_H to 0.
1889         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
1890         set LIB_SELINUX to empty.
1891         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
1892         gl_LIBSELINUX. If --without-selinux was specified, replace
1893         selinux/context.h.
1894         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
1895
1896 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1897             Bruno Haible  <bruno@clisp.org>
1898
1899         Make the module 'realloc-gnu' work again on AIX and OSF/1.
1900         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
1901         of HAVE_REALLOC.
1902         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
1903         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
1904         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
1905         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
1906
1907 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1908             Bruno Haible  <bruno@clisp.org>
1909
1910         Make the module 'calloc-gnu' work again on AIX and OSF/1.
1911         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
1912         HAVE_CALLOC.
1913         * lib/xmalloc.c: Update accordingly.
1914         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
1915         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
1916         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
1917
1918 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1919             Bruno Haible  <bruno@clisp.org>
1920
1921         Make the module 'malloc-gnu' work again on AIX and OSF/1.
1922         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
1923         HAVE_MALLOC.
1924         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
1925         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
1926         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
1927
1928 2010-08-29  Bruno Haible  <bruno@clisp.org>
1929
1930         Update modules list.
1931         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1932         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
1933         (String handling <string.h>): Add astrxfrm.
1934         (File system functions): Add readlinkat.
1935
1936 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1937
1938         Tests for module 'realloc-gnu'.
1939         * modules/realloc-gnu-tests: New file.
1940         * tests/test-realloc-gnu.c: New file.
1941
1942         Tests for module 'calloc-gnu'.
1943         * modules/calloc-gnu-tests: New file.
1944         * tests/test-calloc-gnu.c: New file.
1945
1946         Tests for module 'malloc-gnu'.
1947         * modules/malloc-gnu-tests: New file.
1948         * tests/test-malloc-gnu.c: New file.
1949
1950 2010-08-28  Bruno Haible  <bruno@clisp.org>
1951
1952         Rename module 'realloc' -> 'realloc-gnu'.
1953         * modules/realloc-gnu: New file, copied from modules/realloc.
1954         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
1955         obsolete.
1956         * modules/mgetgroups (Depends-on): Update.
1957         * doc/posix-functions/realloc.texi: Update.
1958         * NEWS: Mention the change.
1959
1960         Rename module 'calloc' -> 'calloc-gnu'.
1961         * modules/calloc-gnu: New file, copied from modules/calloc.
1962         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
1963         obsolete.
1964         * doc/posix-functions/calloc.texi: Update.
1965         * NEWS: Mention the change.
1966
1967         Rename module 'malloc' -> 'malloc-gnu'.
1968         * modules/malloc-gnu: New file, copied from modules/malloc.
1969         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
1970         obsolete.
1971         * modules/argp (Depends-on): Update.
1972         * modules/regex (Depends-on): Update.
1973         * doc/posix-functions/malloc.texi: Update.
1974         * NEWS: Mention the change.
1975
1976 2010-08-28  Eric Blake  <eblake@redhat.com>
1977
1978         pread, pwrite: add missing dependency
1979         * modules/pread (Depends-on): Add extensions.
1980         * modules/pwrite (Depends-on): Likewise.
1981
1982 2010-08-28  Bruno Haible  <bruno@clisp.org>
1983
1984         unistr/u*-strchr: Fix tests dependencies.
1985         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
1986         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
1987         Reported by Ian Beckwith <ianb@erislabs.net>.
1988
1989 2010-08-28  Bruno Haible  <bruno@clisp.org>
1990
1991         read-file: Don't occupy too much unused memory.
1992         * lib/read-file.c (fread_file): Shrink the buffer at the end.
1993
1994 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
1995             Eric Blake  <eblake@redhat.com>
1996             Bruno Haible  <bruno@clisp.org>
1997
1998         read-file: Avoid memory reallocations with regular files.
1999         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2000         (fread_file): With regular files, use the remaining length as the
2001         initial buffer size.  Check against overflow.
2002         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2003         sys_stat.
2004
2005 2010-08-28  Bruno Haible  <bruno@clisp.org>
2006
2007         ftello: Relax license.
2008         * modules/ftello (License): Relax to LGPLv2+.
2009         Reported by Eric Blake.
2010
2011 2010-08-28  Bruno Haible  <bruno@clisp.org>
2012
2013         Avoid relocwrapper link errors due to gnulib replacement functions.
2014         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2015         function.
2016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2017
2018 2010-08-28  Bruno Haible  <bruno@clisp.org>
2019
2020         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2021         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2022         defined.
2023         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2024         Suggested by Eric Blake.
2025
2026 2010-08-28  Bruno Haible  <bruno@clisp.org>
2027
2028         sys_socket, netdb: Ensure socklen_t gets defined.
2029         * modules/sys_socket (Depends-on): Add socklen.
2030         * modules/netdb (Depends-on): Likewise.
2031         * modules/getaddrinfo (Depends-on): Remove socklen.
2032         * modules/getsockopt (Depends-on): Likewise.
2033         * modules/setsockopt (Depends-on): Likewise.
2034         * tests/test-sys_socket.c: Check that socklen_t is defined.
2035         * tests/test-netdb.c: Likewise.
2036         * m4/socklen.m4: Update comments.
2037         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2038
2039 2010-08-27  Eric Blake  <eblake@redhat.com>
2040
2041         login_tty: add missing dependency
2042         * modules/login_tty (Depends-on): Add pty.
2043
2044 2010-08-26  Eric Blake  <eblake@redhat.com>
2045
2046         lib-symbol-versions: fix m4 quoting
2047         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2048         format for AC_LINK_IFELSE.
2049
2050         glob: fix compile test
2051         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2052
2053         btowc: fix missing file
2054         * modules/btowc (Files): Also ship locale-fr.m4.
2055
2056         lseek: fix link test
2057         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2058         AC_LINK_IFELSE.
2059
2060         include_next: silence autoconf 2.68 warning
2061         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2062         AC_COMPILE_IFELSE as special.
2063         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2064         autoconf < 2.68.
2065
2066         acl: fix compilation test
2067         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2068         AC_COMPILE_IFELSE.
2069
2070 2010-08-26  Bruno Haible  <bruno@clisp.org>
2071
2072         Modernize AC_TRY_RUN invocations.
2073         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2074         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2075         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2076         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2077         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2078         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2079         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2081         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2082         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2083         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2084         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2085         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2086         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2087         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2088         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2089         gl_MBRLEN_NUL_RETVAL): Likewise.
2090         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2091         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2092         Likewise.
2093         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2094         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2095         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2096         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2097         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2098         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2099         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2100         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2101         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2102         Likewise.
2103         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2104         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2105         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2106         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2107         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2108         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2109         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2110         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2111         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2112         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2113
2114 2010-08-26  Bruno Haible  <bruno@clisp.org>
2115
2116         Modernize AC_TRY_LINK invocations.
2117         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2118         AC_TRY_LINK.
2119         * m4/argp.m4 (gl_ARGP): Likewise.
2120         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2121         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2122         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2123         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2124         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2125         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2126         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2127         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2128         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2129         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2130         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2131         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2132         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2133         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2134         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2135         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2136         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2137         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2138         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2139         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2140         Likewise.
2141         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2142         Likewise.
2143         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2144         Likewise.
2145         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2146         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2147         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2148         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2149         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2150         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2151         * m4/servent.m4 (gl_SERVENT): Likewise.
2152         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2153         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2154         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2155         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2156         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2157         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2158         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2159         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2160         * modules/tsearch-tests (configure.ac): Likewise.
2161
2162 2010-08-26  Bruno Haible  <bruno@clisp.org>
2163
2164         Modernize AC_TRY_COMPILE invocations.
2165         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2166         AC_TRY_COMPILE.
2167         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2168         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2169         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2170         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2171         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2172         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2173         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2174         * m4/lock.m4 (gl_LOCK): Likewise.
2175         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2176         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2177         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2178         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2179         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2180         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2181         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2182         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2183         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2184         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2185         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2186         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2187         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2188         extraneous semicolon.
2189
2190 2010-08-26  Jim Meyering  <meyering@redhat.com>
2191
2192         stat-time: relax license LGPL
2193         * modules/stat-time (License): Change from GPL to LGPL,
2194         with consent from all contributors, for use in libguile.
2195         Requested by Ludovic Courtès.
2196
2197 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2198
2199         poll: return immediately on POLLHUP.
2200         * lib/poll.c (poll): Always set timeout before wait_timeout is
2201         computed.
2202
2203 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2204
2205         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2206         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2207         rmdir ("dir/.//"), unlinkat.
2208
2209 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2210
2211         stdbool: avoid spurious failure with modern xlc
2212         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2213
2214 2010-08-24  Bruno Haible  <bruno@clisp.org>
2215
2216         getloadavg: simplify code
2217         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2218         gl_have_func. Update comments.
2219
2220 2010-08-24  Eric Blake  <eblake@redhat.com>
2221
2222         getloadavg: don't define SVR4 on cygwin
2223         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
2224         only define SVR4 when -lkvm is required.
2225         Reported by Yaakov Selkowitz.
2226
2227 2010-08-24  Bruno Haible  <bruno@clisp.org>
2228
2229         priv-set: fix comment
2230         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
2231
2232 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2233
2234         priv-set: fix comments
2235         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
2236         to match code, as suggested by David Bartley in:
2237         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
2238
2239 2010-08-23  Eric Blake  <eblake@redhat.com>
2240
2241         stdbool: avoid rejecting clang
2242         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2243         * tests/test-stdbool.c: Enable more tests if using the system
2244         <stdbool.h> instead of the gnulib replacement.
2245         (main): Move xlc bug test to a runtime test for all compilers.
2246         Reported by Anders Kaseorg.
2247
2248         argz: fix shell quoting issue
2249         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
2250         Reported by Charles Wilson.
2251
2252 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
2253             Erik Faye-Lund <kusmabite@gmail.com>
2254
2255         poll, select: handle ERROR_BROKEN_PIPE.
2256         * lib/poll.c (win32_compute_revents): Return POLLHUP when
2257         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2258         * lib/select.c (win32_compute_revents): Do not mark a pipe
2259         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2260
2261 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
2262
2263         fts: allow compilation with C++
2264         * lib/fts_.h: Specify extern "C" linkage with C++.
2265
2266 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2267
2268         Fix gnulib-tool sed script de-commentation for AIX sed.
2269         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2270         sed.
2271
2272 2010-08-17  Eric Blake  <eblake@redhat.com>
2273
2274         test-stddef: test for (some) offsetof bugs
2275         * tests/test-stddef.c: Enhance test to ensure correct type of
2276         offsetof.
2277         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2278         that we are not fixing at this time.
2279
2280 2010-08-15  Bruno Haible  <bruno@clisp.org>
2281
2282         stpncpy: Allow stpncpy to be defined as a macro.
2283         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2284         if it's already correctly declared.
2285         * lib/string.in.h (stpncpy): Undefine before redefining.
2286         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2287
2288 2010-08-14  Bruno Haible  <bruno@clisp.org>
2289
2290         Rename module 'memxfrm' to 'amemxfrm'.
2291         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2292         (amemxfrm): Renamed from memxfrm.
2293         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2294         (amemxfrm): Renamed from memxfrm.
2295         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2296         * NEWS: Mention the change.
2297         * MODULES.html.sh (String handling <string.h>): Update.
2298         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2299         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2300         * lib/unicase/u16-casexfrm.c: Likewise.
2301         * lib/unicase/u32-casexfrm.c: Likewise.
2302         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2303         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2304         * lib/uninorm/u16-normxfrm.c: Likewise.
2305         * lib/uninorm/u32-normxfrm.c: Likewise.
2306         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2307         memxfrm.
2308         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2309         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2310         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2311         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2312         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2313         Suggested by Paul Eggert.
2314
2315 2010-08-14  Bruno Haible  <bruno@clisp.org>
2316
2317         Tests for module 'astrxfrm'.
2318         * modules/astrxfrm-tests: New file.
2319         * tests/test-astrxfrm.c: New file.
2320
2321         New module 'astrxfrm'.
2322         * lib/astrxfrm.h: New file.
2323         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2324         * modules/astrxfrm: New file.
2325
2326 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2327
2328         regex: Tweak doc.
2329         * doc/regex.texi (Overview): Don't mention regex.c.
2330         (GNU Regular Expression Compiling): Likewise.
2331         (Match-end-of-line Operator): Mention 'not_eol'.
2332
2333 2010-08-14  Brian Gough  <bjg@gnu.org>
2334             Bruno Haible  <bruno@clisp.org>
2335
2336         git-merge-changelog: add doc relating to use with bzr and hg.
2337         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2338
2339 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2340
2341         pthread: fix pthread.h creation for srcdir != builddir
2342         * modules/pthread (Makefile.am): Fix the rule to work also in a
2343         non-srcdir build.
2344
2345 2010-08-13  Karl Berry  <karl@gnu.org>
2346
2347         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2348         * doc/posix-*/*: force line break before @url of POSIX
2349         specifications.
2350         Suggested by Werner Lemberg.
2351
2352 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2353
2354         strtod: fix const diagnostic
2355         * lib/strtod.c (strtod): Don't assign const char * to char *,
2356         as this elicits a warning from GCC when warnings are enabled.
2357
2358 2010-08-10  Pádraig Brady <P@draigbrady.com>
2359         and Eric Blake  <eblake@redhat.com>
2360
2361         copy-acl: ignore ENOTSUP on HP-UX
2362         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2363         so that it is available for HP-UX.
2364         * lib/copy-acl.c (qcopy_acl): Use it.
2365         Reported by Patrick M. Callahan.
2366
2367 2010-08-10  Eric Blake  <eblake@redhat.com>
2368
2369         open, chown: relax license
2370         * modules/open (License): Change to LGPLv2+, with consent by all
2371         authors, for use in augeas.
2372         * modules/chown (License): Likewise.
2373         * modules/lchown (Likewise): Likewise.
2374         Requested by Adam Stokes.
2375
2376 2010-08-09  Karl Berry  <karl@gnu.org>
2377
2378         * build-aux/ar-lib: new file, import from Automake.
2379         * config/srclist.txt: autocheck for updates.
2380
2381 2010-08-09  Eric Blake  <eblake@redhat.com>
2382
2383         readlinkat: adjust client modules
2384         * modules/areadlinkat (Depends-on): Use readlinkat, not
2385         symlinkat.
2386         * modules/areadlinkat-with-size (Depends-on): Likewise.
2387
2388         mknod: be more vocal about danger of running tests as root
2389         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2390         root, since that is just asking for problems.
2391         Suggested by Bruno Haible, based on a report by Rainer Tammer.
2392
2393         readlinkat: split into its own module
2394         * modules/symlinkat: Split readlinkat...
2395         * modules/readlinkat: ...into separate module.
2396         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
2397         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
2398         * lib/symlinkat.c (readlinkat): Move...
2399         * lib/readlinkat.c: ...into new file.
2400         * modules/symlinkat-tests: Split readlinkat test...
2401         * modules/readlinkat-tests: ...into separate module.
2402         * tests/test-symlinkat.c: Split...
2403         * tests/test-readlinkat.c: ...into new file.
2404         * NEWS: Document the split.
2405         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2406         * lib/unistd.in.h (readlinkat): Likewise.
2407         Suggested by Bruno Haible.
2408
2409 2010-08-08  Bruno Haible  <bruno@clisp.org>
2410
2411         memxfrm: Speed up.
2412         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
2413         that usually only one call to strxfrm is necessary for each string
2414         part.
2415         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2416
2417 2010-08-07  Karl Berry  <karl@gnu.org>
2418
2419         * doc/posix-headers/limits.texi,
2420         * doc/posix-functions/malloc.texi,
2421         * doc/posix-functions/strsignal.texi: missing @item.
2422         * doc/ld-version-script.texi: spurious leading i.
2423         * doc/regex.texi (Interval Operators): no commas inside @var.
2424
2425 2010-08-01  Bruno Haible  <bruno@clisp.org>
2426
2427         Integrate the regex documentation.
2428         * doc/gnulib.texi: Define 'cn' index.
2429         (Regular expressions): New a chapter that includes regex.texi and
2430         regexprops-generic.texi.
2431         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
2432         syntax.
2433
2434         Whitespace cleanup.
2435         * doc/regex.texi: Remove trailing spaces.
2436
2437         Add regex documentation.
2438         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
2439         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
2440         Written by Kathy A. Hargreaves and Karl Berry.
2441
2442 2010-08-01  Bruno Haible  <bruno@clisp.org>
2443
2444         link: Update documentation.
2445         * doc/posix-functions/link.texi: Update regarding Solaris.
2446
2447 2010-07-31  Bruno Haible  <bruno@clisp.org>
2448
2449         Update modules list.
2450         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
2451         (String handling <string.h>): Add memcmp2, memxfrm.
2452         (Container data structures): Add xlist, xsublist, xoset.
2453         (Core language properties): Add alignof, unused-parameter.
2454         (Process control, Numeric conversion functions <stdlib.h>): Renamed
2455         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
2456         (Unibyte characters <ctype.h>): New section.
2457         (String handling <string.h>): New section.
2458         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
2459         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
2460         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
2461         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
2462         tan, tanh, tanl, y0, y1, yn.
2463         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
2464         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
2465         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
2466         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
2467         unlockpt, vdprintf, vdprintf-posix.
2468         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
2469         (File system functions): Add concat-filename, sys_file, sys_ioctl,
2470         xconcat-filename.
2471         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
2472         getdtablesize, pipe2, pipe2-safer.
2473         (Security): New section.
2474         (Networking functions): Add accept4.
2475         (Signal handling): Add sigpipe.
2476         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
2477         mbmemcasecoll.
2478         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
2479         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
2480         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
2481         pipe-filter-ii.
2482         (Misc): Add argp-version-etc, login_tty, parse-duration.
2483
2484 2010-07-31  Bruno Haible  <bruno@clisp.org>
2485
2486         Improve doc in MODULES.html.
2487         * modules/linkat (Description): Add the word "function".
2488         * modules/mkfifo (Description): Likewise.
2489         * modules/mknod (Description): Likewise.
2490         * modules/remove (Description): Likewise.
2491         * modules/renameat (Description): Likewise.
2492         * modules/stat (Description): Likewise.
2493         * modules/symlink (Description): Likewise.
2494         * modules/unlink (Description): Likewise.
2495
2496 2010-07-31  Bruno Haible  <bruno@clisp.org>
2497
2498         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
2499         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
2500         option --enable/disable-c++ instead of --enable/disable-cxx.
2501         * NEWS: Mention the change.
2502
2503 2010-07-31  Bruno Haible  <bruno@clisp.org>
2504
2505         readlink, areadlink: Relax test a bit.
2506         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
2507         alternative to ENOTDIR.
2508         * tests/test-areadlink.h (test_areadlink): Likewise.
2509         Reported by Rainer Tammer.
2510
2511 2010-07-31  Bruno Haible  <bruno@clisp.org>
2512
2513         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
2514         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
2515         character, perform the search using U_STRCHR.
2516         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
2517         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
2518         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
2519         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
2520         Suggested by Paolo Bonzini.
2521
2522 2010-07-31  Bruno Haible  <bruno@clisp.org>
2523
2524         unistr/u*-strstr: Fix dependencies.
2525         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
2526         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
2527         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
2528
2529 2010-07-31  Bruno Haible  <bruno@clisp.org>
2530
2531         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
2532         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
2533         the beginning of the loop.
2534         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
2535         cases in 'switch' statement.
2536
2537         unistr/u8-strchr: Fix several bugs.
2538         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
2539         the string. When not found, return NULL, not a pointer near the end.
2540
2541         More tests for unistr/u8-strchr.
2542         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
2543         that the function does not read past the first occurrence of the byte
2544         being searched.
2545         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
2546         * tests/unistr/test-u16-strchr.c (main): New function.
2547         * tests/unistr/test-u32-strchr.c (main): New function.
2548
2549 2010-07-31  Bruno Haible  <bruno@clisp.org>
2550
2551         posix-modules: Ignore backup files of documentation files.
2552         * posix-modules: grep only through files named *.texi.
2553
2554 2010-07-31  Bruno Haible  <bruno@clisp.org>
2555
2556         symlinkat: Fix documentation.
2557         * doc/posix-functions/readlinkat.texi: Fix module name.
2558
2559 2010-07-31  Bruno Haible  <bruno@clisp.org>
2560
2561         fchownat: Replace also when chown has the trailing slash bug.
2562         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
2563         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
2564         introduced on 2010-04-10.
2565         Reported by Rainer Tammer.
2566
2567 2010-07-31  Bruno Haible  <bruno@clisp.org>
2568
2569         linkat: Work around AIX 7.1 bug.
2570         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
2571         whether linkat handles trailing slash correctly. If not, replace linkat
2572         and define LINKAT_TRAILING_SLASH_BUG.
2573         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
2574         check whether (fd1,file1) points to a directory if file1 or file2 ends
2575         in a slash. Code taken from lib/link.c.
2576         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
2577         Reported by Rainer Tammer.
2578
2579 2010-07-31  Bruno Haible  <bruno@clisp.org>
2580
2581         Correctly determine whether pow is available in libc on AIX 7 with xlc.
2582         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
2583         This disables an xlc optimization that was causing wrong test results.
2584         Reported by Rainer Tammer.
2585
2586 2010-07-31  Bruno Haible  <bruno@clisp.org>
2587
2588         iconv: Work around AIX 6.1..7.1 bug.
2589         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
2590         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
2591         cross-compiling, guess no on all versions of AIX.
2592         Reported by Rainer Tammer.
2593
2594 2010-07-31  Bruno Haible  <bruno@clisp.org>
2595
2596         readlink: Relax test a bit.
2597         * tests/test-readlink.h (test_readlink): Allow different errno value
2598         when readlink is called with a file name that ends in / and refers to
2599         a file.
2600         Suggested by Eric Blake.
2601         Reported by Rainer Tammer.
2602
2603 2010-07-31  Bruno Haible  <bruno@clisp.org>
2604
2605         copysign: Does not require -lm on glibc systems.
2606         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
2607         gl_COMMON_DOUBLE_MATHFUNC.
2608         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
2609
2610 2010-07-31  Bruno Haible  <bruno@clisp.org>
2611
2612         duplocale: Work around AIX 7.1 bug.
2613         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
2614         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
2615         * lib/duplocale.c (rpl_duplocale): Update comment.
2616         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
2617         Reported by Rainer Tammer.
2618
2619 2010-07-30  Bruno Haible  <bruno@clisp.org>
2620
2621         dirfd: Avoid link error on AIX 7.1.
2622         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
2623         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
2624         exist, set REPLACE_DIRFD.
2625         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
2626         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
2627         * doc/posix-functions/dirfd.texi: Update.
2628         Reported by Rainer Tammer.
2629
2630 2010-07-30  Eric Blake  <eblake@redhat.com>
2631
2632         strtod: next round of AIX fixes
2633         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
2634         exponent.
2635         * tests/test-strtod.c (main): Enhance tests.
2636         * doc/posix-functions/strtod.texi (strtod): Document next bug.
2637         Reported by Rainer Tammer.
2638
2639         futimens: fix configure check
2640         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
2641         Reported by Bruno Haible.
2642
2643 2010-07-30  Bruno Haible  <bruno@clisp.org>
2644
2645         getline: Update regarding AIX.
2646         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
2647         Reported by Rainer Tammer.
2648
2649 2010-07-30  Bruno Haible  <bruno@clisp.org>
2650
2651         wcwidth: Drop replacement on AIX 7.
2652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
2653         AIX 7.
2654         Reported by Rainer Tammer.
2655
2656 2010-07-30  Bruno Haible  <bruno@clisp.org>
2657
2658         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
2659         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
2660         a 'char *'.
2661         Reported by Rainer Tammer.
2662
2663 2010-07-30  Bruno Haible  <bruno@clisp.org>
2664
2665         unlink: Update regarding AIX.
2666         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
2667         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
2668         Reported by Rainer Tammer.
2669
2670 2010-07-30  Bruno Haible  <bruno@clisp.org>
2671
2672         symlink: Update regarding AIX.
2673         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
2674         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
2675         Reported by Rainer Tammer.
2676
2677 2010-07-30  Bruno Haible  <bruno@clisp.org>
2678
2679         strndup: Update regarding AIX.
2680         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
2681         AIX 7.
2682         Reported by Rainer Tammer.
2683
2684 2010-07-30  Bruno Haible  <bruno@clisp.org>
2685
2686         stat: Update regarding AIX.
2687         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
2688         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
2689         Reported by Rainer Tammer.
2690
2691 2010-07-30  Bruno Haible  <bruno@clisp.org>
2692
2693         truncl: Fix autoconf test.
2694         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
2695         whether truncl works.
2696         Reported by Rainer Tammer.
2697
2698 2010-07-30  Bruno Haible  <bruno@clisp.org>
2699
2700         round: Update regarding AIX.
2701         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
2702         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
2703         Reported by Rainer Tammer.
2704
2705 2010-07-30  Bruno Haible  <bruno@clisp.org>
2706
2707         rename: Update regarding AIX.
2708         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
2709         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
2710         Reported by Rainer Tammer.
2711
2712 2010-07-30  Bruno Haible  <bruno@clisp.org>
2713
2714         printf.m4: Update regarding AIX.
2715         * m4/printf.m4: Update comments regarding AIX.
2716         Reported by Rainer Tammer.
2717
2718 2010-07-30  Bruno Haible  <bruno@clisp.org>
2719
2720         iconv: Update regarding AIX.
2721         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
2722         AIX 7.
2723         Reported by Rainer Tammer.
2724
2725 2010-07-30  Bruno Haible  <bruno@clisp.org>
2726
2727         getopt: Update regarding AIX.
2728         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
2729         no on AIX.
2730         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
2731         Reported by Rainer Tammer.
2732
2733 2010-07-30  Bruno Haible  <bruno@clisp.org>
2734
2735         ldexpl; Update regarding AIX.
2736         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
2737         on AIX 7.
2738         Reported by Rainer Tammer.
2739
2740 2010-07-30  Bruno Haible  <bruno@clisp.org>
2741
2742         frexpl: Update regarding AIX.
2743         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
2744         on AIX 7.
2745         Reported by Rainer Tammer.
2746
2747 2010-07-30  Bruno Haible  <bruno@clisp.org>
2748
2749         open, fopen: Update regarding AIX.
2750         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
2751         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2752         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
2753         * doc/posix-functions/fopen.texi: Likewise.
2754         Reported by Rainer Tammer.
2755
2756 2010-07-30  Bruno Haible  <bruno@clisp.org>
2757
2758         chown: Update doc regarding AIX.
2759         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
2760         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
2761         Reported by Rainer Tammer.
2762
2763 2010-07-30  Eric Blake  <eblake@redhat.com>
2764
2765         strtod: fix bug in replacement function on AIX
2766         * lib/strtod.c (strtod): Special case broken "0x" parse in
2767         underlying strtod.
2768         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
2769         * doc/posix-functions/strtod.texi (strtod): Likewise.
2770         Reported by Rainer Tammer.
2771
2772 2010-07-30  Bruno Haible  <bruno@clisp.org>
2773
2774         mbrlen: Fix cross-compilation guess for AIX.
2775         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
2776         guess. Leftover from 2008-12-22.
2777
2778 2010-07-30  Bruno Haible  <bruno@clisp.org>
2779
2780         mbrtowc: Fix cross-compilation guess for AIX.
2781         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
2782         guess. Leftover from 2008-12-21.
2783
2784 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
2785
2786         init.sh: work around trap limitation of some shells
2787         * tests/init.sh (setup_): Move exit trap outside of shell function.
2788
2789 2010-07-29  Eric Blake  <eblake@redhat.com>
2790
2791         strtod: aid debugging
2792         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
2793         understanding why strtod is rejected.
2794
2795 2010-07-28  Bruno Haible  <bruno@clisp.org>
2796
2797         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
2798         * lib/unistr/u8-chr.c: Include <string.h>.
2799         * tests/unistr/test-u8-chr.c: Likewise.
2800         * tests/unistr/test-u16-chr.c: Likewise.
2801         * tests/unistr/test-u32-chr.c: Likewise.
2802         * tests/unistr/test-u8-strchr.c: Likewise.
2803         * tests/unistr/test-u16-strchr.c: Likewise.
2804         * tests/unistr/test-u32-strchr.c: Likewise.
2805         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
2806         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2807         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
2808         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
2809
2810 2010-07-28  Bruno Haible  <bruno@clisp.org>
2811
2812         Use spaces for indentation, not tabs.
2813         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
2814
2815 2010-07-27  Bruno Haible  <bruno@clisp.org>
2816
2817         mbspcasecmp: Fix function specification.
2818         * lib/string.in.h (mbspcasecmp): Fix specification comment.
2819         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
2820         Reported by Eric Blake <eblake@redhat.com>.
2821
2822 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
2823
2824         timespec: use cast and not conditional, as truncation isn't possible
2825         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
2826         instead of a conditional.  Comment about the situation in more detail.
2827         This undoes most of the 2009-10-29 patch.
2828
2829 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
2830
2831         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
2832         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
2833         * lib/unistr/u8-strchr.c: Likewise.
2834         * modules/unistr/u8-chr: Depend on memchr.
2835
2836         unistr/u*-strchr: add tests
2837         * modules/unistr/u8-strchr-tests: New file.
2838         * modules/unistr/u16-strchr-tests: New file.
2839         * modules/unistr/u32-strchr-tests: New file.
2840         * tests/unistr/test-strchr.h: New file.
2841         * tests/unistr/test-u8-strchr.c: New file.
2842         * tests/unistr/test-u16-strchr.c: New file.
2843         * tests/unistr/test-u32-strchr.c: New file.
2844
2845         unistr/u*-chr: test multibyte sequences more
2846         * tests/unistr/test-chr.h: Do complete testing of the characters in the
2847         test vector.
2848         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
2849         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
2850         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
2851
2852         unistr/u*-chr: test multibyte sequences
2853         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
2854
2855         unistr/u*-chr: prepare for multibyte tests
2856         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
2857         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
2858         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
2859         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
2860         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
2861         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
2862
2863 2010-07-18  Bruno Haible  <bruno@clisp.org>
2864
2865         unistr/u8-strchr: Optimize non-ASCII argument case.
2866         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
2867         because the first byte often matches anyway.
2868         Reported by Pádraig Brady <P@draigbrady.com>.
2869
2870 2010-07-15  Karl Berry  <karl@gnu.org>
2871
2872         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
2873
2874 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
2875
2876         getcwd: on Solaris, work better if ancestors are inaccessible
2877         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
2878         buffer and size, try again with a large buffer.  This works better
2879         on Solaris, since its getcwd succeeds even if the path to the root
2880         is inaccessible, and this is helpful in common cases such as .zfs
2881         hidden directories.  Problem reported by J Chapman Flack in
2882         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
2883         Use system getcwd if it's declared, not merely if it's partly
2884         working; use the partly-working test only to avoid needless effort
2885         if the system getcwd fails.
2886         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
2887         comment that was already obsolete and is now even more obsolete.
2888         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
2889         now might call strdup.
2890
2891 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
2892
2893         pthread: Add enough so that coreutils/src/sort.c compiles.
2894         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
2895         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
2896         gnulib. Include <sched.h> and <time.h>, as per POSIX.
2897         Include <sys/types.h>, in case it defines pthread_t.
2898         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
2899         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
2900         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
2901         (pthread_rwlockattr_t, pthread_spinlock_t):
2902         New typedefs, if HAVE_PTHREAD_T is not defined.
2903         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
2904         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
2905         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
2906         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
2907         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
2908         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
2909         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
2910         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
2911         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
2912         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
2913         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
2914         New macros.
2915         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
2916         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
2917         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
2918         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
2919         (pthread_spin_unlock): New dummy functions.
2920         (pthread_create): Return EAGAIN; don't set errno.
2921         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
2922         require AC_C_INLINE.
2923         * modules/pthread (Depends-on): Add sched, time.
2924         (pthread.h): Use AM_V_GEN.
2925
2926 2010-07-13  Bruno Haible  <bruno@clisp.org>
2927
2928         striconveh: Don't malloc memory if the result buffer is sufficient.
2929         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
2930         buffer if its size is sufficient.
2931         Reported by Ludovic Courtès <ludo@gnu.org>.
2932
2933 2010-07-13  Bruno Haible  <bruno@clisp.org>
2934
2935         strtod: Add safety check.
2936         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
2937
2938 2010-07-12  Bruno Haible  <bruno@clisp.org>
2939
2940         Unify tests that set gl_cv_func_ldexpl_no_libm.
2941         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
2942         gl_FUNC_LDEXPL.
2943         (gl_FUNC_LDEXPL): Invoke it.
2944         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2945
2946 2010-07-12  Bruno Haible  <bruno@clisp.org>
2947
2948         Unify tests that set gl_cv_func_ldexp_no_libm.
2949         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
2950         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
2951         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
2952         (configure.ac): Simply invoke gl_FUNC_LDEXP.
2953         * modules/strtod (Files): Add m4/ldexp.m4.
2954
2955 2010-07-12  Bruno Haible  <bruno@clisp.org>
2956
2957         Unify tests that set gl_cv_func_frexpl_no_libm.
2958         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
2959         gl_FUNC_FREXPL_NO_LIBM.
2960         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
2961         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2962
2963 2010-07-12  Bruno Haible  <bruno@clisp.org>
2964
2965         Unify tests that set gl_cv_func_frexp_no_libm.
2966         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
2967         gl_FUNC_FREXP_NO_LIBM.
2968         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
2969         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2970
2971 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
2972
2973         memcoll: clarify sizes versus lengths, document better, and tweak perf
2974         * lib/memcoll.c (strcoll_loop, memcoll0):
2975         Improve quality of descriptive comments.  Name variables
2976         consistently as to whether they are lengths (which do not include
2977         terminating null) versus sizes (which do).
2978         * lib/xmemcoll.c (xmemcoll0): Likewise.
2979         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
2980         returned when s1size == 0; this is easier to compile and saves
2981         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
2982
2983 2010-07-12  Bruno Haible  <bruno@clisp.org>
2984
2985         Tests for module '_Exit'.
2986         * modules/_Exit-tests: New file.
2987         * tests/test-_Exit.sh: New file.
2988         * tests/test-_Exit.c: New file.
2989
2990         New module '_Exit'.
2991         * lib/stdlib.in.h (__attribute__): New macro.
2992         (_Exit): New declaration.
2993         * lib/_Exit.c: New file.
2994         * m4/_Exit.m4: New file.
2995         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
2996         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
2997         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
2998         * modules/_Exit: New file.
2999         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3000         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3001
3002 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3003
3004         strtod: make it more-accurate typically, and don't require libm
3005         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3006         Include limits.h.  Don't include string.h.
3007         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3008         (locale_isspace): New function, so that no casts are needed to
3009         check whether *s is a space.
3010         (ldexp): Provide an unused dummy if not available.
3011         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3012         (strtod): Use them.  This implementation prefers to use the
3013         underlying strtod if available, falling back on our own code
3014         only to fix known bugs.  This is more likely to produce an
3015         accurate result.  Also, it avoids the use of libm functions.
3016         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3017         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3018         was absent, but it caused a test failure with coreutils.
3019         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3020         with libm.
3021         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3022         * modules/strtod-tests (Makefile.am): Likewise.
3023
3024 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3025             Bruno Haible  <bruno@clisp.org>
3026
3027         unistr/u8-strchr: Optimize ASCII argument case.
3028         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3029
3030 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3031
3032         (x)memcoll: minor tweaks
3033         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3034         is after the type that it qualifies.
3035         (memcoll0): Likewise.
3036         * lib/memcoll.h (memcoll0): Likewise.
3037         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3038         * lib/xmemcoll.h (xmemcoll0): Likewise.
3039         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3040         differs from memcoll in that the NUL byte is part of the argument.
3041         Omit the abort-checks, as performance is a real issue here.  Plus,
3042         the checks were wrong anyway (an off-by-one error).  Omit local
3043         variable 'diff', as it's a bit clearer that way.
3044         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3045         no longer needed.
3046
3047 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3048
3049         (x)memcoll: speedup when input is known to be NUL delimited
3050         * lib/memcoll.c: Include stdlib.
3051         (memcoll0) New function.
3052         (strcoll_loop) New function, refactored for use in both memcoll
3053         and memcoll0.
3054         * lib/memcoll.h: Add prototype for memcoll0.
3055         * lib/xmemcoll.c: (xmemcoll0) New function.
3056         (collate_error) New function, refactored for use in both xmemcoll
3057         and xmemcoll0.
3058         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3059         * m4/memcoll.m4: add inline invocation.
3060
3061 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3062
3063         * build-aux/bootstrap: Remove any local translations
3064         from the translation project synchronization directory,
3065         so that local only translations are not distributed.
3066
3067 2010-07-04  Bruno Haible  <bruno@clisp.org>
3068
3069         fsusage: Clarify which code applies to which platforms.
3070         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3071         platform.
3072         * lib/fsusage.c (get_fs_usage): Likewise.
3073
3074 2010-07-04  Bruno Haible  <bruno@clisp.org>
3075
3076         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3077         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3078         Reported by Martin Lambers <marlam@marlam.de>.
3079
3080 2010-07-04  Jim Meyering  <meyering@redhat.com>
3081
3082         hash: once again explicitly disallow insertion of NULL
3083         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3084         inserting a NULL pointer cannot work with these functions.
3085         Add a comment with details.
3086         This reverts part of the 2010-07-01 commit, 5bef1a35
3087         "hash: extend module to deal with non-pointer keys".
3088
3089 2010-07-01  Bruno Haible  <bruno@clisp.org>
3090
3091         stdbool: Update doc.
3092         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3093         Info from Christian Weisgerber <naddy@mips.inka.de>.
3094
3095 2010-07-01  Jim Meyering  <meyering@redhat.com>
3096
3097         hash: extend module to deal with non-pointer keys
3098         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3099         but that allows insertion of non-pointer entries.
3100         Do not disallow an ENTRY value of NULL.
3101         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3102         * lib/hash.h (hash_insert0): Declare.
3103
3104 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3105
3106         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3107         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3108         not present (i.e. with autoconf 2.59 and when using gettextize, not
3109         gnulib), require AC_GNU_SOURCE instead.
3110
3111 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3112
3113         idpriv-drop: Fix tests.
3114         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3115         not to the test-idpriv-droptemp program.
3116
3117 2010-06-29  Bruno Haible  <bruno@clisp.org>
3118
3119         string: Fix syntax error with g++ 2.96.
3120         * lib/string.in.h (__pure__): Remove definition.
3121         (_GL_ATTRIBUTE_PURE): New macro.
3122         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3123         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3124         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3125
3126 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3127
3128         unitypes: Fix bug introduced on 2010-05-18.
3129         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3130
3131 2010-06-22  Eric Blake  <eblake@redhat.com>
3132
3133         memmem: slight optimization
3134         * lib/str-two-way.h (critical_factorization): Update comments.
3135         Reduce work during factorization phase.
3136         Reported by Carlos Bueno <carlos@bueno.org>.
3137
3138 2010-06-21  Bruno Haible  <bruno@clisp.org>
3139
3140         Fix HAVE_CALLOC_POSIX misnomer.
3141         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3142         !HAVE_CALLOC_POSIX.
3143         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3144         HAVE_CALLOC_POSIX.
3145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3146         instead of HAVE_CALLOC_POSIX.
3147         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3148         HAVE_CALLOC_POSIX.
3149
3150         Use modern idiom for calloc() replacement.
3151         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3152         AC_FUNC_CALLOC.
3153         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3154         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3155         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3156         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3157         (gl_REPLACE_CALLOC): New macro.
3158
3159 2010-06-21  Bruno Haible  <bruno@clisp.org>
3160
3161         Fix HAVE_REALLOC_POSIX misnomer.
3162         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3163         !HAVE_REALLOC_POSIX.
3164         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3165         HAVE_REALLOC_POSIX.
3166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3167         instead of HAVE_REALLOC_POSIX.
3168         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3169         HAVE_REALLOC_POSIX.
3170
3171         Use modern idiom for realloc() replacement.
3172         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3173         AC_FUNC_REALLOC.
3174         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3175         Autoconf's AC_FUNC_REALLOC.
3176         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3177         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3178         (gl_REPLACE_REALLOC): New macro.
3179         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3180
3181 2010-06-21  Bruno Haible  <bruno@clisp.org>
3182
3183         Fix HAVE_MALLOC_POSIX misnomer.
3184         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3185         !HAVE_MALLOC_POSIX.
3186         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3187         HAVE_MALLOC_POSIX.
3188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3189         instead of HAVE_MALLOC_POSIX.
3190         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3191         HAVE_MALLOC_POSIX.
3192
3193         Use modern idiom for malloc() replacement.
3194         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3195         AC_FUNC_MALLOC.
3196         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3197         Autoconf's AC_FUNC_MALLOC.
3198         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3199         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3200         (gl_REPLACE_MALLOC): New macro.
3201         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3202
3203 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3204
3205         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3206         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3207         This macro takes 3 arguments, not 4.
3208
3209 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3210
3211         ipv6: fix detection under mingw
3212         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3213         in6_addr.
3214
3215 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3216
3217         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3218         that strtod() works when cross-compiling to a glibc version known
3219         to work.
3220
3221 2010-06-15  Bruno Haible  <bruno@clisp.org>
3222
3223         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
3224
3225 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
3226
3227         select: Correct timeout.
3228         * lib/select.c (rpl_select): Compute wait_timeout correctly.
3229
3230 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3231
3232         git-version-gen: init shell var to avoid env var influence
3233         * build-aux/git-version-gen (v): Init shell var to empty.
3234
3235 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3236
3237         priv-set: Don't assume that priv.h exists merely because getppriv does.
3238         See Jan Andersen's bug report about AIX 5L in
3239         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
3240         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
3241         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
3242         * lib/priv-set.h: Likewise.
3243         * tests/test-priv-set.c: Likewise.
3244
3245 2010-06-13  Bruno Haible  <bruno@clisp.org>
3246
3247         relocatable: Make it easier to test whether to install wrappers.
3248         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
3249         RELOCATABLE_VIA_WRAPPER.
3250
3251 2010-06-13  Bruno Haible  <bruno@clisp.org>
3252
3253         gnulib-tool: Display specified modules and dependencies differently.
3254         * gnulib-tool (func_show_module_list): New function.
3255         (func_import, func_create_testdir): Invoke it.
3256         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3257
3258 2010-06-13  Bruno Haible  <bruno@clisp.org>
3259
3260         gnulib-tool: Align code of func_import and func_create_testdir.
3261         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
3262         specified_modules.
3263
3264 2010-06-12  Jim Meyering  <meyering@redhat.com>
3265
3266         test-inttostr: avoid spurious failure on Solaris 9
3267         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3268         to accept "%ju".  Reported by Bruno Haible.
3269
3270 2010-06-11  Jim Meyering  <meyering@redhat.com>
3271
3272         test-sys_socket: mark variables as used more readably
3273         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3274         as "used" explicitly via (void) statement casts.  This is more
3275         readable than using them in an artificial return expression.
3276         Suggestion from Bruno Haible.
3277
3278 2010-06-11  Bruno Haible  <bruno@clisp.org>
3279
3280         Avoid some more warnings from "gcc -Wwrite-strings".
3281         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3282         to 'const char *'.
3283         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3284         * tests/test-c-strcasestr.c (main): Likewise.
3285         * tests/test-mbscasestr1.c (main): Likewise.
3286         * tests/test-mbscasestr2.c (main): Likewise.
3287         * tests/test-memmem.c (main): Likewise.
3288         * tests/test-strstr.c (main): Likewise.
3289         * tests/test-strcasestr.c (main): Likewise.
3290
3291 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3292
3293         init.sh: change framework_failure_ to fail with status 99, not 1
3294         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3295         automake's parallel-tests rule that this is an unexpected failure,
3296         even if the test is listed in XFAIL_TESTS.
3297
3298 2010-06-11  Jim Meyering  <meyering@redhat.com>
3299
3300         test-inttostr: avoid warnings about 4-6KB literal strings
3301         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3302         Include "macros.h", for its definition of ASSERT.
3303         (CK): s/assert/ASSERT/
3304         * modules/inttostr-tests (Files): Add macros.h.
3305
3306         init.sh: don't use $ME_ or skip_ before they are defined
3307         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3308         their first uses.  Also hoist their companions: warn_, fail_,
3309         framework_failure_, $stderr_fileno.  Prompted by a patch from
3310         Stefano Lattarini.
3311
3312         test-sys_socket: avoid set-but-not-used warnings from gcc
3313         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3314         avoid warning about set-but-not-used variables.
3315
3316         test-xvasprintf: avoid 'const' discard warnings
3317         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3318         "const" when assigning from literal strings.
3319         (test_xasprintf): Add "void" in function argument list to placate
3320         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3321
3322         tests: avoid compilation warnings in argmatch and exclude tests...
3323         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3324         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3325         Since it always exits, declare with the "noreturn" attribute.
3326         * tests/test-argmatch.c: Likewise.
3327
3328         tests: avoid 'const' discard warnings in mbsstr tests
3329         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3330         * tests/test-mbsstr2.c (main): Likewise.
3331
3332         test-verify: avoid warning from gcc's -Wmissing-declarations
3333         * tests/test-verify.c (function): Declare to be static.
3334
3335         test-inttostr.c: include <string.h> for use of strcmp
3336         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3337
3338         test-linkat: avoid failed assertion on "other" architectures
3339         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3340         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3341         sparc: https://bugs.launchpad.net/bugs/591968
3342
3343 2010-06-11  Jim Meyering  <meyering@redhat.com>
3344
3345         printf.m4: avoid autoconf's "Expanded Before Required" warning
3346         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3347         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3348         autoconf warning.
3349
3350 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3351
3352         Replacement header templates are now named with ".in", not "_".
3353         * doc/gnulib-intro.texi: Correct.
3354
3355 2010-06-10  Jim Meyering  <meyering@redhat.com>
3356
3357         inttostr-tests: depend on snprintf, not snprintf-posix
3358         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3359         snprintf-posix, to avoid this aclocal failure:
3360           missing file gnulib-tests/vasnprintf.c
3361           configure.ac:45: error: expected source file, required through \
3362           AC_LIBSOURCES, not found
3363
3364 2010-06-10  Jim Meyering  <meyering@redhat.com>
3365
3366         inttostr: add a new function, inttostr, and tests
3367         The namesake function was not available.  The existence of the
3368         template file, inttostr.c makes its addition nontrivial.
3369         * lib/anytostr.c: Rename from inttostr.c.
3370         (anytostr): Rename from inttostr.
3371         * lib/inttostr.c: New file.
3372         * modules/inttostr (Files): Add anytostr.c.
3373         (Makefile.am): Set lib_SOURCES instead of ...
3374         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3375         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3376         * lib/offtostr.c: Likewise.
3377         * lib/uinttostr.c: Likewise.
3378         * lib/umaxtostr.c: Likewise.
3379         * modules/inttostr-tests: New file.
3380         * tests/test-inttostr.c: New file.  Test these functions.
3381
3382 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3383             Bruno Haible  <bruno@clisp.org>
3384
3385         Add "Extending Gnulib" chapter to manual.
3386         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3387         chapter.
3388         (Extending Gnulib): New chapter.
3389         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3390         chapter.
3391
3392 2010-06-09  Bruno Haible  <bruno@clisp.org>
3393
3394         Avoid relocwrapper link errors due to gnulib replacement functions.
3395         * lib/areadlink.c: Use the system's malloc, realloc functions.
3396         (areadlink): Set errno to ENOMEM explicitly.
3397         * modules/areadlink (Depends-on): Remove malloc-posix.
3398         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3399
3400 2010-06-09  Bruno Haible  <bruno@clisp.org>
3401
3402         Avoid relocwrapper link errors due to gnulib replacement functions.
3403         * lib/canonicalize-lgpl.c: Use the system's malloc function.
3404         * lib/malloca.c: Likewise.
3405         * lib/relocatable.c: Likewise.
3406         * lib/progreloc.c: Use the system's malloc, sprintf functions.
3407         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
3408         * lib/setenv.c: Use the system's malloc, realloc functions.
3409         * lib/strerror.c: Use the system's sprintf function.
3410         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3411
3412 2010-06-04  Bruno Haible  <bruno@clisp.org>
3413
3414         Prefer documented low-level autoconf macro names.
3415         * m4/lib-link.m4: Use m4_translit instead of translit.
3416         * m4/environ.m4: Likewise.
3417         * m4/mathfunc.m4: Likewise.
3418         * m4/onceonly.m4: Likewise.
3419         * m4/stdint.m4: Likewise.
3420         Suggested by Eric Blake.
3421
3422 2010-06-04  Martin Lambers  <marlam@marlam.de>
3423             Bruno Haible  <bruno@clisp.org>
3424
3425         havelib: Allow library names with '+' characters.
3426         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3427         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
3428
3429 2010-06-09  Bruno Haible  <bruno@clisp.org>
3430
3431         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
3432         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
3433         realloc failed.
3434
3435 2010-06-08  Peter Simons  <simons@cryp.to>
3436
3437         maint.mk: make the news-check rule more configurable
3438         * top/maint.mk (news-check-lines-spec) New variable.
3439         (news-check): Use "sed -n 1,10p" in place of "head".
3440
3441 2010-06-07  Jim Meyering  <meyering@redhat.com>
3442
3443         do-release-commit-and-tag: fix typo in --help
3444         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
3445
3446         regex: avoid new dead-code warning with gcc-4.6.0
3447         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
3448         if-block containing a while-loop.  It's been unused for at least
3449         5 years.
3450
3451 2010-06-05  Bruno Haible  <bruno@clisp.org>
3452
3453         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
3454         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
3455
3456 2010-06-04  Bruno Haible  <bruno@clisp.org>
3457
3458         Update to GNU gettext 0.18.1.
3459         * modules/gettext (configure.ac): Require gettext infrastructure from
3460         version 0.18.1.
3461
3462 2010-06-03  Bruno Haible  <bruno@clisp.org>
3463
3464         Don't use AC_LIBOBJ with file names in subdirectories.
3465         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
3466         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
3467         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
3468         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
3469         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
3470         gl_LIBUNISTRING_LIBSOURCE.
3471         (Makefile.am): Augment lib_SOURCES here, conditionally.
3472         * NEWS: Drop requirement for Automake option 'subdir-objects'.
3473
3474 2010-06-03  Bruno Haible  <bruno@clisp.org>
3475
3476         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
3477         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
3478         expansion does not end with a newline.
3479         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
3480         unnecessary newline.
3481
3482 2010-06-03  Bruno Haible  <bruno@clisp.org>
3483
3484         Reduce dependencies.
3485         * tests/test-quotearg.h: New file, extracted from
3486         tests/test-quotearg.c.
3487         * tests/test-quotearg-simple.c: New file, extracted from
3488         tests/test-quotearg.c.
3489         * tests/test-quotearg.c: Don't include <ctype.h>.
3490         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
3491         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
3492         use_quote_double_quotes, use_quotearg_colon): Moved to
3493         tests/test-quotearg.h.
3494         (results_g, flag_results, custom_quotes, custom_results): Moved
3495         to tests/test-quotearg-simple.c.
3496         (main): Moved the part that does not depend on gettext to
3497         tests/test-quotearg-simple.c. Return 77 if the test cannot be
3498         performed.
3499         * modules/quotearg-simple: New file.
3500         * modules/quotearg-simple-tests: New file.
3501         * modules/quotearg (Depends-on): Add quotearg-simple.
3502         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
3503         (Files): Add tests/test-quotearg.h.
3504         Reported by Paolo Bonzini.
3505
3506 2010-06-03  Bruno Haible  <bruno@clisp.org>
3507
3508         Reduce dependencies.
3509         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
3510
3511 2010-06-03  Bruno Haible  <bruno@clisp.org>
3512
3513         time: Undefine more broken macros.
3514         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
3515         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
3516         Reported by Eric Blake.
3517
3518 2010-06-03  Bruno Haible  <bruno@clisp.org>
3519
3520         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
3521         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
3522         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
3523         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
3524         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
3525         Reported by Ludovic Courtès <ludo@gnu.org>.
3526
3527 2010-06-02  Eric Blake  <eblake@redhat.com>
3528
3529         time: work with mingw + pthreads-win32 library
3530         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
3531         if timespec is defined only in pthread.h.
3532         * modules/time (Makefile.am): Substitute it.
3533         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
3534         <pthread.h>, when needed.
3535         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
3536         from the library.
3537
3538 2010-05-31  Bruno Haible  <bruno@clisp.org>
3539
3540         Avoid expanding two macros in the wrong order.
3541         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
3542         gl_LIBUNISTRING if it is defined.
3543         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
3544         autoconf >= 2.64.
3545         Reported by Ludovic Courtès <ludo@gnu.org>.
3546
3547 2010-05-27  Jim Meyering  <meyering@redhat.com>
3548
3549         maint.mk: also prohibit "#undef" of always-defined symbols
3550         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
3551         Allow more than one space before the symbol name.
3552         (sc_prohibit_always-defined_macros): Use grep's -E, now that
3553         the regexp uses alternation.
3554
3555 2010-05-26  Eric Blake  <eblake@redhat.com>
3556
3557         maint.mk: avoid echo -e
3558         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
3559         Convert all uses of echo -* to printf.
3560         Reported by Matthias Bolte.
3561
3562 2010-05-25  Bruno Haible  <bruno@clisp.org>
3563
3564         Update to GNU gettext 0.18, part 2.
3565         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
3566         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
3567
3568 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3569
3570         Add missing include in test-pwrite.c.
3571         * tests/test-pwrite.c: Include string.h, for strcmp.
3572
3573 2010-05-24  Bruno Haible  <bruno@clisp.org>
3574
3575         * NEWS: Mention requirement for Automake option 'subdir-objects'.
3576
3577 2010-05-24  Bruno Haible  <bruno@clisp.org>
3578
3579         Don't use conversion with transliteration in u{8,16,32}_strcoll.
3580         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
3581         iconveh_error argument.
3582         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
3583         U_STRCONV_TO_LOCALE.
3584         * lib/unistr/u16-strcoll.c: Likewise.
3585         * lib/unistr/u32-strcoll.c: Likewise.
3586         * modules/unistr/u8-strcoll (Depends-on): Add
3587         uniconv/u8-strconv-to-enc, localcharset. Remove
3588         uniconv/u8-strconv-to-locale.
3589         (configure.ac): Bump version number.
3590         * modules/unistr/u16-strcoll (Depends-on): Add
3591         uniconv/u16-strconv-to-enc, localcharset. Remove
3592         uniconv/u16-strconv-to-locale.
3593         (configure.ac): Bump version number.
3594         * modules/unistr/u32-strcoll (Depends-on): Add
3595         uniconv/u32-strconv-to-enc, localcharset. Remove
3596         uniconv/u32-strconv-to-locale.
3597         (configure.ac): Bump version number.
3598
3599 2010-05-24  Bruno Haible  <bruno@clisp.org>
3600
3601         Avoid a test failure on NetBSD 5.0.
3602         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
3603         an iconv() bug.
3604
3605 2010-05-24  Bruno Haible  <bruno@clisp.org>
3606
3607         Adjust #include directive style.
3608         * modules/regex (Includes): Recommend to write <regex.h>.
3609
3610 2010-05-24  Bruno Haible  <bruno@clisp.org>
3611
3612         regex: Don't require alloca.
3613         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
3614         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
3615         only inside if (0).
3616
3617 2010-05-23  Jim Meyering  <meyering@redhat.com>
3618
3619         test-renameat.c: include <sys/stat.h>
3620         * tests/test-renameat.c: Include <sys/stat.h>; required for
3621         definition of S_IS* macros.
3622
3623 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
3624
3625         Update maintainer documentation for 'relocatable-prog' module.
3626         * doc/relocatable-maint.texi: Update.
3627         Comments by Bruno Haible.
3628
3629 2010-05-23  Bruno Haible  <bruno@clisp.org>
3630
3631         git-merge-changelog: Enable --split-merged-entry by default.
3632         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
3633         (usage): Don't mention this option any more.
3634         Reported by Ralf Wildenhues.
3635
3636 2010-05-23  Jim Meyering  <meyering@redhat.com>
3637
3638         test-pwrite: do not leave behind a test file named "out"
3639         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
3640         The trivial-looking use of init.sh is really necessary.
3641         It ensures that the temporary file, "out", is created in
3642         a temporary directory, and removed upon termination.
3643         * tests/test-pwrite.sh: Re-add file.
3644         * modules/pwrite-tests: Reference it.
3645
3646 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3647
3648         Fix output redirection buglet in init.sh.
3649         * tests/init.sh: Fix redirection of stderr.
3650
3651 2010-05-20  Simon Josefsson  <simon@josefsson.org>
3652
3653         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
3654
3655 2010-05-17  Simon Josefsson  <simon@josefsson.org>
3656
3657         * modules/valgrind-tests: New file.
3658         * m4/valgrind-tests.m4: New file.
3659         * doc/valgrind-tests.texi: New file.
3660         * doc/gnulib.texi (Running self-tests under valgrind): New
3661         section.
3662
3663 2010-05-19  Bruno Haible  <bruno@clisp.org>
3664
3665         Clean up dead code in recent commit.
3666         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
3667         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
3668         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
3669         Suggested by Paolo Bonzini.
3670
3671 2010-05-19  Bruno Haible  <bruno@clisp.org>
3672
3673         Avoid valgrind error reports from libunistring.
3674         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
3675         * modules/libunistring (Files): Add it.
3676         * modules/libunistring-optional (Files): Likewise.
3677
3678 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
3679             Bruno Haible  <bruno@clisp.org>
3680
3681         New module 'libunistring-optional'.
3682         * modules/libunistring-optional: New file.
3683         * m4/libunistring-base.m4: New file.
3684         * m4/libunistring-optional.m4: New file.
3685         * lib/unicase.in.h: Renamed from lib/unicase.h.
3686         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
3687         * lib/unictype.in.h: Renamed from lib/unictype.h.
3688         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
3689         * lib/uniname.in.h: Renamed from lib/uniname.h.
3690         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
3691         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
3692         * lib/unistr.in.h: Renamed from lib/unistr.h.
3693         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
3694         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
3695         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
3696         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
3697         gl_LIBUNISTRING. If the library was found, determine the installed
3698         version and set LIBUNISTRING_VERSION.
3699         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
3700         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
3701         handle a configuration option --with-included-libunistring.
3702         * modules/libunistring (Files): Add m4/absolute-header.m4.
3703         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
3704         Add m4/libunistring-base.m4.
3705         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3706         (Makefile.am): Build unicase.h from unicase.in.h.
3707         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
3708         Add m4/libunistring-base.m4.
3709         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3710         (Makefile.am): Build uniconv.h from uniconv.in.h.
3711         * modules/unictype/base (Files): Use unictype.in.h instead of
3712         unictype.h. Add m4/libunistring-base.m4.
3713         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3714         (Makefile.am): Build unictype.h from unictype.in.h.
3715         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
3716         Add m4/libunistring-base.m4.
3717         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3718         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
3719         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
3720         Add m4/libunistring-base.m4.
3721         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3722         (Makefile.am): Build uniname.h from uniname.in.h.
3723         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
3724         Add m4/libunistring-base.m4.
3725         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3726         (Makefile.am): Build uninorm.h from uninorm.in.h.
3727         * modules/unistdio/base (Files): Use unistdio.in.h instead of
3728         unistdio.h. Add m4/libunistring-base.m4.
3729         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3730         (Makefile.am): Build unistdio.h from unistdio.in.h.
3731         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
3732         Add m4/libunistring-base.m4.
3733         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3734         (Makefile.am): Build unistr.h from unistr.in.h.
3735         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
3736         Add m4/libunistring-base.m4.
3737         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3738         (Makefile.am): Build unitypes.h from unitypes.in.h.
3739         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
3740         Add m4/libunistring-base.m4.
3741         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3742         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
3743         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
3744         uniwidth.h. Add m4/libunistring-base.m4.
3745         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3746         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
3747         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
3748         instead of augmenting lib_SOURCES.
3749         * modules/unicase/empty-suffix-context: Likewise.
3750         * modules/unicase/locale-language: Likewise.
3751         * modules/unicase/tolower: Likewise.
3752         * modules/unicase/totitle: Likewise.
3753         * modules/unicase/toupper: Likewise.
3754         * modules/unicase/u8-casecmp: Likewise.
3755         * modules/unicase/u8-casecoll: Likewise.
3756         * modules/unicase/u8-casefold: Likewise.
3757         * modules/unicase/u8-casexfrm: Likewise.
3758         * modules/unicase/u8-ct-casefold: Likewise.
3759         * modules/unicase/u8-ct-tolower: Likewise.
3760         * modules/unicase/u8-ct-totitle: Likewise.
3761         * modules/unicase/u8-ct-toupper: Likewise.
3762         * modules/unicase/u8-is-cased: Likewise.
3763         * modules/unicase/u8-is-casefolded: Likewise.
3764         * modules/unicase/u8-is-lowercase: Likewise.
3765         * modules/unicase/u8-is-titlecase: Likewise.
3766         * modules/unicase/u8-is-uppercase: Likewise.
3767         * modules/unicase/u8-prefix-context: Likewise.
3768         * modules/unicase/u8-suffix-context: Likewise.
3769         * modules/unicase/u8-tolower: Likewise.
3770         * modules/unicase/u8-totitle: Likewise.
3771         * modules/unicase/u8-toupper: Likewise.
3772         * modules/unicase/u16-casecmp: Likewise.
3773         * modules/unicase/u16-casecoll: Likewise.
3774         * modules/unicase/u16-casefold: Likewise.
3775         * modules/unicase/u16-casexfrm: Likewise.
3776         * modules/unicase/u16-ct-casefold: Likewise.
3777         * modules/unicase/u16-ct-tolower: Likewise.
3778         * modules/unicase/u16-ct-totitle: Likewise.
3779         * modules/unicase/u16-ct-toupper: Likewise.
3780         * modules/unicase/u16-is-cased: Likewise.
3781         * modules/unicase/u16-is-casefolded: Likewise.
3782         * modules/unicase/u16-is-lowercase: Likewise.
3783         * modules/unicase/u16-is-titlecase: Likewise.
3784         * modules/unicase/u16-is-uppercase: Likewise.
3785         * modules/unicase/u16-prefix-context: Likewise.
3786         * modules/unicase/u16-suffix-context: Likewise.
3787         * modules/unicase/u16-tolower: Likewise.
3788         * modules/unicase/u16-totitle: Likewise.
3789         * modules/unicase/u16-toupper: Likewise.
3790         * modules/unicase/u32-casecmp: Likewise.
3791         * modules/unicase/u32-casecoll: Likewise.
3792         * modules/unicase/u32-casefold: Likewise.
3793         * modules/unicase/u32-casexfrm: Likewise.
3794         * modules/unicase/u32-ct-casefold: Likewise.
3795         * modules/unicase/u32-ct-tolower: Likewise.
3796         * modules/unicase/u32-ct-totitle: Likewise.
3797         * modules/unicase/u32-ct-toupper: Likewise.
3798         * modules/unicase/u32-is-cased: Likewise.
3799         * modules/unicase/u32-is-casefolded: Likewise.
3800         * modules/unicase/u32-is-lowercase: Likewise.
3801         * modules/unicase/u32-is-titlecase: Likewise.
3802         * modules/unicase/u32-is-uppercase: Likewise.
3803         * modules/unicase/u32-prefix-context: Likewise.
3804         * modules/unicase/u32-suffix-context: Likewise.
3805         * modules/unicase/u32-tolower: Likewise.
3806         * modules/unicase/u32-totitle: Likewise.
3807         * modules/unicase/u32-toupper: Likewise.
3808         * modules/unicase/ulc-casecmp: Likewise.
3809         * modules/unicase/ulc-casecoll: Likewise.
3810         * modules/unicase/ulc-casexfrm: Likewise.
3811         * modules/uniconv/u8-conv-from-enc: Likewise.
3812         * modules/uniconv/u8-conv-to-enc: Likewise.
3813         * modules/uniconv/u8-strconv-from-enc: Likewise.
3814         * modules/uniconv/u8-strconv-from-locale: Likewise.
3815         * modules/uniconv/u8-strconv-to-enc: Likewise.
3816         * modules/uniconv/u8-strconv-to-locale: Likewise.
3817         * modules/uniconv/u16-conv-from-enc: Likewise.
3818         * modules/uniconv/u16-conv-to-enc: Likewise.
3819         * modules/uniconv/u16-strconv-from-enc: Likewise.
3820         * modules/uniconv/u16-strconv-from-locale: Likewise.
3821         * modules/uniconv/u16-strconv-to-enc: Likewise.
3822         * modules/uniconv/u16-strconv-to-locale: Likewise.
3823         * modules/uniconv/u32-conv-from-enc: Likewise.
3824         * modules/uniconv/u32-conv-to-enc: Likewise.
3825         * modules/uniconv/u32-strconv-from-enc: Likewise.
3826         * modules/uniconv/u32-strconv-from-locale: Likewise.
3827         * modules/uniconv/u32-strconv-to-enc: Likewise.
3828         * modules/uniconv/u32-strconv-to-locale: Likewise.
3829         * modules/unictype/bidicategory-byname: Likewise.
3830         * modules/unictype/bidicategory-name: Likewise.
3831         * modules/unictype/bidicategory-of: Likewise.
3832         * modules/unictype/bidicategory-test: Likewise.
3833         * modules/unictype/block-list: Likewise.
3834         * modules/unictype/block-test: Likewise.
3835         * modules/unictype/category-C: Likewise.
3836         * modules/unictype/category-Cc: Likewise.
3837         * modules/unictype/category-Cf: Likewise.
3838         * modules/unictype/category-Cn: Likewise.
3839         * modules/unictype/category-Co: Likewise.
3840         * modules/unictype/category-Cs: Likewise.
3841         * modules/unictype/category-L: Likewise.
3842         * modules/unictype/category-Ll: Likewise.
3843         * modules/unictype/category-Lm: Likewise.
3844         * modules/unictype/category-Lo: Likewise.
3845         * modules/unictype/category-Lt: Likewise.
3846         * modules/unictype/category-Lu: Likewise.
3847         * modules/unictype/category-M: Likewise.
3848         * modules/unictype/category-Mc: Likewise.
3849         * modules/unictype/category-Me: Likewise.
3850         * modules/unictype/category-Mn: Likewise.
3851         * modules/unictype/category-N: Likewise.
3852         * modules/unictype/category-Nd: Likewise.
3853         * modules/unictype/category-Nl: Likewise.
3854         * modules/unictype/category-No: Likewise.
3855         * modules/unictype/category-P: Likewise.
3856         * modules/unictype/category-Pc: Likewise.
3857         * modules/unictype/category-Pd: Likewise.
3858         * modules/unictype/category-Pe: Likewise.
3859         * modules/unictype/category-Pf: Likewise.
3860         * modules/unictype/category-Pi: Likewise.
3861         * modules/unictype/category-Po: Likewise.
3862         * modules/unictype/category-Ps: Likewise.
3863         * modules/unictype/category-S: Likewise.
3864         * modules/unictype/category-Sc: Likewise.
3865         * modules/unictype/category-Sk: Likewise.
3866         * modules/unictype/category-Sm: Likewise.
3867         * modules/unictype/category-So: Likewise.
3868         * modules/unictype/category-Z: Likewise.
3869         * modules/unictype/category-Zl: Likewise.
3870         * modules/unictype/category-Zp: Likewise.
3871         * modules/unictype/category-Zs: Likewise.
3872         * modules/unictype/category-and: Likewise.
3873         * modules/unictype/category-and-not: Likewise.
3874         * modules/unictype/category-byname: Likewise.
3875         * modules/unictype/category-name: Likewise.
3876         * modules/unictype/category-none: Likewise.
3877         * modules/unictype/category-of: Likewise.
3878         * modules/unictype/category-or: Likewise.
3879         * modules/unictype/category-test: Likewise.
3880         * modules/unictype/combining-class: Likewise.
3881         * modules/unictype/ctype-alnum: Likewise.
3882         * modules/unictype/ctype-alpha: Likewise.
3883         * modules/unictype/ctype-blank: Likewise.
3884         * modules/unictype/ctype-cntrl: Likewise.
3885         * modules/unictype/ctype-digit: Likewise.
3886         * modules/unictype/ctype-graph: Likewise.
3887         * modules/unictype/ctype-lower: Likewise.
3888         * modules/unictype/ctype-print: Likewise.
3889         * modules/unictype/ctype-punct: Likewise.
3890         * modules/unictype/ctype-space: Likewise.
3891         * modules/unictype/ctype-upper: Likewise.
3892         * modules/unictype/ctype-xdigit: Likewise.
3893         * modules/unictype/decimal-digit: Likewise.
3894         * modules/unictype/digit: Likewise.
3895         * modules/unictype/mirror: Likewise.
3896         * modules/unictype/numeric: Likewise.
3897         * modules/unictype/property-alphabetic: Likewise.
3898         * modules/unictype/property-ascii-hex-digit: Likewise.
3899         * modules/unictype/property-bidi-arabic-digit: Likewise.
3900         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
3901         * modules/unictype/property-bidi-block-separator: Likewise.
3902         * modules/unictype/property-bidi-boundary-neutral: Likewise.
3903         * modules/unictype/property-bidi-common-separator: Likewise.
3904         * modules/unictype/property-bidi-control: Likewise.
3905         * modules/unictype/property-bidi-embedding-or-override: Likewise.
3906         * modules/unictype/property-bidi-eur-num-separator: Likewise.
3907         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
3908         * modules/unictype/property-bidi-european-digit: Likewise.
3909         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
3910         * modules/unictype/property-bidi-left-to-right: Likewise.
3911         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
3912         * modules/unictype/property-bidi-other-neutral: Likewise.
3913         * modules/unictype/property-bidi-pdf: Likewise.
3914         * modules/unictype/property-bidi-segment-separator: Likewise.
3915         * modules/unictype/property-bidi-whitespace: Likewise.
3916         * modules/unictype/property-byname: Likewise.
3917         * modules/unictype/property-combining: Likewise.
3918         * modules/unictype/property-composite: Likewise.
3919         * modules/unictype/property-currency-symbol: Likewise.
3920         * modules/unictype/property-dash: Likewise.
3921         * modules/unictype/property-decimal-digit: Likewise.
3922         * modules/unictype/property-default-ignorable-code-point: Likewise.
3923         * modules/unictype/property-deprecated: Likewise.
3924         * modules/unictype/property-diacritic: Likewise.
3925         * modules/unictype/property-extender: Likewise.
3926         * modules/unictype/property-format-control: Likewise.
3927         * modules/unictype/property-grapheme-base: Likewise.
3928         * modules/unictype/property-grapheme-extend: Likewise.
3929         * modules/unictype/property-grapheme-link: Likewise.
3930         * modules/unictype/property-hex-digit: Likewise.
3931         * modules/unictype/property-hyphen: Likewise.
3932         * modules/unictype/property-id-continue: Likewise.
3933         * modules/unictype/property-id-start: Likewise.
3934         * modules/unictype/property-ideographic: Likewise.
3935         * modules/unictype/property-ids-binary-operator: Likewise.
3936         * modules/unictype/property-ids-trinary-operator: Likewise.
3937         * modules/unictype/property-ignorable-control: Likewise.
3938         * modules/unictype/property-iso-control: Likewise.
3939         * modules/unictype/property-join-control: Likewise.
3940         * modules/unictype/property-left-of-pair: Likewise.
3941         * modules/unictype/property-line-separator: Likewise.
3942         * modules/unictype/property-logical-order-exception: Likewise.
3943         * modules/unictype/property-lowercase: Likewise.
3944         * modules/unictype/property-math: Likewise.
3945         * modules/unictype/property-non-break: Likewise.
3946         * modules/unictype/property-not-a-character: Likewise.
3947         * modules/unictype/property-numeric: Likewise.
3948         * modules/unictype/property-other-alphabetic: Likewise.
3949         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
3950         * modules/unictype/property-other-grapheme-extend: Likewise.
3951         * modules/unictype/property-other-id-continue: Likewise.
3952         * modules/unictype/property-other-id-start: Likewise.
3953         * modules/unictype/property-other-lowercase: Likewise.
3954         * modules/unictype/property-other-math: Likewise.
3955         * modules/unictype/property-other-uppercase: Likewise.
3956         * modules/unictype/property-paired-punctuation: Likewise.
3957         * modules/unictype/property-paragraph-separator: Likewise.
3958         * modules/unictype/property-pattern-syntax: Likewise.
3959         * modules/unictype/property-pattern-white-space: Likewise.
3960         * modules/unictype/property-private-use: Likewise.
3961         * modules/unictype/property-punctuation: Likewise.
3962         * modules/unictype/property-quotation-mark: Likewise.
3963         * modules/unictype/property-radical: Likewise.
3964         * modules/unictype/property-sentence-terminal: Likewise.
3965         * modules/unictype/property-soft-dotted: Likewise.
3966         * modules/unictype/property-space: Likewise.
3967         * modules/unictype/property-terminal-punctuation: Likewise.
3968         * modules/unictype/property-test: Likewise.
3969         * modules/unictype/property-titlecase: Likewise.
3970         * modules/unictype/property-unassigned-code-value: Likewise.
3971         * modules/unictype/property-unified-ideograph: Likewise.
3972         * modules/unictype/property-uppercase: Likewise.
3973         * modules/unictype/property-variation-selector: Likewise.
3974         * modules/unictype/property-white-space: Likewise.
3975         * modules/unictype/property-xid-continue: Likewise.
3976         * modules/unictype/property-xid-start: Likewise.
3977         * modules/unictype/property-zero-width: Likewise.
3978         * modules/unictype/scripts: Likewise.
3979         * modules/unictype/syntax-c-ident: Likewise.
3980         * modules/unictype/syntax-c-whitespace: Likewise.
3981         * modules/unictype/syntax-java-ident: Likewise.
3982         * modules/unictype/syntax-java-whitespace: Likewise.
3983         * modules/unilbrk/u8-possible-linebreaks: Likewise.
3984         * modules/unilbrk/u8-width-linebreaks: Likewise.
3985         * modules/unilbrk/u16-possible-linebreaks: Likewise.
3986         * modules/unilbrk/u16-width-linebreaks: Likewise.
3987         * modules/unilbrk/u32-possible-linebreaks: Likewise.
3988         * modules/unilbrk/u32-width-linebreaks: Likewise.
3989         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
3990         * modules/unilbrk/ulc-width-linebreaks: Likewise.
3991         * modules/uniname/uniname: Likewise.
3992         * modules/uninorm/canonical-decomposition: Likewise.
3993         * modules/uninorm/composition: Likewise.
3994         * modules/uninorm/decomposing-form: Likewise.
3995         * modules/uninorm/decomposition: Likewise.
3996         * modules/uninorm/filter: Likewise.
3997         * modules/uninorm/nfc: Likewise.
3998         * modules/uninorm/nfd: Likewise.
3999         * modules/uninorm/nfkc: Likewise.
4000         * modules/uninorm/nfkd: Likewise.
4001         * modules/uninorm/u8-normalize: Likewise.
4002         * modules/uninorm/u8-normcmp: Likewise.
4003         * modules/uninorm/u8-normcoll: Likewise.
4004         * modules/uninorm/u8-normxfrm: Likewise.
4005         * modules/uninorm/u16-normalize: Likewise.
4006         * modules/uninorm/u16-normcmp: Likewise.
4007         * modules/uninorm/u16-normcoll: Likewise.
4008         * modules/uninorm/u16-normxfrm: Likewise.
4009         * modules/uninorm/u32-normalize: Likewise.
4010         * modules/uninorm/u32-normcmp: Likewise.
4011         * modules/uninorm/u32-normcoll: Likewise.
4012         * modules/uninorm/u32-normxfrm: Likewise.
4013         * modules/unistdio/u8-asnprintf: Likewise.
4014         * modules/unistdio/u8-asprintf: Likewise.
4015         * modules/unistdio/u8-snprintf: Likewise.
4016         * modules/unistdio/u8-sprintf: Likewise.
4017         * modules/unistdio/u8-u8-asnprintf: Likewise.
4018         * modules/unistdio/u8-u8-asprintf: Likewise.
4019         * modules/unistdio/u8-u8-snprintf: Likewise.
4020         * modules/unistdio/u8-u8-sprintf: Likewise.
4021         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4022         * modules/unistdio/u8-u8-vasprintf: Likewise.
4023         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4024         * modules/unistdio/u8-u8-vsprintf: Likewise.
4025         * modules/unistdio/u8-vasnprintf: Likewise.
4026         * modules/unistdio/u8-vasprintf: Likewise.
4027         * modules/unistdio/u8-vsnprintf: Likewise.
4028         * modules/unistdio/u8-vsprintf: Likewise.
4029         * modules/unistdio/u16-asnprintf: Likewise.
4030         * modules/unistdio/u16-asprintf: Likewise.
4031         * modules/unistdio/u16-snprintf: Likewise.
4032         * modules/unistdio/u16-sprintf: Likewise.
4033         * modules/unistdio/u16-u16-asnprintf: Likewise.
4034         * modules/unistdio/u16-u16-asprintf: Likewise.
4035         * modules/unistdio/u16-u16-snprintf: Likewise.
4036         * modules/unistdio/u16-u16-sprintf: Likewise.
4037         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4038         * modules/unistdio/u16-u16-vasprintf: Likewise.
4039         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4040         * modules/unistdio/u16-u16-vsprintf: Likewise.
4041         * modules/unistdio/u16-vasnprintf: Likewise.
4042         * modules/unistdio/u16-vasprintf: Likewise.
4043         * modules/unistdio/u16-vsnprintf: Likewise.
4044         * modules/unistdio/u16-vsprintf: Likewise.
4045         * modules/unistdio/u32-asnprintf: Likewise.
4046         * modules/unistdio/u32-asprintf: Likewise.
4047         * modules/unistdio/u32-snprintf: Likewise.
4048         * modules/unistdio/u32-sprintf: Likewise.
4049         * modules/unistdio/u32-u32-asnprintf: Likewise.
4050         * modules/unistdio/u32-u32-asprintf: Likewise.
4051         * modules/unistdio/u32-u32-snprintf: Likewise.
4052         * modules/unistdio/u32-u32-sprintf: Likewise.
4053         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4054         * modules/unistdio/u32-u32-vasprintf: Likewise.
4055         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4056         * modules/unistdio/u32-u32-vsprintf: Likewise.
4057         * modules/unistdio/u32-vasnprintf: Likewise.
4058         * modules/unistdio/u32-vasprintf: Likewise.
4059         * modules/unistdio/u32-vsnprintf: Likewise.
4060         * modules/unistdio/u32-vsprintf: Likewise.
4061         * modules/unistdio/ulc-asnprintf: Likewise.
4062         * modules/unistdio/ulc-asprintf: Likewise.
4063         * modules/unistdio/ulc-fprintf: Likewise.
4064         * modules/unistdio/ulc-snprintf: Likewise.
4065         * modules/unistdio/ulc-sprintf: Likewise.
4066         * modules/unistdio/ulc-vasnprintf: Likewise.
4067         * modules/unistdio/ulc-vasprintf: Likewise.
4068         * modules/unistdio/ulc-vfprintf: Likewise.
4069         * modules/unistdio/ulc-vsnprintf: Likewise.
4070         * modules/unistdio/ulc-vsprintf: Likewise.
4071         * modules/unistr/u8-check: Likewise.
4072         * modules/unistr/u8-chr: Likewise.
4073         * modules/unistr/u8-cmp: Likewise.
4074         * modules/unistr/u8-cmp2: Likewise.
4075         * modules/unistr/u8-cpy: Likewise.
4076         * modules/unistr/u8-cpy-alloc: Likewise.
4077         * modules/unistr/u8-endswith: Likewise.
4078         * modules/unistr/u8-mblen: Likewise.
4079         * modules/unistr/u8-mbsnlen: Likewise.
4080         * modules/unistr/u8-mbtouc: Likewise.
4081         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4082         * modules/unistr/u8-mbtoucr: Likewise.
4083         * modules/unistr/u8-move: Likewise.
4084         * modules/unistr/u8-next: Likewise.
4085         * modules/unistr/u8-prev: Likewise.
4086         * modules/unistr/u8-set: Likewise.
4087         * modules/unistr/u8-startswith: Likewise.
4088         * modules/unistr/u8-stpcpy: Likewise.
4089         * modules/unistr/u8-stpncpy: Likewise.
4090         * modules/unistr/u8-strcat: Likewise.
4091         * modules/unistr/u8-strchr: Likewise.
4092         * modules/unistr/u8-strcmp: Likewise.
4093         * modules/unistr/u8-strcoll: Likewise.
4094         * modules/unistr/u8-strcpy: Likewise.
4095         * modules/unistr/u8-strcspn: Likewise.
4096         * modules/unistr/u8-strdup: Likewise.
4097         * modules/unistr/u8-strlen: Likewise.
4098         * modules/unistr/u8-strmblen: Likewise.
4099         * modules/unistr/u8-strmbtouc: Likewise.
4100         * modules/unistr/u8-strncat: Likewise.
4101         * modules/unistr/u8-strncmp: Likewise.
4102         * modules/unistr/u8-strncpy: Likewise.
4103         * modules/unistr/u8-strnlen: Likewise.
4104         * modules/unistr/u8-strpbrk: Likewise.
4105         * modules/unistr/u8-strrchr: Likewise.
4106         * modules/unistr/u8-strspn: Likewise.
4107         * modules/unistr/u8-strstr: Likewise.
4108         * modules/unistr/u8-strtok: Likewise.
4109         * modules/unistr/u8-to-u16: Likewise.
4110         * modules/unistr/u8-to-u32: Likewise.
4111         * modules/unistr/u8-uctomb: Likewise.
4112         * modules/unistr/u16-check: Likewise.
4113         * modules/unistr/u16-chr: Likewise.
4114         * modules/unistr/u16-cmp: Likewise.
4115         * modules/unistr/u16-cmp2: Likewise.
4116         * modules/unistr/u16-cpy: Likewise.
4117         * modules/unistr/u16-cpy-alloc: Likewise.
4118         * modules/unistr/u16-endswith: Likewise.
4119         * modules/unistr/u16-mblen: Likewise.
4120         * modules/unistr/u16-mbsnlen: Likewise.
4121         * modules/unistr/u16-mbtouc: Likewise.
4122         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4123         * modules/unistr/u16-mbtoucr: Likewise.
4124         * modules/unistr/u16-move: Likewise.
4125         * modules/unistr/u16-next: Likewise.
4126         * modules/unistr/u16-prev: Likewise.
4127         * modules/unistr/u16-set: Likewise.
4128         * modules/unistr/u16-startswith: Likewise.
4129         * modules/unistr/u16-stpcpy: Likewise.
4130         * modules/unistr/u16-stpncpy: Likewise.
4131         * modules/unistr/u16-strcat: Likewise.
4132         * modules/unistr/u16-strchr: Likewise.
4133         * modules/unistr/u16-strcmp: Likewise.
4134         * modules/unistr/u16-strcoll: Likewise.
4135         * modules/unistr/u16-strcpy: Likewise.
4136         * modules/unistr/u16-strcspn: Likewise.
4137         * modules/unistr/u16-strdup: Likewise.
4138         * modules/unistr/u16-strlen: Likewise.
4139         * modules/unistr/u16-strmblen: Likewise.
4140         * modules/unistr/u16-strmbtouc: Likewise.
4141         * modules/unistr/u16-strncat: Likewise.
4142         * modules/unistr/u16-strncmp: Likewise.
4143         * modules/unistr/u16-strncpy: Likewise.
4144         * modules/unistr/u16-strnlen: Likewise.
4145         * modules/unistr/u16-strpbrk: Likewise.
4146         * modules/unistr/u16-strrchr: Likewise.
4147         * modules/unistr/u16-strspn: Likewise.
4148         * modules/unistr/u16-strstr: Likewise.
4149         * modules/unistr/u16-strtok: Likewise.
4150         * modules/unistr/u16-to-u32: Likewise.
4151         * modules/unistr/u16-to-u8: Likewise.
4152         * modules/unistr/u16-uctomb: Likewise.
4153         * modules/unistr/u32-check: Likewise.
4154         * modules/unistr/u32-chr: Likewise.
4155         * modules/unistr/u32-cmp: Likewise.
4156         * modules/unistr/u32-cmp2: Likewise.
4157         * modules/unistr/u32-cpy: Likewise.
4158         * modules/unistr/u32-cpy-alloc: Likewise.
4159         * modules/unistr/u32-endswith: Likewise.
4160         * modules/unistr/u32-mblen: Likewise.
4161         * modules/unistr/u32-mbsnlen: Likewise.
4162         * modules/unistr/u32-mbtouc: Likewise.
4163         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4164         * modules/unistr/u32-mbtoucr: Likewise.
4165         * modules/unistr/u32-move: Likewise.
4166         * modules/unistr/u32-next: Likewise.
4167         * modules/unistr/u32-prev: Likewise.
4168         * modules/unistr/u32-set: Likewise.
4169         * modules/unistr/u32-startswith: Likewise.
4170         * modules/unistr/u32-stpcpy: Likewise.
4171         * modules/unistr/u32-stpncpy: Likewise.
4172         * modules/unistr/u32-strcat: Likewise.
4173         * modules/unistr/u32-strchr: Likewise.
4174         * modules/unistr/u32-strcmp: Likewise.
4175         * modules/unistr/u32-strcoll: Likewise.
4176         * modules/unistr/u32-strcpy: Likewise.
4177         * modules/unistr/u32-strcspn: Likewise.
4178         * modules/unistr/u32-strdup: Likewise.
4179         * modules/unistr/u32-strlen: Likewise.
4180         * modules/unistr/u32-strmblen: Likewise.
4181         * modules/unistr/u32-strmbtouc: Likewise.
4182         * modules/unistr/u32-strncat: Likewise.
4183         * modules/unistr/u32-strncmp: Likewise.
4184         * modules/unistr/u32-strncpy: Likewise.
4185         * modules/unistr/u32-strnlen: Likewise.
4186         * modules/unistr/u32-strpbrk: Likewise.
4187         * modules/unistr/u32-strrchr: Likewise.
4188         * modules/unistr/u32-strspn: Likewise.
4189         * modules/unistr/u32-strstr: Likewise.
4190         * modules/unistr/u32-strtok: Likewise.
4191         * modules/unistr/u32-to-u16: Likewise.
4192         * modules/unistr/u32-to-u8: Likewise.
4193         * modules/unistr/u32-uctomb: Likewise.
4194         * modules/uniwbrk/u8-wordbreaks: Likewise.
4195         * modules/uniwbrk/u16-wordbreaks: Likewise.
4196         * modules/uniwbrk/u32-wordbreaks: Likewise.
4197         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4198         * modules/uniwbrk/wordbreak-property: Likewise.
4199         * modules/uniwidth/u8-strwidth: Likewise.
4200         * modules/uniwidth/u8-width: Likewise.
4201         * modules/uniwidth/u16-strwidth: Likewise.
4202         * modules/uniwidth/u16-width: Likewise.
4203         * modules/uniwidth/u32-strwidth: Likewise.
4204         * modules/uniwidth/u32-width: Likewise.
4205         * modules/uniwidth/width: Likewise.
4206         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4207         with $(LIBUNISTRING).
4208         * modules/unicase/ignorable-tests: Likewise.
4209         * modules/unicase/locale-language-tests: Likewise.
4210         * modules/unicase/tolower-tests: Likewise.
4211         * modules/unicase/totitle-tests: Likewise.
4212         * modules/unicase/toupper-tests: Likewise.
4213         * modules/unicase/u8-casecmp-tests: Likewise.
4214         * modules/unicase/u8-casecoll-tests: Likewise.
4215         * modules/unicase/u8-casefold-tests: Likewise.
4216         * modules/unicase/u8-is-cased-tests: Likewise.
4217         * modules/unicase/u8-is-casefolded-tests: Likewise.
4218         * modules/unicase/u8-is-lowercase-tests: Likewise.
4219         * modules/unicase/u8-is-titlecase-tests: Likewise.
4220         * modules/unicase/u8-is-uppercase-tests: Likewise.
4221         * modules/unicase/u8-tolower-tests: Likewise.
4222         * modules/unicase/u8-totitle-tests: Likewise.
4223         * modules/unicase/u8-toupper-tests: Likewise.
4224         * modules/unicase/u16-casecmp-tests: Likewise.
4225         * modules/unicase/u16-casecoll-tests: Likewise.
4226         * modules/unicase/u16-casefold-tests: Likewise.
4227         * modules/unicase/u16-is-cased-tests: Likewise.
4228         * modules/unicase/u16-is-casefolded-tests: Likewise.
4229         * modules/unicase/u16-is-lowercase-tests: Likewise.
4230         * modules/unicase/u16-is-titlecase-tests: Likewise.
4231         * modules/unicase/u16-is-uppercase-tests: Likewise.
4232         * modules/unicase/u16-tolower-tests: Likewise.
4233         * modules/unicase/u16-totitle-tests: Likewise.
4234         * modules/unicase/u16-toupper-tests: Likewise.
4235         * modules/unicase/u32-casecmp-tests: Likewise.
4236         * modules/unicase/u32-casecoll-tests: Likewise.
4237         * modules/unicase/u32-casefold-tests: Likewise.
4238         * modules/unicase/u32-is-cased-tests: Likewise.
4239         * modules/unicase/u32-is-casefolded-tests: Likewise.
4240         * modules/unicase/u32-is-lowercase-tests: Likewise.
4241         * modules/unicase/u32-is-titlecase-tests: Likewise.
4242         * modules/unicase/u32-is-uppercase-tests: Likewise.
4243         * modules/unicase/u32-tolower-tests: Likewise.
4244         * modules/unicase/u32-totitle-tests: Likewise.
4245         * modules/unicase/u32-toupper-tests: Likewise.
4246         * modules/unicase/ulc-casecmp-tests: Likewise.
4247         * modules/unicase/ulc-casecoll-tests: Likewise.
4248         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
4249         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
4250         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
4251         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
4252         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
4253         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
4254         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
4255         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
4256         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
4257         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
4258         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
4259         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
4260         * modules/unictype/bidicategory-byname-tests: Likewise.
4261         * modules/unictype/bidicategory-name-tests: Likewise.
4262         * modules/unictype/bidicategory-of-tests: Likewise.
4263         * modules/unictype/bidicategory-test-tests: Likewise.
4264         * modules/unictype/block-list-tests: Likewise.
4265         * modules/unictype/block-of-tests: Likewise.
4266         * modules/unictype/block-test-tests: Likewise.
4267         * modules/unictype/category-C-tests: Likewise.
4268         * modules/unictype/category-Cc-tests: Likewise.
4269         * modules/unictype/category-Cf-tests: Likewise.
4270         * modules/unictype/category-Cn-tests: Likewise.
4271         * modules/unictype/category-Co-tests: Likewise.
4272         * modules/unictype/category-Cs-tests: Likewise.
4273         * modules/unictype/category-L-tests: Likewise.
4274         * modules/unictype/category-Ll-tests: Likewise.
4275         * modules/unictype/category-Lm-tests: Likewise.
4276         * modules/unictype/category-Lo-tests: Likewise.
4277         * modules/unictype/category-Lt-tests: Likewise.
4278         * modules/unictype/category-Lu-tests: Likewise.
4279         * modules/unictype/category-M-tests: Likewise.
4280         * modules/unictype/category-Mc-tests: Likewise.
4281         * modules/unictype/category-Me-tests: Likewise.
4282         * modules/unictype/category-Mn-tests: Likewise.
4283         * modules/unictype/category-N-tests: Likewise.
4284         * modules/unictype/category-Nd-tests: Likewise.
4285         * modules/unictype/category-Nl-tests: Likewise.
4286         * modules/unictype/category-No-tests: Likewise.
4287         * modules/unictype/category-P-tests: Likewise.
4288         * modules/unictype/category-Pc-tests: Likewise.
4289         * modules/unictype/category-Pd-tests: Likewise.
4290         * modules/unictype/category-Pe-tests: Likewise.
4291         * modules/unictype/category-Pf-tests: Likewise.
4292         * modules/unictype/category-Pi-tests: Likewise.
4293         * modules/unictype/category-Po-tests: Likewise.
4294         * modules/unictype/category-Ps-tests: Likewise.
4295         * modules/unictype/category-S-tests: Likewise.
4296         * modules/unictype/category-Sc-tests: Likewise.
4297         * modules/unictype/category-Sk-tests: Likewise.
4298         * modules/unictype/category-Sm-tests: Likewise.
4299         * modules/unictype/category-So-tests: Likewise.
4300         * modules/unictype/category-Z-tests: Likewise.
4301         * modules/unictype/category-Zl-tests: Likewise.
4302         * modules/unictype/category-Zp-tests: Likewise.
4303         * modules/unictype/category-Zs-tests: Likewise.
4304         * modules/unictype/category-and-not-tests: Likewise.
4305         * modules/unictype/category-and-tests: Likewise.
4306         * modules/unictype/category-byname-tests: Likewise.
4307         * modules/unictype/category-name-tests: Likewise.
4308         * modules/unictype/category-none-tests: Likewise.
4309         * modules/unictype/category-of-tests: Likewise.
4310         * modules/unictype/category-or-tests: Likewise.
4311         * modules/unictype/category-test-withtable-tests: Likewise.
4312         * modules/unictype/combining-class-tests: Likewise.
4313         * modules/unictype/ctype-alnum-tests: Likewise.
4314         * modules/unictype/ctype-alpha-tests: Likewise.
4315         * modules/unictype/ctype-blank-tests: Likewise.
4316         * modules/unictype/ctype-cntrl-tests: Likewise.
4317         * modules/unictype/ctype-digit-tests: Likewise.
4318         * modules/unictype/ctype-graph-tests: Likewise.
4319         * modules/unictype/ctype-lower-tests: Likewise.
4320         * modules/unictype/ctype-print-tests: Likewise.
4321         * modules/unictype/ctype-punct-tests: Likewise.
4322         * modules/unictype/ctype-space-tests: Likewise.
4323         * modules/unictype/ctype-upper-tests: Likewise.
4324         * modules/unictype/ctype-xdigit-tests: Likewise.
4325         * modules/unictype/decimal-digit-tests: Likewise.
4326         * modules/unictype/digit-tests: Likewise.
4327         * modules/unictype/mirror-tests: Likewise.
4328         * modules/unictype/numeric-tests: Likewise.
4329         * modules/unictype/property-alphabetic-tests: Likewise.
4330         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4331         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4332         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4333         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4334         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4335         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4336         * modules/unictype/property-bidi-control-tests: Likewise.
4337         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4338         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4339         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4340         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4341         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4342         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4343         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4344         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4345         * modules/unictype/property-bidi-pdf-tests: Likewise.
4346         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4347         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4348         * modules/unictype/property-byname-tests: Likewise.
4349         * modules/unictype/property-combining-tests: Likewise.
4350         * modules/unictype/property-composite-tests: Likewise.
4351         * modules/unictype/property-currency-symbol-tests: Likewise.
4352         * modules/unictype/property-dash-tests: Likewise.
4353         * modules/unictype/property-decimal-digit-tests: Likewise.
4354         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4355         * modules/unictype/property-deprecated-tests: Likewise.
4356         * modules/unictype/property-diacritic-tests: Likewise.
4357         * modules/unictype/property-extender-tests: Likewise.
4358         * modules/unictype/property-format-control-tests: Likewise.
4359         * modules/unictype/property-grapheme-base-tests: Likewise.
4360         * modules/unictype/property-grapheme-extend-tests: Likewise.
4361         * modules/unictype/property-grapheme-link-tests: Likewise.
4362         * modules/unictype/property-hex-digit-tests: Likewise.
4363         * modules/unictype/property-hyphen-tests: Likewise.
4364         * modules/unictype/property-id-continue-tests: Likewise.
4365         * modules/unictype/property-id-start-tests: Likewise.
4366         * modules/unictype/property-ideographic-tests: Likewise.
4367         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4368         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4369         * modules/unictype/property-ignorable-control-tests: Likewise.
4370         * modules/unictype/property-iso-control-tests: Likewise.
4371         * modules/unictype/property-join-control-tests: Likewise.
4372         * modules/unictype/property-left-of-pair-tests: Likewise.
4373         * modules/unictype/property-line-separator-tests: Likewise.
4374         * modules/unictype/property-logical-order-exception-tests: Likewise.
4375         * modules/unictype/property-lowercase-tests: Likewise.
4376         * modules/unictype/property-math-tests: Likewise.
4377         * modules/unictype/property-non-break-tests: Likewise.
4378         * modules/unictype/property-not-a-character-tests: Likewise.
4379         * modules/unictype/property-numeric-tests: Likewise.
4380         * modules/unictype/property-other-alphabetic-tests: Likewise.
4381         * modules/unictype/property-other-default-ignorable-code-point-tests:
4382         Likewise.
4383         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4384         * modules/unictype/property-other-id-continue-tests: Likewise.
4385         * modules/unictype/property-other-id-start-tests: Likewise.
4386         * modules/unictype/property-other-lowercase-tests: Likewise.
4387         * modules/unictype/property-other-math-tests: Likewise.
4388         * modules/unictype/property-other-uppercase-tests: Likewise.
4389         * modules/unictype/property-paired-punctuation-tests: Likewise.
4390         * modules/unictype/property-paragraph-separator-tests: Likewise.
4391         * modules/unictype/property-pattern-syntax-tests: Likewise.
4392         * modules/unictype/property-pattern-white-space-tests: Likewise.
4393         * modules/unictype/property-private-use-tests: Likewise.
4394         * modules/unictype/property-punctuation-tests: Likewise.
4395         * modules/unictype/property-quotation-mark-tests: Likewise.
4396         * modules/unictype/property-radical-tests: Likewise.
4397         * modules/unictype/property-sentence-terminal-tests: Likewise.
4398         * modules/unictype/property-soft-dotted-tests: Likewise.
4399         * modules/unictype/property-space-tests: Likewise.
4400         * modules/unictype/property-terminal-punctuation-tests: Likewise.
4401         * modules/unictype/property-test-tests: Likewise.
4402         * modules/unictype/property-titlecase-tests: Likewise.
4403         * modules/unictype/property-unassigned-code-value-tests: Likewise.
4404         * modules/unictype/property-unified-ideograph-tests: Likewise.
4405         * modules/unictype/property-uppercase-tests: Likewise.
4406         * modules/unictype/property-variation-selector-tests: Likewise.
4407         * modules/unictype/property-white-space-tests: Likewise.
4408         * modules/unictype/property-xid-continue-tests: Likewise.
4409         * modules/unictype/property-xid-start-tests: Likewise.
4410         * modules/unictype/property-zero-width-tests: Likewise.
4411         * modules/unictype/scripts-tests: Likewise.
4412         * modules/unictype/syntax-c-ident-tests: Likewise.
4413         * modules/unictype/syntax-c-whitespace-tests: Likewise.
4414         * modules/unictype/syntax-java-ident-tests: Likewise.
4415         * modules/unictype/syntax-java-whitespace-tests: Likewise.
4416         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
4417         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
4418         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
4419         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
4420         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
4421         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
4422         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
4423         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
4424         * modules/uniname/uniname-tests: Likewise.
4425         * modules/uninorm/canonical-decomposition-tests: Likewise.
4426         * modules/uninorm/compat-decomposition-tests: Likewise.
4427         * modules/uninorm/composition-tests: Likewise.
4428         * modules/uninorm/decomposing-form-tests: Likewise.
4429         * modules/uninorm/decomposition-tests: Likewise.
4430         * modules/uninorm/filter-tests: Likewise.
4431         * modules/uninorm/nfc-tests: Likewise.
4432         * modules/uninorm/nfd-tests: Likewise.
4433         * modules/uninorm/nfkc-tests: Likewise.
4434         * modules/uninorm/nfkd-tests: Likewise.
4435         * modules/uninorm/u8-normcmp-tests: Likewise.
4436         * modules/uninorm/u8-normcoll-tests: Likewise.
4437         * modules/uninorm/u16-normcmp-tests: Likewise.
4438         * modules/uninorm/u16-normcoll-tests: Likewise.
4439         * modules/uninorm/u32-normcmp-tests: Likewise.
4440         * modules/uninorm/u32-normcoll-tests: Likewise.
4441         * modules/unistdio/u8-asnprintf-tests: Likewise.
4442         * modules/unistdio/u8-vasnprintf-tests: Likewise.
4443         * modules/unistdio/u8-vasprintf-tests: Likewise.
4444         * modules/unistdio/u8-vsnprintf-tests: Likewise.
4445         * modules/unistdio/u8-vsprintf-tests: Likewise.
4446         * modules/unistdio/u16-asnprintf-tests: Likewise.
4447         * modules/unistdio/u16-vasnprintf-tests: Likewise.
4448         * modules/unistdio/u16-vasprintf-tests: Likewise.
4449         * modules/unistdio/u16-vsnprintf-tests: Likewise.
4450         * modules/unistdio/u16-vsprintf-tests: Likewise.
4451         * modules/unistdio/u32-asnprintf-tests: Likewise.
4452         * modules/unistdio/u32-vasnprintf-tests: Likewise.
4453         * modules/unistdio/u32-vasprintf-tests: Likewise.
4454         * modules/unistdio/u32-vsnprintf-tests: Likewise.
4455         * modules/unistdio/u32-vsprintf-tests: Likewise.
4456         * modules/unistdio/ulc-asnprintf-tests: Likewise.
4457         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
4458         * modules/unistdio/ulc-vasprintf-tests: Likewise.
4459         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
4460         * modules/unistdio/ulc-vsprintf-tests: Likewise.
4461         * modules/unistr/u8-check-tests: Likewise.
4462         * modules/unistr/u8-chr-tests: Likewise.
4463         * modules/unistr/u8-cmp-tests: Likewise.
4464         * modules/unistr/u8-cmp2-tests: Likewise.
4465         * modules/unistr/u8-cpy-alloc-tests: Likewise.
4466         * modules/unistr/u8-cpy-tests: Likewise.
4467         * modules/unistr/u8-mblen-tests: Likewise.
4468         * modules/unistr/u8-mbsnlen-tests: Likewise.
4469         * modules/unistr/u8-mbtouc-tests: Likewise.
4470         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
4471         * modules/unistr/u8-mbtoucr-tests: Likewise.
4472         * modules/unistr/u8-move-tests: Likewise.
4473         * modules/unistr/u8-next-tests: Likewise.
4474         * modules/unistr/u8-prev-tests: Likewise.
4475         * modules/unistr/u8-set-tests: Likewise.
4476         * modules/unistr/u8-stpcpy-tests: Likewise.
4477         * modules/unistr/u8-stpncpy-tests: Likewise.
4478         * modules/unistr/u8-strcat-tests: Likewise.
4479         * modules/unistr/u8-strcmp-tests: Likewise.
4480         * modules/unistr/u8-strcoll-tests: Likewise.
4481         * modules/unistr/u8-strcpy-tests: Likewise.
4482         * modules/unistr/u8-strdup-tests: Likewise.
4483         * modules/unistr/u8-strlen-tests: Likewise.
4484         * modules/unistr/u8-strmblen-tests: Likewise.
4485         * modules/unistr/u8-strmbtouc-tests: Likewise.
4486         * modules/unistr/u8-strncat-tests: Likewise.
4487         * modules/unistr/u8-strncmp-tests: Likewise.
4488         * modules/unistr/u8-strncpy-tests: Likewise.
4489         * modules/unistr/u8-strnlen-tests: Likewise.
4490         * modules/unistr/u8-to-u16-tests: Likewise.
4491         * modules/unistr/u8-to-u32-tests: Likewise.
4492         * modules/unistr/u8-uctomb-tests: Likewise.
4493         * modules/unistr/u16-check-tests: Likewise.
4494         * modules/unistr/u16-chr-tests: Likewise.
4495         * modules/unistr/u16-cmp-tests: Likewise.
4496         * modules/unistr/u16-cmp2-tests: Likewise.
4497         * modules/unistr/u16-cpy-alloc-tests: Likewise.
4498         * modules/unistr/u16-cpy-tests: Likewise.
4499         * modules/unistr/u16-mblen-tests: Likewise.
4500         * modules/unistr/u16-mbsnlen-tests: Likewise.
4501         * modules/unistr/u16-mbtouc-tests: Likewise.
4502         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
4503         * modules/unistr/u16-mbtoucr-tests: Likewise.
4504         * modules/unistr/u16-move-tests: Likewise.
4505         * modules/unistr/u16-next-tests: Likewise.
4506         * modules/unistr/u16-prev-tests: Likewise.
4507         * modules/unistr/u16-set-tests: Likewise.
4508         * modules/unistr/u16-stpcpy-tests: Likewise.
4509         * modules/unistr/u16-stpncpy-tests: Likewise.
4510         * modules/unistr/u16-strcat-tests: Likewise.
4511         * modules/unistr/u16-strcmp-tests: Likewise.
4512         * modules/unistr/u16-strcoll-tests: Likewise.
4513         * modules/unistr/u16-strcpy-tests: Likewise.
4514         * modules/unistr/u16-strdup-tests: Likewise.
4515         * modules/unistr/u16-strlen-tests: Likewise.
4516         * modules/unistr/u16-strmblen-tests: Likewise.
4517         * modules/unistr/u16-strmbtouc-tests: Likewise.
4518         * modules/unistr/u16-strncat-tests: Likewise.
4519         * modules/unistr/u16-strncmp-tests: Likewise.
4520         * modules/unistr/u16-strncpy-tests: Likewise.
4521         * modules/unistr/u16-strnlen-tests: Likewise.
4522         * modules/unistr/u16-to-u32-tests: Likewise.
4523         * modules/unistr/u16-to-u8-tests: Likewise.
4524         * modules/unistr/u16-uctomb-tests: Likewise.
4525         * modules/unistr/u32-check-tests: Likewise.
4526         * modules/unistr/u32-chr-tests: Likewise.
4527         * modules/unistr/u32-cmp-tests: Likewise.
4528         * modules/unistr/u32-cmp2-tests: Likewise.
4529         * modules/unistr/u32-cpy-alloc-tests: Likewise.
4530         * modules/unistr/u32-cpy-tests: Likewise.
4531         * modules/unistr/u32-mblen-tests: Likewise.
4532         * modules/unistr/u32-mbsnlen-tests: Likewise.
4533         * modules/unistr/u32-mbtouc-tests: Likewise.
4534         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
4535         * modules/unistr/u32-mbtoucr-tests: Likewise.
4536         * modules/unistr/u32-move-tests: Likewise.
4537         * modules/unistr/u32-next-tests: Likewise.
4538         * modules/unistr/u32-prev-tests: Likewise.
4539         * modules/unistr/u32-set-tests: Likewise.
4540         * modules/unistr/u32-stpcpy-tests: Likewise.
4541         * modules/unistr/u32-stpncpy-tests: Likewise.
4542         * modules/unistr/u32-strcat-tests: Likewise.
4543         * modules/unistr/u32-strcmp-tests: Likewise.
4544         * modules/unistr/u32-strcoll-tests: Likewise.
4545         * modules/unistr/u32-strcpy-tests: Likewise.
4546         * modules/unistr/u32-strdup-tests: Likewise.
4547         * modules/unistr/u32-strlen-tests: Likewise.
4548         * modules/unistr/u32-strmblen-tests: Likewise.
4549         * modules/unistr/u32-strmbtouc-tests: Likewise.
4550         * modules/unistr/u32-strncat-tests: Likewise.
4551         * modules/unistr/u32-strncmp-tests: Likewise.
4552         * modules/unistr/u32-strncpy-tests: Likewise.
4553         * modules/unistr/u32-strnlen-tests: Likewise.
4554         * modules/unistr/u32-to-u16-tests: Likewise.
4555         * modules/unistr/u32-to-u8-tests: Likewise.
4556         * modules/unistr/u32-uctomb-tests: Likewise.
4557         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
4558         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
4559         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
4560         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
4561         * modules/uniwidth/u8-strwidth-tests: Likewise.
4562         * modules/uniwidth/u8-width-tests: Likewise.
4563         * modules/uniwidth/u16-strwidth-tests: Likewise.
4564         * modules/uniwidth/u16-width-tests: Likewise.
4565         * modules/uniwidth/u32-strwidth-tests: Likewise.
4566         * modules/uniwidth/u32-width-tests: Likewise.
4567         * modules/uniwidth/width-tests: Likewise.
4568
4569 2010-05-18  Richard Jones  <rjones@redhat.com>
4570
4571         doc: users.txt: list hivex
4572         * users.txt: Add hivex.
4573
4574 2010-05-18  Richard Jones  <rjones@redhat.com>
4575
4576         doc: users.txt: list febootstrap
4577         * users.txt: Add febootstrap.
4578
4579 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
4580
4581         bootstrap: fix an error when gnulib is not used as a git submodule
4582         * build-aux/bootstrap (gnulib_path): If its length is zero then
4583         assign "gnulib" to it.
4584         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
4585
4586 2010-05-16  Bruno Haible  <bruno@clisp.org>
4587
4588         Avoid autoconf warnings about AM_ICONV.
4589         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
4590         2.64.
4591
4592 2010-05-16  Bruno Haible  <bruno@clisp.org>
4593
4594         absolute-header: Make the macro usable in more situations.
4595         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
4596         from gl_ABSOLUTE_HEADER.
4597         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
4598
4599 2010-05-16  James Youngman  <jay@gnu.org>
4600
4601         doc: update users.txt
4602         * users.txt: Add CSSC.
4603
4604 2010-05-16  Jim Meyering  <meyering@redhat.com>
4605
4606         init.sh: fix an error in the previous change; add more comments
4607         * tests/init.sh: Compare exit code in loop against 9, not 2.
4608         Patch by Bruno Haible.
4609         Make the two tests more similar by adding an empty "then" clause.
4610         Add comments.
4611
4612         init.sh: avoid unnecessary shell re-exec
4613         * tests/init.sh: Improve the re-exec-required check to first test the
4614         current shell.  If it passes the test, do not search for a shell that
4615         does pass, and do not re-exec.  This test is particularly contorted to
4616         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
4617         of $(...) evokes a syntax error and causes immediate shell exit with
4618         status 2.  Bruno Haible reported that the re-exec made it impossible
4619         to single-step through any init.sh-using script.
4620
4621 2010-05-16  Bruno Haible  <bruno@clisp.org>
4622
4623         Fix collision between gnulib's and libintl's printf replacements.
4624         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
4625         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
4626         (printf): When using GNU C, map the __printf__ function to rpl_printf
4627         via __asm__. When not using GNU C, define rpl_printf instead of
4628         __printf__.
4629         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
4630         commit.
4631         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
4632         commit.
4633         * m4/asm-underscore.m4: New file.
4634         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
4635         * modules/stdio (Files): Add m4/asm-underscore.m4.
4636         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
4637         Reported by Ben Pfaff.
4638
4639 2010-05-16  Bruno Haible  <bruno@clisp.org>
4640
4641         verify: Avoid skipping the test on openSUSE 11.0.
4642         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
4643
4644 2010-05-13  Bruno Haible  <bruno@clisp.org>
4645
4646         Avoid useless warnings from G++.
4647         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
4648         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
4649         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4650
4651 2010-05-11  Jim Meyering  <meyering@redhat.com>
4652
4653         maint.mk: tweak preceding change
4654         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
4655         regexps tighter by anchoring at EOL, and make the new group "shy"
4656         for slightly decreased overhead.
4657
4658 2010-05-11  Eric Blake  <eblake@redhat.com>
4659
4660         maint.mk: gnulib doesn't guarantee NSIG
4661         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
4662
4663 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4664
4665         test-pwrite.c: Remove unused variable declaration.
4666         * tests/test-pwrite.c (main): Remove read_buf declaration.
4667
4668         Remove useless test-pwrite.sh file.
4669         * tests/test-pwrite.sh: Delete file.
4670         * modules/pwrite-tests: Remove references.
4671         Reported by Bruno Haible.
4672
4673 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4674
4675         init.sh: fix a typo
4676         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
4677
4678 2010-05-10  Jim Meyering  <meyering@redhat.com>
4679
4680         maint.mk: avoid using a temporary file in the always-defined-macros check
4681         * top/maint.mk (.re-defmac): Remove rule.
4682         (gl_trap_): Remove definition.
4683         (sc_prohibit_always-defined_macros): Rewrite not to create and
4684         depend on a temporary file.  Instead, depend on GNU grep's ability
4685         to read a list of regular expressions from stdin when given "-f -".
4686
4687 2010-05-09  Bruno Haible  <bruno@clisp.org>
4688
4689         Update to GNU gettext 0.18, part 1.
4690         * m4/gettext.m4: Update to GNU gettext 0.18.
4691         * m4/intl.m4: Likewise.
4692         * m4/po.m4: Likewise.
4693         * modules/gettext (Files): Add m4/fcntl-o.m4.
4694         (configure.ac): Require gettext infrastructure from version 0.18.
4695
4696 2010-05-09  Jim Meyering  <meyering@redhat.com>
4697
4698         init.sh: enable MALLOC_PERTURB_
4699         * tests/init.sh: Enable glibc's malloc-perturbing option.
4700
4701         maint.mk: improve sc_cross_check_PATH_usage_in_tests
4702         With my recent change in init.sh from the two-line form:
4703             -#   : ${srcdir=.}
4704             -#   . "$srcdir/init.sh"; path_prepend_ .
4705             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
4706         I noticed that using the one-line form would cause this test
4707         to fail with a false-positive, or to stop working altogether,
4708         depending on whether help-version changed or all the tests did.
4709         * top/maint.mk (_hv_regex): Remove this definition.
4710         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
4711         (_hv_regex_strong): Use a stronger regex to check for conformance.
4712         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
4713         Give a separate diagnostic for lack of conforming use.
4714
4715         maint.mk: prohibit definition of symbols defined by gnulib
4716         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
4717         definition of symbols defined by gnulib.
4718
4719 2010-05-09  Bruno Haible  <bruno@clisp.org>
4720
4721         acl: Avoid test failure on Cygwin-hosted mingw.
4722         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
4723
4724 2010-05-09  Bruno Haible  <bruno@clisp.org>
4725
4726         error: Use system's fcntl function.
4727         * lib/error.c (fcntl): Undefine.
4728
4729 2010-05-09  Jim Meyering  <meyering@redhat.com>
4730
4731         verify: adjust formatting to be more consistent
4732         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
4733         argument-list '('s, and after one comma.
4734
4735 2010-05-09  Bruno Haible  <bruno@clisp.org>
4736
4737         error: More reliable output on mingw.
4738         * lib/error.c: Include <windows.h>.
4739         (is_open): New function.
4740         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
4741         defined.
4742
4743 2010-05-09  Bruno Haible  <bruno@clisp.org>
4744
4745         vasnprintf: Fix syntax errors in libintl build on mingw.
4746         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
4747         pad_ourselves and prec_ourselves after use.
4748
4749 2010-05-08  Bruno Haible  <bruno@clisp.org>
4750
4751         * lib/config.charset: Update comments for Cygwin 1.7.
4752         * lib/localcharset.c: Likewise.
4753
4754 2010-05-07  Jim Meyering  <meyering@redhat.com>
4755
4756         init.sh: improve comments
4757         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
4758         . "${srcdir=.}/init.sh"; path_prepend_ .
4759         Add a note about path_prepend_ and the alternative of using
4760         TESTS_ENVIRONMENT.
4761
4762 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
4763
4764         exclude: Unescape hashed patterns in wildcard mode.
4765         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
4766         to the hash list.
4767         * tests/test-exclude8.sh: New test case.
4768         * modules/exclude-tests: Add new test.
4769
4770 2010-05-05  Eric Blake  <eblake@redhat.com>
4771
4772         verify: automate tests
4773         * modules/verify-tests: New module.
4774         * tests/test-verify.sh: New file.
4775         * tests/test-verify.c: Guard each negative test with a unique id.
4776         Also avoid warning about unused left hand of comma expressions.
4777
4778 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4779
4780         Further improvements to verify.h, suggested by Eric Blake.
4781         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
4782         the GL_* versions, to avoid collision with OpenGL.
4783         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
4784         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
4785         than testing merely whether it's defined.
4786
4787         Modify verify.h to pacify gcc -Wredundant_decls.
4788         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
4789         These use the prefix "GL_" since they're likely to be useful elsewhere.
4790         We may need to break them out into a different .h file.
4791         (__COUNTER__): Define to 0 if the compiler doesn't support it.
4792         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
4793         of verify_function__.
4794
4795 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4796
4797         Tests for module pwrite.
4798         * modules/pwrite-tests: New file.
4799         * tests/test-pwrite.sh: New file.
4800         * tests/test-pwrite.c: New file.
4801
4802         New module pwrite.
4803         * lib/unistd.in.h (pwrite): New declaration.
4804         * lib/pwrite.c: New file, from glibc with modifications.
4805         * m4/pwrite.m4: New file.
4806         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
4807         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
4808         REPLACE_PWRITE.
4809         * modules/pwrite: New file.
4810         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
4811         REPLACE_PWRITE.
4812         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
4813         * doc/posix-functions/pwrite.texi: Mention the new module.
4814
4815 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4816
4817         pread: Update documentation.
4818         * doc/posix-functions/pread.texi: Mention the 'pread' module.
4819
4820 2010-05-04  Eric Blake  <eblake@redhat.com>
4821
4822         docs: update cygwin progress
4823         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
4824         this bug.
4825         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
4826         Added in cygwin 1.7.2.
4827         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
4828         Likewise.
4829         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
4830         Likewise.
4831         * doc/glibc-functions/dup3.texi (dup3): Likewise.
4832         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4833         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4834         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
4835         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
4836         Mention nproc module.
4837         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
4838         bug in cygwin 1.7.5 addition.
4839         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
4840         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
4841         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
4842         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
4843         1.7.5.
4844         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
4845         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
4846         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
4847         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
4848         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
4849         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
4850         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
4851         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
4852         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
4853         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
4854         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
4855         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
4856         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
4857         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
4858         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
4859         Likewise.
4860         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
4861         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
4862         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
4863         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
4864         Likewise.
4865         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
4866         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
4867         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
4868         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
4869         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
4870         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
4871         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
4872         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
4873         Likewise.
4874         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
4875         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
4876         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
4877         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
4878         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
4879         Likewise.
4880         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
4881         Likewise.
4882         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
4883         Likewise.
4884         * doc/glibc-functions/xdrrec_endofrecord.texi
4885         (xdrrec_endofrecord): Likewise.
4886         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
4887         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
4888         Likewise.
4889         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
4890         Likewise.
4891
4892 2010-05-04  Jim Meyering  <meyering@redhat.com>
4893
4894         gendocs.sh: make its "-s FILE" option more useful
4895         * build-aux/gendocs.sh: When honoring the -s FILE option, update
4896         $PACKAGE to reflect the probably-different basename of "FILE".
4897
4898 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
4899
4900         bootstrap: don't ignore download_po_files failure
4901         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
4902         failure.
4903
4904 2010-05-03  Jim Meyering  <meyering@redhat.com>
4905
4906         maint.mk: allow to pass options to gendocs.sh
4907         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
4908         (gendocs_options_): New overridable variable.
4909
4910         gnu-web-doc-update: don't ignore configure or build failure
4911         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
4912
4913         announce-gen: backslash-escape '@'s in --help output
4914         * build-aux/announce-gen: Fix syntax errors.
4915
4916         maint.mk, announce-gen: allow project-specific announcement mail headers
4917         * top/maint.mk (translation_project_): Define default.
4918         (announcement_Cc_, announcement_mail_headers_): Likewise.
4919         (announcement): Invoke announce-gen with new --mail-headers option.
4920         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
4921
4922         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
4923         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
4924         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
4925         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
4926         line in the "err2" output file when running "make check" in verbose
4927         mode (i.e., with set -x enabled).
4928
4929 2010-05-03  Bruno Haible  <bruno@clisp.org>
4930
4931         wctob: Fix for weird platforms.
4932         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
4933         argument value.
4934
4935 2010-05-03  Jim Meyering  <meyering@redhat.com>
4936
4937         maint.mk: prohibit unwarranted use of <strings.h>
4938         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
4939         strings.h in a file that does not also use strcasecmp, strncasecmp,
4940         ffs or ffsll.
4941
4942         maint.mk: remove obsolete comments
4943         * top/maint.mk: Remove stale, commented-out rules.
4944
4945 2010-05-02  Bruno Haible  <bruno@clisp.org>
4946
4947         wcwidth: Declare also when it's aliased.
4948         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
4949         macro.
4950
4951 2010-05-02  Bruno Haible  <bruno@clisp.org>
4952
4953         Fix regression from 2010-04-25.
4954         * gnulib-tool (func_modules_transitive_closure): Check the status of
4955         all modules, not only of the tests that are of the form foo-tests where
4956         foo is a module.
4957
4958 2010-05-02  Bruno Haible  <bruno@clisp.org>
4959
4960         wctob: Work around nasty Cygwin 1.7.2 bug.
4961         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
4962         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
4963
4964 2010-05-01  Bruno Haible  <bruno@clisp.org>
4965
4966         fpurge: Sharper test.
4967         * tests/test-fpurge.c (main): Add one more ftell check.
4968         * modules/fpurge-tests (Depends-on): Add ftell.
4969         Suggested by Eric Blake.
4970
4971 2010-05-01  Bruno Haible  <bruno@clisp.org>
4972
4973         ftello: Another test.
4974         * tests/test-ftello3.c: New file.
4975         * modules/ftello-tests (Files): Add it.
4976         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
4977         MOSTLYCLEANFILES.
4978
4979         ftell: Another test.
4980         * tests/test-ftell3.c: New file.
4981         * modules/ftell-tests (Files): Add it.
4982         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
4983         MOSTLYCLEANFILES.
4984
4985 2010-05-01  Bruno Haible  <bruno@clisp.org>
4986
4987         ftell, ftello: Work around Solaris bug.
4988         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
4989         * lib/ftello.c: Include stdio-impl.h.
4990         (ftello): On Solaris, when _IOWRT is set, compute the result without
4991         looking at _IOREAD.
4992         * modules/ftello (Files): Add lib/stdio-impl.h.
4993         * doc/posix-functions/ftell.texi: Mention Solaris bug.
4994         * doc/posix-functions/ftello.texi: Likewise.
4995         Reported by Eric Blake.
4996
4997 2010-05-01  Bruno Haible  <bruno@clisp.org>
4998
4999         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5000         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5001         the _IOWRT flag is also set.
5002
5003 2010-05-01  Bruno Haible  <bruno@clisp.org>
5004
5005         Fix doc about a HP-UX stdio bug.
5006         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5007         * doc/posix-functions/ftello.texi: Likewise.
5008
5009 2010-05-01  Bruno Haible  <bruno@clisp.org>
5010
5011         lseek test: Fix failure on Solaris.
5012         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5013         output.
5014
5015 2010-04-30  Jim Meyering  <meyering@redhat.com>
5016
5017         bootstrap: don't ignore failure to generate po*/Makevars
5018         * build-aux/bootstrap (with_gettext): Don't ignore failure
5019         to create po/Makevars or runtime-po/Makevars.
5020
5021 2010-04-29  Eric Blake  <eblake@redhat.com>
5022
5023         headers: relax license to LGPLv2+
5024         * modules/fcntl-h (License): Relax license.
5025         * modules/getopt-posix (License): Likewise.
5026         * modules/locale (License): Likewise.
5027         * modules/math (License): Likewise.
5028         * modules/pty (License): Likewise.
5029         * modules/sched (License): Likewise.
5030         * modules/search (License): Likewise.
5031         * modules/spawn (License): Likewise.
5032         * modules/stdarg (License): Likewise.
5033         * modules/sysexits (License): Likewise.
5034
5035 2010-04-29  Jim Meyering  <meyering@redhat.com>
5036
5037         inttypes: relax license to LGPLv2+
5038         * modules/inttypes (License): Relax license.
5039
5040 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5041
5042         * top/maint.mk (indent): Run twice to produce idempotent results.
5043
5044 2010-04-28  Bruno Haible  <bruno@clisp.org>
5045
5046         getdate: Generate getdate.c in the source directory.
5047         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5048         MOSTLYCLEANFILES.
5049         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5050
5051 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5052
5053         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5054         is not declared as a const *; avoid warnings in that case.
5055
5056 2010-04-28  Eric Blake  <eblake@redhat.com>
5057
5058         canonicalize-lgpl: avoid compiler warning
5059         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5060         declaration' / 'extraneous semicolon' warning with some compilers.
5061         Reported by Andreas Gruenbacher.
5062
5063 2010-04-28  Jim Meyering  <meyering@redhat.com>
5064
5065         init.sh: ensure a more reliable exit status when exiting via trap
5066         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5067         Inspired by patches from Dmitry V. Levin.
5068         Also trap on signal 3 (SIGQUIT).
5069
5070 2010-04-27  Bruno Haible  <bruno@clisp.org>
5071
5072         Update doc about utimes().
5073         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5074         'utimens' module.
5075         Reported by Andreas Gruenbacher <agruen@suse.de>.
5076
5077 2010-04-27  Eric Blake  <eblake@redhat.com>
5078
5079         full-read, full-write: relax license
5080         * modules/full-read (License): Drop to LGPLv2+.
5081         * modules/full-write (License): Likewise.
5082         * modules/safe-read (License): Likewise.
5083         * modules/safe-write (License): Likewise.
5084
5085         pthread: mention library for linking
5086         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5087
5088 2010-04-27  Jim Meyering  <meyering@redhat.com>
5089
5090         maint.mk: fix a bug introduced in last change
5091         * top/maint.mk (gl_assured_headers_): Now that all names are on
5092         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5093         is not anchored to end of word, it should be adequate.
5094
5095         maint.mk: avoid side-effect in latest syntax-check
5096         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5097         to run commands via $(shell...), and hence to incur cost only when
5098         the new rule is actually run.
5099
5100         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5101         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5102         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5103         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5104         (gl_assured_headers_, az_, AZ_): Define.
5105         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5106
5107 2010-04-26  Jim Meyering  <jim@meyering.net>
5108             Bruno Haible  <bruno@clisp.org>
5109
5110         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5111         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5112         Prompted by an exchange with Gilles Espinasse.
5113
5114 2010-04-26  Jim Meyering  <meyering@redhat.com>
5115
5116         git-version-gen: aesthetic tweak
5117         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5118         so that the command remains on a single line.
5119
5120 2010-04-26  Eric Blake  <eblake@redhat.com>
5121
5122         git-version-gen: allow use on EBCDIC hosts
5123         * build-aux/git-version-gen (dirty): Use literal rather than tying
5124         ourselves to ascii.
5125         Reported by Steve Goetze.
5126
5127 2010-04-25  Bruno Haible  <bruno@clisp.org>
5128
5129         netdb: Add support for GNULIB_POSIXCHECK.
5130         * lib/netdb.in.h: Include warn-on-use.h.
5131         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5132         functions are used when GNULIB_POSIXCHECK is defined and the
5133         getaddrinfo module is not in use.
5134         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5135         freeaddrinfo, gai_strerror, getnameinfo are declared.
5136         * modules/netdb (Depends-on): Add warn-on-use.
5137         (Makefile.am): Include warn-on-use.h in netdb.h.
5138
5139 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5140
5141         build: avoid "make check" failure without .git/ directory
5142         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5143         there is no .git/ directory.
5144
5145 2010-04-25  Bruno Haible  <bruno@clisp.org>
5146
5147         ptsname: Fix misuse of ttyname_r.
5148         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5149         of errno.
5150
5151 2010-04-25  Bruno Haible  <bruno@clisp.org>
5152
5153         ttyname_r: Make it work on Solaris 10.
5154         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5155         if the system function has the POSIX declaration. Test whether the
5156         function fails if the buffer is less than 128 bytes large.
5157         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5158         system's ttyname_r function. Provide a reasonably large buffer.
5159         * modules/ttyname_r (Depends-on): Add extensions.
5160         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5161
5162 2010-04-25  Bruno Haible  <bruno@clisp.org>
5163
5164         Use the 'extensions' module for some more functions on Solaris.
5165         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5166         module.
5167         * doc/posix-functions/ctime_r.texi: Likewise.
5168         * doc/posix-functions/getgrgid_r.texi: Likewise.
5169         * doc/posix-functions/getgrnam_r.texi: Likewise.
5170         * doc/posix-functions/getpwnam_r.texi: Likewise.
5171         * doc/posix-functions/getpwuid_r.texi: Likewise.
5172         * doc/posix-functions/readdir_r.texi: Likewise.
5173         * doc/posix-functions/sigwait.texi: Likewise.
5174         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5175         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5176
5177 2010-04-25  Bruno Haible  <bruno@clisp.org>
5178
5179         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5180         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5181         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5182         * lib/ttyname_r.c: Include <limits.h>.
5183         (ttyname_r): Define using the system's ttyname_r function, if it exists
5184         and not on Solaris.
5185         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5186         set.
5187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5188         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5189         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5190         Reported by Simon Josefsson.
5191
5192 2010-04-25  Bruno Haible  <bruno@clisp.org>
5193
5194         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5195         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5196         * doc/posix-functions/ctime_r.texi: Likewise.
5197         * doc/posix-functions/getgrgid_r.texi: Likewise.
5198         * doc/posix-functions/getgrnam_r.texi: Likewise.
5199         * doc/posix-functions/getlogin_r.texi: Likewise.
5200         * doc/posix-functions/getpwnam_r.texi: Likewise.
5201         * doc/posix-functions/getpwuid_r.texi: Likewise.
5202         * doc/posix-functions/readdir_r.texi: Likewise.
5203         * doc/posix-functions/sigwait.texi: Likewise.
5204         * doc/posix-functions/ttyname_r.texi: Likewise.
5205         Reported by Simon Josefsson.
5206
5207 2010-04-25  Bruno Haible  <bruno@clisp.org>
5208
5209         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5210         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5211         also to --create-testdir.
5212         (func_acceptable): Don't consider the status of *-tests modules here.
5213         (func_modules_transitive_closure): Consider it here, before including a
5214         test module.
5215         (func_import, func_create_testdir): Set inc_all_direct_tests,
5216         inc_all_indirect_tests.
5217         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5218         --create-testdir and --create-megatestdir.
5219
5220 2010-04-25  Bruno Haible  <bruno@clisp.org>
5221
5222         gnulib-tool: Add --without-*-tests options.
5223         * gnulib-tool (func_usage): Document the --without-*-tests options.
5224         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
5225         excl_unportable_tests): New variables.
5226         Fail if they are specified with --import or --update.
5227         (func_acceptable): Respect the excl_*_tests variables.
5228         (func_import): Set the excl_*_tests variables to empty.
5229
5230 2010-04-25  Simon Josefsson  <simon@josefsson.org>
5231             Bruno Haible  <bruno@clisp.org>
5232
5233         Work around a MacOS X 10.4 bug with openpty.
5234         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
5235         * tests/test-openpty.c (main): Close the master side explicitly.
5236
5237 2010-04-25  Bruno Haible  <bruno@clisp.org>
5238
5239         strnlen: Fix a C++ test error on MacOS X and Solaris.
5240         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
5241         the function is not declared.
5242         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
5243         Simon Josefsson.
5244
5245 2010-04-24  Bruno Haible  <bruno@clisp.org>
5246
5247         Avoid a gcc warning.
5248         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
5249         of correct type for %08lx directive.
5250         Reported by Eric Blake.
5251
5252 2010-04-24  Bruno Haible  <bruno@clisp.org>
5253
5254         vasnprintf: Correct errno value in case of out-of-memory.
5255         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
5256         or sprintf. Use the errno value from SNPRINTF or sprintf.
5257         Reported by Ian Beckwith <ianb@erislabs.net>.
5258
5259 2010-04-24  Bruno Haible  <bruno@clisp.org>
5260
5261         ansi-c++-opt: Find correct compiler when cross-compiling.
5262         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5263         AC_CHECK_PROGS.
5264         Reported by Simon Josefsson.
5265
5266 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5267
5268         vc-list-files: Add support for subversion
5269         * build-aux/vc-list-files: Use "svn list" to generate the list of
5270         files controlled by subversion.
5271
5272 2010-04-23  Jim Meyering  <meyering@redhat.com>
5273
5274         vc-list-files tests: convert to use init.sh
5275         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5276         path_prepend_.
5277         Use Exit, not exit.
5278         Use skip_ rather than open coding it.
5279         Remove trap set-up and compare definitions.
5280         * tests/test-vc-list-files-git.sh: Likewise.
5281         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5282
5283 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5284
5285         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5286         backup files.
5287
5288 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5289
5290         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5291
5292 2010-04-20  Eric Blake  <eblake@redhat.com>
5293
5294         tests: be robust to ignored SIGPIPE
5295         * tests/test-select-in.sh: Consume all output.
5296         * tests/test-lseek.sh: Check correct exit status, while avoiding
5297         EPIPE.
5298
5299 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5300             Bruno Haible  <bruno@clisp.org>
5301
5302         visibility: Don't use -fvisibility if it leads to a warning.
5303         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5304         yes, don't pretend that visibility works if it leads to a warning.
5305         Reported by Mike Gran <spk121@yahoo.com>.
5306
5307 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5308
5309         * build-aux/bootstrap: Use "git -h" for testing for supported options
5310         instead of "git --help".  The short-form option only shows a summary,
5311         and doesn't layout the full man page.  Grep for the full option name
5312         in the summary, too.
5313
5314 2010-04-19  Bruno Haible  <bruno@clisp.org>
5315
5316         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5317         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5318         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5319         mention of RELOCATABLE_STRIP.
5320         Reported by Sylvain Beucler <beuc@beuc.net>.
5321
5322 2010-04-19  Bruno Haible  <bruno@clisp.org>
5323
5324         * lib/diffseq.h: Fix typo in comment.
5325         Reported by Eric Blake.
5326
5327 2010-04-19  Bruno Haible  <bruno@clisp.org>
5328
5329         ioctl: Move autoconf macro to a .m4 file.
5330         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5331         * modules/ioctl (Files): Add it.
5332         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5333         Reported by Ian Beckwith <ianb@erislabs.net>.
5334
5335 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5336             Bruno Haible  <bruno@clisp.org>
5337
5338         diffseq: Accommodate use-case with abstract arrays.
5339         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5340         is not defined.
5341         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5342         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5343
5344 2010-04-18  Bruno Haible  <bruno@clisp.org>
5345
5346         * doc/posix-headers/stdbool.texi: More precise wording.
5347
5348 2010-04-17  Jim Meyering  <meyering@redhat.com>
5349
5350         maint.mk: use gnu-style indentation in an embedded perl script
5351         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5352         Rename variable: s/two/last_two_bytes/
5353
5354 2010-04-16  Eric Blake  <eblake@redhat.com>
5355
5356         test-stdbool: skip test that fails with Solaris CC
5357         * tests/test-stdbool.c (f): Skip test that causes compilation
5358         error under buggy C++ compiler.
5359         * lib/stdbool.in.h: Document the limitation.
5360         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5361
5362         setenv: allow compilation with C++
5363         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5364         register keyword.
5365
5366         stdint: allow test to pass with C++
5367         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5368
5369         getopt: allow compilation with C++
5370         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5371         struct.
5372         * lib/getopt.c (_getopt_internal_r): Use correct type.
5373         Reported by Dagobert Michelson, via Joel E. Denny.
5374
5375 2010-04-16  Bruno Haible  <bruno@clisp.org>
5376
5377         Override netdb.h always.
5378         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5379         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5380         Reported by Ludovic Courtès <ludo@gnu.org>.
5381
5382 2010-04-15  Bruno Haible  <bruno@clisp.org>
5383
5384         openpty: Fix mistake from 2010-03-21.
5385         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5386         Reported by Simon Josefsson.
5387
5388 2010-04-15  Eric Blake  <eblake@redhat.com>
5389
5390         test-forkpty: fix expected signature
5391         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
5392         Reported by Simon Josefsson.
5393
5394 2010-04-15  Jim Meyering  <meyering@redhat.com>
5395
5396         maint.mk: texinfo_suffix_re_: correct the default regexp
5397         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
5398
5399         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
5400         make it configurable via texinfo_suffix_re_.
5401
5402 2010-04-14  Eric Blake  <eblake@redhat.com>
5403
5404         strtok_r: relax license to LGPLv2+
5405         * modules/strtok_r (License): Relax license.
5406         Reported by Matthias Bolte.
5407
5408 2010-04-14  Simon Josefsson  <simon@josefsson.org>
5409
5410         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
5411         version 1.4.4 by default instead of requiring the libgcrypt
5412         version used during build.  This makes it possible to use the
5413         application with older but still binary compatible libgcrypt
5414         versions.
5415
5416 2010-04-13  Eric Blake  <eblake@redhat.com>
5417
5418         getopt-gnu: match recent glibc fixes and posix ruling
5419         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
5420         '+' handling, when requesting extensions.
5421         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
5422         'W;' handling.
5423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
5424         * doc/posix-functions/getopt.texi (getopt): Document this.
5425         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5426         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5427         Likewise.
5428
5429         getopt: merge bug fixes from glibc
5430         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
5431         diagnostics.  Honor '+:' correctly.  Reject ';'.
5432
5433         getopt-posix: detect MacOS bug
5434         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5435         optind when missing a required argument.
5436         * doc/posix-functions/getopt.texi (getopt): Document the bug.
5437         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5438         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5439         Likewise.
5440
5441         getopt-posix: avoid spurious failure on Solaris
5442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
5443         an indicator that setting optind=1 is sufficient for reset.
5444
5445         getopt-posix: avoid spurious failure on FreeBSD
5446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
5447         in POSIX mode, since the m4 test uses it.
5448
5449         gnulib-tool: silence warning on BSD sh
5450         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
5451
5452 2010-04-13  Jim Meyering  <meyering@redhat.com>
5453
5454         doc: users.txt: GNU patch now uses gnulib
5455         * users.txt: Add patch.
5456
5457 2010-04-12  Jim Meyering  <meyering@redhat.com>
5458
5459         maint.mk: generate more concise timing data for syntax-check rules
5460         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
5461         " done" from each line that reports a syntax-check test duration.
5462
5463 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
5464
5465         git-version-gen: use "git update-index..." rather than "git status"
5466         * build-aux/git-version-gen: Use git update-index --refresh, not
5467         "git status".  With some versions of git, "git status" would fail
5468         to update the index and result in an unwarranted "-dirty" suffix.
5469
5470 2010-04-11  Jim Meyering  <meyering@redhat.com>
5471
5472         openat: correct formatting (no semantic change)
5473         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
5474         Suggested by Bruno Haible.
5475
5476 2010-04-11  Bruno Haible  <bruno@clisp.org>
5477
5478         Stricter declaration checking in testdirs.
5479         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5480         If for_tests is true, augment AM_CPPFLAGS to define
5481         GNULIB_STRICT_CHECKING.
5482         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
5483         GNULIB_STRICT_CHECKING is defined, verify that the function is
5484         declared.
5485
5486 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
5487             Bruno Haible  <bruno@clisp.org>
5488
5489         libunistring: Improve configure output.
5490         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
5491         Don't say "consider installing GNU libunistring" when checking again
5492         with libiconv.
5493
5494 2010-04-11  Bruno Haible  <bruno@clisp.org>
5495
5496         libunistring: Correct value of $LTLIBUNISTRING.
5497         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
5498         correct the value of $LTLIBUNISTRING.
5499
5500 2010-04-11  Bruno Haible  <bruno@clisp.org>
5501
5502         havelib: Add static libraries to LIBS in the right order.
5503         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
5504         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
5505
5506 2010-04-11  Bruno Haible  <bruno@clisp.org>
5507
5508         libunistring: Detect libunistring also when it depends on libiconv.
5509         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
5510         the second AC_LIB_HAVE_LINKFLAGS invocation.
5511
5512 2010-04-11  James Youngman  <jay@gnu.org>
5513
5514         close-stream: declare local scalars to be "const"
5515         * lib/close-stream.c (close_stream): Make boolean variables const
5516         to document the fact that we set but do not change them.
5517
5518 2010-04-11  Bruno Haible  <bruno@clisp.org>
5519
5520         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
5521
5522 2010-04-11  Jim Meyering  <meyering@redhat.com>
5523
5524         maint.mk: don't include dist-check.mk
5525         * top/maint.mk: Remove bogus include directive.
5526
5527         maint.mk: improve empty-line-at-EOF check
5528         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
5529         solution, rather than tail+Perl-based one.  The latter would read
5530         a few kilobytes from the end of each file, and did not handle empty
5531         files properly.
5532
5533         maint.mk: print the elapsed time for each syntax-check rule
5534         * top/maint.mk (sc_m_rules_): Save start time in a file.
5535         (sc_z_rules_): New rules: remove temp file and print elapsed time.
5536         (local-check): Interpose the .z rules
5537
5538 2010-04-11  Jim Meyering  <meyering@redhat.com>
5539
5540         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
5541         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
5542         empty file with one that ends in an empty line.
5543
5544 2010-04-10  Bruno Haible  <bruno@clisp.org>
5545
5546         mkdir: Make it work on mingw64.
5547         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
5548         * lib/mkdir.c: Update comment.
5549         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
5550
5551 2010-04-10  Bruno Haible  <bruno@clisp.org>
5552
5553         Don't override improved macro from newer autoconf.
5554         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
5555         autoconf >= 2.62.
5556         Reported by Joel E. Denny <jdenny@clemson.edu>.
5557
5558 2010-04-10  Jim Meyering  <meyering@redhat.com>
5559
5560         maint.mk: new syntax-check rule: prohibit empty lines at end of file
5561         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
5562
5563         maint.mk: correct a diagnostic
5564         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
5565         in diagnostic; now use $prohibit.
5566
5567 2010-04-10  Bruno Haible  <address@hidden>
5568
5569         fchownat: Fix a C++ test error on Solaris 8.
5570         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
5571         the function does not exist.
5572
5573 2010-04-10  Bruno Haible  <bruno@clisp.org>
5574
5575         vasnprintf: Add more tests.
5576         * tests/test-vasnprintf-posix.c: Include <errno.h>.
5577         (test_function): Test converting an invalid wide string.
5578
5579         vasnprintf: Correct handling of unconvertible wide string arguments.
5580         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
5581         VASNPRINTF.
5582         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
5583         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
5584         smaller than the expected maximum need for the directive. Set errno to
5585         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
5586         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
5587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
5588         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
5589         * modules/vasnprintf (Files): Add m4/printf.m4.
5590         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5591
5592 2010-04-10  Bruno Haible  <bruno@clisp.org>
5593
5594         vasnprintf: Fix crash in %ls directive.
5595         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
5596         string is passed as argument to %ls, with no precision and no width.
5597         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5598
5599 2010-04-10  Bruno Haible  <bruno@clisp.org>
5600
5601         vasnprintf: Fix multiple test failures on mingw.
5602         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
5603         _snprintf, or snwprintf, not _snwprintf.
5604
5605 2010-04-10  Bruno Haible  <bruno@clisp.org>
5606
5607         write: Fix a C++ test error on mingw.
5608         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
5609
5610 2010-04-10  Bruno Haible  <bruno@clisp.org>
5611
5612         vasnprintf test: Reduce code duplication.
5613         * tests/test-vasnprintf.c (test_function): New function, extracted from
5614         test_vasnprintf.
5615         (test_vasnprintf, test_asnprintf): Invoke it.
5616
5617 2010-04-10  Bruno Haible  <bruno@clisp.org>
5618
5619         strnlen: Fix warning in C++ mode on MacOS X.
5620         * lib/string.in.h (strnlen): Use the modern idiom.
5621         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
5622         defining strnlen as a macro already in <config.h>.
5623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5624         REPLACE_STRNLEN.
5625         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
5626         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5627
5628 2010-04-08  James Youngman  <jay@gnu.org>
5629
5630         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
5631         the example.
5632
5633 2010-04-09  Jim Meyering  <meyering@redhat.com>
5634
5635         maint.mk: print better diagnostic when there is no $(_hv_file)
5636         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
5637         announce that when $(_hv_file) (aka help-version) does not exist.
5638
5639         init.sh: run tr in the "C" locale to avoid multibyte interpretation
5640         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
5641         not try to interpret its random input bytes.  Jarno Rajahalme reported
5642         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
5643         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
5644         (mktempd_): Likewise, just in case.
5645
5646         ftruncate: add two years to projected module removal date: 2012
5647         * m4/ftruncate.m4: Adjust comments.
5648
5649         ftruncate: mark module as obsolete; even MinGW provides it, now
5650         * modules/ftruncate (Status): Obsolete.
5651         (Notice): Say that.
5652         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
5653         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
5654
5655 2010-04-08  Bruno Haible  <bruno@clisp.org>
5656
5657         Fix side effects from tests-related modules.
5658         * modules/dprintf-posix (Comment): New section.
5659         * modules/fprintf-posix (Comment): Likewise.
5660         * modules/obstack-printf-posix (Comment): Likewise.
5661         * modules/printf-posix (Comment): Likewise.
5662         * modules/snprintf-posix (Comment): Likewise.
5663         * modules/sprintf-posix (Comment): Likewise.
5664         * modules/vasnprintf-posix (Comment): Likewise.
5665         * modules/vasprintf-posix (Comment): Likewise.
5666         * modules/vdprintf-posix (Comment): Likewise.
5667         * modules/vfprintf-posix (Comment): Likewise.
5668         * modules/vprintf-posix (Comment): Likewise.
5669         * modules/vsnprintf-posix (Comment): Likewise.
5670         * modules/vsprintf-posix (Comment): Likewise.
5671         * modules/xprintf-posix (Comment): Likewise.
5672         * modules/xvasprintf-posix (Comment): Likewise.
5673         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
5674         * modules/floorf-tests (Depends-on): Likewise.
5675         * modules/round-tests (Depends-on): Likewise.
5676         * modules/roundf-tests (Depends-on): Likewise.
5677         * modules/trunc-tests (Depends-on): Likewise.
5678         * modules/truncf-tests (Depends-on): Likewise.
5679         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
5680         'fprintf-posix' module is not present.
5681         * tests/test-floorf2.c (check): Likewise.
5682         * tests/test-trunc2.c (check): Likewise.
5683         * tests/test-truncf2.c (check): Likewise.
5684         * tests/test-round2.c (equal): Likewise.
5685         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5686
5687 2010-04-07  Karl Berry  <karl@gnu.org>
5688
5689         * config/srclist.txt,
5690         * config/srclistvars.sh,
5691         * config/srclist-update: doc fixes.
5692
5693 2010-04-07  Jim Meyering  <meyering@redhat.com>
5694
5695         maint.mk: add a PATH crosschecking syntax-check rule
5696         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
5697         Useful if you use a test like the one in help-version (coreutils,
5698         diffutils, grep, gzip) that ensures $(VERSION) matches what is
5699         printed by prog --version.
5700
5701 2010-04-06  Bruno Haible  <bruno@clisp.org>
5702
5703         Fix link error on mingw.
5704         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
5705         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
5706
5707 2010-04-06  Bruno Haible  <bruno@clisp.org>
5708
5709         Assume rmdir exists.
5710         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
5711
5712 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
5713
5714         doc: update users.txt
5715         * users.txt: Add gcal.
5716
5717 2010-04-06  Jim Meyering  <meyering@redhat.com>
5718
5719         init.sh: simply unset TMPDIR rather than risking env -i
5720         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
5721         although it probably works fine on all Unix-based systems, some
5722         systems (Cygwin?) cannot tolerate a totally cleared environment.
5723         Suggestion from Eric Blake.
5724
5725 2010-04-06  Jim Meyering  <meyering@redhat.com>
5726
5727         init.sh: portability fix: use env's POSIX-specified -i option not -u
5728         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
5729         than unportable env -u.  Solaris 5.11's env lacks support for -u.
5730
5731 2010-04-05  Bruno Haible  <bruno@clisp.org>
5732
5733         btowc: Work around Cygwin 1.7.2 bug.
5734         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
5735         does not map NUL to 0.
5736         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
5737
5738 2010-04-05  Bruno Haible  <bruno@clisp.org>
5739
5740         Make the multithread modules work on Cygwin 1.7.2.
5741         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
5742         imported symbols can be declared weak, so that it returns "no" on
5743         Cygwin 1.7.2.
5744
5745 2010-04-05  Bruno Haible  <bruno@clisp.org>
5746
5747         Use the module 'strncat'.
5748         * modules/unistr/u8-strncat (Depends-on): Add strncat.
5749
5750         Tests for module 'strncat'.
5751         * modules/strncat-tests: New file.
5752         * tests/test-strncat.c: New file.
5753
5754         New module 'strncat'.
5755         * lib/string.in.h (strncat): New declaration.
5756         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
5757         * m4/strncat.m4: New file, based on m4/memchr.m4.
5758         * modules/strncat: New file.
5759         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
5760         is declared.
5761         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
5762         REPLACE_STRNCAT.
5763         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
5764         REPLACE_STRNCAT.
5765         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
5766         module.
5767         * tests/test-string-c++.cc: Check signature of strncat.
5768
5769 2010-04-05  Jim Meyering  <meyering@redhat.com>
5770
5771         xstrtoumax-tests: convert to use init.sh
5772         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
5773         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5774         Use Exit, not exit.
5775         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5776
5777         xstrtoimax-tests: convert to use init.sh
5778         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
5779         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5780         Use Exit, not exit.
5781         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5782
5783 2010-04-05  Bruno Haible  <bruno@clisp.org>
5784
5785         sys_socket: Avoid #define replacements in C++ mode.
5786         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
5787         warning to the function if possible, rather than #defining the symbol
5788         to a dysfunctional alias.
5789
5790 2010-04-05  Bruno Haible  <bruno@clisp.org>
5791
5792         fseeko: Fix C++ test error on mingw.
5793         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
5794         gl_FUNC_FSEEKO.
5795         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
5796         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
5797         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
5798         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
5799
5800 2010-04-05  Bruno Haible  <bruno@clisp.org>
5801
5802         duplocale: Improve test output.
5803         * tests/test-duplocale.c (main): Print reason for skipped test.
5804
5805 2010-04-05  Bruno Haible  <bruno@clisp.org>
5806
5807         Assume rmdir exists.
5808         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
5809         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
5810
5811 2010-04-05  Bruno Haible  <bruno@clisp.org>
5812
5813         Fix link error on Solaris 8 with cc.
5814         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
5815
5816 2010-04-05  Bruno Haible  <bruno@clisp.org>
5817
5818         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
5819         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
5820
5821 2010-04-05  Bruno Haible  <bruno@clisp.org>
5822
5823         vasprintf: Update documentation.
5824         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
5825
5826 2010-04-05  Bruno Haible  <bruno@clisp.org>
5827
5828         ptsname: Improve test.
5829         * tests/test-ptsname.c (main): Also try the various master names of BSD
5830         systems.
5831
5832 2010-04-05  Bruno Haible  <bruno@clisp.org>
5833
5834         memchr: Avoid a possible C++ test error.
5835         * lib/string.in.h (memchr): Provide declaration if function is missing.
5836         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
5837         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
5838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
5839         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
5840
5841 2010-04-05  Bruno Haible  <bruno@clisp.org>
5842
5843         strtok_r: Improve idiom.
5844         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
5845         AC_LIBOBJ is used.
5846
5847 2010-04-05  Bruno Haible  <bruno@clisp.org>
5848
5849         strdup: Improve idiom.
5850         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
5851         AC_LIBOBJ is used.
5852         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
5853         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
5854         when AC_LIBOBJ is used.
5855
5856 2010-04-05  Bruno Haible  <bruno@clisp.org>
5857
5858         mbsinit, mbrtowc, wcrtomb: Improve idioms.
5859         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
5860         don't set REPLACE_MBSINIT to 1.
5861         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
5862         don't set REPLACE_MBRTOWC to 1.
5863         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
5864         exist, don't set REPLACE_MBSRTOWCS to 1.
5865         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
5866         exist, don't set REPLACE_MBSNRTOWCS to 1.
5867         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
5868         don't set REPLACE_WCRTOMB to 1.
5869         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
5870         exist, don't set REPLACE_WCSRTOMBS to 1.
5871         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
5872         exist, don't set REPLACE_WCSNRTOMBS to 1.
5873
5874 2010-04-05  Bruno Haible  <bruno@clisp.org>
5875
5876         ldexpl: Improve idiom.
5877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
5878         make sure to set HAVE_DECL_LDEXPL to 0.
5879
5880 2010-04-05  Jim Meyering  <meyering@redhat.com>
5881
5882         xstrtol-tests: convert to use init.sh
5883         * modules/xstrtol-tests (Files): Add tests/init.sh.
5884         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5885         Use Exit, not exit.
5886         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5887
5888         atexit-tests: convert to use init.sh
5889         * modules/atexit-tests (Files): Add tests/init.sh.
5890         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5891         Use Exit, not exit.
5892         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5893
5894         init.sh: fix typo
5895         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
5896
5897         init.sh: make it easier for a test script to write to the tty, ...
5898         when using automake's parallel-tests mode.
5899         * tests/init.sh (stderr_fileno_): Define overridable variable.
5900         (warn_): New function, to use it.
5901         (fail_, skip_, framework_failure_): Use warn_.
5902
5903 2010-04-04  Bruno Haible  <bruno@clisp.org>
5904
5905         btowc: Avoid warning.
5906         * lib/btowc.c: Include <stdlib.h>.
5907         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
5908
5909 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
5910             Bruno Haible  <bruno@clisp.org>
5911
5912         wchar: Port to NetBSD 1.5.
5913         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
5914         * lib/wctype.in.h (WEOF): Likewise.
5915
5916 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
5917             Bruno Haible  <bruno@clisp.org>
5918
5919         Port extended stdio to NetBSD 1.5.
5920         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
5921         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
5922         older.
5923
5924 2010-04-04  Bruno Haible  <bruno@clisp.org>
5925
5926         string: Remove unused substitution.
5927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5928         HAVE_DECL_STRERROR.
5929         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
5930
5931 2010-04-04  Bruno Haible  <bruno@clisp.org>
5932
5933         strtod: Avoid a possible C++ test error.
5934         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
5935         set REPLACE_STRTOD.
5936
5937 2010-04-04  Bruno Haible  <bruno@clisp.org>
5938
5939         strerror: Update documentation.
5940         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
5941
5942 2010-04-04  Bruno Haible  <bruno@clisp.org>
5943
5944         stdio: Fix some C++ test errors on Solaris 8 with GCC.
5945         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
5946         _GL_CXXALIAS_SYS_CAST.
5947
5948 2010-04-04  Bruno Haible  <bruno@clisp.org>
5949
5950         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
5951         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
5952         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
5953         REPLACE_FREXPL to 1.
5954         * doc/posix-functions/frexpl.texi: Update documentation.
5955
5956 2010-04-04  Bruno Haible  <bruno@clisp.org>
5957
5958         math: Fix some C++ test errors on Solaris 8 and Cygwin.
5959         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
5960
5961 2010-04-04  Bruno Haible  <bruno@clisp.org>
5962
5963         Implement nanosleep for native Windows.
5964         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
5965
5966 2010-04-04  Bruno Haible  <bruno@clisp.org>
5967
5968         math: Fix some C++ test errors on Solaris 8.
5969         * lib/math.in.h (truncf, trunc): Use simpler idiom.
5970
5971 2010-04-04  Bruno Haible  <bruno@clisp.org>
5972
5973         math: Fix some C++ test errors on Cygwin.
5974         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
5975         truncl): Provide declaration if the system does not have it.
5976         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
5977         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
5978         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
5979         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
5980         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
5981         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
5982         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
5983         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
5984         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
5985         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
5986         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
5987         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
5988         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
5989         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
5990         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
5991         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
5992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
5993         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
5994         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
5995         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
5996         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
5997         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
5998
5999 2010-04-04  Bruno Haible  <bruno@clisp.org>
6000
6001         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6002         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6003         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6004         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6005         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6006         * m4/isinf.m4 (gl_ISINF): Likewise.
6007         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6008
6009 2010-04-04  Bruno Haible  <bruno@clisp.org>
6010
6011         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6012         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6013
6014 2010-04-04  Bruno Haible  <bruno@clisp.org>
6015
6016         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6017         * modules/tmpfile (configure.ac): Update.
6018
6019         tmpfile: Fix C++ test error on mingw.
6020         * lib/stdio.in.h (tmpfile): New declaration.
6021         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6022         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6023         * modules/tmpfile (Depends-on): Add stdio.
6024         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6025         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6026         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6027         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6028         REPLACE_TMPFILE.
6029         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6030
6031 2010-04-04  Bruno Haible  <bruno@clisp.org>
6032
6033         ioctl: Fix C++ test error on mingw.
6034         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6035         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6036         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6037
6038 2010-04-03  Bruno Haible  <bruno@clisp.org>
6039
6040         wcwidth: Fix C++ test error on mingw.
6041         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6042         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6043         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6044
6045 2010-04-03  Bruno Haible  <bruno@clisp.org>
6046
6047         nanosleep: Fix C++ test error on mingw.
6048         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6049         * lib/time.in.h (nanosleep): Use modern idiom.
6050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6051         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6052         REPLACE_NANOSLEEP to 1.
6053         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6054         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6055
6056 2010-04-03  Bruno Haible  <bruno@clisp.org>
6057
6058         strptime: Fix C++ test error on mingw.
6059         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6060         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6061         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6062         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6063         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6064         not REPLACE_STRPTIME.
6065         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6066         REPLACE_STRPTIME.
6067
6068 2010-04-03  Bruno Haible  <bruno@clisp.org>
6069
6070         timegm: Fix C++ test error on mingw.
6071         * lib/time.in.h (timegm): Use modern idiom.
6072         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6073         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6074         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6075         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6076
6077 2010-04-03  Bruno Haible  <bruno@clisp.org>
6078
6079         timegm: Assume declaration if function exists.
6080         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6081         if it exists. Don't clobber ac_cv_func_timegm.
6082
6083 2010-04-03  Bruno Haible  <bruno@clisp.org>
6084
6085         time_r: Fix C++ test error on mingw.
6086         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6087         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6088         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6089         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6090         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6091
6092 2010-04-03  Bruno Haible  <bruno@clisp.org>
6093
6094         time_r: Minor updates.
6095         * modules/time_r (Description): Mention the provided functions.
6096         * lib/time_r.c: Don't include <string.h>.
6097         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6098         * doc/posix-functions/localtime_r.texi: Likewise.
6099
6100 2010-04-03  Bruno Haible  <bruno@clisp.org>
6101
6102         time: Fix regression introduced on 2010-03-08.
6103         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6104         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6105
6106 2010-04-03  Jim Meyering  <meyering@redhat.com>
6107
6108         maint.mk: don't silently disable project-specific syntax-check rules
6109         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6110         that they need to convert their project-specific syntax-check rules
6111         to use the new _sc_search_regexp.
6112
6113 2010-04-03  Bruno Haible  <bruno@clisp.org>
6114
6115         fchdir: Fix regression introduced on 2010-03-08.
6116         * lib/unistd.in.h (fchdir): Fix declaration.
6117         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6119         REPLACE_FCHDIR.
6120         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6121         REPLACE_FCHDIR.
6122
6123 2010-04-03  Bruno Haible  <bruno@clisp.org>
6124
6125         getpagesize: Fix C++ test error on mingw.
6126         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6127         system does not declare the function.
6128         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6129         declared.
6130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6131         HAVE_DECL_GETPAGESIZE.
6132         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6133
6134 2010-04-03  Bruno Haible  <bruno@clisp.org>
6135
6136         stdio: Make C++ tests work on mingw.
6137         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6138         does not declare the function.
6139
6140 2010-04-03  Bruno Haible  <bruno@clisp.org>
6141
6142         ftello: Fix C++ test error on mingw.
6143         * lib/stdio.in.h (ftello): Use modern idiom.
6144         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6145         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6146         is missing and that it needs to be replaced.
6147         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6149         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6150
6151 2010-04-03  Bruno Haible  <bruno@clisp.org>
6152
6153         fseeko: Fix C++ test error on mingw.
6154         * lib/stdio.in.h (fseeko): Use modern idiom.
6155         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6156         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6157         is missing and that it needs to be replaced.
6158         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6160         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6161
6162 2010-04-03  Bruno Haible  <bruno@clisp.org>
6163
6164         mkstemp: Fix C++ test error on mingw.
6165         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6166         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6167         function is missing and that it needs to be replaced.
6168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6169         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6170
6171 2010-04-03  Bruno Haible  <bruno@clisp.org>
6172
6173         stpncpy: Fix C++ test error on mingw.
6174         * lib/string.in.h (stpncpy): Use modern idiom.
6175         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6176         function is missing and that it needs to be replaced.
6177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6178         REPLACE_STPNCPY.
6179         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6180
6181 2010-04-03  Bruno Haible  <bruno@clisp.org>
6182
6183         sys_stat: Fix C++ test error on mingw.
6184         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6185         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6186
6187 2010-04-03  Bruno Haible  <bruno@clisp.org>
6188
6189         pty: Update doc.
6190         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6191
6192 2010-04-03  Bruno Haible  <bruno@clisp.org>
6193
6194         unistd: Fix C++ test error on mingw.
6195         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6196
6197 2010-04-03  Bruno Haible  <bruno@clisp.org>
6198
6199         Update doc regarding mingw.
6200         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6201         * doc/glibc-functions/login_tty.texi: Likewise.
6202         * doc/glibc-functions/forkpty.texi: Likewise.
6203
6204 2010-04-03  Bruno Haible  <bruno@clisp.org>
6205
6206         stdlib: Avoid compilation failure of c-strtold on mingw.
6207         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6208
6209 2010-04-03  Bruno Haible  <bruno@clisp.org>
6210
6211         locale: Make C++ tests work on Cygwin and mingw.
6212         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6213         cannot provide the function.
6214         Reported by Simon Josefsson.
6215
6216 2010-04-03  Bruno Haible  <bruno@clisp.org>
6217
6218         localename: Port to MacOS X 10.6.
6219         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6220         memory layout of the locales in MacOS X 10.6 as well.
6221         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6222
6223 2010-04-02  Bruno Haible  <bruno@clisp.org>
6224
6225         gnulib-tool: Ensure that long-running tests are executed last.
6226         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
6227         running tests after the one for the other tests.
6228
6229 2010-04-02  Bruno Haible  <bruno@clisp.org>
6230
6231         gnulib-tool: Ensure the tests in the main directory are executed first.
6232         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
6233         start with the current directory.
6234
6235 2010-04-02  Bruno Haible  <bruno@clisp.org>
6236
6237         Tests for module 'havelib', moved here from GNU gettext.
6238         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
6239         modifications.
6240         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
6241         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
6242         with modifications.
6243         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
6244         modifications.
6245         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
6246         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
6247         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
6248         with modifications.
6249         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
6250         with modifications.
6251         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
6252         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
6253         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
6254         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
6255         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
6256         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
6257         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
6258         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
6259         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
6260         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
6261         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
6262         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6263         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6264         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6265         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6266         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6267         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6268         with modifications.
6269         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6270         with modifications.
6271         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6272         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6273         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6274         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6275         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6276         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6277         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6278         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6279         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6280         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6281         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6282         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6283         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6284         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6285         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6286         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6287         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6288         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6289         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6290         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6291         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6292         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6293         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6294         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6295         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6296         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6297         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6298         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6299         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6300         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6301         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6302         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6303         * tests/havelib/rpathx/rpathx.c: New file, from
6304         gettext/autoconf-lib-link.
6305         * tests/havelib/rpathx/Makefile.am: New file, from
6306         gettext/autoconf-lib-link.
6307         * tests/havelib/rpathx/configure.ac: New file, from
6308         gettext/autoconf-lib-link with modifications.
6309         * tests/havelib/rpathy/rpathy.c: New file, from
6310         gettext/autoconf-lib-link.
6311         * tests/havelib/rpathy/Makefile.am: New file, from
6312         gettext/autoconf-lib-link.
6313         * tests/havelib/rpathy/configure.ac: New file, from
6314         gettext/autoconf-lib-link with modifications.
6315         * tests/havelib/rpathz/rpathz.c: New file, from
6316         gettext/autoconf-lib-link.
6317         * tests/havelib/rpathz/Makefile.am: New file, from
6318         gettext/autoconf-lib-link.
6319         * tests/havelib/rpathz/configure.ac: New file, from
6320         gettext/autoconf-lib-link with modifications.
6321         * tests/havelib/rpathlx/usex.c: New file, from
6322         gettext/autoconf-lib-link.
6323         * tests/havelib/rpathlx/Makefile.am: New file, from
6324         gettext/autoconf-lib-link.
6325         * tests/havelib/rpathlx/configure.ac: New file, from
6326         gettext/autoconf-lib-link with modifications.
6327         * tests/havelib/rpathly/usey.c: New file, from
6328         gettext/autoconf-lib-link.
6329         * tests/havelib/rpathly/Makefile.am: New file, from
6330         gettext/autoconf-lib-link.
6331         * tests/havelib/rpathly/configure.ac: New file, from
6332         gettext/autoconf-lib-link with modifications.
6333         * tests/havelib/rpathlz/usez.c: New file, from
6334         gettext/autoconf-lib-link.
6335         * tests/havelib/rpathlz/Makefile.am: New file, from
6336         gettext/autoconf-lib-link.
6337         * tests/havelib/rpathlz/configure.ac: New file, from
6338         gettext/autoconf-lib-link with modifications.
6339         * tests/havelib/rpathlyx/usey.c: New file, from
6340         gettext/autoconf-lib-link.
6341         * tests/havelib/rpathlyx/Makefile.am: New file, from
6342         gettext/autoconf-lib-link.
6343         * tests/havelib/rpathlyx/configure.ac: New file, from
6344         gettext/autoconf-lib-link with modifications.
6345         * tests/havelib/rpathlzyx/usez.c: New file, from
6346         gettext/autoconf-lib-link.
6347         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6348         gettext/autoconf-lib-link.
6349         * tests/havelib/rpathlzyx/configure.ac: New file, from
6350         gettext/autoconf-lib-link with modifications.
6351         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6352         with modifications.
6353
6354 2010-04-02  Bruno Haible  <bruno@clisp.org>
6355
6356         gnulib-tool: Create distributed built sources also for the tests.
6357         * gnulib-tool (func_create_testdir): Also generate distributed built
6358         sources in the tests directory.
6359
6360 2010-04-02  Bruno Haible  <bruno@clisp.org>
6361
6362         gnulib-tool: Obey user's environment variables.
6363         * gnulib-tool (func_create_testdir): When creating built sources,
6364         respect the environment variables for autoconf, automake, etc. given by
6365         the user.
6366
6367 2010-04-02  Bruno Haible  <bruno@clisp.org>
6368
6369         gnulib-tool: Provide the value of --m4-base to modules.
6370         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6371         of gl_m4_base.
6372
6373 2010-04-02  Eric Blake  <eblake@redhat.com>
6374
6375         maint.mk: fix some fallout
6376         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6377         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6378
6379 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6380
6381         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6382         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6383         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6384         (sc_cast_of_x_alloc_return_value): Likewise.
6385         (sc_cast_of_alloca_return_value): Likewise.
6386         (sc_space_tab): Likewise.
6387         (sc_prohibit_atoi_atof): Likewise.
6388         (sc_prohibit_magic_number_exit): Likewise.
6389         (sc_error_exit_success): Likewise.
6390         (sc_file_system): Likewise.
6391         (sc_prohibit_have_config_h): Likewise.
6392         (sc_require_config_h): Likewise.
6393         (sc_prohibit_HAVE_MBRTOWC): Likewise.
6394         (sc_obsolete_symbols): Likewise.
6395         (sc_changelog): Likewise.
6396         (sc_program_name): Likewise.
6397         (sc_the_the): Likewise.
6398         (sc_trailing_blank): Likewise.
6399         (sc_two_space_separator_in_usage): Likewise.
6400         (sc_useless_cpp_parens): Likewise.
6401         (sc_GPL_version): Likewise.
6402         (sc_GFDL_version): Likewise.
6403         (sc_texinfo_acronym): Likewise.
6404         (sc_prohibit_cvs_keyword): Likewise.
6405         (sc_prohibit_stat_st_blocks): Likewise.
6406         (sc_prohibit_S_IS_definition): Likewise.
6407         (sc_redundant_const): Likewise.
6408         (sc_makefile_TAB_only_indentation): Likewise.
6409         (sc_m4_quote_check): Likewise.
6410         (sc_makefile_path_separator_check): Likewise.
6411         (sc_copyright_check): Likewise.
6412         (sc_Wundef_boolean): Likewise.
6413         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6414
6415         maint.mk: match 0 or more whitespace-before-function-call '('
6416         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
6417         that have zero or two-and-more spaces between the function name
6418         and the open parenthesis.
6419         (sc_error_message_warn_fatal): Likewise.
6420         (sc_error_message_uppercase): Likewise.
6421         (sc_error_message_period): Likewise.
6422
6423 2010-03-31  Eric Blake  <eblake@redhat.com>
6424
6425         maint.mk: check for [ as well as test
6426         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
6427         Based on a libvirt report by Matthias Bolte.
6428
6429         gnumakefile: don't squelch _version output
6430         * top/GNUmakefile (_version): Create one-shot dependency rather
6431         than using $(shell) when version must be regenerated.
6432         (_autoreconf): Run verbosely, by default.
6433
6434         sys_time: avoid compiler warnings
6435         * lib/sys_time.in.h (includes): Ensure gcc pragma is
6436         unconditional, fixing regression from 2010-03-29.
6437         Reported by Simon Josefsson.
6438
6439 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6440
6441         maint.mk: s/_header_without_use/_sc_header_without_use/
6442         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
6443         (sc_prohibit_assert_without_use): Use the new name.
6444         (sc_prohibit_close_stream_without_use): Likewise.
6445         (sc_prohibit_getopt_without_use): Likewise.
6446         (sc_prohibit_quotearg_without_use): Likewise.
6447         (sc_prohibit_quote_without_use): Likewise.
6448         (sc_prohibit_long_options_without_use): Likewise.
6449         (sc_prohibit_inttostr_without_use): Likewise.
6450         (sc_prohibit_ignore_value_without_use): Likewise.
6451         (sc_prohibit_error_without_use): Likewise.
6452         (sc_prohibit_xalloc_without_use): Likewise.
6453         (sc_prohibit_hash_without_use): Likewise.
6454         (sc_prohibit_hash_pjw_without_use): Likewise.
6455         (sc_prohibit_safe_read_without_use): Likewise.
6456         (sc_prohibit_argmatch_without_use): Likewise.
6457         (sc_prohibit_canonicalize_without_use): Likewise.
6458         (sc_prohibit_root_dev_ino_without_use): Likewise.
6459         (sc_prohibit_openat_without_use): Likewise.
6460         (sc_prohibit_c_ctype_without_use): Likewise.
6461         (sc_prohibit_signal_without_use): Likewise.
6462         (sc_prohibit_intprops_without_use): Likewise.
6463
6464 2010-03-30  Eric Blake  <eblake@redhat.com>
6465
6466         maint: improve module indicators
6467         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
6468         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
6469         columns, and avoid extra macro expansion.
6470
6471         fdopendir: work around FreeBSD bug
6472         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6473         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6474         * modules/dirent (Makefile.am): Substitute it.
6475         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
6476         declaration.
6477         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
6478         fix.
6479         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6480
6481 2010-03-29  Bruno Haible  <bruno@clisp.org>
6482
6483         Emit #pragma system_header after the inclusion guard, not before.
6484         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
6485         guard that spans the entire file, not before. This enables an
6486         optimization in GCC's preprocessor.
6487         * lib/ctype.in.h: Likewise.
6488         * lib/dirent.in.h: Likewise.
6489         * lib/errno.in.h: Likewise.
6490         * lib/float.in.h: Likewise.
6491         * lib/getopt.in.h: Likewise.
6492         * lib/iconv.in.h: Likewise.
6493         * lib/langinfo.in.h: Likewise.
6494         * lib/locale.in.h: Likewise.
6495         * lib/math.in.h: Likewise.
6496         * lib/netdb.in.h: Likewise.
6497         * lib/netinet_in.in.h: Likewise.
6498         * lib/pty.in.h: Likewise.
6499         * lib/sched.in.h: Likewise.
6500         * lib/se-selinux.in.h: Likewise.
6501         * lib/search.in.h: Likewise.
6502         * lib/spawn.in.h: Likewise.
6503         * lib/stdarg.in.h: Likewise.
6504         * lib/stdint.in.h: Likewise.
6505         * lib/string.in.h: Likewise.
6506         * lib/strings.in.h: Likewise.
6507         * lib/sys_file.in.h: Likewise.
6508         * lib/sys_ioctl.in.h: Likewise.
6509         * lib/sys_time.in.h: Likewise.
6510         * lib/sys_times.in.h: Likewise.
6511         * lib/sys_utsname.in.h: Likewise.
6512         * lib/sys_wait.in.h: Likewise.
6513         * lib/sysexits.in.h: Likewise.
6514         * lib/wctype.in.h: Likewise.
6515
6516 2010-03-28  James Youngman  <jay@gnu.org>
6517
6518         save-cwd: don't leak a file descriptor when the caller execs.
6519         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
6520         saved file descriptor.
6521         * modules/save-cwd (Depends-on): Depend on cloexec.
6522
6523 2010-03-29  Bruno Haible  <bruno@clisp.org>
6524
6525         Remove vestiges of fts-lgpl module.
6526         * lib/fts_.h: Assume GNULIB_FTS is 1.
6527         * lib/fts.c: Likewise.
6528         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6529
6530 2010-03-28  Bruno Haible  <bruno@clisp.org>
6531
6532         Fix definition of tests witness macro.
6533         * gnulib-tool (func_import): Fix definition of witness macro.
6534
6535 2010-03-28  Bruno Haible  <bruno@clisp.org>
6536
6537         Fix ioctl's protoype on glibc systems.
6538         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
6539         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
6540         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
6541         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
6542         signature. If not, arrange to replace the ioctl function.
6543         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6544         REPLACE_IOCTL.
6545         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
6546         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
6547         Reported by Ludovic Courtès <ludo@gnu.org>.
6548
6549 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
6550
6551         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
6552         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
6553         made it so grep -r --include=GLOB* ... did not work.
6554
6555 2010-03-26  Jim Meyering  <meyering@redhat.com>
6556             Eric Blake  <eblake@redhat.com>
6557
6558         maint.mk: prohibit use of test's -o and -a operators
6559         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
6560
6561 2010-03-28  Bruno Haible  <bruno@clisp.org>
6562
6563         Remove unused GNULIB_XYZ macro definitions.
6564         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
6565         invocation.
6566
6567 2010-03-28  Bruno Haible  <bruno@clisp.org>
6568
6569         Mark privileged tests modules.
6570         * modules/idpriv-drop-tests (Status): New section.
6571         * modules/idpriv-droptemp-tests (Status): New section.
6572
6573 2010-03-28  Bruno Haible  <bruno@clisp.org>
6574
6575         Split C++ tests into separate tests modules.
6576         * modules/dirent-c++-tests: New file, extracted from
6577         modules/dirent-tests.
6578         * modules/dirent-tests: Depend on it.
6579         * modules/fcntl-h-c++-tests: New file, extracted from
6580         modules/fcntl-h-tests.
6581         * modules/fcntl-h-tests: Depend on it.
6582         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
6583         * modules/glob-tests: Depend on it.
6584         * modules/iconv-h-c++-tests: New file, extracted from
6585         modules/iconv-h-tests.
6586         * modules/iconv-h-tests: Depend on it.
6587         * modules/langinfo-c++-tests: New file, extracted from
6588         modules/langinfo-tests.
6589         * modules/langinfo-tests: Depend on it.
6590         * modules/locale-c++-tests: New file, extracted from
6591         modules/locale-tests.
6592         * modules/locale-tests: Depend on it.
6593         * modules/math-c++-tests: New file, extracted from modules/math-tests.
6594         * modules/math-tests: Depend on it.
6595         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
6596         * modules/pty-tests: Depend on it.
6597         * modules/search-c++-tests: New file, extracted from
6598         modules/search-tests.
6599         * modules/search-tests: Depend on it.
6600         * modules/signal-c++-tests: New file, extracted from
6601         modules/signal-tests.
6602         * modules/signal-tests: Depend on it.
6603         * modules/spawn-c++-tests: New file, extracted from
6604         modules/spawn-tests.
6605         * modules/spawn-tests: Depend on it.
6606         * modules/stdio-c++-tests: New file, extracted from
6607         modules/stdio-tests.
6608         * modules/stdio-tests: Depend on it.
6609         * modules/stdlib-c++-tests: New file, extracted from
6610         modules/stdlib-tests.
6611         * modules/stdlib-tests: Depend on it.
6612         * modules/string-c++-tests: New file, extracted from
6613         modules/string-tests.
6614         * modules/string-tests: Depend on it.
6615         * modules/sys_ioctl-c++-tests: New file, extracted from
6616         modules/sys_ioctl-tests.
6617         * modules/sys_ioctl-tests: Depend on it.
6618         * modules/sys_select-c++-tests: New file, extracted from
6619         modules/sys_select-tests.
6620         * modules/sys_select-tests: Depend on it.
6621         * modules/sys_socket-c++-tests: New file, extracted from
6622         modules/sys_socket-tests.
6623         * modules/sys_socket-tests: Depend on it.
6624         * modules/sys_stat-c++-tests: New file, extracted from
6625         modules/sys_stat-tests.
6626         * modules/sys_stat-tests: Depend on it.
6627         * modules/sys_time-c++-tests: New file, extracted from
6628         modules/sys_time-tests.
6629         * modules/sys_time-tests: Depend on it.
6630         * modules/time-c++-tests: New file, extracted from modules/time-tests.
6631         * modules/time-tests: Depend on it.
6632         * modules/unistd-c++-tests: New file, extracted from
6633         modules/unistd-tests.
6634         * modules/unistd-tests: Depend on it.
6635         * modules/wchar-c++-tests: New file, extracted from
6636         modules/wchar-tests.
6637         * modules/wchar-tests: Depend on it.
6638         * modules/wctype-c++-tests: New file, extracted from
6639         modules/wctype-tests.
6640         * modules/wctype-tests: Depend on it.
6641         Reported by Simon Josefsson.
6642
6643 2010-03-28  Bruno Haible  <bruno@clisp.org>
6644
6645         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
6646         * gnulib-tool (func_exists_module): New function, extracted from
6647         func_verify_module.
6648         (func_verify_module): Use it.
6649         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
6650         'foo' only if 'foo' exists.
6651         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
6652         module.
6653
6654 2010-03-28  Bruno Haible  <bruno@clisp.org>
6655
6656         gnulib-tool: Add support for special categories of tests.
6657         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
6658         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
6659         (func_usage): Document them.
6660         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
6661         inc_unportable_tests, inc_all_tests): New variables.
6662         (func_acceptable): Consider these variables.
6663         (func_modules_transitive_closure): Make it work when the 'Status' field
6664         consists of multiple words.
6665         (func_import): Store and restore the values of inc_cxx_tests,
6666         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
6667         inc_all_tests in gnulib-comp.m4.
6668         (func_create_testdir): Set inc_all_tests to true.
6669         * doc/gnulib.texi (Extra tests modules): New section.
6670         Suggested by Jim Meyering.
6671
6672 2010-03-28  Bruno Haible  <bruno@clisp.org>
6673
6674         ansi-c++-opt: Allow turning off the C++ build by default.
6675         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
6676         gl_CXX_CHOICE_DEFAULT_NO is defined.
6677         Requested by Eric Blake.
6678
6679 2010-03-28  Bruno Haible  <bruno@clisp.org>
6680
6681         unistd: Avoid #define replacements in C++ mode.
6682         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6683         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6684         setsockopt, shutdown, select): In C++, attach a warning to the function
6685         if possible, rather than #defining the symbol to a dysfunctional alias.
6686         Reported by John W. Eaton <jwe@gnu.org>.
6687
6688 2010-03-28  Bruno Haible  <bruno@clisp.org>
6689
6690         Fix link errors on mingw.
6691         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
6692         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
6693         $(LIBSOCKET).
6694         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
6695         $(LIBSOCKET).
6696
6697 2010-03-28  Bruno Haible  <bruno@clisp.org>
6698             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6699
6700         lib-ignore: Determine different options for different compilers.
6701         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
6702         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
6703         Add comments.
6704         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
6705         * NEWS: Mention the change.
6706
6707 2010-03-27  Bruno Haible  <bruno@clisp.org>
6708
6709         Remove unused GNULIB_XYZ macro definitions.
6710         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6711         * modules/fseek (configure.ac): Likewise.
6712         * modules/ioctl (configure.ac): Likewise.
6713         * modules/open (configure.ac): Likewise.
6714         * modules/stdlib-safer (configure.ac): Likewise.
6715
6716 2010-03-27  Bruno Haible  <bruno@clisp.org>
6717
6718         Add a remark about certain modules.
6719         * modules/malloc (Comment): New section.
6720         * modules/realloc (Comment): Likewise.
6721         * modules/sigpipe (Comment): Likewise.
6722
6723 2010-03-27  Bruno Haible  <bruno@clisp.org>
6724
6725         Resolve conflict between the two kinds of module indicators.
6726         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
6727         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
6728         * modules/canonicalize (configure.ac): Invoke
6729         gl_MODULE_INDICATOR_FOR_TESTS.
6730         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
6731         GNULIB_XYZ.
6732         * tests/test-dirent-c++.cc: Likewise.
6733         * tests/test-dirent-safer.c: Likewise.
6734         * tests/test-dup2.c: Likewise.
6735         * tests/test-fchdir.c: Likewise.
6736         * tests/test-fcntl-h-c++.cc: Likewise.
6737         * tests/test-getopt.c: Likewise.
6738         * tests/test-getopt.h: Likewise.
6739         * tests/test-langinfo-c++.cc: Likewise.
6740         * tests/test-locale-c++.cc: Likewise.
6741         * tests/test-math-c++.cc: Likewise.
6742         * tests/test-pty-c++.cc: Likewise.
6743         * tests/test-search-c++.cc: Likewise.
6744         * tests/test-signal-c++.cc: Likewise.
6745         * tests/test-spawn-c++.cc: Likewise.
6746         * tests/test-stdio-c++.cc: Likewise.
6747         * tests/test-stdlib-c++.cc: Likewise.
6748         * tests/test-string-c++.cc: Likewise.
6749         * tests/test-sys_ioctl-c++.cc: Likewise.
6750         * tests/test-sys_select-c++.cc: Likewise.
6751         * tests/test-sys_socket-c++.cc: Likewise.
6752         * tests/test-sys_stat-c++.cc: Likewise.
6753         * tests/test-sys_time-c++.cc: Likewise.
6754         * tests/test-time-c++.cc: Likewise.
6755         * tests/test-unistd-c++.cc: Likewise.
6756         * tests/test-wchar-c++.cc: Likewise.
6757         * tests/uninorm/test-u8-nfc.c: Likewise.
6758         * tests/uninorm/test-u8-nfd.c: Likewise.
6759         * tests/uninorm/test-u8-nfkc.c: Likewise.
6760         * tests/uninorm/test-u8-nfkd.c: Likewise.
6761         * tests/uninorm/test-u16-nfc.c: Likewise.
6762         * tests/uninorm/test-u16-nfd.c: Likewise.
6763         * tests/uninorm/test-u16-nfkc.c: Likewise.
6764         * tests/uninorm/test-u16-nfkd.c: Likewise.
6765         * tests/uninorm/test-u32-nfc.c: Likewise.
6766         * tests/uninorm/test-u32-nfc-big.c: Likewise.
6767         * tests/uninorm/test-u32-nfd.c: Likewise.
6768         * tests/uninorm/test-u32-nfd-big.c: Likewise.
6769         * tests/uninorm/test-u32-nfkc.c: Likewise.
6770         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
6771         * tests/uninorm/test-u32-nfkd.c: Likewise.
6772         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
6773         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6774
6775 2010-03-27  Bruno Haible  <bruno@clisp.org>
6776
6777         Distinguish two kinds of module indicators.
6778         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
6779         gl_MODULE_INDICATOR.
6780         (gl_MODULE_INDICATOR): New macro.
6781         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6782         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
6783         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6784         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6785         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6786         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6787         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6788         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6789         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6790         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6791         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6792         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6794         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6795         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6796         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6797         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6798         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6799         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6800         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6801         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
6802         * modules/cloexec (configure.ac): Likewise.
6803         * modules/getopt-gnu (configure.ac): Likewise.
6804         * modules/uninorm/u8-normalize (configure.ac): Likewise.
6805         * modules/uninorm/u16-normalize (configure.ac): Likewise.
6806         * modules/uninorm/u32-normalize (configure.ac): Likewise.
6807         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
6808
6809 2010-03-27  Bruno Haible  <bruno@clisp.org>
6810
6811         New module description field 'Comment'.
6812         * gnulib-tool: New option --extract-comment.
6813         (func_usage): Document it.
6814         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
6815         (func_get_comment): New function.
6816         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
6817
6818 2010-03-27  Bruno Haible  <bruno@clisp.org>
6819
6820         Addendum to 2010-02-07 commit.
6821         * gnulib-tool (func_usage): Document --extract-applicability option.
6822
6823 2010-03-27  Bruno Haible  <bruno@clisp.org>
6824
6825         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
6826         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
6827         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
6828         rather than link errors.
6829
6830 2010-03-27  Bruno Haible  <bruno@clisp.org>
6831
6832         Avoid side effects from tests-related modules on the compilation of lib.
6833         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
6834         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
6835         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
6836         parameter. Emit into AM_CPPFLAGS a definition of the designated C
6837         macro.
6838         (func_import): Define a witness macro. Assign it a value that depends
6839         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
6840         tests-related modules.
6841         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
6842         Reported by Jim Meyering.
6843
6844 2010-03-27  Bruno Haible  <bruno@clisp.org>
6845
6846         Factorize common .m4 code.
6847         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
6848         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
6849         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
6850         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
6851         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6852         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
6853         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
6854         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6855         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6856         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6857         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
6858         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6859         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6860         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6861         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6862         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
6863         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6864         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6865         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6866         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
6867         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
6868         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6869         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6870         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6871         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6872         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6873         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
6874         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
6875         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
6876         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6877         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6878         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
6879
6880 2010-03-27  Bruno Haible  <bruno@clisp.org>
6881
6882         Fix a compilation error on Cygwin with g++ >= 4.3.
6883         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
6884         if it is undefined or if we alias it to chmod.
6885         (lstat): Don't warn about the use of this function if it is undefined
6886         or if we alias it to stat.
6887         Reported by Simon Josefsson.
6888
6889 2010-03-27  Bruno Haible  <bruno@clisp.org>
6890
6891         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
6892         * modules/getlogin (configure.ac): Update.
6893
6894         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
6895         * modules/getlogin_r (configure.ac): Update.
6896
6897         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
6898         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
6899         * modules/inet_ntop (configure.ac): Update.
6900
6901         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
6902         * modules/inet_pton (configure.ac): Update.
6903
6904         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
6905         * modules/mbslen (configure.ac): Update.
6906
6907         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
6908         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
6909         * modules/forkpty (configure.ac): Update.
6910         * modules/openpty (configure.ac): Update.
6911
6912 2010-03-26  Simon Josefsson  <simon@josefsson.org>
6913
6914         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
6915         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
6916
6917 2010-03-25  Eric Blake  <eblake@redhat.com>
6918
6919         maint: use pragma consistently across replacement headers
6920         * lib/ctype.in.h (system_header): Hoist for consistent placement.
6921         * lib/dirent.in.h (system_header): Likewise.
6922         * lib/errno.in.h (system_header): Likewise.
6923         * lib/float.in.h (system_header): Likewise.
6924         * lib/getopt.in.h (system_header): Likewise.
6925         * lib/iconv.in.h (system_header): Likewise.
6926         * lib/inttypes.in.h (system_header): Likewise.
6927         * lib/langinfo.in.h (system_header): Likewise.
6928         * lib/locale.in.h (system_header): Likewise.
6929         * lib/math.in.h (system_header): Likewise.
6930         * lib/netdb.in.h (system_header): Likewise.
6931         * lib/netinet_in.in.h (system_header): Likewise.
6932         * lib/pty.in.h (system_header): Likewise.
6933         * lib/sched.in.h (system_header): Likewise.
6934         * lib/se-selinux.in.h (system_header): Likewise.
6935         * lib/search.in.h (system_header): Likewise.
6936         * lib/spawn.in.h (system_header): Likewise.
6937         * lib/stdarg.in.h (system_header): Likewise.
6938         * lib/stdint.in.h (system_header): Likewise.
6939         * lib/string.in.h (system_header): Likewise.
6940         * lib/strings.in.h (system_header): Likewise.
6941         * lib/sys_file.in.h (system_header): Likewise.
6942         * lib/sys_ioctl.in.h (system_header): Likewise.
6943         * lib/sys_socket.in.h (system_header): Likewise.
6944         * lib/sys_times.in.h (system_header): Likewise.
6945         * lib/sys_utsname.in.h (system_header): Likewise.
6946         * lib/sys_wait.in.h (system_header): Likewise.
6947         * lib/sysexits.in.h (system_header): Likewise.
6948         * lib/unistd.in.h (system_header): Likewise.
6949         * lib/wctype.in.h (system_header): Likewise.
6950
6951         arpa/inet: fix mingw compilation warning
6952         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
6953         Reported by Matthew Bolte.
6954
6955 2010-03-25  Bruno Haible  <bruno@clisp.org>
6956
6957         Avoid collision between gnulib wrapper and libintl wrapper.
6958         * lib/printf.c (printf): Don't define if a printf wrapper is already
6959         defined in intl/printf.c.
6960         Reported by Michel Boaventura <michel@michelboaventura.com>.
6961
6962 2010-03-25  Bruno Haible  <bruno@clisp.org>
6963
6964         Use ANSI C.
6965         * lib/readutmp.h (getutent): Provide ANSI C prototype.
6966
6967 2010-03-25  Bruno Haible  <bruno@clisp.org>
6968
6969         Minor formatting changes.
6970         * lib/acosl.c: Insert space before function argument list.
6971         * lib/argz.c: Likewise.
6972         * lib/asinl.c: Likewise.
6973         * lib/expl.c: Likewise.
6974         * lib/gen-uni-tables.c: Likewise.
6975         * lib/gettext.h: Likewise.
6976         * lib/glthread/lock.h: Likewise.
6977         * lib/tanl.c: Likewise.
6978         * lib/uniname/uniname.c: Likewise.
6979         * tests/test-idpriv-drop.c: Likewise.
6980         * tests/test-idpriv-droptemp.c: Likewise.
6981         * tests/test-lock.c: Likewise.
6982         * tests/test-tls.c: Likewise.
6983         * lib/argp-help.c: Insert space before function-like macro argument
6984         list.
6985         * lib/memcmp.c: Likewise.
6986         * tests/test-base64.c: Likewise.
6987         * lib/localename.c: Insert space before sizeof's argument list.
6988         * lib/safe-alloc.h: Likewise.
6989         * lib/file-set.h: Insert space before macro argument list.
6990         * tests/test-argp.c: Likewise.
6991         * lib/argp-namefrob.h: Insert space before function parameter list.
6992         * lib/getaddrinfo.c: Likewise.
6993         * lib/netdb.in.h: Likewise.
6994         * lib/parse-duration.h: Likewise.
6995         * lib/parse-duration.c: Likewise.
6996         * lib/poll.c: Likewise.
6997         * lib/select.c: Likewise.
6998         * lib/trim.h: Likewise.
6999         * tests/test-usleep.c: Likewise.
7000         * lib/ldexpl.c: Insert space before function parameter list and before
7001         function argument list.
7002         * lib/logl.c: Likewise.
7003         * lib/sqrtl.c: Likewise.
7004         * lib/trim.c: Likewise.
7005         * lib/cosl.c: Use GNU style indentation. Insert space before function
7006         argument list.
7007         * lib/sinl.c: Likewise.
7008         * lib/tsearch.c: Insert space after 'for'.
7009         Reported by Jim Meyering.
7010
7011 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7012
7013         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7014         config header before grepping, as it's not present before
7015         autoreconf/configure are run.  Reported by Simon Josefsson.
7016
7017 2010-03-23  Bruno Haible  <bruno@clisp.org>
7018
7019         pt_chown: Make it work with automake < 1.11.
7020         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7021         Reported by Simon Josefsson.
7022
7023 2010-03-23  Bruno Haible  <bruno@clisp.org>
7024
7025         pt_chown: Don't depend on GPLed modules.
7026         * lib/pt_chown.c: Don't include idpriv.h.
7027         (main): Don't drop privileges.
7028         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7029         Reported by Simon Josefsson.
7030
7031 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7032
7033         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7034         suggestions from karl@freefriends.org (Karl Berry).
7035
7036 2010-03-22  Eric Blake  <eblake@redhat.com>
7037
7038         gethostname: further tweaks
7039         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7040         are overriding gethostname.
7041         Suggested by Bruno Haible.
7042
7043 2010-03-21  Bruno Haible  <bruno@clisp.org>
7044
7045         Fix comments.
7046         * lib/forkpty.c (rpl_forkpty): Fix comment.
7047         * lib/openpty.c (rpl_openpty): Likewise.
7048         Reported by Eric Blake.
7049
7050 2010-03-22  Eric Blake  <eblake@redhat.com>
7051
7052         gethostname: fix build on mingw
7053         * lib/unistd.in.h (includes): Work around fact that mingw
7054         <winsock2.h> re-includes <unistd.h>, by avoiding any
7055         redeclarations if we are being included by <winsock2.h>.
7056         Reported by Matthias Bolte.
7057
7058 2010-03-21  Bruno Haible  <bruno@clisp.org>
7059
7060         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7061         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7062         modifications.
7063         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7064         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7065         provide the replacement.
7066         * modules/forkpty (Depends-on): Add openpty, login_tty.
7067         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7068         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7069         * doc/glibc-functions/forkpty.texi: More supported platforms.
7070         * config/srclist.txt: Add forkpty.c (commented).
7071
7072 2010-03-21  Bruno Haible  <bruno@clisp.org>
7073
7074         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7075         (Makefile.am): Verify that PTY_LIB is defined.
7076
7077         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7078
7079 2010-03-21  Bruno Haible  <bruno@clisp.org>
7080
7081         Tests for module 'login_tty'.
7082         * modules/login_tty-tests: New file.
7083         * tests/test-login_tty.c: New file.
7084
7085         New module 'login_tty'.
7086         * lib/login_tty.c: New file.
7087         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7088         * modules/login_tty: New file.
7089         * doc/glibc-functions/login_tty.texi: Mention the new module.
7090
7091 2010-03-21  Bruno Haible  <bruno@clisp.org>
7092
7093         login_tty: Documentation.
7094         * doc/glibc-functions/login_tty.texi: New file.
7095         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7096
7097 2010-03-21  Bruno Haible  <bruno@clisp.org>
7098
7099         pty: Consistent macro naming.
7100         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7101         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7102         * modules/pty (configure.ac): Update.
7103
7104 2010-03-21  Bruno Haible  <bruno@clisp.org>
7105
7106         Tests for openpty: Make stricter.
7107         * tests/test-openpty.c (main): Add test of canonical processing and
7108         erase.
7109         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7110
7111         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7112         * lib/openpty.c (openpty): New replacement function.
7113         * lib/pty.in.h: Include <termios.h>.
7114         (openpty): Update declaration. Add comments.
7115         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7116         is not declared, arrange to provide the replacement. Check for _getpty
7117         and posix_openpt.
7118         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7119         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7120         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7121         * modules/pty-tests (test_pty_c___LDADD): New variable.
7122         * doc/glibc-functions/openpty.texi: More supported platforms.
7123
7124 2010-03-21  Bruno Haible  <bruno@clisp.org>
7125
7126         setenv: Tweaks.
7127         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7128         the test program.
7129         * doc/posix-functions/setenv.texi: Update platforms list.
7130
7131 2010-03-21  Bruno Haible  <bruno@clisp.org>
7132
7133         New module 'unlockpt'.
7134         * lib/unlockpt.c: New file, from glibc with modifications.
7135         * m4/unlockpt.m4: New file.
7136         * modules/unlockpt: New file.
7137         * lib/stdlib.in.h (unlockpt): New declaration.
7138         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7139         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7140         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7141         HAVE_UNLOCKPT.
7142         * doc/posix-functions/unlockpt.texi: Mention the new module.
7143         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7144         * config/srclist.txt: Add unlockpt.c (commented).
7145
7146 2010-03-21  Jim Meyering  <meyering@redhat.com>
7147
7148         maint.mk: prohibit inclusion of "intprops.h" without use
7149         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7150
7151 2010-03-21  Bruno Haible  <bruno@clisp.org>
7152
7153         New module 'grantpt'.
7154         * lib/grantpt.c: New file, from glibc with modifications.
7155         * m4/grantpt.m4: New file.
7156         * modules/grantpt: New file.
7157         * lib/stdlib.in.h (grantpt): New declaration.
7158         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7159         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7160         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7161         HAVE_GRANTPT.
7162         * doc/posix-functions/grantpt.texi: Mention the new module.
7163         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7164         * config/srclist.txt: Add grantpt.c (commented).
7165
7166 2010-03-21  Bruno Haible  <bruno@clisp.org>
7167
7168         New module 'pt_chown'.
7169         * lib/pt_chown.c: New file, from glibc with modifications.
7170         * lib/pty-private.h: New file, from glibc with modifications.
7171         * modules/pt_chown: New file.
7172         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7173
7174 2010-03-21  Bruno Haible  <bruno@clisp.org>
7175
7176         Tests for module 'ptsname'.
7177         * modules/ptsname-tests: New file.
7178         * tests/test-ptsname.c: New file.
7179
7180         New module 'ptsname'.
7181         * lib/ptsname.c: New file, from glibc with modifications.
7182         * m4/ptsname.m4: New file.
7183         * modules/ptsname: New file.
7184         * lib/stdlib.in.h (ptsname): New declaration.
7185         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7186         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7187         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7188         HAVE_PTSNAME.
7189         * doc/posix-functions/ptsname.texi: Mention the new module.
7190         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7191         * config/srclist.txt: Add ptsname.c (commented).
7192
7193 2010-03-21  Bruno Haible  <bruno@clisp.org>
7194
7195         Tests for module 'ttyname_r'.
7196         * modules/ttyname_r-tests: New file.
7197         * tests/test-ttyname_r.c: New file.
7198
7199         New module 'ttyname_r'.
7200         * lib/ttyname_r.c: New file.
7201         * m4/ttyname_r.m4: New file.
7202         * modules/ttyname_r: New file.
7203         * lib/unistd.in.h (ttyname_r): New declaration.
7204         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7205         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7206         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7207         HAVE_TTYNAME_R.
7208         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7209         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7210
7211 2010-03-20  Bruno Haible  <bruno@clisp.org>
7212
7213         signal: Undefine macro definitions in C++ mode.
7214         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7215         sigfillset): Undefine macro definitions from the system header in C++
7216         mode.
7217         Reported by John W. Eaton <jwe@gnu.org>.
7218
7219 2010-03-20  Bruno Haible  <bruno@clisp.org>
7220
7221         Ensure no #include statements inside extern "C" { ... }.
7222         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
7223         contain #include statements.
7224         * lib/time.in.h: Likewise.
7225
7226 2010-03-20  Bruno Haible  <bruno@clisp.org>
7227
7228         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
7229         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
7230         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
7231         Reported by John W. Eaton <jwe@gnu.org>.
7232
7233 2010-03-20  Bruno Haible  <bruno@clisp.org>
7234
7235         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
7236         Reported by Jim Meyering.
7237
7238 2010-03-20  Bruno Haible  <bruno@clisp.org>
7239
7240         pipe: Set errno upon failure.
7241         * lib/pipe.h: Specify that when -1 is returned, errno is set.
7242         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
7243         errno value in error message.
7244
7245 2010-03-20  Bruno Haible  <bruno@clisp.org>
7246             Jim Meyering  <meyering@redhat.com>
7247
7248         lchown: Avoid "unused variable" warning.
7249         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
7250
7251 2010-03-20  Bruno Haible  <bruno@clisp.org>
7252
7253         Work around unlink() bug on MacOS X 10.5.6.
7254         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
7255         attempting to unlink a parent directory.
7256         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
7257         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
7258         activate for the replacement function.
7259         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
7260
7261 2010-03-20  Bruno Haible  <bruno@clisp.org>
7262
7263         Fix link errors on Solaris 8.
7264         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7265         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7266
7267 2010-03-19  Jim Meyering  <meyering@redhat.com>
7268
7269         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7270         The _LIBC implementation of build_range_exp correctly honors the
7271         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7272         However, the non-_LIBC implementation would ignore that syntax-bit
7273         flag and return REG_ERANGE unconditionally.
7274         This change makes it honor that flag.
7275         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7276         Make two pointer parameters "const".
7277         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7278         (parse_bracket_exp): Update caller.
7279
7280         regex.m4: correct the reversed range endpoint ([b-a]) test
7281         * m4/regex.m4: When requiring that [b-a] evoke failure,
7282         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7283         test pass once again for x86-based systems.
7284
7285 2010-03-19  Bruno Haible  <bruno@clisp.org>
7286
7287         scandir: Fix link error on Solaris 8.
7288         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7289         macros.
7290
7291 2010-03-19  Bruno Haible  <bruno@clisp.org>
7292
7293         getusershell: Fix documentation.
7294         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7295         module.
7296         * doc/glibc-functions/setusershell.texi: Likewise.
7297
7298         getusershell: Provide declaration, missing on Solaris 9.
7299         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7300         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7301         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7302         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7304         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7305         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7306         HAVE_GETUSERSHELL.
7307         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7308
7309 2010-03-19  Bruno Haible  <bruno@clisp.org>
7310
7311         wctype: Provide iswblank function.
7312         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7313         exists and is fine.
7314         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7315         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7316         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7317         * doc/posix-functions/iswblank.texi: Update.
7318
7319 2010-03-19  Bruno Haible  <bruno@clisp.org>
7320
7321         Tests of module 'pty' in C++ mode.
7322         * modules/pty-tests: New file.
7323         * tests/test-pty-c++.cc: New file.
7324         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7325
7326 2010-03-19  Eric Blake  <eblake@redhat.com>
7327
7328         logb: fix documentation
7329         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7330         1.5 declaration bug.
7331
7332         forkpty, openpty: prefer glibc's const-safe prototype
7333         * lib/forkpty.c (rpl_forkpty): New file.
7334         * lib/openpty.c (rpl_openpty): Likewise.
7335         * modules/forkpty (Files): Distribute it.
7336         * modules/openpty (Files): Likewise.
7337         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7338         check...
7339         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7340         replacement for for non-const BSD signature.
7341         * modules/pty (Makefile.am): Substitute witnesses.
7342         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7343         * tests/test-forkpty.c: Update signature check.
7344         * tests/test-openpty.c: Likewise.
7345         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7346         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7347
7348         forkpty, openpty: split functions into new modules
7349         * modules/pty (Makefile.am): Substitute new witnesses.
7350         (Libraries): Move library detection...
7351         * modules/forkpty: ...into new module.
7352         * modules/openpty: Another new module.
7353         * modules/pty-tests: Rename and split...
7354         * modules/forkpty-tests: ...to this...
7355         * modules/openpty-tests: ...and this.
7356         * tests/test-pty.c: Rename and split...
7357         * tests/test-forkpty.c: ...to this...
7358         * tests/test-openpty.c: ...and this.
7359         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7360         (gl_PTY): Split library searching...
7361         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7362         (gl_FORKPTY, gl_OPENPTY): New macros.
7363         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7364         * NEWS: Mention the split.
7365         * MODULES.html.sh (Misc): Document the modules.
7366         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7367         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7368
7369         pty: improve replacement header
7370         * lib/pty.in.h: New file.
7371         * modules/pty (Files): Ship it.
7372         (Makefile.am): Always build replacement.
7373         * m4/pty.m4: Rename...
7374         * m4/pty_h.m4: ...to this.
7375         (gl_PTY): Modernize setting of witness macros; update check of
7376         forkpty to take proper advantage of cache.
7377         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7378
7379         getopt: avoid compiler warning
7380         * lib/getopt.c (attribute_hidden): Remove unused macro.
7381
7382 2010-03-18  Bruno Haible  <bruno@clisp.org>
7383
7384         Fix link errors on Solaris 8.
7385         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7386         * modules/search-tests (test_search_c___LDADD): Likewise.
7387         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7388         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7389         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7390         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
7391         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
7392         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
7393         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
7394
7395 2010-03-18  Bruno Haible  <bruno@clisp.org>
7396
7397         Fix bug introduced on 2010-03-14.
7398         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
7399         (gl_SPAWN_H): Require it.
7400         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
7401         Reported by Simon Josefsson.
7402
7403 2010-03-18  Bruno Haible  <bruno@clisp.org>
7404
7405         Fix typo introduced on 2009-12-31.
7406         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
7407         posix_spawn_file_actions_adddup2.
7408
7409 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
7410         and Eric Blake  <eblake@redhat.com>
7411
7412         test-vc-list-files-git: make more robust
7413         * tests/test-vc-list-files-git.sh: Unset problematic environment
7414         variables.  Chain commands together.
7415
7416 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
7417
7418         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
7419         `AC_CHECK_DECL' invocation.
7420
7421 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
7422
7423         * lib/inttostr.c (inttostr): Make sure the invocation of verify
7424         appears before executable statements. Suggested by Petr Sumbera
7425         <Petr.Sumbera@Sun.COM>.
7426
7427 2010-03-14  Bruno Haible  <bruno@clisp.org>
7428
7429         * tests/test-flock.c (test_exclusive): Comment out a test that causes
7430         portability problems. Instead use a simpler test.
7431         (main): Check that invalid arguments are rejected only on Linux.
7432
7433 2010-03-14  Bruno Haible  <bruno@clisp.org>
7434
7435         Fix bug introduced on 2009-12-31.
7436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7437         gl_PREREQ_SYS_H_WINSOCK2 always.
7438         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
7439         SYS_SOCKET_H variable.
7440         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
7441         Update comments.
7442         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
7443         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7444         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7445         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7446         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7447
7448 2010-03-14  Bruno Haible  <bruno@clisp.org>
7449
7450         Fix values returned by sinl, cosl.
7451         * lib/trigl.h: Add specification comments.
7452         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
7453         that combines the values from the precomputed table with the values of
7454         the Chebyshev polynomials.
7455
7456 2010-03-14  Bruno Haible  <bruno@clisp.org>
7457
7458         Fix compilation error when modules 'posix_spawn[p]' are not used.
7459         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
7460         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
7461
7462 2010-03-14  Bruno Haible  <bruno@clisp.org>
7463
7464         Fix compilation error on mingw when module 'time_r' is not used.
7465         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
7466         is 1.
7467         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
7468         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7469         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
7470         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
7471
7472 2010-03-14  Bruno Haible  <bruno@clisp.org>
7473
7474         Fix compilation error with Sun C.
7475         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
7476         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
7477         instead of GCC specific ULONG_LONG_MAX.
7478         * lib/xstrtoll.c: Likewise.
7479         * lib/xstrtoull.c: Likewise.
7480
7481 2010-03-13  Bruno Haible  <bruno@clisp.org>
7482
7483         Allow the user to disable C++ code and tests.
7484         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
7485         (gl_PROG_ANSI_CXX): Require it.
7486
7487 2010-03-13  Bruno Haible  <bruno@clisp.org>
7488
7489         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
7490         cases.
7491
7492 2010-03-13  Bruno Haible  <bruno@clisp.org>
7493
7494         Test that gnulib does not break the standard C++ headers.
7495         * tests/test-locale-c++2.cc: New file.
7496         * modules/locale-tests (Files): Add it.
7497         (Makefile.am): Compile it for test-locale-c++.
7498         * tests/test-math-c++2.cc: New file.
7499         * modules/math-tests (Files): Add it.
7500         (Makefile.am): Compile it for test-math-c++.
7501         * tests/test-signal-c++2.cc: New file.
7502         * modules/signal-tests (Files): Add it.
7503         (Makefile.am): Compile it for test-signal-c++.
7504         * tests/test-stdio-c++2.cc: New file.
7505         * modules/stdio-tests (Files): Add it.
7506         (Makefile.am): Compile it for test-stdio-c++.
7507         * tests/test-stdlib-c++2.cc: New file.
7508         * modules/stdlib-tests (Files): Add it.
7509         (Makefile.am): Compile it for test-stdlib-c++.
7510         * tests/test-string-c++2.cc: New file.
7511         * modules/string-tests (Files): Add it.
7512         (Makefile.am): Compile it for test-string-c++.
7513         * tests/test-time-c++2.cc: New file.
7514         * modules/time-tests (Files): Add it.
7515         (Makefile.am): Compile it for test-time-c++.
7516         Reported by John W. Eaton <jwe@gnu.org>.
7517
7518 2010-03-13  Bruno Haible  <bruno@clisp.org>
7519
7520         * gnulib-tool (func_usage): Clarify which options are available for
7521         --create-testdir and --create-megatestdir.
7522
7523 2010-03-13  Bruno Haible  <bruno@clisp.org>
7524
7525         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
7526         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
7527         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
7528         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7529         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
7530         when appropriate.
7531         Reported by Jim Meyering.
7532
7533 2010-03-12  Simon Josefsson  <simon@josefsson.org>
7534
7535         * gnulib-tool (func_import): Explain origin of code.
7536
7537 2010-03-12  Bruno Haible  <bruno@clisp.org>
7538
7539         Fix problem with automake's definition of CXXLINK.
7540         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
7541         Reported by Simon Josefsson and Ludovic Courtès.
7542
7543 2010-03-12  Bruno Haible  <bruno@clisp.org>
7544
7545         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
7546         stable releases.
7547
7548 2010-03-11  Bruno Haible  <bruno@clisp.org>
7549
7550         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
7551         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
7552         whether the system provides one variant or multiple variants of the
7553         function.
7554         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
7555         C++ compilers.
7556         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
7557         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
7558         Reported by Jim Meyering.
7559
7560 2010-03-09  Simon Josefsson  <simon@josefsson.org>
7561
7562         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
7563
7564 2010-03-08  Bruno Haible  <bruno@clisp.org>
7565
7566         gnulib-tool: Add support for --libtool in --create-testdir.
7567         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
7568         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
7569
7570 2010-03-08  Eric Blake  <eblake@redhat.com>
7571
7572         gnulib-tool.texi: mention possibility of git submodule
7573         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
7574         submodules.
7575         * doc/.gitignore: Ignore another generated file.
7576
7577 2010-03-08  Karl Berry  <karl@gnu.org>
7578
7579         * doc/gnulib-tool.texi (VCS Issues): Mention third option
7580         of committing gnulib files while skipping others.
7581
7582 2010-03-07  Bruno Haible  <bruno@clisp.org>
7583
7584         Tests of module 'wctype' in C++ mode.
7585         * tests/test-wctype-c++.cc: New file.
7586         * modules/wctype-tests (Files): Add it and tests/signature.h.
7587         (Depends-on): Add ansi-c++-opt.
7588         (Makefile.am): Arrange to compile and run test-wctype-c++.
7589
7590         Tests of module 'wchar' in C++ mode.
7591         * tests/test-wchar-c++.cc: New file.
7592         * modules/wchar-tests (Files): Add it and tests/signature.h.
7593         (Depends-on): Add ansi-c++-opt.
7594         (Makefile.am): Arrange to compile and run test-wchar-c++.
7595         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
7596         gl_MODULE_INDICATOR.
7597
7598         Tests of module 'unistd' in C++ mode.
7599         * tests/test-unistd-c++.cc: New file.
7600         * modules/unistd-tests (Files): Add it and tests/signature.h.
7601         (Depends-on): Add ansi-c++-opt.
7602         (Makefile.am): Arrange to compile and run test-unistd-c++.
7603         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
7604         gl_MODULE_INDICATOR.
7605
7606         Tests of module 'time' in C++ mode.
7607         * tests/test-time-c++.cc: New file.
7608         * modules/time-tests (Files): Add it and tests/signature.h.
7609         (Depends-on): Add ansi-c++-opt.
7610         (Makefile.am): Arrange to compile and run test-time-c++.
7611         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7612
7613         Tests of module 'sys_time' in C++ mode.
7614         * tests/test-sys_time-c++.cc: New file.
7615         * modules/sys_time-tests (Files): Add it and tests/signature.h.
7616         (Depends-on): Add ansi-c++-opt.
7617         (Makefile.am): Arrange to compile and run test-sys_time-c++.
7618         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
7619         gl_MODULE_INDICATOR.
7620
7621         Tests of module 'sys_stat' in C++ mode.
7622         * tests/test-sys_stat-c++.cc: New file.
7623         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
7624         (Depends-on): Add ansi-c++-opt.
7625         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
7626         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
7627         gl_MODULE_INDICATOR.
7628
7629         Tests of module 'sys_socket' in C++ mode.
7630         * tests/test-sys_socket-c++.cc: New file.
7631         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
7632         (Depends-on): Add ansi-c++-opt.
7633         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
7634         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
7635         gl_MODULE_INDICATOR.
7636
7637         Tests of module 'sys_select' in C++ mode.
7638         * tests/test-sys_select-c++.cc: New file.
7639         * modules/sys_select-tests (Files): Add it and tests/signature.h.
7640         (Depends-on): Add ansi-c++-opt.
7641         (Makefile.am): Arrange to compile and run test-sys_select-c++.
7642         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
7643         gl_MODULE_INDICATOR.
7644
7645         Tests of module 'sys_ioctl' in C++ mode.
7646         * tests/test-sys_ioctl-c++.cc: New file.
7647         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
7648         (Depends-on): Add ansi-c++-opt.
7649         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
7650         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
7651         gl_MODULE_INDICATOR.
7652
7653         Tests of module 'string' in C++ mode.
7654         * tests/test-string-c++.cc: New file.
7655         * modules/string-tests (Files): Add it and tests/signature.h.
7656         (Depends-on): Add ansi-c++-opt.
7657         (Makefile.am): Arrange to compile and run test-string-c++.
7658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
7659         gl_MODULE_INDICATOR.
7660
7661         Tests of module 'stdlib' in C++ mode.
7662         * tests/test-stdlib-c++.cc: New file.
7663         * modules/stdlib-tests (Files): Add it and tests/signature.h.
7664         (Depends-on): Add ansi-c++-opt.
7665         (Makefile.am): Arrange to compile and run test-stdlib-c++.
7666         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
7667         gl_MODULE_INDICATOR.
7668
7669         Tests of module 'stdio' in C++ mode.
7670         * tests/test-stdio-c++.cc: New file.
7671         * modules/stdio-tests (Files): Add it and tests/signature.h.
7672         (Depends-on): Add ansi-c++-opt.
7673         (Makefile.am): Arrange to compile and run test-stdio-c++.
7674         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
7675         gl_MODULE_INDICATOR.
7676
7677         Tests of module 'spawn' in C++ mode.
7678         * tests/test-spawn-c++.cc: New file.
7679         * modules/spawn-tests (Files): Add it and tests/signature.h.
7680         (Depends-on): Add ansi-c++-opt.
7681         (Makefile.am): Arrange to compile and run test-spawn-c++.
7682         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
7683         gl_MODULE_INDICATOR.
7684
7685         Tests of module 'signal' in C++ mode.
7686         * tests/test-signal-c++.cc: New file.
7687         * modules/signal-tests (Files): Add it and tests/signature.h.
7688         (Depends-on): Add ansi-c++-opt.
7689         (Makefile.am): Arrange to compile and run test-signal-c++.
7690         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
7691         gl_MODULE_INDICATOR.
7692
7693         Tests of module 'search' in C++ mode.
7694         * tests/test-search-c++.cc: New file.
7695         * modules/search-tests (Files): Add it and tests/signature.h.
7696         (Depends-on): Add ansi-c++-opt.
7697         (Makefile.am): Arrange to compile and run test-search-c++.
7698         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
7699         gl_MODULE_INDICATOR.
7700
7701         Tests of module 'math' in C++ mode.
7702         * tests/test-math-c++.cc: New file.
7703         * modules/math-tests (Files): Add it and tests/signature.h.
7704         (Depends-on): Add ansi-c++-opt.
7705         (Makefile.am): Arrange to compile and run test-math-c++.
7706         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7707
7708         Tests of module 'locale' in C++ mode.
7709         * tests/test-locale-c++.cc: New file.
7710         * modules/locale-tests (Files): Add it and tests/signature.h.
7711         (Depends-on): Add ansi-c++-opt.
7712         (Makefile.am): Arrange to compile and run test-locale-c++.
7713         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
7714         gl_MODULE_INDICATOR.
7715
7716         Tests of module 'langinfo' in C++ mode.
7717         * tests/test-langinfo-c++.cc: New file.
7718         * modules/langinfo-tests (Files): Add it and tests/signature.h.
7719         (Depends-on): Add ansi-c++-opt.
7720         (Makefile.am): Arrange to compile and run test-langinfo-c++.
7721         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
7722         gl_MODULE_INDICATOR.
7723
7724         Tests of module 'iconv-h' in C++ mode.
7725         * tests/test-iconv-h-c++.cc: New file.
7726         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
7727         (Depends-on): Add ansi-c++-opt.
7728         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
7729
7730         Tests of module 'glob' in C++ mode.
7731         * tests/test-glob-c++.cc: New file.
7732         * modules/glob-tests (Files): Add it.
7733         (Depends-on): Add ansi-c++-opt.
7734         (Makefile.am): Arrange to compile and run test-glob-c++.
7735
7736         Tests of module 'fcntl-h' in C++ mode.
7737         * tests/test-fcntl-h-c++.cc: New file.
7738         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
7739         (Depends-on): Add ansi-c++-opt.
7740         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
7741         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
7742         gl_MODULE_INDICATOR.
7743
7744         Tests of module 'dirent' in C++ mode.
7745         * tests/test-dirent-c++.cc: New file.
7746         * modules/dirent-tests (Files): Add it and tests/signature.h.
7747         (Depends-on): Add ansi-c++-opt.
7748         (Makefile.am): Arrange to compile and run test-dirent-c++.
7749         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7750         gl_MODULE_INDICATOR.
7751
7752         New module 'ansi-c++-opt'.
7753         * modules/ansi-c++-opt: New file.
7754         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
7755
7756         Document C++ namespace mode.
7757         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
7758
7759         wctype: Avoid #define replacements in C++ mode.
7760         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
7761         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
7762         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
7763         In C++, define a namespaced alias symbol.
7764         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
7765         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
7766         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
7767         rule.
7768
7769         wchar: Avoid #define replacements in C++ mode.
7770         * lib/wchar.in.h: Include c++defs.h.
7771         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
7772         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
7773         symbol.
7774         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
7775         * modules/wchar (Depends-on): Add c++defs.
7776         (Makefile.am): Update wchar.h rule.
7777
7778         unistd: Avoid #define replacements in C++ mode.
7779         * lib/unistd.in.h: Include c++defs.h.
7780         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
7781         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
7782         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
7783         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
7784         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
7785         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
7786         symbol.
7787         (environ): Update.
7788         * modules/unistd (Depends-on): Add c++defs.
7789         (Makefile.am): Update unistd.h rule.
7790
7791         time: Avoid #define replacements in C++ mode.
7792         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
7793         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
7794         define a namespaced alias symbol.
7795         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
7796         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
7797         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
7798         * modules/time (Depends-on): Add c++defs, warn-on-use.
7799         (Makefile.am): Update time.h rule.
7800         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7801         * modules/nanosleep (configure.ac): Likewise.
7802         * modules/strptime (configure.ac): Likewise.
7803         * modules/timegm (configure.ac): Likewise.
7804
7805         sys_time: Avoid #define replacements in C++ mode.
7806         * lib/sys_time.in.h: Include c++defs.h.
7807         (gettimeofday): In C++, define a namespaced alias symbol.
7808         * modules/sys_time (Depends-on): Add c++defs.
7809         (Makefile.am): Update sys/time.h rule.
7810
7811         sys_stat: Avoid #define replacements in C++ mode.
7812         * lib/sys_stat.in.h: Include c++defs.h.
7813         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
7814         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
7815         namespaced alias symbol.
7816         In C++, define a namespaced alias symbol.
7817         * modules/sys_stat (Depends-on): Add c++defs.
7818         (Makefile.am): Update sys/stat.h rule.
7819
7820         sys_socket: Avoid #define replacements in C++ mode.
7821         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
7822         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
7823         definitions also when the system has a <sys/socket.h>.
7824         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7825         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
7826         In C++, define a namespaced alias symbol.
7827         * modules/sys_socket (Depends-on): Add c++defs.
7828         (Makefile.am): Update sys/socket.h rule.
7829
7830         sys_select: Avoid #define replacements in C++ mode.
7831         * lib/sys_select.in.h: Include c++defs.h. Enable the function
7832         definitions also when the system has a <sys/select.h>.
7833         (select): In C++, define a namespaced alias symbol.
7834         * modules/sys_select (Depends-on): Add c++defs.
7835         (Makefile.am): Update sys/select.h rule.
7836
7837         sys_ioctl: Avoid #define replacements in C++ mode.
7838         * lib/sys_ioctl.in.h: Include c++defs.h.
7839         (ioctl): In C++, define a namespaced alias symbol.
7840         * modules/sys_ioctl (Depends-on): Add c++defs.
7841         (Makefile.am): Update sys/ioctl.h rule.
7842
7843         string: Avoid #define replacements in C++ mode.
7844         * lib/string.in.h: Include c++defs.h.
7845         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
7846         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7847         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7848         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
7849         strsignal, strverscmp): In C++, define a namespaced alias symbol.
7850         * modules/string (Depends-on): Add c++defs.
7851         (Makefile.am): Update string.h rule.
7852
7853         stdlib: Avoid #define replacements in C++ mode.
7854         * lib/stdlib.in.h: Include c++defs.h.
7855         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
7856         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
7857         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
7858         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
7859         symbol.
7860         * modules/stdlib (Depends-on): Add c++defs.
7861         (Makefile.am): Update stdlib.h rule.
7862
7863         stdio: Avoid #define replacements in C++ mode.
7864         * lib/stdio.in.h: Include c++defs.h.
7865         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
7866         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
7867         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
7868         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
7869         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
7870         namespaced alias symbol.
7871         * modules/stdio (Depends-on): Add c++defs.
7872         (Makefile.am): Update stdio.h rule.
7873
7874         spawn: Avoid #define replacements in C++ mode.
7875         * lib/spawn.in.h: Include c++defs.h.
7876         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7877         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7878         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7879         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7880         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7881         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7882         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7883         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7884         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7885         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7886         In C++, define a namespaced alias symbol.
7887         * modules/spawn (Depends-on): Add c++defs.
7888         (Makefile.am): Update spawn.h rule.
7889
7890         signal: Avoid #define replacements in C++ mode.
7891         * lib/signal.in.h: Include c++defs.h.
7892         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7893         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
7894         namespaced alias symbol.
7895         * modules/signal (Depends-on): Add c++defs.
7896         (Makefile.am): Update signal.h rule.
7897
7898         search: Avoid #define replacements in C++ mode.
7899         * lib/search.in.h: Include c++defs.h.
7900         (_gl_search_compar_fn, _gl_search_action_fn): New types.
7901         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
7902         symbol.
7903         * modules/search (Depends-on): Add c++defs.
7904         (Makefile.am): Update search.h rule.
7905
7906         math: Avoid #define replacements in C++ mode.
7907         * lib/math.in.h: Include c++defs.h.
7908         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
7909         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
7910         trunc, truncl): In C++, define a namespaced alias symbol.
7911         * modules/math (Depends-on): Add c++defs.
7912         (Makefile.am): Update math.h rule.
7913
7914         locale: Avoid #define replacements in C++ mode.
7915         * lib/locale.in.h: Include c++defs.h.
7916         (duplocale): In C++, define a namespaced alias symbol.
7917         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
7918         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
7919         * modules/locale (Depends-on): Add c++defs.
7920         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
7921
7922         langinfo: Avoid #define replacements in C++ mode.
7923         * lib/langinfo.in.h: Include c++defs.h.
7924         (nl_langinfo): In C++, define a namespaced alias symbol.
7925         * modules/langinfo (Depends-on): Add c++defs.
7926         (Makefile.am): Update langinfo.h rule.
7927
7928         iconv-h: Avoid #define replacements in C++ mode.
7929         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
7930         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
7931         symbol.
7932         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7933         whenever iconv is present.
7934         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
7935         (Makefile.am): Update iconv.h rule.
7936
7937         glob: Avoid #define replacements in C++ mode.
7938         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
7939         (_gl_glob_errfunc_fn): New type.
7940         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
7941         symbol.
7942         * modules/glob (Depends-on): Add c++defs, warn-on-use.
7943         (Makefile.am): Update glob.h rule.
7944
7945         fcntl-h: Avoid #define replacements in C++ mode.
7946         * lib/fcntl.in.h: Include c++defs.h.
7947         (fcntl, open, openat): In C++, define a namespaced alias symbol.
7948         * modules/fcntl-h (Depends-on): Add c++defs.
7949         (Makefile.am): Update fcntl.h rule.
7950
7951         dirent: Avoid #define replacements in C++ mode.
7952         * lib/dirent.in.h: Include c++defs.h.
7953         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
7954         namespaced alias symbol.
7955         (dirfd): Update declaration.
7956         * modules/dirent (Depends-on): Add c++defs.
7957         (Makefile.am): Update dirent.h rule.
7958
7959         ctype: Make it usable in C++ code.
7960         * lib/ctype.in.h: Include c++defs.h.
7961         (isblank): Declare as extern "C".
7962         * modules/ctype (Depends-on): Add c++defs.
7963         (Makefile.am): Update ctype.h rule.
7964
7965         New module 'c++defs'.
7966         * modules/c++defs: New file.
7967         * build-aux/c++defs.h: New file.
7968         Reported by John W. Eaton <jwe@gnu.org>.
7969
7970 2010-03-07  Bruno Haible  <bruno@clisp.org>
7971
7972         logb: Provide missing declaration for Cygwin.
7973         * lib/math.in.h (logb): New declaration.
7974         * m4/logb.m4: New file.
7975         * modules/logb (Files): Add m4/logb.m4.
7976         (Depends-on): Add math.
7977         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
7978         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
7979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
7980         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
7981         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
7982
7983 2010-03-07  Bruno Haible  <bruno@clisp.org>
7984
7985         Fix test-cond link error.
7986         * tests/test-cond.c: Include <stdio.h>.
7987
7988 2010-03-07  Bruno Haible  <bruno@clisp.org>
7989
7990         Fix test-dirent-safer link error.
7991         * modules/dirent-safer-tests (Makefile.am): Define
7992         test_dirent_safer_LDADD.
7993
7994 2010-03-07  Bruno Haible  <bruno@clisp.org>
7995
7996         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
7997         among default module list.
7998
7999 2010-03-07  Bruno Haible  <bruno@clisp.org>
8000
8001         Fix link error on platforms with GNU libiconv.
8002         * modules/unistr/u8-strcoll-tests (Makefile): Define
8003         test_u8_strcoll_LDADD.
8004         * modules/unistr/u16-strcoll-tests (Makefile): Define
8005         test_u16_strcoll_LDADD.
8006         * modules/unistr/u32-strcoll-tests (Makefile): Define
8007         test_u32_strcoll_LDADD.
8008
8009 2010-03-07  Bruno Haible  <bruno@clisp.org>
8010
8011         Use POSIX declarations for socket functions.
8012         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8013         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8014         rpl_sendto): Change declaration to match POSIX.
8015         * lib/connect.c (rpl_connect): Likewise.
8016         * lib/accept.c (rpl_accept): Likewise.
8017         * lib/bind.c (rpl_bind): Likewise.
8018         * lib/getpeername.c (rpl_getpeername): Likewise.
8019         * lib/getsockname.c (rpl_getsockname): Likewise.
8020         * lib/recv.c (rpl_recv): Likewise.
8021         * lib/send.c (rpl_send): Likewise.
8022         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8023         * lib/sendto.c (rpl_sendto): Likewise.
8024
8025 2010-03-06  Bruno Haible  <bruno@clisp.org>
8026
8027         Clarify access, euidaccess, faccessat.
8028         * doc/posix-functions/faccessat.texi: Mention security problem under
8029         "Other problems", not "Portability problems".
8030         * doc/posix-functions/access.texi: Likewise. Mention a related security
8031         problem.
8032         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8033         * lib/euidaccess.c: Add comments about platforms.
8034         * lib/unistd.in.h (access, euidaccess): Add warnings.
8035
8036 2010-03-07  Bruno Haible  <bruno@clisp.org>
8037
8038         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8039         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8040         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8041         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8042         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8043         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8044         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8045         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8046         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8047         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8048         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8049         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8050         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8051         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8052         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8053         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8054         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8055         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8056         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8057         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8058         Likewise.
8059         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8060         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8061         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8062         Likewise.
8063         * tests/test-spawn.c (main): Make it work when
8064         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8065
8066 2010-03-07  Bruno Haible  <bruno@clisp.org>
8067
8068         Fix incorrect Makefile.am generation in German locale.
8069         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8070         Execute sed command with character range in C locale.
8071
8072 2010-03-06  Bruno Haible  <bruno@clisp.org>
8073
8074         Tests for module 'iconv-h'.
8075         * modules/iconv-h-tests: New file.
8076         * tests/test-iconv-h.c: New file.
8077
8078         New module 'iconv-h'.
8079         * modules/iconv-h: New file.
8080         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8081         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8082         (configure.ac): Remove gl_ICONV_H.
8083         (Makefile.am): Remove rule for iconv.h.
8084
8085 2010-03-06  Bruno Haible  <bruno@clisp.org>
8086
8087         More consistent naming of *.m4 files.
8088         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8089         * modules/wctype (Files): Update.
8090
8091         More consistent naming of *.m4 files.
8092         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8093         * modules/wchar (Files): Update.
8094
8095 2010-03-06  Jim Meyering  <meyering@redhat.com>
8096
8097         euidaccess: relax license to LGPLv2+
8098         * modules/euidaccess (License): Relax to LGPLv2+.
8099
8100 2010-03-06  Bruno Haible  <bruno@clisp.org>
8101
8102         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8103         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8104         (Makefile.am): Augment lib_SOURCES instead.
8105
8106 2010-03-04  Jim Meyering  <meyering@redhat.com>
8107
8108         utime: remove obsolete module
8109         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8110         unnecessary for years, and has been marked as obsolete for 10 months.
8111         * modules/utime: Remove file.
8112         * lib/utime.c: Remove file.
8113         * m4/utime.m4: Remove file.
8114         * m4/utimes-null.m4: Remove file.
8115         * doc/posix-functions/utime.texi (utime): Remove reference to
8116         the module.  Move the sole "fixed by gnulib" item into the
8117         "problems not fixed by Gnulib" list.
8118         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8119
8120 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8121
8122         * modules/exit (License): Relax license to LGPLv2+.
8123         (Status): Mark as obsolete.
8124         * NEWS: Mention deprecated 'exit' module.
8125         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8126         of now obsolete 'exit'.
8127
8128 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8129
8130         fts-lgpl: remove unused module
8131         * modules/fts-lgpl: Remove.
8132         * MODULES.html.sh (func_all_modules): Adjust.
8133         * check-module (find_included_lib_files): Adjust.
8134         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8135
8136 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8137
8138         copy-acl: enhance Solaris ACL error handling
8139         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8140         * lib/set-mode-acl.c (qset_acl): Likewise.
8141
8142 2010-03-02  Bruno Haible  <bruno@clisp.org>
8143
8144         spawn: Don't override the system defined values on FreeBSD 8.
8145         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8146         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8147         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8148         if HAVE_POSIX_SPAWN is 1.
8149         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8150
8151 2010-03-01  Bruno Haible  <bruno@clisp.org>
8152
8153         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8154         regarding Automake.
8155
8156 2010-02-25  Bruno Haible  <bruno@clisp.org>
8157
8158         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8159         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8160         setting, not afterwards.
8161         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8162
8163 2010-02-24  Eric Blake  <eblake@redhat.com>
8164
8165         bootstrap, git-version-gen: use timestamp
8166         * build-aux/git-version-gen (scriptversion): Force UTC.
8167         * build-aux/bootstrap (scriptversion): New variable.
8168
8169         bootstrap: allow older git
8170         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8171         older than 1.6.4.  Requested by the libvirt project.
8172
8173 2010-02-23  Eric Blake  <eblake@redhat.com>
8174
8175         warn-on-use: work with old autoconf
8176         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8177         AS_VAR semantics of autoconf 2.60.
8178         Reported by Bruno Haible.
8179
8180         bootstrap: improve some comments
8181         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8182         clarification comments.
8183
8184         gettimeofday: provide correct function
8185         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8186         when replacement is declared, otherwise provide gettimeofday.
8187         Reported by Michael Goffioul.
8188
8189 2010-02-23  Jim Meyering  <meyering@redhat.com>
8190
8191         lib-ignore: relax license to "unlimited", not LGPLv2+
8192         * modules/lib-ignore (License): Relax to "unlimited".
8193
8194 2010-02-23  Jim Meyering  <meyering@redhat.com>
8195
8196         lib-ignore: relax license to LGPLv2+
8197         * modules/lib-ignore (License): Relax to LGPLv2+.
8198
8199 2010-02-22  Eric Blake  <eblake@redhat.com>
8200
8201         lseek: avoid bash 3.2 broken pipe bug
8202         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8203         warning from bash 3.2.
8204         Reported by Ben Pfaff, with analysis from Bruno Haible.
8205
8206         bootstrap: support non-FSF copyright holder
8207         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8208         bootstrap.conf override of COPYRIGHT_HOLDER.
8209         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8210
8211         bootstrap: interoperate with gettext 0.14.1
8212         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8213
8214         bootstrap: allow for alternate submodule location
8215         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8216         hardcoding submodule location.
8217         (gnulib_mk): Allow direct use of Makefile.am.
8218
8219         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8220         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8221         rather than reconfiguring where the submodule points.
8222
8223         gettimeofday: restore support for platforms that lack function
8224         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
8225         replacement if function is missing.
8226         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
8227         * modules/sys_time (Makefile.am): Substitute it.
8228         * lib/sys_time.in.h (gettimeofday): Check it.
8229         Reported by Michael Goffioul.
8230
8231 2010-02-21  Bruno Haible  <bruno@clisp.org>
8232
8233         * lib/stdio.in.h (obstack_printf): Fix typo.
8234
8235 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
8236
8237         vc-list-files: use bzr ls's -R option
8238         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
8239         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
8240
8241 2010-02-21  Jim Meyering  <meyering@redhat.com>
8242
8243         init.sh: fix EXEEXT shims to work also for names like test-prog
8244         * tests/init.sh: Re-exec a better shell, when needed.
8245         If the current shell lacks support for posix $(...), an init.sh-using
8246         test will now try to find a shell that supports that.  If EXEEXT is
8247         nonempty, we also require support for hyphen-in-alias-name and shell
8248         substitutions like ${var#glob}.  Failure to find such a shell results
8249         in a skipped test.
8250
8251 2010-02-21  Bruno Haible  <bruno@clisp.org>
8252
8253         Really work around around "broken pipe" error message from bash 3.2.
8254         * gnulib-tool (func_reset_sigpipe): Remove function.
8255         (echo): In bash 3.2, define to a function that uses printf.
8256         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
8257
8258 2010-02-20  Bruno Haible  <bruno@clisp.org>
8259
8260         Restore support for automake 1.9.6 with autoconf 2.61.
8261         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
8262         Reported by James Youngman <jay@gnu.org>.
8263
8264 2010-02-20  Bruno Haible  <bruno@clisp.org>
8265
8266         Improve *printf warning condition.
8267         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8268         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8269         and the function is overridden due to SIGPIPE emulation.
8270
8271 2010-02-20  Bruno Haible  <bruno@clisp.org>
8272
8273         * lib/stdio.in.h: Tweak comments.
8274
8275 2010-02-19  Bruno Haible  <bruno@clisp.org>
8276
8277         Make it easier to find modules. New gnulib-tool option '--find'.
8278         * gnulib-tool: New option --find.
8279         (func_usage): Document it.
8280         (func_sanitize_modulelist): New function, extracted from
8281         func_all_modules.
8282         (func_all_modules): Invoke it.
8283         * doc/gnulib-tool.texi (Which modules?): New node.
8284
8285 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8286
8287         * lib/sys_select.in.h: Provide select replacement even if
8288         sys/select.h exists on a system, for Interix.
8289
8290 2010-02-18  Jim Meyering  <meyering@redhat.com>
8291
8292         init.sh: don't use $(...) just yet
8293         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8294         to accommodate e.g., Solaris' /bin/sh.
8295
8296 2010-02-17  Bruno Haible  <bruno@clisp.org>
8297
8298         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8299         Reported by Ludovic Courtès <ludo@gnu.org>.
8300
8301 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8302
8303         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8304         linking with -lintl.
8305
8306 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8307
8308         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8309         if not provided by the system's netdb.h.  Reported by
8310         ludo@gnu.org (Ludovic Courtès).
8311
8312 2010-02-15  Jim Meyering  <meyering@redhat.com>
8313
8314         init.sh: improve portability and efficiency
8315         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8316         "dummy" in a for loop.
8317         Use '!', not '^' to select the complement of a character set used
8318         in a "case" statement.
8319         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8320         Suggestions from Eric Blake.
8321
8322         init.sh: automatically accommodate programs with the .exe suffix
8323         Automatically arrange for an invocation of "prog" to execute the
8324         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8325         may use the simpler "prog", yet still work when built on a system
8326         that requires specifying the added suffix.
8327         Do this by constructing a function named "prog" that invokes
8328         "prog.exe" for each .exe file in selected directories.
8329         * tests/init.sh (find_exe_basenames_): New function.
8330         (create_exe_shim_functions_): New function.
8331         (path_prepend_): Use it.
8332
8333         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8334         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8335         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8336
8337 2010-02-14  Jim Meyering  <meyering@redhat.com>
8338
8339         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8340         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8341         (sc_prohibit_hash_pjw_without_use): New rule.
8342
8343         maint.mk: allow the default upload destination dir to be overridden
8344         * top/maint.mk (upload_dest_dir_): Define with a default that
8345         preserves the status quo.
8346         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8347         Reported by Peter Simons.
8348
8349         maint.mk: prohibit inclusion of "hash.h" without_use
8350         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8351
8352 2010-02-10  Jim Meyering  <meyering@redhat.com>
8353
8354         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8355         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8356
8357 2010-02-09  Eric Blake  <ebb9@byu.net>
8358         and Bruno Haible  <bruno@clisp.org>
8359
8360         obstack-printf-posix: ensure declaration
8361         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8362         extracted from gl_FUNC_OBSTACK_PRINTF.
8363         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8364         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8365         Likewise.
8366         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8367         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8368         0.
8369
8370 2010-02-08  Bruno Haible  <bruno@clisp.org>
8371
8372         gnulib-tool: Fix typo in 2010-02-07 commit.
8373         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8374         Reported by Eric Blake.
8375
8376 2010-02-07  Bruno Haible  <bruno@clisp.org>
8377
8378         gnulib-tool: Fix up caching patches.
8379         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8380         option --no-cache. Use associative arrays when supported by the shell.
8381         (sed_comments): New variable.
8382         (modcache): Renamed from do_cache.
8383         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8384         abbreviate unnecessarily.
8385         (have_associative): New variable.
8386         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8387         way also for ksh and zsh.
8388         (func_init_sed_convert_to_cache_statements): New function, extracted
8389         from func_cache_lookup_module. Add support for associative arrays.
8390         Don't set the c_MODULE_cached variable here. Ignore all lines before
8391         the first field header. Remove only the final newline, not all trailing
8392         newlines. Support empty fields correctly. Limit the use of 'eval' to
8393         assignments.
8394         (func_get_description, func_get_status, func_get_notice,
8395         func_get_applicability, func_get_filelist, func_get_dependencies,
8396         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
8397         func_get_automake_snippet, func_get_include_directive,
8398         func_get_link_directive, func_get_license, func_get_maintainer):
8399         Update documentation. List the unoptimized code first. Add support for
8400         associative arrays. Limit the use of 'eval' to assignments.
8401         (func_get_applicability): Undo stylistic pessimisations.
8402         (func_get_automake_snippet, func_get_include_directive): Reduce code
8403         duplication.
8404         (func_modules_transitive_closure, func_modules_add_dummy,
8405         func_modules_notice, func_modules_to_filelist, func_add_file,
8406         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
8407         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
8408         func_create_testdir, func_create_megatestdir): Update documentation.
8409
8410 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8411
8412         * gnulib-tool (func_cache_lookup_module): Store the module name
8413         belonging to the cache variable; error out if two different
8414         module names map to the same cache variable name.
8415
8416 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8417
8418         gnulib-tool: Make caching optional.
8419         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
8420         Update matching short versions of --no-changelog.
8421         (func_usage): Update.
8422         (sed_extract_cache_prog): Renamed from ...
8423         (sed_extract_prog): ... this; revert to old extraction script.
8424         (func_get_description, func_get_status)
8425         (func_get_notice, func_get_applicability, func_get_filelist)
8426         (func_get_dependencies, func_get_autoconf_early_snippet)
8427         (func_get_autoconf_snippet, func_get_automake_snippet)
8428         (func_get_include_directive, func_get_link_directive)
8429         (func_get_license, func_get_maintainer): If $do_cache is false,
8430         use old, non-caching extraction scripts.
8431         Suggestion by Bruno Haible.
8432
8433 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8434
8435         gnulib-tool: cache module metainformation.
8436         * gnulib-tool (sed_extract_prog): Match newline before each
8437         header, and rewrite header to a shell variable suffix.
8438         (func_cache_var, func_cache_lookup_module): New functions,
8439         to turn a module name into a cache variable prefix, and to
8440         look up and cache module metainformation.
8441         (func_get_description, func_get_status)
8442         (func_get_notice, func_get_applicability, func_get_filelist)
8443         (func_get_dependencies, func_get_autoconf_early_snippet)
8444         (func_get_autoconf_snippet, func_get_automake_snippet)
8445         (func_get_include_directive, func_get_link_directive)
8446         (func_get_license, func_get_maintainer): Use
8447         func_cache_lookup_module.
8448
8449 2010-02-07  Bruno Haible  <bruno@clisp.org>
8450
8451         fnctl: Fix missing dependency.
8452         * modules/fcntl (Depends-on): Add getdtablesize.
8453         Reported by John W. Eaton <jwe@gnu.org>.
8454
8455 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8456
8457         Argp: fix recognition of short alias options.
8458
8459         * lib/argp-parse.c (convert_options): Fix improper use of
8460         `|' between character values.
8461         * tests/test-argp.c (group1_option): New alias option
8462         --read (-r).
8463         (group1_parser): Special handling for 'r'.
8464         (test15): New test case.
8465         (test_fun): Add test15.
8466         * tests/test-argp-2.sh: Update expected --help and --usage
8467         outputs.
8468
8469 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8470
8471         * tests/test-argp.c: Fix indentation.
8472
8473 2010-02-04  Eric Blake  <ebb9@byu.net>
8474
8475         gettimeofday: expose type of second argument
8476         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
8477         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
8478         * tests/test-gettimeofday.c: Use it to silence warning.
8479         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
8480         the issue.
8481
8482 2010-02-03  Jim Meyering  <meyering@redhat.com>
8483
8484         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
8485         * lib/regcomp.c (TYPE_SIGNED): Define.
8486         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
8487
8488         regcomp.c: avoid a new -Wshadow warning
8489         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
8490
8491 2010-02-01  Jim Meyering  <meyering@redhat.com>
8492
8493         removing useless parentheses in cpp #define directives
8494         For motivation, see commit c0221df4, "define STREQ(a,b)
8495         consistently, removing useless parentheses"
8496         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
8497         * lib/mountlist.c (MNT_IGNORE): Likewise.
8498         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
8499
8500 2010-02-01  Eric Blake  <ebb9@byu.net>
8501
8502         sys_time: use link-warning
8503         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
8504         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
8505         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
8506         * modules/sys_time (Depends-on): Add warn-on-use.
8507         (Makefile.am): Always build replacement.
8508         (configure.ac): Update substitutions.
8509         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
8510         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
8511         bother with SYS_TIME_H.
8512         * modules/gettimeofday (configure.ac): Declare indicator.
8513         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
8514         in use.
8515
8516         closein-tests: silence compiler warning
8517         * tests/test-closein.c (main): Ignore fread result.
8518         * modules/closein-tests (Depends-on): Add ignore-value.
8519
8520         tests: silence warning about system return
8521         * tests/test-areadlink-with-size.c (main): Ignore system result.
8522         * tests/test-areadlink.c (main): Likewise.
8523         * tests/test-areadlinkat-with-size.c (main): Likewise.
8524         * tests/test-areadlinkat.c (main): Likewise.
8525         * tests/test-canonicalize-lgpl.c (main): Likewise.
8526         * tests/test-canonicalize.c (main): Likewise.
8527         * tests/test-chown.c (main): Likewise.
8528         * tests/test-fchownat.c (main): Likewise.
8529         * tests/test-fdutimensat.c (main): Likewise.
8530         * tests/test-fstatat.c (main): Likewise.
8531         * tests/test-futimens.c (main): Likewise.
8532         * tests/test-lchown.c (main): Likewise.
8533         * tests/test-link.c (main): Likewise.
8534         * tests/test-linkat.c (main): Likewise.
8535         * tests/test-lstat.c (main): Likewise.
8536         * tests/test-mkdir.c (main): Likewise.
8537         * tests/test-mkdirat.c (main): Likewise.
8538         * tests/test-mkfifo.c (main): Likewise.
8539         * tests/test-mkfifoat.c (main): Likewise.
8540         * tests/test-mknod.c (main): Likewise.
8541         * tests/test-readlink.c (main): Likewise.
8542         * tests/test-remove.c (main): Likewise.
8543         * tests/test-rename.c (main): Likewise.
8544         * tests/test-renameat.c (main): Likewise.
8545         * tests/test-rmdir.c (main): Likewise.
8546         * tests/test-symlink.c (main): Likewise.
8547         * tests/test-symlinkat.c (main): Likewise.
8548         * tests/test-unlink.c (main): Likewise.
8549         * tests/test-unlinkat.c (main): Likewise.
8550         * tests/test-utimens.c (main): Likewise.
8551         * tests/test-utimensat.c (main): Likewise.
8552         * modules/areadlink-tests (Depends-on): Add ignore-value.
8553         * modules/areadlink-with-size-tests (Depends-on): Likewise.
8554         * modules/areadlinkat-tests (Depends-on): Likewise.
8555         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
8556         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8557         * modules/canonicalize-tests (Depends-on): Likewise.
8558         * modules/chown-tests (Depends-on): Likewise.
8559         * modules/fdutimensat-tests (Depends-on): Likewise.
8560         * modules/futimens-tests (Depends-on): Likewise.
8561         * modules/lchown-tests (Depends-on): Likewise.
8562         * modules/link-tests (Depends-on): Likewise.
8563         * modules/linkat-tests (Depends-on): Likewise.
8564         * modules/lstat-tests (Depends-on): Likewise.
8565         * modules/mkdir-tests (Depends-on): Likewise.
8566         * modules/mkfifo-tests (Depends-on): Likewise.
8567         * modules/mkfifoat-tests (Depends-on): Likewise.
8568         * modules/mknod-tests (Depends-on): Likewise.
8569         * modules/openat-tests (Depends-on): Likewise.
8570         * modules/readlink-tests (Depends-on): Likewise.
8571         * modules/remove-tests (Depends-on): Likewise.
8572         * modules/rename-tests (Depends-on): Likewise.
8573         * modules/renameat-tests (Depends-on): Likewise.
8574         * modules/rmdir-tests (Depends-on): Likewise.
8575         * modules/symlink-tests (Depends-on): Likewise.
8576         * modules/symlinkat-tests (Depends-on): Likewise.
8577         * modules/unlink-tests (Depends-on): Likewise.
8578         * modules/utimens-tests (Depends-on): Likewise.
8579         * modules/utimensat-tests (Depends-on): Likewise.
8580
8581 2010-01-31  Bruno Haible  <bruno@clisp.org>
8582
8583         Perform the same test for many <math.h> functions.
8584         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
8585         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
8586         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
8587         of gl_MATHFUNC.
8588         * modules/acos (configure.ac): Likewise.
8589         * modules/asin (configure.ac): Likewise.
8590         * modules/atan (configure.ac): Likewise.
8591         * modules/atan2 (configure.ac): Likewise.
8592         * modules/cbrt (configure.ac): Likewise.
8593         * modules/copysign (configure.ac): Likewise.
8594         * modules/cos (configure.ac): Likewise.
8595         * modules/cosh (configure.ac): Likewise.
8596         * modules/erf (configure.ac): Likewise.
8597         * modules/erfc (configure.ac): Likewise.
8598         * modules/exp (configure.ac): Likewise.
8599         * modules/fmod (configure.ac): Likewise.
8600         * modules/hypot (configure.ac): Likewise.
8601         * modules/j0 (configure.ac): Likewise.
8602         * modules/j1 (configure.ac): Likewise.
8603         * modules/jn (configure.ac): Likewise.
8604         * modules/lgamma (configure.ac): Likewise.
8605         * modules/log (configure.ac): Likewise.
8606         * modules/log10 (configure.ac): Likewise.
8607         * modules/log1p (configure.ac): Likewise.
8608         * modules/pow (configure.ac): Likewise.
8609         * modules/remainder (configure.ac): Likewise.
8610         * modules/sin (configure.ac): Likewise.
8611         * modules/sinh (configure.ac): Likewise.
8612         * modules/tan (configure.ac): Likewise.
8613         * modules/tanh (configure.ac): Likewise.
8614         * modules/y0 (configure.ac): Likewise.
8615         * modules/y1 (configure.ac): Likewise.
8616         * modules/yn (configure.ac): Likewise.
8617         Suggested by Paolo Bonzini.
8618
8619 2010-01-31  Bruno Haible  <bruno@clisp.org>
8620
8621         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
8622
8623 2010-01-31  Bruno Haible  <bruno@clisp.org>
8624
8625         Work around getdelim() bug on FreeBSD 8.0.
8626         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
8627         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
8628         not work.
8629         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
8630         is 1.
8631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
8632         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
8633         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
8634         a non-zero size.
8635         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
8636
8637 2010-01-31  Bruno Haible  <bruno@clisp.org>
8638
8639         Work around getline() bug on FreeBSD 8.0.
8640         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
8641         and a non-zero size.
8642         * tests/test-getline.c (main): Likewise.
8643         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
8644         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
8645
8646 2010-01-28  Eric Blake  <ebb9@byu.net>
8647
8648         regex: fix build failure
8649         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
8650         platforms.
8651
8652 2010-01-28  Jim Meyering  <meyering@redhat.com>
8653
8654         regex: do not ignore memory allocation failure
8655         * lib/regex_internal.c (create_cd_newstate): Detect
8656         re_node_set_init_copy failure.   Extracted from glibc commit
8657         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8658
8659         regex: sync more white-space changes from libc
8660         * lib/regex_internal.c: White-space only changes.
8661         * lib/regexec.c: Likewise.
8662
8663         regex: add many uses of __attribute_warn_unused_result__
8664         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
8665         * lib/regexec.c: Likewise.
8666         Extracted from a messy glibc commit.
8667
8668         regcomp.c: spelling and merge-artifact from glibc
8669         * lib/regcomp.c: Merge remainder of glibc's
8670         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8671
8672         regcomp.c: sync white-space changes from glibc
8673         * lib/regcomp.c: Merge to accommodate white space
8674         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8675
8676         regcomp.c: do not ignore internal return values
8677         * lib/regcomp.c: Do not ignore internal return values.
8678         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
8679         but without its white-space changes and spelling fixes.
8680
8681         regex_internal.h: define __attribute_warn_unused_result__
8682         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
8683
8684         maint: add a syntax-check rule to check for vulnerable Makefile.in
8685         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
8686
8687 2010-01-27  Jim Meyering  <meyering@redhat.com>
8688
8689         ncftpput-ftp: clean up spaces
8690         * build-aux/ncftpput-ftp: Make Copyright line consistent.
8691         Remove trailing blanks.
8692
8693 2010-01-27  Simon Josefsson  <simon@josefsson.org>
8694
8695         * build-aux/git-version-gen: Fix copyright statement.
8696         * build-aux/gnupload: Likewise.
8697         * tests/test-arcfour.c: Likewise.
8698         * tests/test-arctwo.c: Likewise.
8699         * tests/test-count-one-bits.c: Likewise.
8700         * tests/test-crc.c: Likewise.
8701         * tests/test-des.c: Likewise.
8702         * tests/test-gc-arcfour.c: Likewise.
8703         * tests/test-gc-arctwo.c: Likewise.
8704         * tests/test-gc-des.c: Likewise.
8705         * tests/test-gc-hmac-md5.c: Likewise.
8706         * tests/test-gc-hmac-sha1.c: Likewise.
8707         * tests/test-gc-md2.c: Likewise.
8708         * tests/test-gc-md4.c: Likewise.
8709         * tests/test-gc-md5.c: Likewise.
8710         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8711         * tests/test-gc-rijndael.c: Likewise.
8712         * tests/test-gc-sha1.c: Likewise.
8713         * tests/test-gc.c: Likewise.
8714         * tests/test-gethostname.c: Likewise.
8715         * tests/test-gettimeofday.c: Likewise.
8716         * tests/test-hash.c: Likewise.
8717         * tests/test-hmac-md5.c: Likewise.
8718         * tests/test-hmac-sha1.c: Likewise.
8719         * tests/test-md2.c: Likewise.
8720         * tests/test-md4.c: Likewise.
8721         * tests/test-md5.c: Likewise.
8722         * tests/test-memchr.c: Likewise.
8723         * tests/test-memchr2.c: Likewise.
8724         * tests/test-memcmp.c: Likewise.
8725         * tests/test-memmem.c: Likewise.
8726         * tests/test-memrchr.c: Likewise.
8727         * tests/test-rawmemchr.c: Likewise.
8728         * tests/test-read-file.c: Likewise.
8729         * tests/test-rijndael.c: Likewise.
8730         * tests/test-sockets.c: Likewise.
8731         * tests/test-strchrnul.c: Likewise.
8732         * tests/test-strstr.c: Likewise.
8733         * tests/test-strtod.c: Likewise.
8734         * build-aux/ncftpput-ftp: Likewise.
8735
8736 2010-01-26  Eric Blake  <ebb9@byu.net>
8737
8738         ignore-value: update recommended header name
8739         * modules/ignore-value (Include): Only use <> for headers that
8740         exist in glibc.
8741
8742 2010-01-26  Jim Meyering  <meyering@redhat.com>
8743
8744         test-userspec.c: avoid compiler warnings
8745         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
8746         and "initialization discards qualifiers..." warnings.
8747         Put the first "uid" in its own scope, and make char* members "const".
8748
8749 2010-01-25  Bruno Haible  <bruno@clisp.org>
8750
8751         gnulib-tool: Make warning diagnostics consistent.
8752         * gnulib-tool (func_warning): New function.
8753         Use it everywhere where gnulib-tool produces output to stderr and it is
8754         not a fatal error.
8755
8756 2010-01-25  Bruno Haible  <bruno@clisp.org>
8757
8758         Fix test dependencies.
8759         * modules/xstrtol-tests (Depends-on): Add inttypes.
8760         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
8761
8762 2010-01-25 Pádraig Brady <P@draigBrady.com>
8763
8764         syntax-check: detect incorrect boolean macro values in config.h
8765         * modules/maintainer-makefile (configure.ac): Parameterize the location
8766         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
8767         The logic is from Eric Blake and the location indicated by Jim Meyering.
8768         Note the more natural CONFIG_HEADER name is prohibited by automake
8769         for backwards compatibility reasons.
8770         * top/maint.mk (sc_Wundef_boolean): New rule.
8771
8772 2010-01-25  Jim Meyering  <meyering@redhat.com>
8773
8774         bootstrap: detect MacOS 10.6's shasum, too
8775         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
8776         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
8777
8778 2010-01-23  Jim Meyering  <meyering@redhat.com>
8779
8780         xstrtoll: new module
8781         * modules/xstrtoll: New file.
8782         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
8783         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
8784         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
8785         ./configure fails if you use this module and lack "long long".
8786         * modules/xstrtoll-tests: New module.
8787         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
8788         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
8789         new init.sh-based test framework.
8790
8791 2010-01-24  Bruno Haible  <bruno@clisp.org>
8792
8793         Tests for module 'yn'.
8794         * modules/yn-tests: New file.
8795         * tests/test-yn.c: New file.
8796
8797         Tests for module 'y1'.
8798         * modules/y1-tests: New file.
8799         * tests/test-y1.c: New file.
8800
8801         Tests for module 'y0'.
8802         * modules/y0-tests: New file.
8803         * tests/test-y0.c: New file.
8804
8805         Tests for module 'tanh'.
8806         * modules/tanh-tests: New file.
8807         * tests/test-tanh.c: New file.
8808
8809         Tests for module 'tan'.
8810         * modules/tan-tests: New file.
8811         * tests/test-tan.c: New file.
8812
8813         Tests for module 'sqrt'.
8814         * modules/sqrt-tests: New file.
8815         * tests/test-sqrt.c: New file.
8816
8817         Tests for module 'sinh'.
8818         * modules/sinh-tests: New file.
8819         * tests/test-sinh.c: New file.
8820
8821         Tests for module 'sin'.
8822         * modules/sin-tests: New file.
8823         * tests/test-sin.c: New file.
8824
8825         Tests for module 'rint'.
8826         * modules/rint-tests: New file.
8827         * tests/test-rint.c: New file.
8828
8829         Tests for module 'remainder'.
8830         * modules/remainder-tests: New file.
8831         * tests/test-remainder.c: New file.
8832
8833         Tests for module 'pow'.
8834         * modules/pow-tests: New file.
8835         * tests/test-pow.c: New file.
8836
8837         Tests for module 'nextafter'.
8838         * modules/nextafter-tests: New file.
8839         * tests/test-nextafter.c: New file.
8840
8841         Tests for module 'modf'.
8842         * modules/modf-tests: New file.
8843         * tests/test-modf.c: New file.
8844
8845         Tests for module 'logb'.
8846         * modules/logb-tests: New file.
8847         * tests/test-logb.c: New file.
8848
8849         Tests for module 'log1p'.
8850         * modules/log1p-tests: New file.
8851         * tests/test-log1p.c: New file.
8852
8853         Tests for module 'log10'.
8854         * modules/log10-tests: New file.
8855         * tests/test-log10.c: New file.
8856
8857         Tests for module 'log'.
8858         * modules/log-tests: New file.
8859         * tests/test-log.c: New file.
8860
8861         Tests for module 'lgamma'.
8862         * modules/lgamma-tests: New file.
8863         * tests/test-lgamma.c: New file.
8864
8865         Tests for module 'ldexp'.
8866         * modules/ldexp-tests: New file.
8867         * tests/test-ldexp.c: New file.
8868
8869         Tests for module 'jn'.
8870         * modules/jn-tests: New file.
8871         * tests/test-jn.c: New file.
8872
8873         Tests for module 'j1'.
8874         * modules/j1-tests: New file.
8875         * tests/test-j1.c: New file.
8876
8877         Tests for module 'j0'.
8878         * modules/j0-tests: New file.
8879         * tests/test-j0.c: New file.
8880
8881         Tests for module 'hypot'.
8882         * modules/hypot-tests: New file.
8883         * tests/test-hypot.c: New file.
8884
8885         Tests for module 'fmod'.
8886         * modules/fmod-tests: New file.
8887         * tests/test-fmod.c: New file.
8888
8889         Tests for module 'fabs'.
8890         * modules/fabs-tests: New file.
8891         * tests/test-fabs.c: New file.
8892
8893         Tests for module 'exp'.
8894         * modules/exp-tests: New file.
8895         * tests/test-exp.c: New file.
8896
8897         Tests for module 'erfc'.
8898         * modules/erfc-tests: New file.
8899         * tests/test-erfc.c: New file.
8900
8901         Tests for module 'erf'.
8902         * modules/erf-tests: New file.
8903         * tests/test-erf.c: New file.
8904
8905         Tests for module 'cosh'.
8906         * modules/cosh-tests: New file.
8907         * tests/test-cosh.c: New file.
8908
8909         Tests for module 'cos'.
8910         * modules/cos-tests: New file.
8911         * tests/test-cos.c: New file.
8912
8913         Tests for module 'copysign'.
8914         * modules/copysign-tests: New file.
8915         * tests/test-copysign.c: New file.
8916
8917         Tests for module 'cbrt'.
8918         * modules/cbrt-tests: New file.
8919         * tests/test-cbrt.c: New file.
8920
8921         Tests for module 'atan2'.
8922         * modules/atan2-tests: New file.
8923         * tests/test-atan2.c: New file.
8924
8925         Tests for module 'atan'.
8926         * modules/atan-tests: New file.
8927         * tests/test-atan.c: New file.
8928
8929         Tests for module 'asin'.
8930         * modules/asin-tests: New file.
8931         * tests/test-asin.c: New file.
8932
8933         Tests for module 'acos'.
8934         * modules/acos-tests: New file.
8935         * tests/test-acos.c: New file.
8936
8937 2010-01-24  Bruno Haible  <bruno@clisp.org>
8938
8939         Fix tests for common <math.h> functions.
8940         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
8941         code snippet that references the function pointer, rather than merely
8942         calling the function. Substitute the FUNC_LIBM variable.
8943         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
8944         * modules/acos (configure.ac): Likewise.
8945         * modules/asin (configure.ac): Likewise.
8946         * modules/atan (configure.ac): Likewise.
8947         * modules/atan2 (configure.ac): Likewise.
8948         * modules/cbrt (configure.ac): Likewise.
8949         * modules/copysign (configure.ac): Likewise.
8950         * modules/cos (configure.ac): Likewise.
8951         * modules/cosh (configure.ac): Likewise.
8952         * modules/erf (configure.ac): Likewise.
8953         * modules/erfc (configure.ac): Likewise.
8954         * modules/exp (configure.ac): Likewise.
8955         * modules/fabs (configure.ac): Likewise.
8956         * modules/fmod (configure.ac): Likewise.
8957         * modules/hypot (configure.ac): Likewise.
8958         * modules/j0 (configure.ac): Likewise.
8959         * modules/j1 (configure.ac): Likewise.
8960         * modules/jn (configure.ac): Likewise.
8961         * modules/ldexp (configure.ac): Likewise.
8962         * modules/lgamma (configure.ac): Likewise.
8963         * modules/log (configure.ac): Likewise.
8964         * modules/log10 (configure.ac): Likewise.
8965         * modules/log1p (configure.ac): Likewise.
8966         * modules/logb (configure.ac): Likewise.
8967         * modules/modf (configure.ac): Likewise.
8968         * modules/nextafter (configure.ac): Likewise.
8969         * modules/pow (configure.ac): Likewise.
8970         * modules/remainder (configure.ac): Likewise.
8971         * modules/rint (configure.ac): Likewise.
8972         * modules/sin (configure.ac): Likewise.
8973         * modules/sinh (configure.ac): Likewise.
8974         * modules/tan (configure.ac): Likewise.
8975         * modules/tanh (configure.ac): Likewise.
8976         * modules/y0 (configure.ac): Likewise.
8977         * modules/y1 (configure.ac): Likewise.
8978         * modules/yn (configure.ac): Likewise.
8979
8980 2010-01-24  Bruno Haible  <bruno@clisp.org>
8981
8982         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
8983         * tests/test-acosl.c (x): New variable.
8984         (main): Store argument in x and fetch it from x.
8985         * tests/test-asinl.c (x): New variable.
8986         (main): Store argument in x and fetch it from x.
8987         * tests/test-atanl.c (x): New variable.
8988         (main): Store argument in x and fetch it from x.
8989         * tests/test-cosl.c (x): New variable.
8990         (main): Store argument in x and fetch it from x.
8991         * tests/test-expl.c (x): New variable.
8992         (main): Store argument in x and fetch it from x.
8993         * tests/test-logl.c (x): New variable.
8994         (main): Store argument in x and fetch it from x.
8995         * tests/test-sinl.c (x): New variable.
8996         (main): Store argument in x and fetch it from x.
8997         * tests/test-sqrtl.c (x): New variable.
8998         (main): Store argument in x and fetch it from x.
8999         * tests/test-tanl.c (x): New variable.
9000         (main): Store argument in x and fetch it from x.
9001
9002 2010-01-24  Bruno Haible  <bruno@clisp.org>
9003
9004         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9005         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9006         assignments to the initial TESTS_ENVIRONMENT.
9007         * doc/gnulib.texi (Unit test modules): Document it.
9008         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9009         TESTS_ENVIRONMENT.
9010         * modules/btowc-tests (Makefile.am): Likewise.
9011         * modules/c-stack-tests (Makefile.am): Likewise.
9012         * modules/c-strcase-tests (Makefile.am): Likewise.
9013         * modules/copy-file-tests (Makefile.am): Likewise.
9014         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9015         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9016         * modules/mbrtowc-tests (Makefile.am): Likewise.
9017         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9018         * modules/mbscasestr-tests (Makefile.am): Likewise.
9019         * modules/mbschr-tests (Makefile.am): Likewise.
9020         * modules/mbscspn-tests (Makefile.am): Likewise.
9021         * modules/mbsinit-tests (Makefile.am): Likewise.
9022         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9023         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9024         * modules/mbspbrk-tests (Makefile.am): Likewise.
9025         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9026         * modules/mbsrchr-tests (Makefile.am): Likewise.
9027         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9028         * modules/mbsspn-tests (Makefile.am): Likewise.
9029         * modules/mbsstr-tests (Makefile.am): Likewise.
9030         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9031         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9032         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9033         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9034         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9035         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9036         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9037         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9038         * modules/wcrtomb-tests (Makefile.am): Likewise.
9039         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9040         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9041         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9042         assignments from TESTS_ENVIRONMENT.
9043         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9044         augmentation.
9045         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9046         * modules/atexit-tests (Makefile.am): Likewise.
9047         * modules/binary-io-tests (Makefile.am): Likewise.
9048         * modules/closein-tests (Makefile.am): Likewise.
9049         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9050         * modules/exclude-tests (Makefile.am): Likewise.
9051         * modules/fflush-tests (Makefile.am): Likewise.
9052         * modules/fpending-tests (Makefile.am): Likewise.
9053         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9054         * modules/freadahead-tests (Makefile.am): Likewise.
9055         * modules/freadptr-tests (Makefile.am): Likewise.
9056         * modules/freadseek-tests (Makefile.am): Likewise.
9057         * modules/fseek-tests (Makefile.am): Likewise.
9058         * modules/fseeko-tests (Makefile.am): Likewise.
9059         * modules/ftell-tests (Makefile.am): Likewise.
9060         * modules/ftello-tests (Makefile.am): Likewise.
9061         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9062         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9063         * modules/lseek-tests (Makefile.am): Likewise.
9064         * modules/parse-duration-tests (Makefile.am): Likewise.
9065         * modules/perror-tests (Makefile.am): Likewise.
9066         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9067         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9068         * modules/pipe-tests (Makefile.am): Likewise.
9069         * modules/pread-tests (Makefile.am): Likewise.
9070         * modules/printf-posix-tests (Makefile.am): Likewise.
9071         * modules/select-tests (Makefile.am): Likewise.
9072         * modules/sigpipe-tests (Makefile.am): Likewise.
9073         * modules/tsearch-tests (Makefile.am): Likewise.
9074         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9075         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9076         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9077         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9078         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9079         * modules/version-etc-tests (Makefile.am): Likewise.
9080         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9081         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9082         * modules/xalloc-die-tests (Makefile.am): Likewise.
9083         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9084         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9085         * modules/xstrtol-tests (Makefile.am): Likewise.
9086         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9087         * modules/yesno-tests (Makefile.am): Likewise.
9088         Suggested by Jim Meyering.
9089
9090 2010-01-24  Bruno Haible  <bruno@clisp.org>
9091
9092         More documentation.
9093         * doc/gnulib.texi (Writing modules): New chapter.
9094         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9095         the new chapter.
9096
9097 2010-01-24  Jim Meyering  <meyering@redhat.com>
9098
9099         maint.mk: do not prepend "./" after filtering
9100         * top/maint.mk (_prepend_srcdir_prefix): New variable
9101         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9102         "./" when $(srcdir) is ".".
9103
9104         define STREQ(a,b) consistently, removing useless parentheses
9105         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9106         since the only risk is that "a" or "b" contains an unparenthesized
9107         comma, but if either did that, STREQ would have 3 or more arguments.
9108         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9109         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9110         * lib/hash-triple.c (STREQ): Likewise.
9111         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9112         * lib/getugroups.c (STREQ): Likewise.
9113
9114 2010-01-23  Jim Meyering  <meyering@redhat.com>
9115
9116         maint.mk: fix syntax-check in a non-srcdir build directory
9117         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9118         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9119
9120 2010-01-22  Jim Meyering  <meyering@redhat.com>
9121
9122         userspec: add unit tests
9123         * tests/test-userspec.c: New file.
9124         * modules/userspec-tests: Likewise.
9125
9126 2010-01-21  Jim Meyering  <meyering@redhat.com>
9127
9128         maint.mk: handle source file names containing "." robustly
9129         * top/maint.mk (_dot_escaped_srcdir): Define.
9130         (VC_LIST): Use it in LHS of sed substitution.
9131
9132 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9133
9134         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9135         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9136         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9137         from a non-srcdir build.
9138
9139 2010-01-20  Eric Blake  <ebb9@byu.net>
9140
9141         warn-on-use: use instead of link-warning
9142         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9143         * modules/unistd (Depends-on, Makefile.am): Likewise.
9144         * modules/arpa_inet (Depends-on): Replace link-warning with
9145         warn-on-use.
9146         (Makefile.am): Update rules accordingly.
9147         * modules/ctype (Depends-on, Makefile.am): Likewise.
9148         * modules/dirent (Depends-on, Makefile.am): Likewise.
9149         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9150         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9151         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9152         * modules/locale (Depends-on, Makefile.am): Likewise.
9153         * modules/math (Depends-on, Makefile.am): Likewise.
9154         * modules/search (Depends-on, Makefile.am): Likewise.
9155         * modules/signal (Depends-on, Makefile.am): Likewise.
9156         * modules/spawn (Depends-on, Makefile.am): Likewise.
9157         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9158         * modules/string (Depends-on, Makefile.am): Likewise.
9159         * modules/strings (Depends-on, Makefile.am): Likewise.
9160         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9161         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9162         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9163         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9164         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9165         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9166         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9167         * modules/wchar (Depends-on, Makefile.am): Likewise.
9168         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9169         should be poisoned.
9170         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9171         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9172         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9173         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9174         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9175         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9176         * m4/math_h.m4 (gl_MATH_H): Likewise.
9177         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9178         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9179         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9180         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9181         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9182         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9183         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9184         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9185         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9187         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9189         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9190         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9191         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9192         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9193         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9194         GL_LINK_WARNING.
9195         * lib/ctype.in.h: Likewise.
9196         * lib/dirent.in.h: Likewise.
9197         * lib/fcntl.in.h: Likewise.
9198         * lib/inttypes.in.h: Likewise.
9199         * lib/langinfo.in.h: Likewise.
9200         * lib/locale.in.h: Likewise.
9201         * lib/math.in.h: Likewise.
9202         * lib/search.in.h: Likewise.
9203         * lib/signal.in.h: Likewise.
9204         * lib/spawn.in.h: Likewise.
9205         * lib/stdio.in.h: Likewise.
9206         * lib/stdlib.in.h: Likewise.
9207         * lib/string.in.h: Likewise.
9208         * lib/strings.in.h: Likewise.
9209         * lib/sys_file.in.h: Likewise.
9210         * lib/sys_ioctl.in.h: Likewise.
9211         * lib/sys_select.in.h: Likewise.
9212         * lib/sys_socket.in.h: Likewise.
9213         * lib/sys_stat.in.h: Likewise.
9214         * lib/sys_times.in.h: Likewise.
9215         * lib/sys_utsname.in.h: Likewise.
9216         * lib/unistd.in.h: Likewise.
9217         * lib/wchar.in.h: Likewise.
9218
9219 2010-01-20  Bruno Haible  <bruno@clisp.org>
9220
9221         Avoid duplicate -lm.
9222         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
9223         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
9224         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
9225         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
9226         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
9227         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
9228         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
9229         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
9230         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
9231         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
9232         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
9233         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9234         Reported by Paolo Bonzini.
9235
9236 2010-01-19  Bruno Haible  <bruno@clisp.org>
9237
9238         langinfo, nl_langinfo: Relicense under LGPLv2+.
9239         * modules/langinfo (License): Change to LGPLv2+.
9240         * modules/nl_langinfo (License): Likewise.
9241         Patch by David Lutterkort <lutter@redhat.com>.
9242
9243 2010-01-19  Bruno Haible  <bruno@clisp.org>
9244
9245         Avoid compilation error with cc on OSF/1 5.1.
9246         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
9247         statement, not before.
9248         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9249
9250 2010-01-18  Bruno Haible  <bruno@clisp.org>
9251
9252         Avoid a link error due to the __printf__ symbol.
9253         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
9254         and 2.6.x.
9255         (__format__, __printf__): Remove definitions.
9256         * lib/argp-fmtstream.h: Likewise.
9257         * lib/argp.h: Likewise.
9258         * lib/error.h: Likewise.
9259         * lib/vasnprintf.h: Likewise.
9260         * lib/xprintf.h: Likewise.
9261         * lib/xvasprintf.h: Likewise.
9262         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9263
9264 2010-01-18  Bruno Haible  <bruno@clisp.org>
9265
9266         Tests for module 'tanl'.
9267         * modules/tanl-tests: New file.
9268         * tests/test-tanl.c: New file.
9269
9270         Tests for module 'sqrtl'.
9271         * modules/sqrtl-tests: New file.
9272         * tests/test-sqrtl.c: New file.
9273
9274         Tests for module 'sinl'.
9275         * modules/sinl-tests: New file.
9276         * tests/test-sinl.c: New file.
9277
9278         Tests for module 'logl'.
9279         * modules/logl-tests: New file.
9280         * tests/test-logl.c: New file.
9281
9282         Tests for module 'expl'.
9283         * modules/expl-tests: New file.
9284         * tests/test-expl.c: New file.
9285
9286         Tests for module 'cosl'.
9287         * modules/cosl-tests: New file.
9288         * tests/test-cosl.c: New file.
9289
9290         Tests for module 'atanl'.
9291         * modules/atanl-tests: New file.
9292         * tests/test-atanl.c: New file.
9293
9294         Tests for module 'asinl'.
9295         * modules/asinl-tests: New file.
9296         * tests/test-asinl.c: New file.
9297
9298         Tests for module 'acosl'.
9299         * modules/acosl-tests: New file.
9300         * tests/test-acosl.c: New file.
9301
9302         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9303         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9304         tanl): Use the standard gnulib idiom.
9305         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9306         * lib/sinl.c: Likewise.
9307         * lib/tanl.c: Don't include trigl.c.
9308         (kernel_tanl): Make static.
9309         * lib/sincosl.c: Include trigl.h first.
9310         * lib/trigl.c: Likewise.
9311         * m4/acosl.m4: New file.
9312         * m4/asinl.m4: New file.
9313         * m4/atanl.m4: New file.
9314         * m4/cosl.m4: New file.
9315         * m4/expl.m4: New file.
9316         * m4/logl.m4: New file.
9317         * m4/sinl.m4: New file.
9318         * m4/sqrtl.m4: New file.
9319         * m4/tanl.m4: New file.
9320         * m4/mathl.m4: Remove file.
9321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9322         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9323         Don't initialize GNULIB_MATHL.
9324         * modules/acosl: New file.
9325         * modules/asinl: New file.
9326         * modules/atanl: New file.
9327         * modules/cosl: New file.
9328         * modules/expl: New file.
9329         * modules/logl: New file.
9330         * modules/sinl: New file.
9331         * modules/sqrtl: New file.
9332         * modules/tanl: New file.
9333         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9334         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9335         substitute GNULIB_MATHL.
9336         * modules/mathl: Rewritten.
9337         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9338         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9339         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9340         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9341         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9342         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9343         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9344         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9345         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9346
9347 2010-01-18  Bruno Haible  <bruno@clisp.org>
9348
9349         sqrt: Make gl_FUNC_SQRT requirable.
9350         * m4/sqrt.m4: New file.
9351         * modules/sqrt (Files): Add it.
9352         (configure.ac): Invoke gl_FUNC_SQRT.
9353
9354 2010-01-18  Bruno Haible  <bruno@clisp.org>
9355
9356         New modules for common <math.h> functions.
9357         * m4/mathfunc.m4: New file.
9358         * modules/acos: New file.
9359         * modules/asin: New file.
9360         * modules/atan: New file.
9361         * modules/atan2: New file.
9362         * modules/cbrt: New file.
9363         * modules/copysign: New file.
9364         * modules/cos: New file.
9365         * modules/cosh: New file.
9366         * modules/erf: New file.
9367         * modules/erfc: New file.
9368         * modules/exp: New file.
9369         * modules/fabs: New file.
9370         * modules/fmod: New file.
9371         * modules/hypot: New file.
9372         * modules/j0: New file.
9373         * modules/j1: New file.
9374         * modules/jn: New file.
9375         * modules/ldexp: New file.
9376         * modules/lgamma: New file.
9377         * modules/log: New file.
9378         * modules/log10: New file.
9379         * modules/log1p: New file.
9380         * modules/logb: New file.
9381         * modules/modf: New file.
9382         * modules/nextafter: New file.
9383         * modules/pow: New file.
9384         * modules/remainder: New file.
9385         * modules/rint: New file.
9386         * modules/sin: New file.
9387         * modules/sinh: New file.
9388         * modules/sqrt: New file.
9389         * modules/tan: New file.
9390         * modules/tanh: New file.
9391         * modules/y0: New file.
9392         * modules/y1: New file.
9393         * modules/yn: New file.
9394         * doc/posix-functions/acos.texi: Mention the 'acos' module.
9395         * doc/posix-functions/asin.texi: Mention the 'asin' module.
9396         * doc/posix-functions/atan.texi: Mention the 'atan' module.
9397         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
9398         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
9399         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
9400         * doc/posix-functions/cos.texi: Mention the 'cos' module.
9401         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
9402         * doc/posix-functions/erf.texi: Mention the 'erf' module.
9403         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
9404         * doc/posix-functions/exp.texi: Mention the 'exp' module.
9405         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
9406         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
9407         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
9408         * doc/posix-functions/j0.texi: Mention the 'j0' module.
9409         * doc/posix-functions/j1.texi: Mention the 'j1' module.
9410         * doc/posix-functions/jn.texi: Mention the 'jn' module.
9411         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
9412         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
9413         * doc/posix-functions/log.texi: Mention the 'log' module.
9414         * doc/posix-functions/log10.texi: Mention the 'log10' module.
9415         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
9416         * doc/posix-functions/logb.texi: Mention the 'logb' module.
9417         * doc/posix-functions/modf.texi: Mention the 'modf' module.
9418         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
9419         * doc/posix-functions/pow.texi: Mention the 'pow' module.
9420         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
9421         * doc/posix-functions/rint.texi: Mention the 'rint' module.
9422         * doc/posix-functions/sin.texi: Mention the 'sin' module.
9423         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
9424         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
9425         * doc/posix-functions/tan.texi: Mention the 'tan' module.
9426         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
9427         * doc/posix-functions/y0.texi: Mention the 'y0' module.
9428         * doc/posix-functions/y1.texi: Mention the 'y1' module.
9429         * doc/posix-functions/yn.texi: Mention the 'yn' module.
9430
9431 2010-01-18  Jim Meyering  <meyering@redhat.com>
9432
9433         ignore-value: relax license to LGPLv2+
9434         * modules/ignore-value (License): Relax to LGPLv2+.
9435
9436         getdate: don't leak when TZ contains two or more '"'s
9437         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
9438         double quote in TZ after the first one.
9439
9440         readtokens: do not leak internal token_lengths buffer
9441         * lib/readtokens.c (readtokens): Free the local, lengths,
9442         when the supplied "token_lengths" parameter is NULL.
9443
9444 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9445
9446         Fix a couple of missing LIBTHREAD link failures on AIX.
9447         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
9448         $(LIBTHREAD).
9449         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
9450
9451         Link test-poll against INET_PTON_LIB.
9452         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
9453         for inet_pton on Solaris 10.
9454
9455 2010-01-17  Bruno Haible  <bruno@clisp.org>
9456
9457         unistdio/*-sprintf: Fix typo in module description.
9458         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
9459         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
9460         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
9461         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
9462         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
9463         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
9464         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
9465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9466
9467 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9468
9469         gnulib-tool: fix filelist for AIX, HP-UX ksh.
9470         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
9471         variables in shell case patterns, for AIX and HP-UX ksh.
9472
9473         Split large sed scripts, for HP-UX sed.
9474         * modules/stdio: Split sed scripts around 50 sed commands,
9475         to avoid HP-UX limit of 99 commands, in the near future.
9476         * modules/string: Likewise.
9477         * modules/unistd: Likewise.
9478
9479         gnulib-tool: avoid writing in the current directory.
9480         * gnulib-tool (func_emit_lib_Makefile_am)
9481         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
9482         not in the current directory, so concurrent gnulib-tool
9483         instances do not interfere.
9484
9485 2010-01-16  Jim Meyering  <meyering@redhat.com>
9486
9487         doc: update users.txt
9488         * users.txt: Add grep.
9489         (diffutils, gzip): Update URLs.
9490
9491 2010-01-12  Bruno Haible  <bruno@clisp.org>
9492
9493         posix_spawn: Avoid test failure on Cygwin.
9494         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
9495         characters.
9496         Reported by Simon Josefsson.
9497
9498 2010-01-12  Bruno Haible  <bruno@clisp.org>
9499
9500         * tests/test-cond.c (main): When skipping the test, show the reason.
9501
9502 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9503
9504         * lib/striconv.c (str_cd_iconv): Avoid if before free.
9505
9506 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9507
9508         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
9509         VC_LIST_ALWAYS_EXCLUDE_REGEX.
9510
9511 2010-01-12  Eric Blake  <ebb9@byu.net>
9512
9513         build: guarantee AS_VAR_IF
9514         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
9515         (gl_AS_VAR_IF): Move...
9516         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
9517         Reported by Simon Josefsson.
9518
9519 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9520
9521         * lib/stdio.in.h: Fix typo.
9522
9523 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9524
9525         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
9526         libgpg-error.
9527
9528 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9529
9530         * tests/test-xalloc-die.sh: Use $EXEEXT.
9531
9532 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9533             Bruno Haible  <bruno@clisp.org>
9534
9535         getlogin, getlogin_r: Avoid test failure.
9536         * tests/test-getlogin.c: Include <stdio.h>.
9537         (main): Skip the test when the function fails because stdin is not a
9538         tty.
9539         * tests/test-getlogin_r.c: Include <stdio.h>.
9540         (main): Skip the test when the function fails because stdin is not a
9541         tty.
9542
9543 2010-01-11  Eric Blake  <ebb9@byu.net>
9544
9545         tests: avoid more large file warnings
9546         * tests/test-fflush.c: Avoid warning about ftell use.
9547         * tests/test-fseek.c: Avoid warning about fseek use.
9548
9549 2010-01-10  Bruno Haible  <bruno@clisp.org>
9550
9551         nproc: Work better on Linux when /proc and /sys are not mounted.
9552         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
9553         as lower bound when, on glibc/Linux systems,
9554         sysconf (_SC_NPROCESSORS_CONF) returns 1.
9555         Suggested by Pádraig Brady <P@draigbrady.com>.
9556         Reported by Dmitry V. Levin <ldv@altlinux.org>.
9557
9558         nproc: Refactor.
9559         * lib/nproc.c (num_processors_via_affinity_mask): New function,
9560         extracted from num_processors.
9561         (num_processors): Call it.
9562
9563 2010-01-11  Jim Meyering  <meyering@redhat.com>
9564
9565         utimecmp: avoid new warning from upcoming gcc-4.5.0
9566         * lib/utimecmp.c (BILLION): Define using #define rather than an
9567         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
9568
9569 2010-01-11  Eric Blake  <ebb9@byu.net>
9570
9571         math: add portability warnings for classification macros
9572         * modules/math (Depends-on): Add warn-on-use.
9573         (Makefile.am): Provide new substitutions.
9574         * m4/math_h.m4 (gl_MATH_H): Require inline.
9575         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
9576         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
9577         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
9578         implement warnings.
9579
9580         unistd: warn on use of environ without module
9581         * modules/unistd (Depends-on): Add warn-on-use.
9582         (Makefile.am): Provide new substitutions.
9583         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
9584         * lib/unistd.in.h (environ): Wrap with a warning helper function.
9585
9586         stdio: warn on suspicious uses
9587         * modules/stdio (Depends-on): Add warn-on-use.
9588         (Makefile.am): Provide new substitutions.
9589         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
9590         fseeko.
9591         * lib/stdio.in.h (gets): Always warn on use.
9592         (fseek, ftell): Adjust when warnings are issued, and honor
9593         _GL_NO_LARGE_FILES as a way to silence the warning.
9594         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
9595         any warning about large file offsets.
9596         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
9597         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
9598         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
9599         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
9600         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
9601         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
9602         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
9603         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
9604
9605         warn-on-use: new module
9606         * modules/warn-on-use: New file.
9607         * build-aux/warn-on-use.h: Likewise.
9608         * m4/warn-on-use.m4: Likewise.
9609         * MODULES.html.sh (Support for building): Mention it.
9610
9611 2010-01-10  Bruno Haible  <bruno@clisp.org>
9612
9613         Tests for module 'unistr/u32-strdup'.
9614         * modules/unistr/u32-strdup-tests: New file.
9615         * tests/unistr/test-u32-strdup.c: New file.
9616
9617         Tests for module 'unistr/u16-strdup'.
9618         * modules/unistr/u16-strdup-tests: New file.
9619         * tests/unistr/test-u16-strdup.c: New file.
9620
9621         Tests for module 'unistr/u8-strdup'.
9622         * modules/unistr/u8-strdup-tests: New file.
9623         * tests/unistr/test-u8-strdup.c: New file.
9624         * tests/unistr/test-strdup.h: New file.
9625
9626         Tests for module 'unistr/u32-strncmp'.
9627         * modules/unistr/u32-strncmp-tests: New file.
9628         * tests/unistr/test-u32-strncmp.c: New file.
9629
9630         Tests for module 'unistr/u16-strncmp'.
9631         * modules/unistr/u16-strncmp-tests: New file.
9632         * tests/unistr/test-u16-strncmp.c: New file.
9633
9634         Tests for module 'unistr/u8-strncmp'.
9635         * modules/unistr/u8-strncmp-tests: New file.
9636         * tests/unistr/test-u8-strncmp.c: New file.
9637         * tests/unistr/test-strncmp.h: New file.
9638
9639         Tests for module 'unistr/u32-strcoll'.
9640         * modules/unistr/u32-strcoll-tests: New file.
9641         * tests/unistr/test-u32-strcoll.c: New file.
9642
9643         Tests for module 'unistr/u16-strcoll'.
9644         * modules/unistr/u16-strcoll-tests: New file.
9645         * tests/unistr/test-u16-strcoll.c: New file.
9646
9647         Tests for module 'unistr/u8-strcoll'.
9648         * modules/unistr/u8-strcoll-tests: New file.
9649         * tests/unistr/test-u8-strcoll.c: New file.
9650
9651         Tests for module 'unistr/u32-strcmp'.
9652         * modules/unistr/u32-strcmp-tests: New file.
9653         * tests/unistr/test-u32-strcmp.c: New file.
9654         * tests/unistr/test-u32-strcmp.h: New file.
9655
9656         Tests for module 'unistr/u16-strcmp'.
9657         * modules/unistr/u16-strcmp-tests: New file.
9658         * tests/unistr/test-u16-strcmp.c: New file.
9659         * tests/unistr/test-u16-strcmp.h: New file.
9660
9661         Tests for module 'unistr/u8-strcmp'.
9662         * modules/unistr/u8-strcmp-tests: New file.
9663         * tests/unistr/test-u8-strcmp.c: New file.
9664         * tests/unistr/test-u8-strcmp.h: New file.
9665         * tests/unistr/test-strcmp.h: New file.
9666
9667         Tests for module 'unistr/u32-strncat'.
9668         * modules/unistr/u32-strncat-tests: New file.
9669         * tests/unistr/test-u32-strncat.c: New file.
9670
9671         Tests for module 'unistr/u16-strncat'.
9672         * modules/unistr/u16-strncat-tests: New file.
9673         * tests/unistr/test-u16-strncat.c: New file.
9674
9675         Tests for module 'unistr/u8-strncat'.
9676         * modules/unistr/u8-strncat-tests: New file.
9677         * tests/unistr/test-u8-strncat.c: New file.
9678         * tests/unistr/test-strncat.h: New file.
9679
9680         Tests for module 'unistr/u32-strcat'.
9681         * modules/unistr/u32-strcat-tests: New file.
9682         * tests/unistr/test-u32-strcat.c: New file.
9683
9684         Tests for module 'unistr/u16-strcat'.
9685         * modules/unistr/u16-strcat-tests: New file.
9686         * tests/unistr/test-u16-strcat.c: New file.
9687
9688         Tests for module 'unistr/u8-strcat'.
9689         * modules/unistr/u8-strcat-tests: New file.
9690         * tests/unistr/test-u8-strcat.c: New file.
9691         * tests/unistr/test-strcat.h: New file.
9692
9693         Tests for module 'unistr/u32-stpncpy'.
9694         * modules/unistr/u32-stpncpy-tests: New file.
9695         * tests/unistr/test-u32-stpncpy.c: New file.
9696
9697         Tests for module 'unistr/u16-stpncpy'.
9698         * modules/unistr/u16-stpncpy-tests: New file.
9699         * tests/unistr/test-u16-stpncpy.c: New file.
9700
9701         Tests for module 'unistr/u8-stpncpy'.
9702         * modules/unistr/u8-stpncpy-tests: New file.
9703         * tests/unistr/test-u8-stpncpy.c: New file.
9704         * tests/unistr/test-stpncpy.h: New file.
9705
9706         Tests for module 'unistr/u32-strncpy'.
9707         * modules/unistr/u32-strncpy-tests: New file.
9708         * tests/unistr/test-u32-strncpy.c: New file.
9709
9710         Tests for module 'unistr/u16-strncpy'.
9711         * modules/unistr/u16-strncpy-tests: New file.
9712         * tests/unistr/test-u16-strncpy.c: New file.
9713
9714         Tests for module 'unistr/u8-strncpy'.
9715         * modules/unistr/u8-strncpy-tests: New file.
9716         * tests/unistr/test-u8-strncpy.c: New file.
9717         * tests/unistr/test-strncpy.h: New file.
9718
9719         Tests for module 'unistr/u32-stpcpy'.
9720         * modules/unistr/u32-stpcpy-tests: New file.
9721         * tests/unistr/test-u32-stpcpy.c: New file.
9722
9723         Tests for module 'unistr/u16-stpcpy'.
9724         * modules/unistr/u16-stpcpy-tests: New file.
9725         * tests/unistr/test-u16-stpcpy.c: New file.
9726
9727         Tests for module 'unistr/u8-stpcpy'.
9728         * modules/unistr/u8-stpcpy-tests: New file.
9729         * tests/unistr/test-u8-stpcpy.c: New file.
9730         * tests/unistr/test-stpcpy.h: New file.
9731
9732         Tests for module 'unistr/u32-strcpy'.
9733         * modules/unistr/u32-strcpy-tests: New file.
9734         * tests/unistr/test-u32-strcpy.c: New file.
9735
9736         Tests for module 'unistr/u16-strcpy'.
9737         * modules/unistr/u16-strcpy-tests: New file.
9738         * tests/unistr/test-u16-strcpy.c: New file.
9739
9740         Tests for module 'unistr/u8-strcpy'.
9741         * modules/unistr/u8-strcpy-tests: New file.
9742         * tests/unistr/test-u8-strcpy.c: New file.
9743         * tests/unistr/test-strcpy.h: New file.
9744
9745         Tests for module 'unistr/u32-strnlen'.
9746         * modules/unistr/u32-strnlen-tests: New file.
9747         * tests/unistr/test-u32-strnlen.c: New file.
9748
9749         Tests for module 'unistr/u16-strnlen'.
9750         * modules/unistr/u16-strnlen-tests: New file.
9751         * tests/unistr/test-u16-strnlen.c: New file.
9752
9753         Tests for module 'unistr/u8-strnlen'.
9754         * modules/unistr/u8-strnlen-tests: New file.
9755         * tests/unistr/test-u8-strnlen.c: New file.
9756         * tests/unistr/test-strnlen.h: New file.
9757
9758         Tests for module 'unistr/u32-strlen'.
9759         * modules/unistr/u32-strlen-tests: New file.
9760         * tests/unistr/test-u32-strlen.c: New file.
9761
9762         Tests for module 'unistr/u16-strlen'.
9763         * modules/unistr/u16-strlen-tests: New file.
9764         * tests/unistr/test-u16-strlen.c: New file.
9765
9766         Tests for module 'unistr/u8-strlen'.
9767         * modules/unistr/u8-strlen-tests: New file.
9768         * tests/unistr/test-u8-strlen.c: New file.
9769
9770         Tests for module 'unistr/u32-prev'.
9771         * modules/unistr/u32-prev-tests: New file.
9772         * tests/unistr/test-u32-prev.c: New file.
9773
9774         Tests for module 'unistr/u16-prev'.
9775         * modules/unistr/u16-prev-tests: New file.
9776         * tests/unistr/test-u16-prev.c: New file.
9777
9778         Tests for module 'unistr/u8-prev'.
9779         * modules/unistr/u8-prev-tests: New file.
9780         * tests/unistr/test-u8-prev.c: New file.
9781
9782         Tests for module 'unistr/u32-next'.
9783         * modules/unistr/u32-next-tests: New file.
9784         * tests/unistr/test-u32-next.c: New file.
9785
9786         Tests for module 'unistr/u16-next'.
9787         * modules/unistr/u16-next-tests: New file.
9788         * tests/unistr/test-u16-next.c: New file.
9789
9790         Tests for module 'unistr/u8-next'.
9791         * modules/unistr/u8-next-tests: New file.
9792         * tests/unistr/test-u8-next.c: New file.
9793
9794         Tests for module 'unistr/u32-strmbtouc'.
9795         * modules/unistr/u32-strmbtouc-tests: New file.
9796         * tests/unistr/test-u32-strmbtouc.c: New file.
9797
9798         Tests for module 'unistr/u16-strmbtouc'.
9799         * modules/unistr/u16-strmbtouc-tests: New file.
9800         * tests/unistr/test-u16-strmbtouc.c: New file.
9801
9802         Tests for module 'unistr/u8-strmbtouc'.
9803         * modules/unistr/u8-strmbtouc-tests: New file.
9804         * tests/unistr/test-u8-strmbtouc.c: New file.
9805
9806         Tests for module 'unistr/u32-strmblen'.
9807         * modules/unistr/u32-strmblen-tests: New file.
9808         * tests/unistr/test-u32-strmblen.c: New file.
9809
9810         Tests for module 'unistr/u16-strmblen'.
9811         * modules/unistr/u16-strmblen-tests: New file.
9812         * tests/unistr/test-u16-strmblen.c: New file.
9813
9814         Tests for module 'unistr/u8-strmblen'.
9815         * modules/unistr/u8-strmblen-tests: New file.
9816         * tests/unistr/test-u8-strmblen.c: New file.
9817
9818         Tests for module 'unistr/u32-cpy-alloc'.
9819         * modules/unistr/u32-cpy-alloc-tests: New file.
9820         * tests/unistr/test-u32-cpy-alloc.c: New file.
9821
9822         Tests for module 'unistr/u16-cpy-alloc'.
9823         * modules/unistr/u16-cpy-alloc-tests: New file.
9824         * tests/unistr/test-u16-cpy-alloc.c: New file.
9825
9826         Tests for module 'unistr/u8-cpy-alloc'.
9827         * modules/unistr/u8-cpy-alloc-tests: New file.
9828         * tests/unistr/test-u8-cpy-alloc.c: New file.
9829         * tests/unistr/test-cpy-alloc.h: New file.
9830
9831         Tests for module 'unistr/u32-mbsnlen'.
9832         * modules/unistr/u32-mbsnlen-tests: New file.
9833         * tests/unistr/test-u32-mbsnlen.c: New file.
9834
9835         Tests for module 'unistr/u16-mbsnlen'.
9836         * modules/unistr/u16-mbsnlen-tests: New file.
9837         * tests/unistr/test-u16-mbsnlen.c: New file.
9838
9839         Tests for module 'unistr/u8-mbsnlen'.
9840         * modules/unistr/u8-mbsnlen-tests: New file.
9841         * tests/unistr/test-u8-mbsnlen.c: New file.
9842
9843         Tests for module 'unistr/u32-chr'.
9844         * modules/unistr/u32-chr-tests: New file.
9845         * tests/unistr/test-u32-chr.c: New file.
9846
9847         Tests for module 'unistr/u16-chr'.
9848         * modules/unistr/u16-chr-tests: New file.
9849         * tests/unistr/test-u16-chr.c: New file.
9850
9851         Tests for module 'unistr/u8-chr'.
9852         * modules/unistr/u8-chr-tests: New file.
9853         * tests/unistr/test-u8-chr.c: New file.
9854         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
9855
9856         Tests for module 'unistr/u32-cmp2'.
9857         * modules/unistr/u32-cmp2-tests: New file.
9858         * tests/unistr/test-u32-cmp2.c: New file.
9859
9860         Tests for module 'unistr/u16-cmp2'.
9861         * modules/unistr/u16-cmp2-tests: New file.
9862         * tests/unistr/test-u16-cmp2.c: New file.
9863
9864         Tests for module 'unistr/u8-cmp2'.
9865         * modules/unistr/u8-cmp2-tests: New file.
9866         * tests/unistr/test-u8-cmp2.c: New file.
9867         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
9868
9869         Tests for module 'unistr/u32-cmp'.
9870         * modules/unistr/u32-cmp-tests: New file.
9871         * tests/unistr/test-u32-cmp.c: New file.
9872
9873         Tests for module 'unistr/u16-cmp'.
9874         * modules/unistr/u16-cmp-tests: New file.
9875         * tests/unistr/test-u16-cmp.c: New file.
9876
9877         Tests for module 'unistr/u8-cmp'.
9878         * modules/unistr/u8-cmp-tests: New file.
9879         * tests/unistr/test-u8-cmp.c: New file.
9880         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
9881
9882         Tests for module 'unistr/u32-set'.
9883         * modules/unistr/u32-set-tests: New file.
9884         * tests/unistr/test-u32-set.c: New file.
9885
9886         Tests for module 'unistr/u16-set'.
9887         * modules/unistr/u16-set-tests: New file.
9888         * tests/unistr/test-u16-set.c: New file.
9889
9890         Tests for module 'unistr/u8-set'.
9891         * modules/unistr/u8-set-tests: New file.
9892         * tests/unistr/test-u8-set.c: New file.
9893         * tests/unistr/test-set.h: New file.
9894
9895         Tests for module 'unistr/u32-move'.
9896         * modules/unistr/u32-move-tests: New file.
9897         * tests/unistr/test-u32-move.c: New file.
9898
9899         Tests for module 'unistr/u16-move'.
9900         * modules/unistr/u16-move-tests: New file.
9901         * tests/unistr/test-u16-move.c: New file.
9902
9903         Tests for module 'unistr/u8-move'.
9904         * modules/unistr/u8-move-tests: New file.
9905         * tests/unistr/test-u8-move.c: New file.
9906         * tests/unistr/test-move.h: New file.
9907
9908         Tests for module 'unistr/u32-cpy'.
9909         * modules/unistr/u32-cpy-tests: New file.
9910         * tests/unistr/test-u32-cpy.c: New file.
9911
9912         Tests for module 'unistr/u16-cpy'.
9913         * modules/unistr/u16-cpy-tests: New file.
9914         * tests/unistr/test-u16-cpy.c: New file.
9915
9916         Tests for module 'unistr/u8-cpy'.
9917         * modules/unistr/u8-cpy-tests: New file.
9918         * tests/unistr/test-u8-cpy.c: New file.
9919         * tests/unistr/test-cpy.h: New file.
9920
9921 2010-01-09  Bruno Haible  <bruno@clisp.org>
9922
9923         Tests for module 'unistr/u32-uctomb'.
9924         * modules/unistr/u32-uctomb-tests: New file.
9925         * tests/unistr/test-u32-uctomb.c: New file.
9926
9927         Tests for module 'unistr/u16-uctomb'.
9928         * modules/unistr/u16-uctomb-tests: New file.
9929         * tests/unistr/test-u16-uctomb.c: New file.
9930
9931         Tests for module 'unistr/u8-uctomb'.
9932         * modules/unistr/u8-uctomb-tests: New file.
9933         * tests/unistr/test-u8-uctomb.c: New file.
9934
9935         Tests for module 'unistr/u32-mbtoucr'.
9936         * modules/unistr/u32-mbtoucr-tests: New file.
9937         * tests/unistr/test-u32-mbtoucr.c: New file.
9938
9939         Tests for module 'unistr/u16-mbtoucr'.
9940         * modules/unistr/u16-mbtoucr-tests: New file.
9941         * tests/unistr/test-u16-mbtoucr.c: New file.
9942
9943         Tests for module 'unistr/u8-mbtoucr'.
9944         * modules/unistr/u8-mbtoucr-tests: New file.
9945         * tests/unistr/test-u8-mbtoucr.c: New file.
9946
9947         Tests for module 'unistr/u32-mbtouc'.
9948         * modules/unistr/u32-mbtouc-tests: New file.
9949         * tests/unistr/test-u32-mbtouc.c: New file.
9950
9951         Tests for module 'unistr/u16-mbtouc'.
9952         * modules/unistr/u16-mbtouc-tests: New file.
9953         * tests/unistr/test-u16-mbtouc.c: New file.
9954
9955         Tests for module 'unistr/u8-mbtouc'.
9956         * modules/unistr/u8-mbtouc-tests: New file.
9957         * tests/unistr/test-u8-mbtouc.c: New file.
9958
9959         Tests for module 'unistr/u32-mbtouc-unsafe'.
9960         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
9961         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
9962         * tests/unistr/test-u32-mbtouc.h: New file.
9963
9964         Tests for module 'unistr/u16-mbtouc-unsafe'.
9965         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
9966         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
9967         * tests/unistr/test-u16-mbtouc.h: New file.
9968
9969         Tests for module 'unistr/u8-mbtouc-unsafe'.
9970         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
9971         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
9972         * tests/unistr/test-u8-mbtouc.h: New file.
9973
9974         Tests for module 'unistr/u32-mblen'.
9975         * modules/unistr/u32-mblen-tests: New file.
9976         * tests/unistr/test-u32-mblen.c: New file.
9977
9978         Tests for module 'unistr/u16-mblen'.
9979         * modules/unistr/u16-mblen-tests: New file.
9980         * tests/unistr/test-u16-mblen.c: New file.
9981
9982         Tests for module 'unistr/u8-mblen'.
9983         * modules/unistr/u8-mblen-tests: New file.
9984         * tests/unistr/test-u8-mblen.c: New file.
9985
9986         Tests for module 'unistr/u32-to-u16'.
9987         * modules/unistr/u32-to-u16-tests: New file.
9988         * tests/unistr/test-u32-to-u16.c: New file.
9989
9990         Tests for module 'unistr/u32-to-u8'.
9991         * modules/unistr/u32-to-u8-tests: New file.
9992         * tests/unistr/test-u32-to-u8.c: New file.
9993
9994         Tests for module 'unistr/u16-to-u32'.
9995         * modules/unistr/u16-to-u32-tests: New file.
9996         * tests/unistr/test-u16-to-u32.c: New file.
9997
9998         Tests for module 'unistr/u16-to-u8'.
9999         * modules/unistr/u16-to-u8-tests: New file.
10000         * tests/unistr/test-u16-to-u8.c: New file.
10001
10002         Tests for module 'unistr/u8-to-u32'.
10003         * modules/unistr/u8-to-u32-tests: New file.
10004         * tests/unistr/test-u8-to-u32.c: New file.
10005
10006         Tests for module 'unistr/u8-to-u16'.
10007         * modules/unistr/u8-to-u16-tests: New file.
10008         * tests/unistr/test-u8-to-u16.c: New file.
10009
10010         Tests for module 'unistr/u32-check'.
10011         * modules/unistr/u32-check-tests: New file.
10012         * tests/unistr/test-u32-check.c: New file.
10013
10014         Tests for module 'unistr/u16-check'.
10015         * modules/unistr/u16-check-tests: New file.
10016         * tests/unistr/test-u16-check.c: New file.
10017
10018         Tests for module 'unistr/u8-check'.
10019         * modules/unistr/u8-check-tests: New file.
10020         * tests/unistr/test-u8-check.c: New file.
10021
10022         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10023         (category_equals): New function.
10024         (main): Add more tests.
10025         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10026
10027         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10028
10029 2010-01-10  Bruno Haible  <bruno@clisp.org>
10030
10031         unistr/u*-strcoll: Try harder to distinguish different strings.
10032         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10033         compare s1 and s2 to see if they are different.
10034
10035 2010-01-10  Bruno Haible  <bruno@clisp.org>
10036
10037         unistr/u*-stpncpy: Fix the return value.
10038         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10039         description of the return value consistent with stpncpy in glibc.
10040         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10041         written non-NUL unit.
10042
10043 2010-01-10  Bruno Haible  <bruno@clisp.org>
10044
10045         unistr/u*-next: Add missing dependencies.
10046         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10047         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10048         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10049
10050 2010-01-10  Bruno Haible  <bruno@clisp.org>
10051
10052         unistr/u8-mbsnlen: Fix return value for incomplete character.
10053         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10054         u8_mblen.
10055         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10056         Remove unistr/u8-mblen.
10057         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10058         u16_mblen.
10059         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10060         Remove unistr/u16-mblen.
10061
10062 2010-01-10  Bruno Haible  <bruno@clisp.org>
10063
10064         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10065         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10066         Reported by Brian Gough <bjg@gnu.org> and
10067         Chris Clayton <chris2553@googlemail.com> via
10068         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10069
10070 2010-01-09  Bruno Haible  <bruno@clisp.org>
10071
10072         unistr/u16-to-u32: Reject invalid input.
10073         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10074         u16_mbtouc.
10075         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10076         Remove unistr/u16-mbtouc.
10077
10078         unistr/u16-to-u8: Reject invalid input.
10079         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10080         u16_mbtouc.
10081         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10082         Remove unistr/u16-mbtouc.
10083
10084         unistr/u8-to-u32: Reject invalid input.
10085         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10086         u8_mbtouc.
10087         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10088         Remove unistr/u8-mbtouc.
10089
10090         unistr/u8-to-u16: Reject invalid input.
10091         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10092         u8_mbtouc.
10093         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10094         Remove unistr/u8-mbtouc.
10095
10096 2010-01-09  Bruno Haible  <bruno@clisp.org>
10097
10098         Tests for module 'getlogin'.
10099         * modules/getlogin-tests: New file.
10100         * tests/test-getlogin.c: New file.
10101
10102         New module 'getlogin'.
10103         * lib/unistd.in.h (getlogin): New declaration.
10104         * lib/getlogin.c: New file.
10105         * m4/getlogin.m4: New file.
10106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10107         HAVE_GETLOGIN.
10108         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10109         HAVE_GETLOGIN.
10110         * modules/getlogin: New file.
10111         * doc/posix-functions/getlogin.texi: Mention the new module.
10112         Reported by John W. Eaton <jwe@gnu.org>.
10113
10114 2010-01-09  Bruno Haible  <bruno@clisp.org>
10115
10116         getlogin_r: Support for native Windows.
10117         * lib/getlogin_r.c: Include <windows.h>
10118         (getlogin_r): Implement for native Windows.
10119         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10120         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10121         via John W. Eaton <jwe@gnu.org>.
10122
10123 2010-01-09  Bruno Haible  <bruno@clisp.org>
10124
10125         getlogin_r: Small fixes.
10126         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10127         succeeds.
10128         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10129         before testing whether getlogin_r is declared. No need to set
10130         HAVE_DECL_GETLOGIN_R to 1.
10131         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10132
10133 2010-01-09  Bruno Haible  <bruno@clisp.org>
10134
10135         * lib/unistd.in.h (getlogin_r): Add comment.
10136
10137 2010-01-09  Bruno Haible  <bruno@clisp.org>
10138
10139         Tests for module 'getlogin_r'.
10140         * modules/getlogin_r-tests: New file.
10141         * tests/test-getlogin_r.c: New file.
10142
10143 2010-01-09  Jim Meyering  <meyering@redhat.com>
10144
10145         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10146         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10147         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10148
10149 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10150
10151         * lib/dup2.c (rpl_dup2): Improve comment.
10152
10153 2010-01-08  Eric Blake  <ebb9@byu.net>
10154
10155         maint.mk: allow packages to add makefile @@ exceptions
10156         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10157         (sc_makefile_check): Rename...
10158         (sc_makefile_at_at_check): ...to this, and use hook.
10159
10160         dup2: work around mingw bug
10161         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10162         Reported by Simon Josefsson.
10163
10164 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10165
10166         glob: Fix C++ compilation.
10167         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10168         C++.
10169
10170 2010-01-07  Bruno Haible  <bruno@clisp.org>
10171
10172         Fix indentation of wctype.in.h, broken since 2007-01-06.
10173         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10174
10175 2010-01-07  Bruno Haible  <bruno@clisp.org>
10176
10177         mbslen: Avoid collision with system function.
10178         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10179         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10180         * m4/mbslen.m4: New file.
10181         * modules/mbslen (Files): Add it.
10182         (configure.ac): Invoke gl_MBSLEN.
10183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10184         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10185         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10186         via Ian Beckwith <ianb@erislabs.net>.
10187
10188 2010-01-07  Bruno Haible  <bruno@clisp.org>
10189
10190         dirent: Document the last fix.
10191         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10192
10193 2010-01-07  Bruno Haible  <bruno@clisp.org>
10194
10195         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10196         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10197         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10198         va_list are defined.
10199         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10200         Reported by Eric Blake.
10201
10202 2010-01-07  Bruno Haible  <bruno@clisp.org>
10203
10204         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10205         * modules/xlist (Depends-on): Add 'list',
10206         * modules/xoset (Depends-on): Add 'oset'.
10207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10208
10209 2010-01-07  Bruno Haible  <bruno@clisp.org>
10210
10211         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10212         * doc/posix-functions/strncasecmp.texi: Likewise.
10213
10214 2010-01-07  Bruno Haible  <bruno@clisp.org>
10215
10216         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10217
10218 2010-01-07  John W. Eaton  <jwe@octave.org>
10219
10220         wctype: allow C++ use
10221         * lib/wctype.in.h: Add extern "C" block for C++.
10222
10223 2010-01-06  Eric Blake  <ebb9@byu.net>
10224
10225         maint.mk: detect incorrect GFDL usage
10226         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
10227
10228 2010-01-06  Jim Meyering  <meyering@redhat.com>
10229         and Eric Blake  <ebb9@byu.net>
10230
10231         maint.mk: ignore multi-line copyright in NEWS
10232         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
10233
10234 2010-01-06  Eric Blake  <ebb9@byu.net>
10235
10236         select: add missing dependency
10237         * modules/select-tests (Depends-on): Move sockets dependency...
10238         * modules/select (Depends-on): ...here.
10239         Reported by Ian Beckwith.
10240
10241         doc: regenerate INSTALL
10242         * doc/INSTALL: Reflect recent autoconf update.
10243         * doc/INSTALL.ISO: Likewise.
10244         * doc/INSTALL.UTF-8: Likewise.
10245
10246         pread: fix compilation on glibc
10247         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
10248         Reported by Ralf Wildenhues.
10249
10250         dirent: fix test failure
10251         * lib/dirent.in.h (includes): Guarantee ino_t.
10252         Reported by Ralf Wildenhues.
10253
10254 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
10255
10256         linkat, renameat: avoid bad free
10257         * lib/at-func2.c (at_func2): Fix typo.
10258         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
10259
10260 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10261
10262         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10263         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10264         to avoid failure of symlink test later.
10265
10266 2010-01-06  Eric Blake  <ebb9@byu.net>
10267
10268         stdio, unistd: guarantee ssize_t
10269         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10270         2008 are exposed when needed.
10271         * lib/stdio.in.h (includes): Likewise.
10272         Reported by Ralf Wildenhues.
10273
10274 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10275
10276         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10277         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10278         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10279
10280 2010-01-06  Jim Meyering  <meyering@redhat.com>
10281
10282         readtokens: this module *does* require xalloc.h
10283         It uses only functions that were omitted by the old syntax-check rule.
10284         * lib/readtokens.c: Include "xalloc.h" once again.
10285         * modules/readtokens (Depends-on): Add xalloc.
10286         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10287
10288 2010-01-05  Eric Blake  <ebb9@byu.net>
10289
10290         maint: support 'make announcement' from a VPATH build
10291         * top/maint.mk (announcement): Look for correct NEWS file.
10292
10293 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10294
10295         utimens (fdutimens): ignore a negative FD, per contract
10296         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10297         when we have a valid file descriptor.  Otherwise, using a brand
10298         new glibc (with just-patched futimens that now fails with EBADF)
10299         would cause this function to fail with ENOSYS.
10300         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10301         See also http://bugzilla.redhat.com/552320.
10302
10303 2010-01-05  Eric Blake  <ebb9@byu.net>
10304
10305         strcase: document what it provides
10306         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10307         gnulib module.
10308         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10309         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10310
10311 2010-01-05  Jim Meyering  <meyering@redhat.com>
10312
10313         maint: remove useless inclusions of "xalloc.h"
10314         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10315         * lib/readtokens.c: Likewise.
10316         * lib/same.c: Likewise.
10317         * modules/getloadavg (Depends-on): Remove xalloc.
10318         * modules/readtokens: Likewise.
10319         * modules/same: Likewise.
10320
10321         maint.mk: include 4 more function names in alloca.h-checking regexp
10322         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10323         regexp.  Before, we would give a false-positive (saying alloca.h
10324         is included unnecessarily) when the only uses involved omitted symbols.
10325
10326         xalloc.h: use consistent formatting
10327         * lib/xalloc.h: Move declarations to start in the first column.
10328
10329 2010-01-05  Eric Blake  <ebb9@byu.net>
10330
10331         mkdir: avoid xalloc
10332         * lib/mkdir.c (includes): Drop unused header.
10333         Reported by John W. Eaton.
10334
10335 2010-01-04  Jim Meyering  <meyering@redhat.com>
10336
10337         nl_langinfo: avoid configure-time syntax error
10338         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10339         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10340         the empty string.  Don't let that provoke a shell syntax error.
10341
10342         regcomp, regexec, fnmatch: avoid array bounds read error
10343         * lib/regcomp.c (build_equiv_class): From glibc:
10344         Use only the low 24 bits of a findidx return value as an index
10345         into the weights array.  Patch by Ulrich Drepper:
10346         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10347         * lib/regexec.c (check_node_accept_bytes): Likewise.
10348         * lib/fnmatch_loop.c (FCT): Likewise.
10349
10350         regcomp: skip collseq lookup when there are no rules
10351         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10352         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10353
10354         regcomp: recognize ill-formed { } expressions
10355         * lib/regcomp.c (parse_dup_op): From glibc:
10356         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10357
10358         regcomp: fix typo in comment
10359         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10360         s/satisfy/satisfies/.
10361
10362         regcomp: sync from glibc: remove dead store
10363         * lib/regcomp.c (duplicate_node_closure): Remove useless
10364         search_duplicated_node call and dead store.
10365
10366         regcomp: sync from glibc; always use nl_langinfo
10367         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10368         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10369         * modules/regex (Depends-on): Add nl_langinfo.
10370
10371 2010-01-04  Eric Blake  <ebb9@byu.net>
10372
10373         fdopendir: fix configure test
10374         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10375
10376 2010-01-01  Bruno Haible  <bruno@clisp.org>
10377
10378         wchar: Remove unused configure check.
10379         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10380
10381 2010-01-01  Eric Blake  <ebb9@byu.net>
10382
10383         headers: make check of system header explicit
10384         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10385         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10386         ourselves.
10387         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10388         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10389         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10390         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
10391         internals.
10392         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
10393         missing.
10394         Suggested by Bruno Haible.
10395
10396 2010-01-01  Jim Meyering  <meyering@redhat.com>
10397
10398         ChangeLog: tweak to eliminate unnecessary copyright line
10399         * ChangeLog: Remove a copyright line that was mistakenly updated
10400         by today's update-copyright run.  Reported by Eric Blake.
10401
10402         test-update-copyright: don't let envvar setting cause test failure
10403         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10404
10405 2010-01-01  Bruno Haible  <bruno@clisp.org>
10406
10407         localename: Avoid gcc warning.
10408         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
10409         function if it is not used.
10410
10411 2010-01-01  Jim Meyering  <meyering@redhat.com>
10412
10413         update nearly all FSF copyright year lists to include 2010
10414         Use the same procedure as for 2009, outlined in
10415         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
10416
10417         version-etc: set COPYRIGHT_YEAR to 2010
10418         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
10419
10420 2009-12-31  Eric Blake  <ebb9@byu.net>
10421
10422         doc: correct availability of cygwin 1.5.x getopt
10423         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
10424         variables.
10425         * doc/posix-functions/opterr.texi (opterr): Likewise.
10426         * doc/posix-functions/optind.texi (optind): Likewise.
10427         * doc/posix-functions/optopt.texi (optopt): Likewise.
10428         * doc/posix-functions/tzname.texi (tzname): Likewise.
10429
10430         openat: update maintainer
10431         * modules/openat (Maintainer): Add myself.
10432
10433         utimens: avoid shadowing warning
10434         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
10435         buffers into one, to avoid shadowing, as well as avoiding a
10436         redundant stat.
10437         Reported by Jim Meyering.
10438
10439         test-dup2: avoid compiler warning
10440         * tests/test-dup2.c (is_inheritable): Only define if used.
10441
10442 2010-01-01  Bruno Haible  <bruno@clisp.org>
10443
10444         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
10445         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
10446         defined, use wctomb instead of wcrtomb.
10447
10448 2010-01-01  Bruno Haible  <bruno@clisp.org>
10449
10450         iconv: Reject native Solaris iconv.
10451         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
10452         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
10453
10454 2009-12-31  Bruno Haible  <bruno@clisp.org>
10455
10456         * tests/test-signal.c (main): Remove test of 'SIG'.
10457
10458 2009-12-31  Bruno Haible  <bruno@clisp.org>
10459
10460         spawn: Fix incomplete fix.
10461         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10462         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10463         warnings for GNULIB_POSIXCHECK again.
10464         Reported by Eric Blake.
10465
10466 2009-12-31  Bruno Haible  <bruno@clisp.org>
10467
10468         Avoid namespace pollution on glibc systems.
10469         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
10470         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
10471         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
10472         glibc systems.
10473
10474 2009-12-31  Bruno Haible  <bruno@clisp.org>
10475
10476         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
10477         (gl_REPLACE_WCHAR_H): Turn into a no-op.
10478         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
10479         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10480         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10481         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10482         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10483
10484 2009-12-31  Bruno Haible  <bruno@clisp.org>
10485
10486         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10487         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
10488         afterwards.
10489
10490 2009-12-31  Bruno Haible  <bruno@clisp.org>
10491
10492         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
10493         SYS_UTSNAME_H.
10494
10495 2009-12-31  Bruno Haible  <bruno@clisp.org>
10496
10497         spawn: Fix misapplied patch.
10498         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10499         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10500         warnings for GNULIB_POSIXCHECK.
10501
10502 2009-12-31  Bruno Haible  <bruno@clisp.org>
10503
10504         times: Update after sys_times changed.
10505         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
10506         * modules/times (Files): Add it.
10507         (configure.ac): Invoke gl_FUNC_TIMES.
10508
10509 2009-12-31  Bruno Haible  <bruno@clisp.org>
10510
10511         Use AC_C_INLINE where necessary.
10512         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
10513         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
10514         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
10515         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10516         * m4/mbfile.m4 (gl_MBFILE): Likewise.
10517         * m4/mbiter.m4 (gl_MBITER): Likewise.
10518         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10519         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10520         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
10521         * modules/u64 (configure.ac): Likewise.
10522
10523 2009-12-31  Bruno Haible  <bruno@clisp.org>
10524
10525         Use AC_C_INLINE instead of module 'inline' where possible.
10526         * modules/inline (Description): Clarify purpose.
10527         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
10528         * modules/count-one-bits (Depends-on): Remove inline.
10529         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
10530         * modules/openat (Depends-on): Remove inline.
10531         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
10532         instead of depending on module 'inline'.
10533         * modules/filevercmp (Depends-on, configure.ac): Likewise.
10534         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
10535         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
10536         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
10537         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
10538         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
10539         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
10540         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
10541         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
10542         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
10543         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
10544         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
10545         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
10546         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
10547         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
10548         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
10549         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
10550         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
10551         Likewise.
10552         * modules/unictype/property-ascii-hex-digit (Depends-on,
10553         configure.ac): Likewise.
10554         * modules/unictype/property-bidi-arabic-digit (Depends-on,
10555         configure.ac): Likewise.
10556         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
10557         configure.ac): Likewise.
10558         * modules/unictype/property-bidi-block-separator (Depends-on,
10559         configure.ac): Likewise.
10560         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
10561         configure.ac): Likewise.
10562         * modules/unictype/property-bidi-common-separator (Depends-on,
10563         configure.ac): Likewise.
10564         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
10565         Likewise.
10566         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
10567         configure.ac): Likewise.
10568         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
10569         configure.ac): Likewise.
10570         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
10571         configure.ac): Likewise.
10572         * modules/unictype/property-bidi-european-digit (Depends-on,
10573         configure.ac): Likewise.
10574         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
10575         configure.ac): Likewise.
10576         * modules/unictype/property-bidi-left-to-right (Depends-on,
10577         configure.ac): Likewise.
10578         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
10579         configure.ac): Likewise.
10580         * modules/unictype/property-bidi-other-neutral (Depends-on,
10581         configure.ac): Likewise.
10582         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
10583         Likewise.
10584         * modules/unictype/property-bidi-segment-separator (Depends-on,
10585         configure.ac): Likewise.
10586         * modules/unictype/property-bidi-whitespace (Depends-on,
10587         configure.ac): Likewise.
10588         * modules/unictype/property-combining (Depends-on, configure.ac):
10589         Likewise.
10590         * modules/unictype/property-composite (Depends-on, configure.ac):
10591         Likewise.
10592         * modules/unictype/property-currency-symbol (Depends-on,
10593         configure.ac): Likewise.
10594         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
10595         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
10596         Likewise.
10597         * modules/unictype/property-default-ignorable-code-point (Depends-on,
10598         configure.ac): Likewise.
10599         * modules/unictype/property-deprecated (Depends-on, configure.ac):
10600         Likewise.
10601         * modules/unictype/property-diacritic (Depends-on, configure.ac):
10602         Likewise.
10603         * modules/unictype/property-extender (Depends-on, configure.ac):
10604         Likewise.
10605         * modules/unictype/property-format-control (Depends-on, configure.ac):
10606         Likewise.
10607         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
10608         Likewise.
10609         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
10610         Likewise.
10611         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
10612         Likewise.
10613         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
10614         Likewise.
10615         * modules/unictype/property-hyphen (Depends-on, configure.ac):
10616         Likewise.
10617         * modules/unictype/property-id-continue (Depends-on, configure.ac):
10618         Likewise.
10619         * modules/unictype/property-id-start (Depends-on, configure.ac):
10620         Likewise.
10621         * modules/unictype/property-ideographic (Depends-on, configure.ac):
10622         Likewise.
10623         * modules/unictype/property-ids-binary-operator (Depends-on,
10624         configure.ac): Likewise.
10625         * modules/unictype/property-ids-trinary-operator (Depends-on,
10626         configure.ac): Likewise.
10627         * modules/unictype/property-ignorable-control (Depends-on,
10628         configure.ac): Likewise.
10629         * modules/unictype/property-iso-control (Depends-on, configure.ac):
10630         Likewise.
10631         * modules/unictype/property-join-control (Depends-on, configure.ac):
10632         Likewise.
10633         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
10634         Likewise.
10635         * modules/unictype/property-line-separator (Depends-on, configure.ac):
10636         Likewise.
10637         * modules/unictype/property-logical-order-exception (Depends-on,
10638         configure.ac): Likewise.
10639         * modules/unictype/property-lowercase (Depends-on, configure.ac):
10640         Likewise.
10641         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
10642         * modules/unictype/property-non-break (Depends-on, configure.ac):
10643         Likewise.
10644         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
10645         Likewise.
10646         * modules/unictype/property-numeric (Depends-on, configure.ac):
10647         Likewise.
10648         * modules/unictype/property-other-alphabetic (Depends-on,
10649         configure.ac): Likewise.
10650         * modules/unictype/property-other-default-ignorable-code-point
10651         (Depends-on, configure.ac): Likewise.
10652         * modules/unictype/property-other-grapheme-extend (Depends-on,
10653         configure.ac): Likewise.
10654         * modules/unictype/property-other-id-continue (Depends-on,
10655         configure.ac): Likewise.
10656         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
10657         Likewise.
10658         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
10659         Likewise.
10660         * modules/unictype/property-other-math (Depends-on, configure.ac):
10661         Likewise.
10662         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
10663         Likewise.
10664         * modules/unictype/property-paired-punctuation (Depends-on,
10665         configure.ac): Likewise.
10666         * modules/unictype/property-paragraph-separator (Depends-on,
10667         configure.ac): Likewise.
10668         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
10669         Likewise.
10670         * modules/unictype/property-pattern-white-space (Depends-on,
10671         configure.ac): Likewise.
10672         * modules/unictype/property-private-use (Depends-on, configure.ac):
10673         Likewise.
10674         * modules/unictype/property-punctuation (Depends-on, configure.ac):
10675         Likewise.
10676         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
10677         Likewise.
10678         * modules/unictype/property-radical (Depends-on, configure.ac):
10679         Likewise.
10680         * modules/unictype/property-sentence-terminal (Depends-on,
10681         configure.ac): Likewise.
10682         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
10683         Likewise.
10684         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
10685         * modules/unictype/property-terminal-punctuation (Depends-on,
10686         configure.ac): Likewise.
10687         * modules/unictype/property-titlecase (Depends-on, configure.ac):
10688         Likewise.
10689         * modules/unictype/property-unassigned-code-value (Depends-on,
10690         configure.ac): Likewise.
10691         * modules/unictype/property-unified-ideograph (Depends-on,
10692         configure.ac): Likewise.
10693         * modules/unictype/property-uppercase (Depends-on, configure.ac):
10694         Likewise.
10695         * modules/unictype/property-variation-selector (Depends-on,
10696         configure.ac): Likewise.
10697         * modules/unictype/property-white-space (Depends-on, configure.ac):
10698         Likewise.
10699         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
10700         Likewise.
10701         * modules/unictype/property-xid-start (Depends-on, configure.ac):
10702         Likewise.
10703         * modules/unictype/property-zero-width (Depends-on, configure.ac):
10704         Likewise.
10705         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
10706         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
10707         Likewise.
10708
10709 2009-12-31  Bruno Haible  <bruno@clisp.org>
10710
10711         Remove unnecessary AC_C_INLINE invocation.
10712         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
10713         since 2009-08-21.
10714
10715 2009-12-31  Jim Meyering  <meyering@redhat.com>
10716
10717         maint.mk: don't require explicit gpg_key_ID in cfg.mk
10718         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
10719         With this change, we can all remove the gpg_key_ID = ... definition
10720         from our respective cfg.mk files.
10721
10722         maint.mk: create announcement template in ~/, not in /tmp
10723         * top/maint.mk (emit_upload_commands): Adjust.
10724         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
10725         Remove temporary file, .ci-msg.
10726
10727 2009-12-31  Eric Blake  <ebb9@byu.net>
10728
10729         link-warning: always build headers with link warnings
10730         * modules/arpa_inet (Makefile.am): Always build replacement
10731         header.
10732         * modules/ctype (Makefile.am): Likewise.
10733         * modules/dirent (Makefile.am): Likewise.
10734         * modules/inttypes (Makefile.am): Likewise.
10735         * modules/langinfo (Makefile.am): Likewise.
10736         * modules/locale (Makefile.am): Likewise.
10737         * modules/spawn (Makefile.am): Likewise.
10738         * modules/sys_file (Makefile.am): Likewise.
10739         * modules/sys_ioctl (Makefile.am): Likewise.
10740         * modules/sys_select (Makefile.am): Likewise.
10741         * modules/sys_socket (Makefile.am): Likewise.
10742         * modules/sys_times (Makefile.am): Likewise.
10743         * modules/sys_utsname (Makefile.am): Likewise.
10744         * modules/sys_wait (Makefile.am): Likewise.
10745         * modules/wchar (Makefile.am): Likewise.
10746         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
10747         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
10748         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
10749         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
10750         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
10751         Likewise.
10752         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10753         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10754         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
10755         Likewise.
10756         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
10757         Likewise.
10758         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10759         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
10760         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
10761         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10762         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10763         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10764         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10765         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
10766         (gl_WCHAR_H_DEFAULTS): Likewise.
10767
10768 2009-12-31  Eric Blake  <ebb9@byu.net>
10769
10770         signal, spawn: use link warnings
10771         * lib/signal.in.h (sigset_t): Make unconditional.
10772         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
10773         (sigpending, sigprocmask, sigaction): Add link warnings.
10774         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
10775         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
10776         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
10777         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
10778         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
10779         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
10780         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
10781         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
10782         (posix_spawn_file_actions_destroy)
10783         (posix_spawn_file_actions_addopen)
10784         (posix_spawn_file_actions_addclose)
10785         (posix_spawn_file_actions_adddup2): Likewise.
10786         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
10787         * tests/test-signal.c (main): Enhance test.
10788
10789         spawn: improve wrapper support
10790         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
10791         (gl_SPAWN_H_DEFAULTS): New defaults.
10792         * modules/spawn (Makefile.am): Substitute them.
10793         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
10794         Only declare if missing or broken.
10795
10796         sys_times, sys_utsname: use include_next
10797         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
10798         header.
10799         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
10800         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10801         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10802         * modules/sys_times (Depends-on): Add include_next.
10803         (Makefile.am): Substitute additional values.
10804         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10805         * lib/sys_times.in.h (includes): Include native header, if
10806         available.
10807         * lib/sys_utsname.in.h (includes): Likewise.
10808         * tests/test-sys_times.c (main): Enhance test.
10809
10810         fdutimensat: revert prior patch
10811         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
10812         utimens.h.
10813         Reported by Bruno Haible.
10814
10815 2009-12-30  Eric Blake  <ebb9@byu.net>
10816
10817         sys_wait: drop link-warning dependency
10818         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
10819         link-warning efforts.
10820         * lib/sys_wait.in.h: Likewise.
10821
10822         fdutimensat: remove bogus dependency
10823         * modules/fdutimensat (Depends-on): Drop inline.
10824
10825         unistd: fix typo
10826         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
10827
10828 2009-12-30  Bruno Haible  <bruno@clisp.org>
10829
10830         Fix compilation error with Solaris cc.
10831         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
10832         * lib/unicase/u16-is-invariant.c: Likewise.
10833         * lib/unicase/u32-is-invariant.c: Likewise.
10834         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10835
10836 2009-12-30  Bruno Haible  <bruno@clisp.org>
10837
10838         Fix test crash.
10839         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
10840         locales.
10841         Reported by Simon Josefsson <simon@josefsson.org>.
10842
10843 2009-12-30  Bruno Haible  <bruno@clisp.org>
10844
10845         Fix compilation error on most platforms.
10846         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
10847         Reported by Simon Josefsson <simon@josefsson.org>
10848         and Nelson H. F. Beebe <beebe@math.utah.edu>.
10849
10850 2009-12-30  Eric Blake  <ebb9@byu.net>
10851
10852         futimens, utimensat: work around ntfs-3g bug
10853         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
10854         a ctime bug is present, and expand workaround to cover ntfs-3g.
10855         * lib/utimens.c (fdutimens, lutimens): Likewise.
10856         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
10857         (validate_timespec): Adjust return value.
10858         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
10859         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10860         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
10861
10862 2009-12-29  Eric Blake  <ebb9@byu.net>
10863
10864         link-warning: make usage consistent
10865         * modules/ctype (Depends-on): Add link-warning.
10866         (Makefile.am): Update rules accordingly.
10867         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10868         * modules/locale (Depends-on, Makefile.am): Likewise.
10869         * modules/sys_file (Makefile.am): Likewise.
10870         * modules/getopt-posix (Makefile.am): Delete unused link warning
10871         efforts.
10872         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
10873         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
10874         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
10875         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
10876
10877         stdio: remove unused variables
10878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
10879         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
10880         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10881
10882         tests: test more substitute headers
10883         * modules/ctype-tests: New file.
10884         * modules/dirent-tests: Likewise.
10885         * modules/spawn-tests: Likewise.
10886         * modules/sys_file-tests: Likewise.
10887         * modules/sys_ioctl-tests: Likewise.
10888         * modules/sys_wait-tests: Likewise.
10889         * tests/test-ctype.c: Likewise.
10890         * tests/test-dirent.c: Likewise.
10891         * tests/test-spawn.c: Likewise.
10892         * tests/test-sys_file.c: Likewise.
10893         * tests/test-sys_ioctl.c: Likewise.
10894         * tests/test-sys_wait.c: Likewise.
10895         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
10896         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
10897         whether or not flock is in use.
10898
10899         tests: remove License section from module
10900         * modules/arpa_inet-tests: Remove unneeded section.
10901         * modules/byteswap-tests: Likewise.
10902         * modules/ceilf-tests: Likewise.
10903         * modules/ceill-tests: Likewise.
10904         * modules/crypto/des-tests: Likewise.
10905         * modules/crypto/gc-arcfour-tests: Likewise.
10906         * modules/crypto/gc-arctwo-tests: Likewise.
10907         * modules/crypto/gc-des-tests: Likewise.
10908         * modules/crypto/gc-hmac-md5-tests: Likewise.
10909         * modules/crypto/gc-hmac-sha1-tests: Likewise.
10910         * modules/crypto/gc-md2-tests: Likewise.
10911         * modules/crypto/gc-md4-tests: Likewise.
10912         * modules/crypto/gc-md5-tests: Likewise.
10913         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
10914         * modules/crypto/gc-rijndael-tests: Likewise.
10915         * modules/crypto/gc-sha1-tests: Likewise.
10916         * modules/crypto/gc-tests: Likewise.
10917         * modules/crypto/md2-tests: Likewise.
10918         * modules/crypto/md4-tests: Likewise.
10919         * modules/fcntl-h-tests: Likewise.
10920         * modules/floorf-tests: Likewise.
10921         * modules/floorl-tests: Likewise.
10922         * modules/frexp-nolibm-tests: Likewise.
10923         * modules/frexp-tests: Likewise.
10924         * modules/frexpl-nolibm-tests: Likewise.
10925         * modules/frexpl-tests: Likewise.
10926         * modules/getaddrinfo-tests: Likewise.
10927         * modules/inttypes-tests: Likewise.
10928         * modules/isfinite-tests: Likewise.
10929         * modules/isinf-tests: Likewise.
10930         * modules/ldexpl-tests: Likewise.
10931         * modules/locale-tests: Likewise.
10932         * modules/math-tests: Likewise.
10933         * modules/netdb-tests: Likewise.
10934         * modules/netinet_in-tests: Likewise.
10935         * modules/printf-frexp-tests: Likewise.
10936         * modules/printf-frexpl-tests: Likewise.
10937         * modules/priv-set-tests: Likewise.
10938         * modules/random_r-tests: Likewise.
10939         * modules/round-tests: Likewise.
10940         * modules/roundf-tests: Likewise.
10941         * modules/roundl-tests: Likewise.
10942         * modules/search-tests: Likewise.
10943         * modules/select-tests: Likewise.
10944         * modules/signal-tests: Likewise.
10945         * modules/stdbool-tests: Likewise.
10946         * modules/stddef-tests: Likewise.
10947         * modules/stdint-tests: Likewise.
10948         * modules/stdio-tests: Likewise.
10949         * modules/stdlib-tests: Likewise.
10950         * modules/string-tests: Likewise.
10951         * modules/strings-tests: Likewise.
10952         * modules/sys_select-tests: Likewise.
10953         * modules/sys_socket-tests: Likewise.
10954         * modules/sys_stat-tests: Likewise.
10955         * modules/sys_time-tests: Likewise.
10956         * modules/sys_utsname-tests: Likewise.
10957         * modules/sysexits-tests: Likewise.
10958         * modules/time-tests: Likewise.
10959         * modules/trunc-tests: Likewise.
10960         * modules/truncf-tests: Likewise.
10961         * modules/truncl-tests: Likewise.
10962         * modules/tsearch-tests: Likewise.
10963         * modules/unistd-tests: Likewise.
10964         * modules/wchar-tests: Likewise.
10965         * modules/wctype-tests: Likewise.
10966
10967         tests: fix license on several tests
10968         * tests/test-des.c: Update to GPLv3+.
10969         * tests/test-flock.c: Likewise.
10970         * tests/test-fsync.c: Likewise.
10971         * tests/test-futimens.h: Likewise.
10972         * tests/test-gc-arcfour.c: Likewise.
10973         * tests/test-gc-arctwo.c: Likewise.
10974         * tests/test-gc-des.c: Likewise.
10975         * tests/test-gc-hmac-md5.c: Likewise.
10976         * tests/test-gc-hmac-sha1.c: Likewise.
10977         * tests/test-gc-md2.c: Likewise.
10978         * tests/test-gc-md4.c: Likewise.
10979         * tests/test-gc-md5.c: Likewise.
10980         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10981         * tests/test-gc-rijndael.c: Likewise.
10982         * tests/test-gc-sha1.c: Likewise.
10983         * tests/test-gc.c: Likewise.
10984         * tests/test-getcwd.c: Likewise.
10985         * tests/test-link.c: Likewise.
10986         * tests/test-link.h: Likewise.
10987         * tests/test-lutimens.h: Likewise.
10988         * tests/test-md2.c: Likewise.
10989         * tests/test-md4.c: Likewise.
10990         * tests/test-mkdir.h: Likewise.
10991         * tests/test-rename.c: Likewise.
10992         * tests/test-rename.h: Likewise.
10993         * tests/test-safe-alloc.c: Likewise.
10994         * tests/test-utimens-common.h: Likewise.
10995         * tests/test-utimens.h: Likewise.
10996
10997         maint: sync license texts
10998         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
10999         * doc/gpl-3.0.texi: Revert copyright year update.
11000         * doc/lgpl-3.0.texi: Likewise.
11001
11002 2009-12-29  Jim Meyering  <meyering@redhat.com>
11003
11004         update nearly all FSF copyright year lists to include 2009
11005         The files named by the following are exempted:
11006             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11007               test -f "$dst" && { echo "$dst"; continue; }
11008               test -d "$dst" || continue
11009               echo "$dst"/$(basename "$src")
11010             done > exempt
11011             git ls-files tests/unictype >> exempt
11012         In the remaining files, convert to all-interval notation if
11013         - there is already at least one year interval like 2000-2003
11014         - the file is maintained by me
11015         - the file is in lib/uni*/, where that style already prevails
11016         Otherwise, use update-copyright's default.
11017
11018 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11019         and Eric Blake  <ebb9@byu.net>
11020
11021         tests: don't require debug system() to pass
11022         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11023         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11024         * tests/test-unlink.h (test_unlink_func): Likewise.
11025         * tests/test-fstatat.c (main): ...into callers.
11026         * tests/test-lstat.c (main): Likewise.
11027         * tests/test-rmdir.c (main): Likewise.
11028         * tests/test-unlink.c (main): Likewise.
11029         * tests/test-unlinkat.c (main): Likewise.
11030         * tests/test-areadlink-with-size.c (main): Don't require a
11031         debug-only system call to pass, aiding cross-testing to mingw.
11032         * tests/test-areadlink.c (main): Likewise.
11033         * tests/test-areadlinkat-with-size.c (main): Likewise.
11034         * tests/test-areadlinkat.c (main): Likewise.
11035         * tests/test-canonicalize-lgpl.c (main): Likewise.
11036         * tests/test-canonicalize.c (main): Likewise.
11037         * tests/test-chown.c (main): Likewise.
11038         * tests/test-fchownat.c (main): Likewise.
11039         * tests/test-lchown.c (main): Likewise.
11040         * tests/test-fdutimensat.c (main): Likewise.
11041         * tests/test-futimens.c (main): Likewise.
11042         * tests/test-link.c (main): Likewise.
11043         * tests/test-linkat.c (main): Likewise.
11044         * tests/test-mkdir.c (main): Likewise.
11045         * tests/test-mkdirat.c (main): Likewise.
11046         * tests/test-mkfifo.c (main): Likewise.
11047         * tests/test-mkfifoat.c (main): Likewise.
11048         * tests/test-mknod.c (main): Likewise.
11049         * tests/test-readlink.c (main): Likewise.
11050         * tests/test-remove.c (main): Likewise.
11051         * tests/test-rename.c (main): Likewise.
11052         * tests/test-renameat.c (main): Likewise.
11053         * tests/test-symlink.c (main): Likewise.
11054         * tests/test-symlinkat.c (main): Likewise.
11055         * tests/test-utimens.c (main): Likewise.
11056         * tests/test-utimensat.c (main): Likewise.
11057
11058 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11059
11060         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11061         on $(UNUSED_PARAMETER_H) to avoid build failure.
11062
11063 2009-12-28  Jim Meyering  <meyering@redhat.com>
11064
11065         update-copyright: you may specify a max. line length other than 72
11066         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11067
11068         maint: use consistent FSF copyright line syntax
11069         * lib/posixtm.c: Add missing comma in FSF copyright line.
11070         * lib/posixtm.h: Likewise.
11071         * lib/getugroups.c: Add missing ", Inc.".
11072
11073         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11074         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11075         FSF copyright line.  Remove trailing blanks.
11076
11077 2009-12-28  Eric Blake  <ebb9@byu.net>
11078
11079         test-dup2: reduce dependencies
11080         * modules/cloexec (Configure.ac): Set witness.
11081         * modules/dup2-tests (Depends-on): Drop cloexec.
11082         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11083         not present.
11084         Suggested by Bruno Haible.
11085
11086 2009-12-26  Bruno Haible  <bruno@clisp.org>
11087
11088         Remove an unneeded dependency.
11089         * modules/fseterr (Depends-on): Remove dup2.
11090
11091 2009-12-26  Eric Blake  <ebb9@byu.net>
11092
11093         tests: use macros.h in more places
11094         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11095         (ASSERT_STREAM): Provide default of stderr.
11096         * tests/test-dirent-safer.c: Include macros.h, using alternate
11097         stream for assertions.
11098         * tests/test-dup-safer.c: Likewise.
11099         * tests/test-freopen-safer.c: Likewise.
11100         * tests/test-getopt.c: Likewise.
11101         * tests/test-openat-safer.c: Likewise.
11102         * tests/test-pipe.c: Likewise.
11103         * tests/test-popen-safer.c: Likewise.
11104         * modules/dirent-safer-tests (Files): Include macros.h.
11105         * modules/unistd-safer-tests (Files): Likewise.
11106         * modules/freopen-safer-tests (Files): Likewise.
11107         * modules/getopt-posix-tests (Files): Likewise.
11108         * modules/openat-safer-tests (Files): Likewise.
11109         * modules/pipe-tests (Files): Likewise.
11110
11111 2009-12-26  Bruno Haible  <bruno@clisp.org>
11112
11113         javacomp: Portability fix.
11114         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11115         that it also works on Solaris.
11116
11117 2009-12-26  Bruno Haible  <bruno@clisp.org>
11118
11119         localename: Fix storage allocation of gl_locale_name_thread's result.
11120         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11121         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11122         all platforms that have 'uselocale'.
11123         (gl_locale_name_thread_unsafe): New function, extracted from
11124         gl_locale_name_thread.
11125         (gl_locale_name_thread): Call struniq on all platforms that have
11126         'uselocale'.
11127         * tests/test-localename.c (test_locale_name_thread): Check that the
11128         resulting strings are permanently allocated.
11129         * modules/localename-tests (Depends-on): Add strdup.
11130
11131 2009-12-26  Bruno Haible  <bruno@clisp.org>
11132
11133         * tests/test-localename.c (categories): Fill in the strings.
11134
11135 2009-12-26  Jim Meyering  <meyering@redhat.com>
11136
11137         isdir: complete the removal of m4/isdir.m4
11138         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11139
11140         isdir: clean up, since at least grep still uses it
11141         * lib/isdir.c: Include "isdir.h".
11142         (S_ISDIR): Remove now-unneeded definition.
11143         * modules/isdir (Files): Add lib/isdir.h.
11144         * lib/isdir.h: New file, with declaration.
11145         * m4/isdir.m4: Remove file -- unneeded.
11146
11147 2009-12-25  Bruno Haible  <bruno@clisp.org>
11148
11149         selinux-h: Make generated .h files standalone.
11150         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11151         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11152         * lib/se-selinux.in.h: Likewise.
11153         * modules/selinux-h (Depends-on): Add unused-parameter.
11154         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11155         selinux/selinux.h and selinux/context.h.
11156         Suggested by Eric Blake.
11157
11158 2009-12-25  Bruno Haible  <bruno@clisp.org>
11159
11160         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11161         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11162         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11163         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11164         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11165
11166 2009-12-24  Bruno Haible  <bruno@clisp.org>
11167
11168         openat: Fix warning.
11169         * lib/openat-proc.c: Include <unistd.h>.
11170
11171 2009-12-24  Bruno Haible  <bruno@clisp.org>
11172
11173         New module 'unused-parameter'.
11174         * build-aux/unused-parameter.h: New file, extracted from earlier
11175         gnulib-common.m4.
11176         * modules/unused-parameter: New file.
11177         * lib/unistr.h: Include unused-parameter.h.
11178         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11179         _GL_UNUSED.
11180         * modules/unistr/base (Depends-on): Add unused-parameter.
11181
11182 2009-12-24  Bruno Haible  <bruno@clisp.org>
11183
11184         Add missing dependencies to 'extensions' module.
11185         * m4/extensions.m4: Add comment.
11186         * modules/accept4 (Depends-on): Add extensions.
11187         * modules/dup3 (Depends-on): Likewise.
11188         * modules/fcntl (Depends-on): Likewise.
11189         * modules/futimens (Depends-on): Likewise.
11190         * modules/mknod (Depends-on): Likewise.
11191         * modules/pipe2 (Depends-on): Likewise.
11192         * modules/stat-time (Depends-on): Likewise.
11193         * modules/strcasestr-simple (Depends-on): Likewise.
11194         * modules/strsignal (Depends-on): Likewise.
11195         * modules/utimensat (Depends-on): Likewise.
11196         * modules/localcharset (Depends-on): Likewise. Needed because of
11197         gl_FCNTL_O_FLAGS.
11198         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11199         AC_TYPE_MBSTATE_T.
11200         * modules/wcsnrtombs (Depends-on): Likewise.
11201         * modules/wcsrtombs (Depends-on): Likewise.
11202
11203 2009-12-24  Bruno Haible  <bruno@clisp.org>
11204
11205         binary-io: Avoid gcc warning due to SET_BINARY.
11206         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11207         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11208
11209 2009-12-24  Bruno Haible  <bruno@clisp.org>
11210
11211         Avoid future namespace pollution on glibc systems.
11212         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11213         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11214         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11215         glibc systems.
11216
11217 2009-12-24  Bruno Haible  <bruno@clisp.org>
11218
11219         Refactor common macros used in tests.
11220         * tests/macros.h: New file.
11221         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11222         and/or <stdlib.h>, if appropriate.
11223         (ASSERT, SIZEOF): Remove macros.
11224         * tests/test-areadlink-with-size.c: Likewise.
11225         * tests/test-areadlinkat.c: Likewise.
11226         * tests/test-areadlinkat-with-size.c: Likewise.
11227         * tests/test-argmatch.c: Likewise.
11228         * tests/test-argv-iter.c: Likewise.
11229         * tests/test-array-mergesort.c: Likewise.
11230         * tests/test-array_list.c: Likewise.
11231         * tests/test-array_oset.c: Likewise.
11232         * tests/test-avltree_list.c: Likewise.
11233         * tests/test-avltree_oset.c: Likewise.
11234         * tests/test-avltreehash_list.c: Likewise.
11235         * tests/test-base64.c: Likewise.
11236         * tests/test-binary-io.c: Likewise.
11237         * tests/test-bitrotate.c: Likewise.
11238         * tests/test-btowc.c: Likewise.
11239         * tests/test-byteswap.c: Likewise.
11240         * tests/test-c-ctype.c: Likewise.
11241         * tests/test-c-stack.c: Likewise.
11242         * tests/test-c-strcasecmp.c: Likewise.
11243         * tests/test-c-strcasestr.c: Likewise.
11244         * tests/test-c-strncasecmp.c: Likewise.
11245         * tests/test-c-strstr.c: Likewise.
11246         * tests/test-canonicalize-lgpl.c: Likewise.
11247         * tests/test-canonicalize.c: Likewise.
11248         * tests/test-carray_list.c: Likewise.
11249         * tests/test-ceilf1.c: Likewise.
11250         * tests/test-ceilf2.c: Likewise.
11251         * tests/test-ceill.c: Likewise.
11252         * tests/test-chown.c: Likewise.
11253         * tests/test-cloexec.c: Likewise.
11254         * tests/test-copy-acl.c: Likewise.
11255         * tests/test-copy-file.c: Likewise.
11256         * tests/test-count-one-bits.c: Likewise.
11257         * tests/test-dprintf-posix.c: Likewise.
11258         * tests/test-dup2.c: Likewise.
11259         * tests/test-dup3.c: Likewise.
11260         * tests/test-duplocale.c: Likewise.
11261         * tests/test-fbufmode.c: Likewise.
11262         * tests/test-fchdir.c: Likewise.
11263         * tests/test-fchownat.c: Likewise.
11264         * tests/test-fcntl-safer.c: Likewise.
11265         * tests/test-fcntl.c: Likewise.
11266         * tests/test-fdopendir.c: Likewise.
11267         * tests/test-fdutimensat.c: Likewise.
11268         * tests/test-fflush2.c: Likewise.
11269         * tests/test-file-has-acl.c: Likewise.
11270         * tests/test-filevercmp.c: Likewise.
11271         * tests/test-flock.c: Likewise.
11272         * tests/test-floorf1.c: Likewise.
11273         * tests/test-floorf2.c: Likewise.
11274         * tests/test-floorl.c: Likewise.
11275         * tests/test-fnmatch.c: Likewise.
11276         * tests/test-fopen.h: Likewise.
11277         * tests/test-fpending.c: Likewise.
11278         * tests/test-fprintf-posix.c: Likewise.
11279         * tests/test-fpurge.c: Likewise.
11280         * tests/test-freadable.c: Likewise.
11281         * tests/test-freadahead.c: Likewise.
11282         * tests/test-freading.c: Likewise.
11283         * tests/test-freadptr.c: Likewise.
11284         * tests/test-freadptr2.c: Likewise.
11285         * tests/test-freadseek.c: Likewise.
11286         * tests/test-freopen.c: Likewise.
11287         * tests/test-frexp.c: Likewise.
11288         * tests/test-frexpl.c: Likewise.
11289         * tests/test-fseek.c: Likewise.
11290         * tests/test-fseeko.c: Likewise.
11291         * tests/test-fstatat.c: Likewise.
11292         * tests/test-fstrcmp.c: Likewise.
11293         * tests/test-fsync.c: Likewise.
11294         * tests/test-ftell.c: Likewise.
11295         * tests/test-ftello.c: Likewise.
11296         * tests/test-func.c: Likewise.
11297         * tests/test-futimens.c: Likewise.
11298         * tests/test-fwritable.c: Likewise.
11299         * tests/test-fwriting.c: Likewise.
11300         * tests/test-getcwd.c: Likewise.
11301         * tests/test-getdate.c: Likewise.
11302         * tests/test-getdelim.c: Likewise.
11303         * tests/test-getdtablesize.c: Likewise.
11304         * tests/test-getgroups.c: Likewise.
11305         * tests/test-getline.c: Likewise.
11306         * tests/test-getndelim2.c: Likewise.
11307         * tests/test-glob.c: Likewise.
11308         * tests/test-hash.c: Likewise.
11309         * tests/test-i-ring.c: Likewise.
11310         * tests/test-iconv-utf.c: Likewise.
11311         * tests/test-iconv.c: Likewise.
11312         * tests/test-idpriv-drop.c: Likewise.
11313         * tests/test-idpriv-droptemp.c: Likewise.
11314         * tests/test-inet_ntop.c: Likewise.
11315         * tests/test-inet_pton.c: Likewise.
11316         * tests/test-isblank.c: Likewise.
11317         * tests/test-isfinite.c: Likewise.
11318         * tests/test-isinf.c: Likewise.
11319         * tests/test-isnan.c: Likewise.
11320         * tests/test-isnand.h: Likewise.
11321         * tests/test-isnanf.h: Likewise.
11322         * tests/test-isnanl.h: Likewise.
11323         * tests/test-lchown.c: Likewise.
11324         * tests/test-ldexpl.c: Likewise.
11325         * tests/test-link.c: Likewise.
11326         * tests/test-linkat.c: Likewise.
11327         * tests/test-linked_list.c: Likewise.
11328         * tests/test-linkedhash_list.c: Likewise.
11329         * tests/test-localename.c: Likewise.
11330         * tests/test-lseek.c: Likewise.
11331         * tests/test-lstat.c: Likewise.
11332         * tests/test-mbmemcasecmp.c: Likewise.
11333         * tests/test-mbmemcasecoll.c: Likewise.
11334         * tests/test-mbrtowc.c: Likewise.
11335         * tests/test-mbscasecmp.c: Likewise.
11336         * tests/test-mbscasestr1.c: Likewise.
11337         * tests/test-mbscasestr2.c: Likewise.
11338         * tests/test-mbscasestr3.c: Likewise.
11339         * tests/test-mbscasestr4.c: Likewise.
11340         * tests/test-mbschr.c: Likewise.
11341         * tests/test-mbscspn.c: Likewise.
11342         * tests/test-mbsinit.c: Likewise.
11343         * tests/test-mbsncasecmp.c: Likewise.
11344         * tests/test-mbsnrtowcs.c: Likewise.
11345         * tests/test-mbspbrk.c: Likewise.
11346         * tests/test-mbspcasecmp.c: Likewise.
11347         * tests/test-mbsrchr.c: Likewise.
11348         * tests/test-mbsrtowcs.c: Likewise.
11349         * tests/test-mbsspn.c: Likewise.
11350         * tests/test-mbsstr1.c: Likewise.
11351         * tests/test-mbsstr2.c: Likewise.
11352         * tests/test-mbsstr3.c: Likewise.
11353         * tests/test-memchr.c: Likewise.
11354         * tests/test-memchr2.c: Likewise.
11355         * tests/test-memcmp.c: Likewise.
11356         * tests/test-memmem.c: Likewise.
11357         * tests/test-memrchr.c: Likewise.
11358         * tests/test-mkdir.c: Likewise.
11359         * tests/test-mkdirat.c: Likewise.
11360         * tests/test-mkfifo.c: Likewise.
11361         * tests/test-mkfifoat.c: Likewise.
11362         * tests/test-mknod.c: Likewise.
11363         * tests/test-nanosleep.c: Likewise.
11364         * tests/test-nl_langinfo.c: Likewise.
11365         * tests/test-obstack-printf.c: Likewise.
11366         * tests/test-open.c: Likewise.
11367         * tests/test-openat.c: Likewise.
11368         * tests/test-pipe-filter-gi1.c: Likewise.
11369         * tests/test-pipe-filter-gi2-main.c: Likewise.
11370         * tests/test-pipe-filter-ii1.c: Likewise.
11371         * tests/test-pipe-filter-ii2-main.c: Likewise.
11372         * tests/test-pipe2.c: Likewise.
11373         * tests/test-popen.h: Likewise.
11374         * tests/test-posixtm.c: Likewise.
11375         * tests/test-pread.c: Likewise.
11376         * tests/test-printf-frexp.c: Likewise.
11377         * tests/test-printf-frexpl.c: Likewise.
11378         * tests/test-printf-posix.c: Likewise.
11379         * tests/test-priv-set.c: Likewise.
11380         * tests/test-quotearg.c: Likewise.
11381         * tests/test-random_r.c: Likewise.
11382         * tests/test-rawmemchr.c: Likewise.
11383         * tests/test-rbtree_list.c: Likewise.
11384         * tests/test-rbtree_oset.c: Likewise.
11385         * tests/test-rbtreehash_list.c: Likewise.
11386         * tests/test-readlink.c: Likewise.
11387         * tests/test-remove.c: Likewise.
11388         * tests/test-rename.c: Likewise.
11389         * tests/test-renameat.c: Likewise.
11390         * tests/test-rmdir.c: Likewise.
11391         * tests/test-round1.c: Likewise.
11392         * tests/test-roundf1.c: Likewise.
11393         * tests/test-roundl.c: Likewise.
11394         * tests/test-safe-alloc.c: Likewise.
11395         * tests/test-sameacls.c: Likewise.
11396         * tests/test-set-mode-acl.c: Likewise.
11397         * tests/test-setenv.c: Likewise.
11398         * tests/test-sigaction.c: Likewise.
11399         * tests/test-signbit.c: Likewise.
11400         * tests/test-sleep.c: Likewise.
11401         * tests/test-snprintf-posix.c: Likewise.
11402         * tests/test-snprintf.c: Likewise.
11403         * tests/test-sprintf-posix.c: Likewise.
11404         * tests/test-stat-time.c: Likewise.
11405         * tests/test-stat.c: Likewise.
11406         * tests/test-strcasestr.c: Likewise.
11407         * tests/test-strchrnul.c: Likewise.
11408         * tests/test-strerror.c: Likewise.
11409         * tests/test-striconv.c: Likewise.
11410         * tests/test-striconveh.c: Likewise.
11411         * tests/test-striconveha.c: Likewise.
11412         * tests/test-strsignal.c: Likewise.
11413         * tests/test-strstr.c: Likewise.
11414         * tests/test-strtod.c: Likewise.
11415         * tests/test-strverscmp.c: Likewise.
11416         * tests/test-symlink.c: Likewise.
11417         * tests/test-symlinkat.c: Likewise.
11418         * tests/test-trunc1.c: Likewise.
11419         * tests/test-trunc2.c: Likewise.
11420         * tests/test-truncf1.c: Likewise.
11421         * tests/test-truncf2.c: Likewise.
11422         * tests/test-truncl.c: Likewise.
11423         * tests/test-uname.c: Likewise.
11424         * tests/test-unlink.c: Likewise.
11425         * tests/test-unlinkat.c: Likewise.
11426         * tests/test-unsetenv.c: Likewise.
11427         * tests/test-usleep.c: Likewise.
11428         * tests/test-utimens.c: Likewise.
11429         * tests/test-utimensat.c: Likewise.
11430         * tests/test-vasnprintf-posix.c: Likewise.
11431         * tests/test-vasnprintf-posix2.c: Likewise.
11432         * tests/test-vasnprintf.c: Likewise.
11433         * tests/test-vasprintf-posix.c: Likewise.
11434         * tests/test-vasprintf.c: Likewise.
11435         * tests/test-vdprintf-posix.c: Likewise.
11436         * tests/test-vfprintf-posix.c: Likewise.
11437         * tests/test-vprintf-posix.c: Likewise.
11438         * tests/test-vsnprintf-posix.c: Likewise.
11439         * tests/test-vsnprintf.c: Likewise.
11440         * tests/test-vsprintf-posix.c: Likewise.
11441         * tests/test-wcrtomb.c: Likewise.
11442         * tests/test-wcsnrtombs.c: Likewise.
11443         * tests/test-wcsrtombs.c: Likewise.
11444         * tests/test-wctype.c: Likewise.
11445         * tests/test-wcwidth.c: Likewise.
11446         * tests/test-xfprintf-posix.c: Likewise.
11447         * tests/test-xmemdup0.c: Likewise.
11448         * tests/test-xprintf-posix.c: Likewise.
11449         * tests/test-xvasprintf.c: Likewise.
11450         * tests/unicase/test-locale-language.c: Likewise.
11451         * tests/unicase/test-mapping-part1.h: Likewise.
11452         * tests/unicase/test-predicate-part1.h: Likewise.
11453         * tests/unicase/test-u8-casecmp.c: Likewise.
11454         * tests/unicase/test-u8-casecoll.c: Likewise.
11455         * tests/unicase/test-u8-casefold.c: Likewise.
11456         * tests/unicase/test-u8-is-cased.c: Likewise.
11457         * tests/unicase/test-u8-is-casefolded.c: Likewise.
11458         * tests/unicase/test-u8-is-lowercase.c: Likewise.
11459         * tests/unicase/test-u8-is-titlecase.c: Likewise.
11460         * tests/unicase/test-u8-is-uppercase.c: Likewise.
11461         * tests/unicase/test-u8-tolower.c: Likewise.
11462         * tests/unicase/test-u8-totitle.c: Likewise.
11463         * tests/unicase/test-u8-toupper.c: Likewise.
11464         * tests/unicase/test-u16-casecmp.c: Likewise.
11465         * tests/unicase/test-u16-casecoll.c: Likewise.
11466         * tests/unicase/test-u16-casefold.c: Likewise.
11467         * tests/unicase/test-u16-is-cased.c: Likewise.
11468         * tests/unicase/test-u16-is-casefolded.c: Likewise.
11469         * tests/unicase/test-u16-is-lowercase.c: Likewise.
11470         * tests/unicase/test-u16-is-titlecase.c: Likewise.
11471         * tests/unicase/test-u16-is-uppercase.c: Likewise.
11472         * tests/unicase/test-u16-tolower.c: Likewise.
11473         * tests/unicase/test-u16-totitle.c: Likewise.
11474         * tests/unicase/test-u16-toupper.c: Likewise.
11475         * tests/unicase/test-u32-casecmp.c: Likewise.
11476         * tests/unicase/test-u32-casecoll.c: Likewise.
11477         * tests/unicase/test-u32-casefold.c: Likewise.
11478         * tests/unicase/test-u32-is-cased.c: Likewise.
11479         * tests/unicase/test-u32-is-casefolded.c: Likewise.
11480         * tests/unicase/test-u32-is-lowercase.c: Likewise.
11481         * tests/unicase/test-u32-is-titlecase.c: Likewise.
11482         * tests/unicase/test-u32-is-uppercase.c: Likewise.
11483         * tests/unicase/test-u32-tolower.c: Likewise.
11484         * tests/unicase/test-u32-totitle.c: Likewise.
11485         * tests/unicase/test-u32-toupper.c: Likewise.
11486         * tests/unicase/test-ulc-casecmp.c: Likewise.
11487         * tests/unicase/test-ulc-casecoll.c: Likewise.
11488         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11489         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11490         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11491         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11492         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11493         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11494         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11495         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11496         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11497         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11498         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11499         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11500         * tests/unictype/test-bidi_byname.c: Likewise.
11501         * tests/unictype/test-bidi_name.c: Likewise.
11502         * tests/unictype/test-bidi_of.c: Likewise.
11503         * tests/unictype/test-bidi_test.c: Likewise.
11504         * tests/unictype/test-block_list.c: Likewise.
11505         * tests/unictype/test-block_of.c: Likewise.
11506         * tests/unictype/test-block_test.c: Likewise.
11507         * tests/unictype/test-categ_and.c: Likewise.
11508         * tests/unictype/test-categ_and_not.c: Likewise.
11509         * tests/unictype/test-categ_byname.c: Likewise.
11510         * tests/unictype/test-categ_name.c: Likewise.
11511         * tests/unictype/test-categ_none.c: Likewise.
11512         * tests/unictype/test-categ_of.c: Likewise.
11513         * tests/unictype/test-categ_or.c: Likewise.
11514         * tests/unictype/test-categ_test_withtable.c: Likewise.
11515         * tests/unictype/test-combining.c: Likewise.
11516         * tests/unictype/test-decdigit.c: Likewise.
11517         * tests/unictype/test-digit.c: Likewise.
11518         * tests/unictype/test-mirror.c: Likewise.
11519         * tests/unictype/test-numeric.c: Likewise.
11520         * tests/unictype/test-pr_byname.c: Likewise.
11521         * tests/unictype/test-pr_test.c: Likewise.
11522         * tests/unictype/test-predicate-part1.h: Likewise.
11523         * tests/unictype/test-scripts.c: Likewise.
11524         * tests/unictype/test-sy_c_ident.c: Likewise.
11525         * tests/unictype/test-sy_java_ident.c: Likewise.
11526         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
11527         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
11528         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
11529         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
11530         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
11531         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
11532         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
11533         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
11534         * tests/uninorm/test-canonical-decomposition.c: Likewise.
11535         * tests/uninorm/test-compat-decomposition.c: Likewise.
11536         * tests/uninorm/test-composition.c: Likewise.
11537         * tests/uninorm/test-decomposing-form.c: Likewise.
11538         * tests/uninorm/test-decomposition.c: Likewise.
11539         * tests/uninorm/test-u8-nfc.c: Likewise.
11540         * tests/uninorm/test-u8-nfd.c: Likewise.
11541         * tests/uninorm/test-u8-nfkc.c: Likewise.
11542         * tests/uninorm/test-u8-nfkd.c: Likewise.
11543         * tests/uninorm/test-u8-normcmp.c: Likewise.
11544         * tests/uninorm/test-u8-normcoll.c: Likewise.
11545         * tests/uninorm/test-u16-nfc.c: Likewise.
11546         * tests/uninorm/test-u16-nfd.c: Likewise.
11547         * tests/uninorm/test-u16-nfkc.c: Likewise.
11548         * tests/uninorm/test-u16-nfkd.c: Likewise.
11549         * tests/uninorm/test-u16-normcmp.c: Likewise.
11550         * tests/uninorm/test-u16-normcoll.c: Likewise.
11551         * tests/uninorm/test-u32-nfc.c: Likewise.
11552         * tests/uninorm/test-u32-nfd.c: Likewise.
11553         * tests/uninorm/test-u32-nfkc.c: Likewise.
11554         * tests/uninorm/test-u32-nfkd.c: Likewise.
11555         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11556         * tests/uninorm/test-u32-normcmp.c: Likewise.
11557         * tests/uninorm/test-u32-normcoll.c: Likewise.
11558         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
11559         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11560         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11561         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11562         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11563         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11564         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11565         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11566         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11567         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11568         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11569         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11570         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11571         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11572         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11573         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11574         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11575         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11576         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11577         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11578         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11579         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11580         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11581         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11582         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11583         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11584         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11585         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11586         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11587         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
11588         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
11589         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
11590         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
11591         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11592         * tests/uniwidth/test-u8-width.c: Likewise.
11593         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11594         * tests/uniwidth/test-u16-width.c: Likewise.
11595         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11596         * tests/uniwidth/test-u32-width.c: Likewise.
11597         * tests/uniwidth/test-uc_width.c: Likewise.
11598         * tests/uniwidth/test-uc_width2.c: Likewise.
11599         * modules/acl-tests (Files): Add tests/macros.h.
11600         * modules/areadlink-tests (Files): Likewise.
11601         * modules/areadlink-with-size-tests (Files): Likewise.
11602         * modules/areadlinkat-tests (Files): Likewise.
11603         * modules/areadlinkat-with-size-tests (Files): Likewise.
11604         * modules/argmatch-tests (Files): Likewise.
11605         * modules/argv-iter-tests (Files): Likewise.
11606         * modules/array-list-tests (Files): Likewise.
11607         * modules/array-mergesort-tests (Files): Likewise.
11608         * modules/array-oset-tests (Files): Likewise.
11609         * modules/avltree-list-tests (Files): Likewise.
11610         * modules/avltree-oset-tests (Files): Likewise.
11611         * modules/avltreehash-list-tests (Files): Likewise.
11612         * modules/base64-tests (Files): Likewise.
11613         * modules/binary-io-tests (Files): Likewise.
11614         * modules/bitrotate-tests (Files): Likewise.
11615         * modules/btowc-tests (Files): Likewise.
11616         * modules/byteswap-tests (Files): Likewise.
11617         * modules/c-ctype-tests (Files): Likewise.
11618         * modules/c-stack-tests (Files): Likewise.
11619         * modules/c-strcase-tests (Files): Likewise.
11620         * modules/c-strcasestr-tests (Files): Likewise.
11621         * modules/c-strstr-tests (Files): Likewise.
11622         * modules/canonicalize-lgpl-tests (Files): Likewise.
11623         * modules/canonicalize-tests (Files): Likewise.
11624         * modules/carray-list-tests (Files): Likewise.
11625         * modules/ceilf-tests (Files): Likewise.
11626         * modules/ceill-tests (Files): Likewise.
11627         * modules/chown-tests (Files): Likewise.
11628         * modules/cloexec-tests (Files): Likewise.
11629         * modules/copy-file-tests (Files): Likewise.
11630         * modules/count-one-bits-tests (Files): Likewise.
11631         * modules/dprintf-posix-tests (Files): Likewise.
11632         * modules/dup2-tests (Files): Likewise.
11633         * modules/dup3-tests (Files): Likewise.
11634         * modules/duplocale-tests (Files): Likewise.
11635         * modules/fbufmode-tests (Files): Likewise.
11636         * modules/fchdir-tests (Files): Likewise.
11637         * modules/fcntl-safer-tests (Files): Likewise.
11638         * modules/fcntl-tests (Files): Likewise.
11639         * modules/fdopendir-tests (Files): Likewise.
11640         * modules/fdutimensat-tests (Files): Likewise.
11641         * modules/fflush-tests (Files): Likewise.
11642         * modules/filevercmp-tests (Files): Likewise.
11643         * modules/flock-tests (Files): Likewise.
11644         * modules/floorf-tests (Files): Likewise.
11645         * modules/floorl-tests (Files): Likewise.
11646         * modules/fnmatch-tests (Files): Likewise.
11647         * modules/fopen-safer-tests (Files): Likewise.
11648         * modules/fopen-tests (Files): Likewise.
11649         * modules/fpending-tests (Files): Likewise.
11650         * modules/fprintf-posix-tests (Files): Likewise.
11651         * modules/fpurge-tests (Files): Likewise.
11652         * modules/freadable-tests (Files): Likewise.
11653         * modules/freadahead-tests (Files): Likewise.
11654         * modules/freading-tests (Files): Likewise.
11655         * modules/freadptr-tests (Files): Likewise.
11656         * modules/freadseek-tests (Files): Likewise.
11657         * modules/freopen-tests (Files): Likewise.
11658         * modules/frexp-nolibm-tests (Files): Likewise.
11659         * modules/frexp-tests (Files): Likewise.
11660         * modules/frexpl-nolibm-tests (Files): Likewise.
11661         * modules/frexpl-tests (Files): Likewise.
11662         * modules/fseek-tests (Files): Likewise.
11663         * modules/fseeko-tests (Files): Likewise.
11664         * modules/fstrcmp-tests (Files): Likewise.
11665         * modules/fsync-tests (Files): Likewise.
11666         * modules/ftell-tests (Files): Likewise.
11667         * modules/ftello-tests (Files): Likewise.
11668         * modules/func-tests (Files): Likewise.
11669         * modules/futimens-tests (Files): Likewise.
11670         * modules/fwritable-tests (Files): Likewise.
11671         * modules/fwriting-tests (Files): Likewise.
11672         * modules/getcwd-tests (Files): Likewise.
11673         * modules/getdate-tests (Files): Likewise.
11674         * modules/getdelim-tests (Files): Likewise.
11675         * modules/getdtablesize-tests (Files): Likewise.
11676         * modules/getgroups-tests (Files): Likewise.
11677         * modules/getline-tests (Files): Likewise.
11678         * modules/getndelim2-tests (Files): Likewise.
11679         * modules/glob-tests (Files): Likewise.
11680         * modules/hash-tests (Files): Likewise.
11681         * modules/i-ring-tests (Files): Likewise.
11682         * modules/iconv-tests (Files): Likewise.
11683         * modules/iconv_open-utf-tests (Files): Likewise.
11684         * modules/idpriv-drop-tests (Files): Likewise.
11685         * modules/idpriv-droptemp-tests (Files): Likewise.
11686         * modules/inet_ntop-tests (Files): Likewise.
11687         * modules/inet_pton-tests (Files): Likewise.
11688         * modules/isblank-tests (Files): Likewise.
11689         * modules/isfinite-tests (Files): Likewise.
11690         * modules/isinf-tests (Files): Likewise.
11691         * modules/isnan-tests (Files): Likewise.
11692         * modules/isnand-nolibm-tests (Files): Likewise.
11693         * modules/isnand-tests (Files): Likewise.
11694         * modules/isnanf-nolibm-tests (Files): Likewise.
11695         * modules/isnanf-tests (Files): Likewise.
11696         * modules/isnanl-nolibm-tests (Files): Likewise.
11697         * modules/isnanl-tests (Files): Likewise.
11698         * modules/lchown-tests (Files): Likewise.
11699         * modules/ldexpl-tests (Files): Likewise.
11700         * modules/link-tests (Files): Likewise.
11701         * modules/linkat-tests (Files): Likewise.
11702         * modules/linked-list-tests (Files): Likewise.
11703         * modules/linkedhash-list-tests (Files): Likewise.
11704         * modules/localename-tests (Files): Likewise.
11705         * modules/lseek-tests (Files): Likewise.
11706         * modules/lstat-tests (Files): Likewise.
11707         * modules/mbmemcasecmp-tests (Files): Likewise.
11708         * modules/mbmemcasecoll-tests (Files): Likewise.
11709         * modules/mbrtowc-tests (Files): Likewise.
11710         * modules/mbscasecmp-tests (Files): Likewise.
11711         * modules/mbscasestr-tests (Files): Likewise.
11712         * modules/mbschr-tests (Files): Likewise.
11713         * modules/mbscspn-tests (Files): Likewise.
11714         * modules/mbsinit-tests (Files): Likewise.
11715         * modules/mbsncasecmp-tests (Files): Likewise.
11716         * modules/mbsnrtowcs-tests (Files): Likewise.
11717         * modules/mbspbrk-tests (Files): Likewise.
11718         * modules/mbspcasecmp-tests (Files): Likewise.
11719         * modules/mbsrchr-tests (Files): Likewise.
11720         * modules/mbsrtowcs-tests (Files): Likewise.
11721         * modules/mbsspn-tests (Files): Likewise.
11722         * modules/mbsstr-tests (Files): Likewise.
11723         * modules/memchr-tests (Files): Likewise.
11724         * modules/memchr2-tests (Files): Likewise.
11725         * modules/memcmp-tests (Files): Likewise.
11726         * modules/memmem-tests (Files): Likewise.
11727         * modules/memrchr-tests (Files): Likewise.
11728         * modules/mkdir-tests (Files): Likewise.
11729         * modules/mkfifo-tests (Files): Likewise.
11730         * modules/mkfifoat-tests (Files): Likewise.
11731         * modules/mknod-tests (Files): Likewise.
11732         * modules/nanosleep-tests (Files): Likewise.
11733         * modules/nl_langinfo-tests (Files): Likewise.
11734         * modules/obstack-printf-tests (Files): Likewise.
11735         * modules/open-tests (Files): Likewise.
11736         * modules/openat-tests (Files): Likewise.
11737         * modules/pipe-filter-gi-tests (Files): Likewise.
11738         * modules/pipe-filter-ii-tests (Files): Likewise.
11739         * modules/pipe2-tests (Files): Likewise.
11740         * modules/popen-safer-tests (Files): Likewise.
11741         * modules/popen-tests (Files): Likewise.
11742         * modules/posixtm-tests (Files): Likewise.
11743         * modules/pread-tests (Files): Likewise.
11744         * modules/printf-frexp-tests (Files): Likewise.
11745         * modules/printf-frexpl-tests (Files): Likewise.
11746         * modules/printf-posix-tests (Files): Likewise.
11747         * modules/priv-set-tests (Files): Likewise.
11748         * modules/quotearg-tests (Files): Likewise.
11749         * modules/random_r-tests (Files): Likewise.
11750         * modules/rawmemchr-tests (Files): Likewise.
11751         * modules/rbtree-list-tests (Files): Likewise.
11752         * modules/rbtree-oset-tests (Files): Likewise.
11753         * modules/rbtreehash-list-tests (Files): Likewise.
11754         * modules/readlink-tests (Files): Likewise.
11755         * modules/remove-tests (Files): Likewise.
11756         * modules/rename-tests (Files): Likewise.
11757         * modules/renameat-tests (Files): Likewise.
11758         * modules/rmdir-tests (Files): Likewise.
11759         * modules/round-tests (Files): Likewise.
11760         * modules/roundf-tests (Files): Likewise.
11761         * modules/roundl-tests (Files): Likewise.
11762         * modules/safe-alloc-tests (Files): Likewise.
11763         * modules/setenv-tests (Files): Likewise.
11764         * modules/sigaction-tests (Files): Likewise.
11765         * modules/signbit-tests (Files): Likewise.
11766         * modules/sleep-tests (Files): Likewise.
11767         * modules/snprintf-posix-tests (Files): Likewise.
11768         * modules/snprintf-tests (Files): Likewise.
11769         * modules/sprintf-posix-tests (Files): Likewise.
11770         * modules/stat-tests (Files): Likewise.
11771         * modules/stat-time-tests (Files): Likewise.
11772         * modules/strcasestr-tests (Files): Likewise.
11773         * modules/strchrnul-tests (Files): Likewise.
11774         * modules/strerror-tests (Files): Likewise.
11775         * modules/striconv-tests (Files): Likewise.
11776         * modules/striconveh-tests (Files): Likewise.
11777         * modules/striconveha-tests (Files): Likewise.
11778         * modules/strsignal-tests (Files): Likewise.
11779         * modules/strstr-tests (Files): Likewise.
11780         * modules/strtod-tests (Files): Likewise.
11781         * modules/strverscmp-tests (Files): Likewise.
11782         * modules/symlink-tests (Files): Likewise.
11783         * modules/symlinkat-tests (Files): Likewise.
11784         * modules/trunc-tests (Files): Likewise.
11785         * modules/truncf-tests (Files): Likewise.
11786         * modules/truncl-tests (Files): Likewise.
11787         * modules/uname-tests (Files): Likewise.
11788         * modules/unicase/cased-tests (Files): Likewise.
11789         * modules/unicase/ignorable-tests (Files): Likewise.
11790         * modules/unicase/locale-language-tests (Files): Likewise.
11791         * modules/unicase/tolower-tests (Files): Likewise.
11792         * modules/unicase/totitle-tests (Files): Likewise.
11793         * modules/unicase/toupper-tests (Files): Likewise.
11794         * modules/unicase/u8-casecmp-tests (Files): Likewise.
11795         * modules/unicase/u8-casecoll-tests (Files): Likewise.
11796         * modules/unicase/u8-casefold-tests (Files): Likewise.
11797         * modules/unicase/u8-is-cased-tests (Files): Likewise.
11798         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
11799         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
11800         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
11801         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
11802         * modules/unicase/u8-tolower-tests (Files): Likewise.
11803         * modules/unicase/u8-totitle-tests (Files): Likewise.
11804         * modules/unicase/u8-toupper-tests (Files): Likewise.
11805         * modules/unicase/u16-casecmp-tests (Files): Likewise.
11806         * modules/unicase/u16-casecoll-tests (Files): Likewise.
11807         * modules/unicase/u16-casefold-tests (Files): Likewise.
11808         * modules/unicase/u16-is-cased-tests (Files): Likewise.
11809         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
11810         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
11811         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
11812         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
11813         * modules/unicase/u16-tolower-tests (Files): Likewise.
11814         * modules/unicase/u16-totitle-tests (Files): Likewise.
11815         * modules/unicase/u16-toupper-tests (Files): Likewise.
11816         * modules/unicase/u32-casecmp-tests (Files): Likewise.
11817         * modules/unicase/u32-casecoll-tests (Files): Likewise.
11818         * modules/unicase/u32-casefold-tests (Files): Likewise.
11819         * modules/unicase/u32-is-cased-tests (Files): Likewise.
11820         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
11821         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
11822         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
11823         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
11824         * modules/unicase/u32-tolower-tests (Files): Likewise.
11825         * modules/unicase/u32-totitle-tests (Files): Likewise.
11826         * modules/unicase/u32-toupper-tests (Files): Likewise.
11827         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
11828         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
11829         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
11830         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
11831         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
11832         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
11833         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
11834         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
11835         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
11836         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
11837         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
11838         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
11839         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
11840         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
11841         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
11842         * modules/unictype/bidicategory-name-tests (Files): Likewise.
11843         * modules/unictype/bidicategory-of-tests (Files): Likewise.
11844         * modules/unictype/bidicategory-test-tests (Files): Likewise.
11845         * modules/unictype/block-list-tests (Files): Likewise.
11846         * modules/unictype/block-of-tests (Files): Likewise.
11847         * modules/unictype/block-test-tests (Files): Likewise.
11848         * modules/unictype/category-C-tests (Files): Likewise.
11849         * modules/unictype/category-Cc-tests (Files): Likewise.
11850         * modules/unictype/category-Cf-tests (Files): Likewise.
11851         * modules/unictype/category-Cn-tests (Files): Likewise.
11852         * modules/unictype/category-Co-tests (Files): Likewise.
11853         * modules/unictype/category-Cs-tests (Files): Likewise.
11854         * modules/unictype/category-L-tests (Files): Likewise.
11855         * modules/unictype/category-Ll-tests (Files): Likewise.
11856         * modules/unictype/category-Lm-tests (Files): Likewise.
11857         * modules/unictype/category-Lo-tests (Files): Likewise.
11858         * modules/unictype/category-Lt-tests (Files): Likewise.
11859         * modules/unictype/category-Lu-tests (Files): Likewise.
11860         * modules/unictype/category-M-tests (Files): Likewise.
11861         * modules/unictype/category-Mc-tests (Files): Likewise.
11862         * modules/unictype/category-Me-tests (Files): Likewise.
11863         * modules/unictype/category-Mn-tests (Files): Likewise.
11864         * modules/unictype/category-N-tests (Files): Likewise.
11865         * modules/unictype/category-Nd-tests (Files): Likewise.
11866         * modules/unictype/category-Nl-tests (Files): Likewise.
11867         * modules/unictype/category-No-tests (Files): Likewise.
11868         * modules/unictype/category-P-tests (Files): Likewise.
11869         * modules/unictype/category-Pc-tests (Files): Likewise.
11870         * modules/unictype/category-Pd-tests (Files): Likewise.
11871         * modules/unictype/category-Pe-tests (Files): Likewise.
11872         * modules/unictype/category-Pf-tests (Files): Likewise.
11873         * modules/unictype/category-Pi-tests (Files): Likewise.
11874         * modules/unictype/category-Po-tests (Files): Likewise.
11875         * modules/unictype/category-Ps-tests (Files): Likewise.
11876         * modules/unictype/category-S-tests (Files): Likewise.
11877         * modules/unictype/category-Sc-tests (Files): Likewise.
11878         * modules/unictype/category-Sk-tests (Files): Likewise.
11879         * modules/unictype/category-Sm-tests (Files): Likewise.
11880         * modules/unictype/category-So-tests (Files): Likewise.
11881         * modules/unictype/category-Z-tests (Files): Likewise.
11882         * modules/unictype/category-Zl-tests (Files): Likewise.
11883         * modules/unictype/category-Zp-tests (Files): Likewise.
11884         * modules/unictype/category-Zs-tests (Files): Likewise.
11885         * modules/unictype/category-and-not-tests (Files): Likewise.
11886         * modules/unictype/category-and-tests (Files): Likewise.
11887         * modules/unictype/category-byname-tests (Files): Likewise.
11888         * modules/unictype/category-name-tests (Files): Likewise.
11889         * modules/unictype/category-none-tests (Files): Likewise.
11890         * modules/unictype/category-of-tests (Files): Likewise.
11891         * modules/unictype/category-or-tests (Files): Likewise.
11892         * modules/unictype/category-test-withtable-tests (Files): Likewise.
11893         * modules/unictype/combining-class-tests (Files): Likewise.
11894         * modules/unictype/ctype-alnum-tests (Files): Likewise.
11895         * modules/unictype/ctype-alpha-tests (Files): Likewise.
11896         * modules/unictype/ctype-blank-tests (Files): Likewise.
11897         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
11898         * modules/unictype/ctype-digit-tests (Files): Likewise.
11899         * modules/unictype/ctype-graph-tests (Files): Likewise.
11900         * modules/unictype/ctype-lower-tests (Files): Likewise.
11901         * modules/unictype/ctype-print-tests (Files): Likewise.
11902         * modules/unictype/ctype-punct-tests (Files): Likewise.
11903         * modules/unictype/ctype-space-tests (Files): Likewise.
11904         * modules/unictype/ctype-upper-tests (Files): Likewise.
11905         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
11906         * modules/unictype/decimal-digit-tests (Files): Likewise.
11907         * modules/unictype/digit-tests (Files): Likewise.
11908         * modules/unictype/mirror-tests (Files): Likewise.
11909         * modules/unictype/numeric-tests (Files): Likewise.
11910         * modules/unictype/property-alphabetic-tests (Files): Likewise.
11911         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
11912         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
11913         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
11914         Likewise.
11915         * modules/unictype/property-bidi-block-separator-tests (Files):
11916         Likewise.
11917         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
11918         Likewise.
11919         * modules/unictype/property-bidi-common-separator-tests (Files):
11920         Likewise.
11921         * modules/unictype/property-bidi-control-tests (Files): Likewise.
11922         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
11923         Likewise.
11924         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
11925         Likewise.
11926         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
11927         Likewise.
11928         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
11929         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
11930         Likewise.
11931         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
11932         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
11933         Likewise.
11934         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
11935         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
11936         * modules/unictype/property-bidi-segment-separator-tests (Files):
11937         Likewise.
11938         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
11939         * modules/unictype/property-byname-tests (Files): Likewise.
11940         * modules/unictype/property-combining-tests (Files): Likewise.
11941         * modules/unictype/property-composite-tests (Files): Likewise.
11942         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
11943         * modules/unictype/property-dash-tests (Files): Likewise.
11944         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
11945         * modules/unictype/property-default-ignorable-code-point-tests (Files):
11946         Likewise.
11947         * modules/unictype/property-deprecated-tests (Files): Likewise.
11948         * modules/unictype/property-diacritic-tests (Files): Likewise.
11949         * modules/unictype/property-extender-tests (Files): Likewise.
11950         * modules/unictype/property-format-control-tests (Files): Likewise.
11951         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
11952         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
11953         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
11954         * modules/unictype/property-hex-digit-tests (Files): Likewise.
11955         * modules/unictype/property-hyphen-tests (Files): Likewise.
11956         * modules/unictype/property-id-continue-tests (Files): Likewise.
11957         * modules/unictype/property-id-start-tests (Files): Likewise.
11958         * modules/unictype/property-ideographic-tests (Files): Likewise.
11959         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
11960         * modules/unictype/property-ids-trinary-operator-tests (Files):
11961         Likewise.
11962         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
11963         * modules/unictype/property-iso-control-tests (Files): Likewise.
11964         * modules/unictype/property-join-control-tests (Files): Likewise.
11965         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
11966         * modules/unictype/property-line-separator-tests (Files): Likewise.
11967         * modules/unictype/property-logical-order-exception-tests (Files):
11968         Likewise.
11969         * modules/unictype/property-lowercase-tests (Files): Likewise.
11970         * modules/unictype/property-math-tests (Files): Likewise.
11971         * modules/unictype/property-non-break-tests (Files): Likewise.
11972         * modules/unictype/property-not-a-character-tests (Files): Likewise.
11973         * modules/unictype/property-numeric-tests (Files): Likewise.
11974         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
11975         * modules/unictype/property-other-default-ignorable-code-point-tests
11976         (Files): Likewise.
11977         * modules/unictype/property-other-grapheme-extend-tests (Files):
11978         Likewise.
11979         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
11980         * modules/unictype/property-other-id-start-tests (Files): Likewise.
11981         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
11982         * modules/unictype/property-other-math-tests (Files): Likewise.
11983         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
11984         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
11985         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
11986         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
11987         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
11988         * modules/unictype/property-private-use-tests (Files): Likewise.
11989         * modules/unictype/property-punctuation-tests (Files): Likewise.
11990         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
11991         * modules/unictype/property-radical-tests (Files): Likewise.
11992         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
11993         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
11994         * modules/unictype/property-space-tests (Files): Likewise.
11995         * modules/unictype/property-terminal-punctuation-tests (Files):
11996         Likewise.
11997         * modules/unictype/property-test-tests (Files): Likewise.
11998         * modules/unictype/property-titlecase-tests (Files): Likewise.
11999         * modules/unictype/property-unassigned-code-value-tests (Files):
12000         Likewise.
12001         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12002         * modules/unictype/property-uppercase-tests (Files): Likewise.
12003         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12004         * modules/unictype/property-white-space-tests (Files): Likewise.
12005         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12006         * modules/unictype/property-xid-start-tests (Files): Likewise.
12007         * modules/unictype/property-zero-width-tests (Files): Likewise.
12008         * modules/unictype/scripts-tests (Files): Likewise.
12009         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12010         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12011         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12012         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12013         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12014         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12015         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12016         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12017         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12018         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12019         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12020         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12021         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12022         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12023         * modules/uninorm/composition-tests (Files): Likewise.
12024         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12025         * modules/uninorm/decomposition-tests (Files): Likewise.
12026         * modules/uninorm/filter-tests (Files): Likewise.
12027         * modules/uninorm/nfc-tests (Files): Likewise.
12028         * modules/uninorm/nfd-tests (Files): Likewise.
12029         * modules/uninorm/nfkc-tests (Files): Likewise.
12030         * modules/uninorm/nfkd-tests (Files): Likewise.
12031         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12032         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12033         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12034         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12035         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12036         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12037         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12038         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12039         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12040         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12041         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12042         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12043         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12044         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12045         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12046         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12047         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12048         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12049         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12050         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12051         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12052         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12053         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12054         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12055         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12056         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12057         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12058         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12059         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12060         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12061         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12062         * modules/uniwidth/u8-width-tests (Files): Likewise.
12063         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12064         * modules/uniwidth/u16-width-tests (Files): Likewise.
12065         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12066         * modules/uniwidth/u32-width-tests (Files): Likewise.
12067         * modules/uniwidth/width-tests (Files): Likewise.
12068         * modules/unlink-tests (Files): Likewise.
12069         * modules/unsetenv-tests (Files): Likewise.
12070         * modules/usleep-tests (Files): Likewise.
12071         * modules/utimens-tests (Files): Likewise.
12072         * modules/utimensat-tests (Files): Likewise.
12073         * modules/vasnprintf-posix-tests (Files): Likewise.
12074         * modules/vasnprintf-tests (Files): Likewise.
12075         * modules/vasprintf-posix-tests (Files): Likewise.
12076         * modules/vasprintf-tests (Files): Likewise.
12077         * modules/vdprintf-posix-tests (Files): Likewise.
12078         * modules/vfprintf-posix-tests (Files): Likewise.
12079         * modules/vprintf-posix-tests (Files): Likewise.
12080         * modules/vsnprintf-posix-tests (Files): Likewise.
12081         * modules/vsnprintf-tests (Files): Likewise.
12082         * modules/vsprintf-posix-tests (Files): Likewise.
12083         * modules/wcrtomb-tests (Files): Likewise.
12084         * modules/wcsnrtombs-tests (Files): Likewise.
12085         * modules/wcsrtombs-tests (Files): Likewise.
12086         * modules/wctype-tests (Files): Likewise.
12087         * modules/wcwidth-tests (Files): Likewise.
12088         * modules/xmemdup0-tests (Files): Likewise.
12089         * modules/xprintf-posix-tests (Files): Likewise.
12090         * modules/xvasprintf-tests (Files): Likewise.
12091
12092 2009-12-24  Eric Blake  <ebb9@byu.net>
12093
12094         test-nanosleep: fix typo
12095         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12096         patch.
12097         Reported by Bruno Haible.
12098
12099 2009-12-24  Bruno Haible  <bruno@clisp.org>
12100
12101         Reduce namespace pollution on glibc systems.
12102         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12103         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12104         systems.
12105         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12106         <getopt.h> on glibc systems.
12107         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12108         systems.
12109         * lib/fcntl.c: Include <unistd.h> here instead.
12110
12111 2009-12-24  Bruno Haible  <bruno@clisp.org>
12112
12113         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12114
12115 2009-12-24  Eric Blake  <ebb9@byu.net>
12116
12117         tests: add signature checks
12118         * tests/signature.h (SIGNATURE_CHECK): New file.
12119         * modules/atexit-tests (Files): Use it.
12120         * modules/btowc-tests (Files): Likewise.
12121         * modules/canonicalize-lgpl-tests (Files): Likewise.
12122         * modules/ceilf-tests (Files): Likewise.
12123         * modules/ceill-tests (Files): Likewise.
12124         * modules/chown-tests (Files): Likewise.
12125         * modules/dprintf-posix-tests (Files): Likewise.
12126         * modules/dup2-tests (Files): Likewise.
12127         * modules/dup3-tests (Files): Likewise.
12128         * modules/duplocale-tests (Files): Likewise.
12129         * modules/fchdir-tests (Files): Likewise.
12130         * modules/fcntl-tests (Files): Likewise.
12131         * modules/fdopendir-tests (Files): Likewise.
12132         * modules/fflush-tests (Files): Likewise.
12133         * modules/flock-tests (Files): Likewise.
12134         * modules/floorf-tests (Files): Likewise.
12135         * modules/floorl-tests (Files): Likewise.
12136         * modules/fnmatch-tests (Files): Likewise.
12137         * modules/fopen-tests (Files): Likewise.
12138         * modules/fprintf-posix-tests (Files): Likewise.
12139         * modules/freopen-tests (Files): Likewise.
12140         * modules/frexp-nolibm-tests (Files): Likewise.
12141         * modules/frexp-tests (Files): Likewise.
12142         * modules/frexpl-nolibm-tests (Files): Likewise.
12143         * modules/frexpl-tests (Files): Likewise.
12144         * modules/fseek-tests (Files): Likewise.
12145         * modules/fseeko-tests (Files): Likewise.
12146         * modules/fsync-tests (Files): Likewise.
12147         * modules/ftell-tests (Files): Likewise.
12148         * modules/ftello-tests (Files): Likewise.
12149         * modules/futimens-tests (Files): Likewise.
12150         * modules/getaddrinfo-tests (Files): Likewise.
12151         * modules/getcwd-tests (Files): Likewise.
12152         * modules/getdelim-tests (Files): Likewise.
12153         * modules/getdtablesize-tests (Files): Likewise.
12154         * modules/getgroups-tests (Files): Likewise.
12155         * modules/gethostname-tests (Files): Likewise.
12156         * modules/getline-tests (Files): Likewise.
12157         * modules/getopt-posix-tests (Files): Likewise.
12158         * modules/gettimeofday-tests (Files): Likewise.
12159         * modules/glob-tests (Files): Likewise.
12160         * modules/iconv-tests (Files): Likewise.
12161         * modules/inet_ntop-tests (Files): Likewise.
12162         * modules/inet_pton-tests (Files): Likewise.
12163         * modules/isblank-tests (Files): Likewise.
12164         * modules/lchown-tests (Files): Likewise.
12165         * modules/ldexpl-tests (Files): Likewise.
12166         * modules/link-tests (Files): Likewise.
12167         * modules/linkat-tests (Files): Likewise.
12168         * modules/lseek-tests (Files): Likewise.
12169         * modules/lstat-tests (Files): Likewise.
12170         * modules/mbrtowc-tests (Files): Likewise.
12171         * modules/mbsinit-tests (Files): Likewise.
12172         * modules/mbsnrtowcs-tests (Files): Likewise.
12173         * modules/mbsrtowcs-tests (Files): Likewise.
12174         * modules/memchr-tests (Files): Likewise.
12175         * modules/memcmp-tests (Files): Likewise.
12176         * modules/memmem-tests (Files): Likewise.
12177         * modules/memrchr-tests (Files): Likewise.
12178         * modules/mkdir-tests (Files): Likewise.
12179         * modules/mkfifo-tests (Files): Likewise.
12180         * modules/mkfifoat-tests (Files): Likewise.
12181         * modules/mknod-tests (Files): Likewise.
12182         * modules/nanosleep-tests (Files): Likewise.
12183         * modules/nl_langinfo-tests (Files): Likewise.
12184         * modules/obstack-printf-tests (Files): Likewise.
12185         * modules/open-tests (Files): Likewise.
12186         * modules/openat-tests (Files): Likewise.
12187         * modules/perror-tests (Files): Likewise.
12188         * modules/pipe2-tests (Files): Likewise.
12189         * modules/poll-tests (Files): Likewise.
12190         * modules/popen-tests (Files): Likewise.
12191         * modules/posix_spawn-tests (Files): Likewise.
12192         * modules/posix_spawnp-tests (Files): Likewise.
12193         * modules/pread-tests (Files): Likewise.
12194         * modules/printf-posix-tests (Files): Likewise.
12195         * modules/pty-tests (Files): Likewise.
12196         * modules/random_r-tests (Files): Likewise.
12197         * modules/rawmemchr-tests (Files): Likewise.
12198         * modules/readlink-tests (Files): Likewise.
12199         * modules/remove-tests (Files): Likewise.
12200         * modules/rename-tests (Files): Likewise.
12201         * modules/renameat-tests (Files): Likewise.
12202         * modules/rmdir-tests (Files): Likewise.
12203         * modules/round-tests (Files): Likewise.
12204         * modules/roundf-tests (Files): Likewise.
12205         * modules/roundl-tests (Files): Likewise.
12206         * modules/select-tests (Files): Likewise.
12207         * modules/setenv-tests (Files): Likewise.
12208         * modules/sigaction-tests (Files): Likewise.
12209         * modules/sleep-tests (Files): Likewise.
12210         * modules/snprintf-posix-tests (Files): Likewise.
12211         * modules/snprintf-tests (Files): Likewise.
12212         * modules/sprintf-posix-tests (Files): Likewise.
12213         * modules/stat-tests (Files): Likewise.
12214         * modules/strcasestr-tests (Files): Likewise.
12215         * modules/strchrnul-tests (Files): Likewise.
12216         * modules/strerror-tests (Files): Likewise.
12217         * modules/strsignal-tests (Files): Likewise.
12218         * modules/strstr-tests (Files): Likewise.
12219         * modules/strtod-tests (Files): Likewise.
12220         * modules/strverscmp-tests (Files): Likewise.
12221         * modules/symlink-tests (Files): Likewise.
12222         * modules/symlinkat-tests (Files): Likewise.
12223         * modules/times-tests (Files): Likewise.
12224         * modules/trunc-tests (Files): Likewise.
12225         * modules/truncf-tests (Files): Likewise.
12226         * modules/truncl-tests (Files): Likewise.
12227         * modules/tsearch-tests (Files): Likewise.
12228         * modules/uname-tests (Files): Likewise.
12229         * modules/unlink-tests (Files): Likewise.
12230         * modules/unsetenv-tests (Files): Likewise.
12231         * modules/usleep-tests (Files): Likewise.
12232         * modules/utimensat-tests (Files): Likewise.
12233         * modules/vasprintf-tests (Files): Likewise.
12234         * modules/vdprintf-posix-tests (Files): Likewise.
12235         * modules/vfprintf-posix-tests (Files): Likewise.
12236         * modules/vprintf-posix-tests (Files): Likewise.
12237         * modules/vsnprintf-posix-tests (Files): Likewise.
12238         * modules/vsnprintf-tests (Files): Likewise.
12239         * modules/vsprintf-posix-tests (Files): Likewise.
12240         * modules/wcrtomb-tests (Files): Likewise.
12241         * modules/wcsnrtombs-tests (Files): Likewise.
12242         * modules/wcsrtombs-tests (Files): Likewise.
12243         * modules/wcwidth-tests (Files): Likewise.
12244         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
12245         * tests/test-isinf.c (isinf): Likewise.
12246         * tests/test-isnan.c (isnan): Likewise.
12247         * tests/test-signbit.c (signbit): Likewise.
12248         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
12249         declaration, either as macro or with correct signature.
12250         (select): Ensure function under test is declared with correct
12251         signature in correct header.
12252         * tests/test-atexit.c (atexit): Likewise.
12253         * tests/test-btowc.c (btowc): Likewise.
12254         * tests/test-canonicalize-lgpl.c (realpath)
12255         (canonicalize_file_name): Likewise.
12256         * tests/test-ceilf1.c (ceilf): Likewise.
12257         * tests/test-ceill.c (ceill): Likewise.
12258         * tests/test-chown.c (chown): Likewise.
12259         * tests/test-dprintf-posix.c (dprintf): Likewise.
12260         * tests/test-dup2.c (dup2): Likewise.
12261         * tests/test-dup3.c (dup3): Likewise.
12262         * tests/test-duplocale.c (duplocale): Likewise.
12263         * tests/test-fchdir.c (fchdir): Likewise.
12264         * tests/test-fchownat.c (fchownat): Likewise.
12265         * tests/test-fcntl.c (fcntl): Likewise.
12266         * tests/test-fdopendir.c (fdopendir): Likewise.
12267         * tests/test-fflush.c (fflush): Likewise.
12268         * tests/test-flock.c (flock): Likewise.
12269         * tests/test-floorf1.c (floorf): Likewise.
12270         * tests/test-floorl.c (floorl): Likewise.
12271         * tests/test-fnmatch.c (fnmatch): Likewise.
12272         * tests/test-fopen.c (fopen): Likewise.
12273         * tests/test-fprintf-posix.c (fprintf): Likewise.
12274         * tests/test-freopen.c (freopen): Likewise.
12275         * tests/test-frexp.c (frexp): Likewise.
12276         * tests/test-frexpl.c (frexpl): Likewise.
12277         * tests/test-fseek.c (fseek): Likewise.
12278         * tests/test-fseeko.c (fseeko): Likewise.
12279         * tests/test-fstatat.c (fstatat): Likewise.
12280         * tests/test-fsync.c (fsync): Likewise.
12281         * tests/test-ftell.c (ftell): Likewise.
12282         * tests/test-ftello.c (ftello): Likewise.
12283         * tests/test-futimens.c (futimens): Likewise.
12284         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12285         (gai_strerror): Likewise.
12286         * tests/test-getcwd.c (getcwd): Likewise.
12287         * tests/test-getdelim.c (getdelim): Likewise.
12288         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12289         * tests/test-getgroups.c (getgroups): Likewise.
12290         * tests/test-gethostname.c (gethostname): Likewise.
12291         * tests/test-getline.c (getline): Likewise.
12292         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12293         Likewise.
12294         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12295         * tests/test-glob.c (glob, globfree): Likewise.
12296         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12297         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12298         * tests/test-inet_pton.c (inet_pton): Likewise.
12299         * tests/test-isblank.c (isblank): Likewise.
12300         * tests/test-lchown.c (lchown): Likewise.
12301         * tests/test-ldexpl.c (ldexpl): Likewise.
12302         * tests/test-link.c (link): Likewise.
12303         * tests/test-linkat.c (linkat): Likewise.
12304         * tests/test-lseek.c (lseek): Likewise.
12305         * tests/test-lstat.c (lstat): Likewise.
12306         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12307         * tests/test-mbsinit.c (mbsinit): Likewise.
12308         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12309         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12310         * tests/test-memchr.c (memchr): Likewise.
12311         * tests/test-memcmp.c (memcmp): Likewise.
12312         * tests/test-memmem.c (memmem): Likewise.
12313         * tests/test-memrchr.c (memrchr): Likewise.
12314         * tests/test-mkdir.c (mkdir): Likewise.
12315         * tests/test-mkdirat.c (mkdirat): Likewise.
12316         * tests/test-mkfifo.c (mkfifo): Likewise.
12317         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12318         * tests/test-mknod.c (mknod): Likewise.
12319         * tests/test-nanosleep.c (nanosleep): Likewise.
12320         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12321         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12322         Likewise.
12323         * tests/test-open.c (open): Likewise.
12324         * tests/test-openat.c (openat): Likewise.
12325         * tests/test-perror.c (perror): Likewise.
12326         * tests/test-pipe2.c (pipe2): Likewise.
12327         * tests/test-poll.c (poll): Likewise.
12328         * tests/test-popen.c (popen, pclose): Likewise.
12329         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12330         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12331         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12332         (posix_spawn_file_actions_destroy)
12333         (posix_spawn_file_actions_addclose)
12334         (posix_spawn_file_actions_addopen)
12335         (posix_spawn_file_actions_adddup2): Likewise.
12336         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12337         * tests/test-pread.c (pread): Likewise.
12338         * tests/test-printf-posix.c (printf): Likewise.
12339         * tests/test-pty.c (openpty, forkpty): Likewise.
12340         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12341         (random_r): Likewise.
12342         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12343         * tests/test-readlink.c (readlink): Likewise.
12344         * tests/test-remove.c (remove): Likewise.
12345         * tests/test-rename.c (rename): Likewise.
12346         * tests/test-renameat.c (renameat): Likewise.
12347         * tests/test-rmdir.c (rmdir): Likewise.
12348         * tests/test-round1.c (round): Likewise.
12349         * tests/test-roundf1.c (roundf): Likewise.
12350         * tests/test-roundl.c (roundl): Likewise.
12351         * tests/test-setenv.c (setenv): Likewise.
12352         * tests/test-sigaction.c (sigaction): Likewise.
12353         * tests/test-sleep.c (sleep): Likewise.
12354         * tests/test-snprintf.c (snprintf): Likewise.
12355         * tests/test-sprintf-posix.c (sprintf): Likewise.
12356         * tests/test-stat.c (stat): Likewise.
12357         * tests/test-stpncpy.c (stpncpy): Likewise.
12358         * tests/test-strcasestr.c (strcasestr): Likewise.
12359         * tests/test-strchrnul.c (strchrnul): Likewise.
12360         * tests/test-strerror.c (strerror): Likewise.
12361         * tests/test-strsignal.c (strsignal): Likewise.
12362         * tests/test-strstr.c (strstr): Likewise.
12363         * tests/test-strtod.c (strtod): Likewise.
12364         * tests/test-strverscmp.c (strverscmp): Likewise.
12365         * tests/test-symlink.c (symlink): Likewise.
12366         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12367         * tests/test-times.c (times): Likewise.
12368         * tests/test-trunc1.c (trunc): Likewise.
12369         * tests/test-truncf1.c (truncf): Likewise.
12370         * tests/test-truncl.c (truncl): Likewise.
12371         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12372         Likewise.
12373         * tests/test-uname.c (uname): Likewise.
12374         * tests/test-unlink.c (unlink): Likewise.
12375         * tests/test-unlinkat.c (unlinkat): Likewise.
12376         * tests/test-unsetenv.c (unsetenv): Likewise.
12377         * tests/test-usleep.c (usleep): Likewise.
12378         * tests/test-utimensat.c (utimensat): Likewise.
12379         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12380         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12381         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12382         * tests/test-vprintf-posix.c (vprintf): Likewise.
12383         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12384         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12385         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12386         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12387         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12388         * tests/test-wcwidth.c (wcwidth): Likewise.
12389
12390         build: pull in conditional headers during GNULIB_POSIXCHECK
12391         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
12392         definitions from any conditionally-included headers.
12393         * lib/stdlib.in.h (includes): Likewise.
12394         * lib/unistd.in.h (includes): Likewise.
12395
12396 2009-12-24  Bruno Haible  <bruno@clisp.org>
12397
12398         * tests/test-argv-iter.c: Include header file being tested immediately
12399         after config.h.
12400         * tests/test-base64.c: Likewise.
12401         * tests/test-flock.c: Likewise.
12402         * tests/test-fsync.c: Likewise.
12403         * tests/test-getdate.c: Likewise.
12404         * tests/test-getndelim2.c: Likewise.
12405         * tests/test-isfinite.c: Likewise.
12406         * tests/test-isinf.c: Likewise.
12407         * tests/test-strerror.c: Likewise.
12408         * tests/test-strsignal.c: Likewise.
12409
12410 2009-12-23  Eric Blake  <ebb9@byu.net>
12411
12412         unistd: work around cygwin bug
12413         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
12414         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
12415         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12416
12417 2009-12-23  Bruno Haible  <bruno@clisp.org>
12418
12419         localename: More tests.
12420         * tests/test-localename.c (SIZEOF): New macro.
12421         (categories): New variable.
12422         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
12423         test_locale_name_default): Add test w.r.t. thread locale.
12424         (test_locale_name_thread): New function.
12425         (main): Invoke it.
12426
12427         localename: Make aware of thread locale.
12428         * lib/localename.h (gl_locale_name_thread): New declaration.
12429         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
12430         behaviour with respect to thread locale.
12431         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
12432         <langinfo.h>, glthread/lock.h.
12433         (SIZE_BITS): New macro.
12434         (string_hash): New function.
12435         (struct hash_node): New type.
12436         (HASH_TABLE_SIZE): New macro.
12437         (struniq_hash_table, struniq_lock): New variables.
12438         (struniq): New function.
12439         (gl_locale_name_thread): New function.
12440         (gl_locale_name): Invoke it.
12441         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
12442         * modules/localename (Depends-on): Add lock.
12443         Reported by Mike Gran <spk121@yahoo.com>.
12444
12445 2009-12-23  Eric Blake  <ebb9@byu.net>
12446
12447         va-args: new module
12448         * modules/va-args: New file.
12449         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
12450         * MODULES.html.sh (Core language properties): Mention it.
12451
12452         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
12453         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
12454         named alias for __attribute__((__unused__)).
12455         * lib/chown.c: Update client.
12456         * lib/fchmodat.c: Likewise.
12457         * lib/fts.c: Likewise.
12458         * lib/getdate.y: Likewise.
12459         * lib/getgroups.c: Likewise.
12460         * lib/getopt.c: Likewise.
12461         * lib/getugroups.c: Likewise.
12462         * lib/mkdir.c: Likewise.
12463         * lib/mkfifo.c: Likewise.
12464         * lib/mkfifoat.c: Likewise.
12465         * lib/mknod.c: Likewise.
12466         * lib/mknodat.c: Likewise.
12467         * lib/readlink.c: Likewise.
12468         * lib/se-context.in.h: Likewise.
12469         * lib/se-selinux.in.h: Likewise.
12470         * lib/sockets.c: Likewise.
12471         * lib/symlink.c: Likewise.
12472         * lib/symlinkat.c: Likewise.
12473         * lib/unicodeio.c: Likewise.
12474         * lib/unistr.h: Likewise.
12475         * tests/test-areadlink.c: Likewise.
12476         * tests/test-areadlinkat.c: Likewise.
12477         * tests/test-filenamecat.c: Likewise.
12478         * tests/test-fseeko.c: Likewise.
12479         * tests/test-ftello.c: Likewise.
12480         * tests/test-getdate.c: Likewise.
12481         * tests/test-getgroups.c: Likewise.
12482         * tests/test-gethostname.c: Likewise.
12483         * tests/test-quotearg.c: Likewise.
12484         * tests/test-version-etc.c: Likewise.
12485         * tests/test-xalloc-die.c: Likewise.
12486         * tests/test-xfprintf-posix.c: Likewise.
12487         * tests/test-xprintf-posix.c: Likewise.
12488         * tests/test-xvasprintf.c: Likewise.
12489
12490         tests: avoid compiler warnings
12491         * tests/test-fcntl.c (main): Delete unused parameters.
12492         * tests/test-freopen-safer.c (main): Likewise.
12493         * tests/test-xalloc-die.c (main): Mark unused parameters.
12494         * tests/test-fseeko.c (main): Likewise.
12495         * tests/test-ftello.c (main): Likewise.
12496         * tests/test-nanosleep.c (main): Avoid declaration warning.
12497         * tests/test-sleep.c (main): Likewise.
12498         * tests/test-unsetenv.c (main): Silence warning about string
12499         literal.
12500         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12501
12502 2009-12-23  Bruno Haible  <bruno@clisp.org>
12503
12504         * tests/test-localename.c (test_locale_name): New function, extracted
12505         from main. Also test mixed situations.
12506         (test_locale_name_posix, test_locale_name_environ,
12507         test_locale_name_default): New functions.
12508         (main): Invoke them all.
12509         * modules/localename-tests (configure.ac): Test for newlocale.
12510
12511 2009-12-23  Bruno Haible  <bruno@clisp.org>
12512
12513         unistd: Ensure getcwd gets declared before being overridden.
12514         * lib/unistd.in.h: Conditionally include <io.h>.
12515
12516 2009-12-22  Bruno Haible  <bruno@clisp.org>
12517
12518         wchar: Diagnose broken combination of glibc and gcc versions and flags.
12519         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
12520         (gl_WCHAR_H): Invoke it.
12521         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
12522         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
12523         Reported by Karl Berry <karl@freefriends.org>.
12524
12525 2009-12-22  Eric Blake  <ebb9@byu.net>
12526
12527         math, unistd: avoid redundant includes
12528         * lib/math.in.h (isnan): No need to re-include <math.h>.
12529         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
12530
12531         getsubopt: work around cygwin bug
12532         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
12533         avoid conflicting with system getsubopt.
12534         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
12535         bug.
12536
12537         getopt: synchronize from glibc
12538         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
12539         parameter order.  Adjust all callers.
12540         (_getopt_internal_r, main): Adjust quoting in error messages.
12541         Drop considerations for outdated POSIX 1003.2 error message.
12542         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
12543         callers.
12544         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
12545
12546         test-getopt: test stderr behavior
12547         * modules/getopt-posix-tests (Depends-on): Add dup2.
12548         * tests/test-getopt.c (ASSERT): Avoid stderr.
12549         (main): Move stderr to a temporary file.
12550         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
12551         Instead, add parameter to inform caller if output occurred.
12552         (test_getopt): Adjust all existing tests to expect silence, and
12553         add new tests of leading ":".
12554         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12555         glibc shortcomings with leading "-:" or "+:" in optstring.
12556         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12557         Likewise.
12558         * doc/posix-functions/getopt.texi (getopt): Likewise.
12559
12560         test-getopt: enhance test
12561         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
12562         supports optind=0.
12563         * tests/test-getopt.c (OPTIND_MIN): Move...
12564         * tests/test-getopt.h (OPTIND_MIN): ...here.
12565         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
12566         Require that optind=0 works, since modern BSD supports it in
12567         addition to optreset, and since coreutils expects it.
12568         (test_getopt_long_only): New test.
12569         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12570         glibc shortcomings with 'W;', and enforcement of optind=0.
12571         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12572         Likewise.
12573
12574 2009-12-21  Bruno Haible  <bruno@clisp.org>
12575
12576         localename: Improvements for MacOS X and Cygwin.
12577         * lib/localename.h (gl_locale_name_environ): New declaration.
12578         * lib/localename.c (gl_locale_name_environ): New function, extracted from
12579         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
12580         (gl_locale_name_posix): Invoke it.
12581         (gl_locale_name_default): Add comments. Use Windows native API also on
12582         Cygwin.
12583
12584 2009-12-21  Bruno Haible  <bruno@clisp.org>
12585
12586         Update list of Win32 locale ids.
12587         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
12588         (LANG_SAMI): Renamed from LANG_SAAMI.
12589         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
12590         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
12591         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
12592         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
12593         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
12594         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
12595         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
12596         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
12597         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
12598         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
12599         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
12600         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
12601         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
12602         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
12603         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
12604         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
12605         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
12606         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
12607         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
12608         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
12609         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
12610         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
12611         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
12612         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
12613         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
12614         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
12615         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
12616         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
12617         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
12618         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
12619         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
12620         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
12621         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
12622         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
12623         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
12624         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
12625         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
12626         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
12627         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
12628         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
12629         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
12630         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
12631         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
12632         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
12633         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
12634         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
12635         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
12636         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
12637         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
12638         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
12639         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
12640         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
12641         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
12642         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
12643         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
12644         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
12645         Add more languages and countries for Sami, Sorbian. Add more countries
12646         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
12647         for Pashto. Change country for Syriac, Tswana.
12648
12649 2009-12-21  Eric Blake  <ebb9@byu.net>
12650
12651         test-utimens: avoid spurious failure
12652         * tests/test-chown.h (nap): Factor...
12653         * tests/nap.h: ...into new file.
12654         * tests/test-lchown.h (nap): Avoid duplication.
12655         * tests/test-utimens-common.h (nap): Use shared implementation,
12656         necessary on file systems with 1-second resolution.
12657         * modules/chown-tests (Files): Include new file.
12658         * modules/fdutimensat-tests (Files): Likewise.
12659         * modules/futimens-tests (Files): Likewise.
12660         * modules/lchown-tests (Files): Likewise.
12661         * modules/openat-tests (Files): Likewise.
12662         * modules/utimens-tests (Files): Likewise.
12663         * modules/utimensat-tests (Files): Likewise.
12664
12665 2009-12-19  Eric Blake  <ebb9@byu.net>
12666
12667         futimens, utimensat: work around Linux bug
12668         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
12669         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12670         * lib/utimensat.c (rpl_utimensat): Work around it.
12671         * lib/futimens.c (rpl_futimens): Adjust comment.
12672
12673         utimens: work around Linux ctime bug
12674         * lib/utimens.c (detect_ctime_bug): New helper function.
12675         (update_timespec): Differentiate between workaround needed for
12676         this bug vs. what is needed for systems that lack utimensat.
12677         (fdutimens, lutimens): Work around bug.
12678
12679         utimens: check for ctime update
12680         * tests/test-utimens-common.h (check_ctime): Define.
12681         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
12682         * tests/test-futimens.h (test_futimens): Likewise.
12683         * tests/test-lutimens.h (test_lutimens): Likewise.
12684         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12685         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12686
12687 2009-12-19  Bruno Haible  <bruno@clisp.org>
12688
12689         dprintf-posix: Check against memory leak fixed on 2009-12-15.
12690         * tests/test-dprintf-posix2.sh: New file.
12691         * tests/test-dprintf-posix2.c: New file.
12692         * modules/dprintf-posix-tests (Files): Add them.
12693         (configure.ac): Check for getrlimit and setrlimit.
12694         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12695
12696 2009-12-19  Bruno Haible  <bruno@clisp.org>
12697
12698         fprintf-posix: Check against memory leak fixed on 2009-12-15.
12699         * tests/test-fprintf-posix3.sh: New file.
12700         * tests/test-fprintf-posix3.c: New file.
12701         * modules/fprintf-posix-tests (Files): Add them.
12702         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12703
12704 2009-12-19  Eric Blake  <ebb9@byu.net>
12705
12706         dirfd: fix prototype
12707         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
12708         * lib/dirfd.c (dirfd): Likewise.
12709
12710         canonicalize: reduce memory usage
12711         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
12712         allocation to size.
12713         Reported by Solar Designer <solar@openwall.com>.
12714
12715 2009-12-19  Bruno Haible  <bruno@clisp.org>
12716
12717         New module attribute 'Applicability'.
12718         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
12719         * gnulib-tool: New option --extract-applicability.
12720         (func_usage): Document it.
12721         (sed_extract_prog): Recognize it.
12722         (func_get_applicability): New function.
12723         (func_import): Generalize handling of 'link-warning' module.
12724         * modules/link-warning (Applicability): New section.
12725         * modules/arg-nonnull (Applicability): New section.
12726         Repoted by Simon Josefsson <simon@josefsson.org>.
12727
12728 2009-12-19  Bruno Haible  <bruno@clisp.org>
12729
12730         fflush: tweak
12731         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
12732         * lib/fseeko.c (rpl_fseeko): Likewise.
12733
12734 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
12735
12736         * lib/gl_list.h: Fix typo in comment.
12737
12738 2009-12-16  Eric Blake  <ebb9@byu.net>
12739
12740         fcntl: use to simplify other modules
12741         * modules/cloexec (Depends-on): Add fcntl.
12742         * modules/fchdir (Depends-on): Likewise.
12743         * modules/fd-safer-flag (Depends-on): Likewise.
12744         * modules/unistd-safer (Depends-on): Likewise.
12745         * modules/dup3 (configure.ac): Set module indicator.
12746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
12747         missing.
12748         * lib/fchdir.c (_gl_register_dup): Fix comment.
12749         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
12750         * lib/dup-safer.c (dup_safer): Likewise.
12751         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
12752         * lib/dup3.c (dup3): Likewise.
12753         * tests/test-fchdir.c (main): Enhance test.
12754         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
12755
12756         fcntl: port portions of fcntl to mingw
12757         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
12758         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
12759         replacement for mingw.
12760         * modules/fcntl (Description): Update.
12761         (Depends-on): Add dup2.
12762         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
12763         * modules/fcntl-h (Makefile.am): Substitute it.
12764         * lib/fcntl.in.h (fcntl): Update declaration.
12765         (F_DUPFD, F_GETFD): New macros, when needed.
12766         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12767         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
12768         * tests/test-fcntl.c (check_flags, main): Enhance test for items
12769         we now guarantee.
12770
12771         fcntl: work around cygwin bug in F_DUPFD
12772         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
12773         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
12774         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
12775         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
12776         * doc/posix-functions/fcntl.texi (fcntl): Document it.
12777
12778         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
12779         * modules/fcntl (Files): List new files.
12780         (configure.ac): Run a test.
12781         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
12782         * lib/fcntl.c (rpl_fcntl): Likewise.
12783         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
12784         (gl_FCNTL_H): Always replace fcntl.h.
12785         * modules/fcntl-h (Makefile.am): Substitute witnesses.
12786         * lib/fcntl.in.h (fcntl): Declare replacement.
12787         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
12788         needed, plus a witness.
12789         * doc/posix-functions/fcntl.texi (fcntl): Document this.
12790         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
12791         * tests/test-fcntl.c: New file.
12792         * modules/fcntl-tests: Likewise.
12793
12794         binary-io: avoid potential compilation warning
12795         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
12796         directives.
12797
12798         fflush: avoid compilation error on NetBSD
12799         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
12800         between off_t and fpos_t, since the latter is sometimes a struct.
12801         * lib/fseeko.c (rpl_fseeko): Likewise.
12802         Reported by Alexander Nasonov <alnsn@yandex.ru>.
12803
12804 2009-12-15  Eric Blake  <ebb9@byu.net>
12805
12806         fcntl-h, stdio, sys_ioctl: fix declarations
12807         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
12808         function must not take arguments.
12809         * lib/sys_ioctl.in.h (ioctl): Likewise.
12810         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
12811         (open): Add a link warning.
12812
12813 2009-12-15  Jim Meyering  <meyering@redhat.com>
12814
12815         areadlink, areadlink-with-size: relax license to LGPLv2+
12816         * modules/areadlink (License): Relax to LGPLv2+.
12817         * modules/areadlink-with-size (License): Likewise.
12818
12819 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
12820             Bruno Haible  <bruno@clisp.org>
12821
12822         *printf: Fix memory leak.
12823         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
12824         * lib/vfprintf.c (vfprintf): Likewise.
12825         * lib/dprintf.c (dprintf): Likewise.
12826         * lib/vdprintf.c (vdprintf): Likewise.
12827
12828 2009-12-14  Eric Blake  <ebb9@byu.net>
12829
12830         accept4: adjust module dependencies
12831         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
12832
12833         utimens: one more try at avoiding compiler warning
12834         * lib/utimens.c (lutimens): Lower scope of result.
12835
12836 2009-12-13  Bruno Haible  <bruno@clisp.org>
12837
12838         Move the malloc checking from module 'list' to new module 'xlist'.
12839         * modules/xlist: New file.
12840         * lib/gl_xlist.h: New file.
12841         * lib/gl_xlist.c: New file.
12842         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
12843         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
12844         gl_list_add_last, gl_list_add_before, gl_list_add_after,
12845         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
12846         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
12847         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
12848         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
12849         gl_sortedlist_nx_add): New declarations.
12850         (struct gl_list_implementation): Rename and change methods accordingly.
12851         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
12852         (gl_list_nx_create): Renamed from gl_list_create.
12853         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12854         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12855         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12856         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12857         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12858         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12859         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12860         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12861         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
12862         gl_list_create_empty.
12863         (gl_list_nx_create): Renamed from gl_list_create.
12864         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12865         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12866         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12867         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12868         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12869         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12870         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12871         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12872         * lib/gl_array_list.c: Don't include xalloc.h.
12873         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
12874         NULL upon out-of-memory.
12875         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
12876         out-of-memory.
12877         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
12878         Change return type to 'int'.
12879         (gl_array_nx_set_at): Renamed from gl_array_set_at.
12880         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
12881         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
12882         upon out-of-memory.
12883         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
12884         upon out-of-memory.
12885         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
12886         upon out-of-memory.
12887         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
12888         upon out-of-memory.
12889         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
12890         out-of-memory.
12891         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
12892         Update.
12893         (gl_array_list_implementation): Update.
12894         * lib/gl_carray_list.c: Don't include xalloc.h.
12895         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
12896         Return NULL upon out-of-memory.
12897         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
12898         out-of-memory.
12899         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
12900         Change return type to 'int'.
12901         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
12902         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
12903         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
12904         upon out-of-memory.
12905         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
12906         upon out-of-memory.
12907         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
12908         out-of-memory.
12909         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
12910         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
12911         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
12912         Update.
12913         (gl_carray_list_implementation): Update.
12914         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
12915         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
12916         gl_linked_create_empty. Return NULL upon out-of-memory.
12917         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
12918         out-of-memory.
12919         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
12920         Change return type to 'int'. Return -1 upon out-of-memory.
12921         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
12922         out-of-memory.
12923         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
12924         upon out-of-memory.
12925         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
12926         upon out-of-memory.
12927         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
12928         NULL upon out-of-memory.
12929         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
12930         upon out-of-memory.
12931         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
12932         out-of-memory.
12933         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
12934         Update.
12935         * lib/gl_linked_list.c: Don't include xalloc.h.
12936         (gl_linked_list_implementation): Update.
12937         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
12938         (add_to_bucket): Change return type to 'int'.
12939         (gl_linkedhash_list_implementation): Update.
12940         * lib/gl_anytree_list1.h (free_subtree): New function.
12941         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
12942         gl_tree_create_empty. Return NULL upon out-of-memory.
12943         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
12944         Change return type to 'int'. Return -1 upon out-of-memory.
12945         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
12946         out-of-memory.
12947         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
12948         (gl_tree_remove_node): New function, moved here from
12949         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
12950         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
12951         Update.
12952         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
12953         malloc, not xmalloc. Return NULL upon out-of-memory.
12954         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
12955         out-of-memory.
12956         (gl_tree_remove_node_from_tree): New function, extracted from
12957         gl_tree_remove_node.
12958         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
12959         upon out-of-memory.
12960         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
12961         out-of-memory.
12962         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
12963         upon out-of-memory.
12964         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
12965         upon out-of-memory.
12966         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
12967         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
12968         not xmalloc. Return NULL upon out-of-memory.
12969         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
12970         out-of-memory.
12971         (gl_tree_remove_node_from_tree): New function, extracted from
12972         gl_tree_remove_node.
12973         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
12974         upon out-of-memory.
12975         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
12976         out-of-memory.
12977         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
12978         upon out-of-memory.
12979         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
12980         upon out-of-memory.
12981         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
12982         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
12983         gl_anytree_list1.h before gl_anyavltree_list2.h.
12984         (gl_avltree_list_implementation): Update.
12985         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
12986         gl_anytree_list1.h before gl_anyavltree_list2.h.
12987         (gl_rbtree_list_implementation): Update.
12988         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
12989         Change return type to 'int'. Return -1 upon out-of-memory. Use
12990         __builtin_expect.
12991         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
12992         (gl_avltreehash_list_implementation): Update.
12993         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
12994         (gl_rbtreehash_list_implementation): Update.
12995         * modules/array-list (Depends-on): Remove xalloc.
12996         * modules/carray-list (Depends-on): Likewise.
12997         * modules/linked-list (Depends-on): Likewise.
12998         * modules/linkedhash-list (Depends-on): Likewise.
12999         * modules/avltree-list (Depends-on): Likewise.
13000         * modules/rbtree-list (Depends-on): Likewise.
13001         * modules/avltreehash-list (Depends-on): Likewise.
13002         * modules/rbtreehash-list (Depends-on): Likewise.
13003
13004         * modules/xsublist: New file.
13005         * lib/gl_xsublist.h: New file.
13006         * lib/gl_xsublist.c: New file.
13007         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13008         (gl_sublist_nx_create): New declaration.
13009         * lib/gl_sublist.c: Don't include xalloc.h.
13010         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13011         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13012         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13013         Change return type to 'int'. Return -1 upon out-of-memory.
13014         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13015         upon out-of-memory.
13016         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13017         NULL upon out-of-memory.
13018         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13019         upon out-of-memory.
13020         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13021         NULL upon out-of-memory.
13022         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13023         NULL upon out-of-memory.
13024         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13025         upon out-of-memory.
13026         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13027         (gl_sublist_list_implementation): Update.
13028         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13029         upon out-of-memory.
13030         * modules/sublist (Depends-on): Remove xalloc.
13031
13032         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13033         * tests/test-carray_list.c: Likewise.
13034         * tests/test-linked_list.c: Likewise.
13035         * tests/test-linkedhash_list.c: Likewise.
13036         * tests/test-avltree_list.c: Likewise.
13037         * tests/test-rbtree_list.c: Likewise.
13038         * tests/test-avltreehash_list.c: Likewise.
13039         * tests/test-rbtreehash_list.c: Likewise.
13040         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13041         * modules/carray-list-tests (Makefile.am): Likewise.
13042         * modules/linked-list-tests (Makefile.am): Likewise.
13043         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13044         * modules/avltree-list-tests (Makefile.am): Likewise.
13045         * modules/rbtree-list-tests (Makefile.am): Likewise.
13046         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13047         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13048
13049         * NEWS: Mention the changes.
13050
13051         * lib/clean-temp.c: Include gl_xlist.h.
13052         * modules/clean-temp (Depends-on): Add xlist.
13053
13054         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13055         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13056
13057         * tests/test-array_oset.c: Include gl_xlist.h.
13058         * modules/array-oset-tests (Depends-on): Add xlist.
13059
13060         Reported by José E. Marchesi <jemarch@gnu.org>.
13061
13062 2009-12-13  Bruno Haible  <bruno@clisp.org>
13063
13064         Move the malloc checking from module 'oset' to new module 'xoset'.
13065         * modules/xoset: New file.
13066         * lib/gl_xoset.h: New file.
13067         * lib/gl_xoset.c: New file.
13068         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13069         declarations.
13070         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13071         (struct gl_oset_implementation): Rename and change methods accordingly.
13072         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13073         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13074         'int'. Mark as __warn_unused_result__.
13075         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13076         gl_oset_create_empty.
13077         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13078         'int'.
13079         * lib/gl_array_oset.c: Don't include xalloc.h.
13080         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13081         malloc, not xmalloc.
13082         (grow): Change return type to 'int'. Don't call xalloc_die.
13083         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13084         to 'int'.
13085         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13086         'int'.
13087         (gl_array_oset_implementation): Update.
13088         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13089         gl_tree_create_empty.
13090         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13091         'int'.
13092         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13093         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13094         xmalloc.
13095         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13096         not xmalloc.
13097         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13098         xmalloc.
13099         (gl_avltree_oset_implementation): Update.
13100         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13101         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13102         xmalloc.
13103         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13104         not xmalloc.
13105         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13106         xmalloc.
13107         (gl_rbtree_oset_implementation): Update.
13108         * modules/array-oset (Depends-on): Remove xalloc.
13109         * modules/avltree-oset (Depends-on): Likewise.
13110         * modules/rbtree-oset (Depends-on): Likewise.
13111         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13112         * tests/test-avltree_oset.c: Likewise.
13113         * tests/test-rbtree_oset.c: Likewise.
13114         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13115         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13116         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13117         * NEWS: Mention the change.
13118
13119 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13120
13121         maint.mk: allow a project to override release-prep commands
13122         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13123         commands into a new rule.
13124         (release-prep): New rule.
13125         (release-prep-hook): New overridable variable.
13126
13127 2009-12-13  Bruno Haible  <bruno@clisp.org>
13128
13129         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13130
13131 2009-12-13  Jim Meyering  <meyering@redhat.com>
13132
13133         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13134         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13135
13136 2009-12-12  Bruno Haible  <bruno@clisp.org>
13137
13138         duplocale: Tweak.
13139         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13140
13141 2009-12-12  Karl Berry  <karl@gnu.org>
13142
13143         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13144
13145 2009-12-12  Bruno Haible  <bruno@clisp.org>
13146
13147         * m4/po.m4: Undo incorrect untabification.
13148
13149 2009-12-12  Bruno Haible  <bruno@clisp.org>
13150
13151         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13152         * modules/c-strtod (Depends-on): Add locale.
13153         * modules/c-strtold (Depends-on): Likewise.
13154
13155 2009-12-12  Bruno Haible  <bruno@clisp.org>
13156
13157         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13158
13159 2009-12-11  Eric Blake  <ebb9@byu.net>
13160
13161         setenv: relax requirement in light of POSIX ruling
13162         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13163         not NULL.
13164         * tests/test-setenv.c (main): Relax test.
13165         * tests/test-unsetenv.c (main): Likewise.
13166         * doc/posix-functions/setenv.texi (setenv): Document this.
13167         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13168
13169 2009-12-11  Bruno Haible  <bruno@clisp.org>
13170
13171         New module 'fd-safer-flag'.
13172         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13173         * lib/dup-safer.c (dup_safer_flag): Remove function.
13174         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13175         * lib/fd-safer.c (fd_safer_flag): Remove function.
13176         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13177         * modules/cloexec (configure.ac): Drop indicator macro.
13178         * modules/fd-safer-flag: New file.
13179         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13180         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13181         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13182
13183 2009-12-11  Bruno Haible  <bruno@clisp.org>
13184
13185         Tests for module 'nl_langinfo'.
13186         * modules/nl_langinfo-tests: New file.
13187         * tests/test-nl_langinfo.sh: New file.
13188         * tests/test-nl_langinfo.c: New file.
13189
13190         New module 'nl_langinfo'.
13191         * lib/nl_langinfo.c: New file.
13192         * m4/nl_langinfo.m4: New file.
13193         * modules/nl_langinfo: New file.
13194         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13195
13196 2009-12-11  Bruno Haible  <bruno@clisp.org>
13197
13198         Tests for module 'langinfo'.
13199         * modules/langinfo-tests: New file.
13200         * tests/test-langinfo.c: New file.
13201
13202         New module 'langinfo'.
13203         * lib/langinfo.in.h: New file.
13204         * m4/langinfo_h.m4: New file.
13205         * modules/langinfo: New file.
13206         * doc/posix-headers/langinfo.texi: Mention the new module.
13207
13208 2009-12-11  Bruno Haible  <bruno@clisp.org>
13209
13210         * lib/config.charset: Untabify.
13211
13212 2009-12-11  Bruno Haible  <bruno@clisp.org>
13213
13214         * modules/unistd-safer (configure.ac): Drop indicator macro.
13215
13216 2009-12-11  Bruno Haible  <bruno@clisp.org>
13217
13218         Move pipe2-safer code to its own file.
13219         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13220         * lib/pipe-safer.c (pipe2_safer): Remove function.
13221         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13222         (Makefile.am): Add it to lib_SOURCES.
13223
13224 2009-12-10  Bruno Haible  <bruno@clisp.org>
13225
13226         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
13227
13228 2009-12-10  Bruno Haible  <bruno@clisp.org>
13229
13230         Declare which arguments expect non-NULL values, for GCC and clang.
13231         * build-aux/arg-nonnull.h: New file.
13232         * modules/arg-nonnull: New file.
13233         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
13234         (inet_ntop, inet_pton): Use it.
13235         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
13236         (closedir, dirfd, opendir, scandir, alphasort): Use it.
13237         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
13238         (open, openat): Use it.
13239         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
13240         (fnmatch): Use it.
13241         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
13242         (getopt, getopt_long, getopt_long_only): Use it.
13243         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
13244         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
13245         Use it.
13246         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
13247         (iconv_open): Use it.
13248         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
13249         (strtoimax, strtoumax): Use it.
13250         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
13251         (duplocale): Use it.
13252         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
13253         (frexp, frexpl): Use it.
13254         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
13255         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
13256         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
13257         (tsearch, tfind, tdelete, twalk): Use it.
13258         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
13259         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13260         sigpending): Use it.
13261         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
13262         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13263         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13264         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13265         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13266         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13267         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13268         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13269         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13270         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13271         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13272         Use it.
13273         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13274         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13275         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13276         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13277         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13278         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13279         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13280         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13281         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13282         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13283         strtoull, unsetenv): Use it.
13284         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13285         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13286         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13287         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13288         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13289         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13290         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13291         (strcasecmp, strncasecmp): Use it.
13292         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13293         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13294         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13295         rpl_setsockopt): Use it.
13296         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13297         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13298         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13299         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13300         (gettimeofday): Use it.
13301         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13302         (times): Use it.
13303         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13304         (uname): Use it.
13305         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13306         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13307         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13308         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13309         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13310         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13311         unlinkat, write): Use it.
13312         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13313         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13314         * lib/argv-iter.h: Include arg-nonnull.h.
13315         (_ATTRIBUTE_NONNULL_): Remove macro.
13316         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13317         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13318         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13319         optimization.
13320         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13321         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13322         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13323         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13324         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13325         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13326         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13327         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13328         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13329         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13330         * modules/dirent (Depends-on): Add arg-nonnull.
13331         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13332         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13333         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13334         * modules/fnmatch (Depends-on): Add arg-nonnull.
13335         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13336         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13337         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13338         * modules/glob (Depends-on): Add arg-nonnull.
13339         (Makefile.am): Insert arg-nonnull.h into glob.h.
13340         * modules/iconv_open (Depends-on): Add arg-nonnull.
13341         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13342         * modules/inttypes (Depends-on): Add arg-nonnull.
13343         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13344         * modules/locale (Depends-on): Add arg-nonnull.
13345         (Makefile.am): Insert arg-nonnull.h into locale.h.
13346         * modules/math (Depends-on): Add arg-nonnull.
13347         (Makefile.am): Insert arg-nonnull.h into math.h.
13348         * modules/netdb (Depends-on): Add arg-nonnull.
13349         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13350         * modules/search (Depends-on): Add arg-nonnull.
13351         (Makefile.am): Insert arg-nonnull.h into search.h.
13352         * modules/signal (Depends-on): Add arg-nonnull.
13353         (Makefile.am): Insert arg-nonnull.h into signal.h.
13354         * modules/spawn (Depends-on): Add arg-nonnull.
13355         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13356         * modules/stdio (Depends-on): Add arg-nonnull.
13357         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13358         * modules/stdlib (Depends-on): Add arg-nonnull.
13359         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13360         * modules/string (Depends-on): Add arg-nonnull.
13361         (Makefile.am): Insert arg-nonnull.h into string.h.
13362         * modules/strings (Depends-on): Add arg-nonnull.
13363         (Makefile.am): Insert arg-nonnull.h into strings.h.
13364         * modules/sys_socket (Depends-on): Add arg-nonnull.
13365         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13366         * modules/sys_stat (Depends-on): Add arg-nonnull.
13367         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13368         * modules/sys_time (Depends-on): Add arg-nonnull.
13369         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13370         * modules/sys_times (Depends-on): Add arg-nonnull.
13371         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13372         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13373         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13374         * modules/time (Depends-on): Add arg-nonnull.
13375         (Makefile.am): Insert arg-nonnull.h into time.h.
13376         * modules/unistd (Depends-on): Add arg-nonnull.
13377         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13378         * modules/wchar (Depends-on): Add arg-nonnull.
13379         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13380         * modules/argv-iter (Depends-on): Add arg-nonnull.
13381         * tests/test-canonicalize.c (null_ptr): New function.
13382         (main): Use it.
13383         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13384         (main): Use it.
13385         * tests/test-memmem.c (null_ptr): New function.
13386         (main): Use it.
13387         Reported by Jim Meyering.
13388
13389 2009-12-10  Bruno Haible  <bruno@clisp.org>
13390
13391         Use spaces for indentation, not tabs.
13392         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13393         * m4/*.m4: Untabify.
13394         * build-aux/*.h: Untabify.
13395         * tests/**/*.[hc]: Untabify.
13396         * README: New section "Indent with spaces, not TABs", based on
13397         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
13398         * NEWS: Mention the change.
13399
13400 2009-12-10  Bruno Haible  <bruno@clisp.org>
13401
13402         pty test: Fix link error.
13403         * modules/pty-tests (Makefile.am): Add the default LDADD value to
13404         test_pty_LDADD.
13405
13406 2009-12-07  Simon Josefsson  <simon@josefsson.org>
13407
13408         * modules/pty: New file.
13409         * modules/pty-tests: New file.
13410         * m4/pty.m4: New file.
13411         * tests/test-pty.c: New file.
13412         * doc/glibc-headers/pty.texi: Modified.
13413         * doc/glibc-functions/forkpty.texi: Modified.
13414         * doc/glibc-functions/openpty.texi: Modified.
13415
13416 2009-12-10  Bruno Haible  <bruno@clisp.org>
13417
13418         Avoid syntax error in C++ mode.
13419         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
13420
13421 2009-12-10  Bruno Haible  <bruno@clisp.org>
13422
13423         Use sed with option -e.
13424         * gnulib-tool (func_version, func_emit_copyright_notice,
13425         func_emit_initmacro_end, func_import, func_create_testdir): Pass
13426         option -e to sed.
13427         * modules/link-warning (Makefile.am): Likewise.
13428
13429 2009-12-10  Jim Meyering  <meyering@redhat.com>
13430
13431         mgetgroups: do not write bytes beyond end of malloc'd buffer
13432         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
13433         username, we call getgroups with a one-element-shorter buffer,
13434         but still told it the length was original, max_n_groups.
13435
13436 2009-12-09  Eric Blake  <ebb9@byu.net>
13437
13438         cloexec: relax license
13439         * modules/cloexec (Maintainer): Add myself.
13440         (License): Use LGPL, not GPL.
13441
13442         link-warning: optimize generation
13443         * modules/link-warning (Makefile.am): Reduce process usage.
13444
13445 2009-12-09  Bruno Haible  <bruno@clisp.org>
13446
13447         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
13448         workaround was added on 2009-11-17.
13449
13450 2009-12-09  Jim Meyering  <meyering@redhat.com>
13451             Bruno Haible  <bruno@clisp.org>
13452
13453         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
13454         * modules/link-warning (Makefile.am): Make the comment-removing sed
13455         command more robust in the face of bootstrap-prepended comment lines.
13456
13457 2009-12-09  Bruno Haible  <bruno@clisp.org>
13458
13459         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
13460         most one group.
13461
13462 2009-12-09  Simon Josefsson <simon@josefsson.org>
13463             Bruno Haible  <bruno@clisp.org>
13464
13465         * build-aux/link-warning.h: Add copyright notice.
13466         * modules/link-warning (Makefile.am): Generate link-warning.h from
13467         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
13468         * NEWS: Mention change in link-warning module.
13469         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
13470         * modules/dirent (Makefile.am): Add dependency to dirent.h.
13471         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
13472         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
13473         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
13474         * modules/math (Makefile.am): Add dependency to math.h.
13475         * modules/search (Makefile.am): Add dependency to search.h.
13476         * modules/signal (Makefile.am): Add dependency to signal.h.
13477         * modules/spawn (Makefile.am): Add dependency to spawn.h.
13478         * modules/stdio (Makefile.am): Add dependency to stdio.h.
13479         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
13480         * modules/string (Makefile.am): Add dependency to string.h.
13481         * modules/strings (Makefile.am): Add dependency to strings.h.
13482         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
13483         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
13484         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
13485         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
13486         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
13487         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
13488         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
13489         * modules/unistd (Makefile.am): Add dependency to unistd.h.
13490         * modules/wchar (Makefile.am): Add dependency to wchar.h.
13491
13492 2009-12-09  Bruno Haible  <bruno@clisp.org>
13493
13494         fchdir: Optimize away rpl_fstat when possible.
13495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
13496         REPLACE_OPEN_DIRECTORY.
13497         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
13498
13499 2009-12-09  Bruno Haible  <bruno@clisp.org>
13500
13501         * lib/fchdir.c: Update comment.
13502
13503 2009-12-09  Bruno Haible  <bruno@clisp.org>
13504
13505         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
13506
13507 2009-12-08  Eric Blake  <ebb9@byu.net>
13508
13509         fchdir: avoid memory leak on re-registration.
13510         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
13511
13512 2009-12-08  Jim Meyering  <meyering@redhat.com>
13513
13514         init.sh: avoid Solaris 10 /bin/sh portability problem
13515         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
13516         sourced script:
13517           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
13518           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
13519           bar
13520         tests/init.sh relied on that, accepting a --set-path=DIR argument,
13521         and two tests used that idiom.
13522         * tests/init.sh: Update suggested usage comments.
13523         (path_prepend_): New function, to be used in place
13524         of the --src-path=DIR option.
13525         (setup_): Move PATH-prepending code into path_prepend_.
13526         * tests/test-pread.sh: Adapt to new usage.
13527         * tests/test-xalloc-die.sh: Likewise.
13528
13529 2009-12-08  Simon Josefsson  <simon@josefsson.org>
13530
13531         * doc/gnulib.texi (Glibc pty.h): Add.
13532         * doc/glibc-functions/forkpty.texi: Add.
13533         * doc/glibc-functions/openpty.texi: Add.
13534         Suggested by Bruno Haible.
13535
13536 2009-12-08  Eric Blake  <ebb9@byu.net>
13537
13538         fchdir: fix logic bugs
13539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
13540         * tests/test-fchdir.c (main): Enhance test.
13541         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
13542         is in use.
13543
13544         dup2: fix logic bugs
13545         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
13546         REPLACE_DUP2 to decide when rpl_dup2 is needed.
13547         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
13548         exists.
13549         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
13550
13551 2009-12-07  Eric Blake  <ebb9@byu.net>
13552
13553         unlink: fix m4 detection
13554         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
13555
13556         unistd-safer: add unit test
13557         * modules/unistd-safer-tests: New file.
13558         * tests/test-dup-safer.c: Likewise.
13559         * tests/test-cloexec.c (setmode): Avoid compiler warning.
13560         * tests/test-dup2.c (setmode): Likewise.
13561         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
13562
13563         cloexec: preserve text vs. binary across dup_cloexec
13564         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
13565         mode.
13566         * modules/dup2-tests (Depends-on): Add binary-io.
13567         * modules/cloexec-tests (Depends-on): Likewise.
13568         * tests/test-dup2.c (setmode, is_mode): New helpers.
13569         (main): Add tests that translation mode is preserved.
13570         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
13571         Reported by Bruno Haible.
13572
13573         mgetgroups: reduce duplicate listings
13574         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
13575         resulting array.
13576         * tests/test-chown.h (test_chown): Simplify client.
13577         * tests/test-lchown.h (test_lchown): Likewise.
13578
13579 2009-12-06  Bruno Haible  <bruno@clisp.org>
13580
13581         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
13582         value.
13583
13584 2009-12-06  Bruno Haible  <bruno@clisp.org>
13585
13586         * lib/progname.c: Include stdio.h, stdlib.h.
13587         (set_program_name): Reject a NULL argument.
13588
13589 2009-12-05  Eric Blake  <ebb9@byu.net>
13590
13591         pipe2-safer: new module
13592         * modules/pipe2-safer: New file.
13593         * lib/unistd-safer.h (pipe2_safer): New prototype.
13594         * lib/unistd--.h (pipe2): New wrapper.
13595         * lib/pipe-safer.c (pipe2_safer): New function.
13596         * modules/pipe (Depends-on): Add pipe2-safer.
13597         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
13598
13599         stdlib-safer: preserve cloexec flag for mkostemp[s]
13600         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
13601         fd_safer_flag.
13602
13603         unistd-safer: allow preservation of cloexec status via flag
13604         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
13605         prototypes.
13606         * lib/dup-safer.c (dup_safer_flag): New function.
13607         * lib/fd-safer.c (fd_safer_flag): Likewise.
13608         * modules/cloexec (configure.ac): Set witness.
13609
13610         test-dup2: enhance test
13611         * modules/dup2-tests (Depends-on): Add cloexec.
13612         * tests/test-dup2.c (main): Enhance test.
13613
13614         cloexec: add dup_cloexec
13615         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
13616         header and comments.
13617         * lib/cloexec.c (set_cloexec_flag): Add comments.
13618         (dup_cloexec): New function, with mingw implementation borrowed
13619         from...
13620         * lib/w32spawn.h (dup_noinherit): ...here.
13621         * modules/execute (Depends-on): Add cloexec.
13622         * modules/pipe (Depends-on): Likewise.
13623         * modules/cloexec (Depends-on): Add dup2.
13624         * modules/cloexec-tests (Files): New file.
13625         * tests/test-cloexec.c: Likewise.
13626
13627         test-xalloc-die: fix test for mingw
13628         * modules/xalloc-die-tests (Files): Add tests/init.sh.
13629         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
13630         directory and .exe suffix off argv[0] output.
13631
13632         test-fseeko: fix test for mingw
13633         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
13634         than undefining fseek, so test will pass on mingw.
13635
13636 2009-12-05  Bruno Haible  <bruno@clisp.org>
13637
13638         * lib/progname.h (set_program_name): Clarify specification.
13639         * lib/progname.c (set_program_name): Likewise.
13640         Reported by Jim Meyering.
13641
13642 2009-12-05  Jim Meyering  <meyering@redhat.com>
13643
13644         maint.mk: backslash-escape parens in default regexp
13645         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
13646         backslash-escape the literal parentheses.
13647
13648         maint.mk: news-date-check: use grep -E
13649         * top/maint.mk (today): Define a Make variable, not a...
13650         (news-date-check): ...shell variable.
13651         (news-date-regexp): Use the Make variable.
13652         Use grep's -E option.  Change the failing diagnostic to mention
13653         the variable, $(news-date-regexp).
13654
13655 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
13656
13657         maintainer-makefile: allow customization of NEWS entry format
13658         * top/maint.mk (news-date-regexp): New overridable variable.
13659         (news-date-check): Use it.
13660
13661 2009-12-04  Eric Blake  <ebb9@byu.net>
13662
13663         mgetgroups: add xgetgroups, and avoid ENOSYS failures
13664         * lib/mgetgroups.h (xgetgroups): New prototype.
13665         * lib/mgetgroups.c (xgetgroups): New wrapper.
13666         (mgetgroups): Handle ENOSYS.
13667         * modules/mgetgroups (Depends-on): Add realloc.
13668         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
13669
13670         mgetgroups: avoid argument promotion issues with -1
13671         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
13672         for invalid gid_t.
13673         * tests/test-chown.h (getegid, test_chown): Likewise.
13674         * tests/test-lchown.h (getegid, test_lchown): Likewise.
13675
13676 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
13677
13678         exclude: Fix header file problems.
13679         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
13680
13681 2009-12-01  Jim Meyering  <meyering@redhat.com>
13682
13683         fts: fts_open: do not let an empty string cause immediate failure
13684         This is required in support of GNU rm, for which the command
13685         "rm A '' B" must process and remove both A and B, in spite of
13686         the empty string argument.
13687         * lib/fts.c (fts_open): Do not let the presence of an empty string
13688         cause fts_open to fail immediately.  Most fts-using tools must be
13689         able to process all arguments, in order, and can be expected to
13690         diagnose such arguments themselves.
13691
13692 2009-11-30  Eric Blake  <ebb9@byu.net>
13693
13694         utimens: fix compilation error
13695         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
13696         Declare variable at right scope.
13697
13698 2009-11-29  Jim Meyering  <meyering@redhat.com>
13699
13700         bootstrap: handle perl-5.11's changed --version output
13701         * build-aux/bootstrap (get_version): Handle perl separately,
13702         since perl-5.11's --version output is different.
13703
13704 2009-11-28  Jim Meyering  <meyering@redhat.com>
13705
13706         userspec: depend on the inttostr module, too
13707         * modules/userspec (Depends-on): Add inttostr.
13708
13709         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
13710         * lib/userspec.c (parse_with_separator): Do not accept a user ID
13711         number of MAXUID when it evaluates to (uid_t) -1.
13712         Likewise for group ID.  Reported by Matt McCutchen in
13713         <http://savannah.gnu.org/bugs/?28113>
13714
13715         userspec: reformat to use spaces, not TABs
13716         * lib/userspec.c: Expand TABs to spaces.
13717         Add Emacs' "indent-tabs-mode: nil" hint.
13718
13719 2009-11-27  Eric Blake  <ebb9@byu.net>
13720
13721         getopt-gnu: flush out another BSD bug
13722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
13723         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
13724         flush out BSD bug.
13725         * tests/test-getopt.h (test_getopt): End lists with NULL.
13726         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13727         (test_getopt_long_posix): Enhance test.
13728         * modules/getopt-posix-tests (Depends-on): Add stdbool.
13729         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
13730         getopt-gnu.
13731         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13732         Likewise.
13733
13734 2009-11-27  Simon Josefsson  <simon@josefsson.org>
13735
13736         * modules/idpriv-droptemp-tests (Notice): Fix text.
13737
13738 2009-11-27  Jim Meyering  <meyering@redhat.com>
13739
13740         test-xalloc-die: avoid spurious failure due to libtool argv difference
13741         In a libtool-enabled project, this test would fail due to a difference
13742         in the emitted program name, e.g.,
13743         -test-xalloc-die: memory exhausted
13744         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
13745         Use program to avoid that.
13746         * modules/xalloc-die-tests (Depends-on): Add progname.
13747         * tests/test-xalloc-die.c: Include progname.h".
13748         (program_name): Remove decl.
13749         (main): Call set_program_name.
13750         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
13751
13752 2009-11-26  Richard Jones  <rjones@redhat.com>
13753
13754         w32sock: leave win32 error in place.
13755         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
13756
13757 2009-11-26  Eric Blake  <ebb9@byu.net>
13758
13759         init.sh: suggest to use skip_ and fail_ functions in comments
13760         * tests/init.sh: Add a sentence.
13761
13762 2009-11-25  Bruno Haible  <bruno@clisp.org>
13763
13764         init.sh: add documentation in comments
13765         * tests/init.sh: Add some developer and user documentation.
13766
13767 2009-11-26  Jim Meyering  <meyering@redhat.com>
13768
13769         init.sh: accommodate even those who specify bogus srcdir manually
13770         * tests/init.sh: Normally, srcdir is guaranteed by automake and
13771         configure-time tests to be sanitized, so that there is no need to
13772         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
13773         (with no double quotes) suffices.  However, since tests may be
13774         invoked manually, and since you may explicitly set srcdir to the
13775         name of a directory containing spaces, do quote its uses here.
13776         * tests/test-pread.sh: Likewise.
13777         Suggested by Bruno Haible.
13778
13779         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
13780         * tests/test-pread.sh: Write no data into the pipe, because
13781         test-pread actually reads none.  This avoids a diagnostic,
13782         "bash: echo: write error: Broken pipe", that arises in the unusual
13783         event something is ignoring SIGPIPE, and might be interpreted
13784         as some sort of failure.  Reported by Bruno Haible.
13785
13786 2009-11-25  Jim Meyering  <meyering@redhat.com>
13787
13788         test-pread: cover failure with ESPIPE and EINVAL
13789         * tests/test-pread.c (main): Test for failure, too.
13790         * tests/test-pread.sh: Invoke with stdin on a pipe.
13791         Suggested by Eric Blake.
13792
13793         pread: improvement and fix
13794         * modules/pread (Depends-on): Depend on lseek, for portability to
13795         e.g., mingw.  Suggested by Eric Blake.
13796         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
13797
13798         unistd.in.h: correct declaration of pread
13799         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
13800         Reported by Richard W.M. Jones.
13801
13802         test-pread.sh: distribute the test script
13803         * modules/pread-tests (Files): Include test-pread.sh.
13804
13805         test-pread.sh: clean up
13806         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
13807         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
13808         That is unnecessary, since it's always ".".
13809         Suggestion from Eric Blake.
13810
13811         test-pread.sh: make executable
13812         * tests/test-pread.sh: Set executable bit.
13813         Reported by Eric Blake.
13814
13815         correct typo in test-pread.sh
13816         * tests/test-pread.sh: Add #! line.
13817
13818         test pread
13819         * tests/test-pread.c: New file.
13820         * tests/test-pread.sh: Likewise.
13821         * modules/pread-tests: Likewise.
13822
13823         pread: new module
13824         * modules/pread: New file.
13825         * lib/unistd.in.h (pread): Define/declare.
13826         * lib/pread.c (pread): New file.
13827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
13828         * modules/unistd (Makefile.am): Substitute witnesses.
13829         * doc/posix-functions/pread.texi (pread): Update.
13830         * MODULES.html.sh: Add pread.
13831
13832 2009-11-25  Jim Meyering  <meyering@redhat.com>
13833
13834         tests/init.sh: new file to be used via most *.sh tests
13835         * tests/init.sh: New file.
13836
13837 2009-11-25  Eric Blake  <ebb9@byu.net>
13838
13839         utimens: work around older Linux failure with symlinks
13840         * lib/utimens.c (lutimensat_works_really): New variable.
13841         (fdutimens, lutimens): Use it to manage kernels that support
13842         nanosecond times on files, but not on symlinks.
13843         Reported by OndÅ™ej Vašík.
13844
13845         utimes: fix configure grammar
13846         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
13847
13848 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
13849
13850         regex: Fix fastmap for multibyte character ranges.
13851         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
13852         characters when a multibyte character range is included.
13853
13854 2009-11-22  Andy Wingo  <wingo@pobox.com>
13855
13856         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
13857         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
13858
13859 2009-11-24  Bruno Haible  <bruno@clisp.org>
13860
13861         doc: Most *_l functions exist in MacOS X 10.5.
13862         * doc/posix-functions/duplocale.texi: Update platforms list.
13863         * doc/posix-functions/freelocale.texi: Likewise.
13864         * doc/posix-functions/newlocale.texi: Likewise.
13865         * doc/posix-functions/uselocale.texi: Likewise.
13866         * doc/posix-functions/isalnum_l.texi: Likewise.
13867         * doc/posix-functions/isalpha_l.texi: Likewise.
13868         * doc/posix-functions/isblank_l.texi: Likewise.
13869         * doc/posix-functions/iscntrl_l.texi: Likewise.
13870         * doc/posix-functions/isdigit_l.texi: Likewise.
13871         * doc/posix-functions/isgraph_l.texi: Likewise.
13872         * doc/posix-functions/islower_l.texi: Likewise.
13873         * doc/posix-functions/isprint_l.texi: Likewise.
13874         * doc/posix-functions/ispunct_l.texi: Likewise.
13875         * doc/posix-functions/isspace_l.texi: Likewise.
13876         * doc/posix-functions/isupper_l.texi: Likewise.
13877         * doc/posix-functions/iswalnum_l.texi: Likewise.
13878         * doc/posix-functions/iswalpha_l.texi: Likewise.
13879         * doc/posix-functions/iswblank_l.texi: Likewise.
13880         * doc/posix-functions/iswcntrl_l.texi: Likewise.
13881         * doc/posix-functions/iswctype_l.texi: Likewise.
13882         * doc/posix-functions/iswdigit_l.texi: Likewise.
13883         * doc/posix-functions/iswgraph_l.texi: Likewise.
13884         * doc/posix-functions/iswlower_l.texi: Likewise.
13885         * doc/posix-functions/iswprint_l.texi: Likewise.
13886         * doc/posix-functions/iswpunct_l.texi: Likewise.
13887         * doc/posix-functions/iswspace_l.texi: Likewise.
13888         * doc/posix-functions/iswupper_l.texi: Likewise.
13889         * doc/posix-functions/iswxdigit_l.texi: Likewise.
13890         * doc/posix-functions/isxdigit_l.texi: Likewise.
13891         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
13892         * doc/posix-functions/strcasecmp_l.texi: Likewise.
13893         * doc/posix-functions/strcoll_l.texi: Likewise.
13894         * doc/posix-functions/strfmon_l.texi: Likewise.
13895         * doc/posix-functions/strftime_l.texi: Likewise.
13896         * doc/posix-functions/strncasecmp_l.texi: Likewise.
13897         * doc/posix-functions/strxfrm_l.texi: Likewise.
13898         * doc/posix-functions/tolower_l.texi: Likewise.
13899         * doc/posix-functions/toupper_l.texi: Likewise.
13900         * doc/posix-functions/towctrans_l.texi: Likewise.
13901         * doc/posix-functions/towlower_l.texi: Likewise.
13902         * doc/posix-functions/towupper_l.texi: Likewise.
13903         * doc/posix-functions/wcscoll_l.texi: Likewise.
13904         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
13905         * doc/posix-functions/wctrans_l.texi: Likewise.
13906         * doc/posix-functions/wctype_l.texi: Likewise.
13907         * doc/glibc-functions/strptime_l.texi: Likewise.
13908         * doc/glibc-functions/strtod_l.texi: Likewise.
13909         * doc/glibc-functions/strtof_l.texi: Likewise.
13910         * doc/glibc-functions/strtol_l.texi: Likewise.
13911         * doc/glibc-functions/strtold_l.texi: Likewise.
13912         * doc/glibc-functions/strtoll_l.texi: Likewise.
13913         * doc/glibc-functions/strtoul_l.texi: Likewise.
13914         * doc/glibc-functions/strtoull_l.texi: Likewise.
13915         * doc/glibc-functions/wcsftime_l.texi: Likewise.
13916         * doc/glibc-functions/wcstod_l.texi: Likewise.
13917         * doc/glibc-functions/wcstof_l.texi: Likewise.
13918         * doc/glibc-functions/wcstol_l.texi: Likewise.
13919         * doc/glibc-functions/wcstold_l.texi: Likewise.
13920         * doc/glibc-functions/wcstoll_l.texi: Likewise.
13921         * doc/glibc-functions/wcstoul_l.texi: Likewise.
13922         * doc/glibc-functions/wcstoull_l.texi: Likewise.
13923
13924 2009-11-24  Bruno Haible  <bruno@clisp.org>
13925
13926         duplocale: Fix logic bug.
13927         * lib/duplocale.c: Don't include <langinfo.h>.
13928         (_NL_LOCALE_NAME): Remove macro.
13929         (rpl_duplocale): Use setlocale instead of nl_langinfo.
13930         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
13931
13932 2009-11-23  Jim Meyering  <meyering@redhat.com>
13933
13934         test-update-copyright: don't hard-code /usr/bin/perl
13935         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
13936         perl to print the current year.  Gilles Espinasse reported that
13937         the replaced use of perl was hard-coded as /usr/bin/perl.
13938
13939 2009-11-23  Bruno Haible  <bruno@clisp.org>
13940
13941         duplocale: Add support for glibc 2.3.x.
13942         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
13943
13944 2009-11-22  Bruno Haible  <bruno@clisp.org>
13945
13946         vasnprintf: Tiny optimization.
13947         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
13948         MacOS X.
13949
13950 2009-11-22  Bruno Haible  <bruno@clisp.org>
13951
13952         Tests for module 'duplocale'.
13953         * modules/duplocale-tests: New file.
13954         * tests/test-duplocale.c: New file.
13955
13956         New module 'duplocale'.
13957         * m4/duplocale.m4: New file.
13958         * lib/locale.in.h (duplocale): New declaration.
13959         * lib/duplocale.c: New file.
13960         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
13961         gl_LOCALE_H_DEFAULTS): New macros.
13962         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
13963         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
13964         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
13965         REPLACE_DUPLOCALE.
13966         * modules/duplocale: New file.
13967         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
13968
13969 2009-11-22  Bruno Haible  <bruno@clisp.org>
13970
13971         * modules/locale-tests (configure.ac): Test for newlocale function.
13972         * tests/test-locale.c: When the system has extended locale functions,
13973         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
13974
13975         locale: Make locale_t available when possible.
13976         * lib/locale.in.h: Include <xlocale.h> when it exists.
13977         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
13978         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
13979         * modules/locale (Depends-on): Add extensions.
13980         (Makefile.am): Also substitute HAVE_XLOCALE_H.
13981         * doc/posix-headers/locale.texi: Document the problem with locale_t.
13982
13983 2009-11-22  Bruno Haible  <bruno@clisp.org>
13984
13985         Add comments.
13986         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
13987         invocation.
13988         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13989         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13990         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13991
13992 2009-11-22  Bruno Haible  <bruno@clisp.org>
13993
13994         error: account for the possibility of freopen (stdout).
13995         * lib/error.c: Include <unistd.h>.
13996         (flush_stdout): New function, extracted from error and error_at_line.
13997         Determine stdout's fd dynamically.
13998         (error, error_at_line): Invoke flush_stdout.
13999         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14000         * modules/error (Depends-on): Add unistd.
14001
14002 2009-11-22  Bruno Haible  <bruno@clisp.org>
14003
14004         diffseq: Add comment.
14005         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14006
14007 2009-11-22  Jim Meyering  <meyering@redhat.com>
14008
14009         c-stack: avoid defining an unused static function
14010         * lib/c-stack.c (find_stack_direction): Do not define this function
14011         when it will not be used.
14012
14013         diffseq: avoid spurious gcc warnings
14014         * lib/diffseq.h (IF_LINT2): Define.
14015         (compareseq): Use it to initialize two members of "part".
14016         This avoids two used-uninitialized warnings.
14017
14018 2009-11-21  Jim Meyering  <meyering@redhat.com>
14019
14020         c-stack: avoid "ignoring return value of `write'" warning
14021         * lib/c-stack.c: Include "ignore-value.h".
14022         (die): Explicitly ignore each write return value.
14023         * modules/c-stack (Depends-on): Add ignore-value.
14024
14025 2009-11-21  Bruno Haible  <bruno@clisp.org>
14026
14027         diffseq: reduce scope of variable 'best'.
14028         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14029         variable, earlier used for two different purposes.
14030
14031 2009-11-21  Jim Meyering  <meyering@redhat.com>
14032
14033         diffseq: remove useless assignment to "best"
14034         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14035         assignment.  At that point "best" is already guaranteed to be zero.
14036
14037 2009-11-20  Eric Blake  <ebb9@byu.net>
14038
14039         build: mention ftp redirector in release announcements
14040         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14041         values that used to come from cfg.mk; mention FTP redirect URL.
14042         * build-aux/announce-gen: Mention the mirror list.
14043         Suggested by Karl Berry.
14044
14045         nanosleep: improve port to mingw
14046         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14048         LIB_NANOSLEEP, but only when needed.
14049         * modules/select (Link): Document LIBSOCKET.
14050         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14051         enough.
14052
14053         nanosleep: work around cygwin bug
14054         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14055         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14056         bug.
14057         (getnow): Delete, not needed.
14058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14059         LIB_CLOCK_GETTIME.
14060         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14061         clock-time, gettime.
14062         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14063         bug.
14064         * modules/nanosleep-tests: New test.
14065         * tests/test-nanosleep.c: New file.
14066
14067         sleep: work around cygwin bug
14068         * lib/sleep.c (rpl_sleep): Work around the bug.
14069         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14070         (gl_PREREQ_SLEEP): Delete unused macro.
14071         * modules/sleep (Depends-on): Add verify.
14072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14073         * modules/unistd (Makefile.am): Substitute witness.
14074         * lib/unistd.in.h (sleep): Update prototype.
14075         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14076         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14077         * modules/sleep-tests (Depends-on): Check for alarm.
14078
14079 2009-11-20  Jim Meyering  <meyering@redhat.com>
14080
14081         maint.mk: improve sc_prohibit_magic_number_exit
14082         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14083         so it does not match uses like System.exit(1).
14084         Add comments showing how to correct all offenders.
14085
14086 2009-11-19  Eric Blake  <ebb9@byu.net>
14087
14088         xalloc-die-tests: add missing library
14089         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14090
14091         test-xvasprintf: silence compiler warnings
14092         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14093         empty string from gcc.
14094
14095 2009-11-19  Jim Meyering  <meyering@redhat.com>
14096
14097         xfreopen: new module, from coreutils
14098         * modules/xfreopen: New module.
14099         * lib/xfreopen.c: New file.
14100         * lib/xfreopen.h: New file.
14101         * MODULES.html.sh (File stream based Input/Output"): Add it.
14102
14103 2009-11-19  Eric Blake  <ebb9@byu.net>
14104
14105         manywarnings: depend on warnings
14106         * modules/manywarnings (Depends-on): Add warnings.
14107
14108         build: avoid compiler warnings
14109         * lib/select.c (rpl_select): Delete unused variable.
14110         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14111
14112 2009-11-18  Eric Blake  <ebb9@byu.net>
14113
14114         tests: avoid false negative with --with-packager
14115         * tests/test-version-etc.sh: Discard packager information.
14116         * tests/test-argp-version-etc-1.sh: Likewise.
14117         Reported by Mike Frysinger.
14118
14119         utimens: fix regression on Solaris
14120         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14121         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14122         can only change fd timestamps via futimesat.  Instead, use an
14123         additional witness macro to avoid BSD bug.
14124         Reported by Jim Meyering.
14125
14126 2009-11-17  Eric Blake  <ebb9@byu.net>
14127
14128         usleep: use it to simplify tests
14129         * modules/stat-time-tests (Depends-on): Add usleep.
14130         (configure.ac): Drop usleep check.
14131         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14132         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14133         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14134         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14135         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14136         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14137         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14138         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14139         Likewise.
14140         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14141         * tests/test-lchown.h (nap): Likewise.
14142         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14143         * tests/test-stat-time.c (nap): Likewise.
14144         * tests/test-utimens-common.h (nap): Update comments.
14145
14146         usleep: new module
14147         * modules/usleep: New file.
14148         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14149         * lib/usleep.c (usleep): Likewise.
14150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14151         * modules/unistd (Makefile.am): Substitute witnesses.
14152         * lib/unistd.in.h (usleep): Add declaration.
14153         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14154         * MODULES.html.sh (Date and time): Likewise.
14155         * modules/usleep-tests (Depends-on): New test.
14156         * tests/test-usleep.c: New file.
14157
14158         chown: work around OpenBSD bug
14159         * lib/chown.c (rpl_chown): Work around the bug.
14160         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14161         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14162         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14163         * modules/chown (Depends-on): Add stdbool.
14164         * modules/lchown (Depends-on): Likewise.
14165         * doc/posix-functions/chown.texi (chown): Document the bug.
14166         * doc/posix-functions/lchown.texi (lchown): Likewise.
14167         * tests/test-lchown.h (test_chown): Relax test.
14168
14169         mkstemp: avoid conflict with C++ keyword template
14170         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14171         * lib/mkostemp.c (mkostemp): Likewise.
14172         * lib/mkostemps.c (mkostemps): Likewise.
14173         * lib/mkstemp.c (mkstemp): Likewise.
14174         * lib/mkstemps.c (mkstemps): Likewise.
14175
14176         xalloc-die-tests: optimize
14177         * tests/test-xalloc-die.sh: Reduce number of processes.
14178
14179 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14180
14181         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14182         patch from ludo@gnu.org (Ludovic Courtès).
14183
14184 2009-11-17  Jim Meyering  <meyering@redhat.com>
14185
14186         version-etc: use proper license string
14187         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14188         * modules/version-etc-fsf: Likewise.
14189
14190 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14191
14192         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14193         printed to stdout.  Deal with EOL differences.
14194
14195 2009-11-17  Eric Blake  <ebb9@byu.net>
14196
14197         unsetenv: work around Solaris bug
14198         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14199         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14200         Reported by Jim Meyering.
14201
14202         vasnprintf: avoid compiler warnings
14203         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14204         variables.
14205         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14206
14207 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14208
14209         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14210         settings since xalloc-die is no longer the self test,
14211         xalloc-die.sh is.
14212
14213 2009-11-17  Jim Meyering  <meyering@redhat.com>
14214
14215         test-xalloc-die.sh: make the code agree with the commit log
14216         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14217         at the end, just in case you happen to have a test-xalloc-die
14218         program in some other PATH directory.
14219
14220         test-xalloc-die.sh: fix a portability bug
14221         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14222         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
14223         Otherwise, argv[0] (as often seen in diagnostics) would be too
14224         system-dependent, sometimes with, and sometimes without the leading "./".
14225
14226         version-etc-fsf: relax license to LGPLv3+
14227         * modules/version-etc-fsf (License): Relax license.
14228
14229 2009-11-16  Eric Blake  <ebb9@byu.net>
14230
14231         xalloc-die-tests: avoid printing null pointer
14232         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
14233         shell script.
14234         * tests/test-xalloc-die.c (program_name): Declare.
14235         * tests/test-xalloc-die.sh (tmpfiles): New file.
14236
14237         setenv, unsetenv: work around various bugs
14238         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
14239         (setenv) [HAVE_SETENV]: Work around bugs.
14240         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
14241         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
14242         for bugs.
14243         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
14244         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
14245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
14246         * modules/stdlib (Makefile.am): Update substitutions.
14247         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
14248         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
14249         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14250         * modules/setenv-tests: New test.
14251         * modules/unsetenv-tests: Likewise.
14252         * tests/test-setenv.c: New file.
14253         * tests/test-unsetenv.c: Likewise.
14254
14255 2009-11-16  Jim Meyering  <meyering@redhat.com>
14256
14257         version-etc: relax license to LGPLv3+
14258         * modules/version-etc (License): Relax license.
14259
14260         better AC_REQUIRE expanded-before-required-warning avoidance
14261         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
14262         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14263         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14264         which is no longer needed.
14265
14266 2009-11-16  Eric Blake  <ebb9@byu.net>
14267
14268         test-freading: clean up temporary file
14269         * tests/test-freading.c (main): Remove file on success, and use
14270         ASSERT more liberally.
14271         Reported by Jim Meyering.
14272
14273 2009-11-16  Jim Meyering  <meyering@redhat.com>
14274
14275         avoid new AC_REQUIRE expanded-before-required warnings
14276         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14277         merely using it.
14278         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14279         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14280
14281 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14282
14283         * tests/test-xalloc-die.c: New file.
14284         * modules/xalloc-die-tests: New file.
14285         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14286         XFAIL_TESTS so it can be appended by modules.
14287
14288 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14289
14290         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14291         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14292
14293 2009-11-14  Eric Blake  <ebb9@byu.net>
14294
14295         fnmatch: avoid compiler warning
14296         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14297         to silence compiler warning about mismatch signedness in ?:.
14298         Reported by Robert Millan.
14299
14300         intprops: add double-inclusion guard
14301         * lib/intprops.h: Allow idempotent includes.
14302         Suggested by Bruce Korb.
14303
14304         openat: detect Solaris fchownat bug
14305         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14306         penalizing glibc chownat when only lchownat is broken.
14307         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14308         trailing slash bugs.
14309         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14310         * modules/openat-tests (Files): Include more files.
14311         (Depends-on): Add mgetgroups, sleep, stat-time.
14312         (configure.ac): Add additional checks.
14313         (Makefile.am): Build new test.
14314         * tests/test-fchownat.c: New file.
14315
14316         lchown: detect Solaris and FreeBSD bug
14317         * lib/lchown.c (rpl_lchown): Work around bug.
14318         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14320         * modules/unistd (Makefile.am): Populate it.
14321         * lib/unistd.in.h (lchown): Update declaration.
14322         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14323         * modules/lchown-tests: New file.
14324         * tests/test-lchown.h (test_lchown): Likewise.
14325         * tests/test-lchown.c (main): Likewise.
14326
14327         chown: detect Solaris and FreeBSD bug
14328         * lib/chown.c (rpl_chown): Work around bug.
14329         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14330         (gl_PREREQ_CHOWN): Delete.
14331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14332         * modules/unistd (Makefile.am): Populate it.
14333         * lib/unistd.in.h (chown): Update declaration.
14334         * lib/lchown.c (chown): Update client.
14335         * modules/lchown (Depends-on): Add lstat.
14336         * doc/posix-functions/chown.texi (chown): Document the bug.
14337         * doc/posix-functions/getgroups.texi (getgroups): Document
14338         getgroups pitfall.
14339         * modules/chown-tests: New file.
14340         * tests/test-chown.h (test_chown): Likewise.
14341         * tests/test-chown.c (main): Likewise.
14342
14343 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14344
14345         gnulib-tool: correctly detect absence of m4 directories
14346         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14347
14348 2009-11-14  Jim Meyering  <meyering@redhat.com>
14349
14350         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14351         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14352
14353 2009-11-14  John W. Eaton  <jwe@gnu.org>
14354
14355         strftime.h: wrap funtion declaration in extern "C" block
14356         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14357
14358 2009-11-13  Eric Blake  <ebb9@byu.net>
14359
14360         getgroups: avoid compiler warning
14361         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14362
14363         getgroups: work around FreeBSD bug
14364         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14365         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14366         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14367         * tests/test-getgroups.c (main): Fix buffer overrun.
14368
14369         getgroups: avoid compilation failure
14370         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14371         * modules/getgroups (Depends-on): Add stdint.
14372
14373 2009-11-13  Jim Meyering  <meyering@redhat.com>
14374
14375         test-getgroups: avoid compilation failure
14376         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14377
14378 2009-11-13  Eric Blake  <ebb9@byu.net>
14379
14380         mgetgroups: new module, taken from coreutils
14381         * modules/mgetgroups: New file.
14382         * lib/mgetgroups.h: Likewise.
14383         * lib/mgetgroups.c (mgetgroups): Likewise.
14384         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14385         * MODULES.html.sh (Users and groups): Mention it.
14386
14387         getgroups: don't expose GETGROUPS_T to user
14388         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14389         an element at a time if GETGROUPS_T is wrong size.
14390         * lib/getugroups.h (getugroups): Change signature.
14391         * lib/unistd.in.h (getgroups): Likewise.
14392         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
14393         signature needs fixing.
14394         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
14395         AC_TYPE_GETGROUPS.
14396         * modules/group-member (Depends-on): Add getgroups.
14397         * lib/group-member.c (group_info, get_group_info): Use gid_t.
14398         (group_member): Rely on getgroups replacement.
14399         * lib/getugroups.c (getugroups): Use gid_t.
14400         * tests/test-getgroups.c (main): Likewise.
14401         * NEWS: Mention the signature change.
14402         * doc/posix-functions/getgroups.texi (getgroups): Mention the
14403         problem with signature.
14404         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
14405         GETGROUPS_T is still useful for setgroups.
14406
14407         getgroups, getugroups: provide stubs for mingw
14408         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
14409         * lib/getugroups.c (getugroups): Likewise.
14410         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
14411         function.  Modernize replacement scheme.
14412         (gl_PREREQ_GETGROUPS): Delete.
14413         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
14414         * modules/getgroups (configure.ac): Declare witness.
14415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14416         * modules/unistd (Depends-on): Substitute witness.
14417         * lib/unistd.in.h (getgroups): Declare replacement.
14418
14419         getgroups: avoid calling exit
14420         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
14421         drop xalloc.
14422         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
14423         dependencies.
14424         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
14425         exiting, in the rare case of malloc failure.
14426
14427         getgroups: fix logic error
14428         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
14429         has more than 20 groups.
14430         * modules/getgroups-tests: New test.
14431         * tests/test-getgroups.c: New file.
14432
14433 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14434
14435         * tests/test-base64.c: Improve.
14436
14437 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14438
14439         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
14440         Blake <ebb9@byu.net>.
14441
14442 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14443
14444         * tests/test-xvasprintf.c: Add %s%s related checks.
14445
14446 2009-11-12  Eric Blake  <ebb9@byu.net>
14447
14448         version-etc: match standards.texi style
14449         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
14450         and use <> only for URLs.
14451
14452 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
14453
14454         fts: do not fail on a submount during traversal
14455         * lib/fts.c (fts_build): Read the stat info again after opening
14456         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
14457         Original report at http://bugzilla.redhat.com/501848.
14458
14459 2009-11-12  Jim Meyering  <meyering@redhat.com>
14460
14461         bootstrap: sync from coreutils
14462         * build-aux/bootstrap (bootstrap_epilogue): New function.
14463         Use git_modules_config in one more place.  This make bootstrap's
14464         --gnulib-srcdir option more useful for testing.
14465
14466         bootstrap: generalize autoheader check
14467         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
14468         AC_CONFIG_HEADERS.
14469
14470 2009-11-11  Eric Blake  <ebb9@byu.net>
14471
14472         mkfifoat: use new modules for Solaris and BSD bugs
14473         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
14474         * lib/mkfifoat.c (mknodat): Split...
14475         * lib/mknodat.c (mknodat): ...into new file.
14476         * modules/mkfifoat (Files): Ship new file.
14477         (Depends-on): Add mkfifo, mknod.
14478         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
14479         (Depends-on): Add symlink.
14480         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
14481         redundant with test_mkfifo.h.
14482         (do_mkfifoat, do_mknodat): New helpers.
14483
14484         mknod: new module
14485         * modules/mknod: New file.
14486         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14487         * lib/mknod.c (mknod): Likewise.
14488         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14489         defaults.
14490         * modules/sys_stat (Makefile.am): Substitute them.
14491         * lib/sys_stat.in.h (mknod): Declare replacement.
14492         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14493         Document it.
14494         * doc/posix-functions/mknod.texi (mknod): Likewise.
14495         * modules/mknod-tests: New test.
14496         * tests/test-mknod.c: Likewise.
14497
14498         mkfifo: new module
14499         * modules/mkfifo: New file.
14500         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14501         * lib/mkfifo.c (mkfifo): Likewise.
14502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14503         defaults.
14504         * modules/sys_stat (Makefile.am): Substitute them.
14505         * lib/sys_stat.in.h (mkfifo): Declare replacement.
14506         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14507         Document it.
14508         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
14509         * modules/mkfifo-tests: New test.
14510         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
14511         from test-mkfifoat.c.
14512         * tests/test-mkfifo.c: New file.
14513
14514         readlink: detect FreeBSD bug
14515         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
14516         slash on symlink.
14517         * doc/posix-functions/readlink.texi (readlink): Document the bug.
14518         * tests/test-readlink.h (test_readlink): Enhance test.
14519
14520         symlink: detect FreeBSD bug
14521         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
14522         slash on symlink.
14523         * doc/posix-functions/symlink.texi (symlink): Document the bug.
14524         * tests/test-symlink.h (test_symlink): Enhance test.
14525
14526 2009-11-10  Eric Blake  <ebb9@byu.net>
14527
14528         link: detect FreeBSD bug
14529         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
14530         symlink.
14531         * doc/posix-functions/link.texi (link): Document the bug.
14532         * tests/test-link.h (test_link): Enhance test.
14533         * tests/test-linkat.c (main): Update caller.
14534
14535         unlink, remove: detect FreeBSD bug
14536         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
14537         slash on symlink.
14538         * doc/posix-functions/unlink.texi (unlink): Document the bug.
14539         * doc/posix-functions/remove.texi (remove): Likewise.
14540         * tests/test-unlink.h (test_unlink): Enhance test.
14541         * tests/test-remove.c (main): Likewise.
14542
14543 2009-11-09  Eric Blake  <ebb9@byu.net>
14544
14545         rename: detect FreeBSD bug
14546         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
14547         slash on symlink.
14548         * modules/renameat-tests (Depends-on): Add filenamecat.
14549         * tests/test-rename.h (test_rename): Allow one more errno.
14550         * tests/test-renameat.c (main): Likewise.
14551         * doc/posix-functions/rename.texi (rename): Document the bug.
14552
14553         open: detect FreeBSD bug
14554         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
14555         symlink.
14556         * doc/posix-functions/open.texi (open): Document the bug.
14557         * doc/posix-functions/utimes.texi (utimes): Likewise.
14558         * tests/test-open.h (test_open): Add parameters, and test symlink
14559         handling.
14560         * tests/test-open.c (main): Adjust caller.
14561         * tests/test-fcntl-safer.c (main): Likewise.
14562         * modules/open-tests (Depends-on): Add stdbool, symlink.
14563         * modules/fcntl-safer-tests (Depends-on): Likewise.
14564         * tests/test-openat.c (main): Add test-open tests.
14565
14566         stat: detect FreeBSD bug
14567         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
14568         symlink.
14569         * doc/posix-functions/stat.texi (stat): Document the bug.
14570         * tests/test-stat.h (test_stat_func): Add argument.
14571         * tests/test-stat.c (main): Adjust caller.
14572         * tests/test-fstatat.c (main): Likewise.
14573         * modules/stat-tests (Depends-on): Add stdbool, symlink.
14574         Reported by Jim Meyering.
14575
14576 2009-11-09  James Youngman  <jay@gnu.org>
14577
14578         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
14579         * lib/strftime.c: Correct placement of #include "ignore-value.h".
14580
14581 2009-11-08  Jim Meyering  <meyering@redhat.com>
14582
14583         utimens: remove invalid futimesat call
14584         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
14585         It used the file descriptor of the target file as the DIR_FD
14586         parameter and NULL as the file name.  That caused failure with
14587         errno == EFAULT on FreeBSD-8.0-rc2
14588
14589 2009-11-07  Eric Blake  <ebb9@byu.net>
14590
14591         fflush, freadseek: use fseeko, not fseek
14592         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14593         (clear_ungetc_buffer): Avoid potential problems on large files.
14594         * lib/freadseek.c (freadseek): Likewise.
14595         * modules/freadseek (Depends-on): Add fseeko.
14596         * modules/fseek (configure.ac): Set a witness.
14597         * tests/test-fflush.c (main): Use fseeko.
14598         * tests/test-fpurge.c (fseek): Disable link warning.
14599         * tests/test-freadable.c (fseek): Likewise.
14600         * tests/test-freading.c (fseek): Likewise.
14601         * tests/test-fseeko.c (fseek): Likewise.
14602         * tests/test-ftell.c (fseek): Likewise.
14603         * tests/test-ftello.c (fseek): Likewise.
14604         * tests/test-fwritable.c (fseek): Likewise.
14605         * tests/test-fwriting.c (fseek): Likewise.
14606
14607 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14608
14609         * modules/memchr (Depends-on): Drop getpagesize dependency.
14610
14611 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14612
14613         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
14614         Reported by Ludovic Courtès.
14615         * build-aux/pmccabe2html: Improve example usage.
14616         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
14617
14618 2009-11-06  Jim Meyering  <meyering@redhat.com>
14619
14620         do-release-commit-and-tag: New module.
14621         Automate the release-commit and tag process.
14622         * build-aux/do-release-commit-and-tag: New script, from coreutils.
14623         * modules/do-release-commit-and-tag: New file.
14624         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14625
14626 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14627
14628         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
14629         because test-select.c uses inet_pton.
14630
14631 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14632
14633         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
14634         GETADDRINFO_LIB.  Bump serial number.
14635         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
14636         Suggested by Eric Blake <ebb9@byu.net>.
14637
14638 2009-11-05  Eric Blake  <ebb9@byu.net>
14639
14640         strtod: detect darwin bug
14641         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
14642         Reported by Leo Davis.
14643
14644         freopen-safer: new module
14645         * modules/freopen-safer: New module.
14646         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
14647         * lib/freopen-safer.c (freopen_safer): New file.
14648         * lib/stdio-safer.h (freopen_safer): New declaration.
14649         * lib/stdio--.h (freopen): New override.
14650         * MODULES.html.sh (File stream based Input/Output): Mention it.
14651         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
14652         freopen-safer module.
14653         * doc/posix-functions/stderr.texi (stderr): Likewise.
14654         * doc/posix-functions/stdin.texi (stdin): Likewise.
14655         * doc/posix-functions/stdout.texi (stdout): Likewise.
14656         * modules/freopen-safer-tests: New test.
14657         * tests/test-reopen-safer.c: New file.
14658
14659 2009-11-05  Jim Meyering  <meyering@redhat.com>
14660
14661         maint.mk: Prohibit inclusion of "close-stream.h" without use.
14662         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14663
14664 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14665
14666         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
14667
14668 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14669
14670         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
14671
14672 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14673
14674         Fix link error.
14675         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14676         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14677
14678 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14679
14680         * tests/test-func.c: Also test value of __func__.
14681
14682 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14683
14684         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
14685         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
14686
14687 2009-11-05  Bruno Haible  <bruno@clisp.org>
14688
14689         Fix link error.
14690         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14691         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14692         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
14693
14694 2009-11-05  Bruno Haible  <bruno@clisp.org>
14695
14696         Tests for module 'inet_pton'.
14697         * modules/inet_pton-tests: New file.
14698         * tests/test-inet_pton.c: New file.
14699
14700 2009-11-05  Bruno Haible  <bruno@clisp.org>
14701
14702         Tests for module 'inet_ntop'.
14703         * modules/inet_ntop-tests: New file.
14704         * tests/test-inet_ntop.c: New file.
14705
14706 2009-11-04  Eric Blake  <ebb9@byu.net>
14707
14708         stdlib-safer: wrap all mkstemp variants
14709         * modules/mkostemp (configure.ac): Set witness.
14710         * modules/mkostemps (configure.ac): Likewise.
14711         * modules/mkstemps (configure.ac): Likewise.
14712         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
14713         (mkstemps_safer): Wrap more functions.
14714         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
14715         wrapping.
14716         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
14717         (mkstemps_safer): Implement the wrappers.
14718
14719         mkstemps, mkostemps: new modules
14720         * modules/mkostemps: New module.
14721         * modules/mkstemps: Likewise.
14722         * lib/mkostemps.c (mkostemps): New file.
14723         * lib/mkstemps.c (mkstemps): Likewise.
14724         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
14725         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
14726         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
14727         * modules/stdlib (Makefile.am): Substitute them.
14728         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
14729         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
14730         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14731         * doc/gnulib.texi (Glibc stdlib.h): Include them.
14732         * MODULES.html.sh (File system functions): Mention them.
14733
14734         tempname: resync from glibc
14735         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
14736         same values for __GT_FILE as glibc.  Abort even when assertions
14737         are disabled.
14738         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
14739         match its value otherwise.  Allow idempotent inclusion.
14740         * lib/mkdtemp.c (mkdtemp): Adjust caller.
14741         * lib/mkostemp.c (mkostemp): Likewise.
14742         * lib/mkstemp.c (mkstemp): Likewise.
14743         * lib/tmpfile.c (tmpfile): Likewise.
14744         * NEWS: Document this.
14745
14746         utimens: fix use of futimens on older Linux
14747         * lib/utimens.c (fdutimens): Use updated, rather than original,
14748         timespec to avoid bug in older Linux kernel.
14749         Reported by Simon Josefsson.
14750
14751 2009-11-04  Bruno Haible  <bruno@clisp.org>
14752
14753         Make num_processors more flexible and consistent.
14754         * lib/nproc.h (enum nproc_query): New type.
14755         (num_processors): Add a 'query' argument.
14756         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
14757         (num_processors): Add a 'query' argument. Test the value of the
14758         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
14759         mingw, count the number of CPUs available for the current process.
14760         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
14761         Check for sched_getaffinity and sched_getaffinity_np.
14762         * modules/nproc (Depends-on): Add c-ctype, extensions.
14763         * NEWS: Mention the change.
14764
14765 2009-11-03  Bruno Haible  <bruno@clisp.org>
14766
14767         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
14768
14769 2009-11-03  Jim Meyering  <meyering@redhat.com>
14770
14771         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
14772         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
14773         if it is defined.
14774
14775 2009-11-02  Eric Blake  <ebb9@byu.net>
14776
14777         mktime, timegm: share common declaration
14778         * lib/mktime-internal.h: New file.
14779         * lib/mktime.c: Use it rather than open-coding a declaration.
14780         * lib/timegm.c: Likewise.
14781         * modules/mktime (Files): Ship it.
14782         * modules/timegm (Files): Likewise.
14783         Suggested by Bruno Haible.
14784
14785         test-update-copyright: update test to match script changes
14786         * tests/test-update-copyright.sh: Avoid hard-coding perl
14787         location.  Don't update *.bak created by earlier runs.
14788
14789 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14790             Simon Josefsson  <simon@josefsson.org>
14791             Bruno Haible  <bruno@clisp.org>
14792
14793         Fix link error on Solaris 8.
14794         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
14795         also in libnsl. Define also INET_PTON_LIB.
14796         * modules/inet_pton (Link): New section.
14797
14798 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14799             Bruno Haible  <bruno@clisp.org>
14800
14801         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
14802         * modules/inet_ntop (Link): New section.
14803         Reported by Boyan Kasarov <bkasarov@gmail.com>.
14804
14805 2009-11-02  Eric Blake  <ebb9@byu.net>
14806
14807         maint: avoid compiler warnings in m4 macros
14808         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
14809         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
14810
14811 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14812
14813         * m4/pmccabe2html.m4: Remove file.
14814         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
14815         function.  Change maintainer.
14816         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
14817         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
14818         Courtès).
14819
14820 2009-10-31  Eric Blake  <ebb9@byu.net>
14821
14822         fseeko: fix m4 regression
14823         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
14824         regression from 2009-10-27.
14825         Reported by Ralf Wildenhues.
14826
14827 2009-10-31  Jim Meyering  <meyering@redhat.com>
14828
14829         inttostr: aesthetics and improved (compile-time) safety
14830         Define inttype_is_signed rather than inttype_is_unsigned,
14831         since the sole use is via "#if inttype_is_signed".
14832         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
14833         inttype_is_unsigned.
14834         * lib/offtostr.c (inttype_is_signed): Likewise.
14835         * lib/uinttostr.c (inttype_is_signed): Likewise.
14836         * lib/umaxtostr.c (inttype_is_signed): Likewise.
14837         * lib/inttostr.c (inttostr): Use verify to cross-check the
14838         inttype_is_signed value and the signedness of the actual type.
14839         * modules/inttostr (Depends-on): Add verify.
14840
14841 2009-10-30  Eric Blake  <ebb9@byu.net>
14842
14843         build: avoid compiler warnings
14844         * lib/fchmodat.c (lchmod): Mark unused variables.
14845         * lib/getopt.c (_getopt_initialize): Likewise.
14846         * lib/mktime.c (__mktime_internal): Provide prototype.
14847         * lib/inttostr.c (inttostr): Avoid compiler warning even with
14848         older gcc that do not understand #pragma GCC diagnostic.
14849         * lib/uinttostr.c (inttype_is_unsigned): Define.
14850         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
14851
14852 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14853
14854         stat: fix compilation on AIX
14855         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
14856         only see struct stat64.
14857
14858 2009-10-30  Eric Blake  <ebb9@byu.net>
14859
14860         exclude: make more robust
14861         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
14862         rather than masking a coding bug.
14863         Suggested by Bruno Haible.
14864
14865 2009-10-30  Jim Meyering  <meyering@redhat.com>
14866
14867         perl scripts: remove #!/usr/bin/perl in favor of more portable...
14868         Rather than putting #!/usr/bin/perl on the first line,
14869         start with a variant of what's recommended by "man perlrun" that
14870         invokes the first "perl" program from your shell's search path.
14871         * build-aux/gitlog-to-changelog: Replace #!... as above.
14872         Add a "Local Variables" perl mode setting.
14873         Prompted by a patch from Ludovic Courtès.
14874         Improved by Eric Blake.
14875         * build-aux/useless-if-before-free: Likewise.
14876         * build-aux/announce-gen: Likewise.
14877         * build-aux/update-copyright: Likewise.
14878
14879 2009-10-29  Eric Blake  <ebb9@byu.net>
14880
14881         filenamecat-lgpl: adjust clients
14882         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
14883         filenamecat.
14884         * modules/renameat (Depends-on): Likewise.
14885
14886         filenamecat: split into filenamecat-lgpl
14887         * modules/filenamecat-lgpl: New module.
14888         * modules/filenamecat (Files): Move library-safe files into
14889         filenamecat-lgpl.
14890         (Depends-on): Add filenamecat-lgpl.
14891         (configure.ac): Declare witness.
14892         * lib/filenamecat.h (file_name_concat): Only declare when using
14893         GPL module.
14894         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
14895         Move...
14896         * lib/filenamecat-lgpl.c: ...into new file.
14897         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
14898         (gl_FILE_NAME_CONCAT): Use it.
14899         * MODULES.html.sh (File system functions): Mention new module.
14900
14901         argp: avoid memory leak
14902         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
14903         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
14904         base_name, since the latter malloc()s and can call exit().
14905         Leak introduced 2006-07-03.
14906
14907         dirname-lgpl: adjust clients that don't need full dirname
14908         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
14909         * modules/filenamecat (Depends-on): Likewise.
14910         * modules/linkat (Depends-on): Likewise.
14911         * modules/mkancesdirs (Depends-on): Likewise.
14912         * modules/mkdir (Depends-on): Likewise.
14913         * modules/openat (Depends-on): Likewise.
14914         * modules/savewd (Depends-on): Likewise.
14915         * modules/rename (Depends-on): Likewise.
14916         (License): Relax license.
14917         * modules/mkdir-tests (Depends-on): Drop progname.
14918         (Makefile.am): Delete unneeded LDADD.
14919         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
14920
14921         dirname: split into dirname-lgpl
14922         * modules/dirname-lgpl: New module.
14923         * modules/dirname (Files): Move library-safe files into
14924         dirname-lgpl.
14925         (Depends-on): Add dirname-lgpl.
14926         (configure.ac): Declare witness.
14927         * modules/double-slash-root (License): Relax license.
14928         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
14929         module.
14930         * lib/dirname.c (dir_len, mdir_name): Move...
14931         * lib/dirname-lgpl.c: ...into new file.
14932         * lib/basename.c (last_component, base_len): Move...
14933         * lib/basename-lgpl.c: ...into new file.
14934         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
14935         (gl_DIRNAME): Use it.
14936         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
14937         Mention new module.
14938         * modules/dirname-tests (Depends-on): Add progname.
14939         * tests/test-dirname.c (program_name): Delete.
14940
14941         mkdir: make safe for libraries
14942         * modules/mkdir (Depends-on): Drop xalloc.
14943         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
14944         exit.
14945
14946         tests: avoid some compiler warnings
14947         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
14948         literals.
14949         * tests/test-memchr.c (main): Avoid type mismatch.
14950         * tests/test-arpa_inet.c (main): Avoid unused parameters.
14951         * tests/test-base64.c (main): Likewise.
14952         * tests/test-getdelim.c (main): Likewise.
14953         * tests/test-gethostname.c (main): Likewise.
14954         * tests/test-getline.c (main): Likewise.
14955         * tests/test-netinet_in.c (main): Likewise.
14956         * tests/test-select.c (open_server_socket, main): Likewise.
14957         * tests/test-select-stdin.c (main): Likewise.
14958         * tests/test-sockets.c (main): Likewise.
14959         * tests/test-strsignal.c (main): Likewise.
14960         * tests/test-sys_select.c (main): Likewise.
14961         * tests/test-sys_socket.c (main): Likewise.
14962         * tests/test-u64.c (main): Likewise.
14963         * tests/test-xfprintf-posix.c (main): Likewise.
14964         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
14965
14966         sockets: avoid compiler warning
14967         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
14968
14969         maint: detect usage(1) and other suspicious exits
14970         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
14971
14972 2009-10-29  Jim Meyering  <meyering@redhat.com>
14973
14974         timespec: long-to-int truncation could make timespec_cmp malfunction
14975         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
14976         a multiple of 2^32 nanoseconds as no difference.
14977
14978 2009-10-28  Jim Meyering  <meyering@redhat.com>
14979
14980         fprintftime: wrap macro code argument in "do {...} while(0)"
14981         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
14982         cpy macro must be a statement that can be followed by a semicolon.
14983         Now that the else clause contains a comment and is hence longer
14984         than one line, I require curly braces.  That in turn requires
14985         that we wrap this code block in the standard do...while(0).
14986
14987         fprintftime: remove stray semicolon from previous change
14988         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
14989
14990         fprintftime: avoid a warning about ignored fwrite return value
14991         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
14992         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
14993         that is unsafe.
14994         * modules/fprintftime (Depends-on): Add ignore-value.
14995
14996         exclude: avoid an unwarranted warning
14997         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
14998
14999 2009-10-27  Eric Blake  <ebb9@byu.net>
15000
15001         fseek: avoid compilation failure when fflush is replaced
15002         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15003         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15004         module is in use.
15005         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15006         module is not in use; since REPLACE_FSEEK worked otherwise.
15007         (GNULIB_FTELLO): Likewise for ftell.
15008         Reported by Ian Beckwith and others.
15009
15010 2009-10-27  Bruno Haible  <bruno@clisp.org>
15011
15012         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15013         Reported by Jim Meyering.
15014
15015 2009-10-27  Jim Meyering  <jim@meyering.net>
15016             Bruno Haible  <bruno@clisp.org>
15017
15018         Avoid warning despite dropping the return value of fwrite.
15019         * lib/unicodeio.c: Include ignore-value.h.
15020         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15021         * modules/unicodeio (Depends-on): Add ignore-value.
15022
15023 2009-10-26  Eric Blake  <ebb9@byu.net>
15024
15025         areadlinkat: fix fallback path
15026         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15027         pointer and zero.
15028
15029 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15030
15031         Use a better IO block size for modern systems
15032         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15033         * lib/md2.c: Likewise.
15034         * lib/md4.c: Likewise.
15035         * lib/md5.c: Likewise.
15036         * lib/sha1.c: Likewise.
15037         * lib/sha256.c: Likewise.
15038         * lib/sha512.c: Likewise.
15039
15040 2009-10-22  Eric Blake  <ebb9@byu.net>
15041
15042         tests: avoid several compiler warnings
15043         * tests/test-getcwd.c (main): Avoid buffer underflow.
15044         * tests/test-getdate.c (main): String literals are not safe with
15045         putenv, so use setenv.  Declare unused argument.
15046         * modules/getdate-tests (Depends-on): Add setenv.
15047         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15048         problems with string literals in char *.
15049         * tests/test-hash.c (main): Avoid shadowing declaration.
15050         (insert_new): Treat string literals as char const *.
15051         * tests/test-getopt.h (test_getopt): Likewise.
15052         (getopt_loop): Alter types to minimize casting elsewhere.
15053         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15054         (test_getopt_long_posix): Likewise.
15055         (do_getopt_long): Add wrapper to minimize casting.
15056         * tests/test-atexit.c (clear_temp_file): Use void.
15057         * tests/test-areadlink-with-size.c (main): Declare unused
15058         arguments.
15059         * tests/test-areadlink.c (main): Likewise.
15060         * tests/test-areadlinkat-with-size.c (main): Likewise.
15061         * tests/test-areadlinkat.c (main): Likewise.
15062         * tests/test-canonicalize-lgpl.c (main): Likewise.
15063         * tests/test-canonicalize.c (main): Likewise.
15064         * tests/test-dirent-safer.c (main): Likewise.
15065         * tests/test-dirname.c (main): Likewise.
15066         * tests/test-dup2.c (main): Likewise.
15067         * tests/test-fchdir.c (main): Likewise.
15068         * tests/test-fcntl-h.c (main): Likewise.
15069         * tests/test-fcntl-safer.c (main): Likewise.
15070         * tests/test-fdopendir.c (main): Likewise.
15071         * tests/test-fdutimensat.c (main): Likewise.
15072         * tests/test-fflush.c (main): Likewise.
15073         * tests/test-filenamecat.c (main): Likewise.
15074         * tests/test-filevercmp.c (main): Likewise.
15075         * tests/test-fopen-safer.c (main): Likewise.
15076         * tests/test-fopen.c (main): Likewise.
15077         * tests/test-fpending.c (main): Likewise.
15078         * tests/test-fpurge.c (main): Likewise.
15079         * tests/test-freading.c (main): Likewise.
15080         * tests/test-fstatat.c (main): Likewise.
15081         * tests/test-fsync.c (main): Likewise.
15082         * tests/test-futimens.c (main): Likewise.
15083         * tests/test-getndelim2.c (main): Likewise.
15084         * tests/test-gettimeofday.c (main): Likewise.
15085         * tests/test-getopt.c (main): Likewise.
15086         * tests/test-i-ring.c (main): Likewise.
15087         * tests/test-inttypes.c (main): Likewise.
15088         * tests/test-link.c (main): Likewise.
15089         * tests/test-lstat.c (main): Likewise.
15090         * tests/test-math.c (main): Likewise.
15091         * tests/test-md5.c (main): Likewise.
15092         * tests/test-memchr2.c (main): Likewise.
15093         * tests/test-memrchr.c (main): Likewise.
15094         * tests/test-mkdir.c (main): Likewise.
15095         * tests/test-mkdirat.c (main): Likewise.
15096         * tests/test-mkfifoat.c (main): Likewise.
15097         * tests/test-open.c (main): Likewise.
15098         * tests/test-openat-safer.c (main): Likewise.
15099         * tests/test-openat.c (main): Likewise.
15100         * tests/test-quotearg.c (main): Likewise.
15101         * tests/test-rawmemchr.c (main): Likewise.
15102         * tests/test-readlink.c (main): Likewise.
15103         * tests/test-remove.c (main): Likewise.
15104         * tests/test-rename.c (main): Likewise.
15105         * tests/test-renameat.c (main): Likewise.
15106         * tests/test-rmdir.c (main): Likewise.
15107         * tests/test-sha1.c (main): Likewise.
15108         * tests/test-signal.c (main): Likewise.
15109         * tests/test-sigaction.c (main): Likewise.
15110         * tests/test-stat.c (main): Likewise.
15111         * tests/test-stat-time.c (main): Likewise.
15112         * tests/test-stddef.c (main): Likewise.
15113         * tests/test-stdint.c (main): Likewise.
15114         * tests/test-stdio.c (main): Likewise.
15115         * tests/test-stdlib.c (main): Likewise.
15116         * tests/test-strchrnul.c (main): Likewise.
15117         * tests/test-strerror.c (main): Likewise.
15118         * tests/test-string.c (main): Likewise.
15119         * tests/test-strtod.c (main): Likewise.
15120         * tests/test-strverscmp.c (main): Likewise.
15121         * tests/test-symlink.c (main): Likewise.
15122         * tests/test-symlinkat.c (main): Likewise.
15123         * tests/test-sys_stat.c (main): Likewise.
15124         * tests/test-sys_time.c (main): Likewise.
15125         * tests/test-time.c (main): Likewise.
15126         * tests/test-unistd.c (main): Likewise.
15127         * tests/test-unlink.c (main): Likewise.
15128         * tests/test-unlinkat.c (main): Likewise.
15129         * tests/test-utimens.c (main): Likewise.
15130         * tests/test-utimensat.c (main): Likewise.
15131         * tests/test-version-etc.c (main): Likewise.
15132         * tests/test-wchar.c (main): Likewise.
15133         * tests/test-wctype.c (main): Likewise.
15134         * tests/test-xprintf-posix.c (main): Likewise.
15135         * tests/test-posixtm.c (main): Likewise.
15136         (STREQ): Delete unused macro.
15137         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15138         shadowed variables.
15139         * tests/test-memchr.c (main): Likewise.
15140
15141 2009-10-21  Eric Blake  <ebb9@byu.net>
15142
15143         areadlinkat: avoid failure on older glibc
15144         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15145         rather than mis-comparing 0 against FUNC_RESULT of char*.
15146
15147 2009-10-21  Bruno Haible  <bruno@clisp.org>
15148
15149         * modules/stpncpy (License): Relicense under LGPLv2+.
15150         Reported by David Lutterkort <lutter@redhat.com>.
15151
15152 2009-10-20  Eric Blake  <ebb9@byu.net>
15153
15154         utimensat: work around Solaris 9 bug
15155         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15156         has trailing slash bugs.
15157         * tests/test-lutimens.h (test_lutimens): Enhance test.
15158         * tests/test-utimens.h (test_utimens): Likewise.
15159         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15160         * doc/posix-functions/utimes.texi (utimes): Likewise.
15161         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15162         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15163         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15164         * doc/posix-functions/futimens.texi (futimens): Likewise.
15165
15166         fdutimensat: new module
15167         * modules/fdutimensat: New file.
15168         * lib/fdutimensat.c (fdutimensat): Likewise.
15169         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15170         * MODULES.html.sh (File system functions): Mention module.
15171         * modules/fdutimensat-tests: New test.
15172         * tests/test-fdutimensat.c: Likewise.
15173
15174         doc: regenerate INSTALL
15175         * doc/INSTALL: Reflect recent autoconf update.
15176         * doc/INSTALL.ISO: Likewise.
15177         * doc/INSTALL.UTF-8: Likewise.
15178
15179 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15180
15181         acl: warn if ACL support is not detected
15182         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15183
15184 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15185
15186         * lib/nproc.h: Add extern "C" block for C++.
15187
15188 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15189             Bruno Haible  <bruno@clisp.org>
15190
15191         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15192         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15193         * doc/posix-functions/isalpha.texi: Likewise.
15194         * doc/posix-functions/isblank.texi: Likewise.
15195         * doc/posix-functions/iscntrl.texi: Likewise.
15196         * doc/posix-functions/isdigit.texi: Likewise.
15197         * doc/posix-functions/isgraph.texi: Likewise.
15198         * doc/posix-functions/islower.texi: Likewise.
15199         * doc/posix-functions/isprint.texi: Likewise.
15200         * doc/posix-functions/ispunct.texi: Likewise.
15201         * doc/posix-functions/isspace.texi: Likewise.
15202         * doc/posix-functions/isupper.texi: Likewise.
15203         * doc/posix-functions/isxdigit.texi: Likewise.
15204
15205 2009-10-18  Bruno Haible  <bruno@clisp.org>
15206
15207         Tests for module 'isblank'.
15208         * modules/isblank-tests: New file.
15209         * tests/test-isblank.c: New file.
15210
15211         New module 'isblank'.
15212         * lib/isblank.c: New file.
15213         * m4/isblank.m4: New file.
15214         * modules/isblank: New file.
15215         * doc/posix-functions/isblank.texi: Mention the new module.
15216
15217 2009-10-18  Bruno Haible  <bruno@clisp.org>
15218
15219         New module 'ctype'.
15220         * lib/ctype.in.h: New file.
15221         * m4/ctype.m4: New file.
15222         * modules/ctype: New file.
15223         * doc/posix-headers/ctype.texi: Mention the new module.
15224
15225 2009-10-18  Jim Meyering  <meyering@redhat.com>
15226
15227         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
15228         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
15229         right after its initialization, rather than farther down.
15230         Keeping these in close proximity makes it easier to ensure
15231         that each such variable is initialized.  E.g.,
15232
15233             LIB_CLOCK_GETTIME=
15234             AC_SUBST([LIB_CLOCK_GETTIME])
15235
15236         This change also increments these serial numbers.
15237         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
15238         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15239         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15240
15241 2009-10-18  Bruno Haible  <bruno@clisp.org>
15242
15243         Don't let environment variables perturb build.
15244         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
15245         (gl_PREREQ_GETHRXTIME): ... not here.
15246
15247 2009-10-18  Bruno Haible  <bruno@clisp.org>
15248
15249         Avoid symlink attack in localcharset module.
15250         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
15251         (O_NOFOLLOW): Define fallback.
15252         (get_charset_aliases): Don't open the file if it is a symbolic link.
15253         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
15254         gl_FCNTL_H.
15255         (gl_FCNTL_H): Require it.
15256         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
15257         * modules/localcharset (Files): Add m4/fcntl_h.m4.
15258         Reported by Fergal Glynn <fglynn@veracode.com>.
15259
15260 2009-10-18  Bruno Haible  <bruno@clisp.org>
15261
15262         Implement nproc for mingw.
15263         * lib/nproc.c: Include <windows.h>
15264         (num_processors): On native Windows platforms, try GetSystemInfo.
15265
15266 2009-10-18  Bruno Haible  <bruno@clisp.org>
15267
15268         Implement nproc for IRIX.
15269         * lib/nproc.c: Include <sys/sysmp.h>.
15270         (num_processors): On IRIX systems, try sysmp.
15271         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15272
15273 2009-10-18  Bruno Haible  <bruno@clisp.org>
15274
15275         Implement nproc for HP-UX.
15276         * lib/nproc.c: Include <sys/pstat.h>
15277         (num_processors): On HP-UX systems, try pstat_getdynamic.
15278         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15279         pstat_getdynamic.
15280
15281 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15282             Bruno Haible  <bruno@clisp.org>
15283
15284         Implement nproc for NetBSD, OpenBSD.
15285         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15286         (ARRAY_SIZE): New macro.
15287         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15288         * m4/nproc.m4: New file.
15289         * modules/nproc (Files): Add m4/nproc.m4.
15290         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15291         (Makefile.am): Instead, augment lib_SOURCES.
15292
15293 2009-10-18  Bruno Haible  <bruno@clisp.org>
15294
15295         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15296         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15297         sys/param.h.
15298
15299 2009-10-16  Eric Blake  <ebb9@byu.net>
15300
15301         utimensat: new module
15302         * modules/utimensat: New file.
15303         * lib/utimensat.c (utimensat): Likewise.
15304         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15305         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15306         so we can work around Linux bugs.
15307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15308         * modules/sys_stat (Makefile.am): Substitute them.
15309         * lib/sys_stat.in.h (utimensat): Declare it.
15310         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15311         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15312         * modules/utimensat-tests: New test.
15313         * tests/test-utimensat.c: Likewise.
15314
15315         utimens: let lutimens work on non-symlinks
15316         * lib/utimens.c (lutimens): Fall back to utimens rather than
15317         failing with ENOSYS, when file is not a symlink.
15318         (utimens): Reduce redirection.
15319         * tests/test-lutimens.h (test_lutimens): Update test to cover
15320         non-symlinks.
15321         * tests/test-utimens.h (test_utimens): Update test to cover
15322         symlinks.
15323         * tests/test-utimens.c (main): Update caller.
15324
15325         utimens: cache whether utimensat syscall works
15326         * lib/utimens.c (utimensat_works_really): New cache variable.
15327         (fdutimens, lutimens): Use it to avoid failing syscall.
15328
15329         test-stat-time, test-utimens: improve portability
15330         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15331         ext4 on alpha, and for cygwin.
15332         * tests/test-utimens-common.h: New file.
15333         (nap): Factor delays into single function.
15334         * tests/test-lutimens.h (test_lutimens): Use new header.
15335         * tests/test-futimens.h (test_futimens): Likewise.
15336         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15337         timestamps to occur from same machine, as was done previously for
15338         test_utimens.
15339         * modules/utimens-tests (Files): Ship new file.
15340         * modules/futimens-tests (Files): Likewise.
15341         Reported in part by Jim Meyering.
15342
15343         sys_stat: sort replacement declarations
15344         * lib/sys_stat.in.h: Sort declarations.
15345         * lib/futimens.c (futimens): Fix typo.
15346
15347 2009-10-15  Jim Meyering  <meyering@redhat.com>
15348
15349         don't let environment settings perturb build
15350         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15351         could cause a configure-time and/or build-time malfunction.
15352         Typically, a configure-time function-in-library test is performed
15353         via code like this:
15354
15355           LIB_VAR=
15356           AC_SUBST([LIB_VAR])
15357           prefix_saved_LIBS=$LIBS
15358             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15359                        [test "$ac_cv_search_FUNC" = "none required" ||
15360                         LIB_VAR=$ac_cv_search_FUNC])
15361           LIBS=$prefix_saved_LIBS
15362
15363         However, in each of the files affected by this change, the LIB_VAR=
15364         initialization was omitted.  Thus, when set in the environment, its
15365         value would propagate into generated Makefiles when FUNC is not found
15366         in LIB_NAME.
15367         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15368         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15369         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15370
15371 2009-10-14  Eric Blake  <ebb9@byu.net>
15372
15373         fchdir: avoid infinite recursion in mingw
15374         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15375         recursing.
15376
15377         test-stat-time: port to mingw
15378         * tests/test-stat-time.c (force_unlink): Return a value.
15379         (test_ctime) [W32]: Fix compilation error.
15380         (nap): Don't call usleep with too large an argument.  Use
15381         force_unlink.
15382         * doc/pastposix-functions/usleep.texi (usleep): Document the
15383         portability issue.
15384
15385 2009-10-13  Jim Meyering  <meyering@redhat.com>
15386
15387         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15388         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15389         * modules/pipe-filter-ii: Likewise.
15390         * modules/sys_socket-tests: Likewise.
15391         * modules/tsearch-tests: Likewise.
15392         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
15393         (check): Depend on it.
15394
15395 2009-10-12  Eric Blake  <ebb9@byu.net>
15396
15397         utimens-tests: port to NFS file systems
15398         * tests/test-utimens.h (test_utimens): Refactor utimecmp
15399         comparisons to avoid spurious failures from timestamp drift
15400         between NFS machines.
15401
15402 2009-10-12  Eric Blake  <ebb9@byu.net>
15403
15404         stat-time-tests: minor cleanups
15405         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
15406         * tests/test-stat-time.c (nap): Separate assignment from call.
15407         Suggested by Paolo Bonzini and Bruno Haible.
15408
15409         sys_stat: guarantee struct timespec
15410         * lib/sys_stat.in.h (includes): Always include <time.h>
15411         * modules/sys_stat (Depends-on): Add time.
15412         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
15413         mode_t permission values.
15414         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
15415         get at subsecond timestamps.
15416
15417 2009-10-10  Eric Blake  <ebb9@byu.net>
15418
15419         futimens: new module
15420         * modules/futimens: New file.
15421         * lib/futimens.c (futimens): Likewise.
15422         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
15423         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
15424         we can work around Linux bugs.
15425         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15426         * modules/sys_stat (Makefile.am): Substitute them.
15427         * lib/sys_stat.in.h (futimens): Declare it.
15428         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15429         * doc/posix-functions/futimens.texi (futimens): Likewise.
15430         * modules/futimens-tests: New test.
15431         * tests/test-futimens.c: Likewise.
15432
15433         utimens: introduce fdutimens
15434         * lib/utimens.h (fdutimens): New prototype.
15435         * lib/utimens.c (gl_futimens): Move guts...
15436         (fdutimens): ...to new interface.
15437         * tests/test-utimens.c (do_fdutimens): Use it.
15438
15439         utimens: add UTIME_NOW and UTIME_OMIT support
15440         * lib/utimens.c (validate_timespec, update_timespec): New helper
15441         functions.
15442         (gl_futimens, lutimens): Use them.
15443         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
15444         stdbool, sys_stat.
15445         (Link): Mention resulting library dependency.
15446         * modules/utimecmp (Link): Likewise.
15447         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
15448         (Makefile.am): Pick up library dependency.
15449         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
15450         definition.
15451         * tests/test-sys_stat.c: Test the definitions.
15452         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
15453         * NEWS: Document library dependency.
15454
15455         utimecmp: support symlink timestamps
15456         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
15457         hashing when possible.  Use pathconf when available.
15458         (SYSCALL_RESOLUTION): Recognize tighter resolution.
15459         * modules/utimecmp (Depends-on): Add lstat.
15460
15461         utimens: add lutimens interface
15462         * lib/utimens.c (lutimens): New function.
15463         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
15464         * lib/utimens.h (lutimens): Declare new interface.
15465         * tests/test-utimens.c (main): Enhance test.
15466         * tests/test-lutimens.h (test_lutimens): New file.
15467         * modules/utimens-tests (Files): Distribute it.
15468         (Depends-on): Add symlink.
15469         (configure.ac): Check for usleep.
15470
15471         utimens: validate futimens usage
15472         * lib/utimens.c (gl_futimens): Require valid fd up front, using
15473         fewer syscalls on failure later on.  Avoid compiler warning on
15474         mingw.
15475         * modules/utimens (Depends-on): Add dup2.
15476
15477         utimens: add test
15478         * modules/utimens-tests: New test.
15479         * tests/test-utimens.h: New file.
15480         * tests/test-futimens.h: Likewise.
15481         * tests/test-utimens.c: Likewise.
15482
15483         doc: mention timestamp portability issues
15484         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
15485         instead.
15486         * doc/posix-functions/utime.texi (utime): Likewise.
15487         * doc/posix-functions/utimes.texi (utimes): Likewise.
15488         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
15489         instead.
15490         * doc/posix-functions/futimens.texi (futimens): Mention utimens
15491         module.
15492         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15493         Mention weakness with symlink timestamps.
15494         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
15495         to utimensat/futimens instead.
15496         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
15497
15498         test-dup2: enhance test
15499         * tests/test-dup2.c (main): Also check AT_FDCWD.
15500
15501         test-stat-time: avoid more spurious failures
15502         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
15503         xfs; and avoid race if the two timestamps cross quantization edge.
15504
15505         relocatable: prefer 'file system' over 'filesystem'
15506         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
15507         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
15508         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
15509         * doc/relocatable.texi (Enabling Relocatability): Likewise.
15510         * lib/relocatable.c (compute_curr_prefix): Likewise.
15511
15512 2009-10-10  Jim Meyering  <meyering@redhat.com>
15513
15514         stat-time-tests: check for the usleep function
15515         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
15516
15517 2009-10-10  Bruno Haible  <bruno@clisp.org>
15518
15519         * modules/xnanosleep: Put the Link section after the Include section.
15520
15521 2009-10-09  Eric Blake  <ebb9@byu.net>
15522
15523         dup2: work around FreeBSD 6.1 bug
15524         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
15525         * doc/posix-functions/dup2.texi (dup2): Document it.
15526         Reported by Nelson H. F. Beebe and Jim Meyering.
15527
15528         test-stat-time: port to buggy NFS clients
15529         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
15530         (test_ctime): Also skip test if mtime and ctime are skewed.
15531
15532         maint: prefer 'file system' over 'filesystem'
15533         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15534         * doc/posix-functions/lstat.texi (lstat): Likewise.
15535         * lib/file-has-acl.c (file_has_acl): Likewise.
15536         * lib/fwriteerror.c [TEST]: Likewise.
15537         * tests/test-areadlink.h (test_areadlink): Likewise.
15538         * tests/test-areadlinkat-with-size.c (main): Likewise.
15539         * tests/test-areadlinkat.c (main): Likewise.
15540         * tests/test-canonicalize-lgpl.c (main): Likewise.
15541         * tests/test-canonicalize.c (main): Likewise.
15542         * tests/test-fstatat.c (main): Likewise.
15543         * tests/test-linkat.c (main): Likewise.
15544         * tests/test-lstat.h (test_lstat_func): Likewise.
15545         * tests/test-mkdir.h (test_mkdir): Likewise.
15546         * tests/test-readlink.h (test_readlink): Likewise.
15547         * tests/test-remove.c (main): Likewise.
15548         * tests/test-rename.h (test_rename): Likewise.
15549         * tests/test-renameat.c (main): Likewise.
15550         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15551         * tests/test-symlink.h (test_symlink): Likewise.
15552         * tests/test-symlinkat.c (main): Likewise.
15553         * tests/test-unlink.h (test_unlink_func): Likewise.
15554         * tests/test-unlinkat.c (main): Likewise.
15555
15556         maint: make realtime library usage explicit
15557         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
15558         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
15559         * modules/settime (Link): Likewise.
15560         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
15561
15562         test-stat-time: speed up execution
15563         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
15564         warning on mingw.
15565         (nap): New helper function.
15566         (prepare_test): Use it to reduce sleep time.
15567         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
15568         execution.
15569         * modules/stat-time-tests (configure.ac): Check for usleep.
15570
15571 2009-10-09  Jim Meyering  <meyering@redhat.com>
15572
15573         selinux-h: always use getfilecon wrappers
15574         * lib/getfilecon.c: New file.
15575         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
15576         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
15577         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
15578         (fgetfilecon): Provide a stub.
15579         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
15580         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
15581         file unconditionally.
15582         When <selinux/selinux.h> is found, arrange to use wrappers.
15583         * modules/selinux-h (Files): Add getfilecon.c.
15584         (Makefile.am): Substitute include-next-related bits
15585         into the now-always-generated selinux/selinux.h file.
15586         * doc/glibc-functions/lgetfilecon.texi: New file.
15587         * doc/glibc-functions/fgetfilecon.texi: New file.
15588         * doc/glibc-functions/getfilecon.texi: New file.
15589         * doc/glibc-functions/getfilecon-desc.texi: New file.
15590         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
15591         which to pull in the new files.
15592         * MODULES.html.sh (Misc): Add selinux-h.
15593
15594 2009-10-08  Jim Meyering  <meyering@redhat.com>
15595
15596         unistd: fix comment typo
15597         * lib/unistd.in.h (euidaccess): Fix a comment typo.
15598
15599 2009-10-08  Eric Blake  <ebb9@byu.net>
15600
15601         areadlink: use SIZE_MAX consistently
15602         * modules/areadlink (Depends-on): Add stdint.
15603         * modules/areadlink-with-size (Depends-on): Likewise.
15604         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
15605         gives NULL; drop sys/types, since unistd gives size_t; and add
15606         stdint for SIZE_MAX.
15607         (SIZE_MAX): Rely on headers.
15608         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
15609         and add stdint.
15610         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
15611         (SIZE_MAX): Likewise.
15612         (INITIAL_BUF_SIZE): Turn into enum.
15613         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
15614
15615 2009-10-08  Jim Meyering  <meyering@redhat.com>
15616
15617         areadlinkat: avoid compilation failure
15618         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
15619         Fix typo in comment.
15620
15621 2009-10-07  Eric Blake  <ebb9@byu.net>
15622
15623         areadlinkat-with-size: new module
15624         * modules/areadlinkat-with-size: New module.
15625         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
15626         * lib/areadlink.h (areadlinkat): Declare it.
15627         * MODULES.html.sh (File system functions): Mention it.
15628         * modules/areadlinkat-with-size-tests: New test.
15629         * tests/test-areadlinkat-with-size.c: New file.
15630
15631         xreadlinkat: new module
15632         * modules/xreadlinkat: New module.
15633         * lib/xreadlinkat.c (xreadlinkat): New file.
15634         * lib/xreadlink.h (xreadlinkat): Declare it.
15635         * MODULES.html.sh (File system functions): Mention it.
15636
15637         areadlinkat: new module
15638         * lib/at-func.c (FUNC_FAIL): New define.
15639         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
15640         * modules/areadlinkat: New module.
15641         * lib/linkat.c (areadlinkat): Move...
15642         * lib/areadlinkat.c (areadlinkat): ...to new file.
15643         * lib/areadlink.h (areadlinkat): Declare it.
15644         * modules/linkat (Depends-on): Add areadlinkat.
15645         * MODULES.html.sh (File system functions): Mention it.
15646         * modules/areadlinkat-tests: New test.
15647         * tests/test-areadlinkat.c: New file.
15648
15649         areadlink, areadlink-with-size: add tests
15650         * modules/areadlink-tests: New test.
15651         * modules/areadlink-with-size-tests: Likewise.
15652         * tests/test-areadlink.h: New file.
15653         * tests/test-areadlink.c: Likewise.
15654         * tests/test-areadlink-with-size.c: Likewise.
15655
15656         maint: minor cleanups
15657         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
15658         _UNUSED_PARAMETER_ instead.
15659         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
15660         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
15661         * modules/linkat-tests (Files): Distribute test-link.h.
15662
15663         openat, utimens: whitespace cleanup
15664         * lib/openat.c: Prefer space throughout, rather than mix of 8
15665         spaces vs. tabs.
15666         * lib/at-func.c: Likewise.
15667         * lib/utimens.c: Likewise.
15668
15669         openat: avoid using wrong fd
15670         * lib/openat.c (openat_permissive): Reject user's fd if saving the
15671         working directory chooses same fd.
15672         * lib/at-func.c (AT_FUNC_NAME): Likewise.
15673
15674         mkdir, mkdirat: fix cygwin 1.5.x bug
15675         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
15676         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
15677         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
15678         bug.
15679         (gl_PREREQ_MKDIR): Delete unused macro.
15680         * modules/mkdir (Files): Track file rename.
15681         (configure.ac): Update macro name.
15682         * modules/openat (Depends-on): Add mkdir.
15683         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
15684
15685         mkdir, mkdirat: add tests
15686         * modules/mkdir-tests: New test.
15687         * tests/test-mkdir.h: New file.
15688         * tests/test-mkdir.c: Likewise.
15689         * tests/test-mkdirat.c: Likewise.
15690         * modules/openat-tests (Files): Add new files.
15691         (Makefile.am): Run new test.
15692
15693 2009-10-06  Eric Blake  <ebb9@byu.net>
15694
15695         doc: tweak *at function documentation
15696         * doc/posix-functions/faccessat.texi (faccessat): Mention
15697         known issue with replacement.
15698         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
15699         * doc/posix-functions/linkat.texi (linkat): Likewise.
15700         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15701         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15702         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15703         * doc/posix-functions/renameat.texi (renameat): Likewise.
15704         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15705
15706         openat: fix GNU/Hurd bug in unlinkat
15707         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
15708         broken.
15709         * doc/posix-functions/unlink.texi (unlink): Document this.
15710         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
15711
15712         fdopendir: fix GNU/Hurd bug
15713         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
15714         allowing non-directory fds.
15715         * lib/fdopendir.c (rpl_fdopendir): Work around it.
15716         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15717         * modules/dirent (Makefile.am): Substitute it.
15718         * lib/dirent.in.h (fdopendir): Declare replacement.
15719         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
15720         * tests/test-fdopendir.c (main): Test something other than
15721         /dev/null, since on Hurd that behaves like a directory.
15722
15723         test-symlink: port to GNU/Hurd
15724         * tests/test-symlink.h (test_symlink): Relax expected errno.
15725
15726         doc: tweak more cygwin information
15727         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
15728         now compatible with glibc.
15729         * doc/posix-functions/getopt.texi (getopt): Likewise.
15730
15731         getopt-gnu: add another test
15732         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
15733         guarantee behavior relied on by m4.
15734         * tests/test-getopt.c (main): Use it.
15735         * modules/getopt-posix-tests (Depends-on): Add setenv.
15736         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
15737
15738         getopt: fix compilation on darwin
15739         * lib/getopt.in.h (includes): Leave breadcrumbs during system
15740         include.
15741         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
15742         Reported by Ludovic Courtès.
15743
15744 2009-10-06  Bruno Haible  <bruno@clisp.org>
15745
15746         * modules/size_max (Description): Discourage its use.
15747         Reported by Simon Josefsson.
15748
15749 2009-10-06  Jim Meyering  <meyering@redhat.com>
15750
15751         linkat: avoid compilation failure
15752         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
15753
15754 2009-10-05  Eric Blake  <ebb9@byu.net>
15755
15756         linkat: support Linux 2.6.17
15757         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
15758         linkat on Linux, but allow cache variable override.
15759         * lib/linkat.c (rpl_linkat): Define override.
15760         * modules/linkat (Depends-on): Add symlinkat.
15761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
15762         * modules/unistd (Makefile.am): Substitute it.
15763         * lib/unistd.in.h (linkat): Declare replacement.
15764         Reported by Pádraig Brady.
15765
15766         quotearg: port test to systems with C.UTF-8 locale
15767         * tests/test-quotearg.c (struct result_strings): Add another
15768         member, differentiating between C.ASCII and C.UTF-8 handling.
15769         (compare_strings): Add parameter.
15770         (main): Adjust all callers.
15771
15772         getopt: avoid clash with FreeBSD _getopt_internal
15773         * lib/getopt.in.h (_getopt_internal): Override the name.
15774         * lib/getopt_int.h (includes): Pick up any overrides.
15775         Reported by Reuben Thomas.
15776
15777         hash: allow C89 compilation
15778         * lib/hash.c (check_tuning): Move declaration before statement.
15779         Reported by Reuben Thomas.
15780
15781 2009-10-05  Karl Berry  <karl@gnu.org>
15782
15783         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
15784
15785 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
15786             Bruno Haible  <bruno@clisp.org>
15787
15788         * lib/uname.c (uname): Use a table-driven algorithm to compute
15789         Windows NT versions.
15790
15791 2009-10-04  Bruno Haible  <bruno@clisp.org>
15792
15793         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
15794         program_invocation_short_name.
15795         * modules/progname (configure.ac): Test for presence of
15796         program_invocation_short_name.
15797         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15798
15799 2009-10-04  Bruno Haible  <bruno@clisp.org>
15800
15801         * lib/progname.c (set_program_name): Fix comment.
15802         Reported by Jim Meyering.
15803
15804 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
15805             Bruno Haible  <bruno@clisp.org>
15806
15807         * lib/uname.c: Include <string.h>.
15808         (uname): Do only one call to GetVersionEx in the common case.
15809
15810 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
15811             Bruno Haible  <bruno@clisp.org>
15812
15813         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
15814         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
15815         (uname): Add support for Windows CE and various non-x86 CPU types.
15816
15817 2009-10-03  Bruno Haible  <bruno@clisp.org>
15818
15819         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
15820         invocation to tests/configure.ac.
15821         Reported by Ian Beckwith <ianb@erislabs.net>.
15822
15823 2009-10-02  Eric Blake  <ebb9@byu.net>
15824
15825         fchdir: avoid compiler warning
15826         * lib/fchdir.c (canonicalize_file_name)
15827         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
15828
15829         test-open: support mingw errno values
15830         * tests/test-open.h (test_open): Relax test.
15831         * tests/test-fopen.h (test_fopen): Likewise.
15832         * tests/test-openat-safer.c (main): Likewise.
15833
15834         open: fix opening directory on mingw
15835         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
15836
15837         test-open: on GNU/Hurd, /dev/null is a directory
15838         * tests/test-fopen.h (main): Rename...
15839         (test_fopen): ...to this.  Use a guaranteed non-directory when
15840         confirming open behavior on trailing slash.
15841         * tests/test-openat-safer.c (main): Likewise.
15842         * tests/test-open.h (main): Likewise....
15843         (test_open): ...to this.
15844         * tests/test-fopen.c (main): Adjust caller.
15845         * tests/test-fopen-safer.c (main): Likewise.
15846         * tests/test-open.c (main): Likewise.
15847         * tests/test-fcntl-safer.c (main): Likewise.
15848         Reported by Samuel Thibault.
15849
15850         rename, fchdir: don't ignore chdir failure
15851         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
15852         * lib/rename.c (rpl_rename) [W32]: Likewise.
15853         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
15854         an empty destination directory if source cannot be renamed,
15855         although there is still possibility for failure.
15856         * doc/posix-functions/rename.texi (rename): Document the race.
15857         Reported by Jim Meyering.
15858
15859         maint: cleanup whitespace in recent commits
15860         * lib/rename.c (rpl_rename): Remove tabs.
15861         * tests/test-link.h (test_link): Likewise.
15862         * lib/fchdir.c (get_name): Likewise.
15863         Reported by Jim Meyering.
15864
15865 2009-10-02  Ben Pfaff  <blp@gnu.org>
15866
15867         relocatable-prog-wrapper: Add missing dependency on
15868         double-slash-root.
15869         * modules/relocatable-prog-wrapper: Add dependency.
15870         Reported by Ian Beckwith <ianb@erislabs.net>.
15871
15872 2009-10-02  Eric Blake  <ebb9@byu.net>
15873
15874         renameat: fix Solaris bugs
15875         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
15876         needed fixing.
15877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
15878         * modules/stdio (Makefile.am): Substitute it.
15879         * lib/stdio.in.h (renameat): Declare replacement.
15880         * lib/renameat.c (rpl_renameat): Implement fix.
15881
15882         renameat: new module
15883         * modules/renameat: New file.
15884         * lib/renameat.c (renameat): Likewise.
15885         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
15886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15887         * modules/stdio (Makefile.am): Substitute them.
15888         * lib/stdio.in.h (renameat): Declare it.
15889         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15890         * doc/posix-functions/renameat.texi (renameat): Likewise.
15891         * modules/renameat-tests: New test.
15892         * tests/test-renameat.c: Likewise.
15893
15894         rename: fix mingw bugs
15895         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
15896         directory overwrite bugs.
15897
15898         rename: fix another cygwin 1.5 bug
15899         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
15900         checks.
15901         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
15902         unnecessary cygwin workarounds.  Also work around bug with moving
15903         full directory onto an empty one.
15904         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
15905
15906         rename-dest-slash: merge into rename module
15907         * modules/rename-dest-slash (Status): Mark obsolete.
15908         (Depends-on): Add rename.
15909         (Files): Let rename do it all.
15910         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
15911         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
15912         * m4/rename-dest-slash.m4: ...so this file can be deleted.
15913         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
15914         * lib/rename.c (rpl_rename): Update comments.
15915
15916         rename: fix cygwin 1.5.x bugs
15917         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
15918         * lib/rename.c (rpl_rename): Work around them.
15919         * modules/rename (Depends-on): Add same-inode.
15920
15921         rename: fix Solaris 10 bug
15922         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
15923         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
15924         was the only bug.
15925
15926         rename: fix Solaris 9 bug
15927         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
15928         on non-directory.  Avoid calling exit.
15929         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
15930         strdup.
15931         * modules/rename-tests (Depends-on): Drop lstat.
15932         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
15933         (gl_PREREQ_RENAME): Delete unused macro.
15934
15935         rename-dest-slash: fix NetBSD bug
15936         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
15937         links.
15938         * modules/rename-dest-slash (Depends-on): Add same-inode.
15939
15940         rename-tests: new test, exposes several platform bugs
15941         * modules/rename-tests: New file.
15942         * tests/test-rename.h: Likewise.
15943         * tests/test-rename.c: Likewise.
15944         * doc/posix-functions/rename.texi (rename): Improve documentation,
15945         including bugs that will eventually be fixed in gnulib.
15946
15947 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
15948
15949         * lib/uname.c: Include <stdlib.h>
15950         (uname): Assume version info is available.
15951
15952 2009-10-02  Jim Meyering  <meyering@redhat.com>
15953
15954         gnu-web-doc-update: correct --help output
15955         * build-aux/gnu-web-doc-update: Make --help output relevant.
15956
15957         gnu-web-doc-update: add standard options
15958         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
15959
15960         gnu-web-doc-update: New module.
15961         Use this script to automatically update the on-line web documentation
15962         for your GNU project at http://www.gnu.org/software/$pkg/manual/
15963         * modules/gnu-web-doc-update: New file, from coreutils.
15964         * build-aux/gnu-web-doc-update: New script.
15965
15966 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
15967
15968         link: LoadLibrary is not needed.
15969         * lib/link.c: Use GetModuleHandle.
15970
15971 2009-10-01  Eric Blake  <ebb9@byu.net>
15972
15973         getopt: bump serial number
15974         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
15975         change.
15976
15977         tests: tighten link, rmdir, and remove tests
15978         * tests/test-link.h (includes): No need to use <config.h> here.
15979         Clean up if directory hard link was created, otherwise test for
15980         trailing '.'.
15981         * tests/test-linkat.c (main): Simplify.
15982         * tests/test-remove.c (main): Enhance test for trailing '.'.
15983         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15984
15985 2009-10-01  Jim Meyering  <meyering@redhat.com>
15986
15987         maint.mk: requiring "make major" was annoying, for a "minor" release.
15988         What is intended is "stable", to contrast with alpha and beta,
15989         so require "make stable", not "make major".
15990         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
15991         (get_tool_versions): Likewise.
15992         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
15993
15994 2009-09-30  Ben Pfaff  <blp@gnu.org>
15995
15996         Fix broken build of replacement for Windows tmpfile().
15997         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
15998         flags argument added along with the 'mkostemp' module.
15999
16000 2009-09-28  Bruno Haible  <bruno@clisp.org>
16001
16002         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16003         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16004         to 'remove_elt'.
16005         (gl_list_remove): Update.
16006         * lib/gl_list.c (gl_list_remove): Update.
16007         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16008         to 'remove_elt'.
16009         (gl_oset_remove): Update.
16010         * lib/gl_list.c (gl_oset_remove): Update.
16011         Reported by Eric Blake.
16012
16013 2009-09-28  Eric Blake  <ebb9@byu.net>
16014
16015         doc: mention yet more cygwin 1.7 status
16016         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16017         cygwin.
16018         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16019         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16020
16021         argp: fix test failure
16022         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16023         that are not upper-case.  Pass correct range to tolower.
16024
16025 2009-09-27  Jim Meyering  <meyering@redhat.com>
16026
16027         test-yesno: work around sparc-dash here-document infelicity
16028         Without this change, the literal \177 byte in a here document
16029         would make dash 0.5.5.1-3 access uninitialized memory.
16030         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16031         Instead, use a marker, "@", and filter through tr to create the desired
16032         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16033
16034 2009-09-27  Bruno Haible  <bruno@clisp.org>
16035
16036         Disable untested support for new flavours of ACLs on AIX.
16037         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16038         progress.
16039         * lib/set-mode-acl.c (qset_acl): Likewise.
16040
16041 2008-12-07  Bruno Haible  <bruno@clisp.org>
16042
16043         Add support for new flavours of ACLs on AIX. (Untested.)
16044         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16045         (file_has_acl): Add support for newer AIX.
16046         * lib/set-mode-acl.c (qset_acl): Likewise.
16047         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16048         Rainer Tammer <tammer@tammer.net>.
16049
16050 2009-09-26  Eric Blake  <ebb9@byu.net>
16051
16052         argp: fix compilation of getopt
16053         * lib/getopt.in.h (includes): Use different guard than glibc.
16054         Reported by Sergey Poznyakoff.
16055
16056         doc: mention more cygwin 1.7 status
16057         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16058         bug.
16059         * doc/posix-functions/execl.texi (execl): Likewise.
16060         * doc/posix-functions/execle.texi (execle): Likewise.
16061         * doc/posix-functions/execlp.texi (execlp): Likewise.
16062         * doc/posix-functions/execv.texi (execv): Likewise.
16063         * doc/posix-functions/execve.texi (execve): Likewise.
16064         * doc/posix-functions/execvp.texi (execvp): Likewise.
16065         * doc/glibc-functions/canonicalize_file_name.texi
16066         (canonicalize_file_name): Cygwin 1.7 now provides this.
16067         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16068         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16069         on AT_SYMLINK_NOFOLLOW.
16070
16071 2009-09-24  Eric Blake  <ebb9@byu.net>
16072
16073         test-linkat: make test more robust
16074         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16075
16076         getopt: fix inclusion guards for cygwin
16077         * modules/getopt-posix (Depends-on): Add include-next.
16078         (Makefile.am): Substitute more items in replacement header.
16079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16080         <getopt.h>.
16081         * lib/getopt.in.h (includes): Use split inclusion guard, and
16082         prefer <getopt.h> over include <unistd.h> when one is present.
16083         (option): Also override name of 'struct option'.
16084
16085         same-inode: revert prior change; it is not yet ready
16086         * NEWS: Undo mention of this change.
16087         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16088         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16089         * lib/cycle-check.c (cycle_check): Likewise.
16090         * lib/same.c (same_name): Likewise.
16091         * lib/at-func2.c (at_func2): Likewise.
16092
16093 2009-09-23  Eric Blake  <ebb9@byu.net>
16094
16095         linkat: new module
16096         * modules/linkat: New file.
16097         * lib/at-func2.c (at_func2): Likewise.
16098         * lib/linkat.c (linkat): Likewise.
16099         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16100         * lib/openat-priv.h (at_func2): Add declaration.
16101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16102         * modules/unistd (Makefile.am): Substitute them.
16103         * lib/unistd.in.h (linkat): Declare it.
16104         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16105         * doc/posix-functions/linkat.texi (linkat): Likewise.
16106         * doc/posix-functions/link.texi (link): Tweak wording.
16107         * tests/test-link.c (main): Move guts...
16108         * tests/test-link.h (test_link): ...into new file.
16109         * modules/linkat-tests: New test.
16110         * tests/test-linkat.c: Likewise.
16111         * modules/link-tests (Files): Ship new file.
16112         (Depends-on): Add stdbool.
16113
16114         dirname: add library-safe mdir_name
16115         * lib/dirname.h (mdir_name): New prototype.
16116         * lib/dirname.c (dir_name): Move guts...
16117         (mdir_name): ...to new function that avoids xalloc_die.
16118
16119         fchdir: another mingw fix
16120         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16121         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16122         on mingw (where it has not yet been ported), and make it optional
16123         elsewhere.
16124         (_gl_register_fd): Use it.
16125
16126         same-inode: make SAME_INODE tri-state, to port to mingw
16127         * NEWS: Mention this change.
16128         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16129         st_ino always being 0.
16130         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16131         * lib/cycle-check.c (cycle_check): Likewise.
16132         * lib/same.c (same_name): Likewise.
16133
16134         lstat: avoid mingw compilation error
16135         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16136         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16137         lstat ourselves.
16138         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16139         was adequate.
16140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16141         the checks for lstat.
16142         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16143
16144         link: fix test failure on Solaris 9
16145         * lib/link.c (rpl_link): Don't assume link will catch bogus
16146         trailing slash on source.
16147
16148         test-symlinkat: enhance test
16149         * tests/test-readlink.c (main): Move guts...
16150         * tests/test-readlink.h (test_readlink): ...into new file.
16151         * tests/test-symlink.c (main): Move guts...
16152         * tests/test-symlink.h (test_symlink): ...into new file.
16153         * tests/test-symlinkat.c (main): Use new files for further
16154         coverage.
16155         (do_symlink, do_readlink): New helper functions.
16156         * modules/symlink-tests (Files): Ship new file.
16157         (Depends-on): Add stdbool.
16158         * modules/readlink-tests (Files): Ship new file.
16159         (Depends-on): Add stdbool.
16160         * modules/symlinkat-tests (Files): Use new files.
16161
16162 2009-09-23  Eric Blake  <ebb9@byu.net>
16163
16164         readlink: document portability issue with symlink length
16165         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16166         systems have bogus st_size on symlinks, and mention the
16167         areadlink-with-size module.
16168         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16169         * doc/posix-functions/readlink.texi (readlink): Mention the
16170         areadlink module, and ERANGE failure.
16171         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16172         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16173
16174         readlink: fix Solaris 9 bug with trailing slash
16175         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16176         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16177         * doc/posix-functions/readlink.texi (readlink): Document this.
16178         * modules/readlink-tests: New test.
16179         * tests/test-readlink.c: Likewise.
16180
16181         readlink: fix cygwin 1.5.x bug with return type
16182         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16183         * lib/unistd.in.h (readlink): Use ssize_t.
16184         * lib/readlink.c (readlink): Likewise.
16185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16186         * modules/unistd (Makefile.am): Substitute it.
16187         * lib/unistd.in.h (readlink): Declare replacement.
16188         * doc/posix-functions/readlink.texi (readlink): Document this.
16189
16190         symlink: use throughout gnulib
16191         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16192         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16193         symlink is not used.
16194         * modules/symlinkat (Depends-on): Add symlink.
16195         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16196         * modules/canonicalize-tests (Depends-on): Likewise.
16197         * modules/lstat-tests (Depends-on): Likewise.
16198         * modules/openat-tests (Depends-on): Likewise.
16199         * modules/remove-tests (Depends-on): Likewise.
16200         * modules/rmdir-tests (Depends-on): Likewise.
16201         * modules/unlink-tests (Depends-on): Likewise.
16202         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16203         * tests/test-canonicalize.c (symlink): Likewise.
16204         * tests/test-fstatat.c (symlink): Likewise.
16205         * tests/test-lstat.c (symlink): Likewise.
16206         * tests/test-remove.c (symlink): Likewise.
16207         * tests/test-rmdir.c (symlink): Likewise.
16208         * tests/test-unlink.c (symlink): Likewise.
16209         * tests/test-unlinkat.c (symlink): Likewise.
16210
16211         symlink: new module, for Solaris 9 bug
16212         * modules/symlink: New file.
16213         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16214         * lib/symlink.c: Likewise.
16215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16216         * modules/unistd (Makefile.am): Substitute them.
16217         * lib/unistd.in.h (symlink): Declare replacement.
16218         * MODULES.html.sh (File system functions): Mention it.
16219         * doc/posix-functions/symlink.texi (symlink): Likewise.
16220         * modules/symlink-tests: New test.
16221         * tests/test-symlink.c: Likewise.
16222
16223 2009-09-23  Bruno Haible  <bruno@clisp.org>
16224
16225         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
16226         when needed.
16227         Test case: gnulib-tool --import --with-tests atexit inttypes.
16228         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
16229
16230 2009-09-23  Bruno Haible  <bruno@clisp.org>
16231
16232         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
16233         subcommand, not in a subshell.
16234
16235 2009-09-22  Eric Blake  <ebb9@byu.net>
16236
16237         unistd: sort replacement declarations
16238         * lib/unistd.in.h: Sort declarations.
16239
16240         open, openat: minor optimization
16241         * lib/open.c (open): If open succeeded, len is non-zero.
16242         * lib/openat.c (rpl_openat): Likewise.
16243
16244         link-follow: ensure correct result
16245         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
16246         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
16247         distinguish between possible failures.
16248
16249 2009-09-21  Eric Blake  <ebb9@byu.net>
16250
16251         fts: avoid compiler warning
16252         * lib/fts.c (dirent_inode_sort_may_be_useful)
16253         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
16254
16255 2009-09-19  Bruno Haible  <bruno@clisp.org>
16256
16257         * lib/progreloc.c (canonicalize_file_name): New declaration.
16258
16259 2009-09-19  Eric Blake  <ebb9@byu.net>
16260
16261         link: fix quoting
16262         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16263
16264         openat: fix openat bugs on Solaris 9
16265         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16266         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16267         * modules/openat (Depends-on): Add open.
16268         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16269         * modules/fcntl-h (Makefile.am): Substitute it.
16270         * lib/fcntl.in.h (openat): Declare replacement.
16271         * doc/posix-functions/openat.texi (openat): Document this.
16272
16273         openat: move fstatat and unlinkat into correct files
16274         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16275         compiled.
16276         * lib/openat.c (fstatat, unlinkat): Move...
16277         * lib/fstatat.c (fstatat): ...into correct files.
16278         * lib/unlinkat.c (unlinkat): Likewise.
16279
16280         openat: fix unlinkat bugs on Solaris 9
16281         * lib/unlinkat.c (unlinkat): New file.
16282         * modules/openat (Depends-on): Add unlink.
16283         (Files): Distribute it.
16284         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16285         trailing slash behavior is broken.
16286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16287         * modules/unistd (Makefile.am): Substitute it.
16288         * lib/unistd.in.h (unlinkat): Declare replacement.
16289         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16290
16291         openat: fix fstatat bugs on Solaris 9
16292         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16293         stat.
16294         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16295
16296         test-unlinkat: enhance test, to expose Solaris 9 bug
16297         * tests/test-unlink.c (main): Factor guts...
16298         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16299         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16300         * tests/test-rmdir.c (main): Adjust caller.
16301         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16302         (unlinker): New helper function.
16303         (rmdirat): Enhance check.
16304         * modules/rmdir-tests (Depends-on): Add stdbool.
16305         * modules/unlink-tests (Depends-on): Likewise.
16306         (Files): Add test-unlink.h.
16307         * modules/openat-tests (Files): Likewise.
16308         (Depends-on): Add unlinkdir.
16309
16310         test-fstatat: new test, to expose Solaris 9 bugs
16311         * tests/test-stat.c (main): Factor guts...
16312         * tests/test-stat.h (test_stat_func): ...into new file.
16313         * tests/test-lstat.c (main): Factor guts...
16314         * tests/test-lstat.h (test_lstat_func): ...into new file.
16315         * tests/test-fstatat.c: New file.
16316         * modules/stat-tests (Files): Add test-stat.h.
16317         * modules/lstat-tests (Files): Add test-lstat.h.
16318         (Depends-on): Add stdbool.
16319         * modules/openat-tests (Depends-on): Add pathmax.
16320         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16321         (Makefile.am): Run new test.
16322
16323         remove: new module, for mingw and Solaris 9 bugs
16324         * modules/remove: New file.
16325         * lib/remove.c: Likewise.
16326         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16328         * modules/stdio (Makefile.am): Use them.
16329         * lib/stdio.in.h (remove): Declare replacement.
16330         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16331         * doc/posix-functions/remove.texi (remove): Likewise.
16332         * modules/remove-tests: New test.
16333         * tests/test-remove.c: Likewise.
16334
16335         unlink: new module, for Solaris 9 bug
16336         * modules/unlink: New file.
16337         * lib/unlink.c: Likewise.
16338         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16340         * modules/unistd (Makefile.am): Use them.
16341         * lib/unistd.in.h (stat): Declare replacement.
16342         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16343         * doc/posix-functions/unlink.texi (unlink): Likewise.
16344         * modules/unlink-tests: New test.
16345         * tests/test-unlink.c: Likewise.
16346
16347         lstat: fix Solaris 9 bug
16348         * lib/lstat.c (lstat): Also check for trailing slash on
16349         non-symlink, non-directories.  Use stat module to simplify logic.
16350         * doc/posix-functions/lstat.texi (lstat): Document it.
16351         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16352         (configure.ac): Check for symlink.
16353         * tests/test-lstat.c (main): Add more tests.
16354
16355         stat: add as dependency to other modules
16356         * modules/chown (Depends-on): Add stat.
16357         * modules/euidaccess (Depends-on): Likewise.
16358         * modules/fchdir (Depends-on): Likewise.
16359         * modules/isdir (Depends-on): Likewise.
16360         * modules/link (Depends-on): Likewise.
16361         * modules/lstat (Depends-on): Likewise.
16362         * modules/mkdir-p (Depends-on): Likewise.
16363         * modules/modechange (Depends-on): Likewise.
16364         * modules/open (Depends-on): Likewise.
16365         * modules/readlink (Depends-on): Likewise.
16366         * modules/same (Depends-on): Likewise.
16367
16368         stat: fix Solaris 9 bug
16369         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16370         slash.
16371         * lib/stat.c (rpl_stat): Work around it.
16372         * doc/posix-functions/stat.texi (stat): Update documentation.
16373
16374         stat: new module, for mingw bug
16375         * modules/stat: New file.
16376         * lib/stat.c: Likewise.
16377         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16378         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16379         * modules/sys_stat (Makefile.am): Use them.
16380         * lib/sys_stat.in.h (stat): Declare replacement.
16381         * lib/openat.c (fstatat): Deal with lstat and stat being function
16382         macros.
16383         * modules/openat (Depends-on): Add inline.
16384         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16385         * doc/posix-functions/stat.texi (stat): Likewise.
16386         * modules/stat-tests: New test.
16387         * tests/test-stat.c: Likewise.
16388
16389 2009-09-19  Jim Meyering  <meyering@redhat.com>
16390
16391         syntax-check: detect unnecessary inclusion of canonicalize.h
16392         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
16393
16394 2009-09-19  Eric Blake  <ebb9@byu.net>
16395
16396         canonicalize-lgpl: adjust clients to use correct header
16397         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16398         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
16399         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
16400         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
16401         * lib/progreloc.c (includes): Likewise.
16402
16403 2009-09-19  Jim Meyering  <meyering@redhat.com>
16404
16405         test-posixtm.c: correct a comment
16406         * tests/test-posixtm.c: Correct first-line comment.
16407         Spotted by Eric Blake.
16408
16409 2009-09-16  Jim Meyering  <meyering@redhat.com>
16410
16411         posixtm-tests: make T const-correct; add a test case
16412         * tests/test-posixtm.c (T): Declare const.
16413         Add a test for -(2^31+1).
16414         Remove useless can-succeed-only-in-2002 test.
16415
16416         posixtm-tests: adjust the sole failing test
16417         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
16418         expected output matches what mktime now produces.  Cross-checked via
16419         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
16420
16421         posixtm: move #ifdef'd tests into a new module
16422         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
16423         * tests/test-posixtm.c: ... this new file.
16424         * modules/posixtm-tests: New module.
16425
16426 2009-09-19  Eric Blake  <ebb9@byu.net>
16427
16428         openat: simplify use of at-func.c
16429         * lib/at-func.c (includes): Include prerequisites here, to
16430         simplify requirements on client files.
16431         * lib/openat-priv.h: Add double-inclusion guard.
16432         * lib/faccessat.c (includes): Simplify.
16433         * lib/fchmodat.c (includes): Likewise.
16434         * lib/fchownat.c (includes): Likewise.
16435         * lib/mkdirat.c (includes): Likewise.
16436         * lib/mkfifoat.c (includes): Likewise.
16437         * lib/symlinkat.c (includes): Likewise.
16438
16439         openat: allow return of fd 0
16440         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
16441         * modules/save-cwd (Depends-on): Replace fcntl-safer with
16442         unistd-safer.
16443         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
16444         <fcntl.h>; this module does not leak fds.
16445         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
16446         must be allowed to return 0, leaving openat_safer to add the
16447         safety.
16448         (openat_permissive): Avoid writing to just-opened fd 2 if
16449         restoring the current directory fails.
16450         * lib/openat-die.c (openat_restore_fail): Add comment.
16451         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
16452         (save_cwd): Guarantee safe fd, but without use of open_safer.
16453         * tests/test-openat.c: New test.
16454         * modules/openat-tests (Files, Makefile.am): Distribute and build
16455         new file.
16456
16457         relocatable-prog-wrapper: fix build
16458         * modules/relocatable-prog-wrapper (Files): Update name of
16459         canonicalize m4 file, broken on 2009-09-17.
16460         Reported by emad hajjar <aleppos@hotmail.com>.
16461
16462 2009-09-19  Bruno Haible  <bruno@clisp.org>
16463
16464         * lib/safe-alloc.h: Use the standard header with GPL copyright.
16465         * lib/safe-alloc.c: Likewise.
16466         Reported by Ian Beckwith <ianb@erislabs.net>.
16467
16468 2009-09-18  Bruno Haible  <bruno@clisp.org>
16469
16470         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
16471         Reported by <erobles@sensacd.com.mx>.
16472
16473 2009-09-17  Eric Blake  <ebb9@byu.net>
16474
16475         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
16476         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
16477         slashes when checking if last component is missing.
16478         * tests/test-canonicalize.c (main): Test this.
16479
16480         canonicalize, canonicalize-lgpl: honor // if distinct from /
16481         * modules/canonicalize (Files): Add double-slash-root.m4.
16482         * modules/canonicalize-lgpl (Files): Likewise.
16483         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16484         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
16485         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
16486         fallback definition.
16487         (canonicalize_filename_mode): Use it to protect //.
16488         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
16489         (__realpath): Likewise.
16490         * tests/test-canonicalize.c (main): Test this.
16491         * tests/test-canonicalize-lgpl.c (main): Likewise.
16492         * modules/canonicalize-tests (Depends-on): Add same-inode.
16493         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16494
16495         canonicalize-lgpl: fix glibc bug with trailing slash
16496         * m4/canonicalize-lgpl.m4: Move contents...
16497         * m4/canonicalize.m4: ...here.
16498         (gl_CANONICALIZE_LGPL): Factor realpath check...
16499         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
16500         glibc 2.3.5 bug, fixed 2005-04-27.
16501         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
16502         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
16503         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
16504         * modules/canonicalize-lgpl (Files): Manage file rename.
16505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16506         * modules/stdlib (Makefile.am): Substitute witness.
16507         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
16508         is needed.
16509         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
16510         replacement is required.
16511         * lib/canonicalize.c (canonicalize_file_name): Likewise.
16512         * doc/glibc-functions/canonicalize_file_name.texi
16513         (canonicalize_file_name): Document this.
16514         * doc/posix-functions/realpath.texi (realpath): Likewise.
16515
16516         canonicalize-lgpl: reject non-directory with trailing slash
16517         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
16518         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
16519         catches failures in glibc 2.3.5.
16520         * tests/test-canonicalize.c (main): Likewise.
16521
16522         canonicalize-lgpl: use native realpath if it works
16523         * lib/canonicalize-lgpl.c (realpath): Guard with
16524         FUNC_REALPATH_WORKS.
16525         * lib/stdlib.in.h (realpath): Make declaration optional based on
16526         HAVE_REALPATH.
16527         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
16528         native realpath works.
16529         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16530         * modules/stdlib (Makefile.am): Substitute witness.
16531
16532         canonicalize, canonicalize-lgpl: use <stdlib.h>
16533         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
16534         (Include): Mention <stdlib.h>.
16535         (configure.ac): Mention functions we provide.
16536         * modules/canonicalize (configure.ac): Likewise.
16537         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
16538         realpath if canonicalize_file_name is missing.
16539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
16540         * modules/stdlib (Makefile.am): Substitute witnesses.
16541         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
16542         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
16543         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
16544         * NEWS: Document this.
16545         * doc/glibc-functions/canonicalize_file_name.texi
16546         (canonicalize_file_name): Likewise.
16547         * doc/posix-functions/realpath.texi (realpath): Likewise.
16548         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
16549
16550         test-canonicalize: consolidate into single C program
16551         * tests/test-canonicalize.sh: Delete; move setup into...
16552         * tests/test-canonicalize.c (main): ...the program, making it
16553         easier to run in debugger.  Add some tests.
16554         * modules/canonicalize-tests (Files): Remove unused file.
16555         (Depends-on): Add progname.
16556         (configure.ac, Makefile.am): Simplify.
16557
16558         test-canonicalize-lgpl: consolidate into single C program
16559         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
16560         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
16561         easier to run in debugger.  Add some tests.
16562         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
16563         (configure.ac, Makefile.am): Simplify.
16564
16565         canonicalize: avoid resolvepath
16566         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
16567         unnecessary checks.
16568         * lib/canonicalize.c (includes): Simplify.
16569         (canonicalize_file_name): Drop resolvepath implementation.
16570         * modules/canonicalize (Depends-on): Drop filenamecat.
16571
16572         canonicalize: don't lose errno
16573         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
16574         over calls to free.
16575
16576         canonicalize: simplify errno handling
16577         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
16578         assignment.
16579
16580         canonicalize, canonicalize-lgpl: update module dependencies
16581         * modules/canonicalize (Depends-on): Add extensions, lstat,
16582         pathmax, stdlib.
16583         (Files): Drop pathmax.h.
16584         (configure.ac): Adjust macro name.
16585         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
16586         lstat, stdlib, sys_stat.
16587         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
16588         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
16589         extensions.
16590         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
16591         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
16592         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
16593         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
16594         declaration, if available.
16595         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
16596         we can rely on the readlink module.
16597         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
16598         (includes): Use <unistd.h> unconditionally.
16599
16600 2009-09-17  Eric Blake  <ebb9@byu.net>
16601
16602         maint: make Include sections of modules consistent
16603         * modules/alloca: Use only header name; no need to list #include.
16604         * modules/alloca-opt: Likewise.
16605         * modules/arpa_inet: Likewise.
16606         * modules/canon-host: Likewise.
16607         * modules/configmake: Likewise.
16608         * modules/dirent: Likewise.
16609         * modules/eealloc: Likewise.
16610         * modules/environ: Likewise.
16611         * modules/fchdir: Likewise.
16612         * modules/fcntl: Likewise.
16613         * modules/fcntl-h: Likewise.
16614         * modules/gethrxtime: Likewise.
16615         * modules/gettime: Likewise.
16616         * modules/ignore-value: Likewise.
16617         * modules/inet_ntop: Likewise.
16618         * modules/inet_pton: Likewise.
16619         * modules/inttypes: Likewise.
16620         * modules/isnand-nolibm: Likewise.
16621         * modules/isnanf-nolibm: Likewise.
16622         * modules/mbchar: Likewise.
16623         * modules/mbfile: Likewise.
16624         * modules/mbiter: Likewise.
16625         * modules/mbuiter: Likewise.
16626         * modules/netdb: Likewise.
16627         * modules/netinet_in: Likewise.
16628         * modules/nproc: Likewise.
16629         * modules/pagealign_alloc: Likewise.
16630         * modules/poll: Likewise.
16631         * modules/printf-frexp: Likewise.
16632         * modules/pthread: Likewise.
16633         * modules/putenv: Likewise.
16634         * modules/random_r: Likewise.
16635         * modules/relocatable-prog: Likewise.
16636         * modules/search: Likewise.
16637         * modules/select: Likewise.
16638         * modules/selinux-h: Likewise.
16639         * modules/settime: Likewise.
16640         * modules/signal: Likewise.
16641         * modules/size_max: Likewise.
16642         * modules/socklen: Likewise.
16643         * modules/ssize_t: Likewise.
16644         * modules/stdarg: Likewise.
16645         * modules/stdbool: Likewise.
16646         * modules/stddef: Likewise.
16647         * modules/stdint: Likewise.
16648         * modules/stdio: Likewise.
16649         * modules/stdlib: Likewise.
16650         * modules/string: Likewise.
16651         * modules/strings: Likewise.
16652         * modules/sys_file: Likewise.
16653         * modules/sys_ioctl: Likewise.
16654         * modules/sys_select: Likewise.
16655         * modules/sys_socket: Likewise.
16656         * modules/sys_stat: Likewise.
16657         * modules/sys_time: Likewise.
16658         * modules/sys_times: Likewise.
16659         * modules/sys_utsname: Likewise.
16660         * modules/sys_wait: Likewise.
16661         * modules/sysexits: Likewise.
16662         * modules/time: Likewise.
16663         * modules/times: Likewise.
16664         * modules/tmpfile: Likewise.
16665         * modules/trim: Likewise.
16666         * modules/unistd: Likewise.
16667         * modules/wchar: Likewise.
16668         * modules/wctype: Likewise.
16669
16670 2009-09-17  Bruno Haible  <bruno@clisp.org>
16671
16672         Make getdate.y compile on QNX and NetBSD 5 / i386.
16673         * m4/getdate.m4 (gl_GETDATE): Conditionally define
16674         TIME_T_FITS_IN_LONG_INT.
16675         * lib/getdate.y (long_time_t): New type.
16676         (relative_time): Change type of 'seconds' field to long_time_t.
16677         (get_date): Update types of local variables. Check against overflow
16678         during conversion from long_time_t to time_t.
16679         Reported by Matt Kraai <kraai@ftbfs.org>
16680         and Hasso Tepper <hasso@netbsd.org>.
16681
16682 2009-09-17  Bruno Haible  <bruno@clisp.org>
16683
16684         * modules/COPYING: Update copyright years.
16685         * modules/README: Likeiwse.
16686         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
16687         Reported by Ian Beckwith <ianb@erislabs.net>.
16688
16689 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16690
16691         * users.txt: Update references for gnuit package.
16692
16693 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16694
16695         * m4/getdelim.m4: Fix typo in copyright line.
16696
16697 2009-09-17  Bruno Haible  <bruno@clisp.org>
16698
16699         * lib/atoll.c: Use the standard header with GPL copyright.
16700         * lib/argz.in.h: Likewise.
16701         * lib/glob.c: Likewise.
16702         * lib/glob-libc.h: Likewise.
16703         * lib/random_r.c: Likewise.
16704         * lib/siglist.h: Likewise.
16705         * lib/strsignal.c: Likewise.
16706         Reported by Ian Beckwith <ianb@erislabs.net>.
16707
16708 2009-09-17  Eric Blake  <ebb9@byu.net>
16709
16710         rmdir: ensure correct dependency order
16711         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
16712
16713 2009-09-17  Bruno Haible  <bruno@clisp.org>
16714
16715         Disable assertion that fails on NetBSD 5 / i386.
16716         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
16717         Reported by Sam Steingold <sds@gnu.org>
16718         and Hasso Tepper <hasso@netbsd.org>.
16719
16720 2009-09-16  Eric Blake  <ebb9@byu.net>
16721
16722         unlinkdir: port to mingw
16723         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
16724         on which no one can unlink a directory.
16725
16726         stdlib: sort witness names
16727         * modules/stdlib (Makefile.am): Sort replacements.
16728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
16729         * lib/stdlib.in.h: Likewise.
16730
16731         parse-duration-tests: avoid link failure
16732         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
16733         LIBINTL.
16734         Reported by Tom G. Christensen.
16735
16736         openat-tests: ensure unlinkat behaves like rmdir
16737         * tests/test-rmdir.c (main): Factor guts...
16738         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
16739         * modules/rmdir-tests (Files): Ship new file.
16740         * modules/openat-tests: New test.
16741         * tests/test-unlinkat.c: Likewise.
16742
16743         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
16744         * modules/rmdir-errno (Status, Notice): Now obsolete.
16745
16746         rmdir: work around cygwin 1.5.x and mingw bugs
16747         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
16748         * lib/rmdir.c (rmdir): Work around it.
16749         * modules/rmdir (Status, Notice): No longer obsolete.
16750         (Files): Add dos.m4.
16751         (Depends-on): Add unistd.
16752         (configure.ac): Set witnesses.
16753         (License): Relax to LGPLv2+.
16754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
16755         * modules/unistd (Makefile.am): Substitute witnesses.
16756         * lib/unistd.in.h (rmdir): Declare replacement.
16757         * doc/posix-functions/rmdir.texi (rmdir): Document this.
16758         * modules/rmdir-tests: New tests.
16759         * tests/test-rmdir.c: Likewise.
16760
16761 2009-09-15  Eric Blake  <ebb9@byu.net>
16762
16763         fchdir: improve use of replacement functions
16764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
16765         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
16766         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
16767         REPLACE_CLOSEDIR.
16768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
16769         * modules/sys_stat (Makefile.am): Substitute correct witness.
16770         * modules/dirent (Makefile.am): Likewise.
16771         * modules/unistd (Makefile.am): Likewise.
16772         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
16773         * lib/unistd.in.h (dup): Likewise.
16774         * lib/sys_stat.in.h (fstat): Likewise.
16775
16776         maint: ignore gnulib-tool temp files
16777         * .gitignore: Ignore files created during gnulib-tool --test.
16778
16779 2009-09-13  Jim Meyering  <meyering@redhat.com>
16780
16781         posixtm: don't reject a time that specify "60" as the number of seconds
16782         * lib/posixtm.c (posixtime): The code to reject invalid dates
16783         would also reject a time specified with the .60 suffix.
16784         But POSIX allows that, in order to accommodate leap seconds.
16785         So don't reject it.
16786         (main): Adjust tests accordingly.
16787         * modules/posixtm (Depends-on): Add stpcpy.
16788
16789 2009-09-11  Jim Meyering  <meyering@redhat.com>
16790
16791         announce-gen: include [$release_type] in emitted Subject:
16792         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
16793         e.g., [stable] in the emitted Subject: line.
16794
16795 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16796
16797         Remove obsolete macros from several modules.
16798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
16799         obsolete Autoconf macros with their modern counterparts.
16800         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
16801         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
16802         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
16803         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
16804         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
16805         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16807         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16808         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16809         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
16810         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16811         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16812         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
16813         * m4/sockets.m4 (gl_SOCKETS): Likewise.
16814         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
16815         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
16816         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
16817         * m4/time_r.m4 (gl_TIME_R): Likewise.
16818         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16819         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
16820         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16821
16822         Fix copyright header in build-aux scripts.
16823         * build-aux/git-version-gen: Fix copyright header to match GPLv3
16824         recommendation.
16825         * build-aux/ncftpput-ftp: Likewise.
16826         * build-aux/update-copyright: Likewise.
16827
16828 2009-09-09  Eric Blake  <ebb9@byu.net>
16829
16830         test-link: allow Linux choice of errno
16831         * tests/test-link.c (main): Relax test for alternate error.
16832
16833         strndup: fix improper m4 caching
16834         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
16835         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
16836         (gl_PREREQ_STRNDUP): Delete.
16837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
16838         * modules/string (Makefile.am): Substitute it.
16839         * lib/string.in.h (strndup): Modernize prototype.
16840
16841         getcwd: port to mingw
16842         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
16843         different from the POSIX assumptions made throughout the getcwd
16844         module; fortunately, the mingw getcwd does not need replacement.
16845         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
16846         * modules/getcwd-tests: New test.
16847         * tests/test-getcwd.c: Likewise.
16848
16849         link: fix platform bugs
16850         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
16851         * lib/link.c (link): Work around them.  Fix related mingw bug.
16852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
16853         * modules/unistd (Makefile.am): Substitute it.
16854         * lib/unistd.in.h (link): Declare replacement.
16855         * doc/posix-functions/link.texi (link): Document this.
16856         * modules/link (Depends-on): Add strdup-posix, sys_stat.
16857
16858         test-link: consolidate into single C program, test more cases
16859         * tests/test-link.sh: Delete.
16860         * tests/test-link.c: Test more error conditions.  Exposes bugs on
16861         at least Cygwin and Solaris.
16862         * modules/link-tests (Files): Remove unused file.
16863         (Depends-on): Add errno, sys_stat.
16864         (Makefile.am): Simplify.
16865
16866 2009-09-08  Bruno Haible  <bruno@clisp.org>
16867
16868         Work around towlower, towupper bug on mingw.
16869         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
16870         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
16871         * doc/posix-functions/towlower.texi: Mention the mingw bug.
16872         * doc/posix-functions/towupper.texi: Likewise.
16873         Reported by Eric Blake.
16874
16875 2009-09-08  Jim Meyering  <meyering@redhat.com>
16876
16877         build: don't try to run autoheader if we don't use it
16878         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
16879         is not used in configure.ac.
16880
16881 2009-09-08  Eric Blake  <ebb9@byu.net>
16882
16883         euidaccess: fix compilation error
16884         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
16885
16886         rawmemchr: relax license
16887         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
16888         okay.
16889         Reported by Jim Meyering.
16890
16891         mkfifoat: new module
16892         * modules/mkfifoat: New file.
16893         * lib/mkfifoat.c: Likewise.
16894         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
16895         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16896         * modules/sys_stat (Makefile.am): Use them.
16897         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
16898         * MODULES.html.sh (File system functions): Mention module.
16899         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16900         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16901         * modules/mkfifoat-tests: New test.
16902         * tests/test-mkfifoat.c: Likewise.
16903
16904         strchrnul: relax license
16905         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
16906         okay.
16907         Reported by Jim Meyering.
16908
16909 2009-09-08  Eric Blake  <ebb9@byu.net>
16910
16911         fstatat: fix compilation on Solaris
16912         * lib/fstatat.c (includes): Add fcntl.h.
16913         Reported by Pádraig Brady.
16914
16915 2009-09-07  Eric Blake  <ebb9@byu.net>
16916
16917         rename: modernize replacement
16918         * modules/rename (Depends-on): Add stdio.
16919         (configure.ac): Declare witness.
16920         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
16921         stdio take care of replacement.
16922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
16923         * modules/stdio (Makefile.am): Substitute them.
16924         * lib/stdio.in.h (rename): Declare replacement.
16925         * lib/rename.c (includes): Allow cross-compilation to non-windows
16926         machines.
16927         * doc/posix-functions/rename.texi (rename): Improve
16928         documentation.
16929
16930         stdio: sort witness names
16931         * modules/stdio (Makefile.am): Sort replacements.
16932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16933         * lib/stdio.in.h: Likewise.
16934
16935         getcwd: minor cleanups
16936         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
16937         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
16938
16939         openat: provide more convenience names
16940         * modules/faccessat (configure.ac): Add C witness.
16941         * lib/unistd.in.h (readlinkat): Fix typo.
16942         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
16943         convenience wrappers.
16944         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
16945         wrappers in syntax checks.
16946
16947 2009-09-06  Eric Blake  <ebb9@byu.net>
16948
16949         doc: fix comments in recent patches
16950         * lib/faccessat.c: Mention correct function.
16951         * lib/fchmodat.c: Likewise.
16952         * lib/fchownat.c: Likewise.
16953         * lib/symlinkat.c: Likewise.
16954         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
16955         constants.
16956
16957         faccessat, symlinkat: continue cleanup of previous patch
16958         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
16959         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16960         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
16961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
16962         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
16963         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
16964         set.
16965
16966 2009-09-06  Bruno Haible  <bruno@clisp.org>
16967
16968         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
16969         (fstatat): Declare if GNULIB_FSTATAT is set.
16970         (mkdirat): Declare if GNULIB_MKDIRAT is set.
16971         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
16972         (unlinkat): Declare if GNULIB_UNLINKAT is set.
16973         * modules/fcntl-h (Files): Remove m4/openat.m4.
16974         * modules/sys_stat (Files): Remove m4/openat.m4.
16975         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
16976         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
16977         * modules/unistd (Files): Remove m4/openat.m4.
16978         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
16979         GNULIB_OPENAT.
16980         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
16981         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
16982         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
16983         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
16984         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
16985         gl_OPENAT_DEFAULTS.
16986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
16987         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
16988         Don't require gl_OPENAT_DEFAULTS.
16989         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
16990         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
16991         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
16992         (gl_OPENAT_DEFAULTS): Remove macro.
16993
16994 2009-09-06  Bruno Haible  <bruno@clisp.org>
16995
16996         * modules/openat (configure.ac): Remove unneeded witness.
16997
16998 2009-09-06  Bruno Haible  <bruno@clisp.org>
16999
17000         Set errno to ENOSYS when a function is entirely unsupported.
17001         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17002         EOPNOTSUPP.
17003         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17004         * modules/chown (Depends-on): Remove errno.
17005
17006 2009-09-06  Bruno Haible  <bruno@clisp.org>
17007
17008         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17009
17010 2009-09-06  Bruno Haible  <bruno@clisp.org>
17011
17012         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17013
17014 2009-09-06  Ben Pfaff  <blp@gnu.org>
17015             Bruno Haible  <bruno@clisp.org>
17016
17017         Work around a glibc bug in strtok_r.
17018         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17019         Undefine if UNDEFINE_STRTOK_R is set.
17020         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17022         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17023         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17024         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17025         UNDEFINE_STRTOK_R.
17026         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17027
17028 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17029
17030         exclude: minor fix
17031         * lib/exclude.c: Include wctype.h
17032
17033 2009-09-06  Akim Demaille  <demaille@gostai.com>
17034
17035         bootstrap: improve error message
17036         * build-aux/bootstrap (find_tool): Upon failure, report the list
17037         of candidates.
17038         Honor the initial value of the envvar.
17039
17040 2009-09-05  Eric Blake  <ebb9@byu.net>
17041
17042         symlinkat: new module
17043         * modules/symlinkat: New file.
17044         * lib/symlinkat.c: Likewise.
17045         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17047         * modules/unistd (Makefile.am): Use them.
17048         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17049         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17050         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17051         * MODULES.html.sh (File system functions): Mention module.
17052         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17053         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17054         * modules/symlinkat-tests: New test.
17055         * tests/test-symlinkat.c: Likewise.
17056
17057         test-openat-safer: add more checks
17058         * tests/test-openat-safer.c (main): Check more code paths.
17059
17060 2009-09-05  Jim Meyering  <meyering@redhat.com>
17061
17062         syntax-check: detect unnecessary inclusion of openat.h
17063         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17064
17065 2009-09-05  Bruno Haible  <bruno@clisp.org>
17066
17067         Support towlower, towupper.
17068         * doc/posix-functions/towlower.texi: Mention module wctype.
17069         * doc/posix-functions/towupper.texi: Likewise.
17070         * lib/wctype.in.h (towlower, towupper): New functions.
17071         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17072         (ASSERT): New macro.
17073         (e): New variable.
17074         (main): Test also towlower, towupper. Test WEOF argument.
17075         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17076
17077 2009-09-05  Bruno Haible  <bruno@clisp.org>
17078
17079         Fix conversion behaviour when the input is invalid.
17080         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17081         mark occurring in first pass of indirect conversion.
17082         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17083         input.
17084         Found by clang's static analyzer.
17085
17086 2009-09-05  Bruno Haible  <bruno@clisp.org>
17087
17088         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17089         where direct conversion is possible.
17090
17091 2009-09-04  Eric Blake  <ebb9@byu.net>
17092
17093         openat: fail with ENOENT on empty name
17094         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17095         buffer.
17096
17097         link-follow: fix logic bug in prior patch
17098         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17099         reversed sense of yes and no in prior patch.  Avoid confusing
17100         compilation failure with desired semantics.
17101
17102         link-follow: accomodate mingw and cross-compilation
17103         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17104         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17105         cross-compilation results to -1, to make linkat easier to
17106         implement when cross-compiling.  Trivially support mingw.
17107         * modules/link-follow (configure.ac): Call new name.
17108         * NEWS: Mention this.
17109
17110 2009-09-03  Eric Blake  <ebb9@byu.net>
17111
17112         faccessat: compile replacement
17113         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17114         needed.
17115
17116         fts: fix compilation error
17117         * lib/fts.c (includes): Re-add "openat.h", for
17118         openat_needs_fchdir.
17119
17120         faccessat: new module
17121         * modules/faccessat: New file.
17122         * lib/faccessat.c: Likewise.
17123         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17125         * modules/unistd (Makefile.am): Use it.
17126         * lib/unistd.in.h (faccessat): Declare it.
17127         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17128         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17129         * MODULES.html.sh (File system functions): Mention it.
17130         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17131         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17132
17133         euidaccess: prefer POSIX over non-standard implementation
17134         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17135         * lib/euidaccess.c (euidaccess): Use it if available.
17136
17137         openat: make template easier to use
17138         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17139         AT_FUNC_F2 to be undefined.
17140         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17141         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17142         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17143         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17144         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17145         Likewise.
17146         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17147         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17148         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17149         Likewise.
17150
17151         openat: declare in POSIX headers
17152         * NEWS: Mention this.
17153         * modules/openat (configure.ac): Declare witnesses.
17154         (Depends-on): Add fcntl-h, sys_stat, unistd.
17155         (Include): Mention correct headers.
17156         * modules/fcntl-h (Depends-on): Add link-warning.
17157         (Files): Add openat.m4.
17158         (Makefile.am): Substitute witnesses.
17159         * modules/sys_stat (Files, Makefile.am): Likewise.
17160         * modules/unistd (Files, Makefile.am): Likewise.
17161         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17162         (gl_OPENAT_DEFAULTS): New macro.
17163         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17165         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17166         (SYS_STAT_H): Remove unused variable.
17167         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17168         * lib/fcntl--.h (includes): Remove unneeded header.
17169         * lib/openat-safer.c (includes): Likewise.
17170         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17171         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17172         appropriate headers.
17173         (__OPENAT_PREFIX): Delete.
17174         * lib/fcntl.in.h (openat): Provide declaration.
17175         (AT_FDCWD): Fix Solaris bug.
17176         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17177         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17178         * lib/fchmodat.c (includes):  Adjust to find declaration.
17179         * lib/fchownat.c (includes): Likewise.
17180         * lib/mkdirat.c (includes): Likewise.
17181         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17182         still visible.
17183
17184 2009-09-02  Eric Blake  <ebb9@byu.net>
17185
17186         errno: use consistently
17187         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17188         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17189         * lib/canonicalize.c (ELOOP): Likewise.
17190         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17191         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17192         * lib/lchown.c (EOPNOTSUPP): Likewise.
17193         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17194         * lib/savewd.c (ESTALE): Likewise.
17195         * lib/settime.c (ENOSYS): Likewise.
17196         * lib/utimens.c (ENOSYS): Likewise.
17197         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17198         * lib/chdir-safer.c (ELOOP): Likewise.
17199         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17200         * modules/c-stack (Depends-on): Add errno.
17201         * modules/canonicalize (Depends-on): Likewise.
17202         * modules/chdir-safer (Depends-on): Likewise.
17203         * modules/fdopendir (Depends-on): Likewise.
17204         * modules/inet_ntop (Depends-on): Likewise.
17205         * modules/inet_pton (Depends-on): Likewise.
17206         * modules/lchown (Depends-on): Likewise.
17207         * modules/openat (Depends-on): Likewise.
17208         * modules/savewd (Depends-on): Likewise.
17209         * modules/settime (Depends-on): Likewise.
17210         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17211
17212         fts: avoid leaking fds
17213         * modules/fts (Depends-on): Add cloexec.
17214         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17215         flag.
17216
17217         fts: make directory fds more robust
17218         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17219         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17220
17221         backupfile, chdir-long, fts, savedir: make safer
17222         * lib/backupfile.c (includes): Use "dirent--.h", since
17223         numbered_backup can write to stderr during readdir.
17224         * lib/savedir.c (includes): Likewise.
17225         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
17226         emulation can write to stderr on failure.
17227         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
17228         * lib/getcwd.c: Document why opendir_safer is unused.
17229         * lib/glob.c: Likewise.
17230         * lib/scandir.c: Likewise.
17231         * lib/openat-proc.c: Likewise, for open_safer.
17232         * modules/backupfile (Depends-on): Add dirent-safer.
17233         * modules/savedir (Depends-on): Likewise.
17234         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
17235         * modules/chdir-long (Depends-on): Add openat-safer.
17236
17237         openat-safer: new module
17238         * modules/openat-safer: New file.
17239         * lib/openat-safer.c: Likewise.
17240         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
17241         * lib/fcntl-safer.h (openat_safer): Declare.
17242         * lib/fcntl--.h (openat): Override.
17243         * MODULES.html.sh (File descriptor based I/O): Mention it.
17244         * lib/openat.h: Add double-inclusion guards.
17245         * lib/openat.c (includes): Only include "fcntl-safer.h", not
17246         "fcntl--.h", so we can implement openat.
17247         * modules/openat-safer-tests: New test.
17248         * tests/test-openat-safer.c: New file.
17249
17250         dirent-safer: new module
17251         * modules/dirent-safer: New file.
17252         * lib/dirent--.h: Likewise.
17253         * lib/dirent-safer.h: Likewise.
17254         * lib/opendir-safer.c: Likewise.
17255         * m4/dirent-safer.m4: Likewise.
17256         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
17257         * modules/dirent-safer-tests: New test.
17258         * tests/test-dirent-safer.c: New file.
17259         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
17260
17261         fdopendir: optimize on mingw
17262         * lib/unistd.in.h (_gl_directory_name): New prototype.
17263         * lib/fchdir.c (_gl_directory_name): Implement it.
17264         (fchdir): Use it to simplify implementation.
17265         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17266         fchdir, when available, to avoid calling [f]chdir().
17267
17268         fdopendir: split into its own module
17269         * lib/openat.c (fdopendir): Move...
17270         * lib/fdopendir.c: ...into new file.
17271         * modules/fdopendir: New module.
17272         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17273         * modules/openat (Depends-on): Add fdopendir.
17274         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17275         fdopendir here.
17276         * modules/savedir (Depends-on): Only need fdopendir, not full
17277         openat.
17278         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17279         * lib/openat.h (fdopendir): Drop prototype.
17280         * lib/dirent.in.h (fdopendir): Provide prototype.
17281         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17282         * modules/dirent (Makefile.am): Substitute them.
17283         * MODULES.html.sh (File system functions): Mention it.
17284         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17285         * modules/fdopendir-tests: New file.
17286         * tests/test-fdopendir.c: Likewise.
17287
17288         fchdir: use more consistent macro convention
17289         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17290         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17291         REPLACE_FCHDIR, rather than relying on config.h macros.
17292         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17293         inside a single make-time REPLACE_FCHDIR block, rather than using
17294         the config.h FCHDIR_REPLACEMENT.
17295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17296         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17297         Manage fstat replacement.
17298         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17299         REPLACE_FCHDIR.
17300         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17301         (Makefile.am): Substitute REPLACE_FCHDIR.
17302         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17303         FCHDIR_REPLACEMENT.
17304         * lib/dup-safer.c (dup_safer): Likewise.
17305         * lib/dup2.c (rpl_dup2): Likewise.
17306         * lib/dup3.c (rpl_dup3): Likewise.
17307         * lib/open.c (rpl_open): Likewise.
17308
17309         fchdir: simplify error handling, and support dup3
17310         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17311         stdbool, malloc-posix, realloc-posix.
17312         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17313         (ensure_dirs_slot): Return false on allocation failure.
17314         (rpl_dup2): Delete.
17315         (_gl_register_dup): New function.
17316         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17317         (_gl_register_fd): Close fd on allocation failure.
17318         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17319         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17320         prototype.
17321         (rpl_dup2_fchdir): Delete prototype.
17322         * lib/open.c (open): Update caller.
17323         * lib/dup2.c (dup2): Track fchdir metadata.
17324         * lib/dup3.c (dup3): Likewise.
17325         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17326         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17327
17328 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17329
17330         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17331         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17332         don't pass arguments to AC_OUTPUT.
17333
17334 2009-09-02  Bruno Haible  <bruno@clisp.org>
17335
17336         * modules/mkdtemp (License): Relicense under LGPLv2+.
17337         Reported by Paolo Bonzini.
17338
17339 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17340
17341         Replace uses of obsolete autoconf macros in Jim's modules.
17342         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17343         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17344         can evoke a warning from autoconf when run with -Wobsolete
17345         enabled.  They were declared obsolete for good reasons (see
17346         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17347         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17348         should not continue using the deprecated macros.
17349         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17350         obsolete Autoconf macros with modern counterparts.
17351         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17352         * m4/dos.m4 (gl_AC_DOS): Likewise.
17353         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17355         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17356         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17357         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17358         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17359         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17360         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17361         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17362         Likewise.
17363         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17364         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17365         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17366         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17367         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17368         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17369
17370 2009-09-01  Eric Blake  <ebb9@byu.net>
17371
17372         fchdir: fix off-by-one bug in previous patch
17373         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17374         (_gl_unregister_fd): Delete useless if.
17375
17376 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17377
17378         maint.mk: sort the list of syntax-check rules
17379         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17380         easier to get a sense of progress when the rules are run sequentially
17381         and take a long time.
17382
17383 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17384
17385         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17386         * modules/netinet_in: Likewise.
17387         * modules/sys_file: Likewise.
17388         * modules/sys_ioctl: Likewise.
17389         * modules/sys_select: Likewise.
17390         * modules/sys_socket: Likewise.
17391         * modules/sys_stat: Likewise.
17392         * modules/sys_time: Likewise.
17393         * modules/sys_times: Likewise.
17394         * modules/sys_utsname: Likewise.
17395         * modules/sys_wait: Likewise.
17396
17397 2009-09-01  Jim Meyering  <meyering@redhat.com>
17398
17399         fts: help ensure that return values are not ignored
17400         * lib/fts_.h (__GNUC_PREREQ): Define.
17401         (__attribute_warn_unused_result__): Define.
17402         (fts_children, fts_close, fts_open, fts_read): Declare with
17403         __attribute_warn_unused_result__.
17404
17405         fts: fts_close now fails also when closing a dir file descriptor fails
17406         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
17407         and propagate to caller, along with errno.
17408
17409         announce-gen: correct formatting in --help output
17410         * build-aux/announce-gen (usage): Move the one-line description in
17411         --help output "up", to where it belongs, just after Usage:.
17412
17413 2009-08-31  Eric Blake  <ebb9@byu.net>
17414
17415         fchdir: port to mingw
17416         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
17417         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
17418         opened, then use a substitute.
17419         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
17420         replacement.
17421         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
17422         (_gl_register_fd): No need to check stat if open already filters
17423         all directories.
17424         (fchdir): Fix error condition to match POSIX.
17425         * modules/fchdir (Depends-on): Add sys_stat.
17426         * doc/posix-functions/open.texi (open): Document the limitation.
17427         * modules/fchdir-tests: New file.
17428         * tests/test-fchdir.c: Likewise.
17429
17430         canonicalize: allow cross-testing from cygwin to mingw
17431         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
17432         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
17433         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
17434         Likewise.
17435         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
17436         target does not support symlinks.
17437         * tests/test-canonicalize-lgpl.sh: Likewise.
17438
17439         chown: avoid compilation warning on mingw
17440         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
17441         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
17442         mingw.
17443         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17444         * modules/chown (Depends-on): Add errno.
17445
17446 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17447
17448         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
17449         command.
17450
17451 2009-08-31  Jim Meyering  <meyering@redhat.com>
17452
17453         canonicalize: remove useless initialization
17454         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
17455         initialization of local, "end".
17456
17457 2009-08-30  Bruno Haible  <bruno@clisp.org>
17458
17459         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
17460         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
17461         ENOSYS.
17462
17463 2009-08-30  Bruno Haible  <bruno@clisp.org>
17464
17465         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
17466         /usr/xpg4/bin/tr when it exists.
17467         * tests/test-pipe-filter-gi1.sh: Likewise.
17468
17469 2009-08-30  Bruno Haible  <bruno@clisp.org>
17470
17471         Work around deficient /usr/bin/id program on Solaris.
17472         * tests/test-file-has-acl.sh (ID): New variable.
17473         * tests/test-set-mode-acl.sh (ID): Likewise.
17474         * tests/test-copy-acl.sh (ID): Likewise.
17475         * tests/test-copy-file.sh (ID): Likewise.
17476
17477 2009-08-30  Bruno Haible  <bruno@clisp.org>
17478
17479         New module 'xstriconveh'.
17480         * lib/xstriconveh.h: New file.
17481         * lib/xstriconveh.c: New file.
17482         * modules/xstriconveh: New file.
17483
17484 2009-08-30  Bruno Haible  <bruno@clisp.org>
17485
17486         Make it easier to use mem_cd_iconveh.
17487         * lib/striconveh.h (iconveh_t): New type.
17488         (iconveh_open, iconveh_close): New declarations.
17489         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17490         with a single 'const iconveh_t *' argument.
17491         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
17492         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17493         with a single 'const iconveh_t *' argument.
17494         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
17495         * tests/test-striconveh.c (main): Update.
17496         * NEWS: Mention the change.
17497
17498 2009-08-30  Bruno Haible  <bruno@clisp.org>
17499
17500         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
17501         problem.
17502
17503 2009-08-30  Bruno Haible  <bruno@clisp.org>
17504
17505         Work around iconv_open problem on Solaris.
17506         * lib/iconv_open-solaris.gperf: New file.
17507         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
17508         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
17509         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
17510         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
17511         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
17512         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
17513
17514 2009-08-29  Jim Meyering  <meyering@redhat.com>
17515
17516         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
17517         * top/maint.mk (cvs-check): Remove target; it was just an alias
17518         to the better-named vc-diff-check.
17519         (maintainer-distcheck): Remove rule.  It was used only from
17520         the (alpha/beta/major) target, and all of its commands but one
17521         were coreutils-specific.
17522         (vc-dist): Remove rule.
17523         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
17524         Run vc-diff-check, not vc-dist.
17525         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
17526
17527 2009-08-27  Bruno Haible  <bruno@clisp.org>
17528
17529         * tests/test-bitrotate.c (main): Remove test that uses a shift count
17530         of 0.
17531
17532 2009-08-27  Bruno Haible  <bruno@clisp.org>
17533
17534         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
17535         compilers.
17536         * doc/func.texi: Document the SunPRO C bug.
17537
17538 2009-08-27  Bruno Haible  <bruno@clisp.org>
17539
17540         Fix link error on Solaris.
17541         * tests/test-parse-duration.c (xstrdup): Remove function.
17542
17543 2009-08-26  Pádraig Brady  <P@draigbrady.com>
17544
17545         ignore-value: handle pointer types, too
17546         * lib/ignore-value.h (__attribute__): Remove definition.
17547         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
17548         of a more concise and more-often effective "(void) i" statement.
17549         (ignore_ptr): New function to suppress warnings from functions that
17550         return pointers, and to make it explicit that one function doesn't
17551         handle all cases.
17552
17553 2009-08-25  Bruno Haible  <bruno@clisp.org>
17554
17555         dup2: work around a Linux bug.
17556         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
17557         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
17558         * doc/posix-functions/dup2.texi: Mention the Linux bug.
17559         Reported by Simon Josefsson.
17560
17561 2009-08-25  Jim Meyering  <meyering@redhat.com>
17562
17563         libguestfs uses gnulib
17564         * users.txt: Add libguestfs.
17565
17566 2009-08-24  Eric Blake  <ebb9@byu.net>
17567
17568         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
17569         * lib/pipe2.c (includes): Add binary-io.h.
17570         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
17571
17572 2009-08-24  Bruno Haible  <bruno@clisp.org>
17573
17574         Tolerate declared but missing accept4 syscall.
17575         * lib/accept4.c (accept4): Invoke original accept4 function first, if
17576         available.
17577         * lib/sys_socket.in.h (accept4): If the function is already present,
17578         override it.
17579         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
17580         * modules/accept4 (Makefile.am): Compile accept4.c always.
17581         Reported by Paolo Bonzini and Eric Blake.
17582
17583 2009-08-23  Bruno Haible  <bruno@clisp.org>
17584
17585         New module 'accept4'.
17586         * lib/sys_socket.in.h (accept4): New declaration.
17587         * lib/accept4.c: New file.
17588         * m4/accept4.m4: New file.
17589         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17590         GNULIB_ACCEPT4, HAVE_ACCEPT4.
17591         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
17592         HAVE_ACCEPT4.
17593         * modules/accept4: New file.
17594         * doc/glibc-functions/accept4.texi: Mention the new module.
17595
17596 2009-08-24  Jim Meyering  <meyering@redhat.com>
17597
17598         progname: also set global program_invocation_name, when possible
17599         Before this change, a libtool-enabled program that calls glibc's
17600         error function would report the program name as
17601         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
17602         * modules/progname (configure.ac): Check for a declaration of
17603         program_invocation_name.
17604         * lib/progname.c:  Include <errno.h>.
17605         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
17606         Set program_invocation_name.
17607
17608 2009-08-23  Bruno Haible  <bruno@clisp.org>
17609
17610         * lib/dup3.c: Include <string.h>.
17611
17612 2009-08-23  Bruno Haible  <bruno@clisp.org>
17613
17614         * lib/dup3.c (dup3): Test only once whether the system actually exists.
17615         * lib/pipe2.c (pipe2): Likewise.
17616         Suggested by Eric Blake.
17617
17618 2009-08-23  Bruno Haible  <bruno@clisp.org>
17619
17620         Tolerate declared but missing dup3 syscall.
17621         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
17622         * lib/unistd.in.h (dup3): If the function is already present,
17623         override it.
17624         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
17625         * modules/dup3 (Makefile.am): Compile dup3.c always.
17626         Reported by Paolo Bonzini.
17627
17628 2009-08-23  Bruno Haible  <bruno@clisp.org>
17629
17630         Tolerate declared but missing pipe2 syscall.
17631         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
17632         available.
17633         * lib/unistd.in.h (pipe2): If the function is already present,
17634         override it.
17635         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
17636         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
17637         Reported by Paolo Bonzini.
17638
17639 2009-08-23  Bruno Haible  <bruno@clisp.org>
17640
17641         * lib/pipe2.c (pipe2): Move #ifs inside function.
17642
17643 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17644
17645         quotearg: document limitations of quote_these_too
17646         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
17647         those limitations are created.
17648         * lib/quotearg.h (set_char_quoting): Document that digits and
17649         letters that are special after backslash are not permitted.
17650         (quotearg_char): Cross-reference set_char_quoting documentation.
17651
17652 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
17653
17654         quotearg: implement custom_quoting_style
17655         * lib/quotearg.c: (struct quoting_options): Add left_quote and
17656         right_quote fields.
17657         (set_custom_quoting): New public function.
17658         (quotearg_buffer_restyled): Add left_quote and right_quote
17659         arguments, handle them very much like locale quoting, and update
17660         all uses.
17661         (quotearg_n_custom): New public function.
17662         (quotearg_n_custom_mem): New public function.
17663         (quotearg_custom): New public function.
17664         (quotearg_custom_mem): New public function.
17665         * lib/quotearg.h: Prototype and document new public functions.
17666         (enum quoting_style): For escape_quoting_style and
17667         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
17668         ignored even though they're otherwise like c_quoting_style.
17669         Add custom_quoting_style member and document with comparison to
17670         clocale_quoting_style.
17671         * tests/test-quotearg.c (custom_quotes): New array.
17672         (custom_results): New array.
17673         (main): Extend to test custom quoting.
17674
17675 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17676
17677         quotearg: fix right quote escaping when it's in quote_these_too
17678         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
17679         quote, be sure to prepend only one backslash.
17680         * tests/test-quotearg.c (use_quote_double_quotes): New function.
17681         (main): Test it.
17682
17683 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17684
17685         quotearg-tests: test escaping of embedded locale quotes
17686         * tests/test-quotearg.c (struct result_strings): Add member for
17687         new input.
17688         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
17689         (inputs): Add new input.
17690         (results_g): Add expected results.
17691         (flag_results): Likewise.
17692         (locale_results): Likewise.
17693         (compare_strings): Check those.
17694
17695 2009-08-23  Bruno Haible  <bruno@clisp.org>
17696
17697         Tests for module 'dup3'.
17698         * modules/dup3-tests: New file.
17699         * tests/test-dup3.c: New file.
17700
17701         New module 'dup3'.
17702         * lib/unistd.in.h (dup3): New declaration.
17703         * lib/dup3.c: New file.
17704         * m4/dup3.m4: New file.
17705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
17706         HAVE_DUP3.
17707         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
17708         * modules/dup3: New file.
17709         * doc/glibc-functions/dup3.texi: Mention the new module.
17710
17711 2009-08-23  Bruno Haible  <bruno@clisp.org>
17712
17713         Tweak the dup2 test.
17714         * tests/test-dup2.c (main): Create the test file empty. Verify that an
17715         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
17716         the test file is still empty. Fix argument order of lseek.
17717
17718 2009-08-23  Bruno Haible  <bruno@clisp.org>
17719
17720         Avoid test link errors when the modules getopt-gnu, gettext are used.
17721         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
17722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17723
17724 2009-08-23  Bruno Haible  <bruno@clisp.org>
17725
17726         Fix getdtablesize() on mingw.
17727         * lib/getdtablesize.c (getdtablesize): Implement differently.
17728         * lib/unistd.in.h (getdtablesize): Improve comment.
17729
17730 2009-08-23  Bruno Haible  <bruno@clisp.org>
17731
17732         New module 'mkostemp'.
17733         Based on Ulrich Drepper's 2007-08-10 change in glibc.
17734         * lib/stdlib.in.h (mksotemp): New declaration.
17735         * lib/mkostemp.c: New file, from glibc with modifications.
17736         * lib/tempname.h (GT_FILE): Remove outdated comment.
17737         (gen_tempname): Add flags argument.
17738         * lib/tempname.c (__GT_BIGFILE): Remove macro.
17739         (__GT_FILE): Map to 1.
17740         (small_open, large_open): Remove macros.
17741         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
17742         * lib/mkstemp.c (mkstemp): Update.
17743         * lib/mkdtemp.c (mkdtemp): Likewise.
17744         * m4/mkostemp.m4: New file.
17745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
17746         HAVE_MKOSTEMP.
17747         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
17748         HAVE_MKOSTEMP.
17749         * modules/mkostemp: New file, based on modules/mkstemp.
17750         * doc/glibc-functions/mkostemp.texi: Mention the new module.
17751         * NEWS: Mention the change.
17752
17753 2009-08-23  Bruno Haible  <bruno@clisp.org>
17754
17755         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
17756         Reported by Eric Blake.
17757
17758 2009-08-23  Bruno Haible  <bruno@clisp.org>
17759
17760         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
17761         Reported by Eric Blake.
17762
17763 2009-08-23  Bruno Haible  <bruno@clisp.org>
17764
17765         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
17766         * modules/pipe2 (Depends-on): Likewise.
17767
17768 2009-08-23  Eric Blake  <ebb9@byu.net>
17769
17770         fcntl-h: add O_TTY_INIT support
17771         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
17772         * tests/test-fcntl-h.c (o): Test it.
17773         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17774
17775         fcntl-h: rename from fcntl, in preparation for fcntl(2)
17776         * modules/fcntl: Move <fcntl.h> header replacement...
17777         * modules/fcntl-h: ...to new name, so as not to collide with
17778         like-named function.
17779         * tests/test-fcntl.c: Rename...
17780         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
17781         * modules/fcntl-tests: Rename...
17782         * modules/fcntl-h-tests: ...to this.  Update test file name.
17783         * modules/chdir-long (Depends-on): Update clients.
17784         * modules/chdir-safer (Depends-on): Likewise.
17785         * modules/fcntl-safer (Depends-on): Likewise.
17786         * modules/fts (Depends-on): Likewise.
17787         * modules/mkancesdirs (Depends-on): Likewise.
17788         * modules/mkdir-p (Depends-on): Likewise.
17789         * modules/open (Depends-on): Likewise.
17790         * modules/savewd (Depends-on): Likewise.
17791         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
17792         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17793
17794 2009-08-22  Bruno Haible  <bruno@clisp.org>
17795
17796         * modules/binary-io (License): Relicense under LGPL.
17797         * modules/pipe2 (License): Likewise.
17798
17799 2009-08-22  Bruno Haible  <bruno@clisp.org>
17800
17801         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
17802         return value.
17803         * lib/pipe-filter-gi.c (filter_init): Likewise.
17804         Reported by Eric Blake.
17805
17806 2009-08-22  Bruno Haible  <bruno@clisp.org>
17807
17808         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
17809         * modules/pipe (Depends-on): Add pipe2.
17810
17811 2009-08-22  Bruno Haible  <bruno@clisp.org>
17812
17813         Tests for module 'pipe2'.
17814         * modules/pipe2-tests: New file.
17815         * tests/test-pipe2.c: New file.
17816
17817         New module 'pipe2'.
17818         * lib/unistd.in.h (pipe2): New declaration.
17819         * lib/pipe2.c: New file.
17820         * m4/pipe2.m4: New file.
17821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
17822         HAVE_PIPE2.
17823         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
17824         * modules/pipe2: New file.
17825         * doc/glibc-functions/pipe2.texi: Mention the new module.
17826
17827 2009-08-22  Bruno Haible  <bruno@clisp.org>
17828
17829         Reference some new glibc functions.
17830         * doc/glibc-functions/accept4.texi: New file.
17831         * doc/glibc-functions/dup3.texi: New file.
17832         * doc/glibc-functions/mkostemp.texi: New file.
17833         * doc/glibc-functions/pipe2.texi: New file.
17834         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
17835         (Glibc sys/socket.h): Refer to accept4.
17836         (Glibc unistd.h): Refer to dup3, pipe2.
17837         Reported by Eric Blake.
17838
17839 2009-08-22  Jim Meyering  <meyering@redhat.com>
17840             Bruno Haible  <bruno@clisp.org>
17841
17842         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
17843         This makes it so packages using automake-1.11's silent-rules option
17844         can print e.g., a single "GEN    configmake.h" line, rather than
17845         the 30+ statements that perform the job.  If you want to see the
17846         actual commands, you can still run "make V=1".
17847         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
17848         so that make output is abbreviated when those variables are defined
17849         appropriately.
17850         * modules/argz: Likewise.
17851         * modules/arpa_inet: Likewise.
17852         * modules/byteswap: Likewise.
17853         * modules/configmake: Likewise.
17854         * modules/dirent: Likewise.
17855         * modules/errno: Likewise.
17856         * modules/fcntl: Likewise.
17857         * modules/float: Likewise.
17858         * modules/fnmatch: Likewise.
17859         * modules/getopt-posix: Likewise.
17860         * modules/glob: Likewise.
17861         * modules/iconv_open: Likewise.
17862         * modules/inttypes: Likewise.
17863         * modules/localcharset: Likewise.
17864         * modules/locale: Likewise.
17865         * modules/math: Likewise.
17866         * modules/netdb: Likewise.
17867         * modules/netinet_in: Likewise.
17868         * modules/poll: Likewise.
17869         * modules/posix_spawnp-tests: Likewise.
17870         * modules/sched: Likewise.
17871         * modules/search: Likewise.
17872         * modules/selinux-h: Likewise.
17873         * modules/signal: Likewise.
17874         * modules/spawn: Likewise.
17875         * modules/stdarg: Likewise.
17876         * modules/stdbool: Likewise.
17877         * modules/stddef: Likewise.
17878         * modules/stdint: Likewise.
17879         * modules/stdio: Likewise.
17880         * modules/stdlib: Likewise.
17881         * modules/string: Likewise.
17882         * modules/strings: Likewise.
17883         * modules/sys_file: Likewise.
17884         * modules/sys_ioctl: Likewise.
17885         * modules/sys_select: Likewise.
17886         * modules/sys_socket: Likewise.
17887         * modules/sys_stat: Likewise.
17888         * modules/sys_time: Likewise.
17889         * modules/sys_times: Likewise.
17890         * modules/sys_utsname: Likewise.
17891         * modules/sys_wait: Likewise.
17892         * modules/sysexits: Likewise.
17893         * modules/time: Likewise.
17894         * modules/unistd: Likewise.
17895         * modules/wchar: Likewise.
17896         * modules/wctype: Likewise.
17897
17898 2009-08-22  Jim Meyering  <meyering@redhat.com>
17899
17900         announce-gen: detect write failure
17901         * build-aux/announce-gen: Add Coda at end.
17902         Remove equivalent-but-more-verbose block at top.
17903
17904 2009-08-19  Akim Demaille  <demaille@gostai.com>
17905
17906         bootstrap: --help to stdout.
17907         * bootstrap (usage): Don't send --help to stderr.
17908         Use a here doc instead of a long string.
17909
17910 2009-08-21  Eric Blake  <ebb9@byu.net>
17911
17912         test-popen-safer: split from test-popen
17913         * tests/test-popen.c (main): Move...
17914         * tests/test-popen.h: ...into new file.
17915         * tests/test-popen-safer2.c: New file.
17916         * modules/popen-tests (Files): Add test-popen.h.
17917         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
17918         Suggested by Bruno Haible.
17919
17920         test-fcntl-safer: split from test-open
17921         * tests/test-open.c (main): Move...
17922         * tests/test-open.h: ...into new file.
17923         * tests/test-fcntl-safer.c: New file.
17924         * modules/open-tests (Files): Add test-open.h.
17925         * modules/fcntl-safer-tests: New file.
17926         Suggested by Bruno Haible.
17927
17928         test-fopen-safer: split from test-fopen
17929         * tests/test-fopen.c (main): Move...
17930         * tests/test-fopen.h: ...into new file.
17931         * tests/test-fopen-safer.c: New file.
17932         * modules/fopen-tests (Files): Add test-fopen.h.
17933         * modules/fopen-safer-tests: New file.
17934         Suggested by Bruno Haible.
17935
17936 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
17937
17938         popen-safer: test O_CLOEXEC at run-time.
17939         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
17940
17941 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
17942
17943         fcntl: move more flags to the header
17944         * lib/cloexec.c: Do not define FD_CLOEXEC here.
17945         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
17946         * lib/fcntl.in.h: Do both things here.
17947
17948 2009-08-21  Jim Meyering  <meyering@redhat.com>
17949
17950         consistently remove $@-t before redirecting to it
17951         * modules/argz: Remove $@-t and $@ before redirecting to the former.
17952         * modules/alloca-opt: Likewise.
17953         * modules/byteswap: Likewise.
17954         * modules/fnmatch: Likewise.
17955         * modules/getopt-posix: Likewise.
17956         * modules/glob: Likewise.
17957         * modules/poll: Likewise.
17958         * modules/posix_spawnp-tests: Likewise.
17959         * modules/sys_socket: Likewise.
17960         * modules/sysexits: Likewise.
17961
17962 2009-08-21  Eric Blake  <ebb9@byu.net>
17963
17964         popen: simplify access to original popen
17965         * lib/popen.c (rpl_popen): No need to worry about popen being a
17966         macro.
17967         Reported by Bruno Haible.
17968
17969 2009-08-20  Eric Blake  <ebb9@byu.net>
17970
17971         build: avoid some compiler warnings
17972         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
17973         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
17974         type.
17975         (new_exclude_segment, excluded_file_pattern_p)
17976         (excluded_file_name_p): Reduce scope.
17977         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
17978         old-style declaration.
17979
17980 2009-08-20  Simon Josefsson  <simon@josefsson.org>
17981
17982         * tests/test-exclude1.sh: Handle Windows EOL.
17983         * tests/test-exclude2.sh: Likewise.
17984         * tests/test-exclude3.sh: Likewise.
17985         * tests/test-exclude4.sh: Likewise.
17986         * tests/test-exclude5.sh: Likewise.
17987         * tests/test-exclude6.sh: Likewise.
17988         * tests/test-exclude7.sh: Likewise.
17989
17990 2009-08-19  Akim Demaille  <demaille@gostai.com>
17991
17992         bootstrap: find sha1sum when named gsha1sum.
17993         * bootstrap (find_tool): New.
17994         ($SHA1SUM): New.
17995         Use it.
17996
17997 2009-08-20  Jim Meyering  <meyering@redhat.com>
17998
17999         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18000         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18001         expression that converts "." in a file name to "\." in the resulting
18002         regexp.  Start with a dummy statement, so that prior shell variable
18003         definitions are expanded portably.  Reported by Simon Josefsson.
18004
18005 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18006
18007         Fix polling for writeability of a screen buffer.
18008         * lib/poll.c: Distinguish input and screen buffers for the
18009         Win32 implementation.
18010         * lib/select.c: Likewise.
18011
18012 2009-08-19  Eric Blake  <ebb9@byu.net>
18013
18014         popen-safer: prevent popen from clobbering std descriptors
18015         * modules/popen-safer: New file.
18016         * lib/popen-safer.c: Likewise.
18017         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18018         * lib/stdio--.h (popen): Provide override.
18019         * lib/stdio-safer.h (popen_safer): Provide declaration.
18020         * tests/test-popen.c (includes): Partially test this.
18021         * modules/popen-safer-tests: New file, for more tests.
18022         * tests/test-popen-safer.c: Likewise.
18023         * MODULES.html.sh (file stream based Input/Output): Mention it.
18024
18025         tests: test some of the *-safer modules
18026         * modules/fopen-safer (Depends-on): Add fopen.
18027         * modules/fcntl-safer (Depends-on): Add fcntl.
18028         * modules/stdlib-safer (Depends-on): Add stdlib.
18029         (configure.ac): Set indicator.
18030         * modules/unistd-safer (configure.ac): Likewise.
18031         * modules/tmpfile-safer (configure.ac): Likewise.
18032         (Depends-on): Add tmpfile.
18033         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18034         active.
18035         * tests/test-fopen.c (includes): Test safer versions when they are
18036         in use.
18037         * tests/test-open.c (includes): Likewise.
18038
18039         popen: fix cygwin 1.5 bug when stdin closed
18040         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18041         * modules/popen: New file.
18042         * modules/popen-tests: Likewise.
18043         * tests/test-popen.c: Likewise.
18044         * m4/popen.m4: Likewise.
18045         * lib/popen.c: Likewise.
18046         * lib/stdio.in.h (popen): New declaration.
18047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18048         * modules/stdio (Makefile.am): Likewise.
18049         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18050
18051 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18052
18053         maint.mk: give full control over update-copyright exclusions
18054         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18055         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18056         (update-copyright): Don't force inclusion of top-level
18057         ChangeLog.  Don't force exclusion of all COPYING files, but make
18058         them the default exclusion instead.
18059
18060 2009-08-16  Bruno Haible  <bruno@clisp.org>
18061
18062         Fix test failures on Solaris 10.
18063         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18064         tests when Solaris iconv() is used.
18065         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18066         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18067         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18068         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18069         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18070
18071 2009-08-16  Bruno Haible  <bruno@clisp.org>
18072
18073         Fix test failures on Solaris 10.
18074         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18075         'tr' program and pass it as first argument.
18076         * tests/test-pipe-filter-gi1.sh: Likewise.
18077         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18078         program as first argument.
18079         * tests/test-pipe-filter-gi1.c (main): Likewise.
18080
18081 2009-08-16  Eric Blake  <ebb9@byu.net>
18082
18083         fpurge: fix previous commits
18084         * modules/fpurge (Makefile.am): Make replacement conditional,
18085         partially reverting 2007-04-29 change; missed in previous
18086         attempt.
18087         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18088         is missing.
18089
18090 2009-08-16  Bruno Haible  <bruno@clisp.org>
18091
18092         Clarify fpurge's effect on the file position.
18093         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18094         * tests/test-fpurge.c (main): Make a second pass for checking the file
18095         position.
18096
18097 2009-08-16  Bruno Haible  <bruno@clisp.org>
18098
18099         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18100         declaration of fpurge is missing.
18101         * tests/test-fpurge.c (main): Check that the file has not more contents
18102         than expected. Close the file before removing it.
18103
18104 2009-08-15  Eric Blake  <ebb9@byu.net>
18105
18106         fpurge: don't wrap working cygwin implementation
18107         * lib/fpurge.c (fpurge): Fix comment typo.
18108         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18109         1.7 to avoid replacement.
18110         * tests/test-fpurge.c (main): Enhance test.
18111
18112 2009-08-15  Eric Blake  <ebb9@byu.net>
18113         and Jim Meyering  <meyering@redhat.com>
18114
18115         test-update-copyright: skip if perl is insufficient
18116         * tests/test-update-copyright.sh: Failure to run maintainer tool
18117         should not cause testsuite failure on cygwin 1.5.
18118
18119 2009-08-14  Eric Blake  <ebb9@byu.net>
18120
18121         doc: mention more functions added in cygwin 1.7.0
18122         * doc/posix-headers/limits.texi (limits.h): Update for recent
18123         cygwin additions.
18124         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18125         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18126         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18127         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18128         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18129
18130 2009-08-14  Eric Blake  <ebb9@byu.net>
18131
18132         maint.mk: simplify update-copyright rule
18133         * top/maint.mk (update-copyright-local): Delete, and document how
18134         to do it in cfg.mk instead.
18135         (update-copyright-exclude-regexp): Delete, and document how to do
18136         it in .x-update-copyright instead.
18137         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18138         exclude ChangeLog.
18139
18140 2009-08-14  Bruno Haible  <bruno@clisp.org>
18141
18142         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18143
18144 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18145
18146         maint.mk: support update-copyright-env
18147         * top/maint.mk (update-copyright-env): Define place-holder.
18148         (update-copyright): Expand $(update-copyright-env) before
18149         invoking update-copyright.
18150
18151 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18152
18153         update-copyright: implement forced reformatting
18154         * build-aux/update-copyright: Implement and document
18155         UPDATE_COPYRIGHT_FORCE.
18156         * tests/test-update-copyright.sh: Test it.
18157
18158 2009-08-14  Eric Blake  <ebb9@byu.net>
18159         and Bruno Haible  <bruno@clisp.org>
18160
18161         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18162         * tests/test-locale.c: Revert previous patch related to NULL.
18163         * tests/test-stdio.c: Likewise.
18164         * tests/test-stdlib.c: Likewise.
18165         * tests/test-string.c: Likewise.
18166         * tests/test-unistd.c: Likewise.
18167         * modules/time-tests (Depends-on): Add verify.
18168         * modules/wchar-tests (Depends-on): Likewise.
18169         * tests/test-time.c: Test for NULL compliance.
18170         * tests/test-wchar.c: Likewise.
18171         * modules/locale (Depends-on): Add stddef.
18172         * modules/stdio (Depends-on): Likewise.
18173         * modules/stdlib (Depends-on): Likewise.
18174         * modules/string (Depends-on): Likewise.
18175         * modules/time (Depends-on): Likewise.
18176         * modules/unistd (Depends-on): Likewise.
18177         * modules/wchar (Depends-on): Likewise.
18178         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18179         * lib/stdlib.in.h (includes): Likewise.
18180         * lib/string.in.h (includes): Likewise.
18181         * lib/time.in.h (includes): Likewise.
18182         * lib/unistd.in.h (includes): Likewise.
18183         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18184         replaced.
18185         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18186         * m4/stddef_h.m4: New file.
18187         * modules/stddef: Likewise.
18188         * lib/stddef.in.h: Likewise.
18189         * modules/stddef-tests: Likewise.
18190         * tests/test-stddef.c: Likewise.
18191         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18192         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18193         * doc/posix-headers/locale.texi (locale.h): Likewise.
18194         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18195         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18196         * doc/posix-headers/string.texi (string.h): Likewise.
18197         * doc/posix-headers/time.texi (time.h): Likewise.
18198         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18199         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18200
18201 2009-08-14  Eric Blake  <ebb9@byu.net>
18202
18203         doc: improve git diff of texinfo files
18204         * .gitattributes: Add rule for *.texi files, with hint on how to
18205         use it.
18206         Copied from m4, and based on a report by Bruno Haible.
18207
18208 2009-08-14  Bruno Haible  <bruno@clisp.org>
18209
18210         Disable multithread support by default on Cygwin 1.5.x for real.
18211         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18212
18213 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18214
18215         update-copyright: much ado about intervals
18216         * build-aux/update-copyright: Implement and document
18217         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18218         of copyright year intervals.
18219         Also, document UPDATE_COPYRIGHT_YEAR.
18220         * tests/test-update-copyright.sh: Test it.
18221
18222         update-copyright: convert 2-digit to 4-digit years
18223         * build-aux/update-copyright: Implement and document.
18224         * tests/test-update-copyright.sh: Update.
18225
18226 2009-08-14  Jim Meyering  <meyering@redhat.com>
18227
18228         test-exclude: avoid coreutils "make check" failure
18229         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
18230         just as in test-argmatch.c.
18231
18232 2009-08-13  Eric Blake  <ebb9@byu.net>
18233
18234         test-dup2: fix bad assumption
18235         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
18236         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
18237
18238         test-version-etc: fix CRLF portability issue
18239         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
18240         recognize \r.
18241         * tests/test-argp-version-etc-1.sh: Likewise.
18242
18243         getopt: update client modules
18244         * modules/argp (Depends-on): Use getopt-gnu.
18245         * modules/git-merge-changelog (Depends-on): Likewise.
18246         * modules/long-options (Depends-on): Likewise.
18247         * modules/xstrtol (Depends-on): Likewise.
18248
18249 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18250
18251         * tests/test-version-etc.sh: Don't fail on different
18252         project/version.  Don't fail on CRLF differences.  Rewrite to use
18253         multiple -e instead of multiple sed forks, suggested by Eric Blake
18254         <ebb9@byu.net>.
18255         * tests/test-argp-version-etc-1.sh: Likewise.
18256
18257 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18258
18259         * tests/test-version-etc.sh: Don't fail on different
18260         project/version.
18261
18262 2009-08-12  Bruno Haible  <bruno@clisp.org>
18263
18264         Tests for modules 'getopt-posix', 'getopt-gnu'.
18265         * modules/getopt-posix-tests: New file.
18266         * tests/test-getopt.c: New file.
18267         * tests/test-getopt.h: New file.
18268         * tests/test-getopt_long.h: New file.
18269
18270         New modules 'getopt-posix', 'getopt-gnu'.
18271         * modules/getopt-gnu: New file, renamed from modules/getopt.
18272         * modules/getopt-posix: New file.
18273         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18274         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18275         (gl_GETOPT): Remove macro.
18276         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18277         Disable the test against BSD systems that declare optreset. Test
18278         against mingw bug. Test against lack of support of optional arguments
18279         on many platforms.
18280         * doc/glibc-headers/getopt.texi: Update module name and list of
18281         relevant platforms.
18282         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18283         'getopt-gnu' and more portability problems.
18284         * NEWS: Mention the changes.
18285
18286 2009-08-12  Bruno Haible  <bruno@clisp.org>
18287
18288         Ensure that optarg etc. get declared by <unistd.h>.
18289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18290         AC_USE_SYSTEM_EXTENSIONS.
18291         * modules/getopt (Depends-on): Add 'extensions'.
18292
18293 2009-08-12  Bruno Haible  <bruno@clisp.org>
18294
18295         Avoid test link errors.
18296         * modules/pipe-filter-ii-tests (Makefile.am): Define
18297         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18298         * modules/pipe-filter-gi-tests (Makefile.am): Define
18299         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18301
18302 2009-08-12  Bruno Haible  <bruno@clisp.org>
18303
18304         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18305         gl_GETOPT_SUBSTITUTE before.
18306         (gl_GETOPT): Use it.
18307         * m4/argp.m4 (gl_ARGP): Update.
18308         Reported by Sergey Poznyakoff.
18309
18310         * m4/getopt.m4: Reorder macros.
18311         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18312         (gl_GETOPT_SUBSTITUTE): Remove macro.
18313
18314 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18315
18316         Minor improvement in gitlog-to-changelog
18317
18318         * build-aux/gitlog-to-changelog: New option `--format' makes
18319         output format string configurable.
18320
18321 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18322
18323         Optimize exclude: use hash tables for non-wildcard patterns.
18324
18325         * lib/exclude.c: Include hash.h and mbuiter.h
18326         (struct exclude_pattern, exclude_segment): New data types.
18327         (struct exclude): Rewrite.
18328         (fnmatch_pattern_has_wildcards): New function.
18329         (new_exclude_segment, free_exclude_segment): New functions.
18330         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18331         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18332         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18333         * modules/exclude: Depend on hash and mbuiter.
18334
18335         * modules/exclude-tests: New file.
18336         * tests/test-exclude.c: New file.
18337         * tests/test-exclude1.sh: New file.
18338         * tests/test-exclude2.sh: New file.
18339         * tests/test-exclude3.sh: New file.
18340         * tests/test-exclude4.sh: New file.
18341         * tests/test-exclude5.sh: New file.
18342         * tests/test-exclude6.sh: New file.
18343         * tests/test-exclude7.sh: New file.
18344
18345 2009-08-12  Bruno Haible  <bruno@clisp.org>
18346
18347         Ensure that getopt() gets declared by <unistd.h>.
18348         * lib/unistd.in.h: Conditionally include getopt.h.
18349         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18350         Set GNULIB_UNISTD_H_GETOPT.
18351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18352         GNULIB_UNISTD_H_GETOPT.
18353         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18354
18355 2009-08-12  Bruno Haible  <bruno@clisp.org>
18356
18357         Clarify logic.
18358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18359         gl_replace_getopt instead of GETOPT_H.
18360
18361 2009-08-12  Bruno Haible  <bruno@clisp.org>
18362
18363         * m4/getopt.m4: Add comments.
18364
18365 2009-08-12  Bruno Haible  <bruno@clisp.org>
18366
18367         Disable multithread support by default on Cygwin 1.5.x.
18368         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18369         set gl_use_threads=no if not specified otherwise.
18370
18371 2009-08-11  Bruno Haible  <bruno@clisp.org>
18372
18373         Avoid compilation error on NetBSD 5.0.
18374         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18375         * tests/test-stdio.c: Likewise.
18376         * tests/test-stdlib.c: Likewise.
18377         * tests/test-string.c: Likewise.
18378         * tests/test-unistd.c: Likewise.
18379         Reported by Greg Troxel <gdt@ir.bbn.com>
18380         at <https://savannah.gnu.org/support/?106973>.
18381
18382 2009-08-11  Bruno Haible  <bruno@clisp.org>
18383
18384         * modules/dup2-tests (Depends-on): Remove close.
18385
18386         Undo 2009-07-19 commit.
18387         * modules/acl-tests (Depends-on): Remove close.
18388         * modules/binary-io-tests (Depends-on): Likewise.
18389         * modules/closein-tests (Depends-on): Likewise.
18390         * modules/flock-tests (Depends-on): Likewise.
18391         * modules/fsync-tests (Depends-on): Likewise.
18392         * modules/lseek-tests (Depends-on): Likewise.
18393         * modules/pipe-tests (Depends-on): Likewise.
18394         * modules/posix_spawn-tests (Depends-on): Likewise.
18395         * modules/posix_spawnp-tests (Depends-on): Likewise.
18396         * modules/stat-time-tests (Depends-on): Likewise.
18397         * modules/yesno-tests (Depends-on): Likewise.
18398
18399 2009-08-10  Bruno Haible  <bruno@clisp.org>
18400
18401         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
18402
18403 2009-08-10  Bruno Haible  <bruno@clisp.org>
18404
18405         Fix a gcc warning.
18406         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
18407
18408 2009-08-10  Bruno Haible  <bruno@clisp.org>
18409
18410         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
18411         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
18412         not only the first time.
18413         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
18414         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
18415         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
18416         is 1, not only the the first time.
18417
18418 2009-08-10  Bruno Haible  <bruno@clisp.org>
18419
18420         Make it possible to use module 'gethostname' without module 'close'.
18421         * lib/unistd.in.h (close): Evoke a link error only if
18422         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18424         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18425         * modules/unistd (Makefile.am): Substitute
18426         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18427         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
18428         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18429         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18430         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18431         * modules/sys_ioctl (Makefile.am): Substitute
18432         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18433         * modules/socket (configure.ac): On native Windows, set
18434         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
18435         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18436         Reported by Sam Steingold <sds@gnu.org>.
18437
18438 2009-08-10  Bruno Haible  <bruno@clisp.org>
18439
18440         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
18441         * modules/ioctl (configure.ac): Likewise.
18442
18443 2009-08-10  Bruno Haible  <bruno@clisp.org>
18444
18445         Avoid collision between gnulib wrapper and libintl wrapper.
18446         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
18447         already defined in intl/printf.c.
18448         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
18449         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
18450
18451 2009-08-09  Bruno Haible  <bruno@clisp.org>
18452
18453         Make <sys/select.h> really self-contained, also on Solaris 10.
18454         * lib/sys_select.in.h: Include <string.h>.
18455         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
18456         Solaris 10 problem.
18457         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
18458         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
18459         Reported by Jim Meyering.
18460
18461 2009-08-09  Bruno Haible  <bruno@clisp.org>
18462
18463         Avoid warnings from 'aclocal' that are due to a use of macro name
18464         AM_XGETTEXT_OPTION that is not defined in automake.
18465         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
18466         automake.
18467         * modules/error (configure.ac): Likewise.
18468         * modules/propername (configure.ac): Likewise.
18469         * modules/vasprintf (configure.ac): Likewise.
18470         * modules/verror (configure.ac): Likewise.
18471         * modules/xprintf (configure.ac): Likewise.
18472         * modules/xvasprintf (configure.ac): Likewise.
18473
18474 2009-08-08  Bruno Haible  <bruno@clisp.org>
18475
18476         Avoid compilation error in C++ mode.
18477         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
18478         Reported by Sam Steingold <sds@gnu.org>.
18479
18480 2009-08-08  Bruno Haible  <bruno@clisp.org>
18481
18482         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
18483         for the various Unix platforms.
18484         * doc/posix-headers/limits.texi: Update platforms list regarding
18485         HOST_NAME_MAX.
18486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18487
18488 2009-08-07  Jim Meyering  <meyering@redhat.com>
18489
18490         selinux-at: fix typo in a comment
18491         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
18492         Spotted by Paolo Bonzini.
18493
18494         selinux-at: remove redundant m4 code, add documentation
18495         * modules/selinux-at (configure.ac): Remove redundant code.
18496         LIB_SELINUX is already set via the dependent module, selinux-h.
18497         (Include): Add quotes around selinux-at.h.
18498         * lib/selinux-at.h: Add documentation.
18499         Reported by Bruno Haible in
18500         http://marc.info/?l=gnulib-bug&m=124958988300749
18501
18502 2009-08-07  Bruno Haible  <bruno@clisp.org>
18503
18504         Avoid link error on MacOS X 10.3 and 10.4.
18505         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
18506         on non-ELF systems.
18507         * lib/argp-pv.c (argp_program_version): Likewise.
18508         Reported by Simon Josefsson.
18509
18510 2009-08-07  Simon Josefsson  <simon@josefsson.org>
18511
18512         * tests/test-version-etc.sh: Use $EXEEXT.
18513
18514 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
18515
18516         update-copyright: update documentation to point to maint.mk
18517         * build-aux/update-copyright: Here.
18518
18519 2009-08-06  Jim Meyering  <meyering@redhat.com>
18520
18521         maint.mk: support update-copyright-local
18522         * top/maint.mk (update-copyright-local): Define place-holder.
18523         (update-copyright): Depend on $(update-copyright-local).
18524
18525 2009-08-06  Jim Meyering  <meyering@redhat.com>
18526
18527         selinux-at: new module
18528         Initially written for coreutils, this module will soon be
18529         used by findutils, too.
18530         * MODULES.html.sh [Misc]: Add selinux-at.
18531         * lib/selinux-at.h: New file, from coreutils.
18532         * lib/selinux-at.c: Likewise.
18533         * modules/selinux-at: Likewise.
18534         (License): Change from LGPL to GPL, since it depends
18535         on the GPL'd openat module.
18536
18537         doc: update README
18538         * README: Remove references to cogito.
18539         Remove cvs-repo-updating instructions from 2007.
18540         Don't imply that CVS is better if you have limited disk space.
18541
18542 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18543
18544         update-copyright: support C-style comments
18545         * build-aux/update-copyright: Implement and document.
18546         * tests/test-update-copyright.sh: Test.
18547
18548 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18549
18550         update-copyright: support omitted "(C)"
18551         * build-aux/update-copyright: Implement and document.  Also,
18552         allow variable whitespace before "(C)".
18553         * tests/test-update-copyright.sh: Test.
18554
18555 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18556
18557         update-copyright: don't trip on non-FSF copyright statements
18558         * build-aux/update-copyright: Fix so that the first correctly
18559         formatted FSF copyright statement is recognized no matter what
18560         appears before it.  Update documentation.
18561         * tests/test-update-copyright.sh: Test that.
18562
18563 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18564
18565         update-copyright: clean up code a little
18566         * build-aux/update-copyright: Append "_re" to the name of any
18567         variable holding a regular expression.
18568         Replace "old" and "new" with "stmt" in variable names.
18569         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
18570         handled correctly.
18571         Format code more consistently.
18572
18573 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18574
18575         update-copyright-tests: improve portability
18576         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
18577         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
18578
18579 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18580
18581         update-copyright: support @copyright{} and &copy;
18582         * build-aux/update-copyright: Implement and document.
18583         * tests/test-update-copyright.sh: Test.
18584
18585 2009-08-04  Jim Meyering  <meyering@redhat.com>
18586
18587         update-copyright-tests: correctly test EOL=\r\n handling
18588         * tests/test-update-copyright.sh: Put \r at the end of some lines
18589         for the dos-eol tests.  Based on a patch by Joel E. Denny.
18590
18591         maint.mk: make update-copyright exclusion list more configurable
18592         * top/maint.mk (update-copyright): Default to excluding COPYING,
18593         but allow an override, in case someone does want to update that file.
18594
18595         maint.mk: don't update copyright date in COPYING
18596         * top/maint.mk (update-copyright): Exclude COPYING.
18597
18598         maint.mk: add a copyright-updating rule
18599         * top/maint.mk (update-copyright): New rule.
18600         Derived from coreutils/Makefile.am.
18601
18602         update-copyright: rename some variables
18603         * build-aux/update-copyright: Rename a few variables for clarity.
18604         Tweak syntax.  List Joel E. Denny as coauthor.
18605
18606 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18607
18608         update-copyright: fix bug for 2-digit last year and add tests
18609         * build-aux/update-copyright: Fix bug.
18610         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
18611         specified.
18612         * modules/update-copyright-tests: New
18613         * tests/test-update-copyright.sh: New.
18614
18615 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18616
18617         update-copyright: handle leading tabs in line prefix
18618         * build-aux/update-copyright: Count leading tabs as 8 spaces
18619         when computing margin.  This helps with the formatting of
18620         ChangeLogs, for example.
18621         Fix documentation a little.
18622
18623 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18624
18625         update-copyright: support EOL=\r\n
18626         * build-aux/update-copyright: Implement that.
18627
18628 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18629
18630         update-copyright: automatically format copyright statements
18631         * build-aux/update-copyright: Implement that.
18632         Also, be a little more predictable and safer by always failing
18633         when the full copyright format is not perfectly recognized as an
18634         unbroken whole.  Discussed at
18635         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
18636         Rewrite documentation.
18637
18638 2009-08-03  Bruno Haible  <bruno@clisp.org>
18639
18640         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
18641
18642 2009-08-02  Bruno Haible  <bruno@clisp.org>
18643
18644         Tests for module 'uname'.
18645         * modules/uname-tests: New file.
18646         * tests/test-uname.c: New file.
18647
18648         New module 'uname'.
18649         * lib/uname.c: New file.
18650         * m4/uname.m4: New file.
18651         * modules/uname: New file.
18652         * doc/posix-functions/uname.texi: Mention the new module.
18653
18654 2009-08-02  Bruno Haible  <bruno@clisp.org>
18655
18656         Tests for module 'sys_utsname'.
18657         * modules/sys_utsname-tests: New file.
18658         * tests/test-sys_utsname.c: New file.
18659
18660         New module 'sys_utsname'.
18661         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
18662         * m4/sys_utsname_h.m4: New file.
18663         * modules/sys_utsname: New file.
18664         * doc/posix-headers/sys_utsname.texi: Mention the new module.
18665
18666 2009-08-02  Bruno Haible  <bruno@clisp.org>
18667
18668         Implicitly initialize the sockets library.
18669         * lib/gethostname.c: Include sockets.h.
18670         (rpl_gethostname): Invoke gl_sockets_startup.
18671         * lib/socket.c: Include sockets.h.
18672         (rpl_socket): Invoke gl_sockets_startup.
18673         * modules/gethostname (Depends-on): Add sockets.
18674         * modules/socket (Depends-on): Likewise.
18675         * tests/test-poll.c: Don't include sockets.h.
18676         (main): Don't invoke gl_sockets_startup.
18677         * tests/test-select.c: Don't include sockets.h.
18678         (main): Don't invoke gl_sockets_startup.
18679
18680 2009-08-02  Bruno Haible  <bruno@clisp.org>
18681
18682         Allow multiple calls to gl_sockets_startup.
18683         * lib/sockets.c (initialized_sockets_version): New variable.
18684         (gl_sockets_startup): Do nothing if already called for this or a higher
18685         version.
18686         (gl_sockets_cleanup): Reset initialized_sockets_version.
18687
18688 2009-08-03  Simon Josefsson  <simon@josefsson.org>
18689
18690         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
18691         different project/version.
18692
18693 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
18694             Bruno Haible  <bruno@clisp.org>
18695
18696         Tests for module 'pipe-filter-gi'.
18697         * modules/pipe-filter-gi-tests: New file.
18698         * tests/test-pipe-filter-gi1.sh: New file.
18699         * tests/test-pipe-filter-gi1.c: New file.
18700         * tests/test-pipe-filter-gi2.sh: New file.
18701         * tests/test-pipe-filter-gi2-main.c: New file.
18702         * tests/test-pipe-filter-gi2-child.c: New file.
18703
18704         New module 'pipe-filter-gi'.
18705         * lib/pipe-filter-gi.c: New file.
18706         * modules/pipe-filter-gi: New file.
18707
18708 2009-08-02  Bruno Haible  <bruno@clisp.org>
18709             Paolo Bonzini  <bonzini@gnu.org>
18710
18711         Tests for module 'pipe-filter-ii'.
18712         * modules/pipe-filter-ii-tests: New file.
18713         * tests/test-pipe-filter-ii1.sh: New file.
18714         * tests/test-pipe-filter-ii1.c: New file.
18715         * tests/test-pipe-filter-ii2.sh: New file.
18716         * tests/test-pipe-filter-ii2-main.c: New file.
18717         * tests/test-pipe-filter-ii2-child.c: New file.
18718
18719         New module 'pipe-filter-ii'.
18720         * lib/pipe-filter.h: New file.
18721         * lib/pipe-filter-ii.c: New file.
18722         * lib/pipe-filter-aux.h: New file.
18723         * modules/pipe-filter-ii: New file.
18724
18725 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18726
18727         * lib/gc-libgcrypt.c: Change copyright to FSF.
18728         * lib/gc-gnulib.c: Likewise.
18729
18730 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
18731
18732         * lib/gethostname.c: Include limits.h.
18733
18734 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18735             Bruno Haible  <bruno@clisp.org>
18736
18737         Ensure HOST_NAME_MAX as part of the gethostname module.
18738         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
18739         define also HOST_NAME_MAX.
18740         * tests/test-gethostname.c: Include <limits.h>.
18741         (main): Check also HOST_NAME_MAX.
18742         * doc/posix-headers/limits.texi: Document the mingw problem.
18743
18744 2009-08-02  Bruno Haible  <bruno@clisp.org>
18745
18746         * lib/gethostname.c (gethostname): Fix handling of large len argument.
18747         Add comments.
18748
18749 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18750
18751         * lib/gethostname.c: Add Windows wrapper.
18752         * m4/gethostname.m4: Look for gethostname in -lws2_32.
18753         * modules/gethostname: Depend on sys_socket & errno, for also
18754         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
18755         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
18756
18757 2009-07-31  Jim Meyering  <meyering@redhat.com>
18758
18759         getloadavg: fix symbol name in comment
18760         * lib/getloadavg.c: Correct a typo I introduced when adding
18761         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
18762         Matt Kraai spotted the problem.
18763
18764 2009-07-29  Matt Kraai  <mkraai@beckman.com>
18765
18766         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
18767         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
18768         code also if ! defined N_NAME_POINTER.
18769         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
18770         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
18771         but the n_name member is a 12-byte array.
18772
18773 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
18774
18775         update-copyright: generalize comment handling
18776         * build-aux/update-copyright: Handle copyright statements
18777         within more comment styles.
18778         Document usage.
18779         Report any file with an external copyright holder or parse failure.
18780
18781 2009-07-29  Jim Meyering  <meyering@redhat.com>
18782
18783         mktime: correct setting of REPLACE_MKTIME
18784         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
18785
18786         update-copyright: new module
18787         * modules/update-copyright: New file.
18788         * build-aux/update-copyright: New file.
18789         * MODULES.html.sh (maint+release support): Add update-copyright.
18790
18791 2009-07-27  Bruno Haible  <bruno@clisp.org>
18792
18793         Fix compilation error when <ctime> is used and mktime is replaced.
18794         * lib/time.in.h (mktime): New declaration.
18795         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
18796         REPLACE_MKTIME instead of defining mktime in config.h.
18797         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
18798         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
18799         Reported by Ross McFarland <rwmcfa1@neces.com>.
18800
18801 2009-07-27  Bruno Haible  <bruno@clisp.org>
18802
18803         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
18804         Reported by Matt Kraai <mkraai@beckman.com>.
18805
18806 2009-07-25  Jim Meyering  <meyering@redhat.com>
18807
18808         maint.mk: avoid warnings about missing files
18809         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
18810         diagnostic when .prev-version does not exist.
18811         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
18812         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
18813         nonexistent cfg.mk.
18814         Suggestions from Simon Josefsson.
18815
18816 2009-07-25  Bruno Haible  <bruno@clisp.org>
18817
18818         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
18819         defined as macros. Needed on QNX 6.4.1.
18820         Reported by Matt Kraai <mkraai@beckman.com>.
18821
18822 2009-07-23  Jim Meyering  <meyering@redhat.com>
18823
18824         maint.mk: invoke "make dist" with a working value of XZ_OPT
18825         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
18826
18827 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
18828
18829         Make fseeko.c compile on QNX.
18830         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
18831
18832 2009-07-22  Peter Simons  <simons@cryp.to>
18833
18834         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
18835         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
18836         * lib/md4.h: Likewise.
18837         * lib/md5.h: Likewise.
18838         * lib/sha1.h: Likewise.
18839         * lib/sha256.h: Likewise.
18840         * lib/sha512.h: Likewise.
18841
18842         tests-sha1: don't assign literal string to 'char *' variable
18843         * tests/test-sha1.c (main): Declare locals with "const" to match
18844         attributes of the right hand side.
18845
18846 2009-07-21  Eric Blake  <ebb9@byu.net>
18847
18848         dup2: fix more mingw problems
18849         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
18850         fd to itself.
18851         * doc/posix-functions/dup2.texi (dup2): Document the bug.
18852         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
18853         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
18854         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
18855         care of mingw bugs.
18856
18857 2009-07-21  Jim Meyering  <meyering@redhat.com>
18858
18859         vc-list-files: avoid failure when /bin/sh is dash
18860         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
18861         On some Debian based systems, /bin/sh is a symlink to dash, and running
18862         this command would omit the "/" following each 'tests' prefix:
18863           dash -x build-aux/vc-list-files -C . tests
18864         That is because bash and dash work differently:
18865           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
18866           bash ok
18867           dash odd
18868
18869 2009-07-21  Eric Blake  <ebb9@byu.net>
18870
18871         dup2-tests: test previous patch
18872         * modules/dup2-tests: New file.
18873         * tests/test-dup2.c: Likewise.
18874         * tests/test-open.c (main): Avoid unspecified behavior.
18875         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
18876         test.
18877
18878         dup2: work around mingw and cygwin 1.5 bug
18879         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
18880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18881         * modules/unistd (Makefile.am): Substitute it.
18882         * lib/unistd.in.h (dup2): Declare the replacement.
18883         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
18884         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
18885         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
18886         * modules/execute (Depends-on): Add dup2.
18887         * modules/fseterr (Depends-on): Likewise.
18888         * modules/pipe (Depends-on): Likewise.
18889         * modules/posix_spawn-internal (Depends-on): Likewise.
18890
18891 2009-07-21  Bruno Haible  <bruno@clisp.org>
18892
18893         * modules/.gitattributes: New file.
18894
18895 2009-07-20  Bruno Haible  <bruno@clisp.org>
18896
18897         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
18898         (main): Use it.
18899
18900 2009-07-20  Eric Blake  <ebb9@byu.net>
18901
18902         test-pipe: make a bit more robust.
18903         * tests/test-pipe.c (myerr): Allow error messages regardless of
18904         what we do to stderr.
18905         (test_pipe): Rearrange to avoid deadlock.
18906         (child_main): Try a larger read, to ensure we avoided deadlock.
18907         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
18908         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
18909         if misused.
18910
18911 2009-07-19  Jim Meyering  <meyering@redhat.com>
18912
18913         fts: avoid false-positive cycle-detection
18914         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
18915         for each new command line argument.
18916
18917 2009-07-19  Bruno Haible  <bruno@clisp.org>
18918
18919         Fix build error on mingw with the modules sys_select and unistd.
18920         * modules/acl-tests (Depends-on): Add close.
18921         * modules/binary-io-tests (Depends-on): Likewise.
18922         * modules/closein-tests (Depends-on): Likewise.
18923         * modules/flock-tests (Depends-on): Likewise.
18924         * modules/fsync-tests (Depends-on): Likewise.
18925         * modules/lseek-tests (Depends-on): Likewise.
18926         * modules/pipe-tests (Depends-on): Likewise.
18927         * modules/posix_spawn-tests (Depends-on): Likewise.
18928         * modules/posix_spawnp-tests (Depends-on): Likewise.
18929         * modules/stat-time-tests (Depends-on): Likewise.
18930         * modules/yesno-tests (Depends-on): Likewise.
18931
18932 2009-07-19  Bruno Haible  <bruno@clisp.org>
18933
18934         Unify conditionals.
18935         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
18936         macros, not at the compiler macros.
18937         * lib/pipe.c: Likewise.
18938         * lib/execute.c: Likewise.
18939         * lib/spawni.c: Likewise.
18940
18941 2009-07-19  Bruno Haible  <bruno@clisp.org>
18942
18943         Fix handling of closed stdin/stdout/stderr on mingw.
18944         * lib/w32spawn.h: Include unistd.h.
18945         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
18946         file descriptor with O_NOINHERIT flag.
18947         (fd_safer_noinherit): New function, based on fd-safer.c.
18948         (dup_safer_noinherit): New function, based on dup-safer.c.
18949         (undup_safer_noinherit): New function.
18950         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
18951         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
18952         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
18953         instead of fd_safer.
18954         * tests/test-pipe.c: Include <windows.h>.
18955         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
18956
18957         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
18958         from main.
18959         (test_pipe): Pass an extra argument for disambiguation.
18960         (main): Invoke parent_main or child_main.
18961
18962         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
18963         consistently.
18964
18965 2009-07-18  Eric Blake  <ebb9@byu.net>
18966
18967         test-pipe: fix mingw build
18968         * tests/test-pipe.c (main): Avoid fcntl on mingw.
18969
18970 2009-07-18  Bruno Haible  <bruno@clisp.org>
18971
18972         * modules/pipe-tests (Makefile.am): Fix typo.
18973
18974 2009-07-18  Eric Blake  <ebb9@byu.net>
18975
18976         error: fix mingw build
18977         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
18978         Reported by Bruno Haible.
18979
18980         error: avoid undefined use of stdout
18981         * lib/error.c (error, error_at_line): Check that fd 1 is open
18982         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
18983         is handling faults and the close_stdout module wants to report the
18984         detection of closed stdout as an error.
18985
18986 2009-07-17  Eric Blake  <ebb9@byu.net>
18987
18988         pipe: be robust in face of closed fds
18989         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
18990         should cause child to misbehave.
18991         * modules/pipe-tests: New module.
18992         * tests/test-pipe.c: New file.
18993         * tests/test-pipe.sh: New file.
18994         Reported by Akim Demaille.
18995
18996 2009-07-14  Bruno Haible  <bruno@clisp.org>
18997
18998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
18999         Reported by anonymous kc.
19000
19001 2009-07-07  Jim Meyering  <meyering@redhat.com>
19002
19003         maint.mk: don't look for translatable strings in *.m4 or *.mk
19004         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19005         when searching for translatable strings.
19006
19007 2009-07-05  Jim Meyering  <meyering@redhat.com>
19008
19009         remove superfluous parentheses in STREQ definition
19010         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19011         * lib/getugroups.c (STREQ): Likewise.
19012         * lib/fnmatch.c (STREQ): Likewise.
19013         Spotted by Bruno Haible.
19014
19015 2009-07-04  Jim Meyering  <meyering@redhat.com>
19016
19017         argv-iter: new module
19018         * MODULES.html.sh: Add argv-iter.
19019         * lib/argv-iter.c, lib/argv-iter.h: New files.
19020         * modules/argv-iter: New file.
19021         * modules/argv-iter-tests: New file.
19022         * tests/test-argv-iter.c: Test it.
19023
19024 2009-07-04  Bruno Haible  <bruno@clisp.org>
19025
19026         Fix assertion.
19027         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19028         contains more exact copies of a given entry than file2, leave the extra
19029         copies unpaired rather than aborting.
19030         Reported by Eric Blake.
19031
19032 2009-07-02  Bruno Haible  <bruno@clisp.org>
19033
19034         Speedup git-merge-changelog for git cherry-pick.
19035         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19036         (entries_mapping_get): New function, extracted from compute_mapping.
19037         (entries_mapping_reverse_get): New function.
19038         (compute_mapping): Add a 'full' argument. Return the result in a
19039         'struct entries_mapping'.
19040         (main): Update. Access the mappings through entries_mapping_get.
19041         Reported by Eric Blake.
19042
19043 2009-07-02  Bruno Haible  <bruno@clisp.org>
19044
19045         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19046         best_i.
19047
19048 2009-07-02  Bruno Haible  <bruno@clisp.org>
19049
19050         Speed up approximate search for matching ChangeLog entries.
19051         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19052         argument. Call fstrcmp_bounded instead of fstrcmp.
19053         (compute_mapping, try_split_merged_entry, main): Update callers.
19054
19055 2009-07-02  Bruno Haible  <bruno@clisp.org>
19056
19057         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19058
19059 2009-06-30  Bruno Haible  <bruno@clisp.org>
19060
19061         Reduce the number of uc_is_cased calls.
19062         * lib/unicase.h (casing_suffix_context_t): Add
19063         'first_char_except_ignorable' field.
19064         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19065         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19066         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19067         Update initializer.
19068         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19069         case-ignorable characters.
19070         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19071         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19072         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19073         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19074         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19075
19076 2009-06-30  Bruno Haible  <bruno@clisp.org>
19077
19078         Tests for module 'unicase/ignorable'.
19079         * modules/unicase/ignorable-tests: New file.
19080         * tests/unicase/test-ignorable.c: New file, generated by
19081         gen-uni-tables.
19082
19083         Tests for module 'unicase/cased'.
19084         * modules/unicase/cased-tests: New file.
19085         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19086         * tests/unicase/test-predicate-part1.h: New file, derived from
19087         tests/unictype/test-predicate-part1.h.
19088         * tests/unicase/test-predicate-part2.h: New file, same as
19089         tests/unictype/test-predicate-part2.h.
19090
19091         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19092         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19093         (output_casing_properties): New function.
19094         (main): Call it.
19095         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19096         * lib/unicase/cased.c: Include unictype/bitmap.h.
19097         (uc_is_cased): Define through a bitmap lookup.
19098         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19099         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19100         (uc_is_case_ignorable): Define through a bitmap lookup.
19101         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19102         lib/unictype/bitmap.h.
19103         (Depends-on): Add inline. Clean up.
19104         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19105         lib/unictype/bitmap.h.
19106         (Depends-on): Add inline. Clean up.
19107         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19108         recognition.
19109         * tests/unicase/test-u16-tolower.c (main): Likewise.
19110         * tests/unicase/test-u32-tolower.c (main): Likewise.
19111
19112 2009-06-30  Bruno Haible  <bruno@clisp.org>
19113
19114         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19115         * lib/unicase/u16-casemap.c: Likewise.
19116         * lib/unicase/u32-casemap.c: Likewise.
19117
19118 2009-06-29  Bruno Haible  <bruno@clisp.org>
19119
19120         Define u32_casefold as a wrapper around u32_ct_casefold.
19121         * lib/unicase/u32-casefold.c: Update.
19122         * modules/unicase/u32-casefold (Depends-on): Add
19123         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19124         unicase/empty-suffix-context. Clean up.
19125
19126         Define u16_casefold as a wrapper around u16_ct_casefold.
19127         * lib/unicase/u16-casefold.c: Update.
19128         * modules/unicase/u16-casefold (Depends-on): Add
19129         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19130         unicase/empty-suffix-context. Clean up.
19131
19132         Define u8_casefold as a wrapper around u8_ct_casefold.
19133         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19134         * lib/unicase/u8-casefold.c: Update.
19135         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19136         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19137
19138         Define u32_totitle as a wrapper around u32_ct_totitle.
19139         * lib/unicase/u32-totitle.c: Update.
19140         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19141         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19142
19143         Define u16_totitle as a wrapper around u16_ct_totitle.
19144         * lib/unicase/u16-totitle.c: Update.
19145         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19146         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19147
19148         Define u8_totitle as a wrapper around u8_ct_totitle.
19149         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19150         functions.
19151         (FUNC): Delegate to U_CT_TOTITLE.
19152         * lib/unicase/u8-totitle.c: Update.
19153         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19154         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19155
19156         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19157         invocation.
19158         * modules/unicase/u32-tolower (Depends-on): Add
19159         unicase/empty-prefix-context, unicase/empty-suffix-context.
19160
19161         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19162         invocation.
19163         * modules/unicase/u16-tolower (Depends-on): Add
19164         unicase/empty-prefix-context, unicase/empty-suffix-context.
19165
19166         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19167         * modules/unicase/u8-tolower (Depends-on): Add
19168         unicase/empty-prefix-context, unicase/empty-suffix-context.
19169
19170         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19171         invocation.
19172         * modules/unicase/u32-toupper (Depends-on): Add
19173         unicase/empty-prefix-context, unicase/empty-suffix-context.
19174
19175         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19176         invocation.
19177         * modules/unicase/u16-toupper (Depends-on): Add
19178         unicase/empty-prefix-context, unicase/empty-suffix-context.
19179
19180         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19181         * modules/unicase/u8-toupper (Depends-on): Add
19182         unicase/empty-prefix-context, unicase/empty-suffix-context.
19183
19184         New module 'unicase/u32-ct-casefold'.
19185         * lib/unicase/u32-ct-casefold.c: New file.
19186         * modules/unicase/u32-ct-casefold: New file.
19187
19188         New module 'unicase/u16-ct-casefold'.
19189         * lib/unicase/u16-ct-casefold.c: New file.
19190         * modules/unicase/u16-ct-casefold: New file.
19191
19192         New module 'unicase/u8-ct-casefold'.
19193         * lib/unicase/u8-ct-casefold.c: New file.
19194         * lib/unicase/u-ct-casefold.h: New file, derived from
19195         lib/unicase/u-casefold.h.
19196         * modules/unicase/u8-ct-casefold: New file.
19197
19198         New module 'unicase/u32-ct-totitle'.
19199         * lib/unicase/u32-ct-totitle.c: New file.
19200         * modules/unicase/u32-ct-totitle: New file.
19201
19202         New module 'unicase/u16-ct-totitle'.
19203         * lib/unicase/u16-ct-totitle.c: New file.
19204         * modules/unicase/u16-ct-totitle: New file.
19205
19206         New module 'unicase/u8-ct-totitle'.
19207         * lib/unicase/u8-ct-totitle.c: New file.
19208         * lib/unicase/u-ct-totitle.h: New file, derived from
19209         lib/unicase/u-totitle.h.
19210         * modules/unicase/u8-ct-totitle: New file.
19211
19212         New module 'unicase/u32-ct-tolower'.
19213         * lib/unicase/u32-ct-tolower.c: New file.
19214         * modules/unicase/u32-ct-tolower: New file.
19215
19216         New module 'unicase/u16-ct-tolower'.
19217         * lib/unicase/u16-ct-tolower.c: New file.
19218         * modules/unicase/u16-ct-tolower: New file.
19219
19220         New module 'unicase/u8-ct-tolower'.
19221         * lib/unicase/u8-ct-tolower.c: New file.
19222         * modules/unicase/u8-ct-tolower: New file.
19223
19224         New module 'unicase/u32-ct-toupper'.
19225         * lib/unicase/u32-ct-toupper.c: New file.
19226         * modules/unicase/u32-ct-toupper: New file.
19227
19228         New module 'unicase/u16-ct-toupper'.
19229         * lib/unicase/u16-ct-toupper.c: New file.
19230         * modules/unicase/u16-ct-toupper: New file.
19231
19232         New module 'unicase/u8-ct-toupper'.
19233         * lib/unicase/u8-ct-toupper.c: New file.
19234         * modules/unicase/u8-ct-toupper: New file.
19235
19236         Add context arguments to u*_casemap functions.
19237         * lib/unicase/unicasemap.h: Include unicase.h.
19238         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
19239         suffix_context arguments.
19240         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
19241         functions.
19242         (FUNC): Add prefix_context and suffix_context arguments. Use
19243         uc_is_cased and uc_is_case_ignorable.
19244         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
19245         * lib/unicase/u16-casemap.c: Likewise.
19246         * lib/unicase/u32-casemap.c: Likewise.
19247         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
19248         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19249         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
19250         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19251         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
19252         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19253
19254         New module 'unicase/u32-suffix-context'.
19255         * lib/unicase/u32-suffix-context.c: New file.
19256         * modules/unicase/u32-suffix-context: New file.
19257
19258         New module 'unicase/u16-suffix-context'.
19259         * lib/unicase/u16-suffix-context.c: New file.
19260         * modules/unicase/u16-suffix-context: New file.
19261
19262         New module 'unicase/u8-suffix-context'.
19263         * lib/unicase/u8-suffix-context.c: New file.
19264         * lib/unicase/u-suffix-context.h: New file.
19265         * modules/unicase/u8-suffix-context: New file.
19266
19267         New module 'unicase/empty-suffix-context'.
19268         * lib/unicase/empty-suffix-context.c: New file.
19269         * modules/unicase/empty-suffix-context: New file.
19270
19271         New module 'unicase/u32-prefix-context'.
19272         * lib/unicase/u32-prefix-context.c: New file.
19273         * modules/unicase/u32-prefix-context: New file.
19274
19275         New module 'unicase/u16-prefix-context'.
19276         * lib/unicase/u16-prefix-context.c: New file.
19277         * modules/unicase/u16-prefix-context: New file.
19278
19279         New module 'unicase/u8-prefix-context'.
19280         * lib/unicase/u8-prefix-context.c: New file.
19281         * lib/unicase/u-prefix-context.h: New file.
19282         * lib/unicase/context.h: New file.
19283         * modules/unicase/u8-prefix-context: New file.
19284
19285         New module 'unicase/empty-prefix-context'.
19286         * lib/unicase/empty-prefix-context.c: New file.
19287         * modules/unicase/empty-prefix-context: New file.
19288
19289         New module 'unicase/ignorable'.
19290         * lib/unicase/ignorable.c: New file.
19291         * modules/unicase/ignorable: New file.
19292
19293         New module 'unicase/cased'.
19294         * lib/unicase/caseprop.h: New file.
19295         * lib/unicase/cased.c: New file.
19296         * modules/unicase/cased: New file.
19297
19298         New functions for case mapping of substrings.
19299         * lib/unicase.h (casing_prefix_context_t): New type.
19300         (unicase_empty_prefix_context): New variable.
19301         (u8_casing_prefix_context, u16_casing_prefix_context,
19302         u32_casing_prefix_context, u8_casing_prefixes_context,
19303         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19304         declarations.
19305         (casing_suffix_context_t): New type.
19306         (unicase_empty_suffix_context): New variable.
19307         (u8_casing_suffix_context, u16_casing_suffix_context,
19308         u32_casing_suffix_context, u8_casing_suffixes_context,
19309         u16_casing_suffixes_context, u32_casing_suffixes_context,
19310         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19311         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19312         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19313         declarations.
19314
19315 2009-06-28  Jim Meyering  <meyering@redhat.com>
19316
19317         boostrap: indent only with spaces
19318         * build-aux/bootstrap: Indent only with spaces, never TABs.
19319
19320         bootstrap: split long lines
19321         * build-aux/bootstrap: Keep line length < 80.
19322
19323         bootstrap: sync from coreutils
19324         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19325         just as autoreconf does.  Verify a list of prerequisite
19326         package-name,version-number pairs if defined in bootstrap.conf.
19327         Refer to README-prereq, if prerequisites are not satisfied.
19328
19329 2009-06-27  Eric Blake  <ebb9@byu.net>
19330
19331         tests: add test for bogus NULL definition
19332         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19333         * tests/test-stdlib.c: Likewise.
19334         * tests/test-string.c: Likewise.
19335         * tests/test-locale.c: Likewise.
19336         * tests/test-unistd.c: Likewise.
19337         * modules/stdio-tests (Depends-on): Add verify.
19338         * modules/stdlib-tests (Depends-on): Likewise.
19339         * modules/string-tests (Depends-on): Likewise.
19340         * modules/locale-tests (Depends-on): Likewise.
19341         * modules/unistd-tests (Depends-on): Likewise.
19342
19343 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19344
19345         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19346         self-explaining comment.
19347         * m4/selinux-selinux-h: Update serial.
19348         (gl_LIBSELINUX): New macro, adding a warning for missing development
19349         packages to code extracted from...
19350         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19351         Add warning for missing development packages here, too.
19352
19353 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19354
19355         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19356
19357 2009-06-25  Eric Blake  <ebb9@byu.net>
19358
19359         version-etc: fix regression
19360         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19361         gcc.
19362         (version_etc): Use it, to catch bugs with trailing NULL.
19363         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19364         (version_etc_va): Fix logic bug.
19365         * modules/version-etc-tests: Add test.
19366         * tests/test-version-etc.c: New file.
19367         * tests/test-version-etc.sh: Likewise.
19368
19369 2009-06-25  Sam Steingold  <sds@gnu.org>
19370
19371         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19372         mbtowc declaration.
19373
19374 2009-06-25  Eric Blake  <ebb9@byu.net>
19375
19376         fpurge: migrate into <stdio.h>
19377         * lib/fpurge.h: Delete...
19378         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19379         * lib/fpurge.c (fpurge): Change declaring header.
19380         * modules/fpurge (Files): Drop deleted file.
19381         (Depends-on): Add stdio.
19382         (configure.ac): Set witness.
19383         * modules/stdio (Makefile.am): Support fpurge macros.
19384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19385         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19386         * lib/fflush.c: Update client.
19387         * tests/test-fpurge.c: Likewise.
19388         * NEWS: Mention the change.
19389
19390 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19391
19392         * lib/argp-version-etc.c (program_authors): Add const
19393         qualifier.
19394         * lib/version-etc.c: Fix typos in the comments.
19395         * modules/argp-version-etc: Depends on version-etc.
19396
19397 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19398
19399         argp-version-etc: new module.
19400
19401         * lib/argp-version-etc.c: New file.
19402         * lib/argp-version-etc.h: New file.
19403         * modules/argp-version-etc: New file.
19404         * modules/argp-version-etc-tests: New file.
19405         * tests/test-argp-version-etc.c: New test.
19406         * tests/test-argp-version-etc-1.sh: New test.
19407
19408 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19409
19410         Provide additional interfaces and documentation for version-etc
19411         module.
19412
19413         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
19414         interfaces.
19415         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
19416         prototypes.
19417
19418 2009-06-24  Bruno Haible  <bruno@clisp.org>
19419
19420         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
19421         HAVE_LIB${NAME} macro.
19422         Reported by Sam Steingold <sds@gnu.org>.
19423
19424 2009-06-23  Simon Josefsson  <simon@josefsson.org>
19425
19426         * modules/hash-tests (test_hash_LDADD): Link to libintl when
19427         needed.
19428
19429 2009-06-21  Bruno Haible  <bruno@clisp.org>
19430
19431         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
19432         work.
19433         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
19434         together with LIB${NAME}, LTLIB${NAME}.
19435         Reported by Sam Steingold <sds@gnu.org>.
19436
19437 2009-06-20  Jim Meyering  <meyering@redhat.com>
19438
19439         tests: make sc_require_test_exit_idiom more generic
19440         * top/maint.mk (Exit_witness_file): New overridable variable.
19441         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
19442         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
19443
19444 2009-06-19  Jim Meyering  <meyering@redhat.com>
19445
19446         hash: reverse order of src/dst parameters in an internal interface
19447         * lib/hash.c (transfer_entries): Reverse order of parameters to
19448         put DST before SRC.  Adjust callers.
19449
19450         tests: test-hash: avoid wholesale duplication
19451         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
19452         Instead, use a loop and add a single conditional.
19453
19454         tests: test-hash: allow seed selection via a command line argument
19455         * tests/test-hash.c (get_seed): New function.
19456         (main): Use it.
19457
19458 2009-06-19  Eric Blake  <ebb9@byu.net>
19459
19460         hash: avoid memory leak on allocation failure
19461         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
19462         failure.  Factor repeated algorithm...
19463         (transfer_entries): ...into new helper routine.
19464         (hash_delete): React to hash_rehash return value.
19465
19466         hash: reduce memory pressure in hash_rehash no-op case
19467         * lib/hash.c (next_prime): Avoid overflow.
19468         (hash_initialize): Factor bucket size computation...
19469         (compute_bucket_size): ...into new helper function.
19470         (hash_rehash): Use new function and open coding to reduce memory
19471         pressure, and avoid a memory leak in USE_OBSTACK code.
19472         Reported by Jim Meyering.
19473
19474 2009-06-18  Eric Blake  <ebb9@byu.net>
19475
19476         hash: make rotation more obvious
19477         * modules/hash (Depends-on): Add bitrotate and stdint.
19478         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
19479         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
19480         (SIZE_MAX): Rely on headers for definition.
19481         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
19482         (raw_hasher): Use rotr_sz.
19483         Suggested by Jim Meyering.
19484
19485         hash: fix memory leak in last patch
19486         * lib/hash.c (hash_rehash): Avoid memory leak.
19487
19488         hash: avoid no-op rehashing
19489         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
19490
19491         hash: provide default callback functions
19492         * lib/hash.c (raw_hasher, raw_comparator): New functions.
19493         (hash_initialize): Use them as defaults.
19494         * tests/test-hash.c (main): Test this.
19495
19496         hash: minor optimization
19497         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
19498         when possible.
19499         (hash_initialize): Document this promise.
19500         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
19501         * tests/test-hash.c (hash_compare_strings): Test this.
19502
19503 2009-06-18  Bruno Haible  <bruno@clisp.org>
19504
19505         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
19506         going to be replaced anyway.
19507
19508 2009-06-18  Bruno Haible  <bruno@clisp.org>
19509
19510         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
19511         in one place.
19512         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
19513         be replaced anyway.
19514
19515 2009-06-18  Eric Blake  <ebb9@byu.net>
19516
19517         hash: check for resize before insertion
19518         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
19519         threshold before insertion, so that a pathological hash_rehash
19520         that fills every bucket can still trigger another rehash.
19521
19522 2009-06-18  Jim Meyering  <meyering@redhat.com>
19523
19524         hash-tests: add a loop around the small tests
19525         * tests/test-hash.c (main): Repeat small tests with selected
19526         small initial table sizes.
19527
19528 2009-06-17  Eric Blake  <ebb9@byu.net>
19529
19530         hash: minor cleanups
19531         * lib/hash.h (hash_entry): Make opaque, by moving...
19532         * lib/hash.c (hash_entry): ...here.
19533         (hash_insert): Clarify restrictions on what can be inserted.
19534         (hash_get_next): Clarify when it is safe to remove an element
19535         during traversal.
19536         (check_tuning): Skip verification when tuning is known safe.
19537         (hash_initialize): Clarify restrictions on tuning.
19538
19539 2009-06-17  Jim Meyering  <jim@meyering.net>
19540         and Eric Blake  <ebb9@byu.net>
19541
19542         hash-tests: new module
19543         * modules/hash-tests: New file.
19544         * tests/test-hash.c: New file.
19545
19546 2009-06-17  Eric Blake  <ebb9@byu.net>
19547
19548         strstr-simple: document new module
19549         * MODULES.html.sh: Document new module.
19550
19551         strstr, strcasestr: replace on platforms with broken memchr
19552         * modules/strstr: Split into...
19553         * modules/strstr-simple: ...new module that does not care about
19554         performance, but does care about glibc bug.
19555         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
19556         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
19557         if platform memchr is broken, per Debian bug 521737.
19558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
19559         memchr.
19560         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
19561         * doc/posix-functions/strstr.texi (strstr): Document the fix.
19562         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19563         * modules/mountlist (Depends-on): Add strstr-simple.
19564         * modules/gen-uni-tables (Depends-on): Likewise.
19565         * modules/argz (Depends-on): Add strstr.
19566
19567 2009-06-17  Bruno Haible  <bruno@clisp.org>
19568
19569         * modules/posix_spawn-internal (Depends-on): Add errno.
19570
19571 2009-06-17  Bruno Haible  <bruno@clisp.org>
19572
19573         Define missing ESTALE on Interix 3.5.
19574         * lib/errno.in.h (ESTALE): Assign a value if missing.
19575         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
19576         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
19577         missing.
19578         * doc/posix-headers/errno.texi: Mention the Interix bug.
19579         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
19580
19581 2009-06-15  Eric Blake  <ebb9@byu.net>
19582
19583         memchr, memchr2: add valgrind exception
19584         * lib/memchr.valgrind: New file.
19585         * lib/memchr2.valgrind: New file.
19586         * modules/memchr (Files): Distribute valgrind file.
19587         * modules/memchr2 (Files): Likewise.
19588
19589         docs: memchr is no longer obsolete
19590         * MODULES.html.sh: Move memchr from obsolete to string.h section.
19591         * lib/string.in.h (memchr): Simplify logic.
19592
19593 2009-06-14  Jim Meyering  <meyering@redhat.com>
19594
19595         link-follow: fix the "checking..." message to not mention trailing slash
19596         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
19597         never considered trailing slashes.
19598
19599 2009-06-14  Bruno Haible  <bruno@clisp.org>
19600
19601         * m4/memchr.m4: Mention also the bug on IA-64.
19602         * doc/posix-functions/memchr.texi: Likewise.
19603
19604 2009-06-12  Eric Blake  <ebb9@byu.net>
19605
19606         memchr: detect broken x86_64 and alpha implementations
19607         * modules/memchr-tests (Depends-on): Move mmap detection...
19608         * modules/memchr (Depends-on): ...here.
19609         (configure.ac): Set indicator.
19610         * lib/string.in.h (memchr): Declare replacement.
19611         * modules/string (Makefile.am): Trigger replacement.
19612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
19613         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
19614         bugs.
19615         * doc/posix-functions/memchr.texi (memchr): Document the bug.
19616         * modules/getpagesize (License): Relax license.
19617
19618 2009-06-11  Bruno Haible  <bruno@clisp.org>
19619
19620         * lib/idpriv.h: Add more references.
19621
19622 2009-06-08  Bruno Haible  <bruno@clisp.org>
19623
19624         Tests for module 'idpriv-droptemp'.
19625         * modules/idpriv-droptemp-tests: New file.
19626         * tests/test-idpriv-droptemp.sh: New file.
19627         * tests/test-idpriv-droptemp.su.sh: New file.
19628         * tests/test-idpriv-droptemp.c: New file.
19629
19630         New module 'idpriv-droptemp'.
19631         * lib/idpriv-droptemp.c: New file.
19632         * modules/idpriv-droptemp: New file.
19633
19634 2009-06-08  Bruno Haible  <bruno@clisp.org>
19635
19636         Tests for module 'idpriv-drop'.
19637         * modules/idpriv-drop-tests: New file.
19638         * tests/test-idpriv-drop.sh: New file.
19639         * tests/test-idpriv-drop.su.sh: New file.
19640         * tests/test-idpriv-drop.c: New file.
19641
19642         New module 'idpriv-drop'.
19643         * lib/idpriv.h: New file.
19644         * lib-idpriv-drop.c: New file.
19645         * m4/idpriv.m4: New file.
19646         * modules/idpriv-drop: New file.
19647
19648 2009-06-08  Bruno Haible  <bruno@clisp.org>
19649
19650         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
19651         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19652         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19653         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19654         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19655         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19656         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19657
19658 2009-06-08  Eric Blake  <ebb9@byu.net>
19659
19660         test-strstr: use memory fence, when possible
19661         * tests/test-strstr.c (main): Use memory fence, in order to be
19662         more likely to trigger Debian bug 521737.
19663         * modules/strstr-tests (Files): Pull in additional files.
19664
19665         memchr: no longer obsolete, for wider field testing
19666         * modules/memchr (Status, Notice): Delete, this module is no
19667         longer obsolete.
19668         * modules/vasnprintf (Depends-on): Add memchr.
19669
19670 2009-06-07  Jim Meyering  <meyering@redhat.com>
19671
19672         hash: declare some functions with the warn_unused_result attribute
19673         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
19674
19675 2009-06-07  Bruno Haible  <bruno@clisp.org>
19676
19677         * tests/test-alignof.c: Don't test int64_t if it does not exist.
19678         Reported by Eric Blake.
19679
19680 2009-06-06  Eric Blake  <ebb9@byu.net>
19681
19682         test-alignof: fix typo with long double
19683         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
19684         compiler error.
19685
19686 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
19687
19688         Escape non-texinfo { and }s.
19689         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
19690         markup error.
19691
19692 2009-06-04  Jim Meyering  <meyering@redhat.com>
19693
19694         gitlog-to-changelog: don't infloop on an empty commit log
19695         * build-aux/gitlog-to-changelog: Warn about an empty log message.
19696         Reported by Boris Petersen <transacid@centerim.org>.
19697
19698 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
19699
19700         version-etc: extend for packagers
19701         Add three new configure options, intended for packagers:
19702           --with-packager="packager name"
19703           --with-packager-version="packager-specific version"
19704           --with-packager-bug-reports="packager bug reporting"
19705         An example with coreutils:
19706           $ ./configure \
19707             --with-packager=Gentoo \
19708             --with-packager-bug-report=http://bugs.gentoo.org/ \
19709             --with-packager-version="patchset 1.6"
19710           $ ./src/ls --version | head -n2
19711           ls (GNU coreutils) 7.1-dirty
19712           Packaged by Gentoo (patchset 1.6)
19713         Note that the bug reporting info via --help doesn't show up because
19714         coreutils uses its own custom emit_bug_reporting_address() implementation
19715         in src/system.h.  If it didn't, it'd look like:
19716           $ ./src/ls --help | tail -n4
19717           Report bugs to <bug-coreutils@gnu.org>.
19718           Report Gentoo bugs to <http://bugs.gentoo.org/>.
19719           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
19720           General help using GNU software: <http://www.gnu.org/gethelp/>.
19721         * lib/version-etc.c: Print new information, if provided.
19722         * m4/version-etc.m4: New file.
19723         * modules/version-etc (Files): Add m4/version-etc.m4.
19724         (configure.ac): Add gl_VERSION_ETC.
19725
19726 2009-05-31  Bruno Haible  <bruno@clisp.org>
19727
19728         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
19729         and 'int64_t'.
19730         * modules/alignof-tests (Dependencies): Add stdint.
19731         Reported by Eric Blake.
19732
19733 2009-05-31  Bruno Haible  <bruno@clisp.org>
19734
19735         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
19736         restriction due to compiler bugs.
19737         Reported by Eric Blake.
19738
19739 2009-05-31  Simon Josefsson  <simon@josefsson.org>
19740             Bruno Haible  <bruno@clisp.org>
19741
19742         Fix test-alignof failure.
19743         * lib/alignof.h (alignof_slot): New macro.
19744         (alignof_type): New macro, with the same semantics as the previous
19745         'alignof'.
19746         (alignof): Alias to alignof_slot.
19747         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
19748         check that the results are usable as constant expressions.
19749
19750 2009-05-31  Bruno Haible  <bruno@clisp.org>
19751
19752         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
19753         * tests/test-memchr.c (main): Check that memchr does not read past the
19754         first occurrence of the byte.
19755         * tests/test-strstr.c (main): Update comment.
19756         Suggested by Eric Blake.
19757
19758 2009-05-30  Bruno Haible  <bruno@clisp.org>
19759
19760         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
19761         detail how to use dumpbin.
19762         Reported by David Byron <dbyron@dbyron.com>.
19763
19764 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19765
19766         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
19767
19768 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19769
19770         * m4/manywarnings.m4: Add GCC 4.4 warnings.
19771
19772 2009-05-28  Bruno Haible  <bruno@clisp.org>
19773
19774         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
19775         build-aux/ files.
19776
19777 2009-05-28  Simon Josefsson  <simon@josefsson.org>
19778
19779         * gnulib-tool (func_import): Transform license on build-aux/ files too.
19780
19781 2009-05-27  Simon Josefsson  <simon@josefsson.org>
19782
19783         * gnulib-tool (sed_transform_main_lib_file)
19784         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
19785         regexps.
19786
19787 2009-05-26  Simon Josefsson  <simon@josefsson.org>
19788
19789         * tests/test-strstr.c: Add another self-test.
19790         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
19791         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
19792
19793 2009-05-23  Bruno Haible  <bruno@clisp.org>
19794
19795         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
19796         change.
19797
19798 2009-05-21  Bruno Haible  <bruno@clisp.org>
19799
19800         Simplify use of mode_t varargs.
19801         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
19802         uses 'mode_t' or 'int'.
19803         * lib/openat.c (openat): Likewise.
19804         * lib/open-safer.c (open_safer): Likewise.
19805         * m4/mode_t.m4: New file.
19806         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
19807         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
19808         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
19809         * modules/open (Files): Add m4/mode_t.m4.
19810         * modules/openat (Files): Likewise.
19811         * modules/fcntl-safer (Files): Likewise.
19812         Suggested by Eric Blake.
19813
19814 2009-05-21  Pádraig Brady  <P@draigbrady.com>
19815
19816         * doc/glibc-functions/fallocate.texi: New file.
19817         * doc/gnulib.texi: Include it.
19818
19819 2009-05-21  Eric Blake  <ebb9@byu.net>
19820             Bruno Haible  <bruno@clisp.org>
19821
19822         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
19823         invocations.
19824         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19825
19826 2009-05-21  Eric Blake  <ebb9@byu.net>
19827             Bruno Haible  <bruno@clisp.org>
19828
19829         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
19830         include_next. Fix of 2008-11-20 commit.
19831         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
19832         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
19833         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
19834         NEXT_MATH_H.
19835         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
19836         instead of NEXT_MATH_H.
19837
19838 2009-05-21  Bruno Haible  <bruno@clisp.org>
19839
19840         Avoid redefinition warnings for SIZE_MAX.
19841         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
19842         Reported by Simon Josefsson.
19843
19844 2009-05-21  Bruno Haible  <bruno@clisp.org>
19845
19846         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
19847         AC_CACHE_VAL.
19848
19849 2009-05-20  Bruno Haible  <bruno@clisp.org>
19850
19851         Make zeroptr.h work on mingw.
19852         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
19853         mprotect.
19854         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
19855         * modules/memchr2-tests (configure.ac): Likewise.
19856         * modules/memcmp-tests (configure.ac): Likewise.
19857         * modules/memmem-tests (configure.ac): Likewise.
19858         * modules/memrchr-tests (configure.ac): Likewise.
19859         Reported by Simon Josefsson.
19860
19861 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19862
19863         * tests/test-glob.c: Include string.h for strcmp prototype.
19864
19865 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19866
19867         * modules/getdelim (Depends-on): Add explicit stdint, although it
19868         was implicitly already pulled in via realloc-posix.
19869         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
19870
19871 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19872
19873         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
19874         G. Christensen" <tgc@jupiterrise.com>.
19875         * m4/sys_socket_h.m4: Check for sa_family_t.
19876         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
19877         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
19878         * tests/test-sys_socket.c: Check that sa_family_t works.
19879
19880 2009-05-18  Eric Blake  <ebb9@byu.net>
19881
19882         maint.mk: allow gnulib_dir in VPATH build
19883         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
19884
19885 2009-05-15  Jim Meyering  <meyering@redhat.com>
19886
19887         maint.mk: Give gnulib_dir a default definition.
19888         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
19889         Thus, most packages no longer need to specify this variable in cfg.mk
19890
19891 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
19892
19893         rename.m4: fix typos that would make non-mingw cross-configure fail
19894         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
19895
19896 2009-05-13  Eric Blake  <ebb9@byu.net>
19897
19898         mmap-anon: avoid out-of-order autoconf expansion
19899         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
19900         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
19901         * modules/memchr-tests (Depends-on): Add extensions.
19902         * modules/memchr2-tests (Depends-on): Add extensions.
19903         * modules/memcmp-tests (Depends-on): Add extensions.
19904         * modules/memmem-tests (Depends-on): Add extensions.
19905         * modules/memrchr-tests (Depends-on): Add extensions.
19906
19907 2009-05-13  Bruno Haible  <bruno@clisp.org>
19908
19909         Make some tests ISO C 99 compliant.
19910         * tests/zerosize-ptr.h: New file.
19911         * tests/test-memchr.c: Include zerosize-ptr.h.
19912         (main): Use a zero-size object pointer instead of NULL.
19913         * tests/test-memchr2.c: Include zerosize-ptr.h.
19914         (main): Use a zero-size object pointer instead of NULL.
19915         * tests/test-memcmp.c: Include zerosize-ptr.h.
19916         (main): Use a zero-size object pointer instead of NULL.
19917         * tests/test-memmem.c: Include zerosize-ptr.h.
19918         (main): Use a zero-size object pointer instead of NULL.
19919         * tests/test-memrchr.c: Include zerosize-ptr.h.
19920         (main): Use a zero-size object pointer instead of NULL.
19921         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
19922         m4/mmap-anon.m4.
19923         (Depends-on): Add getpagesize.
19924         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19925         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
19926         m4/mmap-anon.m4.
19927         (Depends-on): Add getpagesize.
19928         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19929         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
19930         m4/mmap-anon.m4.
19931         (Depends-on): Add getpagesize.
19932         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19933         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
19934         m4/mmap-anon.m4.
19935         (Depends-on): Add getpagesize.
19936         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19937         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
19938         m4/mmap-anon.m4.
19939         (Depends-on): Add getpagesize.
19940         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19941
19942 2009-05-12  Bruno Haible  <bruno@clisp.org>
19943
19944         Tests for module 'alignof'.
19945         * modules/alignof-tests: New file.
19946         * tests/test-alignof.c: New file.
19947
19948 2009-05-12  Bruno Haible  <bruno@clisp.org>
19949
19950         Fix alignof macro.
19951         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
19952         vendor compilers that are always correct.
19953
19954 2009-05-12  Bruno Haible  <bruno@clisp.org>
19955
19956         Make the MAP_ANONYMOUS detection work on HP-UX 11.
19957         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
19958         not whether its fully works.
19959
19960 2009-05-12  Bruno Haible  <bruno@clisp.org>
19961
19962         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
19963
19964 2009-05-12  Jim Meyering  <meyering@redhat.com>
19965
19966         * top/maint.mk: Adjust backslash alignment.
19967
19968 2009-05-11  Simon Josefsson  <simon@josefsson.org>
19969
19970         * top/maint.mk: Make $(srcdir)/build-aux configurable.
19971
19972 2009-05-11  Eric Blake  <ebb9@byu.net>
19973
19974         argp: avoid undefined behavior
19975         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
19976         macros.
19977
19978 2009-05-08  Simon Josefsson  <simon@josefsson.org>
19979
19980         * tests/test-vc-list-files-git.sh: Do git config of user.email and
19981         user.name to prevent git commit from complaining.
19982
19983 2009-05-10  Bruno Haible  <bruno@clisp.org>
19984
19985         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
19986         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
19987         it rewrites every file name only once.
19988         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
19989
19990 2009-05-08  Bruno Haible  <bruno@clisp.org>
19991
19992         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
19993         instead of 'max'.
19994
19995 2009-05-08  Simon Josefsson  <simon@josefsson.org>
19996
19997         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
19998         sockaddr_storage test.
19999
20000 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20001
20002         * modules/sys_socket (Makefile.am): Substitute
20003         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20004         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20005         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20006         * tests/test-sys_socket.c: Check sockaddr_storage.
20007
20008 2009-05-08  Bruno Haible  <bruno@clisp.org>
20009
20010         New module 'alignof'.
20011         * lib/alignof.h: New file.
20012         * modules/alignof: New file.
20013
20014 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20015             Bruno Haible  <bruno@clisp.org>
20016
20017         Fix test-file-has-acl on FreeBSD.
20018         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20019         mask is implicitly added.
20020         * tests/test-file-has-acl.c: Include <signal.h>.
20021         (main): Terminate the test after 5 seconds.
20022         * modules/acl-tests (configure.ac): Check for alarm function.
20023
20024 2009-05-04  Bruno Haible  <bruno@clisp.org>
20025
20026         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20027         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20028         * modules/errno (configure.ac): Drop AC_REQUIRE.
20029         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20030         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20031
20032 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20033
20034         * modules/glob-tests: New module.
20035         * tests/test-glob.c: Add.
20036
20037 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20038
20039         * modules/fnmatch-tests: New module.
20040         * tests/test-fnmatch.c: Add.
20041
20042 2009-05-04  Eric Blake  <ebb9@byu.net>
20043
20044         maint: make the new no-submodule-changes rule VPATH-safe
20045         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20046
20047 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20048             Bruno Haible  <bruno@clisp.org>
20049
20050         acl: Fix infinite loop on FreeBSD.
20051         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20052         of return value from acl_get_entry.
20053         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20054         Likewise.
20055
20056 2009-05-03  Bruno Haible  <bruno@clisp.org>
20057
20058         * lib/acl-internal.h (acl_entries): Clarify return value.
20059         * lib/acl_entries.c (acl_entries): Likewise.
20060
20061 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20062
20063         Bug fix in acl module.
20064         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20065
20066 2009-05-03  Bruno Haible  <bruno@clisp.org>
20067
20068         Create gperf-generated file in the source dir, not in the build dir.
20069         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20070         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20071         * modules/unicase/locale-language (unicase/locale-languages.h):
20072         Likewise.
20073         * modules/unicase/special-casing (unicase/special-casing-table.h):
20074         Likewise.
20075         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20076         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20077         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20078         Reported by Ralf Wildenhues.
20079
20080 2009-05-03  Bruno Haible  <bruno@clisp.org>
20081
20082         * modules/fnmatch (Description, configure.ac): Taken from
20083         fnmatch-posix.
20084         * modules/fnmatch-posix: Turn into a symbolic reference to the
20085         'fnmatch' module, and deprecate.
20086         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20087
20088 2009-05-03  Bruno Haible  <bruno@clisp.org>
20089
20090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20091         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20092         Reported by Ralf Wildenhues.
20093
20094 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20095
20096         * m4/fnmatch.m4: Fix fnmatch re-define.
20097
20098 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20099
20100         priv-set: new module and tests; adapt write-any-file
20101         * lib/priv-set.c: New file.
20102         * lib/priv-set.h: New file.
20103         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20104         * lib/write-any-file.c: Simplify by using priv-set module.
20105         * m4/priv-set.m4: New file.
20106         * modules/priv-set: New file.
20107         * modules/unlinkdir: Add dependency on priv-set module.
20108         * modules/write-any-file: Likewise.
20109
20110         Tests for module 'priv-set'.
20111         * modules/priv-set-tests: New file.
20112         * tests/test-priv-set.c: New file.
20113
20114 2009-05-03  Jim Meyering  <meyering@redhat.com>
20115             Bruno Haible  <bruno@clisp.org>
20116
20117         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20118         use the converted UTF-8 variant of the name instead.
20119
20120 2009-05-03  Jim Meyering  <meyering@redhat.com>
20121
20122         tests: tighten some getdate tests
20123         * tests/test-getdate.c (main): Tighten tests: require equality,
20124         not just greater than.  Set TZ envvar to UTC0.
20125
20126 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20127
20128         getdate: correctly interpret "next monday" when run on a Monday
20129         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20130         that e.g., "next tues" (when run on a tuesday) results in a date
20131         that is one week in the future, and not today's date.
20132         I.e., add a week when the wday is the same as the current one.
20133         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20134         and earlier by Martin Bernreuther and Jan Minář.
20135         * tests/test-getdate.c (main): Check that "next DAY" is always in
20136         the future and that "last DAY" is always in the past.
20137
20138 2009-05-02  Jim Meyering  <meyering@redhat.com>
20139
20140         build: ensure that a release build fails when a submodule is unclean
20141         * top/maint.mk (no-submodule-changes): New rule.
20142         (alpha beta major): Depend on it.
20143
20144 2009-05-02  Bruno Haible  <bruno@clisp.org>
20145
20146         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20147         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20148         shell variable gl_fnmatch_required to detect which variant is
20149         requested.
20150         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20151         gl_FUNC_FNMATCH_POSIX.
20152         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20153         exclude fnmatch-posix.
20154
20155 2009-05-02  Bruno Haible  <bruno@clisp.org>
20156
20157         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20158         * modules/mbsrtowcs (License): Change to LGPLv2+.
20159         * modules/strnlen1 (License): Likewise.
20160         Reported by Simon Josefsson.
20161
20162 2009-05-02  Bruno Haible  <bruno@clisp.org>
20163
20164         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20165         "cross".
20166         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20167         gnulib-tool was called with option --source-base=lib.
20168
20169 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20170
20171         Use automake *-local hooks without commands, for extensibility.
20172         * modules/localcharset (Makefile.am): Rename install-exec-local
20173         rule to install-exec-localcharset, and make it a prerequisite of
20174         install-exec-local.  Likewise, rename the uninstall-local rule to
20175         uninstall-localcharset, and make it a prerequisite of the former.
20176
20177 2009-05-01  Bruno Haible  <bruno@clisp.org>
20178
20179         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20180         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20181         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20183         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20184         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20185         m4/locale-zh.m4, m4/codeset.m4.
20186
20187         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20188         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20189         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20190         m4/locale-zh.m4.
20191
20192         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20193         REPLACE_WCRTOMB if mbstate_t must be replaced.
20194         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20195         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20196
20197 2009-05-01  Bruno Haible  <bruno@clisp.org>
20198
20199         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20200         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20201         dngettext, dcngettext, textdomain, bindtextdomain,
20202         bind_textdomain_codeset): Undefine before redefining.
20203
20204 2009-04-30  Bruno Haible  <bruno@clisp.org>
20205
20206         Fix bug introduced on 2009-04-25.
20207         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20208         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20209         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20210         is defined.
20211         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20212         is defined.
20213         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20214         is defined.
20215         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20216
20217 2009-04-28  Bruno Haible  <bruno@clisp.org>
20218
20219         Comment tweaks.
20220         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20221         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20222         * lib/unicase.h (u*_casexfrm): Likewise.
20223         Reported by Paolo Bonzini.
20224
20225 2009-04-28  Bruno Haible  <bruno@clisp.org>
20226
20227         Fix a compilation error.
20228         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
20229         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20230         Reported by Jim Meyering.
20231
20232 2009-04-27  Bruno Haible  <bruno@clisp.org>
20233
20234         New module 'libunistring'.
20235         * modules/libunistring: New file.
20236         * m4/libunistring.m4: New file.
20237         * MODULES.html.sh (Unicode string functions): Add it.
20238
20239 2009-04-27  Eric Blake  <ebb9@byu.net>
20240
20241         maint.mk: allow package-specific header to provide <config.h>
20242         * top/maint.mk (sc_require_config_h): New variable.
20243         (sc_require_config_h, sc_require_config_h_first): Use it.
20244
20245 2009-04-27  Simon Josefsson  <simon@josefsson.org>
20246
20247         * top/maint.mk (sc_avoid_if_before_free): Except
20248         useless-if-before-free script.
20249
20250 2009-04-27  Eric Blake  <ebb9@byu.net>
20251
20252         maintainer-makefile: depend on all required helper scripts
20253         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
20254         useless-if-before-free.
20255         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
20256         version, rather than assuming gnulib checkout is available.
20257         Reported by Simen Josefsson.
20258
20259 2009-04-26  Bruno Haible  <bruno@clisp.org>
20260
20261         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
20262         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20263         "../" or "..".
20264
20265 2009-04-26  Bruno Haible  <bruno@clisp.org>
20266
20267         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20268         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20269         AC_LIB_HAVE_LINKFLAGS.
20270
20271 2009-04-26  Bruno Haible  <bruno@clisp.org>
20272
20273         Simplify calling convention of u*_conv_from_encoding.
20274         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20275         u32_conv_from_encoding): Expect a resultbuf argument and return the
20276         result directly as a pointer.
20277         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20278         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20279         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20280         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20281         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20282         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20283         Update.
20284         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20285         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20286         * lib/vasnprintf.c (VASNPRINTF): Update.
20287         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20288         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20289         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20290         * NEWS: Mention the change.
20291
20292 2009-04-26  Bruno Haible  <bruno@clisp.org>
20293
20294         Simplify calling convention of u*_conv_to_encoding.
20295         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20296         u32_conv_to_encoding): Expect a resultbuf argument and return the
20297         result directly as a pointer.
20298         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20299         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20300         freeing scaled_offsets if mem_iconveha failed.
20301         * lib/unicase/u-casexfrm.h (FUNC): Update.
20302         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20303         * lib/vasnprintf.c (VASNPRINTF): Update.
20304         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20305         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20306         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20307         * NEWS: Mention the change.
20308
20309 2009-04-26  Bruno Haible  <bruno@clisp.org>
20310
20311         Avoid test failures on AIX and OSF/1.
20312         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20313         malloc(0).
20314         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20315         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20316         Likewise.
20317         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20318         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20319         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20320         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20321         * doc/posix-functions/malloc.texi: Document the portability problem
20322         related to malloc(0).
20323
20324 2009-04-26  Bruno Haible  <bruno@clisp.org>
20325
20326         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20327         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20328         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20329
20330 2009-04-25  Bruno Haible  <bruno@clisp.org>
20331
20332         Avoid link error when creating a namespace clean library.
20333         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20334         as macro with arguments if already defined as an alias.
20335         * lib/signbitf.c (gl_signbitf): Don't undefine.
20336         * lib/signbitd.c (gl_signbitd): Don't undefine.
20337         * lib/signbitl.c (gl_signbitl): Don't undefine.
20338
20339 2009-04-25  Jim Meyering  <meyering@redhat.com>
20340
20341         vc-list-files: fix another quoting bug
20342         * build-aux/vc-list-files: Avoid sed backslash expansion
20343         of pathological directory names.
20344
20345 2009-04-25  Eric Blake  <ebb9@byu.net>
20346
20347         vc-list-files: fix shell quoting error
20348         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20349         timestamp.
20350
20351 2009-04-25  Jim Meyering  <meyering@redhat.com>
20352
20353         vc-list-files: restore lost functionality with subdir argument
20354         * build-aux/vc-list-files: When given a non-"." sub-directory
20355         argument, substitute the $dir/ prefix back onto each resulting name.
20356         Otherwise, coreutils' root_tests check would fail.
20357
20358 2009-04-24  Eric Blake  <ebb9@byu.net>
20359
20360         vc-list-files: ignore git symlinks
20361         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20362         than ls-files, to ignore git symlinks.
20363
20364         maint.mk: import improvements from m4
20365         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20366         (move_if_change): Delete unused macro.
20367         (news-date-check, vc-diff-check): Support VPATH builds.
20368         (announcement): Likewise.  Split --bootstrap-tools list...
20369         (boostrap-tools): ...into separate list, which can be overridden
20370         in cfg.mk.
20371         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20372         requiring dependency on useless-if-before-free module.
20373         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20374         Support VPATH builds.
20375
20376 2009-04-24  Jim Meyering  <meyering@redhat.com>
20377
20378         maint.mk: remove coreutils-specific rules and variables
20379         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20380         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20381         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20382
20383         maint.mk: remove obsolete rule
20384         * top/maint.mk (rel-check): Remove rule.
20385         (WGET, WGETFLAGS): Remove now-unused variables.
20386
20387 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20388
20389         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20390         consistency.
20391
20392         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
20393         '$(PATH_SEPARATOR)' instead of ':'.
20394
20395 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20396
20397         * lib/getopt1.c (main): Use 'const' for static array.
20398
20399 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20400
20401         * top/maint.mk: Sync with coreutils.
20402         * NEWS: Explain incompatibilities.
20403
20404 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20405             Bruno Haible  <bruno@clisp.org>
20406
20407         Fix cross-compilation results.
20408         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
20409         statement, as third argument of AC_TRY_RUN.
20410         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20411         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20412         Likewise.
20413         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20414         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20415         Likewise.
20416         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20417         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
20418         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
20419
20420 2009-04-20  Bruno Haible  <bruno@clisp.org>
20421
20422         Avoid test failure on mingw.
20423         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
20424
20425 2009-04-20  Bruno Haible  <bruno@clisp.org>
20426
20427         Avoid compilation error on mingw.
20428         * modules/localename-tests (Depends-on): Add locale.
20429
20430 2009-04-19  Bruno Haible  <bruno@clisp.org>
20431
20432         Support for building a shared library on Windows platforms.
20433         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
20434         (main): Test the presence of UNINORM_NFC here.
20435         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
20436         (main): Test the presence of UNINORM_NFD here.
20437         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
20438         (main): Test the presence of UNINORM_NFKC here.
20439         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
20440         (main): Test the presence of UNINORM_NFKD here.
20441
20442 2009-04-19  Bruno Haible  <bruno@clisp.org>
20443
20444         Avoid a compiler warning.
20445         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
20446         Change type of variable 'sequence'.
20447
20448 2009-04-19  Bruno Haible  <bruno@clisp.org>
20449
20450         * modules/configmake (Makefile.am): When the contents of configmake.h
20451         does not change, arrange to preserve its modification time.
20452
20453 2009-04-17  Simon Josefsson  <simon@josefsson.org>
20454
20455         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
20456         gettext domain.
20457
20458 2009-04-16  Jim Meyering  <meyering@redhat.com>
20459
20460         useless-if-before-free: improve conversion code
20461         * build-aux/useless-if-before-free: Adjust code-in-comment to match
20462         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
20463
20464 2009-04-14  Bruno Haible  <bruno@clisp.org>
20465
20466         * modules/fcntl (Depends-on): Add extensions.
20467         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
20468
20469 2009-04-12  Ben Pfaff  <blp@gnu.org>
20470
20471         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
20472         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
20473
20474 2009-03-20  Ben Pfaff  <blp@gnu.org>
20475
20476         Make rename replace existing destinations on Windows.
20477         * m4/rename.m4: Add test for Mingw.
20478         * lib/rename.c: Add rename replacement that uses MoveFileEx with
20479         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
20480         * doc/posix-functions/rename.texi: Document.
20481
20482 2009-04-10  Bruno Haible  <bruno@clisp.org>
20483
20484         New include file "iconveh.h".
20485         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
20486         * lib/striconveh.h: Include it.
20487         (enum iconv_ilseq_handler): Remove definition.
20488         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
20489         striconveh.h.
20490         * lib/striconveha.c: Include striconveh.h.
20491         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
20492         * modules/striconveh (Files): Add lib/iconveh.h.
20493         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
20494         lib/striconveh.h.
20495
20496 2009-04-10  Bruno Haible  <bruno@clisp.org>
20497
20498         * lib/uniconv.h: Update comment.
20499
20500 2009-04-10  Bruno Haible  <bruno@clisp.org>
20501
20502         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
20503         always.
20504         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20505         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20506         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20507         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
20508         "unistring-notinline.h", so that the function gets defined always.
20509         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20510         * lib/unistr/u8-uctomb.c: Likewise.
20511         * lib/unistr/u16-mbtouc.c: Likewise.
20512         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20513         * lib/unistr/u16-uctomb.c: Likewise.
20514         * lib/unistr/u32-mbtouc.c: Likewise.
20515         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20516         * lib/unistr/u32-uctomb.c: Likewise.
20517
20518 2009-04-10  Bruno Haible  <bruno@clisp.org>
20519
20520         Mark 'utime' obsolete.
20521         * modules/utime (Status, Notice): New sections.
20522         Suggested by Jim Meyering.
20523
20524         Fix cross-compile guess for utime test.
20525         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
20526         autoconf.
20527         * doc/posix-functions/utime.texi: Give more precisions.
20528         Reported by Jan <ipif@ymail.com>.
20529
20530 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
20531
20532         filevercmp: correct today's change
20533         * lib/filevercmp.c: Also handle coreutils' test inputs.
20534         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
20535
20536         Fix regression in 'filevercmp' module. Thanks Sven Joachim
20537         for reporting it.
20538         * lib/filevercmp.c: Special handle for "", "." and "..".
20539         * tests/test-filevercmp.c: Enlarge the set suite.
20540
20541 2009-04-07  Jim Meyering  <meyering@redhat.com>
20542
20543         useless-if-before-free: show how to remove braced useless free, too
20544         * build-aux/useless-if-before-free: still only in a comment, though.
20545
20546 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
20547
20548         maint.mk: import changes to syntax-check macros from coreutils
20549         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
20550         Use them in the relevant macros.
20551
20552 2009-04-06  Bruno Haible  <bruno@clisp.org>
20553
20554         Fix unportable use of bit-fields.
20555         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
20556         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
20557         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
20558
20559 2009-04-06  Bruno Haible  <bruno@clisp.org>
20560
20561         Avoid test failures on AIX and OSF/1.
20562         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
20563         that malloc(0) = NULL.
20564         * tests/unicase/test-u8-tolower.c (check): Likewise.
20565         * tests/unicase/test-u8-totitle.c (check): Likewise.
20566         * tests/unicase/test-u8-toupper.c (check): Likewise.
20567         * tests/unicase/test-u16-casefold.c (check): Likewise.
20568         * tests/unicase/test-u16-tolower.c (check): Likewise.
20569         * tests/unicase/test-u16-totitle.c (check): Likewise.
20570         * tests/unicase/test-u16-toupper.c (check): Likewise.
20571         * tests/unicase/test-u32-casefold.c (check): Likewise.
20572         * tests/unicase/test-u32-tolower.c (check): Likewise.
20573         * tests/unicase/test-u32-totitle.c (check): Likewise.
20574         * tests/unicase/test-u32-toupper.c (check): Likewise.
20575         * tests/uninorm/test-u8-nfc.c (check): Likewise.
20576         * tests/uninorm/test-u8-nfd.c (check): Likewise.
20577         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
20578         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
20579         * tests/uninorm/test-u16-nfc.c (check): Likewise.
20580         * tests/uninorm/test-u16-nfd.c (check): Likewise.
20581         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
20582         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
20583         * tests/uninorm/test-u32-nfc.c (check): Likewise.
20584         * tests/uninorm/test-u32-nfd.c (check): Likewise.
20585         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
20586         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
20587
20588 2009-04-05  Bruno Haible  <bruno@clisp.org>
20589
20590         Work around an autoconf limitation.
20591         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
20592         comment line if it would be longer than 3 KB.
20593
20594 2009-04-05  Bruno Haible  <bruno@clisp.org>
20595
20596         Avoid test failure with libiconv-1.13.
20597         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
20598         of the expected test results.
20599
20600 2009-04-05  Bruno Haible  <bruno@clisp.org>
20601
20602         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
20603         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
20604         that it should be installed.
20605
20606 2009-04-05  Bruno Haible  <bruno@clisp.org>
20607
20608         * gnulib-tool: New option --copy-file.
20609         (func_usage): Document it.
20610         (func_dest_tmpfilename): Moved out of func_import.
20611         (func_add_file, func_update_file): New functions, extracted from
20612         func_import.
20613         (func_import): Update.
20614
20615 2009-04-05  Karl Berry  <karl@gnu.org>
20616
20617         * README: prominently mention gnulib-tool.
20618         Rearrange sections so getting the code is near the top.
20619
20620 2009-04-05  Bruno Haible  <bruno@clisp.org>
20621
20622         * lib/unicase.h: Mention u*_cmp2.
20623         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20624         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
20625         * lib/unicase/ulc-casecmp.c: Likewise.
20626         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
20627         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
20628         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
20629         unistr/u8-cmp.
20630         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
20631         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
20632         unistr/u16-cmp.
20633         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
20634         unistr/u32-cmp.
20635
20636         * lib/uninorm.h: Mention u*_cmp2.
20637         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20638         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
20639         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
20640         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
20641         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
20642         unistr/u8-cmp.
20643         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
20644         unistr/u16-cmp.
20645         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
20646         unistr/u32-cmp.
20647
20648         New module 'unistr/u32-cmp2'.
20649         * lib/unistr/u32-cmp2.c: New file.
20650         * modules/unistr/u32-cmp2: New file.
20651
20652         New module 'unistr/u16-cmp2'.
20653         * lib/unistr/u16-cmp2.c: New file.
20654         * modules/unistr/u16-cmp2: New file.
20655
20656         New module 'unistr/u8-cmp2'.
20657         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
20658         * lib/unistr/u8-cmp2.c: New file.
20659         * lib/unistr/u-cmp2.h: New file.
20660         * modules/unistr/u8-cmp2: New file.
20661
20662 2009-04-05  Bruno Haible  <bruno@clisp.org>
20663
20664         * lib/unictype.h (uc_property_is_valid): New macro.
20665         * tests/unictype/test-pr_byname.c (main): Use it.
20666
20667         * lib/unistr.h: Doc fixes.
20668         * lib/uniconv.h: Doc fixes.
20669         * lib/unictype.h: Doc fixes.
20670
20671 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
20672
20673         Port coreutils 7.2 to Solaris 8.
20674
20675         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
20676         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
20677         for Solaris 8.  This is a bit of a hack, as it means it's the
20678         caller's responsibility to add -lnsl if needed, but most likely it
20679         won't be needed since only getaddrinfo uses this and getaddrinfo
20680         isn't needed on Solaris 8.
20681
20682         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
20683         problem to Solaris 8 encountered with coreutils 7.2, which
20684         resulted in a message "fnmatch.c:292: warning: passing argument 4
20685         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
20686         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
20687
20688 2009-04-03  Simon Josefsson  <simon@josefsson.org>
20689
20690         * m4/ld-version-script.m4: Add FIXME comment.
20691
20692 2009-04-02  Simon Josefsson  <simon@josefsson.org>
20693
20694         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
20695         SOVERSION variable.
20696
20697 2009-04-02  Bruno Haible  <bruno@clisp.org>
20698
20699         * Makefile (info, html, dvi, pdf): Combine the rules.
20700         Suggested by Jim Meyering.
20701
20702 2009-04-01  Bruno Haible  <bruno@clisp.org>
20703
20704         * Makefile (info, html, dvi, pdf): New targets.
20705         Reported by Reuben Thomas <rrt@sc3d.org>.
20706
20707 2009-04-01  Bruno Haible  <bruno@clisp.org>
20708
20709         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
20710         can be put into PATH.
20711         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
20712
20713 2009-04-01  Bruno Haible  <bruno@clisp.org>
20714
20715         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
20716
20717 2009-04-01  Bruno Haible  <bruno@clisp.org>
20718
20719         Rename module 'visibility'.
20720         * modules/lib-symbol-visibility: Renamed from modules/visibility.
20721         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
20722         * doc/gnulib.texi: Update.
20723         * MODULES.html.sh (Misc): Update.
20724         * NEWS: Mention the change.
20725
20726 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20727
20728         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
20729         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
20730         Eric Blake <ebb9@byu.net> for review.
20731         * MODULES.html.sh: Add lib-msvc-compat.
20732         * doc/gnulib.texi: Link to new section.
20733         * m4/ld-output-def.m4: New file.
20734         * doc/ld-output-def.texi: New file.
20735
20736 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20737
20738         Rename ld-version-script to lib-symbol-versions.  Suggested by
20739         Bruno Haible <bruno@clisp.org>.
20740         * modules/ld-version-script: Renamed to lib-symbol-versions.
20741         * doc/ld-version-script.texi: Fix module name.
20742         * MODULES.html.sh: Add lib-symbol-versions.
20743
20744 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20745
20746         * modules/u64-tests: New file.
20747         * tests/test-u64.c: New file.
20748
20749 2009-03-04  Simon Josefsson  <simon@josefsson.org>
20750
20751         * MODULES.html.sh: Mention u64.
20752         * modules/u64: New module.
20753         * modules/crypto/sha512: Depend on u64 module instead of providing
20754         u64.h.
20755
20756 2009-03-27  Eric Blake  <ebb9@byu.net>
20757
20758         test-strerror: make debugging EAI_SYSTEM easier
20759         * modules/getaddrinfo-tests (Depends-on): Add strerror.
20760         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
20761         failure was EAI_SYSTEM.
20762
20763 2009-03-25  Bruno Haible  <bruno@clisp.org>
20764
20765         Fix a problem with --enable-relocatable on Solaris 7.
20766         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
20767         since 2008-02-24.
20768
20769 2009-03-25  Eric Blake  <ebb9@byu.net>
20770
20771         test-sockets: avoid gcc warning
20772         * tests/test-sockets.c (main): Silence compiler warning.
20773
20774 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
20775
20776         New modules nproc, pthread, contributed by Glen Lenker.
20777
20778         * MODULES.html.sh: Add pthread, nproc.
20779         * lib/nproc.c: New file.
20780         * lib/nproc.h: New file.
20781         * lib/pthread.in.h: New file.
20782         * m4/pthread.m4: New file.
20783         * modules/nproc: New file.
20784         * modules/pthread: New file.
20785
20786 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20787
20788         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
20789         New variable.
20790
20791 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
20792
20793         filevercmp: handle simple~ and numbered.~3~ backup suffixes
20794         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
20795         * tests/test-filevercmp.c: Add tests for backup suffixes.
20796
20797 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20798
20799         * modules/stdlib (Depends-on): Add stdint, needed when defining
20800         struct random_data on, for example, HP-UX 10.20.  Reported by
20801         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20802
20803 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20804
20805         * lib/readline.c (readline): Call fflush on stdout after printing
20806         prompt.
20807
20808 2009-03-20  Bruno Haible  <bruno@clisp.org>
20809
20810         Remove dependency from 'close' module to -lws2_32 on native Windows.
20811         * lib/close-hook.h: New file.
20812         * lib/close-hook.c: New file.
20813         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
20814         w32sock.h.
20815         (_gl_close_fd_maybe_socket): Remove function.
20816         (rpl_close): Invoke execute_all_close_hooks instead of
20817         _gl_close_fd_maybe_socket.
20818         * lib/sockets.c: Include close-hook.h, w32sock.h.
20819         (close_fd_maybe_socket): New function, essentially from lib/close.c.
20820         (close_sockets_hook): New variable.
20821         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
20822         (gl_sockets_cleanup): Unregister it.
20823         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
20824         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
20825         * modules/close-hook: New file.
20826         * modules/close (Files): Remove lib/w32sock.h.
20827         (Depends-on): Add close-hook.
20828         (Link): Remove section.
20829         * modules/sockets (Files): Add lib/w32sock.h.
20830         (Depends-on): Add close-hook.
20831         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
20832         invocation.
20833         * NEWS: Mention that LIB_CLOSE is gone.
20834
20835 2009-03-23  Eric Blake  <ebb9@byu.net>
20836
20837         signal-tests: test previous patch
20838         * tests/test-signal.c: New file.
20839         * modules/signal-tests: Likewise.
20840
20841         signal.h: always support 'volatile sig_atomic_t'
20842         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
20843         (gl_SIGNAL_H_DEFAULTS): Add a default.
20844         * modules/signal (Makefile.am): Substitute if needed.
20845         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
20846         users can blindly add volatile.
20847         * doc/posix-headers/signal.texi (signal.h): Document it.
20848         Reported by Matthew Woehlke.
20849
20850 2009-03-23  Jim Meyering  <meyering@redhat.com>
20851
20852         pathmax: PATH_MAX: use pathconf only when available
20853         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
20854         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
20855         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
20856         This avoids a link failure in a PSP cross-compilation environment
20857         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
20858
20859         * lib/vasnprintf.c (divide): Fix typo in comment.
20860
20861 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20862
20863         * gnulib-tool (func_filter_filelist): Fix comment.
20864
20865 2009-03-20  Bruno Haible  <bruno@clisp.org>
20866
20867         Make sockets.h self-contained.
20868         * lib/sockets.c: Include sockets.h first.
20869         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
20870
20871 2009-03-19  Eric Blake  <ebb9@byu.net>
20872
20873         doc: mention more functions added in cygwin 1.7.0
20874         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
20875         addition.
20876         * doc/posix-functions/log2f.texi: Likewise.
20877
20878 2009-03-19  Jim Meyering  <meyering@redhat.com>
20879
20880         fsusage: avoid syntax error due to statement-before-declaration
20881         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
20882         after all declarations.  Reported by Matthew Woehlke in
20883         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
20884
20885 2009-03-18  Eric Blake  <ebb9@byu.net>
20886
20887         build-aux/compile: sync from automake
20888         * build-aux/compile: New file, from automake.
20889         * config/srclist.txt: Mention build-aux/compile.
20890
20891 2009-03-17  Bruno Haible  <bruno@clisp.org>
20892
20893         * lib/git-merge-changelog.c: Fix typo in comment.
20894         Reported by Reuben Thomas <rrt@sc3d.org>.
20895
20896 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
20897
20898         * m4/regex.m4: update and improve help for
20899         --without-included-regex.
20900
20901 2009-03-17  Simon Josefsson  <simon@josefsson.org>
20902
20903         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
20904         failure on missing include files.
20905
20906 2009-03-17  Eric Blake  <ebb9@byu.net>
20907
20908         doc: mention more functions added in cygwin 1.7.0
20909         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
20910         addition.
20911         * doc/posix-functions/fwscanf.texi: Likewise.
20912         * doc/posix-functions/swprintf.texi: Likewise.
20913         * doc/posix-functions/swscanf.texi: Likewise.
20914         * doc/posix-functions/vfwprintf.texi: Likewise.
20915         * doc/posix-functions/vfwscanf.texi: Likewise.
20916         * doc/posix-functions/vswprintf.texi: Likewise.
20917         * doc/posix-functions/vswscanf.texi: Likewise.
20918         * doc/posix-functions/vwprintf.texi: Likewise.
20919         * doc/posix-functions/vwscanf.texi: Likewise.
20920         * doc/posix-functions/wcscasecmp.texi: Likewise.
20921         * doc/posix-functions/wcsdup.texi: Likewise.
20922         * doc/posix-functions/wcsftime.texi: Likewise.
20923         * doc/posix-functions/wcsncasecmp.texi: Likewise.
20924         * doc/posix-functions/wprintf.texi: Likewise.
20925         * doc/posix-functions/wscanf.texi: Likewise.
20926         * doc/glibc-functions/gethostbyname2.texi: Likewise.
20927
20928 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20929
20930         maint.mk: really add $(AM_MAKEFLAGS)
20931         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
20932         was inadvertently omitted in the last commit.
20933         Spotted by Bruno Haible.
20934
20935         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
20936         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
20937         $(AM_MAKEFLAGS)' rather than plain `make'.
20938
20939         gnulib-tool: execute $MAKE not make
20940         * gnulib-tool: Default $MAKE to 'make'.
20941         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
20942         than make.  Initialize $MAKE in the do-autobuild script.
20943
20944         gnulib-tool: use $MAKE not make in generated files
20945         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
20946         make, in generated files.  Initialize $MAKE in the do-autobuild
20947         script.
20948
20949         * top/GNUmakefile (_have-git-version-gen): Fix typo.
20950
20951         GNUmakefile: disable parallelism only for multiple, recursive targets
20952         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
20953         additions in the Makefile.
20954         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
20955         by Automake.
20956         (.NOTPARALLEL): Only disable parallel builds if multiple targets
20957         are listed on the command line and at least one of them is
20958         listed in $(ALL_RECURSIVE_TARGETS).
20959
20960 2009-03-14  Bruno Haible  <bruno@clisp.org>
20961
20962         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
20963         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
20964         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
20965         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
20966         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
20967         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
20968         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
20969         unistr/u8-uctomb.
20970         * modules/unistr/u8-strchr (Depends-on): Likewise.
20971         * modules/unistr/u8-strrchr (Depends-on): Likewise.
20972         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
20973         unistr/u16-uctomb.
20974         * modules/unistr/u16-strchr (Depends-on): Likewise.
20975         * modules/unistr/u16-strrchr (Depends-on): Likewise.
20976
20977 2009-03-12  Bruno Haible  <bruno@clisp.org>
20978
20979         Work around select() bug on Interix 3.5.
20980         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
20981         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
20982         * m4/select.m4: New file.
20983         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
20984         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
20985         * modules/select (Files): Add m4/select.m4.
20986         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
20987         * modules/nanosleep (Depends-on): Add select.
20988         * modules/poll (Depends-on): Likewise.
20989         * doc/posix-functions/select.texi: Mention the Interix bug.
20990         Reported by Markus Duft <mduft@gentoo.org>.
20991
20992         * lib/select.c: Renamed from lib/winsock-select.c.
20993         * modules/select (Files): Add lib/select.c, remove
20994         lib/winsock-select.c.
20995         (configure.ac): Update.
20996
20997 2009-03-12  Jim Meyering  <meyering@redhat.com>
20998
20999         avoid gcc warnings about unused macro definitions
21000         * lib/readtokens.c (STREQ): Remove unused definition.
21001         * lib/xmalloc.c (SIZE_MAX): Likewise.
21002         * lib/openat-die.c (N_): Likewise.
21003         * lib/mountlist.c (SIZE_MAX): Remove definition.
21004         Instead, include <stdint.h>.
21005         * lib/readutmp.c: Likewise.
21006         * modules/readutmp (Depends-on): Add stdint.
21007         * modules/mountlist (Depends-on): Add stdint.
21008         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21009
21010 2009-03-10  Bruno Haible  <bruno@clisp.org>
21011
21012         Tests for module 'mbmemcasecoll'.
21013         * modules/mbmemcasecoll-tests: New file.
21014         * tests/test-mbmemcasecoll1.sh: New file.
21015         * tests/test-mbmemcasecoll2.sh: New file.
21016         * tests/test-mbmemcasecoll3.sh: New file.
21017         * tests/test-mbmemcasecoll.c: New file.
21018
21019         New module 'mbmemcasecoll'.
21020         * lib/mbmemcasecoll.h: New file.
21021         * lib/mbmemcasecoll.c: New file.
21022         * modules/mbmemcasecoll: New file.
21023
21024         * tests/test-mbmemcasecmp.h: New file, extracted from
21025         tests/test-mbmemcasecmp.c.
21026         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21027         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21028         (main): Update.
21029         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21030
21031 2009-03-09  Bruno Haible  <bruno@clisp.org>
21032
21033         Tests for module 'mbmemcasecmp'.
21034         * modules/mbmemcasecmp-tests: New file.
21035         * tests/test-mbmemcasecmp1.sh: New file.
21036         * tests/test-mbmemcasecmp2.sh: New file.
21037         * tests/test-mbmemcasecmp3.sh: New file.
21038         * tests/test-mbmemcasecmp.c: New file.
21039
21040         New module 'mbmemcasecmp'.
21041         * lib/mbmemcasecmp.h: New file.
21042         * lib/mbmemcasecmp.c: New file.
21043         * modules/mbmemcasecmp: New file.
21044
21045 2009-03-09  Bruno Haible  <bruno@clisp.org>
21046
21047         Tests for module 'unicase/ulc-casecoll'.
21048         * modules/unicase/ulc-casecoll-tests: New file.
21049         * tests/unicase/test-ulc-casecoll1.sh: New file.
21050         * tests/unicase/test-ulc-casecoll2.sh: New file.
21051         * tests/unicase/test-ulc-casecoll.c: New file.
21052
21053         New module 'unicase/ulc-casecoll'.
21054         * lib/unicase.h (ulc_casecoll): New declaration.
21055         * lib/unicase/ulc-casecoll.c: New file.
21056         * modules/unicase/ulc-casecoll: New file.
21057
21058         New module 'unicase/ulc-casexfrm'.
21059         * lib/unicase.h (ulc_casexfrm): New declaration.
21060         * lib/unicase/ulc-casexfrm.c: New file.
21061         * modules/unicase/ulc-casexfrm: New file.
21062
21063 2009-03-09  Bruno Haible  <bruno@clisp.org>
21064
21065         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21066         invocations.
21067
21068         * m4/mbscasecmp.m4: Remove file.
21069         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21070         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21071
21072         * m4/mbscasestr.m4: Remove file.
21073         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21074         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21075
21076         * m4/mbschr.m4: Remove file.
21077         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21078         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21079
21080         * m4/mbscspn.m4: Remove file.
21081         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21082         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21083
21084         * m4/mbslen.m4: Remove file.
21085         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21086         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21087
21088         * m4/mbsncasecmp.m4: Remove file.
21089         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21090         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21091
21092         * m4/mbsnlen.m4: Remove file.
21093         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21094         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21095
21096         * m4/mbspbrk.m4: Remove file.
21097         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21098         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21099
21100         * m4/mbspcasecmp.m4: Remove file.
21101         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21102         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21103
21104         * m4/mbsrchr.m4: Remove file.
21105         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21106         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21107
21108         * m4/mbssep.m4: Remove file.
21109         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21110         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21111
21112         * m4/mbsspn.m4: Remove file.
21113         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21114         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21115
21116         * m4/mbsstr.m4: Remove file.
21117         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21118         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21119
21120         * m4/mbstok_r.m4: Remove file.
21121         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21122         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21123
21124         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21125
21126         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21127         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21128
21129         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21130
21131 2009-03-08  Bruno Haible  <bruno@clisp.org>
21132
21133         Tests for module 'unicase/ulc-casecmp'.
21134         * modules/unicase/ulc-casecmp-tests: New file.
21135         * tests/unicase/test-ulc-casecmp1.sh: New file.
21136         * tests/unicase/test-ulc-casecmp2.sh: New file.
21137         * tests/unicase/test-ulc-casecmp.c: New file.
21138
21139         New module 'unicase/ulc-casecmp'.
21140         * lib/unicase.h (ulc_casecmp): New declaration.
21141         * lib/unicase/ulc-casecmp.c: New file.
21142         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21143         'const SRC_UNIT *'.
21144         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21145         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21146         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21147         * modules/unicase/ulc-casecmp: New file.
21148
21149         Tests for module 'unicase/u32-is-cased'.
21150         * modules/unicase/u32-is-cased-tests: New file.
21151         * tests/unicase/test-u32-is-cased.c: New file.
21152
21153         Tests for module 'unicase/u16-is-cased'.
21154         * modules/unicase/u16-is-cased-tests: New file.
21155         * tests/unicase/test-u16-is-cased.c: New file.
21156
21157         Tests for module 'unicase/u8-is-cased'.
21158         * modules/unicase/u8-is-cased-tests: New file.
21159         * tests/unicase/test-u8-is-cased.c: New file.
21160         * tests/unicase/test-is-cased.h: New file.
21161
21162         New module 'unicase/u32-is-cased'.
21163         * lib/unicase/u32-is-cased.c: New file.
21164         * modules/unicase/u32-is-cased: New file.
21165
21166         New module 'unicase/u16-is-cased'.
21167         * lib/unicase/u16-is-cased.c: New file.
21168         * modules/unicase/u16-is-cased: New file.
21169
21170         New module 'unicase/u8-is-cased'.
21171         * lib/unicase/u8-is-cased.c: New file.
21172         * lib/unicase/u-is-cased.h: New file.
21173         * modules/unicase/u8-is-cased: New file.
21174
21175         Tests for module 'unicase/u32-is-casefolded'.
21176         * modules/unicase/u32-is-casefolded-tests: New file.
21177         * tests/unicase/test-u32-is-casefolded.c: New file.
21178
21179         Tests for module 'unicase/u16-is-casefolded'.
21180         * modules/unicase/u16-is-casefolded-tests: New file.
21181         * tests/unicase/test-u16-is-casefolded.c: New file.
21182
21183         Tests for module 'unicase/u8-is-casefolded'.
21184         * modules/unicase/u8-is-casefolded-tests: New file.
21185         * tests/unicase/test-u8-is-casefolded.c: New file.
21186         * tests/unicase/test-is-casefolded.h: New file.
21187
21188         New module 'unicase/u32-is-casefolded'.
21189         * lib/unicase/u32-is-casefolded.c: New file.
21190         * modules/unicase/u32-is-casefolded: New file.
21191
21192         New module 'unicase/u16-is-casefolded'.
21193         * lib/unicase/u16-is-casefolded.c: New file.
21194         * modules/unicase/u16-is-casefolded: New file.
21195
21196         New module 'unicase/u8-is-casefolded'.
21197         * lib/unicase/u8-is-casefolded.c: New file.
21198         * modules/unicase/u8-is-casefolded: New file.
21199
21200         Tests for module 'unicase/u32-is-titlecase'.
21201         * modules/unicase/u32-is-titlecase-tests: New file.
21202         * tests/unicase/test-u32-is-titlecase.c: New file.
21203
21204         Tests for module 'unicase/u16-is-titlecase'.
21205         * modules/unicase/u16-is-titlecase-tests: New file.
21206         * tests/unicase/test-u16-is-titlecase.c: New file.
21207
21208         Tests for module 'unicase/u8-is-titlecase'.
21209         * modules/unicase/u8-is-titlecase-tests: New file.
21210         * tests/unicase/test-u8-is-titlecase.c: New file.
21211         * tests/unicase/test-is-titlecase.h: New file.
21212
21213         New module 'unicase/u32-is-titlecase'.
21214         * lib/unicase/u32-is-titlecase.c: New file.
21215         * modules/unicase/u32-is-titlecase: New file.
21216
21217         New module 'unicase/u16-is-titlecase'.
21218         * lib/unicase/u16-is-titlecase.c: New file.
21219         * modules/unicase/u16-is-titlecase: New file.
21220
21221         New module 'unicase/u8-is-titlecase'.
21222         * lib/unicase/u8-is-titlecase.c: New file.
21223         * modules/unicase/u8-is-titlecase: New file.
21224
21225         Tests for module 'unicase/u32-is-lowercase'.
21226         * modules/unicase/u32-is-lowercase-tests: New file.
21227         * tests/unicase/test-u32-is-lowercase.c: New file.
21228
21229         Tests for module 'unicase/u16-is-lowercase'.
21230         * modules/unicase/u16-is-lowercase-tests: New file.
21231         * tests/unicase/test-u16-is-lowercase.c: New file.
21232
21233         Tests for module 'unicase/u8-is-lowercase'.
21234         * modules/unicase/u8-is-lowercase-tests: New file.
21235         * tests/unicase/test-u8-is-lowercase.c: New file.
21236         * tests/unicase/test-is-lowercase.h: New file.
21237
21238         New module 'unicase/u32-is-lowercase'.
21239         * lib/unicase/u32-is-lowercase.c: New file.
21240         * modules/unicase/u32-is-lowercase: New file.
21241
21242         New module 'unicase/u16-is-lowercase'.
21243         * lib/unicase/u16-is-lowercase.c: New file.
21244         * modules/unicase/u16-is-lowercase: New file.
21245
21246         New module 'unicase/u8-is-lowercase'.
21247         * lib/unicase/u8-is-lowercase.c: New file.
21248         * modules/unicase/u8-is-lowercase: New file.
21249
21250         Tests for module 'unicase/u32-is-uppercase'.
21251         * modules/unicase/u32-is-uppercase-tests: New file.
21252         * tests/unicase/test-u32-is-uppercase.c: New file.
21253
21254         Tests for module 'unicase/u16-is-uppercase'.
21255         * modules/unicase/u16-is-uppercase-tests: New file.
21256         * tests/unicase/test-u16-is-uppercase.c: New file.
21257
21258         Tests for module 'unicase/u8-is-uppercase'.
21259         * modules/unicase/u8-is-uppercase-tests: New file.
21260         * tests/unicase/test-u8-is-uppercase.c: New file.
21261         * tests/unicase/test-is-uppercase.h: New file.
21262
21263         New module 'unicase/u32-is-uppercase'.
21264         * lib/unicase/u32-is-uppercase.c: New file.
21265         * modules/unicase/u32-is-uppercase: New file.
21266
21267         New module 'unicase/u16-is-uppercase'.
21268         * lib/unicase/u16-is-uppercase.c: New file.
21269         * modules/unicase/u16-is-uppercase: New file.
21270
21271         New module 'unicase/u8-is-uppercase'.
21272         * lib/unicase/u8-is-uppercase.c: New file.
21273         * modules/unicase/u8-is-uppercase: New file.
21274
21275         New module 'unicase/u32-is-invariant'.
21276         * lib/unicase/u32-is-invariant.c: New file.
21277         * modules/unicase/u32-is-invariant: New file.
21278
21279         New module 'unicase/u16-is-invariant'.
21280         * lib/unicase/u16-is-invariant.c: New file.
21281         * modules/unicase/u16-is-invariant: New file.
21282
21283         New module 'unicase/u8-is-invariant'.
21284         * lib/unicase/u8-is-invariant.c: New file.
21285         * lib/unicase/invariant.h: New file.
21286         * lib/unicase/u-is-invariant.h: New file.
21287         * modules/unicase/u8-is-invariant: New file.
21288
21289         Tests for module 'unicase/u32-casecoll'.
21290         * modules/unicase/u32-casecoll-tests: New file.
21291         * tests/unicase/test-u32-casecoll.c: New file.
21292
21293         Tests for module 'unicase/u16-casecoll'.
21294         * modules/unicase/u16-casecoll-tests: New file.
21295         * tests/unicase/test-u16-casecoll.c: New file.
21296
21297         Tests for module 'unicase/u8-casecoll'.
21298         * modules/unicase/u8-casecoll-tests: New file.
21299         * tests/unicase/test-u8-casecoll.c: New file.
21300
21301         New module 'unicase/u32-casecoll'.
21302         * lib/unicase/u32-casecoll.c: New file.
21303         * modules/unicase/u32-casecoll: New file.
21304
21305         New module 'unicase/u16-casecoll'.
21306         * lib/unicase/u16-casecoll.c: New file.
21307         * modules/unicase/u16-casecoll: New file.
21308
21309         New module 'unicase/u8-casecoll'.
21310         * lib/unicase/u8-casecoll.c: New file.
21311         * lib/unicase/u-casecoll.h: New file.
21312         * modules/unicase/u8-casecoll: New file.
21313
21314         New module 'unicase/u32-casexfrm'.
21315         * lib/unicase/u32-casexfrm.c: New file.
21316         * modules/unicase/u32-casexfrm: New file.
21317
21318         New module 'unicase/u16-casexfrm'.
21319         * lib/unicase/u16-casexfrm.c: New file.
21320         * modules/unicase/u16-casexfrm: New file.
21321
21322         New module 'unicase/u8-casexfrm'.
21323         * lib/unicase/u8-casexfrm.c: New file.
21324         * lib/unicase/u-casexfrm.h: New file.
21325         * modules/unicase/u8-casexfrm: New file.
21326
21327         Tests for module 'unicase/u32-casecmp'.
21328         * modules/unicase/u32-casecmp-tests: New file.
21329         * tests/unicase/test-u32-casecmp.c: New file.
21330
21331         Tests for module 'unicase/u16-casecmp'.
21332         * modules/unicase/u16-casecmp-tests: New file.
21333         * tests/unicase/test-u16-casecmp.c: New file.
21334
21335         Tests for module 'unicase/u8-casecmp'.
21336         * modules/unicase/u8-casecmp-tests: New file.
21337         * tests/unicase/test-u8-casecmp.c: New file.
21338         * tests/unicase/test-casecmp.h: New file.
21339
21340         New module 'unicase/u32-casecmp'.
21341         * lib/unicase/u32-casecmp.c: New file.
21342         * modules/unicase/u32-casecmp: New file.
21343
21344         New module 'unicase/u16-casecmp'.
21345         * lib/unicase/u16-casecmp.c: New file.
21346         * modules/unicase/u16-casecmp: New file.
21347
21348         New module 'unicase/u8-casecmp'.
21349         * lib/unicase/u8-casecmp.c: New file.
21350         * lib/unicase/u-casecmp.h: New file.
21351         * modules/unicase/u8-casecmp: New file.
21352
21353         Tests for module 'unicase/u32-casefold'.
21354         * modules/unicase/u32-casefold-tests: New file.
21355         * tests/unicase/test-u32-casefold.c: New file.
21356
21357         Tests for module 'unicase/u16-casefold'.
21358         * modules/unicase/u16-casefold-tests: New file.
21359         * tests/unicase/test-u16-casefold.c: New file.
21360
21361         Tests for module 'unicase/u8-casefold'.
21362         * modules/unicase/u8-casefold-tests: New file.
21363         * tests/unicase/test-u8-casefold.c: New file.
21364
21365         New module 'unicase/u32-casefold'.
21366         * lib/unicase/u32-casefold.c: New file.
21367         * modules/unicase/u32-casefold: New file.
21368
21369         New module 'unicase/u16-casefold'.
21370         * lib/unicase/u16-casefold.c: New file.
21371         * modules/unicase/u16-casefold: New file.
21372
21373         New module 'unicase/u8-casefold'.
21374         * lib/unicase/u8-casefold.c: New file.
21375         * lib/unicase/u-casefold.h: New file.
21376         * modules/unicase/u8-casefold: New file.
21377
21378         New module 'unicase/tocasefold'.
21379         * lib/unicase/casefold.h: New file.
21380         * lib/unicase/tocasefold.c: New file.
21381         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21382         * modules/unicase/tocasefold: New file.
21383
21384         Tests for module 'unicase/u32-totitle'.
21385         * modules/unicase/u32-totitle-tests: New file.
21386         * tests/unicase/test-u32-totitle.c: New file.
21387
21388         Tests for module 'unicase/u16-totitle'.
21389         * modules/unicase/u16-totitle-tests: New file.
21390         * tests/unicase/test-u16-totitle.c: New file.
21391
21392         Tests for module 'unicase/u8-totitle'.
21393         * modules/unicase/u8-totitle-tests: New file.
21394         * tests/unicase/test-u8-totitle.c: New file.
21395
21396         New module 'unicase/u32-totitle'.
21397         * lib/unicase/u32-totitle.c: New file.
21398         * modules/unicase/u32-totitle: New file.
21399
21400         New module 'unicase/u16-totitle'.
21401         * lib/unicase/u16-totitle.c: New file.
21402         * modules/unicase/u16-totitle: New file.
21403
21404         New module 'unicase/u8-totitle'.
21405         * lib/unicase/u8-totitle.c: New file.
21406         * lib/unicase/u-totitle.h: New file.
21407         * modules/unicase/u8-totitle: New file.
21408
21409         Tests for module 'unicase/u32-tolower'.
21410         * modules/unicase/u32-tolower-tests: New file.
21411         * tests/unicase/test-u32-tolower.c: New file.
21412
21413         Tests for module 'unicase/u16-tolower'.
21414         * modules/unicase/u16-tolower-tests: New file.
21415         * tests/unicase/test-u16-tolower.c: New file.
21416
21417         Tests for module 'unicase/u8-tolower'.
21418         * modules/unicase/u8-tolower-tests: New file.
21419         * tests/unicase/test-u8-tolower.c: New file.
21420
21421         New module 'unicase/u32-tolower'.
21422         * lib/unicase/u32-tolower.c: New file.
21423         * modules/unicase/u32-tolower: New file.
21424
21425         New module 'unicase/u16-tolower'.
21426         * lib/unicase/u16-tolower.c: New file.
21427         * modules/unicase/u16-tolower: New file.
21428
21429         New module 'unicase/u8-tolower'.
21430         * lib/unicase/u8-tolower.c: New file.
21431         * modules/unicase/u8-tolower: New file.
21432
21433         Tests for module 'unicase/u32-toupper'.
21434         * modules/unicase/u32-toupper-tests: New file.
21435         * tests/unicase/test-u32-toupper.c: New file.
21436
21437         Tests for module 'unicase/u16-toupper'.
21438         * modules/unicase/u16-toupper-tests: New file.
21439         * tests/unicase/test-u16-toupper.c: New file.
21440
21441         Tests for module 'unicase/u8-toupper'.
21442         * modules/unicase/u8-toupper-tests: New file.
21443         * tests/unicase/test-u8-toupper.c: New file.
21444
21445         New module 'unicase/u32-toupper'.
21446         * lib/unicase/u32-toupper.c: New file.
21447         * modules/unicase/u32-toupper: New file.
21448
21449         New module 'unicase/u16-toupper'.
21450         * lib/unicase/u16-toupper.c: New file.
21451         * modules/unicase/u16-toupper: New file.
21452
21453         New module 'unicase/u8-toupper'.
21454         * lib/unicase/u8-toupper.c: New file.
21455         * modules/unicase/u8-toupper: New file.
21456
21457         New module 'unicase/u32-casemap'.
21458         * lib/unicase/u32-casemap.c: New file.
21459         * modules/unicase/u32-casemap: New file.
21460
21461         New module 'unicase/u16-casemap'.
21462         * lib/unicase/u16-casemap.c: New file.
21463         * modules/unicase/u16-casemap: New file.
21464
21465         New module 'unicase/u8-casemap'.
21466         * lib/unicase/unicasemap.h: New file.
21467         * lib/unicase/u8-casemap.c: New file.
21468         * lib/unicase/u-casemap.h: New file.
21469         * modules/unicase/u8-casemap: New file.
21470
21471         New module 'unicase/special-casing'.
21472         * lib/unicase/special-casing.h: New file.
21473         * lib/unicase/special-casing.c: New file.
21474         * lib/unicase/special-casing-table.gperf: New file, generated by
21475         gen-uni-tables.c.
21476         * modules/unicase/special-casing: New file.
21477
21478         Tests for module 'unicase/locale-language'.
21479         * modules/unicase/locale-language-tests: New file.
21480         * tests/unicase/test-locale-language.sh: New file.
21481         * tests/unicase/test-locale-language.c: New file.
21482
21483         New module 'unicase/locale-language'.
21484         * lib/unicase/locale-language.c: New file.
21485         * lib/unicase/locale-languages.gperf: New file.
21486         * modules/unicase/locale-language: New file.
21487
21488         Generate more tables for case conversion and case folding.
21489         * lib/gen-uni-tables.c (SCC_*): New enum items.
21490         (struct special_casing_rule): New type.
21491         (casing_rules, num_casing_rules, allocated_casing_rules): New
21492         variables.
21493         (add_casing_rule, fill_casing_rules): New functions.
21494         (struct casefold_rule): New type.
21495         (casefolding_rules, num_casefolding_rules,
21496         allocated_casefolding_rules): New variables.
21497         (fill_casefolding_rules): New function.
21498         (unicode_casefold): New variable.
21499         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
21500         sort_casing_rules, output_casing_rules): New functions.
21501         (main): Accept to more arguments: SpecialCasing.txt and
21502         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
21503         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
21504         Output mapping for casefolding.
21505
21506         * lib/unicase.h: Include stdbool.h, uninorm.h.
21507         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
21508         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
21509         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
21510         arguments.
21511         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
21512         resultp arguments.
21513         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
21514         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
21515         resultp arguments.
21516         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
21517         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
21518         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
21519         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
21520         declarations.
21521         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
21522
21523 2009-03-08  Bruno Haible  <bruno@clisp.org>
21524
21525         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21526         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
21527         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
21528         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21529
21530 2009-03-07  Bruno Haible  <bruno@clisp.org>
21531
21532         Adjust u*_normcmp, u*_normcoll API.
21533         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21534         u16_normcoll, u32_normcoll): Change failure conventions.
21535         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
21536         errno and return -1.
21537         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21538
21539 2009-03-07  Bruno Haible  <bruno@clisp.org>
21540
21541         Tests for module 'uninorm/u32-normcoll'.
21542         * modules/uninorm/u32-normcoll-tests: New file.
21543         * tests/uninorm/test-u32-normcoll.c: New file.
21544
21545         Tests for module 'uninorm/u16-normcoll'.
21546         * modules/uninorm/u16-normcoll-tests: New file.
21547         * tests/uninorm/test-u16-normcoll.c: New file.
21548
21549         Tests for module 'uninorm/u8-normcoll'.
21550         * modules/uninorm/u8-normcoll-tests: New file.
21551         * tests/uninorm/test-u8-normcoll.c: New file.
21552
21553 2009-03-07  Bruno Haible  <bruno@clisp.org>
21554
21555         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
21556         tests/uninorm/test-u32-normcmp.c.
21557         * tests/uninorm/test-u32-normcmp.c: Include it.
21558         (test_nonascii): New function, extracted from main. Add some more
21559         tests.
21560         (main): Invoke test_ascii and test_nonascii.
21561         * modules/uninorm/u32-normcmp-tests (Files): Add
21562         tests/uninorm/test-u32-normcmp.h.
21563         (Depends-on): Remove uninorm/u32-normcmp.
21564
21565         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
21566         tests/uninorm/test-u16-normcmp.c.
21567         * tests/uninorm/test-u16-normcmp.c: Include it.
21568         (test_nonascii): New function, extracted from main. Add some more
21569         tests.
21570         (main): Invoke test_ascii and test_nonascii.
21571         * modules/uninorm/u16-normcmp-tests (Files): Add
21572         tests/uninorm/test-u16-normcmp.h.
21573         (Depends-on): Remove uninorm/u16-normcmp.
21574
21575         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
21576         tests/uninorm/test-u8-normcmp.c.
21577         * tests/uninorm/test-u8-normcmp.c: Include it.
21578         (test_nonascii): New function, extracted from main. Add some more
21579         tests.
21580         (main): Invoke test_ascii and test_nonascii.
21581         * modules/uninorm/u8-normcmp-tests (Files): Add
21582         tests/uninorm/test-u8-normcmp.h.
21583         (Depends-on): Remove uninorm/u8-normcmp.
21584
21585 2009-03-07  Bruno Haible  <bruno@clisp.org>
21586
21587         New module 'uninorm/u32-normcoll'.
21588         * lib/uninorm/u32-normcoll.c: New file.
21589         * modules/uninorm/u32-normcoll: New file.
21590
21591         New module 'uninorm/u16-normcoll'.
21592         * lib/uninorm/u16-normcoll.c: New file.
21593         * modules/uninorm/u16-normcoll: New file.
21594
21595         New module 'uninorm/u8-normcoll'.
21596         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
21597         declarations.
21598         * lib/uninorm/u8-normcoll.c: New file.
21599         * lib/uninorm/u-normcoll.h: New file.
21600         * modules/uninorm/u8-normcoll: New file.
21601
21602         New module 'uninorm/u32-normxfrm'.
21603         * lib/uninorm/u32-normxfrm.c: New file.
21604         * modules/uninorm/u32-normxfrm: New file.
21605
21606         New module 'uninorm/u16-normxfrm'.
21607         * lib/uninorm/u16-normxfrm.c: New file.
21608         * modules/uninorm/u16-normxfrm: New file.
21609
21610         New module 'uninorm/u8-normxfrm'.
21611         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
21612         declarations.
21613         * lib/uninorm/u8-normxfrm.c: New file.
21614         * lib/uninorm/u-normxfrm.h: New file.
21615         * modules/uninorm/u8-normxfrm: New file.
21616
21617 2009-03-07  Bruno Haible  <bruno@clisp.org>
21618
21619         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
21620         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
21621         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
21622
21623 2009-03-07  Bruno Haible  <bruno@clisp.org>
21624
21625         New module 'memxfrm'.
21626         * lib/memxfrm.h: New file.
21627         * lib/memxfrm.c: New file.
21628         * modules/memxfrm: New file.
21629
21630 2009-03-07  Bruno Haible  <bruno@clisp.org>
21631
21632         New module 'memcmp2'.
21633         * lib/memcmp2.h: New file.
21634         * lib/memcmp2.c: New file.
21635         * modules/memcmp2: New file.
21636
21637 2009-03-07  Bruno Haible  <bruno@clisp.org>
21638
21639         Tests for module 'uninorm/decomposing-form'.
21640         * modules/uninorm/decomposing-form-tests: New file.
21641         * tests/uninorm/test-decomposing-form.c: New file.
21642
21643         New module 'uninorm/decomposing-form'.
21644         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
21645         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
21646         Add 'decomposing_variant' field.
21647         * lib/uninorm/decomposing-form.c: New file.
21648         * lib/uninorm/nfc.c (uninorm_nfc): Update.
21649         * lib/uninorm/nfd.c (uninorm_nfd): Update.
21650         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
21651         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
21652         * modules/uninorm/decomposing-form: New file.
21653         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
21654         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
21655
21656 2009-03-07  Bruno Haible  <bruno@clisp.org>
21657
21658         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
21659         strings.
21660
21661 2009-03-06  Bruno Haible  <bruno@clisp.org>
21662
21663         Tests for module 'uninorm/u32-normcmp'.
21664         * tests/uninorm/test-u32-normcmp.c: New file.
21665         * modules/uninorm/u32-normcmp-tests: New file.
21666
21667         Tests for module 'uninorm/u16-normcmp'.
21668         * tests/uninorm/test-u16-normcmp.c: New file.
21669         * modules/uninorm/u16-normcmp-tests: New file.
21670
21671         Tests for module 'uninorm/u8-normcmp'.
21672         * tests/uninorm/test-u8-normcmp.c: New file.
21673         * modules/uninorm/u8-normcmp-tests: New file.
21674
21675         New module 'uninorm/u32-normcmp'.
21676         * lib/uninorm/u32-normcmp.c: New file.
21677         * modules/uninorm/u32-normcmp: New file.
21678
21679         New module 'uninorm/u16-normcmp'.
21680         * lib/uninorm/u16-normcmp.c: New file.
21681         * modules/uninorm/u16-normcmp: New file.
21682
21683         New module 'uninorm/u8-normcmp'.
21684         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
21685         declarations.
21686         * lib/uninorm/u8-normcmp.c: New file.
21687         * lib/uninorm/u-normcmp.h: New file.
21688         * modules/uninorm/u8-normcmp: New file.
21689
21690 2009-03-06  Bruno Haible  <bruno@clisp.org>
21691
21692         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
21693         Reported by Eric Blake.
21694
21695 2009-03-06  Eric Blake  <ebb9@byu.net>
21696             Bruno Haible  <bruno@clisp.org>
21697
21698         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
21699         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
21700         condition.
21701         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21702         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
21703         condition.
21704         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21705
21706 2009-03-06  Eric Blake  <ebb9@byu.net>
21707
21708         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
21709         to avoid compiler warnings.
21710         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
21711
21712 2009-03-05  Bruno Haible  <bruno@clisp.org>
21713
21714         * tests/test-ftell.c (main): Disable test beyond end of file on
21715         FreeMiNT.
21716         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21717
21718 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
21719
21720         * lib/filevercmp.c: Move hidden files up in ordering.
21721         * tests/test-filevercmp.c: Add tests for hidden files.
21722
21723 2009-03-04  Bruno Haible  <bruno@clisp.org>
21724
21725         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
21726         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
21727         AM_CFLAGS.
21728         Reported by Simon Josefsson.
21729
21730 2009-03-03  Bruno Haible  <bruno@clisp.org>
21731
21732         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
21733         Reported by Simon Josefsson.
21734
21735         * doc/ld-version-script.texi: Update node reference.
21736
21737 2009-03-03  Bruno Haible  <bruno@clisp.org>
21738
21739         * modules/visibility (License): Change to 'unlimited'.
21740         Suggested by Simon Josefsson.
21741
21742 2009-03-03  Jim Meyering  <meyering@redhat.com>
21743
21744         unlinkdir: cannot_unlink_dir may modify process state
21745         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
21746         it's neither thread-safe nor appropriate for use in a library.
21747
21748 2009-03-03  Eric Blake  <ebb9@byu.net>
21749
21750         test-closein: silence test under Darwin
21751         * tests/test-closein.sh: Ignore stderr from cat, since we don't
21752         care if it dies from EPIPE or EBADF.
21753
21754 2009-03-03  Bruno Haible  <bruno@clisp.org>
21755
21756         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
21757         earlier.
21758         * doc/visibility.texi: Fix @node and @section.
21759
21760 2009-03-03  Simon Josefsson  <simon@josefsson.org>
21761
21762         * doc/gnulib.texi: Link to sections for ld version script and
21763         visibility.
21764         * doc/visibility.texi: Add @node and @section.
21765         * modules/ld-version-script: New module.
21766         * m4/ld-version-script.m4: New file.
21767         * doc/ld-version-script.texi: New file.
21768
21769 2009-03-02  David Lutterkort  <lutter@redhat.com>
21770
21771         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
21772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21773
21774 2009-03-02  Bruno Haible  <bruno@clisp.org>
21775
21776         * doc/visibility.texi: Mention libtool's -export-symbols option.
21777
21778 2009-03-02  Jim Meyering  <meyering@redhat.com>
21779
21780         announce-gen: new option: --no-print-checksums
21781         * build-aux/announce-gen (usage): Describe it.
21782         (print_checksums): Print a newline here, not in the [*] footnote.
21783         (main): Honor it.
21784
21785 2009-03-01  Bruno Haible  <bruno@clisp.org>
21786
21787         Use socklen_t in the native Windows replacements prototypes.
21788         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
21789         instead of 'int'.
21790         * lib/getsockopt.c (rpl_getsockopt): Likewise.
21791         * lib/setsockopt.c (rpl_setsockopt): Likewise.
21792         * modules/getsockopt (Depends-on): Add socklen.
21793         * modules/setsockopt (Depends-on): Add socklen.
21794
21795 2009-03-01  Bruno Haible  <bruno@clisp.org>
21796
21797         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
21798         least 4.2.
21799
21800 2009-03-01  Eric Blake  <ebb9@byu.net>
21801             Bruno Haible  <bruno@clisp.org>
21802
21803         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
21804         error messages.
21805         * lib/wait-process.c (wait_subprocess): Omit error message about
21806         deadly signal sent to the child of termsigp != NULL.
21807
21808 2009-03-01  Eric Blake  <ebb9@byu.net>
21809
21810         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
21811
21812 2009-03-01  Bruno Haible  <bruno@clisp.org>
21813
21814         Avoid a gcc warning.
21815         * tests/test-sched.c (b): Make global.
21816         Reported by Eric Blake.
21817
21818 2009-01-19  Martin Lambers  <marlam@marlam.de>
21819
21820         Provide POSIX semantics for socket timeout options on W32.
21821         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
21822         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
21823         * modules/setsockopt: Depend on sys_time module for struct timeval.
21824         * modules/getsockopt: Depend on sys_time module for struct timeval.
21825
21826 2009-03-01  Simon Josefsson  <simon@josefsson.org>
21827
21828         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
21829         __USE_GNU, for consistency with netdb.in.h.
21830         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21831
21832 2009-03-01  Bruno Haible  <bruno@clisp.org>
21833
21834         More support for FreeMiNT.
21835         * lib/fseeko.c (rpl_fseeko): Complete last commit.
21836         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21837
21838 2009-03-01  Bruno Haible  <bruno@clisp.org>
21839
21840         More support for FreeMiNT.
21841         * lib/fpurge.c (fpurge): Correct last commit.
21842         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21843
21844 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21845
21846         Fix unportable awk script in vc-list-files.
21847         * build-aux/vc-list-files: In the replacement awk script, use
21848         substr with a second argument of 1, not zero.
21849         Report by Simon Josefsson.
21850
21851 2009-02-28  Bruno Haible  <bruno@clisp.org>
21852
21853         More support for FreeMiNT.
21854         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
21855         to FreeMiNT today.
21856         * lib/fwriting.c (fwriting): Likewise.
21857         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
21858
21859 2009-02-28  Bruno Haible  <bruno@clisp.org>
21860
21861         * tests/test-freadseek.c (main): Disable test beyond end of file on
21862         FreeMiNT.
21863         * tests/test-ftello.c (main): Likewise.
21864         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21865
21866 2009-02-28  Bruno Haible  <bruno@clisp.org>
21867
21868         Add tentative support for FreeMiNT.
21869         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
21870         * lib/fpurge.c (fpurge): Likewise.
21871         * lib/freadable.c (freadable): Likewise.
21872         * lib/freading.c (freading): Likewise.
21873         * lib/freadptr.c (freadptr): Likewise.
21874         * lib/freadseek.c (freadptrinc): Likewise.
21875         * lib/fseeko.c (rpl_fseeko): Likewise.
21876         * lib/fseterr.c (fseterr): Likewise.
21877         * lib/fwritable.c (fwritable): Likewise.
21878         * lib/fwriting.c (fwriting): Likewise.
21879         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
21880         Hourihane.
21881         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21882
21883 2009-02-28  Bruno Haible  <bruno@clisp.org>
21884
21885         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
21886         SIGCHLD.
21887         Reported by Jim Meyering.
21888
21889 2009-02-28  Bruno Haible  <bruno@clisp.org>
21890
21891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
21892         Mention the results of these tests on various platforms.
21893         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
21894         order.
21895         * doc/posix-functions/printf.texi: Likewise.
21896         * doc/posix-functions/snprintf.texi: Likewise.
21897         * doc/posix-functions/sprintf.texi: Likewise.
21898         * doc/posix-functions/vfprintf.texi: Likewise.
21899         * doc/posix-functions/vprintf.texi: Likewise.
21900         * doc/posix-functions/vsnprintf.texi: Likewise.
21901         * doc/posix-functions/vsprintf.texi: Likewise.
21902         * doc/glibc-functions/obstack_printf.texi: Likewise.
21903         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21904
21905 2009-02-28  Bruno Haible  <bruno@clisp.org>
21906
21907         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
21908         Reported by Loïc Minier <lool@dooz.org>.
21909
21910 2009-02-27  Bruno Haible  <bruno@clisp.org>
21911
21912         * gnulib-tool (func_import): Make the sed expression used to create the
21913         sed script for updating the .gitignore file POSIX compliant.
21914         Reported by Eric Blake.
21915
21916 2009-02-27  Bruno Haible  <bruno@clisp.org>
21917
21918         * gnulib-tool (sed): Don't alias as "sed --posix".
21919         Reported by Eric Blake.
21920
21921 2009-02-27  Bruno Haible  <bruno@clisp.org>
21922
21923         Avoid test link errors.
21924         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
21925         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
21926         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
21927         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
21928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21929
21930 2009-02-27  Bruno Haible  <bruno@clisp.org>
21931
21932         Avoid spurious "(cached)" in configure output.
21933         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
21934         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
21935         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21936         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21937         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21938         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21939         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21940         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21941         Reported by Eric Blake.
21942
21943 2009-02-27  Eric Blake  <ebb9@byu.net>
21944
21945         printf: fix regression in previous patch
21946         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
21947
21948 2009-02-27  Bruno Haible  <bruno@clisp.org>
21949
21950         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
21951         value.
21952         * lib/stdint.in.h: Likewise.
21953         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
21954
21955 2009-02-27  Eric Blake  <ebb9@byu.net>
21956
21957         doc: mention more functions added in cygwin 1.7.0
21958         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
21959         addition.
21960         * doc/posix-functions/open_wmemstream.texi: Likewise.
21961         * doc/posix-functions/wcsnlen.texi: Likewise.
21962         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21963         * doc/posix-functions/wcstod.texi: Likewise.
21964         * doc/posix-functions/wcstof.texi: Likewise.
21965         * doc/posix-functions/wcstoimax.texi: Likewise.
21966         * doc/posix-functions/wcstok.texi: Likewise.
21967         * doc/posix-functions/wcstoumax.texi: Likewise.
21968
21969         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
21970         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
21971         * doc/posix-functions/fprintf.texi: Update.
21972         * doc/posix-functions/printf.texi: Update.
21973         * doc/posix-functions/snprintf.texi: Update.
21974         * doc/posix-functions/sprintf.texi: Update.
21975         * doc/posix-functions/vfprintf.texi: Update.
21976         * doc/posix-functions/vprintf.texi: Update.
21977         * doc/posix-functions/vsnprintf.texi: Update.
21978         * doc/posix-functions/vsprintf.texi: Update.
21979         * doc/glibc-functions/obstack_printf.texi: Update.
21980         * doc/glibc-functions/obstack_vprintf.texi: Update.
21981
21982 2009-02-26  Eric Blake  <ebb9@byu.net>
21983
21984         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
21985         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
21986         compilation bug by using runtime conversion.
21987         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21988         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
21989         * modules/ceill-tests (Files): Use nan.h.
21990         * modules/floorl-tests (Files): Likewise.
21991         * modules/frexpl-tests (Files): Likewise.
21992         * modules/isnanl-tests (Files): Likewise.
21993         * modules/ldexpl-tests (Files): Likewise.
21994         * modules/roundl-tests (Files): Likewise.
21995         * modules/truncl-tests (Files): Likewise.
21996         * tests/test-ceill.c (main): Use a working NaN.
21997         * tests/test-floorl.c (main): Likewise.
21998         * tests/test-frexpl.c (main): Likewise.
21999         * tests/test-isnan.c (test_long_double): Likewise.
22000         * tests/test-isnanl.h (main): Likewise.
22001         * tests/test-ldexpl.h (main): Likewise.
22002         * tests/test-roundl.h (main): Likewise.
22003         * tests/test-truncl.h (main): Likewise.
22004         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22005
22006 2009-02-26  Eric Blake  <ebb9@byu.net>
22007             Bruno Haible  <bruno@clisp.org>
22008
22009         Work around a *printf bug with %ls on Solaris.
22010         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22011         precision is specified, sprintf stops converting the wide string
22012         argument when the number of bytes that have been produced by this
22013         conversion equals or exceeds the precision.
22014         * doc/posix-functions/fprintf.texi: Update.
22015         * doc/posix-functions/printf.texi: Update.
22016         * doc/posix-functions/snprintf.texi: Update.
22017         * doc/posix-functions/sprintf.texi: Update.
22018         * doc/posix-functions/vfprintf.texi: Update.
22019         * doc/posix-functions/vprintf.texi: Update.
22020         * doc/posix-functions/vsnprintf.texi: Update.
22021         * doc/posix-functions/vsprintf.texi: Update.
22022         * doc/glibc-functions/obstack_printf.texi: Update.
22023         * doc/glibc-functions/obstack_vprintf.texi: Update.
22024
22025 2009-02-26  Eric Blake  <ebb9@byu.net>
22026
22027         stdlib: favor compiler check of random.h
22028         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22029         to avoid an ObjC random.h installed by Swarm.
22030
22031 2009-02-26  Bruno Haible  <bruno@clisp.org>
22032
22033         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22034         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22035         Reported by Gary V. Vaughan <gary@gnu.org>.
22036
22037 2009-02-26  Bruno Haible  <bruno@clisp.org>
22038
22039         Fix *printf behaviour regarding the %ls directive.
22040         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22041         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22042         NEED_PRINTF_DIRECTIVE_LS.
22043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22044         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22045         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22046         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22047         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22048         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22049         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22050         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22051         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22052         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22053         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22054         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22055         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22056         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22058         * doc/posix-functions/fprintf.texi: Update.
22059         * doc/posix-functions/printf.texi: Update.
22060         * doc/posix-functions/snprintf.texi: Update.
22061         * doc/posix-functions/sprintf.texi: Update.
22062         * doc/posix-functions/vfprintf.texi: Update.
22063         * doc/posix-functions/vprintf.texi: Update.
22064         * doc/posix-functions/vsnprintf.texi: Update.
22065         * doc/posix-functions/vsprintf.texi: Update.
22066         * doc/glibc-functions/obstack_printf.texi: Update.
22067         * doc/glibc-functions/obstack_vprintf.texi: Update.
22068         Reported by Eric Blake.
22069
22070 2009-02-25  Bruno Haible  <bruno@clisp.org>
22071
22072         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22073         with known value.
22074         Reported by Gary V. Vaughan <gary@gnu.org>.
22075
22076 2009-02-25  Bruno Haible  <bruno@clisp.org>
22077
22078         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22079         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22080         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22081         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22082         Reported by Gary V. Vaughan <gary@gnu.org>.
22083
22084 2009-02-25  Bruno Haible  <bruno@clisp.org>
22085
22086         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22087         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22088         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22089         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22090         Reported by Gary V. Vaughan <gary@gnu.org>.
22091
22092 2009-02-25  Eric Blake  <ebb9@byu.net>
22093
22094         tests: skip fseek/ftell tests if ungetc is broken
22095         * m4/ungetc.m4: New file.
22096         * modules/fseek-tests: Split test, so ungetc dependency is
22097         separate from rest of test.
22098         * modules/fseeko-tests: Likewise.
22099         * modules/ftell-tests: Likewise.
22100         * modules/ftello-tests: Likewise.
22101         * tests/test-fseek.c (main): Isolate ungetc dependency.
22102         * tests/test-fseeko.c (main): Likewise.
22103         * tests/test-ftell.c (main): Likewise.
22104         * tests/test-ftello.c (main): Likewise.
22105         * tests/test-fseek2.sh: New file.
22106         * tests/test-fseeko2.sh: Likewise.
22107         * tests/test-ftell2.sh: Likewise.
22108         * tests/test-ftello2.sh: Likewise.
22109
22110 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
22111
22112         test-getaddrinfo: fix usage of skip return code 77
22113         * tests/test-gettaddrinfo.c: Return skip code 77 only
22114         for first occurance of skip (4x77 is not 77)
22115
22116 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22117
22118         strtod: avoid C99 decl-after-statement
22119         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22120
22121 2009-02-24  Eric Blake  <ebb9@byu.net>
22122
22123         strtod: detect HP-UX 11.31 bug
22124         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22125         Reported by Gary V. Vaughan.
22126
22127 2009-02-23  Bruno Haible  <bruno@clisp.org>
22128
22129         Fix invalid read past end of memory block.
22130         * lib/vasnprintf.c (DCHAR_SET): Define.
22131         (local_wcslen): Define only when needed.
22132         (local_strnlen, local_wcsnlen): New functions.
22133         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22134         directives that involve a conversion ourselves.
22135         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22136         wcsnlen, mbrtowc, wcrtomb.
22137         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22138         * tests/test-vasprintf-posix.c (test_function): Likewise.
22139         * tests/test-snprintf-posix.h (test_function): Likewise.
22140         * tests/test-sprintf-posix.h (test_function): Likewise.
22141         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22142
22143 2009-02-22  Bruno Haible  <bruno@clisp.org>
22144
22145         Implement new clarified decomposition of Hangul syllables.
22146         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22147         of type LTV, return only a pairwise decomposition.
22148         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22149         Likewise.
22150         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22151         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22152         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22153
22154 2009-02-22  Bruno Haible  <bruno@clisp.org>
22155
22156         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22157         zero-length results and shrink excess allocated memory.
22158         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22159         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22160         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22161         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22162         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22163         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22164         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22165         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22166         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22167         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22168         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22169         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22170
22171 2009-02-21  Bruno Haible  <bruno@clisp.org>
22172
22173         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22174         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22175         spaces after a period. Put a space between a macro name and its
22176         argument list. Trivial rewordings.
22177         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22178         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22179         (main): Return 0 explicitly.
22180
22181 2009-02-21  Bruno Haible  <bruno@clisp.org>
22182
22183         Tests for module 'uninorm/filter'.
22184         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22185         * modules/uninorm/filter-tests: New file.
22186
22187         New module 'uninorm/filter'.
22188         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22189         uninorm_filter_flush, uninorm_filter_free): New declarations.
22190         * lib/uninorm/uninorm-filter.c: New file.
22191         * modules/uninorm/filter: New file.
22192
22193 2009-02-21  Bruno Haible  <bruno@clisp.org>
22194
22195         Tests for module 'uninorm/nfkc'.
22196         * tests/uninorm/test-nfkc.c: New file.
22197         * tests/uninorm/test-u8-nfkc.c: New file.
22198         * tests/uninorm/test-u16-nfkc.c: New file.
22199         * tests/uninorm/test-u32-nfkc.c: New file.
22200         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22201         * tests/uninorm/test-u32-nfkc-big.c: New file.
22202         * modules/uninorm/nfkc-tests: New file.
22203
22204         New module 'uninorm/nfkc'.
22205         * lib/uninorm/nfkc.c: New file.
22206         * modules/uninorm/nfkc: New file.
22207
22208         Tests for module 'uninorm/nfkd'.
22209         * tests/uninorm/test-nfkd.c: New file.
22210         * tests/uninorm/test-u8-nfkd.c: New file.
22211         * tests/uninorm/test-u16-nfkd.c: New file.
22212         * tests/uninorm/test-u32-nfkd.c: New file.
22213         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22214         * tests/uninorm/test-u32-nfkd-big.c: New file.
22215         * modules/uninorm/nfkd-tests: New file.
22216
22217         New module 'uninorm/nfkd'.
22218         * lib/uninorm/nfkd.c: New file.
22219         * modules/uninorm/nfkd: New file.
22220
22221         Tests for module 'uninorm/nfc'.
22222         * tests/uninorm/test-nfc.c: New file.
22223         * tests/uninorm/test-u8-nfc.c: New file.
22224         * tests/uninorm/test-u16-nfc.c: New file.
22225         * tests/uninorm/test-u32-nfc.c: New file.
22226         * tests/uninorm/test-u32-nfc-big.sh: New file.
22227         * tests/uninorm/test-u32-nfc-big.c: New file.
22228         * modules/uninorm/nfc-tests: New file.
22229
22230         New module 'uninorm/nfc'.
22231         * lib/uninorm/nfc.c: New file.
22232         * modules/uninorm/nfc: New file.
22233
22234         Tests for module 'uninorm/nfd'.
22235         * tests/uninorm/test-nfd.c: New file.
22236         * tests/uninorm/test-u8-nfd.c: New file.
22237         * tests/uninorm/test-u16-nfd.c: New file.
22238         * tests/uninorm/test-u32-nfd.c: New file.
22239         * tests/uninorm/test-u32-nfd-big.sh: New file.
22240         * tests/uninorm/test-u32-nfd-big.c: New file.
22241         * tests/uninorm/test-u32-normalize-big.h: New file.
22242         * tests/uninorm/test-u32-normalize-big.c: New file.
22243         * tests/uninorm/NormalizationTest.txt: New file, created from
22244         Unicode 5.1.0 NormalizationTest.txt.
22245         * modules/uninorm/nfd-tests: New file.
22246
22247         New module 'uninorm/nfd'.
22248         * lib/uninorm/nfd.c: New file.
22249         * modules/uninorm/nfd: New file.
22250
22251         New module 'uninorm/u32-normalize'.
22252         * lib/uninorm/u32-normalize.c: New file.
22253         * modules/uninorm/u32-normalize: New file.
22254
22255         New module 'uninorm/u16-normalize'.
22256         * lib/uninorm/u16-normalize.c: New file.
22257         * modules/uninorm/u16-normalize: New file.
22258
22259         New module 'uninorm/u8-normalize'.
22260         * lib/uninorm/u8-normalize.c: New file.
22261         * lib/uninorm/normalize-internal.h: New file.
22262         * lib/uninorm/u-normalize-internal.h: New file.
22263         * modules/uninorm/u8-normalize: New file.
22264
22265         New module 'uninorm/decompose-internal'.
22266         * lib/uninorm/decompose-internal.c: New file.
22267         * modules/uninorm/decompose-internal: New file.
22268
22269         Tests for module 'uninorm/composition'.
22270         * tests/uninorm/test-composition.c: New file.
22271         * modules/uninorm/composition-tests: New file.
22272
22273         New module 'uninorm/composition'.
22274         * lib/uninorm/composition.c: New file.
22275         * lib/uninorm/composition-table.gperf: New file, generated by
22276         gen-uni-tables.
22277         * modules/uninorm/composition: New file.
22278
22279         Tests for module 'uninorm/compat-decomposition'.
22280         * tests/uninorm/test-compat-decomposition.c: New file.
22281         * modules/uninorm/compat-decomposition-tests: New file.
22282
22283         New module 'uninorm/compat-decomposition'.
22284         * lib/uninorm/decompose-internal.h: New file.
22285         * lib/uninorm/compat-decomposition.c: New file.
22286         * modules/uninorm/compat-decomposition: New file.
22287
22288         Tests for module 'uninorm/canonical-decomposition'.
22289         * tests/uninorm/test-canonical-decomposition.c: New file.
22290         * modules/uninorm/canonical-decomposition-tests: New file.
22291
22292         New module 'uninorm/canonical-decomposition'.
22293         * lib/uninorm/canonical-decomposition.c: New file.
22294         * modules/uninorm/canonical-decomposition: New file.
22295
22296         Tests for module 'uninorm/decomposition'.
22297         * tests/uninorm/test-decomposition.c: New file.
22298         * modules/uninorm/decomposition-tests: New file.
22299
22300         New module 'uninorm/decomposition'.
22301         * lib/uninorm/decomposition.c: New file.
22302         * modules/uninorm/decomposition: New file.
22303
22304         New module 'uninorm/decomposition-table'.
22305         * lib/uninorm/decomposition-table.h: New file.
22306         * lib/uninorm/decomposition-table.c: New file.
22307         * lib/uninorm/decomposition-table1.h: New file, generated by
22308         gen-uni-tables.
22309         * lib/uninorm/decomposition-table2.h: New file, generated by
22310         gen-uni-tables.
22311         * modules/uninorm/decomposition-table: New file.
22312
22313         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22314         (UC_DECOMP_*): New enumeration items.
22315         (get_decomposition): New function.
22316         (struct decomp_table): New type.
22317         (output_decomposition, output_decomposition_tables): New functions.
22318         (unicode_composition_exclusions): New variable.
22319         (fill_composition_exclusions, debug_output_composition_tables): New
22320         functions.
22321         (main): Accept one more argument. Invoke fill_composition_exclusions.
22322         Output decomposition and composition tables.
22323
22324         New module 'uninorm/base'.
22325         * lib/uninorm.h: New file.
22326         * lib/unictype.h: Update comment.
22327         * modules/uninorm/base: New file.
22328
22329 2009-02-21  David Lutterkort  <lutter@redhat.com>
22330
22331         Tests for module 'safe-alloc'.
22332         * tests/test-safe-alloc.c: New file.
22333         * modules/safe-alloc-tests: New file.
22334
22335         New module 'safe-alloc'.
22336         * lib/safe-alloc.h: New file.
22337         * lib/safe-alloc.c: New file.
22338         * m4/safe-alloc.m4: New file.
22339         * modules/safe-alloc: New file.
22340         * doc/safe-alloc.texi: New file.
22341         * doc/gnulib.texi: Include it.
22342         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22343         safe-alloc.
22344
22345 2009-02-18  Bruno Haible  <bruno@clisp.org>
22346
22347         Fix link error on non-glibc systems.
22348         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22349         variable.
22350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22351
22352 2009-02-18  Jim Meyering  <meyering@redhat.com>
22353
22354         fts: avoid used-uninitialized error due to recent change
22355         * lib/fts.c (fts_read): Guard uses of the new member,
22356         parent->fts_n_dirs_remaining, since it's not relevant for
22357         the parent of a directory specified on the command-line.
22358
22359 2009-02-17  James Youngman  <jay@gnu.org>
22360             Bruno Haible  <bruno@clisp.org>
22361
22362         * m4/include_next.m4: Reformulate comment.
22363
22364 2009-02-16  Jim Meyering  <meyering@redhat.com>
22365
22366         fts: add #if guards so that the fts_lgpl module still builds
22367         * lib/fts.c: Guard just-added hash-table-using parts with
22368         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22369         Reported by Simon Josefsson.
22370
22371 2009-02-15  Bruno Haible  <bruno@clisp.org>
22372
22373         * modules/array-mergesort-tests: New file.
22374         * tests/test-array-mergesort.c: New file.
22375
22376         New module 'array-mergesort'.
22377         * modules/array-mergesort: New file.
22378         * lib/array-mergesort.h: New file.
22379
22380 2009-02-15  Bruno Haible  <bruno@clisp.org>
22381
22382         Fix 2009-02-07 commit.
22383         * lib/gen-uni-tables.c (output_predicate, output_category,
22384         output_combclass, output_bidi_category, output_decimal_digit,
22385         output_digit, output_numeric, output_mirror, output_scripts,
22386         output_ident_category, output_simple_mapping): Fix format directives.
22387         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22388
22389 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22390
22391         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
22392         fixes are available from IBM.
22393
22394 2009-02-13  Jim Meyering  <meyering@redhat.com>
22395
22396         fts: arrange not to stat non-directories in more cases
22397         This makes GNU find (when it doesn't need to stat each file)
22398         *much* more efficient at traversing reiserfs file systems.
22399         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
22400         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
22401         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
22402         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
22403         (leaf_optimization_applies): New function.
22404         (LCO_hash, LCO_compare): New helper functions.
22405         (link_count_optimize_ok): New function.
22406         (fts_stat): Initialize new member (if dir).
22407         (fts_read): Decrement parent's fts_n_dirs_remaining count if
22408         we've just stat'ed a directory.  Skip the stat call when possible.
22409         ---
22410         Note this AFS-related exchange:
22411         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
22412         and note find's pioctl call in find/fstype.c.
22413         But that is necessary only if you want to enable the
22414         optimization for AFS, and for now, I don't.
22415
22416         fts: move a function definition "up" (no semantic change)
22417         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
22418         "up" to precede upcoming use of a related function.
22419
22420 2009-02-11  Jim Meyering  <meyering@redhat.com>
22421
22422         fts: correct internal computation of nlinks (optimization-related)
22423         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
22424         whether the current entry is a directory, so don't test it.
22425
22426 2009-02-10  Bruno Haible  <bruno@clisp.org>
22427
22428         Tests for module 'uniwbrk/ulc-wordbreaks'.
22429         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
22430         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
22431         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
22432
22433         Tests for module 'uniwbrk/u32-wordbreaks'.
22434         * modules/uniwbrk/u32-wordbreaks-tests: New file.
22435         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
22436
22437         Tests for module 'uniwbrk/u16-wordbreaks'.
22438         * modules/uniwbrk/u16-wordbreaks-tests: New file.
22439         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
22440
22441         Tests for module 'uniwbrk/u8-wordbreaks'.
22442         * modules/uniwbrk/u8-wordbreaks-tests: New file.
22443         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
22444
22445 2009-02-10  Bruno Haible  <bruno@clisp.org>
22446
22447         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
22448         property.
22449         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
22450         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
22451         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
22452
22453 2009-02-10  Simon Josefsson  <simon@josefsson.org>
22454
22455         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
22456         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
22457
22458 2009-02-10  Bruno Haible  <bruno@clisp.org>
22459
22460         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
22461         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
22462         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
22463         * lib/unilbrk/u8-possible-linebreaks.c: Update.
22464         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
22465         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
22466
22467 2009-02-09  Simon Josefsson  <simon@josefsson.org>
22468
22469         * lib/sockets.h (gl_fd_to_handle): New function.
22470
22471         * tests/test-sockets.c: Call gl_fd_to_handle.
22472
22473 2009-02-09  Bruno Haible  <bruno@clisp.org>
22474
22475         * doc/havelib.texi: Document the conventions on bi-arch systems.
22476
22477 2009-02-08  Bruno Haible  <bruno@clisp.org>
22478
22479         Document the AC_LIB_LINKFLAGS macro.
22480         * doc/havelib.texi: New file, mostly written on 2005-05-24.
22481         * doc/gnulib.texi: Include it.
22482
22483 2009-02-08  Bruno Haible  <bruno@clisp.org>
22484
22485         Fix wrong order of sections, compared to TOC.
22486         * doc/gnulib.texi: Include relocatable-maint.texi after the
22487         "Regular expressions" node, not before.
22488
22489 2009-02-08  Bruno Haible  <bruno@clisp.org>
22490
22491         Tests for module 'unicase/totitle'.
22492         * modules/unicase/totitle-tests: New file.
22493
22494         Tests for module 'unicase/tolower'.
22495         * modules/unicase/tolower-tests: New file.
22496
22497         Tests for module 'unicase/toupper'.
22498         * modules/unicase/toupper-tests: New file.
22499         * tests/unicase/test-mapping-part1.h: New file.
22500         * tests/unicase/test-mapping-part2.h: New file.
22501
22502         New module 'unicase/totitle'.
22503         * modules/unicase/totitle: New file.
22504         * lib/unicase/totitle.c: New file.
22505
22506         New module 'unicase/tolower'.
22507         * modules/unicase/tolower: New file.
22508         * lib/unicase/tolower.c: New file.
22509
22510         New module 'unicase/toupper'.
22511         * modules/unicase/toupper: New file.
22512         * lib/unicase/toupper.c: New file.
22513         * lib/unicase/simple-mapping.h: New file.
22514
22515         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
22516         (mapping_table): New structure.
22517         (output_simple_mapping): New function.
22518         (main): Invoke output_simple_mapping_test and output_simple_mapping.
22519         * modules/gen-uni-tables (Description): Update.
22520         * lib/unicase/toupper.h: New file, automatically generated by
22521         gen-uni-tables.
22522         * lib/unicase/tolower.h: New file, automatically generated by
22523         gen-uni-tables.
22524         * lib/unicase/totitle.h: New file, automatically generated by
22525         gen-uni-tables.
22526         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
22527         gen-uni-tables.
22528         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
22529         gen-uni-tables.
22530         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
22531         gen-uni-tables.
22532
22533         New module 'unicase/base'.
22534         * modules/unicase/base: New file.
22535         * lib/unicase.h: New file.
22536
22537 2009-02-08  Bruno Haible  <bruno@clisp.org>
22538
22539         New module 'uniwbrk/ulc-wordbreaks'.
22540         * modules/uniwbrk/ulc-wordbreaks: New file.
22541         * lib/uniwbrk/ulc-wordbreaks.c: New file.
22542
22543         New module 'uniwbrk/u32-wordbreaks'.
22544         * modules/uniwbrk/u32-wordbreaks: New file.
22545         * lib/uniwbrk/u32-wordbreaks.c: New file.
22546
22547         New module 'uniwbrk/u16-wordbreaks'.
22548         * modules/uniwbrk/u16-wordbreaks: New file.
22549         * lib/uniwbrk/u16-wordbreaks.c: New file.
22550
22551         New module 'uniwbrk/u8-wordbreaks'.
22552         * modules/uniwbrk/u8-wordbreaks: New file.
22553         * lib/uniwbrk/u8-wordbreaks.c: New file.
22554         * lib/uniwbrk/u-wordbreaks.h: New file.
22555
22556         New module 'uniwbrk/table'.
22557         * modules/uniwbrk/table: New file.
22558         * lib/uniwbrk/wbrktable.h: New file.
22559         * lib/uniwbrk/wbrktable.c: New file.
22560
22561         New module 'uniwbrk/wordbreak-property'.
22562         * modules/uniwbrk/wordbreak-property: New file.
22563         * lib/uniwbrk/wordbreak-property.c: New file.
22564
22565         * lib/gen-uni-tables.c (WBP_*): New enum items.
22566         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
22567         (unicode_org_wbp): New variable.
22568         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
22569         New functions.
22570         (wbp_table): New structure.
22571         (output_wbp, output_wbrk_tables): New functions.
22572         (main): Accept additional argument. Invoke fill_org_wbp,
22573         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
22574         output_wbrk_tables.
22575         * modules/gen-uni-tables (Description): Update.
22576         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
22577         gen-uni-tables.
22578
22579         New module 'uniwbrk/base'.
22580         * modules/uniwbrk/base: New file.
22581         * lib/uniwbrk.h: New file.
22582
22583 2009-02-08  Bruno Haible  <bruno@clisp.org>
22584
22585         Update to Unicode 5.1.0.
22586         * lib/gen-uni-tables.c (is_property_alphabetic): Include
22587         U+2185..U+2188.
22588         (is_property_default_ignorable_code_point): Don't include characters
22589         of category Cc or Cs and not-a-characters.
22590         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
22591         U+0D79, U+109E, U+109F, U+A60C.
22592         * lib/unictype/bidi_of.h: Regenerated.
22593         * lib/unictype/blocks.h: Regenerated.
22594         * lib/unictype/categ_C.h: Regenerated.
22595         * lib/unictype/categ_Cf.h: Regenerated.
22596         * lib/unictype/categ_Cn.h: Regenerated.
22597         * lib/unictype/categ_L.h: Regenerated.
22598         * lib/unictype/categ_Ll.h: Regenerated.
22599         * lib/unictype/categ_Lm.h: Regenerated.
22600         * lib/unictype/categ_Lo.h: Regenerated.
22601         * lib/unictype/categ_Lu.h: Regenerated.
22602         * lib/unictype/categ_M.h: Regenerated.
22603         * lib/unictype/categ_Mc.h: Regenerated.
22604         * lib/unictype/categ_Me.h: Regenerated.
22605         * lib/unictype/categ_Mn.h: Regenerated.
22606         * lib/unictype/categ_N.h: Regenerated.
22607         * lib/unictype/categ_Nd.h: Regenerated.
22608         * lib/unictype/categ_Nl.h: Regenerated.
22609         * lib/unictype/categ_No.h: Regenerated.
22610         * lib/unictype/categ_P.h: Regenerated.
22611         * lib/unictype/categ_Pd.h: Regenerated.
22612         * lib/unictype/categ_Pe.h: Regenerated.
22613         * lib/unictype/categ_Pf.h: Regenerated.
22614         * lib/unictype/categ_Pi.h: Regenerated.
22615         * lib/unictype/categ_Po.h: Regenerated.
22616         * lib/unictype/categ_Ps.h: Regenerated.
22617         * lib/unictype/categ_S.h: Regenerated.
22618         * lib/unictype/categ_Sk.h: Regenerated.
22619         * lib/unictype/categ_Sm.h: Regenerated.
22620         * lib/unictype/categ_So.h: Regenerated.
22621         * lib/unictype/categ_of.h: Regenerated.
22622         * lib/unictype/combining.h: Regenerated.
22623         * lib/unictype/ctype_alnum.h: Regenerated.
22624         * lib/unictype/ctype_alpha.h: Regenerated.
22625         * lib/unictype/ctype_graph.h: Regenerated.
22626         * lib/unictype/ctype_lower.h: Regenerated.
22627         * lib/unictype/ctype_print.h: Regenerated.
22628         * lib/unictype/ctype_punct.h: Regenerated.
22629         * lib/unictype/ctype_upper.h: Regenerated.
22630         * lib/unictype/decdigit.h: Regenerated.
22631         * lib/unictype/digit.h: Regenerated.
22632         * lib/unictype/mirror.h: Regenerated.
22633         * lib/unictype/numeric.h: Regenerated.
22634         * lib/unictype/pr_alphabetic.h: Regenerated.
22635         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
22636         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
22637         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
22638         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
22639         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
22640         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
22641         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
22642         * lib/unictype/pr_combining.h: Regenerated.
22643         * lib/unictype/pr_dash.h: Regenerated.
22644         * lib/unictype/pr_decimal_digit.h: Regenerated.
22645         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
22646         * lib/unictype/pr_deprecated.h: Regenerated.
22647         * lib/unictype/pr_diacritic.h: Regenerated.
22648         * lib/unictype/pr_extender.h: Regenerated.
22649         * lib/unictype/pr_format_control.h: Regenerated.
22650         * lib/unictype/pr_grapheme_base.h: Regenerated.
22651         * lib/unictype/pr_grapheme_extend.h: Regenerated.
22652         * lib/unictype/pr_grapheme_link.h: Regenerated.
22653         * lib/unictype/pr_id_continue.h: Regenerated.
22654         * lib/unictype/pr_id_start.h: Regenerated.
22655         * lib/unictype/pr_ideographic.h: Regenerated.
22656         * lib/unictype/pr_ignorable_control.h: Regenerated.
22657         * lib/unictype/pr_lowercase.h: Regenerated.
22658         * lib/unictype/pr_math.h: Regenerated.
22659         * lib/unictype/pr_numeric.h: Regenerated.
22660         * lib/unictype/pr_other_alphabetic.h: Regenerated.
22661         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
22662         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
22663         * lib/unictype/pr_other_id_continue.h: Regenerated.
22664         * lib/unictype/pr_other_lowercase.h: Regenerated.
22665         * lib/unictype/pr_other_math.h: Regenerated.
22666         * lib/unictype/pr_punctuation.h: Regenerated.
22667         * lib/unictype/pr_sentence_terminal.h: Regenerated.
22668         * lib/unictype/pr_soft_dotted.h: Regenerated.
22669         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
22670         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
22671         * lib/unictype/pr_unified_ideograph.h: Regenerated.
22672         * lib/unictype/pr_uppercase.h: Regenerated.
22673         * lib/unictype/pr_xid_continue.h: Regenerated.
22674         * lib/unictype/pr_xid_start.h: Regenerated.
22675         * lib/unictype/pr_zero_width.h: Regenerated.
22676         * lib/unictype/scripts.h: Regenerated.
22677         * lib/unictype/scripts_byname.gperf: Regenerated.
22678         * lib/unictype/sy_java_ident.h: Regenerated.
22679         * lib/unilbrk/lbrkprop1.h: Regenerated.
22680         * lib/unilbrk/lbrkprop2.h: Regenerated.
22681         * tests/unictype/test-categ_C.c: Regenerated.
22682         * tests/unictype/test-categ_Cf.c: Regenerated.
22683         * tests/unictype/test-categ_Cn.c: Regenerated.
22684         * tests/unictype/test-categ_L.c: Regenerated.
22685         * tests/unictype/test-categ_Ll.c: Regenerated.
22686         * tests/unictype/test-categ_Lm.c: Regenerated.
22687         * tests/unictype/test-categ_Lo.c: Regenerated.
22688         * tests/unictype/test-categ_Lu.c: Regenerated.
22689         * tests/unictype/test-categ_M.c: Regenerated.
22690         * tests/unictype/test-categ_Mc.c: Regenerated.
22691         * tests/unictype/test-categ_Me.c: Regenerated.
22692         * tests/unictype/test-categ_Mn.c: Regenerated.
22693         * tests/unictype/test-categ_N.c: Regenerated.
22694         * tests/unictype/test-categ_Nd.c: Regenerated.
22695         * tests/unictype/test-categ_Nl.c: Regenerated.
22696         * tests/unictype/test-categ_No.c: Regenerated.
22697         * tests/unictype/test-categ_P.c: Regenerated.
22698         * tests/unictype/test-categ_Pd.c: Regenerated.
22699         * tests/unictype/test-categ_Pe.c: Regenerated.
22700         * tests/unictype/test-categ_Pf.c: Regenerated.
22701         * tests/unictype/test-categ_Pi.c: Regenerated.
22702         * tests/unictype/test-categ_Po.c: Regenerated.
22703         * tests/unictype/test-categ_Ps.c: Regenerated.
22704         * tests/unictype/test-categ_S.c: Regenerated.
22705         * tests/unictype/test-categ_Sk.c: Regenerated.
22706         * tests/unictype/test-categ_Sm.c: Regenerated.
22707         * tests/unictype/test-categ_So.c: Regenerated.
22708         * tests/unictype/test-ctype_alnum.c: Regenerated.
22709         * tests/unictype/test-ctype_alpha.c: Regenerated.
22710         * tests/unictype/test-ctype_graph.c: Regenerated.
22711         * tests/unictype/test-ctype_lower.c: Regenerated.
22712         * tests/unictype/test-ctype_print.c: Regenerated.
22713         * tests/unictype/test-ctype_punct.c: Regenerated.
22714         * tests/unictype/test-ctype_upper.c: Regenerated.
22715         * tests/unictype/test-decdigit.h: Regenerated.
22716         * tests/unictype/test-digit.h: Regenerated.
22717         * tests/unictype/test-numeric.h: Regenerated.
22718         * tests/unictype/test-pr_alphabetic.c: Regenerated.
22719         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
22720         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
22721         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
22722         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
22723         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
22724         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
22725         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
22726         * tests/unictype/test-pr_combining.c: Regenerated.
22727         * tests/unictype/test-pr_dash.c: Regenerated.
22728         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
22729         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
22730         * tests/unictype/test-pr_deprecated.c: Regenerated.
22731         * tests/unictype/test-pr_diacritic.c: Regenerated.
22732         * tests/unictype/test-pr_extender.c: Regenerated.
22733         * tests/unictype/test-pr_format_control.c: Regenerated.
22734         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
22735         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
22736         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
22737         * tests/unictype/test-pr_id_continue.c: Regenerated.
22738         * tests/unictype/test-pr_id_start.c: Regenerated.
22739         * tests/unictype/test-pr_ideographic.c: Regenerated.
22740         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
22741         * tests/unictype/test-pr_lowercase.c: Regenerated.
22742         * tests/unictype/test-pr_math.c: Regenerated.
22743         * tests/unictype/test-pr_numeric.c: Regenerated.
22744         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
22745         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
22746         Regenerated.
22747         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
22748         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
22749         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
22750         * tests/unictype/test-pr_other_math.c: Regenerated.
22751         * tests/unictype/test-pr_punctuation.c: Regenerated.
22752         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
22753         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
22754         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
22755         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
22756         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
22757         * tests/unictype/test-pr_uppercase.c: Regenerated.
22758         * tests/unictype/test-pr_xid_continue.c: Regenerated.
22759         * tests/unictype/test-pr_xid_start.c: Regenerated.
22760         * tests/unictype/test-pr_zero_width.c: Regenerated.
22761
22762         Update to Unicode 5.1.0.
22763         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
22764         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
22765         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
22766         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
22767         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
22768         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
22769         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
22770         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
22771         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
22772         (nonspacing_table_ind): Update.
22773         * tests/uniwidth/test-uc_width2.sh: Update expected result.
22774
22775         Update to Unicode 5.1.0.
22776         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
22777         code transform.
22778         * lib/uniname/uniname.c (unicode_character_name,
22779         unicode_name_character): Add the range 0x1Fxxx to the code transform.
22780         * lib/uniname/uninames.h: Regenerated.
22781         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
22782
22783 2009-02-07  Bruno Haible  <bruno@clisp.org>
22784
22785         Merge gen-ctype and gen-lbrk into a single program.
22786         * lib/gen-uni-tables.c: New file, incorporating
22787         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
22788         Add directory prefixes to the names of the generated files.
22789         * lib/unictype/gen-ctype.c: Remove file.
22790         * lib/unilbrk/gen-lbrk.c: Remove file.
22791         * modules/gen-uni-tables: New file.
22792         * modules/unictype/gen-ctype: Remove file.
22793         * modules/unilbrk/gen-lbrk: Remove file.
22794
22795 2009-02-07  Bruno Haible  <bruno@clisp.org>
22796
22797         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
22798
22799         New module 'unistr/u32-strcoll'.
22800         * modules/unistr/u32-strcoll: New file.
22801         * lib/unistr/u32-strcoll.c: New file.
22802
22803         New module 'unistr/u16-strcoll'.
22804         * modules/unistr/u16-strcoll: New file.
22805         * lib/unistr/u16-strcoll.c: New file.
22806
22807         New module 'unistr/u8-strcoll'.
22808         * modules/unistr/u8-strcoll: New file.
22809         * lib/unistr/u8-strcoll.c: New file.
22810         * lib/unistr/u-strcoll.h: New file.
22811
22812 2009-02-07  Bruno Haible  <bruno@clisp.org>
22813
22814         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
22815         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
22816         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
22817         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
22818         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
22819         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
22820
22821 2009-02-07  Bruno Haible  <bruno@clisp.org>
22822
22823         Make 64-bit clean.
22824         * lib/unictype/gen-ctype.c (output_predicate, output_category,
22825         output_combclass, output_bidi_category, output_decimal_digit,
22826         output_digit, output_numeric, output_mirror, output_scripts,
22827         output_ident_category): Use proper width specifier in format strings.
22828
22829 2009-02-07  Bruno Haible  <bruno@clisp.org>
22830
22831         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
22832         failure behaviour.
22833
22834 2009-02-07  Jim Meyering  <meyering@redhat.com>
22835
22836         regex: avoid compilation failure with upcoming gcc-4.4
22837         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
22838         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
22839         "... error: integer overflow in preprocessor expression".
22840
22841 2009-02-05  Ben Pfaff  <blp@gnu.org>
22842
22843         Fix link errors on Windows when close module is used.
22844         * modules/close: Add $(LIB_CLOSE) to Link section.
22845         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
22846         $(LIB_CLOSE) on Windows.
22847
22848 2009-02-05  Jim Meyering  <meyering@redhat.com>
22849
22850         still avoid unused-parameter warnings, but do it cleanly
22851         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
22852         (get_fs_usage): Cast to void instead.
22853         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
22854         (dev_from_mount_options, read_file_system_list): Cast to void.
22855         Prompted by Bruno Haible.
22856
22857 2009-02-04  Jim Meyering  <meyering@redhat.com>
22858
22859         fsusage.c: correct copyright year
22860         * lib/fsusage.c: Reflect year in which the change is pushed into
22861
22862         avoid misc. warnings
22863         * lib/fsusage.c (UNUSED_PARAM): Define.
22864         (get_fs_usage): Mark parameter "disk" as unused.
22865         * lib/getugroups.c (getgrent): Use "void" in prototype.
22866         * lib/mountlist.c: Mark unused parameters.
22867         (read_file_system_list): Declare a local with "const".
22868         * lib/nanosleep.c (getnow): Declare static.
22869         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
22870
22871         dirfd: set errno upon failure
22872         * lib/dirfd.c: Include <errno.h>.
22873         Set errno to ENOTSUP when returning -1.
22874         * modules/dirfd (Depends-on): Add errno.
22875         Suggested by John Kodis <kodis@comcast.net>.
22876
22877 2009-02-01  Bruno Haible  <bruno@clisp.org>
22878
22879         Don't assume sizeof (long) >= sizeof (void *).
22880         * lib/memcmp.c: Include stdint.h.
22881         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
22882         srcp2 to 'const byte *'.
22883         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
22884         types to uintptr_t.
22885         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
22886         * modules/memcmp (Depends-on): Add stdint.
22887         Reported by Ozkan Sezer <sezeroz@gmail.com>.
22888
22889 2009-01-30  Eric Blake  <ebb9@byu.net>
22890
22891         fix more require-before-expand issues
22892         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
22893         expand, AC_PROG_AWK.
22894         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
22895
22896 2009-01-28  Eric Blake  <ebb9@byu.net>
22897
22898         version-etc: use consistent URL formatting
22899         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
22900         Improve formatting.  Use fputs for string without %.
22901
22902 2009-01-28  Jim Meyering  <meyering@redhat.com>
22903
22904         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
22905         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
22906         "underquoted definition of NAME" from autoconf-2.59.
22907
22908 2009-01-28  Bruno Haible  <bruno@clisp.org>
22909
22910         * doc/gnulib.texi: Add "Obsolete modules" to index.
22911
22912 2009-01-28  Jim Meyering  <meyering@redhat.com>
22913
22914         useless-if-before-free: recognize more variants
22915         * build-aux/useless-if-before-free: Also recognize e.g.,
22916         if (NULL != p) free (p);
22917
22918 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
22919
22920         test-getaddrinfo: skip (don't fail) this test when there's no network
22921         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
22922         on the presumption that it means you lack network access.
22923
22924 2009-01-26  Jim Meyering  <meyering@redhat.com>
22925
22926         fflush: avoid warnings on modern systems
22927         * lib/fflush.c (rpl_fflush): Move declarations of locals,
22928         pos and result, into scopes where they're used.
22929
22930 2009-01-26  Eric Blake  <ebb9@byu.net>
22931
22932         Silence warning reintroduced by recent extensions patch.
22933         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
22934         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
22935         autoconf.
22936
22937         Backport improved autoconf semantics of AC_DEFUN_ONCE.
22938         * m4/00gnulib.m4: New file.
22939         * gnulib-tool (func_get_filelist): Always use it.
22940         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
22941         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
22942
22943 2009-01-25  Bruno Haible  <bruno@clisp.org>
22944
22945         Make test-quotearg work on MacOS X and AIX.
22946         * tests/test-quotearg.sh: New file.
22947         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
22948         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
22949         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
22950         include <libintl.h>.
22951         (fake_locale): Remove variable.
22952         (gettext, dgettext, dcgettext): Remove functions.
22953         (main): Instead of setting a fake locale, set a real locale. Call
22954         textdomain and bindtextdomain.
22955         * modules/quotearg-tests (Files): Add the new files.
22956         (Depends-on): Add gettext, setenv, unsetenv.
22957         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22958         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
22959         Augment TESTS_ENVIRONMENT.
22960
22961 2009-01-25  Bruno Haible  <bruno@clisp.org>
22962
22963         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
22964         fr_FR.ISO8859-1 locale on MacOS X.
22965         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
22966         ja_JP.eucJP locale on MacOS X.
22967         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
22968         zh_CN.GB18030 locale on MacOS X.
22969
22970 2009-01-25  Bruno Haible  <bruno@clisp.org>
22971
22972         Avoid link errors on MacOS X 10.3.
22973         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
22974         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
22975
22976 2009-01-25  Bruno Haible  <bruno@clisp.org>
22977
22978         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
22979         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
22980         * modules/pipe (Files): Remove m4/posix_spawn.m4.
22981         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
22982         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
22983         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
22984         posix_spawnattr_init, posix_spawnattr_setsigmask,
22985         posix_spawnattr_setflags, posix_spawnattr_destroy.
22986
22987         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
22988         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
22989         * modules/execute (Files): Remove m4/posix_spawn.m4.
22990         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
22991         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
22992         posix_spawnattr_init, posix_spawnattr_setsigmask,
22993         posix_spawnattr_setflags, posix_spawnattr_destroy.
22994
22995 2009-01-25  Bruno Haible  <bruno@clisp.org>
22996
22997         * lib/glthread/threadlib.c: Include <stdlib.h>.
22998
22999 2009-01-25  Bruno Haible  <bruno@clisp.org>
23000
23001         * lib/glthread/threadlib.c (dummy): New declaration.
23002
23003 2009-01-25  Bruno Haible  <bruno@clisp.org>
23004
23005         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23006         multibyte characters also for the GB18030 encoding. Don't crash when
23007         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23008
23009 2009-01-25  Bruno Haible  <bruno@clisp.org>
23010
23011         Avoid redefining 'struct random_data' on OSF/1 5.1.
23012         * lib/stdlib.in.h: Include <random.h> if it exists.
23013         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23014         HAVE_RANDOM_H. Include <random.h> when testing whether
23015         'struct random_data' exists.
23016         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23017
23018 2009-01-25  Bruno Haible  <bruno@clisp.org>
23019
23020         Don't install charset.alias on MacOS X >= 10.3.
23021         * lib/localcharset.c (DARWIN7): New macro.
23022         (get_charset_aliases): Hardcode the result for Darwin7.
23023         * modules/localcharset (install-exec-local): Don't install
23024         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23025
23026 2009-01-25  Bruno Haible  <bruno@clisp.org>
23027
23028         Don't install charset.alias on mingw and Cygwin.
23029         * modules/localcharset (install-exec-local): Don't install
23030         charset.alias on mingw and Cygwin, if the file does not yet exist.
23031         The result for these platforms is hardcoded in localcharset.c.
23032
23033 2009-01-25  Bruno Haible  <bruno@clisp.org>
23034
23035         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23036         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23037         before requiring AC_USE_SYSTEM_EXTENSIONS.
23038
23039 2009-01-25  Jim Meyering  <meyering@redhat.com>
23040
23041         c-strtod: avoid warnings
23042         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23043         "assignment discards qualifiers from pointer target type" warnings.
23044
23045 2009-01-24  Bruno Haible  <bruno@clisp.org>
23046
23047         Add support for non-UTF-8 locales on MacOS X.
23048         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23049         canonical encodings. For Darwin 7 and newer, don't map traditional
23050         encodings to UTF-8.
23051         Reported by Vincent Lefevre <vincent@vinc17.org>
23052         at <http://savannah.gnu.org/bugs/?25235>.
23053
23054 2009-01-24  Bruno Haible  <bruno@clisp.org>
23055
23056         * doc/gnulib.texi (Obsolete modules): New section.
23057         Reported by Mike Frysinger <vapier@gentoo.org>.
23058
23059 2009-01-24  Bruno Haible  <bruno@clisp.org>
23060
23061         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23062         (%.dvi): New rule.
23063
23064 2009-01-24  Bruno Haible  <bruno@clisp.org>
23065
23066         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23067         Reported by Eric Blake.
23068
23069 2009-01-24  Bruno Haible  <bruno@clisp.org>
23070
23071         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23072         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23073         Reported by Gary V. Vaughan <gary@gnu.org>.
23074
23075 2009-01-24  Bruno Haible  <bruno@clisp.org>
23076
23077         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23078
23079 2009-01-23  Bruno Haible  <bruno@clisp.org>
23080
23081         Make c-strtod, c-strtold usable in libraries.
23082         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23083         (C_STRTOD): Call strdup instead of xstrdup.
23084         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23085         * modules/c-strtold (Depends-on): Likewise.
23086         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23087         * NEWS: Mention the change.
23088         Reported by Michael Gold <mgold@ncf.ca>.
23089
23090 2009-01-23  Jim Meyering  <meyering@redhat.com>
23091
23092         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23093         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23094         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23095
23096 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23097
23098         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23099         GNU CoreUtils.
23100         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23101         * modules/version-etc (Description): Update.
23102
23103 2009-01-22  Bruno Haible  <bruno@clisp.org>
23104
23105         Cache the C locale object.
23106         * lib/c-strtod.c (c_locale_cache): New variable.
23107         (c_locale): New function.
23108         (C_STRTOD): Use it, and don't call freelocale.
23109         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23110         Suggested by Paolo Bonzini.
23111
23112 2009-01-21  Bruno Haible  <bruno@clisp.org>
23113
23114         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23115         conditions other than overflow.
23116
23117 2009-01-21  Bruno Haible  <bruno@clisp.org>
23118
23119         * lib/c-strtod.c: Include errno.h.
23120         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23121         value from STRTOD_L and STRTOD.
23122
23123 2009-01-21  Bruno Haible  <bruno@clisp.org>
23124         and Jim Meyering  <meyering@redhat.com>
23125
23126         nanosleep: skip configure test (fail it) for apple universal builds
23127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23128         universal builds, assume that nanosleep does not work.
23129         * modules/nanosleep (Depends-on): Add multiarch.
23130
23131         mktime: skip configure test (fail it) for apple universal builds
23132         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23133         universal builds, assume that mktime does not work.
23134         * modules/mktime (Depends-on): Add multiarch.
23135
23136 2009-01-21  Eric Blake  <ebb9@byu.net>
23137
23138         multiarch: avoid expand-before-require warning
23139         * modules/multiarch (configure.ac): Require, rather than expand,
23140         gl_MULTIARCH.
23141         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23142         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23143         enforce that all clients require it.  Partial reversion of
23144         2008-12-29 patch.
23145
23146         error: avoid expand-before-require warning
23147         * modules/errno (configure.ac): Require, rather than expand,
23148         gl_HEADER_ERRNO_H.
23149         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23150         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23151         enforce that all clients require it.
23152
23153         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23154         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23155         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23156         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23157
23158 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23159
23160         Revert:
23161         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23162
23163         regex: do not depend on obsolete modules.
23164         * modules/regex: Remove memcmp and memmove.
23165
23166 2009-01-20  Bruno Haible  <bruno@clisp.org>
23167
23168         Make the 'link' module link on Windows NT 4.
23169         * lib/link.c (_WIN32_WINNT): Don't define.
23170         (CreateHardLinkFuncType): New type.
23171         (CreateHardLinkFunc, initialized): New variables.
23172         (initialize): New function.
23173         (link): Invoke CreateHardLink indirectly through the function pointer.
23174
23175 2009-01-20  Bruno Haible  <bruno@clisp.org>
23176
23177         Fix compilation failure on mingw.
23178         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23179
23180 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23181
23182         * doc/c-strtod.texi: Mention a couple of restrictions.
23183
23184 2009-01-20  Jim Meyering  <meyering@redhat.com>
23185
23186         gettimeofday: move more declarations out of functions
23187         * lib/gettimeofday.c: Move extern declarations of tzset and
23188         gmtime out of containing functions.  Prompted by Bruno Haible.
23189
23190 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23191
23192         regex: do not depend on obsolete modules.
23193         * modules/regex: Remove memcmp and memmove.
23194
23195 2009-01-19  Bruno Haible  <bruno@clisp.org>
23196
23197         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23198         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23199         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23200         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23201         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23202
23203 2009-01-19  Bruno Haible  <bruno@clisp.org>
23204
23205         * tests/test-link.c: Include <errno.h>.
23206         (main): Exit with code 77 when a hard link cannot be created due to
23207         the file system.
23208         * tests/test-link.sh: Skip test when a hard link cannot be created due
23209         to the file system.
23210         Suggested by Eric Blake.
23211
23212 2009-01-19  Martin Lambers  <marlam@marlam.de>
23213
23214         * modules/link-tests: New file.
23215         * tests/test-link.sh: New file.
23216         * tests/test-link.c: New file.
23217
23218 2009-01-19  Eric Blake  <ebb9@byu.net>
23219
23220         doc: mention another function added in cygwin 1.7.0
23221         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23222         Another new function in cygwin 1.7.
23223
23224 2009-01-19  Bruno Haible  <bruno@clisp.org>
23225
23226         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23227         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
23228         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
23229         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23230         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23231         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23232         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23233         * m4/md4.m4 (gl_MD4): Likewise.
23234         * m4/md5.m4 (gl_MD5): Likewise.
23235         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
23236         * m4/sha1.m4 (gl_SHA1): Likewise.
23237         * m4/sha256.m4 (gl_SHA256): Likewise.
23238         * m4/sha512.m4 (gl_SHA512): Likewise.
23239
23240 2009-01-19  Bruno Haible  <bruno@clisp.org>
23241
23242         * modules/uniname/uniname-tests (Depends-on): Add progname.
23243         * tests/uniname/test-uninames.c: Include progname.h.
23244         (main): Call set_program_name.
23245
23246         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
23247         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
23248         (main): Call set_program_name.
23249
23250         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
23251         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
23252         (main): Call set_program_name.
23253
23254         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
23255         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
23256         (main): Call set_program_name.
23257
23258         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
23259         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
23260         (main): Call set_program_name.
23261
23262         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23263         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23264         (main): Call set_program_name.
23265
23266         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23267         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23268         (main): Call set_program_name.
23269
23270         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23271         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23272         (main): Call set_program_name.
23273
23274         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23275         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23276         (main): Call set_program_name.
23277
23278 2009-01-19  Eric Blake  <ebb9@byu.net>
23279
23280         test-unistd: test previous patch
23281         * tests/test-unistd.c: Test *_FILENO macros.
23282
23283         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23284         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23285         Guarantee a definition.
23286         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23287         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23288         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23289         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23290         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23291         Likewise.
23292         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23293         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23294         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23295         Likewise.
23296         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23297         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23298         (STDERR_FILENO): Likewise.
23299         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23300         (STDERR_FILENO): Likewise.
23301         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23302         (STDERR_FILENO): Likewise.
23303         Reported by Elbert Pol.
23304
23305 2009-01-19  Eric Blake  <ebb9@byu.net>
23306
23307         doc: mention more functions added in cygwin 1.7.0
23308         * doc/posix-functions/abort.texi (abort): Update wording related
23309         to cygwin.
23310         * doc/posix-functions/daylight.texi (daylight): Likewise.
23311         * doc/posix-functions/optarg.texi (optarg): Likewise.
23312         * doc/posix-functions/optarg.texi (opterr): Likewise.
23313         * doc/posix-functions/optarg.texi (optind): Likewise.
23314         * doc/posix-functions/optarg.texi (optopt): Likewise.
23315         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23316         worked in 1.5.x, and was withdrawn in 1.7.
23317         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23318         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23319         cygwin versions.
23320         * doc/posix-functions/perror.texi (perror): Likewise.
23321         * doc/posix-functions/printf.texi (printf): Likewise.
23322         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23323         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23324         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23325         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23326         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23327         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23328         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23329         Likewise.
23330         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23331         Likewise.
23332         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23333         this function.
23334         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23335         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23336         Likewise.
23337         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23338         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23339         * doc/posix-functions/confstr.texi (confstr): Likewise.
23340         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23341         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23342         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23343         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23344         * doc/posix-functions/fputws.texi (fputws): Likewise.
23345         * doc/posix-functions/fwide.texi (fwide): Likewise.
23346         * doc/posix-functions/getwc.texi (getwc): Likewise.
23347         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23348         * doc/posix-functions/putwc.texi (putwc): Likewise.
23349         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23350         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23351         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23352         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23353         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23354         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23355         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23356         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23357         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23358         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23359         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23360
23361 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23362
23363         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23364         * lib/ioctl.c: Include <sys/ioctl.h>.
23365
23366 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23367
23368         * modules/getdate-tests (Depends-on): Add progname.
23369         * tests/test-getdate.c: Use progname module, to avoid link errors
23370         on non-glibc systems.
23371
23372 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23373
23374         * modules/filenamecat-tests (Depends-on): Add progname.
23375         * modules/fstrcmp-tests (Depends-on): Likewise.
23376
23377         * tests/test-filenamecat.c: Use progname module, to avoid link
23378         errors on non-glibc systems.
23379         * tests/test-fstrcmp.c: Likewise.
23380
23381 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23382
23383         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23384         * lib/gettimeofday.c: Move extern declaration out of function.
23385
23386 2009-01-18  Bruno Haible  <bruno@clisp.org>
23387
23388         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23389         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23390         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
23391
23392 2009-01-18  Bruno Haible  <bruno@clisp.org>
23393
23394         * lib/strftime.c (MEMPCPY): Remove unused macro.
23395         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
23396
23397 2009-01-18  Martin Lambers  <marlam@marlam.de>
23398
23399         New module 'link'.
23400         * lib/unistd.in.h (link): New declaration.
23401         * lib/link.c: New file.
23402         * m4/link.m4: New file.
23403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
23404         HAVE_LINK.
23405         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
23406         * modules/link: New file.
23407         * doc/posix-functions/link.texi: Mention the new module.
23408
23409 2009-01-18  Bruno Haible  <bruno@clisp.org>
23410
23411         * tests/test-avltree_list.c (main): Call set_program_name.
23412         * tests/test-avltree_oset.c (main): Likewise.
23413         * tests/test-obstack-printf.c: Include progname.h.
23414         (main): Call set_program_name.
23415         * tests/test-quotearg.c: Include progname.h.
23416         (main): Call set_program_name.
23417         * tests/test-xmemdup0.c: Include progname.h.
23418         (main): Call set_program_name.
23419
23420 2009-01-18  Bruno Haible  <bruno@clisp.org>
23421
23422         New module 'alphasort'.
23423         * lib/dirent.in.h (alphasort): New declaration.
23424         * lib/alphasort.c: New file, from glibc with modifications.
23425         * m4/alphasort.m4: New file.
23426         * modules/alphasort: New file.
23427         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
23428         HAVE_ALPHASORT.
23429         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
23430         HAVE_ALPHASORT.
23431         * doc/posix-functions/alphasort.texi: Mention the new module and the
23432         portability problems.
23433
23434 2009-01-18  Bruno Haible  <bruno@clisp.org>
23435
23436         New module 'scandir'.
23437         * lib/dirent.in.h (scandir): New declaration.
23438         * lib/scandir.c: New file, from glibc with modifications.
23439         * m4/scandir.m4: New file.
23440         * modules/scandir: New file.
23441         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
23442         HAVE_SCANDIR.
23443         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
23444         HAVE_SCANDIR.
23445         * doc/posix-functions/scandir.texi: Mention the new module and the
23446         portability problems.
23447
23448 2009-01-17  Bruno Haible  <bruno@clisp.org>
23449
23450         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
23451         Update documentation.
23452         (func_remove_suffix): Escape all dots in the suffix. Update
23453         documentation.
23454         (func_filter_filelist): Update documentation.
23455         Reported by Ralf Wildenhues.
23456
23457 2009-01-17  Bruno Haible  <bruno@clisp.org>
23458
23459         * modules/dprintf-posix-tests: New file.
23460         * tests/test-dprintf-posix.sh: New file.
23461         * tests/test-dprintf-posix.c: New file.
23462
23463         New modules 'dprintf', 'dprintf-posix'.
23464         * lib/stdio.in.h (dprintf): New declaration.
23465         * lib/dprintf.c: New file.
23466         * m4/dprintf.m4: New file.
23467         * m4/dprintf-posix.m4: New file.
23468         * modules/dprintf: New file.
23469         * modules/dprintf-posix: New file.
23470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
23471         HAVE_DPRINTF, REPLACE_DPRINTF.
23472         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
23473         HAVE_DPRINTF, REPLACE_DPRINTF.
23474         * doc/posix-functions/dprintf.texi: Mention the new modules.
23475
23476 2009-01-17  Bruno Haible  <bruno@clisp.org>
23477
23478         * modules/vdprintf-posix-tests: New file.
23479         * tests/test-vdprintf-posix.sh: New file.
23480         * tests/test-vdprintf-posix.c: New file.
23481
23482         New modules 'vdprintf', 'vdprintf-posix'.
23483         * lib/stdio.in.h (vdprintf): New declaration.
23484         * lib/vdprintf.c: New file.
23485         * m4/vdprintf.m4: New file.
23486         * m4/vdprintf-posix.m4: New file.
23487         * modules/vdprintf: New file.
23488         * modules/vdprintf-posix: New file.
23489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
23490         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23491         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
23492         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23493         * doc/posix-functions/vdprintf.texi: Mention the new modules.
23494
23495 2009-01-17  Bruno Haible  <bruno@clisp.org>
23496
23497         Fix replacement of fopen on mingw.
23498         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
23499         mingw.
23500
23501 2009-01-17  Bruno Haible  <bruno@clisp.org>
23502
23503         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
23504         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
23505
23506 2009-01-17  Bruno Haible  <bruno@clisp.org>
23507
23508         Avoid test-fflush2.sh failure on mingw.
23509         * tests/test-fflush2.c: Include binary-io.h.
23510         (main): Put standard input into binary mode.
23511         * modules/fflush-tests (Depends-on): Add binary-io.
23512
23513 2009-01-17  Bruno Haible  <bruno@clisp.org>
23514
23515         * lib/wchar.in.h: In another particular situation, include only the
23516         system's <wchar.h> file.
23517         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
23518         Reported by Albert Chin-A-Young <china@thewrittenword.com>
23519         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
23520
23521 2009-01-17  Bruno Haible  <bruno@clisp.org>
23522
23523         Support for stripping executables in --enable-relocatable.
23524         * build-aux/install-reloc: Expect one more argument, or an environment
23525         variable RELOC_STRIP_PROG. If set, strip the destination program and
23526         its wrapper.
23527         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
23528         RELOC_STRIP_PROG.
23529         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
23530         to set RELOCATABLE_STRIP.
23531         * NEWS: Mention the new Makefile requirement.
23532
23533 2009-01-17  Bruno Haible  <bruno@clisp.org>
23534
23535         * build-aux/install-reloc: Remove debugging information left over by
23536         C compiler on MacOS X.
23537
23538 2009-01-17  Bruno Haible  <bruno@clisp.org>
23539
23540         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
23541         * lib/progreloc.c (find_executable): Fix type of pointer passed to
23542         _NSGetExecutablePath.
23543
23544 2009-01-16  Jim Meyering  <meyering@redhat.com>
23545
23546         strerror: avoid warnings about discarding "const"
23547         * lib/strerror.c (rpl_strerror): Instead of returning a const
23548         string from each and every "case", use a variable, and add a single
23549         cast after the switch.
23550
23551 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
23552
23553         * lib/arpa_inet.in.h: Add extern "C" block for C++.
23554
23555 2009-01-16  Bruno Haible  <bruno@clisp.org>
23556
23557         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
23558         array initializer syntax that also works in C++ mode.
23559         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23560
23561 2009-01-16  Jim Meyering  <meyering@redhat.com>
23562
23563         poll: suppress a warning
23564         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
23565         to ignore "...unsigned expression < 0 is always false" warnings.
23566
23567 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
23568
23569         poll: remove declarations of unused variables
23570         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
23571         sockbuf and optlen.
23572
23573 2009-01-15  Bruno Haible  <bruno@clisp.org>
23574
23575         Make fflush-after-ungetc POSIX compliant on BSD systems.
23576         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
23577         (clear_ungetc_buffer): Implement also for other systems.
23578         (rpl_fflush): On glibc systems, invoke
23579         clear_ungetc_buffer_preserving_position. Otherwise, invoke
23580         clear_ungetc_buffer after fetching the stream's position, not before.
23581
23582 2009-01-15  Bruno Haible  <bruno@clisp.org>
23583
23584         Make fflush-after-ungetc POSIX compliant on glibc systems.
23585         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
23586         after ungetc.
23587         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
23588         (rpl_fflush): On glibc systems, simply call the system's fflush
23589         function after clearing the ungetc buffer.
23590         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
23591         Instead, lseek only to the end of file, then use the system's fseeko
23592         for the rest. On glibc systems, reset the EOF indicator bit.
23593
23594 2009-01-15  Jim Meyering  <meyering@redhat.com>
23595
23596         openmp.m4: revert quote-adding change, for portability to older autoconf
23597         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
23598         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
23599         Simon Josefsson noticed the problem when using autoconf-2.61.
23600
23601 2009-01-15  Bruno Haible  <bruno@clisp.org>
23602
23603         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
23604         * tests/test-fflush2.c (ASSERT): Always fail.
23605         (main): Add two tests for fflush() after ungetc(), taking into account
23606         the Austin Group's clarification.
23607         Suggested by Eric Blake.
23608
23609 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
23610
23611         mktime.m4: remove K&R-style function prototypes
23612         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
23613         for the Sun C++ compiler.
23614
23615 2009-01-14  Bruno Haible  <bruno@clisp.org>
23616
23617         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
23618         while including <wchar.h>.
23619         * lib/wchar.in.h: In two particular situations on HP-UX, include only
23620         the system's <wchar.h> file.
23621         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23622
23623 2009-01-14  Bruno Haible  <bruno@clisp.org>
23624
23625         * m4/csharp.m4: Don't mention gettext on the serial number line.
23626         * m4/csharpexec.m4: Likewise.
23627         * m4/eaccess.m4: Likewise.
23628         * m4/javaexec.m4: Likewise.
23629         * m4/sig_atomic_t.m4: Likewise.
23630         * m4/tmpdir.m4: Likewise.
23631         * m4/intldir.m4: Bump gettext version.
23632         * m4/lib-ld.m4: Likewise.
23633
23634 2009-01-14  Bruno Haible  <bruno@clisp.org>
23635
23636         * lib/progname.c (set_program_name): Add more comments.
23637         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23638
23639 2009-01-14  Simon Josefsson  <simon@josefsson.org>
23640
23641         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
23642         were sys/stat.h does not define it.
23643
23644 2009-01-14  Jim Meyering  <meyering@redhat.com>
23645
23646         many *.m4 files: improve m4 quoting
23647         99% of this change was performed by running the following commands:
23648         git ls-files | grep '\.m4$' | xargs perl -pi \
23649           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
23650           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23651           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23652           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
23653         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
23654         The remainder were to add Copyright dates, increment serial numbers,
23655         undo some changes in comments, exclude m4/intl.m4, and add quotes
23656         around the "1" in ",1" where the unusual spacing prohibited the
23657         above regexps from doing the job.  For more details, see
23658         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
23659         * m4/acl.m4: Modified.
23660         * m4/afs.m4: Likewise.
23661         * m4/alloca.m4: Likewise.
23662         * m4/argp.m4: Likewise.
23663         * m4/argz.m4: Likewise.
23664         * m4/atexit.m4: Likewise.
23665         * m4/bison-i18n.m4: Likewise.
23666         * m4/bison.m4: Likewise.
23667         * m4/byteswap.m4: Likewise.
23668         * m4/c-stack.m4: Likewise.
23669         * m4/c-strtod.m4: Likewise.
23670         * m4/calloc.m4: Likewise.
23671         * m4/canonicalize-lgpl.m4: Likewise.
23672         * m4/chown.m4: Likewise.
23673         * m4/clock_time.m4: Likewise.
23674         * m4/codeset.m4: Likewise.
23675         * m4/copy-file.m4: Likewise.
23676         * m4/csharp.m4: Likewise.
23677         * m4/csharpcomp.m4: Likewise.
23678         * m4/csharpexec.m4: Likewise.
23679         * m4/d-ino.m4: Likewise.
23680         * m4/d-type.m4: Likewise.
23681         * m4/dirfd.m4: Likewise.
23682         * m4/double-slash-root.m4: Likewise.
23683         * m4/eaccess.m4: Likewise.
23684         * m4/eealloc.m4: Likewise.
23685         * m4/environ.m4: Likewise.
23686         * m4/errno_h.m4: Likewise.
23687         * m4/euidaccess.m4: Likewise.
23688         * m4/execute.m4: Likewise.
23689         * m4/fatal-signal.m4: Likewise.
23690         * m4/fchdir.m4: Likewise.
23691         * m4/fcntl_h.m4: Likewise.
23692         * m4/fileblocks.m4: Likewise.
23693         * m4/filenamecat.m4: Likewise.
23694         * m4/findprog.m4: Likewise.
23695         * m4/flexmember.m4: Likewise.
23696         * m4/fnmatch.m4: Likewise.
23697         * m4/fopen.m4: Likewise.
23698         * m4/fpending.m4: Likewise.
23699         * m4/fprintf-posix.m4: Likewise.
23700         * m4/free.m4: Likewise.
23701         * m4/frexp.m4: Likewise.
23702         * m4/frexpl.m4: Likewise.
23703         * m4/fsusage.m4: Likewise.
23704         * m4/ftruncate.m4: Likewise.
23705         * m4/gc-camellia.m4: Likewise.
23706         * m4/gc-random.m4: Likewise.
23707         * m4/gc.m4: Likewise.
23708         * m4/getaddrinfo.m4: Likewise.
23709         * m4/getcwd-abort-bug.m4: Likewise.
23710         * m4/getcwd-path-max.m4: Likewise.
23711         * m4/getdate.m4: Likewise.
23712         * m4/getdomainname.m4: Likewise.
23713         * m4/getgroups.m4: Likewise.
23714         * m4/gethostname.m4: Likewise.
23715         * m4/gethrxtime.m4: Likewise.
23716         * m4/getline.m4: Likewise.
23717         * m4/getloadavg.m4: Likewise.
23718         * m4/getndelim2.m4: Likewise.
23719         * m4/getpass.m4: Likewise.
23720         * m4/gettext.m4: Likewise.
23721         * m4/gettime.m4: Likewise.
23722         * m4/gettimeofday.m4: Likewise.
23723         * m4/gnulib-common.m4: Likewise.
23724         * m4/group-member.m4: Likewise.
23725         * m4/host-os.m4: Likewise.
23726         * m4/iconv.m4: Likewise.
23727         * m4/iconv_open.m4: Likewise.
23728         * m4/inet_ntop.m4: Likewise.
23729         * m4/inet_pton.m4: Likewise.
23730         * m4/inline.m4: Likewise.
23731         * m4/intldir.m4: Likewise.
23732         * m4/intlmacosx.m4: Likewise.
23733         * m4/intmax.m4: Likewise.
23734         * m4/intmax_t.m4: Likewise.
23735         * m4/inttypes.m4: Likewise.
23736         * m4/inttypes_h.m4: Likewise.
23737         * m4/inttypes-pri.m4: Likewise.
23738         * m4/isapipe.m4: Likewise.
23739         * m4/isnand.m4: Likewise.
23740         * m4/isnanf.m4: Likewise.
23741         * m4/isnanl.m4: Likewise.
23742         * m4/javacomp.m4: Likewise.
23743         * m4/javaexec.m4: Likewise.
23744         * m4/jm-winsz1.m4: Likewise.
23745         * m4/jm-winsz2.m4: Likewise.
23746         * m4/lchown.m4: Likewise.
23747         * m4/lcmessage.m4: Likewise.
23748         * m4/ldexpl.m4: Likewise.
23749         * m4/lib-ld.m4: Likewise.
23750         * m4/lib-link.m4: Likewise.
23751         * m4/libsigsegv.m4: Likewise.
23752         * m4/link-follow.m4: Likewise.
23753         * m4/localcharset.m4: Likewise.
23754         * m4/locale-fr.m4: Likewise.
23755         * m4/locale-ja.m4: Likewise.
23756         * m4/locale-tr.m4: Likewise.
23757         * m4/locale-zh.m4: Likewise.
23758         * m4/lock.m4: Likewise.
23759         * m4/longlong.m4: Likewise.
23760         * m4/ls-mntd-fs.m4: Likewise.
23761         * m4/lstat.m4: Likewise.
23762         * m4/malloc.m4: Likewise.
23763         * m4/mathl.m4: Likewise.
23764         * m4/mbrtowc.m4: Likewise.
23765         * m4/mbstate_t.m4: Likewise.
23766         * m4/mbswidth.m4: Likewise.
23767         * m4/memchr.m4: Likewise.
23768         * m4/memcmp.m4: Likewise.
23769         * m4/memcpy.m4: Likewise.
23770         * m4/memmem.m4: Likewise.
23771         * m4/memmove.m4: Likewise.
23772         * m4/mempcpy.m4: Likewise.
23773         * m4/memrchr.m4: Likewise.
23774         * m4/memset.m4: Likewise.
23775         * m4/minmax.m4: Likewise.
23776         * m4/mkdir-slash.m4: Likewise.
23777         * m4/mkdtemp.m4: Likewise.
23778         * m4/mktime.m4: Likewise.
23779         * m4/mmap-anon.m4: Likewise.
23780         * m4/mountlist.m4: Likewise.
23781         * m4/nanosleep.m4: Likewise.
23782         * m4/nls.m4: Likewise.
23783         * m4/nocrash.m4: Likewise.
23784         * m4/open.m4: Likewise.
23785         * m4/openat.m4: Likewise.
23786         * m4/openmp.m4: Likewise.
23787         * m4/pathmax.m4: Likewise.
23788         * m4/perl.m4: Likewise.
23789         * m4/physmem.m4: Likewise.
23790         * m4/pipe.m4: Likewise.
23791         * m4/po.m4: Likewise.
23792         * m4/poll.m4: Likewise.
23793         * m4/posixtm.m4: Likewise.
23794         * m4/posixver.m4: Likewise.
23795         * m4/printf-frexp.m4: Likewise.
23796         * m4/printf-frexpl.m4: Likewise.
23797         * m4/printf-posix.m4: Likewise.
23798         * m4/printf-posix-rpl.m4: Likewise.
23799         * m4/printf.m4: Likewise.
23800         * m4/progtest.m4: Likewise.
23801         * m4/putenv.m4: Likewise.
23802         * m4/readline.m4: Likewise.
23803         * m4/readlink.m4: Likewise.
23804         * m4/readutmp.m4: Likewise.
23805         * m4/realloc.m4: Likewise.
23806         * m4/regex.m4: Likewise.
23807         * m4/relocatable.m4: Likewise.
23808         * m4/relocatable-lib.m4: Likewise.
23809         * m4/rename-dest-slash.m4: Likewise.
23810         * m4/rename.m4: Likewise.
23811         * m4/rmdir-errno.m4: Likewise.
23812         * m4/rmdir.m4: Likewise.
23813         * m4/roundf.m4: Likewise.
23814         * m4/roundl.m4: Likewise.
23815         * m4/rpmatch.m4: Likewise.
23816         * m4/save-cwd.m4: Likewise.
23817         * m4/selinux-selinux-h.m4: Likewise.
23818         * m4/setenv.m4: Likewise.
23819         * m4/settime.m4: Likewise.
23820         * m4/sig2str.m4: Likewise.
23821         * m4/sig_atomic_t.m4: Likewise.
23822         * m4/signalblocking.m4: Likewise.
23823         * m4/signbit.m4: Likewise.
23824         * m4/sigpipe.m4: Likewise.
23825         * m4/sockets.m4: Likewise.
23826         * m4/sockpfaf.m4: Likewise.
23827         * m4/st_dm_mode.m4: Likewise.
23828         * m4/stat-time.m4: Likewise.
23829         * m4/stdbool.m4: Likewise.
23830         * m4/stdint.m4: Likewise.
23831         * m4/stdint_h.m4: Likewise.
23832         * m4/stpcpy.m4: Likewise.
23833         * m4/stpncpy.m4: Likewise.
23834         * m4/strcase.m4: Likewise.
23835         * m4/strchrnul.m4: Likewise.
23836         * m4/strcspn.m4: Likewise.
23837         * m4/strdup.m4: Likewise.
23838         * m4/strftime.m4: Likewise.
23839         * m4/strndup.m4: Likewise.
23840         * m4/strnlen.m4: Likewise.
23841         * m4/strpbrk.m4: Likewise.
23842         * m4/strptime.m4: Likewise.
23843         * m4/strsep.m4: Likewise.
23844         * m4/strtod.m4: Likewise.
23845         * m4/strtoimax.m4: Likewise.
23846         * m4/strtok_r.m4: Likewise.
23847         * m4/strtol.m4: Likewise.
23848         * m4/strtoll.m4: Likewise.
23849         * m4/strtoul.m4: Likewise.
23850         * m4/strtoull.m4: Likewise.
23851         * m4/strtoumax.m4: Likewise.
23852         * m4/strverscmp.m4: Likewise.
23853         * m4/threadlib.m4: Likewise.
23854         * m4/timegm.m4: Likewise.
23855         * m4/tm_gmtoff.m4: Likewise.
23856         * m4/tmpdir.m4: Likewise.
23857         * m4/tmpfile.m4: Likewise.
23858         * m4/tzset.m4: Likewise.
23859         * m4/uintmax_t.m4: Likewise.
23860         * m4/unlinkdir.m4: Likewise.
23861         * m4/unlocked-io.m4: Likewise.
23862         * m4/uptime.m4: Likewise.
23863         * m4/userspec.m4: Likewise.
23864         * m4/utimbuf.m4: Likewise.
23865         * m4/utime.m4: Likewise.
23866         * m4/utimes-null.m4: Likewise.
23867         * m4/utimes.m4: Likewise.
23868         * m4/vararrays.m4: Likewise.
23869         * m4/vasnprintf.m4: Likewise.
23870         * m4/vfprintf-posix.m4: Likewise.
23871         * m4/vprintf-posix.m4: Likewise.
23872         * m4/wait-process.m4: Likewise.
23873         * m4/wchar_t.m4: Likewise.
23874         * m4/wint_t.m4: Likewise.
23875         * m4/write-any-file.m4: Likewise.
23876         * m4/yield.m4: Likewise.
23877
23878 2009-01-13  Bruno Haible  <bruno@clisp.org>
23879
23880         Avoid test-copy-file.sh failures when ACL support insufficient.
23881         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
23882         TESTS_ENVIRONMENT.
23883         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
23884         Reported by Jim Meyering.
23885
23886 2009-01-13  Bruno Haible  <bruno@clisp.org>
23887
23888         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
23889         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
23890         * modules/unistdio/u8-printf-parse (Files): Likewise.
23891         * modules/unistdio/u32-printf-parse (Files): Likewise.
23892         * modules/unistdio/ulc-printf-parse (Files): Likewise.
23893
23894 2009-01-13  Simon Josefsson  <simon@josefsson.org>
23895
23896         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
23897         and m4/inttypes_h.m4 too.
23898
23899 2009-01-12  Eric Blake  <ebb9@byu.net>
23900
23901         tests: IRIX 6.2 cc can't compile -0.0 into .data
23902         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
23903         rather than at compile-time.
23904         * tests/test-floorl.c (minus_zero): Likewise.
23905         * tests/test-frexpl.c (minus_zero): Likewise.
23906         * tests/test-isnan.c (minus_zerol): Likewise.
23907         * tests/test-isnanl.h (minus_zero): Likewise.
23908         * tests/test-ldexpl.c (minus_zero): Likewise.
23909         * tests/test-roundl.c (minus_zero): Likewise.
23910         * tests/test-signbit.c (minus_zerol): Likewise.
23911         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23912         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23913         * tests/test-truncl.c (minus_zero): Likewise.
23914         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23915         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23916         Reported by Tom G. Christensen and Nelson H. F. Beebe.
23917
23918 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23919
23920         regex: fix glibc bug 9697
23921         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
23922         handling.
23923
23924 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23925
23926         regex: fix glibc bug 697
23927         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
23928         being NULL also if there are no backreferences.
23929
23930 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23931
23932         regex: merge glibc changes
23933         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
23934         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
23935         re_string_skip_chars, re_string_reconstruct): Likewise.
23936         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
23937
23938 2009-01-07  Jim Meyering  <meyering@redhat.com>
23939
23940         poll: filter through cppi
23941         * lib/poll.c: Indent cpp directives to reflect nesting.
23942
23943 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
23944
23945         poll: don't return uninitialized
23946         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
23947
23948 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
23949
23950         avoid compile failure on AIX 6.1
23951         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
23952         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
23953
23954 2009-01-04  Jim Meyering  <meyering@redhat.com>
23955
23956         remove duplicate inclusion of <stdio.h>
23957         * tests/test-fprintf-posix.c: Likewise.
23958         * tests/test-printf-posix.c: Likewise.
23959         * tests/test-snprintf-posix.c: Likewise.
23960         * tests/test-sprintf-posix.c: Likewise.
23961         * tests/test-vasprintf-posix.c: Likewise.
23962         * tests/test-vfprintf-posix.c: Likewise.
23963         * tests/test-vprintf-posix.c: Likewise.
23964         * tests/test-vsnprintf-posix.c: Likewise.
23965         * tests/test-vsprintf-posix.c: Likewise.
23966
23967 2009-01-03  Jim Meyering  <meyering@redhat.com>
23968
23969         gnulib-tool: fix sed-based filtering
23970         * gnulib-tool (func_filter_filelist): Remove extra backslash
23971         in sed_fff_filter definition.
23972
23973 2009-01-02  Jim Meyering  <meyering@redhat.com>
23974
23975         strftime: avoid compilation failure on Solaris 2.6
23976         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
23977         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
23978         Don't #define mbrlen or mbsinit, since now they're guaranteed to
23979         be available.  Reported by Tom G. Christensen.  Details in
23980         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
23981
23982 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23983             Bruno Haible  <bruno@clisp.org>
23984
23985         Speed up gnulib-tool by doing more string processing through shell
23986         built-ins.
23987         * gnulib-tool (fast_func_append): New variable.
23988         (func_remove_prefix, func_remove_suffix): New functions.
23989         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
23990         (func_filter_filelist): New function.
23991         (func_get_dependencies): Use func_remove_suffix instead of sed.
23992         (func_get_automake_snippet): Use func_filter_filelist instead of a
23993         subshell and sed invocation.
23994
23995 2009-01-01  Bruno Haible  <bruno@clisp.org>
23996
23997         Fix a security bug.
23998         * gnulib-tool (func_import, import, update): Don't allow the characters
23999         '"', '$', '`', '\' in macro arguments that become part of commands that
24000         are evaluated.
24001
24002 2009-01-01  Bruno Haible  <bruno@clisp.org>
24003
24004         * gnulib-tool (func_reset_sigpipe): Add more comments.
24005
24006 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24007
24008         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24009         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24010         already know the answer.
24011
24012 2009-01-01  Jim Meyering  <meyering@redhat.com>
24013
24014         * lib/version-etc.c (version_etc_va): Update copyright year.
24015
24016 2008-12-30  Bruno Haible  <bruno@clisp.org>
24017
24018         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24019         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24020         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24021
24022 2008-12-29  Eric Blake  <ebb9@byu.net>
24023
24024         multiarch: avoid autoconf AC_REQUIRE bug
24025         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24026         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24027         2.63 and older.
24028         Reported by Bruno Haible, and analyzed in
24029         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24030
24031 2008-12-29  Bruno Haible  <bruno@clisp.org>
24032
24033         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24034         files in subdirectories correctly.
24035         Reported by Ralf Wildenhues.
24036
24037 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24038
24039         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24040         rather than 'join FILE -', for Solaris join.
24041
24042 2008-12-29  Bruno Haible  <bruno@clisp.org>
24043
24044         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24045         quoting.
24046         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24047         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24048         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24049         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24050         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24051         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24052         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24053         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24054         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24055         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24056         * m4/nls.m4 (AM_NLS): Likewise.
24057         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24058         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24059         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24060         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24061         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24062         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24063         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24064         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24065         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24066         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24067         * m4/xsize.m4 (gl_XSIZE): Likewise.
24068         Suggested by Jim Meyering.
24069
24070 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24071
24072         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24073         * lib/parse-duration.c: use a switch instead of cascading if's.
24074
24075 2008-12-29  Eric Blake  <ebb9@byu.net>
24076
24077         wchar.h: supply WEOF on Irix 5.3
24078         * lib/wchar.in.h (wint_t): Also supply WEOF.
24079         * lib/wctype.in.h (wint_t): Likewise.
24080         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24081         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24082         Reported by Tom G. Christensen.
24083
24084 2008-12-26  Bruno Haible  <bruno@clisp.org>
24085
24086         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24087         i486, i586, i686.
24088
24089 2008-12-26  Bruno Haible  <bruno@clisp.org>
24090
24091         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24092
24093 2008-12-26  Bruno Haible  <bruno@clisp.org>
24094
24095         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24096         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24097         not __STDC_CONSTANT_MACROS.
24098         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24099
24100 2008-12-25  Bruno Haible  <bruno@clisp.org>
24101
24102         Add support for universal builds to vasnprintf.
24103         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24104         universal builds, guess no.
24105         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24106         * modules/vasprintf-posix (Depends-on): Likewise.
24107         * modules/fprintf-posix (Depends-on): Likewise.
24108         * modules/vfprintf-posix (Depends-on): Likewise.
24109         * modules/snprintf-posix (Depends-on): Likewise.
24110         * modules/vsnprintf-posix (Depends-on): Likewise.
24111         * modules/sprintf-posix (Depends-on): Likewise.
24112         * modules/vsprintf-posix (Depends-on): Likewise.
24113         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24114         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24115         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24116         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24117         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24118         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24119         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24120
24121         Add support for universal builds to <inttypes.h>.
24122         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24123         _SCNu64_PREFIX): In Apple
24124         universal builds, define directly, using _LP64.
24125         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24126         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24127         * modules/inttypes (Depends-on): Add multiarch.
24128         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24129
24130         Add support for universal builds to <stdint.h>.
24131         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24132         universal builds, define directly, using _LP64.
24133         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24134         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24135         and size_t.
24136         * modules/stdint (Depends-on): Add multiarch.
24137         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24138
24139         New module 'multiarch'.
24140         * modules/multiarch: New file.
24141         * m4/multiarch.m4: New file.
24142
24143 2008-12-25  Bruno Haible  <bruno@clisp.org>
24144
24145         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24146
24147 2008-12-25  Bruno Haible  <bruno@clisp.org>
24148
24149         * modules/btowc (License): Relicense under LGPLv2+.
24150         * modules/mbsinit (License): Likewise.
24151         * modules/mbrtowc (License): Likewise.
24152         * modules/wcrtomb (License): Likewise.
24153         * modules/streq (License): Likewise.
24154         Reported by David Lutterkort <lutter@redhat.com>.
24155
24156 2008-12-23  Bruno Haible  <bruno@clisp.org>
24157
24158         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24159
24160 2008-12-23  Bruno Haible  <bruno@clisp.org>
24161
24162         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24163         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24164         GETADDRINFO_LIB, not in LIBS.
24165         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24166         * modules/canon-host (Link): Likewise.
24167         * NEWS: Mention the change.
24168         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24169         GETADDRINFO_LIB.
24170
24171 2008-12-22  Bruno Haible  <bruno@clisp.org>
24172
24173         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24174         * doc/posix-functions/iswalpha_l.texi: Likewise.
24175         * doc/posix-functions/iswblank_l.texi: Likewise.
24176         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24177         * doc/posix-functions/iswctype_l.texi: Likewise.
24178         * doc/posix-functions/iswdigit_l.texi: Likewise.
24179         * doc/posix-functions/iswgraph_l.texi: Likewise.
24180         * doc/posix-functions/iswlower_l.texi: Likewise.
24181         * doc/posix-functions/iswprint_l.texi: Likewise.
24182         * doc/posix-functions/iswpunct_l.texi: Likewise.
24183         * doc/posix-functions/iswspace_l.texi: Likewise.
24184         * doc/posix-functions/iswupper_l.texi: Likewise.
24185         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24186         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24187         * doc/posix-functions/open_wmemstream.texi: Likewise.
24188         * doc/posix-functions/swscanf.texi: Likewise.
24189         * doc/posix-functions/towctrans_l.texi: Likewise.
24190         * doc/posix-functions/towlower.texi: Likewise.
24191         * doc/posix-functions/towlower_l.texi: Likewise.
24192         * doc/posix-functions/towupper.texi: Likewise.
24193         * doc/posix-functions/towupper_l.texi: Likewise.
24194         * doc/posix-functions/vfwprintf.texi: Likewise.
24195         * doc/posix-functions/vfwscanf.texi: Likewise.
24196         * doc/posix-functions/vswscanf.texi: Likewise.
24197         * doc/posix-functions/vwprintf.texi: Likewise.
24198         * doc/posix-functions/vwscanf.texi: Likewise.
24199         * doc/posix-functions/wcpcpy.texi: Likewise.
24200         * doc/posix-functions/wcpncpy.texi: Likewise.
24201         * doc/posix-functions/wcscasecmp.texi: Likewise.
24202         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24203         * doc/posix-functions/wcscoll_l.texi: Likewise.
24204         * doc/posix-functions/wcsdup.texi: Likewise.
24205         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24206         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24207         * doc/posix-functions/wcsnlen.texi: Likewise.
24208         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24209         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24210         * doc/posix-functions/wctrans_l.texi: Likewise.
24211         * doc/posix-functions/wctype_l.texi: Likewise.
24212         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24213         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24214         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24215         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24216         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24217         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24218         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24219         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24220         * doc/glibc-functions/wcschrnul.texi: Likewise.
24221         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24222         * doc/glibc-functions/wcstod_l.texi: Likewise.
24223         * doc/glibc-functions/wcstof_l.texi: Likewise.
24224         * doc/glibc-functions/wcstol_l.texi: Likewise.
24225         * doc/glibc-functions/wcstold_l.texi: Likewise.
24226         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24227         * doc/glibc-functions/wcstoq.texi: Likewise.
24228         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24229         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24230         * doc/glibc-functions/wcstouq.texi: Likewise.
24231         * doc/glibc-functions/wmempcpy.texi: Likewise.
24232
24233 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
24234             Eric Blake  <ebb9@byu.net>
24235             Paolo Bonzini  <bonzini@gnu.org>
24236             Bruno Haible  <bruno@clisp.org>
24237
24238         Make c-stack work on Haiku.
24239         * lib/c-stack.c (SA_ONSTACK): Define fallback.
24240         (c_stack_action): Use SA_ONSTACK flag.
24241
24242 2008-12-22  Bruno Haible  <bruno@clisp.org>
24243
24244         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
24245
24246 2008-12-22  Bruno Haible  <bruno@clisp.org>
24247
24248         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
24249         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
24250         being overridden.
24251         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
24252         New macros.
24253         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
24254         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
24255         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
24256         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
24257
24258 2008-12-22  Bruno Haible  <bruno@clisp.org>
24259
24260         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
24261         from test code.
24262
24263 2008-12-22  Eric Blake  <ebb9@byu.net>
24264
24265         Avoid gcc warnings on cygwin.
24266         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24267         Avoid unused variable.
24268         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24269         Likewise.
24270
24271 2008-12-22  Bruno Haible  <bruno@clisp.org>
24272
24273         Remove HAVE_MBRTOWC conditionals.
24274         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24275         (mbscasecmp): Assume mbrtowc function.
24276         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24277         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24278         * lib/mbschr.c: Include mbuiter.h unconditionally.
24279         (mbschr): Assume mbrtowc function.
24280         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24281         (mbscspn): Assume mbrtowc function.
24282         * lib/mbslen.c: Include mbuiter.h unconditionally.
24283         (mbslen): Assume mbrtowc function.
24284         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24285         (mbsncasecmp): Assume mbrtowc function.
24286         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24287         (mbsnlen): Assume mbrtowc function.
24288         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24289         (mbspbrk): Assume mbrtowc function.
24290         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24291         (mbspcasecmp): Assume mbrtowc function.
24292         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24293         (mbsrchr): Assume mbrtowc function.
24294         * lib/mbssep.c: Include mbuiter.h unconditionally.
24295         (mbssep): Assume mbrtowc function.
24296         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24297         (mbsspn): Assume mbrtowc function.
24298         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24299         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24300         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24301         (mbstok_r): Assume mbrtowc function.
24302         * lib/propername.c: Include mbuiter.h unconditionally.
24303         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24304         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24305         (trim2): Assume mbrtowc function.
24306         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24307         (mbsnwidth): Assume mbrtowc function.
24308         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24309         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24310         fallback definitions.
24311         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24312
24313 2008-12-22  Bruno Haible  <bruno@clisp.org>
24314
24315         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24316
24317 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24318
24319         * modules/regex: Request emulations for the mb*/wc* functions we need.
24320         * m4/regex.m4: Don't look for those functions here.
24321         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24322
24323 2008-12-22  Bruno Haible  <bruno@clisp.org>
24324
24325         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24326
24327 2008-12-21  Bruno Haible  <bruno@clisp.org>
24328
24329         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24330         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24331         (Include): Remove conditionalization.
24332         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24333         (Include): Remove conditionalization.
24334         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24335         (Include): Remove conditionalization.
24336         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24337         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24338         * NEWS: Mention the change.
24339         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24340         via Sergey Poznyakoff <gray@gnu.org.ua>.
24341
24342 2008-12-21  Bruno Haible  <bruno@clisp.org>
24343
24344         * MODULES.html.sh (Extended multibyte and wide character utilities
24345         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24346         wcrtomb, wcsrtombs.
24347         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24348         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24349         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24350         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24351
24352 2008-12-21  Bruno Haible  <bruno@clisp.org>
24353
24354         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24355
24356 2008-12-21  Bruno Haible  <bruno@clisp.org>
24357
24358         * modules/wcsnrtombs-tests: New file.
24359         * tests/test-wcsnrtombs1.sh: New file.
24360         * tests/test-wcsnrtombs2.sh: New file.
24361         * tests/test-wcsnrtombs3.sh: New file.
24362         * tests/test-wcsnrtombs4.sh: New file.
24363         * tests/test-wcsnrtombs.c: New file.
24364
24365         New module 'wcsnrtombs'.
24366         * lib/wchar.in.h (wcsnrtombs): New declaration.
24367         * lib/wcsnrtombs.c: New file.
24368         * lib/wcsrtombs-state.c: New file.
24369         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24370         (internal_state): Remove variable.
24371         * m4/wcsnrtombs.m4: New file.
24372         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24373         compilation units.
24374         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24375         HAVE_WCSNRTOMBS.
24376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24377         HAVE_WCSNRTOMBS.
24378         * modules/wcsnrtombs: New file.
24379         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24380         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24381
24382 2008-12-21  Bruno Haible  <bruno@clisp.org>
24383
24384         * modules/wcsrtombs-tests: New file.
24385         * tests/test-wcsrtombs1.sh: New file.
24386         * tests/test-wcsrtombs2.sh: New file.
24387         * tests/test-wcsrtombs3.sh: New file.
24388         * tests/test-wcsrtombs4.sh: New file.
24389         * tests/test-wcsrtombs.c: New file.
24390
24391         New module 'wcsrtombs'.
24392         * lib/wchar.in.h (wcsrtombs): New declaration.
24393         * lib/wcsrtombs.c: New file.
24394         * m4/wcsrtombs.m4: New file.
24395         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
24396         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
24398         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24399         * modules/wcsrtombs: New file.
24400         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
24401         bugs.
24402
24403 2008-12-21  Bruno Haible  <bruno@clisp.org>
24404
24405         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
24406         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
24407         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
24408         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
24409         if not correct.
24410         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
24411         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
24412         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24413         m4/locale-zh.m4, m4/codeset.m4.
24414         * doc/posix-functions/wcrtomb.texi: Document the bug.
24415
24416 2008-12-21  Bruno Haible  <bruno@clisp.org>
24417
24418         Work around a btowc() bug on IRIX 6.5.
24419         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
24420         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
24421         REPLACE_WTOBC if not.
24422         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
24423         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
24424         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
24425
24426 2008-12-21  Bruno Haible  <bruno@clisp.org>
24427
24428         * modules/wcrtomb-tests: New file.
24429         * tests/test-wcrtomb.sh: New file.
24430         * tests/test-wcrtomb.c: New file.
24431
24432         New module 'wcrtomb'.
24433         * lib/wchar.in.h (wcrtomb): New declaration.
24434         * lib/wcrtomb.c: New file.
24435         * m4/wcrtomb.m4: New file.
24436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
24437         HAVE_WCRTOMB.
24438         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
24439         HAVE_WCRTOMB.
24440         * modules/wcrtomb: New file.
24441         * doc/posix-functions/wcrtomb.texi: Mention the new module.
24442
24443 2008-12-21  Bruno Haible  <bruno@clisp.org>
24444
24445         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
24446         * modules/mbsrtowcs (Files): Likewise.
24447         * modules/wctob (Files): Likewise.
24448         * modules/c-strcase-tests (Files): Likewise.
24449         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24450         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24451         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24452         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24453         * modules/vasnprintf-posix-tests (Files): Likewise.
24454
24455 2008-12-21  William Pursell  <bill.pursell@gmail.com>
24456
24457         gitlog-to-changelog: pass all command-line arguments to git-log
24458         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
24459         it is sometimes convenient to filter the commits in various ways.
24460         gitlog-to-changelog only allows --since to specify a start date,
24461         but git-log itself supports many other filtering mechanisms.
24462         At the moment, I want to filter by branch name.  Rather than
24463         adding a --branch option to gitlog-to-changelog, it seems more
24464         flexible to simply pass all options directly to git-log and let
24465         git do the work.  Notice that this effectively makes --since a
24466         redundant option for gitlog-to-changelog, but removing it would
24467         require current usage to change since calls would then require
24468         an additional '--'.
24469
24470 2008-12-21  Bruno Haible  <bruno@clisp.org>
24471
24472         * modules/mbsnrtowcs-tests: New file.
24473         * tests/test-mbsnrtowcs1.sh: New file.
24474         * tests/test-mbsnrtowcs2.sh: New file.
24475         * tests/test-mbsnrtowcs3.sh: New file.
24476         * tests/test-mbsnrtowcs4.sh: New file.
24477         * tests/test-mbsnrtowcs.c: New file.
24478
24479         New module 'mbsnrtowcs'.
24480         * lib/wchar.in.h (mbsnrtowcs): New declaration.
24481         * lib/mbsnrtowcs.c: New file.
24482         * lib/mbsrtowcs-state.c: New file.
24483         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
24484         (internal_state): Remove variable.
24485         * m4/mbsnrtowcs.m4: New file.
24486         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
24487         compilation units.
24488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
24489         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24490         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
24491         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24492         * modules/mbsnrtowcs: New file.
24493         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
24494         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
24495         portability problem.
24496
24497 2008-12-21  Bruno Haible  <bruno@clisp.org>
24498
24499         Work around mbsrtowcs bug.
24500         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
24501         (gl_FUNC_MBSRTOWCS): Invoke it.
24502         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24503         m4/locale-zh.m4.
24504         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
24505
24506 2008-12-21  Bruno Haible  <bruno@clisp.org>
24507
24508         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
24509
24510 2008-12-21  Bruno Haible  <bruno@clisp.org>
24511
24512         Update doc for AIX.
24513         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
24514         16-bit wchar_t type.
24515         * doc/posix-functions/btowc.texi: Likewise.
24516         * doc/posix-functions/fgetwc.texi: Likewise.
24517         * doc/posix-functions/fgetws.texi: Likewise.
24518         * doc/posix-functions/fputwc.texi: Likewise.
24519         * doc/posix-functions/fputws.texi: Likewise.
24520         * doc/posix-functions/fwide.texi: Likewise.
24521         * doc/posix-functions/fwprintf.texi: Likewise.
24522         * doc/posix-functions/fwscanf.texi: Likewise.
24523         * doc/posix-functions/getwchar.texi: Likewise.
24524         * doc/posix-functions/getwc.texi: Likewise.
24525         * doc/posix-functions/iswalnum.texi: Likewise.
24526         * doc/posix-functions/iswalpha.texi: Likewise.
24527         * doc/posix-functions/iswblank.texi: Likewise.
24528         * doc/posix-functions/iswcntrl.texi: Likewise.
24529         * doc/posix-functions/iswctype.texi: Likewise.
24530         * doc/posix-functions/iswdigit.texi: Likewise.
24531         * doc/posix-functions/iswgraph.texi: Likewise.
24532         * doc/posix-functions/iswlower.texi: Likewise.
24533         * doc/posix-functions/iswprint.texi: Likewise.
24534         * doc/posix-functions/iswpunct.texi: Likewise.
24535         * doc/posix-functions/iswspace.texi: Likewise.
24536         * doc/posix-functions/iswupper.texi: Likewise.
24537         * doc/posix-functions/iswxdigit.texi: Likewise.
24538         * doc/posix-functions/mbrtowc.texi: Likewise.
24539         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24540         * doc/posix-functions/mbstowcs.texi: Likewise.
24541         * doc/posix-functions/mbtowc.texi: Likewise.
24542         * doc/posix-functions/putwchar.texi: Likewise.
24543         * doc/posix-functions/putwc.texi: Likewise.
24544         * doc/posix-functions/swprintf.texi: Likewise.
24545         * doc/posix-functions/tolower.texi: Likewise.
24546         * doc/posix-functions/toupper.texi: Likewise.
24547         * doc/posix-functions/towctrans.texi: Likewise.
24548         * doc/posix-functions/ungetwc.texi: Likewise.
24549         * doc/posix-functions/vswprintf.texi: Likewise.
24550         * doc/posix-functions/wcrtomb.texi: Likewise.
24551         * doc/posix-functions/wcscat.texi: Likewise.
24552         * doc/posix-functions/wcschr.texi: Likewise.
24553         * doc/posix-functions/wcscmp.texi: Likewise.
24554         * doc/posix-functions/wcscoll.texi: Likewise.
24555         * doc/posix-functions/wcscpy.texi: Likewise.
24556         * doc/posix-functions/wcscspn.texi: Likewise.
24557         * doc/posix-functions/wcsftime.texi: Likewise.
24558         * doc/posix-functions/wcslen.texi: Likewise.
24559         * doc/posix-functions/wcsncat.texi: Likewise.
24560         * doc/posix-functions/wcsncmp.texi: Likewise.
24561         * doc/posix-functions/wcsncpy.texi: Likewise.
24562         * doc/posix-functions/wcspbrk.texi: Likewise.
24563         * doc/posix-functions/wcsrchr.texi: Likewise.
24564         * doc/posix-functions/wcsrtombs.texi: Likewise.
24565         * doc/posix-functions/wcsspn.texi: Likewise.
24566         * doc/posix-functions/wcsstr.texi: Likewise.
24567         * doc/posix-functions/wcstod.texi: Likewise.
24568         * doc/posix-functions/wcstof.texi: Likewise.
24569         * doc/posix-functions/wcstoimax.texi: Likewise.
24570         * doc/posix-functions/wcstok.texi: Likewise.
24571         * doc/posix-functions/wcstold.texi: Likewise.
24572         * doc/posix-functions/wcstoll.texi: Likewise.
24573         * doc/posix-functions/wcstol.texi: Likewise.
24574         * doc/posix-functions/wcstombs.texi: Likewise.
24575         * doc/posix-functions/wcstoull.texi: Likewise.
24576         * doc/posix-functions/wcstoul.texi: Likewise.
24577         * doc/posix-functions/wcstoumax.texi: Likewise.
24578         * doc/posix-functions/wcswidth.texi: Likewise.
24579         * doc/posix-functions/wcsxfrm.texi: Likewise.
24580         * doc/posix-functions/wctob.texi: Likewise.
24581         * doc/posix-functions/wctomb.texi: Likewise.
24582         * doc/posix-functions/wctrans.texi: Likewise.
24583         * doc/posix-functions/wctype.texi: Likewise.
24584         * doc/posix-functions/wcwidth.texi: Likewise.
24585         * doc/posix-functions/wmemchr.texi: Likewise.
24586         * doc/posix-functions/wmemcmp.texi: Likewise.
24587         * doc/posix-functions/wmemcpy.texi: Likewise.
24588         * doc/posix-functions/wmemmove.texi: Likewise.
24589         * doc/posix-functions/wmemset.texi: Likewise.
24590         * doc/posix-functions/wprintf.texi: Likewise.
24591         * doc/posix-functions/wscanf.texi: Likewise.
24592
24593 2008-12-21  Bruno Haible  <bruno@clisp.org>
24594
24595         Update doc for HP-UX 11.11.
24596         * doc/posix-functions/btowc.texi: Clarify that the function is missing
24597         in HP-UX version 11.00, not in all versions of HP-UX 11.
24598         * doc/posix-functions/fwide.texi: Likewise.
24599         * doc/posix-functions/fwprintf.texi: Likewise.
24600         * doc/posix-functions/fwscanf.texi: Likewise.
24601         * doc/posix-functions/inet_ntop.texi: Likewise.
24602         * doc/posix-functions/inet_pton.texi: Likewise.
24603         * doc/posix-functions/mbrlen.texi: Likewise.
24604         * doc/posix-functions/mbrtowc.texi: Likewise.
24605         * doc/posix-functions/mbsinit.texi: Likewise.
24606         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24607         * doc/posix-functions/swprintf.texi: Likewise.
24608         * doc/posix-functions/swscanf.texi: Likewise.
24609         * doc/posix-functions/towctrans.texi: Likewise.
24610         * doc/posix-functions/vfwprintf.texi: Likewise.
24611         * doc/posix-functions/vswprintf.texi: Likewise.
24612         * doc/posix-functions/vwprintf.texi: Likewise.
24613         * doc/posix-functions/wcrtomb.texi: Likewise.
24614         * doc/posix-functions/wcsrtombs.texi: Likewise.
24615         * doc/posix-functions/wcsstr.texi: Likewise.
24616         * doc/posix-functions/wctob.texi: Likewise.
24617         * doc/posix-functions/wctrans.texi: Likewise.
24618         * doc/posix-functions/wmemchr.texi: Likewise.
24619         * doc/posix-functions/wmemcmp.texi: Likewise.
24620         * doc/posix-functions/wmemcpy.texi: Likewise.
24621         * doc/posix-functions/wmemmove.texi: Likewise.
24622         * doc/posix-functions/wmemset.texi: Likewise.
24623         * doc/posix-functions/wprintf.texi: Likewise.
24624         * doc/posix-functions/wscanf.texi: Likewise.
24625
24626 2008-12-21  Bruno Haible  <bruno@clisp.org>
24627
24628         Work around a portability problem.
24629         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
24630         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
24631
24632 2008-12-20  Bruno Haible  <bruno@clisp.org>
24633
24634         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
24635         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
24636         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
24637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
24638         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
24639
24640         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
24641         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
24642         set.
24643         (GNULIB_defined_mbstate_t): New macro.
24644         (mbsinit): Redefine if REPLACE_MBSINIT is set.
24645         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
24646         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
24647         reuses the system's mbrtowc function but works around the bugs.
24648         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
24649         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
24650         macros.
24651         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
24652         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
24653         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
24654         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
24655         REPLACE_MBSINIT if mbsinit needs to be overridden.
24656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
24657         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24658         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
24659         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24660         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24661         m4/locale-zh.m4.
24662         (Depends): Add mbsinit.
24663         * modules/mbsinit (Depends): Add mbrtowc.
24664         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
24665
24666 2008-12-20  Bruno Haible  <bruno@clisp.org>
24667
24668         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
24669         so that there are no conversion errors on AIX.
24670         * tests/test-mbsrtowcs.c (main): LIkewise.
24671
24672 2008-12-20  Bruno Haible  <bruno@clisp.org>
24673
24674         Work around wctob bug on Solaris <= 9.
24675         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
24676         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
24677         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
24678         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
24679         * modules/wctob (Files): Add m4/locale-fr.m4.
24680         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
24681
24682 2008-12-20  Bruno Haible  <bruno@clisp.org>
24683
24684         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
24685         /dev/null.
24686         * tests/test-select-in.sh: Likewise.
24687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24688
24689 2008-12-20  Bruno Haible  <bruno@clisp.org>
24690
24691         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
24692         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
24693         Cygwin 1.5.x.
24694
24695 2008-12-20  Bruno Haible  <bruno@clisp.org>
24696
24697         Ensure mbstate_t is defined on HP-UX 11.11.
24698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
24699         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
24700         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
24701         AC_USE_SYSTEM_EXTENSIONS.
24702         * modules/fnmatch (Depends-on): Add extensions.
24703         * modules/mbrlen (Depends-on): Likewise.
24704         * modules/mbrtowc (Depends-on): Likewise.
24705         * modules/mbsinit (Depends-on): Likewise.
24706         * modules/mbsrtowcs (Depends-on): Likewise.
24707         * modules/mbswidth (Depends-on): Likewise.
24708         * modules/quotearg (Depends-on): Likewise.
24709         * modules/strftime (Depends-on): Likewise.
24710
24711 2008-12-20  Bruno Haible  <bruno@clisp.org>
24712
24713         Ensure wctob is declared on IRIX 6.5.
24714         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
24715         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
24716         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
24717         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
24718         of HAVE_WCTOB.
24719         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
24720         HAVE_WCTOB.
24721         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
24722
24723 2008-12-19  Bruno Haible  <bruno@clisp.org>
24724
24725         * modules/mbsrtowcs-tests: New file.
24726         * tests/test-mbsrtowcs1.sh: New file.
24727         * tests/test-mbsrtowcs2.sh: New file.
24728         * tests/test-mbsrtowcs3.sh: New file.
24729         * tests/test-mbsrtowcs4.sh: New file.
24730         * tests/test-mbsrtowcs.c: New file.
24731
24732         New module 'mbsrtowcs'.
24733         * lib/wchar.in.h (mbsrtowcs): New declaration.
24734         * lib/mbsrtowcs.c: New file.
24735         * m4/mbsrtowcs.m4: New file.
24736         * modules/mbsrtowcs: New file.
24737         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
24738         HAVE_MBSRTOWCS.
24739         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
24740         HAVE_MBSRTOWCS.
24741         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
24742
24743 2008-12-19  Bruno Haible  <bruno@clisp.org>
24744
24745         New module 'mbrlen'.
24746         * lib/wchar.in.h (mbrlen): New declaration.
24747         * lib/mbrlen.c: New file.
24748         * m4/mbrlen.m4: New file.
24749         * modules/mbrlen: New file.
24750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
24751         HAVE_MBRLEN.
24752         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
24753         HAVE_MBRLEN.
24754         * doc/posix-functions/mbrlen.texi: Document the new module.
24755
24756 2008-12-19  Bruno Haible  <bruno@clisp.org>
24757
24758         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
24759         * modules/mbrtowc (Depends-on): Add verify.
24760         Suggested by Paul Eggert.
24761
24762 2008-12-18  Bruno Haible  <bruno@clisp.org>
24763
24764         * modules/mbsinit-tests: New file.
24765         * tests/test-mbsinit.sh: New file.
24766         * tests/test-mbsinit.c: New file.
24767
24768 2008-12-18  Bruno Haible  <bruno@clisp.org>
24769
24770         * modules/mbrtowc-tests: New file.
24771         * tests/test-mbrtowc1.sh: New file.
24772         * tests/test-mbrtowc2.sh: New file.
24773         * tests/test-mbrtowc3.sh: New file.
24774         * tests/test-mbrtowc4.sh: New file.
24775         * tests/test-mbrtowc.c: New file.
24776
24777         New module 'mbrtowc'.
24778         * lib/wchar.in.h (mbstate_t): Override when the system does not have
24779         mbsinit and mbrtowc.
24780         (mbrtowc): New declaration.
24781         * lib/mbrtowc.c: New file.
24782         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
24783         * modules/mbrtowc: New file.
24784         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
24785         HAVE_MBRTOWC.
24786         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
24787         HAVE_MBRTOWC.
24788         * doc/posix-functions/mbrtowc.texi: Document the new module.
24789
24790 2008-12-18  Bruno Haible  <bruno@clisp.org>
24791
24792         New module 'wctob'.
24793         * lib/wchar.in.h (wctob): New declaration.
24794         * lib/wctob.c: New file.
24795         * m4/wctob.m4: New file.
24796         * modules/wctob: New file.
24797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
24798         HAVE_WCTOB.
24799         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
24800         * doc/posix-functions/wctob.texi: Document the new module.
24801
24802 2008-12-18  Bruno Haible  <bruno@clisp.org>
24803
24804         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
24805         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
24806
24807 2008-12-18  Simon Josefsson  <simon@josefsson.org>
24808
24809         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
24810         G. Christensen" <tgc@jupiterrise.com>.
24811
24812         * lib/flock.c: Need to include errno.h.  Reported by "Tom
24813         G. Christensen" <tgc@jupiterrise.com>.
24814
24815         * lib/flock.c: Need to include string.h.  Reported by "Tom
24816         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
24817         <ebb9@byu.net>.
24818
24819 2008-12-18  Bruno Haible  <bruno@clisp.org>
24820
24821         * m4/locale-ja.m4: New file, from GNU gettext.
24822
24823 2008-12-17  Bruno Haible  <bruno@clisp.org>
24824
24825         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
24826         Suggested by Eric Blake.
24827
24828 2008-12-17  Bruno Haible  <bruno@clisp.org>
24829
24830         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
24831
24832 2008-12-17  Bruno Haible  <bruno@clisp.org>
24833
24834         * lib/mbsinit.c: Include verify.h. Verify an assumption.
24835         * modules/mbsinit (Depends-on): Add verify.
24836         Suggested by Paul Eggert.
24837
24838 2008-12-17  Bruno Haible  <bruno@clisp.org>
24839
24840         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
24841         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
24842         gl_FUNC_MBRTOWC.
24843         * m4/mbiter.m4 (gl_MBITER): LIkewise.
24844         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
24845         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
24846         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
24847         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
24848         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
24849         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
24850         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
24851         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
24852         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
24853         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
24854         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
24855         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
24856         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
24857         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
24858         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24859         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
24860         * modules/trim (configure.ac): Likewise.
24861
24862 2008-12-17  Bruno Haible  <bruno@clisp.org>
24863
24864         * modules/btowc-tests: New file.
24865         * tests/test-btowc1.sh: New file.
24866         * tests/test-btowc2.sh: New file.
24867         * tests/test-btowc.c: New file.
24868
24869         New module 'btowc'.
24870         * lib/wchar.in.h (btowc): New declaration.
24871         * lib/btowc.c: New file.
24872         * m4/btowc.m4: New file.
24873         * modules/btowc: New file.
24874         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
24875         HAVE_BTOWC.
24876         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
24877         * doc/posix-functions/btowc.texi: Document the new module.
24878
24879 2008-12-17  Bruno Haible  <bruno@clisp.org>
24880
24881         New module 'mbsinit'.
24882         * lib/wchar.in.h (mbsinit): New declaration.
24883         * lib/mbsinit.c: New file.
24884         * m4/mbsinit.m4: New file.
24885         * modules/mbsinit: New file.
24886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
24887         HAVE_MBSINIT.
24888         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
24889         HAVE_MBSINIT.
24890         * doc/posix-functions/mbsinit.texi: Document the new module.
24891
24892 2008-12-16  Bruno Haible  <bruno@clisp.org>
24893
24894         * lib/unistd.in.h: Add comment.
24895         * tests/test-environ.c: Don't include <stdlib.h>.
24896
24897 2008-12-16  Bruno Haible  <bruno@clisp.org>
24898
24899         * lib/parse-duration.h (parse_duration): Document return value
24900         convention.
24901         * lib/parse-duration.c: Include specification header first. Add
24902         comments.
24903         (_): Remove macro.
24904         (parse_year_month_day, parse_hour_minute_second): Move side effects
24905         outside of strchr call.
24906         (parse_non_iso8601): Move side effects outside of isspace call.
24907         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
24908         call.
24909
24910 2008-12-16  Bruno Haible  <bruno@clisp.org>
24911
24912         * tests/test-parse-duration.sh: Produce no output when the test
24913         succeeds.
24914
24915 2008-12-16  Bruno Haible  <bruno@clisp.org>
24916
24917         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
24918         expressions.
24919
24920 2008-12-15  Bruno Haible  <bruno@clisp.org>
24921
24922         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
24923         * doc/glibc-functions/flistxattr.texi: Likewise.
24924         * doc/glibc-functions/fopencookie.texi: Likewise.
24925         * doc/glibc-functions/fremovexattr.texi: Likewise.
24926         * doc/glibc-functions/fsetxattr.texi: Likewise.
24927         * doc/glibc-functions/getxattr.texi: Likewise.
24928         * doc/glibc-functions/lgetxattr.texi: Likewise.
24929         * doc/glibc-functions/listxattr.texi: Likewise.
24930         * doc/glibc-functions/llistxattr.texi: Likewise.
24931         * doc/glibc-functions/lremovexattr.texi: Likewise.
24932         * doc/glibc-functions/lsetxattr.texi: Likewise.
24933         * doc/glibc-functions/removexattr.texi: Likewise.
24934         * doc/glibc-functions/setxattr.texi: Likewise.
24935         * doc/posix-functions/open_memstream.texi: Likewise.
24936
24937 2008-12-15  Eric Blake  <ebb9@byu.net>
24938
24939         Update doc for cygwin 1.7.
24940         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
24941         functions.
24942         * doc/posix-functions/fchmodat.texi: Likewise.
24943         * doc/posix-functions/fchownat.texi: Likewise.
24944         * doc/posix-functions/fdopendir.texi: Likewise.
24945         * doc/posix-functions/fmemopen.texi: Likewise.
24946         * doc/posix-functions/freeaddrinfo.texi: Likewise.
24947         * doc/posix-functions/fstatat.texi: Likewise.
24948         * doc/posix-functions/futimens.texi: Likewise.
24949         * doc/posix-functions/gai_strerror.texi: Likewise.
24950         * doc/posix-functions/getaddrinfo.texi: Likewise.
24951         * doc/posix-functions/getnameinfo.texi: Likewise.
24952         * doc/posix-functions/if_freenameindex.texi: Likewise.
24953         * doc/posix-functions/if_indextoname.texi: Likewise.
24954         * doc/posix-functions/if_nameindex.texi: Likewise.
24955         * doc/posix-functions/if_nametoindex.texi: Likewise.
24956         * doc/posix-functions/insque.texi: Likewise.
24957         * doc/posix-functions/linkat.texi: Likewise.
24958         * doc/posix-functions/llrint.texi: Likewise.
24959         * doc/posix-functions/llrintf.texi: Likewise.
24960         * doc/posix-functions/llrintl.texi: Likewise.
24961         * doc/posix-functions/lockf.texi: Likewise.
24962         * doc/posix-functions/lrintl.texi: Likewise.
24963         * doc/posix-functions/mkdirat.texi: Likewise.
24964         * doc/posix-functions/mkfifoat.texi: Likewise.
24965         * doc/posix-functions/mknodat.texi: Likewise.
24966         * doc/posix-functions/mq_close.texi: Likewise.
24967         * doc/posix-functions/mq_getattr.texi: Likewise.
24968         * doc/posix-functions/mq_notify.texi: Likewise.
24969         * doc/posix-functions/mq_open.texi: Likewise.
24970         * doc/posix-functions/mq_receive.texi: Likewise.
24971         * doc/posix-functions/mq_send.texi: Likewise.
24972         * doc/posix-functions/mq_setattr.texi: Likewise.
24973         * doc/posix-functions/mq_timedreceive.texi: Likewise.
24974         * doc/posix-functions/mq_timedsend.texi: Likewise.
24975         * doc/posix-functions/mq_unlink.texi: Likewise.
24976         * doc/posix-functions/open_memstream.texi: Likewise.
24977         * doc/posix-functions/openat.texi: Likewise.
24978         * doc/posix-functions/posix_fadvise.texi: Likewise.
24979         * doc/posix-functions/posix_fallocate.texi: Likewise.
24980         * doc/posix-functions/posix_madvise.texi: Likewise.
24981         * doc/posix-functions/posix_memalign.texi: Likewise.
24982         * doc/posix-functions/posix_openpt.texi: Likewise.
24983         * doc/posix-functions/readlinkat.texi: Likewise.
24984         * doc/posix-functions/remque.texi: Likewise.
24985         * doc/posix-functions/renameat.texi: Likewise.
24986         * doc/posix-functions/rintl.texi: Likewise.
24987         * doc/posix-functions/sem_unlink.texi: Likewise.
24988         * doc/posix-functions/shm_open.texi: Likewise.
24989         * doc/posix-functions/shm_unlink.texi: Likewise.
24990         * doc/posix-functions/signgam.texi: Likewise.
24991         * doc/posix-functions/sigset.texi: Likewise.
24992         * doc/posix-functions/stpcpy.texi: Likewise.
24993         * doc/posix-functions/stpncpy.texi: Likewise.
24994         * doc/posix-functions/strerror.texi: Likewise.
24995         * doc/posix-functions/strtod.texi: Likewise.
24996         * doc/posix-functions/symlinkat.texi: Likewise.
24997         * doc/posix-functions/unlinkat.texi: Likewise.
24998         * doc/posix-functions/utimensat.texi: Likewise.
24999         * doc/glibc-functions/bindresvport.texi: Likewise.
25000         * doc/glibc-functions/dn_expand.texi: Likewise.
25001         * doc/glibc-functions/exp10.texi: Likewise.
25002         * doc/glibc-functions/exp10f.texi: Likewise.
25003         * doc/glibc-functions/fgetxattr.texi: Likewise.
25004         * doc/glibc-functions/flistxattr.texi: Likewise.
25005         * doc/glibc-functions/fopencookie.texi: Likewise.
25006         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25007         * doc/glibc-functions/fremovexattr.texi: Likewise.
25008         * doc/glibc-functions/fsetxattr.texi: Likewise.
25009         * doc/glibc-functions/getifaddrs.texi: Likewise.
25010         * doc/glibc-functions/getxattr.texi: Likewise.
25011         * doc/glibc-functions/lgetxattr.texi: Likewise.
25012         * doc/glibc-functions/listxattr.texi: Likewise.
25013         * doc/glibc-functions/llistxattr.texi: Likewise.
25014         * doc/glibc-functions/lremovexattr.texi: Likewise.
25015         * doc/glibc-functions/lsetxattr.texi: Likewise.
25016         * doc/glibc-functions/pow10.texi: Likewise.
25017         * doc/glibc-functions/pow10f.texi: Likewise.
25018         * doc/glibc-functions/rcmd_af.texi: Likewise.
25019         * doc/glibc-functions/removexattr.texi: Likewise.
25020         * doc/glibc-functions/res_init.texi: Likewise.
25021         * doc/glibc-functions/res_mkquery.texi: Likewise.
25022         * doc/glibc-functions/res_query.texi: Likewise.
25023         * doc/glibc-functions/res_querydomain.texi: Likewise.
25024         * doc/glibc-functions/res_send.texi: Likewise.
25025         * doc/glibc-functions/rresvport_af.texi: Likewise.
25026         * doc/glibc-functions/setxattr.texi: Likewise.
25027         * doc/glibc-functions/strcasestr.texi: Likewise.
25028
25029 2008-12-15  Bruno Haible  <bruno@clisp.org>
25030
25031         Fix compilation error on OSF/1 4.0.
25032         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25033         <sys/time.h>, simply delegate to the system header.
25034         Reported by Daniel Richard G. <oss@teragram.com>.
25035
25036 2008-12-15  Bruno Haible  <bruno@clisp.org>
25037
25038         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25039         * doc/posix-functions/fchmodat.texi: Likewise.
25040         * doc/posix-functions/fchownat.texi: Likewise.
25041         * doc/posix-functions/fdopendir.texi: Likewise.
25042         * doc/posix-functions/fstatat.texi: Likewise.
25043         * doc/posix-functions/mkdirat.texi: Likewise.
25044         * doc/posix-functions/unlinkat.texi: Likewise.
25045
25046 2008-12-14  Bruno Haible  <bruno@clisp.org>
25047
25048         Update doc for POSIX:2008.
25049         * doc/posix-functions/faccessat.texi: New file.
25050         * doc/posix-functions/fchmodat.texi: New file.
25051         * doc/posix-functions/fchownat.texi: New file.
25052         * doc/posix-functions/fdopendir.texi: New file.
25053         * doc/posix-functions/fstatat.texi: New file.
25054         * doc/posix-functions/futimens.texi: New file.
25055         * doc/posix-functions/linkat.texi: New file.
25056         * doc/posix-functions/mkdirat.texi: New file.
25057         * doc/posix-functions/mkfifoat.texi: New file.
25058         * doc/posix-functions/mknodat.texi: New file.
25059         * doc/posix-functions/open_wmemstream.texi: New file.
25060         * doc/posix-functions/openat.texi: New file.
25061         * doc/posix-functions/psiginfo.texi: New file.
25062         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25063         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25064         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25065         * doc/posix-functions/readlinkat.texi: New file.
25066         * doc/posix-functions/renameat.texi: New file.
25067         * doc/posix-functions/strerror_l.texi: New file.
25068         * doc/posix-functions/symlinkat.texi: New file.
25069         * doc/posix-functions/unlinkat.texi: New file.
25070         * doc/posix-functions/utimensat.texi: New file.
25071         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25072
25073 2008-12-14  Bruno Haible  <bruno@clisp.org>
25074
25075         Update doc for POSIX:2008.
25076         * doc/posix-functions/alphasort.texi: Renamed from
25077         doc/glibc-functions/alphasort.texi.
25078         * doc/posix-functions/dirfd.texi: Renamed from
25079         doc/glibc-functions/dirfd.texi.
25080         * doc/posix-functions/dprintf.texi: Renamed from
25081         doc/glibc-functions/dprintf.texi.
25082         * doc/posix-functions/duplocale.texi: Renamed from
25083         doc/glibc-functions/duplocale.texi.
25084         * doc/posix-functions/fexecve.texi: Renamed from
25085         doc/glibc-functions/fexecve.texi.
25086         * doc/posix-functions/fmemopen.texi: Renamed from
25087         doc/glibc-functions/fmemopen.texi.
25088         * doc/posix-functions/freelocale.texi: Renamed from
25089         doc/glibc-functions/freelocale.texi.
25090         * doc/posix-functions/getdate_err.texi: Renamed from
25091         doc/glibc-functions/getdate_err.texi.
25092         * doc/posix-functions/isalnum_l.texi: Renamed from
25093         doc/glibc-functions/isalnum_l.texi.
25094         * doc/posix-functions/isalpha_l.texi: Renamed from
25095         doc/glibc-functions/isalpha_l.texi.
25096         * doc/posix-functions/isblank_l.texi: Renamed from
25097         doc/glibc-functions/isblank_l.texi.
25098         * doc/posix-functions/iscntrl_l.texi: Renamed from
25099         doc/glibc-functions/iscntrl_l.texi.
25100         * doc/posix-functions/isdigit_l.texi: Renamed from
25101         doc/glibc-functions/isdigit_l.texi.
25102         * doc/posix-functions/isgraph_l.texi: Renamed from
25103         doc/glibc-functions/isgraph_l.texi.
25104         * doc/posix-functions/islower_l.texi: Renamed from
25105         doc/glibc-functions/islower_l.texi.
25106         * doc/posix-functions/isprint_l.texi: Renamed from
25107         doc/glibc-functions/isprint_l.texi.
25108         * doc/posix-functions/ispunct_l.texi: Renamed from
25109         doc/glibc-functions/ispunct_l.texi.
25110         * doc/posix-functions/isspace_l.texi: Renamed from
25111         doc/glibc-functions/isspace_l.texi.
25112         * doc/posix-functions/isupper_l.texi: Renamed from
25113         doc/glibc-functions/isupper_l.texi.
25114         * doc/posix-functions/iswalnum_l.texi: Renamed from
25115         doc/glibc-functions/iswalnum_l.texi.
25116         * doc/posix-functions/iswalpha_l.texi: Renamed from
25117         doc/glibc-functions/iswalpha_l.texi.
25118         * doc/posix-functions/iswblank_l.texi: Renamed from
25119         doc/glibc-functions/iswblank_l.texi.
25120         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25121         doc/glibc-functions/iswcntrl_l.texi.
25122         * doc/posix-functions/iswctype_l.texi: Renamed from
25123         doc/glibc-functions/iswctype_l.texi.
25124         * doc/posix-functions/iswdigit_l.texi: Renamed from
25125         doc/glibc-functions/iswdigit_l.texi.
25126         * doc/posix-functions/iswgraph_l.texi: Renamed from
25127         doc/glibc-functions/iswgraph_l.texi.
25128         * doc/posix-functions/iswlower_l.texi: Renamed from
25129         doc/glibc-functions/iswlower_l.texi.
25130         * doc/posix-functions/iswprint_l.texi: Renamed from
25131         doc/glibc-functions/iswprint_l.texi.
25132         * doc/posix-functions/iswpunct_l.texi: Renamed from
25133         doc/glibc-functions/iswpunct_l.texi.
25134         * doc/posix-functions/iswspace_l.texi: Renamed from
25135         doc/glibc-functions/iswspace_l.texi.
25136         * doc/posix-functions/iswupper_l.texi: Renamed from
25137         doc/glibc-functions/iswupper_l.texi.
25138         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25139         doc/glibc-functions/iswxdigit_l.texi.
25140         * doc/posix-functions/isxdigit_l.texi: Renamed from
25141         doc/glibc-functions/isxdigit_l.texi.
25142         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25143         doc/glibc-functions/mbsnrtowcs.texi.
25144         * doc/posix-functions/mkdtemp.texi: Renamed from
25145         doc/glibc-functions/mkdtemp.texi.
25146         * doc/posix-functions/newlocale.texi: Renamed from
25147         doc/glibc-functions/newlocale.texi.
25148         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25149         doc/glibc-functions/nl_langinfo_l.texi.
25150         * doc/posix-functions/open_memstream.texi: Renamed from
25151         doc/glibc-functions/open_memstream.texi.
25152         * doc/posix-functions/opterr.texi: Renamed from
25153         doc/glibc-functions/opterr.texi.
25154         * doc/posix-functions/optind.texi: Renamed from
25155         doc/glibc-functions/optind.texi.
25156         * doc/posix-functions/optopt.texi: Renamed from
25157         doc/glibc-functions/optopt.texi.
25158         * doc/posix-functions/psignal.texi: Renamed from
25159         doc/glibc-functions/psignal.texi.
25160         * doc/posix-functions/scandir.texi: Renamed from
25161         doc/glibc-functions/scandir.texi.
25162         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25163         doc/glibc-functions/sched_get_priority_min.texi.
25164         * doc/posix-functions/signgam.texi: Renamed from
25165         doc/glibc-functions/signgam.texi.
25166         * doc/posix-functions/stpcpy.texi: Renamed from
25167         doc/glibc-functions/stpcpy.texi.
25168         * doc/posix-functions/stpncpy.texi: Renamed from
25169         doc/glibc-functions/stpncpy.texi.
25170         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25171         doc/glibc-functions/strcasecmp_l.texi.
25172         * doc/posix-functions/strcoll_l.texi: Renamed from
25173         doc/glibc-functions/strcoll_l.texi.
25174         * doc/posix-functions/strfmon_l.texi: Renamed from
25175         doc/glibc-functions/strfmon_l.texi.
25176         * doc/posix-functions/strftime_l.texi: Renamed from
25177         doc/glibc-functions/strftime_l.texi.
25178         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25179         doc/glibc-functions/strncasecmp_l.texi.
25180         * doc/posix-functions/strndup.texi: Renamed from
25181         doc/glibc-functions/strndup.texi.
25182         * doc/posix-functions/strnlen.texi: Renamed from
25183         doc/glibc-functions/strnlen.texi.
25184         * doc/posix-functions/strsignal.texi: Renamed from
25185         doc/glibc-functions/strsignal.texi.
25186         * doc/posix-functions/strxfrm_l.texi: Renamed from
25187         doc/glibc-functions/strxfrm_l.texi.
25188         * doc/posix-functions/timer_gettime.texi: Renamed from
25189         doc/glibc-functions/timer_gettime.texi.
25190         * doc/posix-functions/tolower_l.texi: Renamed from
25191         doc/glibc-functions/tolower_l.texi.
25192         * doc/posix-functions/toupper_l.texi: Renamed from
25193         doc/glibc-functions/toupper_l.texi.
25194         * doc/posix-functions/towctrans_l.texi: Renamed from
25195         doc/glibc-functions/towctrans_l.texi.
25196         * doc/posix-functions/towlower_l.texi: Renamed from
25197         doc/glibc-functions/towlower_l.texi.
25198         * doc/posix-functions/towupper_l.texi: Renamed from
25199         doc/glibc-functions/towupper_l.texi.
25200         * doc/posix-functions/uselocale.texi: Renamed from
25201         doc/glibc-functions/uselocale.texi.
25202         * doc/posix-functions/vdprintf.texi: Renamed from
25203         doc/glibc-functions/vdprintf.texi.
25204         * doc/posix-functions/wcpcpy.texi:
25205         Renamed from doc/glibc-functions/wcpcpy.texi.
25206         * doc/posix-functions/wcpncpy.texi: Renamed from
25207         doc/glibc-functions/wcpncpy.texi.
25208         * doc/posix-functions/wcscasecmp.texi: Renamed from
25209         doc/glibc-functions/wcscasecmp.texi.
25210         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25211         doc/glibc-functions/wcscasecmp_l.texi.
25212         * doc/posix-functions/wcscoll_l.texi: Renamed from
25213         doc/glibc-functions/wcscoll_l.texi.
25214         * doc/posix-functions/wcsdup.texi: Renamed from
25215         doc/glibc-functions/wcsdup.texi.
25216         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25217         doc/glibc-functions/wcsncasecmp.texi.
25218         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25219         doc/glibc-functions/wcsncasecmp_l.texi.
25220         * doc/posix-functions/wcsnlen.texi: Renamed from
25221         doc/glibc-functions/wcsnlen.texi.
25222         * doc/posix-functions/wcsnrtombs.texi: Renamed from
25223         doc/glibc-functions/wcsnrtombs.texi.
25224         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
25225         doc/glibc-functions/wcsxfrm_l.texi.
25226         * doc/posix-functions/wctrans_l.texi: Renamed from
25227         doc/glibc-functions/wctrans_l.texi.
25228         * doc/posix-functions/wctype_l.texi: Renamed from
25229         doc/glibc-functions/wctype_l.texi.
25230         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25231         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
25232         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
25233         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
25234         these subsections.
25235         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
25236         Remove sections.
25237
25238 2008-12-14  Bruno Haible  <bruno@clisp.org>
25239
25240         Update doc for POSIX:2008.
25241         * doc/posix-functions/*.texi: Update URL of POSIX specification.
25242
25243 2008-12-14  Bruno Haible  <bruno@clisp.org>
25244
25245         Update doc for POSIX:2008.
25246         * doc/pastposix-functions/bcmp.texi: Renamed from
25247         doc/posix-functions/bcmp.texi.
25248         * doc/pastposix-functions/bcopy.texi: Renamed from
25249         doc/posix-functions/bcopy.texi.
25250         * doc/pastposix-functions/bsd_signal.texi: Renamed from
25251         doc/posix-functions/bsd_signal.texi.
25252         * doc/pastposix-functions/bzero.texi: Renamed from
25253         doc/posix-functions/bzero.texi.
25254         * doc/pastposix-functions/ecvt.texi: Renamed from
25255         doc/posix-functions/ecvt.texi.
25256         * doc/pastposix-functions/fcvt.texi: Renamed from
25257         doc/posix-functions/fcvt.texi.
25258         * doc/pastposix-functions/ftime.texi: Renamed from
25259         doc/posix-functions/ftime.texi.
25260         * doc/pastposix-functions/gcvt.texi: Renamed from
25261         doc/posix-functions/gcvt.texi.
25262         * doc/pastposix-functions/getcontext.texi: Renamed from
25263         doc/posix-functions/getcontext.texi.
25264         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25265         doc/posix-functions/gethostbyaddr.texi.
25266         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25267         doc/posix-functions/gethostbyname.texi.
25268         * doc/pastposix-functions/getwd.texi: Renamed from
25269         doc/posix-functions/getwd.texi.
25270         * doc/pastposix-functions/h_errno.texi: Renamed from
25271         doc/posix-functions/h_errno.texi.
25272         * doc/pastposix-functions/index.texi: Renamed from
25273         doc/posix-functions/index.texi.
25274         * doc/pastposix-functions/makecontext.texi: Renamed from
25275         doc/posix-functions/makecontext.texi.
25276         * doc/pastposix-functions/mktemp.texi: Renamed from
25277         doc/posix-functions/mktemp.texi.
25278         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25279         doc/posix-functions/pthread_attr_getstackaddr.texi.
25280         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25281         doc/posix-functions/pthread_attr_setstackaddr.texi.
25282         * doc/pastposix-functions/rindex.texi: Renamed from
25283         doc/posix-functions/rindex.texi.
25284         * doc/pastposix-functions/scalb.texi: Renamed from
25285         doc/posix-functions/scalb.texi.
25286         * doc/pastposix-functions/setcontext.texi: Renamed from
25287         doc/posix-functions/setcontext.texi.
25288         * doc/pastposix-functions/swapcontext.texi: Renamed from
25289         doc/posix-functions/swapcontext.texi.
25290         * doc/pastposix-functions/ualarm.texi: Renamed from
25291         doc/posix-functions/ualarm.texi.
25292         * doc/pastposix-functions/usleep.texi: Renamed from
25293         doc/posix-functions/usleep.texi.
25294         * doc/pastposix-functions/vfork.texi: Renamed from
25295         doc/posix-functions/vfork.texi.
25296         * doc/pastposix-functions/wcswcs.texi: Renamed from
25297         doc/posix-functions/wcswcs.texi.
25298         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25299         (Function Substitutes): Update.
25300
25301 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25302
25303         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25304         m4/strerror.m4.
25305
25306 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25307             Bruno Haible  <bruno@clisp.org>
25308
25309         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25310
25311 2008-12-13  Bruno Haible  <bruno@clisp.org>
25312
25313         * modules/strtoull (Depends-on): Remove unistd.
25314
25315 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25316
25317         * modules/strtoull (Depends-on): Add stdlib.
25318
25319 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25320
25321         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25322
25323 2008-12-10  Jim Meyering  <meyering@redhat.com>
25324
25325         gl_ASSERT: don't say assertions are disabled when they're not
25326         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25327         "checking whether to enable assertions... no", when they are in
25328         fact enabled.  This is solely a bug in the output of configure.
25329         In spite of saying "no", NDEBUG was not defined in that case.
25330         Also, as noted by Eric Blake, leave assertions enabled upon
25331         --enable-assert=INVALID.
25332
25333 2008-12-10  Bruno Haible  <bruno@clisp.org>
25334
25335         Change MODULES.html to refer to POSIX:2008 where possible.
25336         * MODULES.html.sh (POSIX2008_URL): New variable.
25337         (posix_headers): Remove sys/timeb, ucontext.
25338         (posix2001_headers): New variable.
25339         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25340         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25341         index, makecontext, mktemp, pthread_attr_getstackaddr,
25342         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25343         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25344         (posix2001_functions): New variable.
25345         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25346         otherwise.
25347
25348 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25349
25350         add missing include to parse-duration.c
25351         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25352         * modules/parse-duration (Depends-on): Add xalloc.
25353
25354         fix sed script reading maint.mk
25355         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25356         (syntax-check-rules): Use it.
25357
25358 2008-12-09  Bruno Haible  <bruno@clisp.org>
25359
25360         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25361         MacOS X 10.4/PowerPC.
25362         Reported by Simon Josefsson.
25363
25364 2008-12-08  Jim Meyering  <meyering@redhat.com>
25365
25366         work around mingw's lack of some S_IF definitions
25367         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25368         Reported by Simon Josefsson.
25369
25370 2008-12-08  Bruno Haible  <bruno@clisp.org>
25371
25372         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25373         applied to variables. Needed on MacOS X 10.4/PowerPC.
25374         Reported by Simon Josefsson.
25375
25376 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25377         and Eric Blake  <ebb9@byu.net>
25378
25379         assert: honor --enable-assert
25380         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25381         order to honor --enable-assert, rather than treating it as a
25382         synonym for --disable-assert.
25383
25384 2008-12-08  Jim Meyering  <meyering@redhat.com>
25385
25386         * lib/posixtm.c: Remove now-useless declaration of mktime.
25387
25388         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25389
25390 2008-12-07  Bruno Haible  <bruno@clisp.org>
25391
25392         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
25393         test_once): Mark functions as static.
25394         * tests/test-tls.c (test_tls): Likewise.
25395
25396 2008-12-07  Bruno Haible  <bruno@clisp.org>
25397
25398         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
25399         iconv_register_autodetect.
25400
25401 2008-12-07  Jim Meyering  <meyering@redhat.com>
25402
25403         posixtm.c: avoid a warning
25404         * lib/posixtm.c (posixtime): Don't initialize tm0.
25405         It's no longer needed to placate gcc4's -Wuninitialized,
25406         and the attempt to placate would elicit a new warning.
25407
25408         unicodeio.c: mark unused parameters
25409         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25410         (fallback_failure_callback): Likewise.
25411
25412 2008-12-07  Bruno Haible  <bruno@clisp.org>
25413
25414         * gnulib-tool (func_create_testdir): When building the tests
25415         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
25416         Reported by Simon Josefsson.
25417
25418 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25419
25420         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
25421
25422 2008-12-06  Bruno Haible  <bruno@clisp.org>
25423
25424         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
25425         Suggested by Eric Blake.
25426
25427 2008-12-06  Bruno Haible  <bruno@clisp.org>
25428
25429         Fix a c-stack test failure on MacOS X.
25430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
25431         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
25432         handler for SIGBUS as well.
25433         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
25434         install a signal handler for SIGBUS as well.
25435         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
25436
25437 2008-12-06  Bruno Haible  <bruno@clisp.org>
25438
25439         Advocacy documentation.
25440         * doc/gnulib-intro.texi (Benefits): New section.
25441         * doc/gnulib.texi: Update.
25442
25443 2008-12-06  Bruno Haible  <bruno@clisp.org>
25444
25445         Document the 'manywarnings' module.
25446         * doc/manywarnings.texi: New file.
25447         * doc/gnulib.texi: Include it.
25448
25449 2008-12-05  Eric Blake  <ebb9@byu.net>
25450
25451         tests: silence some gcc warnings
25452         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
25453         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
25454         type mismatches.
25455
25456 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25457             Bruno Haible  <bruno@clisp.org>
25458
25459         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
25460
25461 2008-11-29  Jim Meyering  <meyering@redhat.com>
25462
25463         unicodeio.c: mark unused parameters
25464         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25465         (fallback_failure_callback): Likewise.
25466
25467         fts: fix a thinko
25468         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
25469         (set_stat_type): Return S_IF*-valued "type" directly.
25470         Prompted by James Youngman's spotting a related bug.
25471         Confirmed by further testing through find.
25472
25473         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
25474         * lib/fts.c (D_TYPE): Define.
25475         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
25476         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
25477         (s_ifmt_shift_bits): New function.
25478         (set_stat_type): New function.
25479         (fts_build): When not calling fts_stat, call set_stat_type
25480         to propagate dirent.d_type info to fts_read caller.
25481         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
25482         fts_statp->st_mode type information may be valid.
25483
25484 2008-11-28  Simon Josefsson  <simon@josefsson.org>
25485
25486         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
25487         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
25488         <sds@gnu.org>.
25489
25490 2008-11-20  Bruno Haible  <bruno@clisp.org>
25491
25492         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
25493         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
25494         INCLUDE_NEXT.
25495         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
25496         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
25497         * modules/math (Makefile.am): Substitute
25498         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
25499         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25500
25501 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25502             Bruno Haible  <bruno@clisp.org>
25503
25504         * lib/stdint.in.h: Define all type macros so that their expansion is
25505         a single typedef'ed token. Fixes a compilation failure in Boost which
25506         does "using ::int8_t;".
25507
25508 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25509
25510         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
25511         gl_MANYWARN_ALL_GCC.
25512         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
25513         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
25514         * modules/manywarnings: New file.
25515         * MODULES.html.sh: Mention manywarnings module.
25516
25517 2008-11-18  Bruno Haible  <bruno@clisp.org>
25518
25519         * doc/gnulib-tool.texi (Unit tests): New section.
25520
25521 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25522
25523         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
25524         paths like 'lib/po/foo.po'.
25525
25526 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25527
25528         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
25529         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
25530
25531 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25532
25533         * m4/warnings.m4: Use CPPFLAGS to really check whether the
25534         parameter works.
25535
25536 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25537
25538         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
25539
25540 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25541
25542         * modules/parse-duration-tests: New file.
25543         * tests/test-parse-duration.sh: New file.
25544         * tests/test-parse-duration.c: New file.
25545
25546         New module 'parse-duration'.
25547         * lib/parse-duration.h: New file.
25548         * lib/parse-duration.c: New file.
25549         * modules/parse-duration: New file.
25550
25551 2008-11-17  Bruno Haible  <bruno@clisp.org>
25552
25553         * tests/test-select-out.sh: Comment out the first pipe test.
25554         Reported by Simon Josefsson.
25555
25556 2008-11-17  Bruno Haible  <bruno@clisp.org>
25557
25558         * modules/getaddrinfo (Depends-on): Add servent, hostent.
25559         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
25560         gl_HOSTENT.
25561
25562 2008-11-17  Bruno Haible  <bruno@clisp.org>
25563
25564         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
25565         -lnetwork and -lnet. Needed for Haiku and BeOS.
25566
25567 2008-11-16  Bruno Haible  <bruno@clisp.org>
25568
25569         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
25570
25571 2008-11-16  Bruno Haible  <bruno@clisp.org>
25572
25573         Avoid test failure on Haiku.
25574         * tests/test-fsync.c: Include <errno.h>.
25575         (main): Don't require that fsync (0) fails.
25576
25577 2008-11-15  Bruno Haible  <bruno@clisp.org>
25578
25579         New module 'hostent'.
25580         * modules/hostent: New file.
25581         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
25582
25583 2008-11-15  Bruno Haible  <bruno@clisp.org>
25584
25585         New module 'servent'.
25586         * modules/servent: New file.
25587         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
25588
25589 2008-11-15  Bruno Haible  <bruno@clisp.org>
25590
25591         Avoid generating same test program with two different rules.
25592         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
25593         test-frexp to test-frexp-nolibm.
25594         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
25595         test-frexpl to test-frexpl-nolibm.
25596
25597 2008-11-15  Bruno Haible  <bruno@clisp.org>
25598
25599         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
25600         $(FREXPL_LIBM).
25601
25602 2008-11-15  Bruno Haible  <bruno@clisp.org>
25603
25604         * lib/netdb.in.h: Activate the definitions also when the system's
25605         <netdb.h> has 'struct addrinfo'.
25606         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
25607         EAI_OVERFLOW or AI_NUMERICSERV.
25608         * doc/posix-headers/netdb.texi: Document the problem.
25609
25610 2008-11-15  Bruno Haible  <bruno@clisp.org>
25611
25612         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
25613
25614         Make the 'sched' module work on platforms where <sched.h> exists but
25615         is incomplete (such as Haiku).
25616         * lib/sched.in.h; Include the system's <sched.h> if it exists.
25617         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
25618         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
25619         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
25620         HAVE_STRUCT_SCHED_PARAM.
25621         * modules/sched (Depends-on): Add include_next.
25622         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
25623         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
25624         * doc/posix-headers/sched.texi: Document the issue.
25625
25626 2008-11-13  Jim Meyering  <meyering@redhat.com>
25627
25628         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
25629         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
25630         test would fail due to the difference in the Report bugs to ...
25631         line.  The expected address is empty, "<>", while the actual
25632         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
25633
25634 2008-11-12  Bruno Haible  <bruno@clisp.org>
25635
25636         lstat: don't compile lstat.c on systems lacking lstat
25637         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
25638         which don't have lstat; this is handled by lib/sys_stat.in.h already.
25639         Reported by Daniel P. Berrange via Jim Meyering.
25640
25641 2008-11-12  Jim Meyering  <meyering@redhat.com>
25642
25643         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
25644
25645 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25646
25647         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
25648         instead.
25649
25650 2008-11-12  Bruno Haible  <bruno@clisp.org>
25651
25652         * lib/unicodeio.c: Include unistr.h.
25653         (utf8_wctomb): Remove function.
25654         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
25655
25656 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25657
25658         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
25659         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
25660         <bruno@clisp.org>.
25661         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
25662
25663 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25664
25665         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
25666         * doc/gnulib.texi: Add section for warnings.
25667
25668 2008-11-11  Bruno Haible  <bruno@clisp.org>
25669
25670         * lib/sockets.h: Add a comment.
25671
25672 2008-11-11  Karl Berry  <karl@gnu.org>
25673
25674         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
25675
25676 2008-11-11  Eric Blake  <ebb9@byu.net>
25677
25678         fdl.texi: avoid git symlinks
25679         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
25680
25681 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25682
25683         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
25684
25685 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25686
25687         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
25688         (gl_WARN_ADD): Substitute $2 if literal.
25689
25690 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25691
25692         * m4/warning.m4: Remove.
25693
25694 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25695
25696         * m4/warnings.m4: Almost complete rewrite. :-)
25697
25698 2008-11-10  Simon Josefsson  <simon@josefsson.org>
25699
25700         * modules/warnings: New module.
25701         * m4/warnings.m4: New file.
25702         * MODULES.html.sh: Mention warnings module.
25703         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
25704         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25705
25706 2008-11-10  Eric Blake  <ebb9@byu.net>
25707
25708         fdl.texi: make a symlink to the latest version
25709         * doc/standards.texi: Revert today's earlier change.
25710         * doc/fdl-1.2.texi: Rename from old fdl.texi...
25711         * doc/fdl.texi: ...and replace this with a symlink to the newer
25712         fdl-1.3.texi.
25713
25714 2008-11-10  Bruno Haible  <bruno@clisp.org>
25715
25716         * tests/test-select-fd.c (main): Accept the result file name as fourth
25717         argument.
25718         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
25719         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
25720
25721 2008-11-10  Bruno Haible  <bruno@clisp.org>
25722
25723         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
25724         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
25725         as autoconf-substituted macros.
25726         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
25727         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
25728         gl_NETDB_H_DEFAULTS. Set these variables.
25729         * modules/netdb (Makefile.am): Substitute these variables.
25730
25731 2008-11-10  Eric Blake  <ebb9@byu.net>
25732
25733         standards.texi: include correct file for FDL 1.3
25734         * doc/standards.texi (GNU Free Documentation License): Change
25735         include file to pull in FDL 1.3, not 1.2.
25736
25737         fdl.texi: revert accidental change to license
25738         * doc/fdl.texi: This is FDL 1.2, not 1.3.
25739
25740 2008-11-10  Bruno Haible  <bruno@clisp.org>
25741
25742         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
25743         cross-compiling guesses also when the native compile gives no result.
25744
25745 2008-11-10  Bruno Haible  <bruno@clisp.org>
25746
25747         * lib/spawni.c (__spawni): Force variable into the stack.
25748
25749 2008-11-10  Bruno Haible  <bruno@clisp.org>
25750
25751         Add support for Haiku.
25752         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
25753         glibc and BeOS, but also on Haiku.
25754         * lib/fpurge.c (fpurge): Likewise.
25755         * lib/freadable.c (freadable): Likewise.
25756         * lib/freadahead.c (freadahead): Likewise.
25757         * lib/freading.c (freading): Likewise.
25758         * lib/freadptr.c (freadptr): Likewise.
25759         * lib/freadseek.c (freadptrinc): Likewise.
25760         * lib/fseeko.c (rpl_fseeko): Likewise.
25761         * lib/fseterr.c (fseterr): Likewise.
25762         * lib/fwritable.c (fwritable): Likewise.
25763         * lib/fwriting.c (fwriting): Likewise.
25764         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
25765
25766 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25767
25768         * lib/config.charset: Treat Haiku like BeOS.
25769
25770 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25771
25772         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
25773         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
25774
25775 2008-11-08  Bruno Haible  <bruno@clisp.org>
25776
25777         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
25778         AC_CACHE_CHECK.
25779
25780 2008-11-08  Bruno Haible  <bruno@clisp.org>
25781
25782         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
25783
25784 2008-11-08  Bruno Haible  <bruno@clisp.org>
25785
25786         * tests/test-select-fd.c: New file.
25787         * tests/test-select-in.sh: New file.
25788         * tests/test-select-out.sh: New file.
25789         * tests/test-select-stdin.c: New file.
25790         * modules/select-tests (Files): Add the new files.
25791         (Depends-on): Add gettimeofday.
25792         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
25793         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
25794         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
25795
25796 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
25797             Bruno Haible  <bruno@clisp.org>
25798
25799         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
25800
25801 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
25802
25803         * build-aux/pmccabe2html: Added support for C++ source files.
25804
25805 2008-11-05  Ben Pfaff  <blp@gnu.org>
25806
25807         Fix lib/close.c build on Windows.
25808         * modules/close (Files): Add lib/w32sock.h.
25809
25810 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
25811
25812         Accept Bison's NEWS format.
25813         * build-aux/announce-gen (print_news_deltas): Tweak
25814         $re_prefix.
25815
25816 2008-11-04  Bruno Haible  <bruno@clisp.org>
25817
25818         * modules/random_r (Maintainer): Add glibc.
25819
25820 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25821
25822         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
25823         by karl@freefriends.org (Karl Berry).
25824         * doc/alloca.texi: Likewise.
25825         * doc/c-ctype.texi: Likewise.
25826         * doc/c-strcase.texi: Likewise.
25827         * doc/c-strcaseeq.texi: Likewise.
25828         * doc/c-strcasestr.texi: Likewise.
25829         * doc/c-strstr.texi: Likewise.
25830         * doc/c-strtod.texi: Likewise.
25831         * doc/c-strtold.texi: Likewise.
25832         * doc/ctime.texi: Likewise.
25833         * doc/error.texi: Likewise.
25834         * doc/fdl.texi: Likewise.
25835         * doc/gcd.texi: Likewise.
25836         * doc/getdate.texi: Likewise.
25837         * doc/gnulib-intro.texi: Likewise.
25838         * doc/gnulib-tool.texi: Likewise.
25839         * doc/gnulib.texi: Likewise.
25840         * doc/inet_ntoa.texi: Likewise.
25841         * doc/maintain.texi: Likewise.
25842         * doc/make-stds.texi: Likewise.
25843         * doc/quote.texi: Likewise.
25844         * doc/regexprops-generic.texi: Likewise.
25845         * doc/standards.texi: Likewise.
25846         * doc/verify.texi: Likewise.
25847         * doc/visibility.texi: Likewise.
25848         * doc/gnulib.texi (GNU Free Documentation License): Include
25849         fdl-1.3.texi instead of fdl.texi.
25850
25851 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25852
25853         * doc/fdl-1.3.texi: New file, from
25854         <http://www.gnu.org/licenses/fdl-1.3.texi>.
25855         * modules/fdl-1.3: Add.
25856         * MODULES.html.sh: Add fdl-1.3.
25857
25858 2008-11-03  Bruno Haible  <bruno@clisp.org>
25859
25860         Make determination of absolute name of header file work with AIX xlc.
25861         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
25862         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
25863         preprocessing.
25864         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25865         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
25866
25867 2008-11-03  Simon Josefsson  <simon@josefsson.org>
25868
25869         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
25870         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
25871         <ludo@gnu.org>.
25872
25873 2008-11-02  Bruno Haible  <bruno@clisp.org>
25874
25875         Mark 'strpbrk' obsolete.
25876         * modules/strpbrk (Status, Notice): New sections.
25877         * modules/strtok_r (Depends-on): Add strpbrk.
25878
25879 2008-11-02  Bruno Haible  <bruno@clisp.org>
25880
25881         Mark 'strdup' obsolete.
25882         * modules/strdup (Status, Notice): New sections.
25883         * modules/findprog (Depends-on): Add strdup.
25884         * modules/getaddrinfo (Depends-on): Likewise.
25885         * modules/localename (Depends-on): Likewise.
25886         * modules/relocatable-lib (Depends-on): Likewise.
25887         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
25888         * modules/relocatable-prog (Depends-on): Likewise.
25889         * modules/trim (Depends-on): Likewise.
25890         * modules/unictype/gen-ctype (Depends-on): Likewise.
25891         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
25892
25893 2008-11-02  Bruno Haible  <bruno@clisp.org>
25894
25895         Mark 'strcspn' obsolete.
25896         * modules/strcspn (Status, Notice): New sections.
25897
25898 2008-11-02  Bruno Haible  <bruno@clisp.org>
25899
25900         Mark 'rmdir' obsolete.
25901         * modules/rmdir (Status, Notice): New sections.
25902         * modules/clean-temp (Depends-on): Add rmdir.
25903         * modules/openat (Depends-on): Likewise.
25904
25905 2008-11-02  Bruno Haible  <bruno@clisp.org>
25906
25907         Mark 'raise' obsolete.
25908         * modules/raise (Status, Notice): New sections.
25909         (Include): Specify <signal.h>.
25910         * modules/stdio (Depends-on): Add raise.
25911         * modules/write (Depends-on): Likewise.
25912
25913 2008-11-02  Bruno Haible  <bruno@clisp.org>
25914
25915         Mark 'memset' obsolete.
25916         * modules/memset (Status, Notice): New sections.
25917
25918 2008-11-02  Bruno Haible  <bruno@clisp.org>
25919
25920         Mark 'memmove' obsolete.
25921         * modules/memmove (Status, Notice): New sections.
25922         * modules/argp (Depends-on): Add memmove.
25923         * modules/argz (Depends-on): Likewise.
25924         * modules/canonicalize (Depends-on): Likewise.
25925         * modules/canonicalize-lgpl (Depends-on): Likewise.
25926         * modules/fts (Depends-on): Likewise.
25927         * modules/getcwd (Depends-on): Likewise.
25928         * modules/human (Depends-on): Likewise.
25929         * modules/regex (Depends-on): Likewise.
25930         * modules/striconveh (Depends-on): Likewise.
25931         * modules/trim (Depends-on): Likewise.
25932         * modules/unistr/u8-move (Depends-on): Likewise.
25933         * modules/unistr/u16-move (Depends-on): Likewise.
25934         * modules/unistr/u32-move (Depends-on): Likewise.
25935
25936 2008-11-02  Bruno Haible  <bruno@clisp.org>
25937
25938         Mark 'memcpy' obsolete.
25939         * modules/memcpy (Status, Notice): New sections.
25940
25941 2008-11-02  Bruno Haible  <bruno@clisp.org>
25942
25943         Mark 'memcmp' obsolete.
25944         * modules/memcmp (Status, Notice): New sections.
25945         * modules/argmatch (Depends-on): Add memchr.
25946         * modules/backupfile (Depends-on): Likewise.
25947         * modules/c-strcasestr (Depends-on): Likewise.
25948         * modules/crypto/des (Depends-on): Likewise.
25949         * modules/csharpcomp (Depends-on): Likewise.
25950         * modules/fnmatch (Depends-on): Likewise.
25951         * modules/git-merge-changelog (Depends-on): Likewise.
25952         * modules/isnand (Depends-on): Likewise.
25953         * modules/isnand-nolibm (Depends-on): Likewise.
25954         * modules/isnanf (Depends-on): Likewise.
25955         * modules/isnanf-nolibm (Depends-on): Likewise.
25956         * modules/isnanl (Depends-on): Likewise.
25957         * modules/isnanl-nolibm (Depends-on): Likewise.
25958         * modules/mbchar (Depends-on): Likewise.
25959         * modules/memcoll (Depends-on): Likewise.
25960         * modules/quotearg (Depends-on): Likewise.
25961         * modules/regex (Depends-on): Likewise.
25962         * modules/relocatable-prog (Depends-on): Likewise.
25963         * modules/same (Depends-on): Likewise.
25964         * modules/signbit (Depends-on): Likewise.
25965         * modules/strcasestr-simple (Depends-on): Likewise.
25966         * modules/unictype/gen-ctype (Depends-on): Likewise.
25967         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
25968         * modules/uniname/uniname (Depends-on): Likewise.
25969         * modules/unistr/u8-cmp (Depends-on): Likewise.
25970
25971 2008-11-02  Bruno Haible  <bruno@clisp.org>
25972
25973         Mark 'memchr' obsolete.
25974         * modules/memchr (Status, Notice): New sections.
25975         * modules/argp (Depends-on): Add memchr.
25976         * modules/base64 (Depends-on): Likewise.
25977         * modules/c-strcasestr (Depends-on): Likewise.
25978         * modules/chdir-long (Depends-on): Likewise.
25979         * modules/fnmatch (Depends-on): Likewise.
25980         * modules/getsubopt (Depends-on): Likewise.
25981         * modules/git-merge-changelog (Depends-on): Likewise.
25982         * modules/glob (Depends-on): Likewise.
25983         * modules/strcasestr-simple (Depends-on): Likewise.
25984         * modules/strnlen (Depends-on): Likewise.
25985
25986 2008-11-02  Bruno Haible  <bruno@clisp.org>
25987
25988         Mark 'atexit' obsolete.
25989         * modules/atexit (Status, Notice): New sections.
25990         * modules/chdir-long (Depends-on): Add atexit.
25991         * modules/wait-process (Depends-on): Likewise.
25992
25993 2008-11-02  Bruno Haible  <bruno@clisp.org>
25994
25995         * gnulib-tool: New option --with-obsolete.
25996         (func_usage): Document it.
25997         (func_modules_transitive_closure): Drop obsolete dependencies if
25998         incobsolete is not true.
25999         (func_import): Read and save the incobsolete variable to the cache.
26000
26001 2008-11-02  Bruno Haible  <bruno@clisp.org>
26002
26003         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26004         * gnulib-tool: New option --extract-status.
26005         (func_usage): Document it.
26006         (sed_extract_prog): Recognize it.
26007         (func_get_status): New function.
26008
26009 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26010
26011         * modules/sockets (License): Change from LGPL to LGPLv2+.
26012
26013 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26014
26015         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26016
26017 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26018
26019         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26020         Mention times and sys_times.
26021         * modules/sys_times, modules/sys_times-tests: New modules.
26022         * modules/times, modules/times-tests: Likewise
26023         * m4/sys_times_h.m4: New file.
26024         * lib/sys_times.in.h: Likewise
26025         * lib/times.c: Likewise.
26026         * tests/test-sys_times.c: Likewise.
26027         * tests/test-times.c: Likewise.
26028         * doc/posix-headers/sys_times.texi: Update.
26029         * doc/posix-functions/times.texi: Update.
26030
26031 2008-10-28  Jim Meyering  <meyering@redhat.com>
26032
26033         * modules/tempname (Depends-on): Add lstat.
26034
26035         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26036
26037 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26038
26039         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26040         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26041         using idiom used elsewhere in gnulib.
26042
26043 2008-10-27  Jim Meyering  <meyering@redhat.com>
26044
26045         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26046
26047 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26048
26049         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26050         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26051         programs.
26052         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26053
26054 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26055
26056         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26057
26058 2008-10-27  Bruno Haible  <bruno@clisp.org>
26059
26060         * tests/test-lstat.c: Include <stdio.h>.
26061
26062 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26063
26064         * modules/lstat-tests: New module.
26065         * tests/test-lstat.c: New file.
26066
26067 2008-10-26  Jim Meyering  <meyering@redhat.com>
26068
26069         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26070
26071 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26072             Bruno Haible  <bruno@clisp.org>
26073
26074         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26075         * modules/configmake (Include): Add a note that the include must come
26076         after all system headers.
26077         * lib/javaversion.c: Include configmake.h after all other includes.
26078
26079 2008-10-26  Bruno Haible  <bruno@clisp.org>
26080
26081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26082         HAVE_STRUCT_RANDOM_DATA to 1.
26083         (gl_STDLIB_H): Simplify.
26084
26085 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26086
26087         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26088         substitute HAVE_STRUCT_RANDOM_DATA.
26089         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26090         random_data.
26091         * modules/stdlib (Makefile.am): Substitute
26092         HAVE_STRUCT_RANDOM_DATA.
26093
26094 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26095
26096         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26097         * doc/gnulib-intro.texi (Copyright): Likewise.
26098
26099 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26100
26101         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26102         findings.
26103
26104 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26105             Bruno Haible  <bruno@clisp.org>
26106
26107         * lib/unistd.in.h: Include <winsock2.h>.
26108         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26109         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26110         Provide dummy declarations.
26111         (gethostname): Override.
26112         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26113         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26114         gl_PREREQ_SYS_H_WINSOCK2.
26115         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26116         * doc/posix-functions/gethostname.texi: More details.
26117
26118 2008-10-25  Bruno Haible  <bruno@clisp.org>
26119
26120         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26121         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26122         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26123
26124         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26125         here ...
26126         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26127         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26128         gl_UNISTD_H_DEFAULTS.
26129
26130 2008-10-25  Eric Blake  <ebb9@byu.net>
26131
26132         signbit: avoid spurious compiler failure
26133         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26134         declarations inside function.
26135
26136 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26137             Bruno Haible  <bruno@clisp.org>
26138
26139         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26140         * modules/random_r (Depends-on): Add stdint.
26141
26142 2008-10-24  Bruno Haible  <bruno@clisp.org>
26143
26144         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26145         Eggert.
26146         * modules/strerror (License): Likewise.
26147
26148 2008-10-24  Jim Meyering  <meyering@redhat.com>
26149
26150         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26151         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26152
26153 2008-10-24  Eric Blake  <ebb9@byu.net>
26154
26155         getgroups: fix compilation when getgroups is available
26156         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26157         but with <config.h> override of getgroups disabled.
26158
26159 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26160
26161         * doc/gnulib.texi (Header files): Add note about C++ problems.
26162         Explained by Bruno Haible <bruno@clisp.org>.
26163
26164 2008-10-23  Bruno Haible  <bruno@clisp.org>
26165
26166         Define a dummy SA_NODEFER macro on Interix.
26167         * lib/signal.in.h (SA_NODEFER): Define fallback.
26168         Reported by Aleksey Cheusov <cheusov@tut.by> via
26169         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26170
26171 2008-10-23  Bruno Haible  <bruno@clisp.org>
26172
26173         * modules/freadahead (License): Change to LGPLv2+.
26174         Suggested by Simon Josefsson.
26175
26176 2008-10-23  Jim Meyering  <meyering@redhat.com>
26177
26178         random_r: new module
26179         * modules/random_r: New file.
26180         * m4/random_r.m4: New file.
26181         * lib/random_r.c: New file, from glibc.
26182         * modules/random_r-tests: New file.
26183         * tests/test-random_r.c: New file.
26184         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26185          Declare.
26186         (RAND_MAX): Define.
26187         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26188         * modules/stdlib: Substitute them, too.
26189         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26190         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26191         * doc/glibc-functions/random_r.texi: Likewise.
26192         * doc/glibc-functions/setstate_r.texi: Likewise.
26193         * doc/glibc-functions/srandom_r.texi: Likewise.
26194         * config/srclist.txt: Mention it.
26195
26196 2008-10-23  David Lutterkort  <lutter@redhat.com>
26197
26198         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26199         link requirement
26200
26201 2008-10-23  Jim Meyering  <meyering@redhat.com>
26202
26203         selinux-h: mark parameters of stub functions as intentionally unused
26204         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26205         * lib/se-context.in.h: Likewise.
26206
26207 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26208
26209         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26210
26211 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26212
26213         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26214
26215 2008-10-22  Eric Blake  <ebb9@byu.net>
26216
26217         glthread/thread: avoid compiler warning
26218         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26219         Add unreachable abort to silence compiler.
26220
26221 2008-10-22  Eric Blake  <ebb9@byu.net>
26222
26223         netdb: also supply struct addrinfo for cygwin 1.5.x
26224         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
26225         older cygwin.
26226         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
26227         cygwin.
26228         * doc/posix-headers/netdb.texi (netdb.h): Document this.
26229
26230 2008-10-22  Bruno Haible  <bruno@clisp.org>
26231
26232         * users.txt: Update entry about pspp.
26233
26234 2008-10-21  Bruno Haible  <bruno@clisp.org>
26235
26236         Simplification.
26237         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
26238         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
26239
26240         Simplification.
26241         * lib/ioctl.c (ioctl): Don't undefine.
26242         * lib/socket.c (socket): Don't undefine.
26243
26244         Remove unused module indicator macros.
26245         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
26246         GNULIB_$1 as a C macro.
26247
26248         * doc/posix-functions/close.texi: Undo last change.
26249         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
26250         Windows platforms.
26251
26252 2008-10-21  Bruno Haible  <bruno@clisp.org>
26253
26254         Add gethostname() declaration to <unistd.h>.
26255         * lib/unistd.in.h (gethostname): New declaration.
26256         * lib/gethostname.c: Include <unistd.h>.
26257         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
26258         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
26259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
26260         and HAVE_GETHOSTNAME.
26261         * modules/gethostname (Depends-on): Add unistd.
26262         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26263         (Include): Specify <unistd.h>.
26264         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26265         HAVE_GETHOSTNAME.
26266         * tests/test-gethostname.c: Include <unistd.h> first.
26267
26268 2008-10-21  Bruno Haible  <bruno@clisp.org>
26269
26270         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26271         * modules/select-tests (Depends-on): Likewise.
26272         Reported by Simon Josefsson.
26273
26274 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26275
26276         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26277         * lib/accept.c: New file, based on winsock.c.
26278         * lib/bind.c: New file, based on winsock.c.
26279         * lib/connect.c: New file, based on winsock.c.
26280         * lib/getpeername.c: New file, based on winsock.c.
26281         * lib/getsockname.c: New file, based on winsock.c.
26282         * lib/getsockopt.c: New file, based on winsock.c.
26283         * lib/ioctl.c: New file, based on winsock.c.
26284         * lib/listen.c: New file, based on winsock.c.
26285         * lib/recv.c: New file, based on winsock.c.
26286         * lib/recvfrom.c: New file, based on winsock.c.
26287         * lib/send.c: New file, based on winsock.c.
26288         * lib/sendto.c: New file, based on winsock.c.
26289         * lib/setsockopt.c: New file, based on winsock.c.
26290         * lib/shutdown.c: New file, based on winsock.c.
26291         * lib/socket.c: New file, based on winsock.c.
26292         * lib/w32sock.h: New file, based on winsock.c.
26293         * lib/winsock.c: Remove file.
26294         * modules/accept: Likewise.
26295         * modules/bind: Likewise.
26296         * modules/connect: Likewise.
26297         * modules/getpeername: Likewise.
26298         * modules/getsockname: Likewise.
26299         * modules/getsockopt: Likewise.
26300         * modules/ioctl: Likewise.
26301         * modules/listen: Likewise.
26302         * modules/recv: Likewise.
26303         * modules/recvfrom: Likewise.
26304         * modules/send: Likewise.
26305         * modules/sendto: Likewise.
26306         * modules/setsockopt: Likewise.
26307         * modules/shutdown: Likewise.
26308         * modules/socket: Use socket.c instead of winsock.c.
26309         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26310         * doc/posix-functions/accept.texi: Doc fix.
26311         * doc/posix-functions/bind.texi: Doc fix.
26312         * doc/posix-functions/close.texi: Doc fix.
26313         * doc/posix-functions/connect.texi: Doc fix.
26314         * doc/posix-functions/getpeername.texi: Doc fix.
26315         * doc/posix-functions/getsockname.texi: Doc fix.
26316         * doc/posix-functions/getsockopt.texi: Doc fix.
26317         * doc/posix-functions/ioctl.texi: Doc fix.
26318         * doc/posix-functions/listen.texi: Doc fix.
26319         * doc/posix-functions/recv.texi: Doc fix.
26320         * doc/posix-functions/recvfrom.texi: Doc fix.
26321         * doc/posix-functions/send.texi: Doc fix.
26322         * doc/posix-functions/sendto.texi: Doc fix.
26323         * doc/posix-functions/setsockopt.texi: Doc fix.
26324         * doc/posix-functions/shutdown.texi: Doc fix.
26325         * doc/posix-functions/socket.texi: Doc fix.
26326
26327 2008-10-20  Bruno Haible  <bruno@clisp.org>
26328
26329         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26330         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26331         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26332         as an alias for SIGABRT.
26333         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26334         (sigaction): Map it to SIGABRT.
26335         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26336
26337 2008-10-20  Bruno Haible  <bruno@clisp.org>
26338
26339         * lib/fts.c: Don't include lstat.h.
26340         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26341
26342         Move the lstat() declaration to <sys/stat.h>.
26343         * lib/lstat.h: Remove file.
26344         * lib/sys_stat.in.h: Add special invocation convention.
26345         (lstat): New declaration.
26346         * lib/lstat.c (orig_lstat): New function.
26347         (rpl_lstat): Use orig_lstat instead of lstat.
26348         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26349         AC_C_INLINE. Set REPLACE_LSTAT.
26350         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26351         and REPLACE_LSTAT.
26352         * modules/lstat (Files): Remove lib/lstat.h.
26353         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26354         (Include): Specify <sys/stat.h> instead of lstat.h.
26355         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26356         REPLACE_LSTAT.
26357         * NEWS: Mention the change.
26358
26359 2008-10-20  Bruno Haible  <bruno@clisp.org>
26360
26361         * modules/posix_spawn-tests: New file.
26362         * tests/test-posix_spawn3.c: New file.
26363
26364 2008-10-20  Bruno Haible  <bruno@clisp.org>
26365
26366         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26367         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26368         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26369         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26370         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26371
26372 2008-10-20  Bruno Haible  <bruno@clisp.org>
26373
26374         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26375         of posix_spawn on AIX 5.3.
26376
26377 2008-10-20  Bruno Haible  <bruno@clisp.org>
26378
26379         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26380
26381 2008-10-20  Bruno Haible  <bruno@clisp.org>
26382
26383         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26384         of AC_LANG_PROGRAM.
26385
26386 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26387
26388         * lib/netdb.in.h: Don't define GNU specific constants until they
26389         are supported or needed.  Reported by Bruno Haible
26390         <bruno@clisp.org>.
26391
26392 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26393
26394         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
26395
26396 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26397
26398         * lib/getaddrinfo.h: Remove file.
26399         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
26400         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
26401         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
26402         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
26403         * modules/netdb: Substitute GNULIB_GETADDRINFO.
26404         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
26405         * tests/test-getaddrinfo.c: Likewise.
26406         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
26407         * NEWS: Mention change.
26408
26409 2008-10-19  Bruno Haible  <bruno@clisp.org>
26410
26411         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
26412
26413 2008-10-19  Bruno Haible  <bruno@clisp.org>
26414
26415         * lib/wait-process.c: Include simply <sys/wait.h>.
26416         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
26417         WIFSTOPPED): Remove fallback definitions.
26418         * modules/wait-process (Depends-on): Add sys_wait.
26419
26420         New module 'sys_wait'.
26421         * modules/sys_wait: New file.
26422         * lib/sys_wait.in.h: New file, partially copied from
26423         lib/wait-process.c.
26424         * m4/sys_wait_h.m4: New file.
26425         * doc/posix-headers/sys_wait.texi: Mention the new module.
26426
26427 2008-10-19  Bruno Haible  <bruno@clisp.org>
26428
26429         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
26430
26431 2008-10-19  Bruno Haible  <bruno@clisp.org>
26432
26433         Assume that waitpid() fills an 'int' status, not a 'union wait'.
26434         * lib/wait-process.c (WAIT_T): Remove type.
26435         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
26436         (wait_subprocess): Update.
26437
26438 2008-10-19  Bruno Haible  <bruno@clisp.org>
26439
26440         New module 'atoll'.
26441         * modules/atoll: New file.
26442         * lib/stdlib.in.h (atoll): New declaration.
26443         * lib/atoll.c: New file, from glibc with modifications.
26444         * m4/atoll.m4: New file.
26445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
26446         HAVE_ATOLL.
26447         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
26448         * doc/posix-functions/atoll.texi: Mention the new module.
26449
26450 2008-10-19  Bruno Haible  <bruno@clisp.org>
26451
26452         Add strtoull() declaration to <stdlib.h>.
26453         * lib/stdlib.in.h (strtoull): New declaration.
26454         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26455         Set HAVE_STRTOULL.
26456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
26457         HAVE_STRTOULL.
26458         * modules/strtoull (Depends-on): Add stdlib.
26459         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26460         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
26461         HAVE_STRTOULL.
26462
26463 2008-10-19  Bruno Haible  <bruno@clisp.org>
26464
26465         Add strtoll() declaration to <stdlib.h>.
26466         * lib/stdlib.in.h (strtoll): New declaration.
26467         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26468         Set HAVE_STRTOLL.
26469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
26470         HAVE_STRTOLL.
26471         * modules/strtoll (Depends-on): Add stdlib.
26472         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26473         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
26474
26475 2008-10-19  Bruno Haible  <bruno@clisp.org>
26476
26477         * modules/bcopy (Depends-on): Add strings.
26478         (Include): Specify <strings.h>.
26479
26480 2008-10-19  Bruno Haible  <bruno@clisp.org>
26481
26482         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
26483
26484 2008-10-19  Bruno Haible  <bruno@clisp.org>
26485
26486         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
26487         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26488         mingw.
26489
26490 2008-10-19  Bruno Haible  <bruno@clisp.org>
26491
26492         * lib/atanl.c: Don't include isnanl.h.
26493         * lib/cosl.c: Likewise.
26494         * lib/ldexpl.c: Likewise.
26495         * lib/logl.c: Likewise.
26496         * lib/sinl.c: Likewise.
26497         * lib/sqrtl.c: Likewise.
26498         * lib/tanl.c: Likewise.
26499
26500         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
26501         * lib/isnanf.h: Remove file.
26502         * lib/isnand.h: Remove file.
26503         * lib/isnanl.h: Remove file.
26504         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
26505         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
26506         macros.
26507         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
26508         HAVE_ISNANF, don't define it as a C macro.
26509         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
26510         HAVE_ISNAND, don't define it as a C macro.
26511         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
26512         HAVE_ISNANL, don't define it as a C macro.
26513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
26514         HAVE_ISNAN[FDL].
26515         * modules/isnanf (Files): Remove lib/isnanf.h.
26516         (Depends-on): Add math.
26517         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26518         (Include): Specify <math.h> instead of isnanf.h.
26519         * modules/isnand (Files): Remove lib/isnand.h.
26520         (Depends-on): Add math.
26521         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26522         (Include): Specify <math.h> instead of isnand.h.
26523         * modules/isnanl (Files): Remove lib/isnanl.h.
26524         (Depends-on): Add math.
26525         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26526         (Include): Specify <math.h> instead of isnanl.h.
26527         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
26528         HAVE_ISNAN[FDL].
26529         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
26530         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
26531         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
26532         * NEWS: Mention the change.
26533
26534 2008-10-18  Bruno Haible  <bruno@clisp.org>
26535
26536         Add getusershell(), setusershell(), endusershell() declarations to
26537         <unistd.h>.
26538         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
26539         declarations.
26540         * lib/getusershell.c: Include unistd.h.
26541         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
26542         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26543         HAVE_GETUSERSHELL.
26544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
26545         and HAVE_GETUSERSHELL.
26546         * modules/getusershell (Depends-on): Add unistd, extensions.
26547         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26548         (Include): Specify <unistd.h>.
26549         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
26550         HAVE_GETUSERSHELL.
26551
26552 2008-10-18  Bruno Haible  <bruno@clisp.org>
26553
26554         Add a getloadavg() declaration to <stdlib.h>.
26555         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
26556         getloadavg declaration.
26557         (getloadavg): New declaration.
26558         * lib/getloadavg.c: Include <stdlib.h> first.
26559         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
26560         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
26561         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
26562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
26563         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26564         * modules/getloadavg (Depends-on): Add stdlib, extensions.
26565         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26566         (Include): Specify <stdlib.h>.
26567         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
26568         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26569
26570 2008-10-18  Bruno Haible  <bruno@clisp.org>
26571
26572         * lib/dirchownmod.c: Don't include lchmod.h.
26573
26574         Move the lchmod() declaration to <sys/stat.h>.
26575         * lib/lchmod.h: Remove file.
26576         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
26577         (lchmod): New declaration, moved here from lib/lchown.h.
26578         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
26579         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
26580         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
26581         and HAVE_LCHMOD.
26582         * modules/lchmod (Files): Remove lib/lchmod.h.
26583         (Depends-on): Add sys_stat, extensions.
26584         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26585         (Include): Specify <sys/stat.h> instead of lchmod.h.
26586         * modules/sys_stat (Depends-on): Add link-warning.
26587         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
26588         definition of GL_LINK_WARNING.
26589         * NEWS: Mention the change.
26590
26591 2008-10-18  Bruno Haible  <bruno@clisp.org>
26592
26593         * lib/fchdir.c: Don't include dirfd.h.
26594         * lib/fts.c: Likewise.
26595         * lib/getcwd.c: Likewise.
26596         * lib/glob.c: Likewise.
26597
26598         Move the dirfd() declaration to <dirent.h>.
26599         * lib/dirfd.h: Remove file.
26600         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
26601         (dirfd): New declaration.
26602         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
26603         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
26604         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
26605         HAVE_DECL_DIRFD.
26606         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
26607         HAVE_DECL_DIRFD.
26608         * modules/dirfd (Files): Remove lib/dirfd.h.
26609         (Depends-on): Add dirent, extensions.
26610         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
26611         (Include): Specify <dirent.h> instead of dirfd.h.
26612         * modules/dirent (Depends-on): Add link-warning.
26613         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
26614         definition of GL_LINK_WARNING.
26615         * NEWS: Mention the change.
26616
26617 2008-10-18  Bruno Haible  <bruno@clisp.org>
26618
26619         Move the euidaccess() declaration to <unistd.h>.
26620         * lib/euidaccess.h: Remove file.
26621         * lib/unistd.in.h (euidaccess): New declaration.
26622         * lib/euidaccess.c: Don't include euidaccess.h.
26623         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
26624         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
26625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
26626         and HAVE_EUIDACCESS.
26627         * modules/euidaccess (Files): Remove lib/euidaccess.h.
26628         (Depends-on): Add unistd.
26629         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26630         (Include): Specify <unistd.h> instead of euidaccess.h.
26631         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
26632         HAVE_EUIDACCESS.
26633         * NEWS: Mention the change.
26634
26635 2008-10-18  Bruno Haible  <bruno@clisp.org>
26636
26637         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
26638
26639         Move the getdomainname() declaration to <unistd.h>.
26640         * lib/getdomainname.h: Remove file.
26641         * lib/unistd.in.h (getdomainname): New declaration.
26642         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
26643         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26644         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26645         HAVE_GETDOMAINNAME.
26646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26647         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
26648         * modules/getdomainname (Files): Remove lib/getdomainname.h.
26649         (Depends-on): Add unistd, extensions.
26650         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26651         (Includes): Specify <unistd.h> instead of getdomainname.h.
26652         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
26653         HAVE_GETDOMAINNAME.
26654         * NEWS: Mention the change.
26655
26656 2008-10-18  Bruno Haible  <bruno@clisp.org>
26657
26658         * modules/dirent: New file.
26659         * m4/dirent_h.m4: New file.
26660         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
26661         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
26662         * modules/fchdir (Files): Remove lib/dirent.in.h.
26663         (Depends-on): Add dirent.
26664         (Makefile.am): Move rules to modules/dirent.
26665         * doc/posix-headers/dirent.texi: Mention the new module.
26666
26667 2008-10-18  Bruno Haible  <bruno@clisp.org>
26668
26669         Avoid -Wunused-parameter warnings in public gnulib header files.
26670         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
26671         macro.
26672         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
26673
26674 2008-10-18  Bruno Haible  <bruno@clisp.org>
26675
26676         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
26677         * doc/glibc-functions/error.texi: Mention the module 'error'.
26678         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
26679         * doc/glibc-functions/getdomainname.texi: Mention the module
26680         'getdomainname'.
26681         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
26682         * doc/glibc-functions/getpagesize.texi: Mention the module
26683         'getpagesize'.
26684         * doc/glibc-functions/getusershell.texi: Mention the module
26685         'getusershell'.
26686         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
26687         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
26688         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
26689         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
26690         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
26691         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
26692         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
26693         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
26694         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
26695         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
26696         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
26697         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
26698         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
26699         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
26700
26701 2008-10-17  Bruno Haible  <bruno@clisp.org>
26702
26703         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
26704         HP-UX and IRIX, use -0.0L.
26705         * tests/test-ceill.c (minus_zero): Likewise.
26706         * tests/test-floorl.c (minus_zero): Likewise.
26707         * tests/test-frexpl.c (minus_zero): Likewise.
26708         * tests/test-isnan.c (minus_zerol): Likewise.
26709         * tests/test-isnanl.h (minus_zero): Likewise.
26710         * tests/test-ldexpl.c (minus_zero): Likewise.
26711         * tests/test-roundl.c (minus_zero): Likewise.
26712         * tests/test-signbit.c (minus_zerol): Likewise.
26713         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26714         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26715         * tests/test-truncl.c (minus_zero): Likewise.
26716         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26717         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26718         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
26719         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
26720
26721 2008-10-17  Bruno Haible  <bruno@clisp.org>
26722
26723         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
26724         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
26725         that it gets activated only for gcc >= 3.0.
26726         * lib/dirent.in.h: Likewise.
26727         * lib/errno.in.h: Likewise.
26728         * lib/fcntl.in.h: Likewise.
26729         * lib/float.in.h: Likewise.
26730         * lib/iconv.in.h: Likewise.
26731         * lib/inttypes.in.h: Likewise.
26732         * lib/locale.in.h: Likewise.
26733         * lib/math.in.h: Likewise.
26734         * lib/netdb.in.h: Likewise.
26735         * lib/netinet_in.in.h: Likewise.
26736         * lib/search.in.h: Likewise.
26737         * lib/signal.in.h: Likewise.
26738         * lib/spawn.in.h: Likewise.
26739         * lib/stdarg.in.h: Likewise.
26740         * lib/stdint.in.h: Likewise.
26741         * lib/stdio.in.h: Likewise.
26742         * lib/stdlib.in.h: Likewise.
26743         * lib/string.in.h: Likewise.
26744         * lib/strings.in.h: Likewise.
26745         * lib/sys_file.in.h: Likewise.
26746         * lib/sys_ioctl.in.h: Likewise.
26747         * lib/sys_select.in.h: Likewise.
26748         * lib/sys_socket.in.h: Likewise.
26749         * lib/sys_stat.in.h: Likewise.
26750         * lib/sys_time.in.h: Likewise.
26751         * lib/sysexits.in.h: Likewise.
26752         * lib/time.in.h: Likewise.
26753         * lib/unistd.in.h: Likewise.
26754         * lib/wchar.in.h: Likewise.
26755         * lib/wctype.in.h: Likewise.
26756         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26757
26758 2008-10-17  Jim Meyering  <meyering@redhat.com>
26759
26760         ignore-value: don't depend on inline module
26761         * modules/ignore-value (Depends-on): Remove 'inline'.
26762         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
26763         Suggestion from Bruno Haible.
26764
26765 2008-10-17  Bruno Haible  <bruno@clisp.org>
26766
26767         New implementation of condition variables for Win32.
26768         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
26769         (gl_linked_waitqueue_t): New type.
26770         (gl_cond_t): Use it.
26771         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
26772         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
26773         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
26774         (glthread_cond_init_func, glthread_cond_wait_func,
26775         glthread_cond_timedwait_func, glthread_cond_signal_func,
26776         glthread_cond_broadcast_func, glthread_cond_destroy_func):
26777         Reimplemented on the basis of gl_linked_waitqueue_t.
26778         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
26779         gl_waitqueue_t.
26780         (gl_rwlock_t): Update.
26781         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
26782
26783 2008-10-17  Simon Josefsson  <simon@josefsson.org>
26784
26785         * modules/recvfrom (Depends-on): Add dependency on getpeername.
26786         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26787
26788 2008-10-17  Jim Meyering  <meyering@redhat.com>
26789
26790         ignore-value: new module
26791         * modules/ignore-value: New file.
26792         * lib/ignore-value.h: New file.
26793         * MODULES.html.sh (Compiler warning management): New section,
26794         just for this module.  More to come.
26795
26796 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26797
26798         open-safer.c: avoid 'signed and unsigned in conditional...' warning
26799         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
26800         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
26801
26802 2008-10-16  Jim Meyering  <meyering@redhat.com>
26803
26804         openat-die.c: avoid 'no previous prototype' warning
26805         * lib/openat-die.c: Include "openat.h".
26806         Reported by Reuben Thomas <rrt@sc3d.org>.
26807
26808 2008-10-16  Simon Josefsson  <simon@josefsson.org>
26809
26810         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
26811         * lib/netdb.in.h: Fix typo.
26812         Reported by Bruno Haible  <bruno@clisp.org>
26813
26814         * lib/netdb.in.h: Include sys/socket.h for platforms without
26815         netdb.h, to get structures like hostent on MinGW.
26816         * modules/netdb (Depends-on): Add sys_socket.
26817
26818 2008-10-15  Simon Josefsson  <simon@josefsson.org>
26819
26820         * modules/netdb, modules/netdb-tests: New file.
26821         * m4/netdb_h.m4: New file.
26822         * lib/netdb.in.h: Add, currently just an empty file pending
26823         definitions.
26824         * tests/test-netdb.c: New file.
26825         * doc/posix-headers/netdb.texi: Mention that we replace it if
26826         needed.
26827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26828         netdb.
26829
26830 2008-10-15  Simon Josefsson  <simon@josefsson.org>
26831
26832         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
26833         with code.
26834
26835 2008-10-13  Bruno Haible  <bruno@clisp.org>
26836
26837         * lib/glthread/cond.c (glthread_cond_wait_func,
26838         glthread_cond_timedwait_func): Add a comment.
26839
26840 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26841
26842         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
26843         * tests/test-select.c: Likewise,
26844
26845 2008-10-13  Bruno Haible  <bruno@clisp.org>
26846
26847         * lib/glthread/cond.c (glthread_cond_wait_func,
26848         glthread_cond_timedwait_func): Fix variable name.
26849         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26850
26851 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
26852
26853         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
26854         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
26855         struct sockaddr.sa_len.
26856         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
26857
26858 2008-10-13  Simon Josefsson  <simon@josefsson.org>
26859
26860         * build-aux/pmccabe2html: Add css and css_url parameters.
26861
26862 2008-10-12  Bruno Haible  <bruno@clisp.org>
26863
26864         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
26865         calling aclx_get.
26866         Reported by Rainer Tammer <tammer@tammer.net>.
26867
26868 2008-10-12  Bruno Haible  <bruno@clisp.org>
26869
26870         Use msvcrt aware primitives for creation/termination of Win32 threads.
26871         * lib/glthread/thread.c: Include <process.h>.
26872         (glthread_create_func): Use _beginthreadex instead of CreateThread.
26873         (wrapper_func): Update signature.
26874         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
26875
26876 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26877             Bruno Haible  <bruno@clisp.org>
26878
26879         Provide a Win32 implementation of the 'cond' module.
26880         * lib/glthread/cond.h [USE_WIN32]: New implementation.
26881         * lib/glthread/cond.c (glthread_cond_init_func,
26882         glthread_cond_wait_func, glthread_cond_timedwait_func,
26883         glthread_cond_signal_func, glthread_cond_broadcast_func,
26884         glthread_cond_destroy_func) [USE_WIN32]: New functions.
26885         * modules/cond (Dependencies): Add gettimeofday.
26886
26887 2008-10-11  Bruno Haible  <bruno@clisp.org>
26888
26889         Make sleep work on older versions of mingw.
26890         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
26891         only whether it exists.
26892         * doc/posix-functions/sleep.texi: Mention the problem with older
26893         versions of mingw.
26894
26895 2008-10-11  Bruno Haible  <bruno@clisp.org>
26896
26897         New module 'shutdown'.
26898         * modules/shutdown: New file.
26899         * lib/sys_socket.in.h (shutdown): New declaration.
26900         * lib/winsock.c (shutdown): New function.
26901         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26902         GNULIB_SHUTDOWN.
26903         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
26904         * doc/posix-functions/shutdown.texi: Document the new module.
26905
26906 2008-10-11  Jim Meyering  <meyering@redhat.com>
26907
26908         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
26909
26910 2008-10-11  Bruno Haible  <bruno@clisp.org>
26911
26912         New module 'fclose'.
26913         * modules/fclose: New file.
26914         * lib/stdio.in.h (fclose): New declaration.
26915         * lib/fclose.c: New file.
26916         * m4/fclose.m4: New file.
26917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
26918         REPLACE_FCLOSE.
26919         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
26920         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
26921         REPLACE_FCLOSE.
26922         * modules/close (Depends-on): fclose.
26923         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
26924
26925 2008-10-11  Bruno Haible  <bruno@clisp.org>
26926
26927         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
26928         set errno and don't call _close.
26929
26930 2008-10-10  Bruno Haible  <bruno@clisp.org>
26931
26932         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
26933         ACL, not afterwards. Fixes test failure on Cygwin.
26934
26935 2008-10-09  Ben Pfaff  <blp@gnu.org>
26936
26937         * build-aux/announce-gen: Fix gnulib version related part of usage
26938         message.  Die with a useful error message if no tarballs are
26939         found.
26940
26941 2008-10-10  Jim Meyering  <meyering@redhat.com>
26942
26943         bootstrap: use git's --depth=N option only if it's supported
26944         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
26945         recognize the --depth option.  Reported by Pádraig Brady.
26946
26947 2008-10-09  Bruno Haible  <bruno@clisp.org>
26948
26949         New module 'ioctl'.
26950         * modules/ioctl: New file.
26951         * lib/sys_socket.in.h (ioctl): Remove declaration.
26952         * lib/winsock.c: Include <sys/ioctl.h>.
26953         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
26954         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26955         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
26956         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
26957         * doc/posix-functions/ioctl.texi: Mention the new module.
26958
26959 2008-10-09  Bruno Haible  <bruno@clisp.org>
26960
26961         New module 'sys_ioctl'.
26962         * lib/sys_ioctl.in.h: New file.
26963         * m4/sys_ioctl_h.m4: New file.
26964         * modules/sys_ioctl: New file.
26965         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
26966
26967 2008-10-09  Bruno Haible  <bruno@clisp.org>
26968
26969         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
26970         * lib/winsock.c: Include <stdarg.h>.
26971         (rpl_ioctl): Change to second argument 'int' and then varargs.
26972
26973 2008-10-09  Bruno Haible  <bruno@clisp.org>
26974
26975         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
26976         when the sys_socket module is present and the system has <winsock2.h>.
26977
26978 2008-10-09  Bruno Haible  <bruno@clisp.org>
26979
26980         * doc/posix-functions/close.texi: Mention module 'close' instead of
26981         module 'sys_socket'.
26982
26983 2008-10-09  Bruno Haible  <bruno@clisp.org>
26984
26985         * doc/glibc-headers/sys_ioctl.texi: New file.
26986         * doc/gnulib.texi: Include it.
26987
26988 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26989             Bruno Haible  <bruno@clisp.org>
26990
26991         Combine the two replacements of 'close'.
26992         * lib/sys_socket.in.h (close): Define to a reminder to include
26993         <unistd.h>.
26994         (_gl_close_fd_maybe_socket): New declaration.
26995         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
26996         * lib/winsock.c (close): Remove undefinition.
26997         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
26998         needed for the gnulib module 'close'.
26999         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27000         define to an error symbol or to a warning, if suitable.
27001         * lib/close.c: Include <sys/socket.h>.
27002         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27003         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27004         UNISTD_H_HAVE_WINSOCK2_H.
27005         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27007         UNISTD_H_HAVE_WINSOCK2_H.
27008         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27009         (configure.ac): Set a module indicator.
27010         (Makefile.am): Substitute GNULIB_CLOSE.
27011         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27012         * modules/poll-tests (Depends-on): Add close.
27013         * modules/select-tests (Depends-on): Likewise.
27014
27015 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27016             Bruno Haible  <bruno@clisp.org>
27017
27018         New module 'close'.
27019         * modules/close: New file.
27020         * lib/unistd.in.h (close): Move declaration out of the
27021         FCHDIR_REPLACEMENT scope.
27022         (_gl_unregister_fd): New declaration.
27023         * lib/close.c: New file.
27024         * lib/fchdir.c (rpl_close): Remove function.
27025         * m4/close.m4: New file.
27026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27027         close.
27028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27029         REPLACE_CLOSE.
27030         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27031         REPLACE_CLOSE.
27032         * modules/fchdir (Depends-on): Add close.
27033
27034 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27035             Bruno Haible  <bruno@clisp.org>
27036
27037         * lib/fcntl.in.h (open): Simplify conditionals.
27038         (_gl_register_fd): New declaration.
27039         * lib/fchdir.c (rpl_open): Remove function.
27040         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27041         also.
27042         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27044         open.
27045
27046 2008-10-09  Jim Meyering  <meyering@redhat.com>
27047
27048         GNUmakefile: use the more name-space-friendly "_version"
27049         * top/GNUmakefile (_dummy): Update.
27050         (_version): Rename from "version".
27051
27052 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27053             Bruno Haible  <bruno@clisp.org>
27054
27055         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27056         rpl_close.
27057         (_gl_register_fd): New function, extracted from rpl_open.
27058         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27059         (rpl_open, rpl_opendir): Use _gl_register_fd.
27060
27061 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27062
27063         Fix organization of 'open' replacement.
27064         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27065         (gl_FUNC_OPEN): Use it.
27066         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27067
27068 2008-10-08  Bruno Haible  <bruno@clisp.org>
27069
27070         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27071
27072 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27073
27074         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27075         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27076         listen).
27077
27078 2008-10-08  Eric Blake  <ebb9@byu.net>
27079
27080         GNUmakefile: add 'make version' target
27081         * top/GNUmakefile (_curr-ver): Split version update rules...
27082         (version): ...into a target.
27083
27084 2008-10-07  Bruno Haible  <bruno@clisp.org>
27085
27086         Use a more portable replacement expression for -0.0L.
27087         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27088         instead of -0.0L. Fix m4 quotation.
27089
27090         * tests/test-signbit.c: Include <float.h>.
27091         (minus_zero): New variable.
27092         (test_signbitl): Use minus_zero instead of -zero.
27093         * modules/signbit-tests (Depends-on): Add float.
27094
27095         * tests/test-ceill.c: Include <float.h>.
27096         (zero): Remove variable.
27097         (minus_zero): New variable.
27098         (main): Use minus_zero instead of -zero.
27099         * modules/ceill-tests (Depends-on): Add float.
27100
27101         * tests/test-floorl.c: Include <float.h>.
27102         (zero): Remove variable.
27103         (minus_zero): New variable.
27104         (main): Use minus_zero instead of -zero.
27105         * modules/floorl-tests (Depends-on): Add float.
27106
27107         * tests/test-roundl.c: Include <float.h>.
27108         (zero): Remove variable.
27109         (minus_zero): New variable.
27110         (main): Use minus_zero instead of -zero.
27111         * modules/roundl-tests (Depends-on): Add float.
27112
27113         * tests/test-truncl.c: Include <float.h>.
27114         (zero): Remove variable.
27115         (minus_zero): New variable.
27116         (main): Use minus_zero instead of -zero.
27117         * modules/truncl-tests (Depends-on): Add float.
27118
27119         * tests/test-frexpl.c (zero): Remove variable.
27120         (minus_zero): New variable.
27121         (main): Use minus_zero instead of -zero.
27122         * modules/frexpl-tests (Depends-on): Add float.
27123
27124         * tests/test-isnan.c (zerol): Remove variable.
27125         (minus_zerol): New variable.
27126         (test_long_double): Use minus_zerol instead of -zerol.
27127         * modules/isnan-tests (Depends-on): Add float.
27128
27129         * tests/test-isnanl.h (zero): Remove variable.
27130         (minus_zero): New variable.
27131         (main): Use minus_zero instead of -zero.
27132         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27133         * modules/isnanl-tests (Depends-on): Add float.
27134
27135         * tests/test-ldexpl.c (zero): Remove variable.
27136         (minus_zero): New variable.
27137         (main): Use minus_zero instead of -zero.
27138         * modules/ldexpl-tests (Depends-on): Add float.
27139
27140         * tests/test-snprintf-posix.h (zerol): Remove variable.
27141         (minus_zerol): New variable.
27142         (test_function): Use minus_zerol instead of -zerol.
27143         * modules/snprintf-posix-tests (Depends-on): Add float.
27144         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27145
27146         * tests/test-sprintf-posix.h (zerol): Remove variable.
27147         (minus_zerol): New variable.
27148         (test_function): Use minus_zerol instead of -zerol.
27149         * modules/sprintf-posix-tests (Depends-on): Add float.
27150         * modules/vsprintf-posix-tests (Depends-on): Add float.
27151
27152         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27153         (minus_zerol): New variable.
27154         (test_function): Use minus_zerol instead of -zerol.
27155         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27156
27157         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27158         (minus_zerol): New variable.
27159         (test_function): Use minus_zerol instead of -zerol.
27160         * modules/vasprintf-posix-tests (Depends-on): Add float.
27161
27162 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27163
27164         * MODULES.html.sh (Support for building documentation): Mention
27165         pmccabe2html.  Sort entries.
27166
27167         Add pmccabe2html module, from gnupdf.
27168         * build-aux/pmccabe.css: New file.
27169         * build-aux/pmccabe2html: New file.
27170         * m4/pmccabe2html.m4: New file.
27171         * modules/pmccabe2html: New file.
27172
27173 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27174
27175         flock: new module
27176         * MODULES.html.sh: Add to list of modules.
27177         * lib/flock.c: flock implementation for Windows and Unix systems
27178         which have fcntl.
27179         * doc/glibc-functions/flock.texi: Update documentation.
27180         * lib/sys_file.in.h: <sys/file.h> header file.
27181         * m4/flock.m4: M4 macros.
27182         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27183         * modules/flock: flock module.
27184         * modules/flock-tests: flock tests module.
27185         * modules/sys_file: sys/file.h module.
27186         * tests/test-flock.c: test suite for flock.
27187
27188 2008-10-06  Jim Meyering  <meyering@redhat.com>
27189
27190         bootstrap: check for LT_INIT more portably still ;-)
27191         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27192         Spotted by Bruno Haible.
27193
27194 2008-10-06  Eric Blake  <ebb9@byu.net>
27195
27196         test-signbit: avoid tripping Irix cc bug on -0.0L
27197         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27198         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27199         entire testsuite consistent and avoids an Irix 6.2 bug.
27200
27201 2008-10-05  Bruno Haible  <bruno@clisp.org>
27202             Jim Meyering  <jim@meyering.net>
27203
27204         Add an option for ignoring EPIPE during close_stdout.
27205         * lib/closeout.h: Include <stdbool.h>.
27206         (close_stdout_set_ignore_EPIPE): New declaration.
27207         * lib/closeout.c: Include <stdbool.h>.
27208         (ignore_EPIPE): New variable.
27209         (close_stdout_set_ignore_EPIPE): New function.
27210         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27211         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27212         failure.
27213         * modules/closeout (Depends-on): Add stdbool.
27214
27215 2008-10-05  Bruno Haible  <bruno@clisp.org>
27216
27217         * modules/accept: New file.
27218         * modules/bind: New file.
27219         * modules/connect: New file.
27220         * modules/getpeername: New file.
27221         * modules/getsockname: New file.
27222         * modules/getsockopt: New file.
27223         * modules/listen: New file.
27224         * modules/recv: New file.
27225         * modules/recvfrom: New file.
27226         * modules/send: New file.
27227         * modules/sendto: New file.
27228         * modules/setsockopt: New file.
27229         * modules/socket: New file.
27230         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
27231         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27232         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
27233         the particular module is requested. Add a link warning when the
27234         particular module is not requested.
27235         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
27236         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
27237         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
27238         the particular module is requested.
27239         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
27240         gl_SYS_SOCKET_H_DEFAULTS): New macros.
27241         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
27242         * modules/sys_socket (Depends-on): Add link-warning.
27243         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
27244         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
27245         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
27246         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
27247         GL_LINK_WARNING.
27248         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
27249         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
27250         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
27251         * doc/posix-functions/getpeername.texi: Mention the new module
27252         'getpeername'.
27253         * doc/posix-functions/getsockname.texi: Mention the new module
27254         'getsockname'.
27255         * doc/posix-functions/getsockopt.texi: Mention the new module
27256         'getsockopt'.
27257         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
27258         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
27259         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
27260         * doc/posix-functions/send.texi: Mention the new module 'send'.
27261         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
27262         * doc/posix-functions/setsockopt.texi: Mention the new module
27263         'setsockopt'.
27264         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27265         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27266         listen, connect, accept.
27267         * modules/select-tests (Depends-on): Likewise.
27268
27269 2008-10-05  Bruno Haible  <bruno@clisp.org>
27270
27271         * lib/winsock.c (strerror): Remove unused #undef.
27272         (rpl_close): Remove unused local variable.
27273
27274         * modules/sys_socket (Depends-on); Add errno.
27275
27276 2008-10-05  Bruno Haible  <bruno@clisp.org>
27277
27278         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27279         (select): Add a link warning when the 'select' module is not used.
27280         * modules/sys_select (Depends-on): Add link-warning.
27281         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27282         Suggested by Paolo Bonzini.
27283
27284 2008-10-05  Jim Meyering  <meyering@redhat.com>
27285
27286         bootstrap: check for LT_INIT more portably
27287         * build-aux/bootstrap: Avoid using grep -E, since it's not
27288         portable enough.  Suggestion from Bruno Haible.
27289
27290 2008-10-05  Bruno Haible  <bruno@clisp.org>
27291
27292         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27293         as being fixed by gnulib.
27294
27295 2008-10-05  Bruno Haible  <bruno@clisp.org>
27296
27297         * modules/select-tests: New file, mostly copied from
27298         modules/sys_select-tests.
27299         * tests/test-select.c: New file, mostly copied from
27300         tests/test-sys_select.c.
27301         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27302         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27303         (Makefile.am): Remove test_sys_select_LDADD.
27304
27305         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27306         to an undefined symbol, for an error message.
27307         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27308         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27309         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27310         winsock-select.c here.
27311         * modules/sys_select (Files): Remove lib/winsock-select.c.
27312         (Depends-on): Remove alloca.
27313         (Makefile.am): Substitute GNULIB_SELECT.
27314         * modules/select: New file.
27315         * doc/posix-functions/select.texi: Update.
27316
27317 2008-10-05  Bruno Haible  <bruno@clisp.org>
27318
27319         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27320         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27321         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27322         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27323         getdtablesize.
27324         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27325         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27326
27327 2008-10-05  Bruno Haible  <bruno@clisp.org>
27328
27329         * modules/getdtablesize-tests: New file.
27330         * tests/test-getdtablesize.c: New file.
27331
27332         New module 'getdtablesize'.
27333         * lib/unistd.in.h (getdtablesize): New declaration.
27334         * lib/getdtablesize.c: New file.
27335         * m4/getdtablesize.m4: New file.
27336         * modules/getdtablesize: New file.
27337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27338         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27339         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27340         HAVE_GETDTABLESIZE.
27341         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27342
27343 2008-10-05  Bruno Haible  <bruno@clisp.org>
27344
27345         * modules/sched (Makefile.am): Fix typo.
27346         Reported by Simon Josefsson.
27347
27348 2008-10-05  Jim Meyering  <meyering@redhat.com>
27349
27350         bootstrap: check for LT_INIT, too
27351         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27352         are deprecated.  Suggestion from Ralf Wildenhues.
27353
27354 2008-10-05  Bruno Haible  <bruno@clisp.org>
27355
27356         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27357         overriding them by ours.
27358         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27359
27360 2008-10-05  Jim Meyering  <meyering@redhat.com>
27361
27362         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27363         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27364         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27365
27366 2008-10-04  Bruno Haible  <bruno@clisp.org>
27367
27368         * modules/dup2 (License): Change to LGPLv2+.
27369         * modules/sleep (License): Likewise.
27370         * modules/perror (License): Likewise.
27371         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27372         Blake.
27373         * modules/signal (License): Likewise.
27374         * modules/sigprocmask (License): Likewise.
27375         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27376         Meyering.
27377
27378 2008-10-04  Bruno Haible  <bruno@clisp.org>
27379
27380         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27381         Reported by Rainer Tammer <tammer@tammer.net>.
27382
27383 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27384             Bruno Haible  <bruno@clisp.org>
27385
27386         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27387         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27388         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27389
27390 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
27391
27392         filevercmp: new module
27393         * lib/filevercmp.h: New function filevercmp comparing version strings.
27394         * lib/filevercmp.c: Implementation of filevercmp function.
27395         * modules/filevercmp: Module metadata.
27396         * tests/test-filevercmp.c: Unit test for new module.
27397         * modules/filevercmp-tests: Unit test metadata.
27398         * MODULES.html.sh: Add filevercmp module.
27399
27400 2008-10-03  Bruno Haible  <bruno@clisp.org>
27401
27402         * lib/c-ctype.h: Add comment.
27403         Reported by Jim Meyering.
27404
27405 2008-10-02  Bruno Haible  <bruno@clisp.org>
27406
27407         * modules/posix_spawn-internal (Depends-on): Add 'open'.
27408
27409 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27410
27411         * build-aux/bootstrap: Allow renaming bootstrap, and change the
27412         name of bootstrap.conf accordingly.
27413
27414 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27415
27416         * build-aux/bootstrap: Install git-merge-changelog configuration
27417         items into .gitconfig if needed.
27418
27419 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27420
27421         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
27422         git repository, and initialize/update it accordingly.
27423
27424 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
27425
27426         * modules/fsync-tests: New file.
27427         * tests/test-fsync.c: New file.
27428
27429         New module 'fsync'.
27430         * lib/fsync.c: New file.
27431         * m4/fsync.m4: New file.
27432         * modules/fsync: New file.
27433         * lib/unistd.in.h (fsync): New declaration.
27434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
27435         GNULIB_FSYNC and HAVE_FSYNC.
27436         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
27437         * MODULES.html.sh (posix_functions): Add fsync.
27438         * doc/posix-functions/fsync.texi: Mention the new module.
27439
27440 2008-10-02  Jim Meyering  <meyering@redhat.com>
27441
27442         fts.c: sync with similar code from coreutils' remove.c
27443         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
27444         Guard also with "#if defined __linux__", since for now at least,
27445         this code is Linux-kernel-specific.
27446
27447 2008-10-02  Jim Meyering  <meyering@redhat.com>
27448
27449         fts: bug fixes
27450         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
27451         Include <sys/vfs.h>, not <sys/statfs.h>.
27452
27453         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
27454         Include <sys/vfs.h>, not <sys/statfs.h>.
27455
27456 2008-10-01  Bruno Haible  <bruno@clisp.org>
27457
27458         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
27459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
27460         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
27461         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
27462         * doc/posix-functions/posix_spawnp.texi: Likewise.
27463         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
27464         whether posix_spawn actually works.
27465         * m4/pipe.m4 (gl_PIPE): Likewise.
27466         * modules/execute (Files): Add m4/posix_spawn.m4.
27467         * modules/pipe (Files): Add m4/posix_spawn.m4.
27468         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
27469
27470 2008-10-01  Jim Meyering  <meyering@redhat.com>
27471
27472         remove trailing spaces
27473         * NEWS: Likewise.
27474         * lib/poll.c (poll): Likewise.
27475         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
27476         * lib/winsock.c (rpl_close): Likewise.
27477         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
27478         * modules/yield: Likewise.
27479         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
27480         * tests/test-sys_select.c (connect_to_socket): Likewise.
27481
27482         fts.c: adjust a new interface to be more generally useful
27483         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
27484         (fts_build): Adjust caller.
27485
27486 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27487
27488         * modules/cond-tests: New file.
27489         * tests/test-cond.c: New file.
27490
27491 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27492             Bruno Haible  <bruno@clisp.org>
27493
27494         * modules/cond (Dependencies): Add errno, time.
27495         * lib/glthread/cond.h: Include <time.h>.
27496         (gl_cond_define, gl_cond_define_initialized): Use the same definition
27497         across platforms.
27498
27499 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27500             Bruno Haible  <bruno@clisp.org>
27501
27502         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
27503
27504 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27505             Bruno Haible  <bruno@clisp.org>
27506
27507         * modules/tls-tests (Depends-on): Add thread, yield.
27508         (configure.ac): Remove all checks.
27509         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
27510         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27511         gl_thread_self): Remove definitions. Include glthread/thread.h and
27512         glthread/yield.h instead.
27513         (test_tls): Pass an additional NULL argument to gl_thread_join.
27514
27515 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27516             Bruno Haible  <bruno@clisp.org>
27517
27518         * modules/lock-tests (Depends-on): Add thread, yield.
27519         (configure.ac): Remove all checks.
27520         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
27521         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27522         gl_thread_self): Remove definitions. Include glthread/thread.h and
27523         glthread/yield.h instead.
27524         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
27525         additional NULL argument to gl_thread_join.
27526
27527 2008-09-30  Bruno Haible  <bruno@clisp.org>
27528
27529         Fix the Win32 implementation of the 'thread' module.
27530         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
27531         pointer type.
27532         (gl_thread_self): Invoke gl_thread_self_func.
27533         (gl_thread_self_func): New declaration.
27534         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
27535         (do_init_self_key, init_self_key): New functions.
27536         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
27537         Remove some fields.
27538         (running_threads, running_lock): Remove variables.
27539         (get_current_thread_handle): New function.
27540         (gl_thread_self_func, wrapper_func, glthread_create_func,
27541         glthread_join_func, gl_thread_exit_func): Largely rewritten and
27542         simplified.
27543
27544 2008-09-30  Bruno Haible  <bruno@clisp.org>
27545
27546         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
27547         files.
27548
27549 2008-09-30  Jim Meyering  <meyering@redhat.com>
27550
27551         fts.m4: correct the test for statfs.f_type
27552         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
27553         when checking for statfs.f_type.
27554
27555 2008-09-15  Simon Josefsson  <simon@josefsson.org>
27556
27557         tests: avoid some compiler warnings
27558         * tests/test-memchr.c (main): Pass NULL indirectly.
27559         * tests/test-getdate.c (main): Remove unused variable 'ret'.
27560
27561 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
27562
27563         getdate.y: disallow countable dayshifts like "4 yesterday ago"
27564         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
27565         exactly specified dayshifts.
27566         (dayshift): New rule.
27567         (rel): Add dayshift.
27568         (relative_time_table) [tomorrow, yesterday, today, now]:
27569         Use tDAY_SHIFT in place of tDAY_UNIT.
27570         * tests/test-getdate.c: Add tests for now-disallowed countable
27571         dayshifts, e.g., "4 yesterday ago".
27572
27573 2008-09-29  Bruno Haible  <bruno@clisp.org>
27574
27575         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
27576         * tests/test-posix_spawn1.in.sh: Renamed from
27577         tests/test-posix_spawn.in.sh.
27578         * tests/test-posix_spawn2.c: New file.
27579         * tests/test-posix_spawn2.in.sh: New file.
27580         * modules/posix_spawnp-tests (Files): Update.
27581         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
27582
27583 2008-09-29  Bruno Haible  <bruno@clisp.org>
27584
27585         Propagate effects of putenv/setenv/unsetenv to child processes.
27586         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
27587         * lib/pipe.c (create_pipe): Likewise.
27588
27589 2008-09-29  Bruno Haible  <bruno@clisp.org>
27590
27591         Enable use of shell scripts as executables in mingw.
27592         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
27593         run the program as a shell script.
27594         * lib/pipe.c (create_pipe): Likewise.
27595         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
27596         resulting array.
27597
27598 2008-09-29  Eric Blake  <ebb9@byu.net>
27599
27600         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
27601
27602 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
27603
27604         * doc/posix-functions/accept.texi: Update mingw problems.
27605         * doc/posix-functions/bind.texi: Update mingw problems.
27606         * doc/posix-functions/close.texi: Update mingw problems.
27607         * doc/posix-functions/connect.texi: Update mingw problems.
27608         * doc/posix-functions/getpeername.texi: Update mingw problems.
27609         * doc/posix-functions/getsockname.texi: Update mingw problems.
27610         * doc/posix-functions/getsockopt.texi: Update mingw problems.
27611         * doc/posix-functions/ioctl.texi: Update mingw problems.
27612         * doc/posix-functions/listen.texi: Update mingw problems.
27613         * doc/posix-functions/recv.texi: Update mingw problems.
27614         * doc/posix-functions/recvfrom.texi: Update mingw problems.
27615         * doc/posix-functions/select.texi: Update mingw problems.
27616         * doc/posix-functions/send.texi: Update mingw problems.
27617         * doc/posix-functions/sendto.texi: Update mingw problems.
27618         * doc/posix-functions/setsockopt.texi: Update mingw problems.
27619         * doc/posix-functions/socket.texi: Update mingw problems.
27620
27621 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
27622             Bruno Haible  <bruno@clisp.org>
27623
27624         * lib/sys_select.in.h: Include sys/time.h.
27625         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
27626         * modules/sys_select: Depend on sys_time.
27627         * tests/test-sys_select.c: Test that sys/select.h defines struct
27628         timeval fully.
27629
27630 2008-09-29  Bruno Haible  <bruno@clisp.org>
27631
27632         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
27633         * lib/sys_select.in.h: Likewise.
27634
27635 2008-09-29  Bruno Haible  <bruno@clisp.org>
27636
27637         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
27638
27639 2008-09-29  Bruno Haible  <bruno@clisp.org>
27640
27641         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
27642         Set LIBSOCKET instead of augmenting LIBS.
27643         * modules/sockets (Link): New section.
27644         * modules/sockets-tests (test_sockets_LDADD): New variable.
27645         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
27646         * modules/poll-tests (test_poll_LDADD): New variable.
27647         * NEWS: Document the change.
27648
27649 2008-09-29  Bruno Haible  <bruno@clisp.org>
27650
27651         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
27652         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
27653         ARPA_INET_H directly.
27654         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27655
27656 2008-09-28  Bruno Haible  <bruno@clisp.org>
27657
27658         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
27659         from gl_HEADER_SYS_SOCKET.
27660         (gl_HEADER_SYS_SOCKET): Invoke it.
27661         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27662
27663 2008-09-28  Bruno Haible  <bruno@clisp.org>
27664
27665         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
27666         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
27667         Needed on OSF/1 4.0.
27668
27669 2008-09-28  Bruno Haible  <bruno@clisp.org>
27670
27671         Override open more carefully.
27672         * lib/open.c (orig_open): New function.
27673         (rpl_open): Use orig_open instead of open.
27674         * lib/fcntl.in.h: Add special invocation convention.
27675         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
27676         (gl_FUNC_OPEN): Invoke it.
27677
27678         Override freopen more carefully.
27679         * lib/freopen.c (orig_freopen): New function.
27680         (rpl_freopen): Use orig_freopen instead of freopen.
27681         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
27682         (gl_FUNC_FREOPEN): Invoke it.
27683
27684         Override fopen more carefully.
27685         * lib/fopen.c (orig_fopen): New function.
27686         (rpl_fopen): Use orig_fopen instead of fopen.
27687         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
27688         (gl_FUNC_FOPEN): Invoke it.
27689         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
27690
27691 2008-09-28  Bruno Haible  <bruno@clisp.org>
27692
27693         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
27694         SIGPIPE.
27695
27696 2008-09-28  Bruno Haible  <bruno@clisp.org>
27697
27698         * tests/test-sigaction.c (handler, main): Disable the check whether
27699         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
27700         glibc systems with LinuxThreads.
27701
27702 2008-09-28  Bruno Haible  <bruno@clisp.org>
27703
27704         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
27705
27706         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
27707         with AIX xlc.
27708         * lib/fcntl.in.h (open): Likewise.
27709         Reported by Rainer Tammer <tammer@tammer.net>.
27710
27711 2008-09-28  Bruno Haible  <bruno@clisp.org>
27712
27713         * modules/posix_spawnp-tests: New file.
27714         * tests/test-posix_spawn.c: New file.
27715         * tests/test-posix_spawn.in.sh: New file.
27716
27717         New module 'posix_spawnp'.
27718         * modules/posix_spawnp: New file.
27719         * lib/spawnp.c: New file, from GNU libc with modifications.
27720         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
27721
27722         New module 'posix_spawn'.
27723         * modules/posix_spawn: New file.
27724         * lib/spawn.c: New file, from GNU libc with modifications.
27725         * doc/posix-functions/posix_spawn.texi: Mention the new module.
27726
27727         New module 'posix_spawnattr_destroy'.
27728         * modules/posix_spawnattr_destroy: New file.
27729         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
27730         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
27731         module.
27732
27733         New module 'posix_spawnattr_setsigmask'.
27734         * modules/posix_spawnattr_setsigmask: New file.
27735         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
27736         modifications.
27737         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
27738         new module.
27739
27740         New module 'posix_spawnattr_getsigmask'.
27741         * modules/posix_spawnattr_getsigmask: New file.
27742         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
27743         modifications.
27744         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
27745         new module.
27746
27747         New module 'posix_spawnattr_setsigdefault'.
27748         * modules/posix_spawnattr_setsigdefault: New file.
27749         * lib/spawnattr_setdefault.c: New file, from GNU libc with
27750         modifications.
27751         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
27752         new module.
27753
27754         New module 'posix_spawnattr_getsigdefault'.
27755         * modules/posix_spawnattr_getsigdefault: New file.
27756         * lib/spawnattr_getdefault.c: New file, from GNU libc with
27757         modifications.
27758         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
27759         new module.
27760
27761         New module 'posix_spawnattr_setschedpolicy'.
27762         * modules/posix_spawnattr_setschedpolicy: New file.
27763         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
27764         modifications.
27765         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
27766         new module.
27767
27768         New module 'posix_spawnattr_getschedpolicy'.
27769         * modules/posix_spawnattr_getschedpolicy: New file.
27770         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
27771         modifications.
27772         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
27773         new module.
27774
27775         New module 'posix_spawnattr_setschedparam'.
27776         * modules/posix_spawnattr_setschedparam: New file.
27777         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
27778         modifications.
27779         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
27780         new module.
27781
27782         New module 'posix_spawnattr_getschedparam'.
27783         * modules/posix_spawnattr_getschedparam: New file.
27784         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
27785         modifications.
27786         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
27787         new module.
27788
27789         New module 'posix_spawnattr_setpgroup'.
27790         * modules/posix_spawnattr_setpgroup: New file.
27791         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
27792         modifications.
27793         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
27794         module.
27795
27796         New module 'posix_spawnattr_getpgroup'.
27797         * modules/posix_spawnattr_getpgroup: New file.
27798         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
27799         modifications.
27800         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
27801         module.
27802
27803         New module 'posix_spawnattr_setflags'.
27804         * modules/posix_spawnattr_setflags: New file.
27805         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
27806         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
27807         module.
27808
27809         New module 'posix_spawnattr_getflags'.
27810         * modules/posix_spawnattr_getflags: New file.
27811         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
27812         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
27813         module.
27814
27815         New module 'posix_spawnattr_init'.
27816         * modules/posix_spawnattr_init: New file.
27817         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
27818         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
27819         module.
27820
27821         New module 'posix_spawn_file_actions_destroy'.
27822         * modules/posix_spawn_file_actions_destroy: New file.
27823         * lib/spawn_faction_destroy.c: New file, from GNU libc with
27824         modifications.
27825         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
27826         the new module.
27827
27828         New module 'posix_spawn_file_actions_addopen'.
27829         * modules/posix_spawn_file_actions_addopen: New file.
27830         * lib/spawn_faction_addopen.c: New file, from GNU libc with
27831         modifications.
27832         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27833         the new module.
27834
27835         New module 'posix_spawn_file_actions_adddup2'.
27836         * modules/posix_spawn_file_actions_adddup2: New file.
27837         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
27838         modifications.
27839         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27840         the new module.
27841
27842         New module 'posix_spawn_file_actions_addclose'.
27843         * modules/posix_spawn_file_actions_addclose: New file.
27844         * lib/spawn_faction_addclose.c: New file, from GNU libc with
27845         modifications.
27846         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27847         the new module.
27848
27849         New module 'posix_spawn_file_actions_init'.
27850         * modules/posix_spawn_file_actions_init: New file.
27851         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
27852         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
27853         new module.
27854
27855         New module 'posix_spawn-internal'.
27856         * modules/posix_spawn-internal: New file.
27857         * lib/spawn_int.h: New file, from GNU libc with modifications.
27858         * lib/spawni.c: New file, from GNU libc with modifications.
27859         * m4/posix_spawn.m4: New file.
27860
27861         New module 'spawn'.
27862         * modules/spawn: New file.
27863         * lib/spawn.in.h: New file, from GNU libc with modifications.
27864         * m4/spawn_h.m4: New file.
27865         * doc/posix-headers/spawn.texi: Mention the new module.
27866
27867 2008-09-28  Bruno Haible  <bruno@clisp.org>
27868
27869         * modules/sched-tests: New file.
27870         * tests/test-sched.c: New file.
27871
27872         New module 'sched'.
27873         * modules/sched: New file.
27874         * lib/sched.in.h: New file.
27875         * m4/sched_h.m4: New file.
27876         * doc/posix-headers/sched.texi: Mention the new module.
27877
27878 2008-09-27  Eric Blake  <ebb9@byu.net>
27879
27880         Fix previous patch, and tweak references to $0.
27881         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
27882         (func_version, func_gnulib_dir): Don't call this program
27883         gnulib-tool.
27884         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
27885         with using $0 in function.
27886         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
27887         (func_fatal_error): Reuse the name the user invoked us with.
27888
27889 2008-09-27  Bruno Haible  <bruno@clisp.org>
27890
27891         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
27892         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
27893         (gl_ICONV_H): Not here.
27894         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27895         instead of assigning ICONV_H directly.
27896
27897         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
27898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
27899         WCHAR_H directly.
27900
27901 2008-09-27  Bruno Haible  <bruno@clisp.org>
27902
27903         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
27904         * modules/arpa_inet (Depends-on): Add link-warning.
27905         (Makefile.am): Insert the definition of GL_LINK-WARNING.
27906         * modules/unistd (Makefile.am): Likewise.
27907
27908 2008-09-26  Bruno Haible  <bruno@clisp.org>
27909
27910         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
27911         variables.
27912         (func_version): Essentially copied from gnulib-tool.
27913         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
27914         func_readlink): Copied from gnulib-tool.
27915
27916 2008-09-26  Bruno Haible  <bruno@clisp.org>
27917
27918         * gnulib-tool (func_version): Change directory to $gnulib_dir before
27919         invoking git-version-gen.
27920
27921 2008-09-26  Bruno Haible  <bruno@clisp.org>
27922
27923         * posix-modules: Update to directory names changed on 2008-01-19.
27924         Remove commas in output before splitting into words. No more need to
27925         avoid 'ftruncate' since 2007-02-19.
27926
27927 2008-09-26  Bruno Haible  <bruno@clisp.org>
27928
27929         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
27930
27931 2008-09-26  Bruno Haible  <bruno@clisp.org>
27932
27933         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
27934         * modules/fwriteerror (Depends-on): Add errno.
27935
27936 2008-09-26  Bruno Haible  <bruno@clisp.org>
27937
27938         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
27939         * tests/test-vc-list-files-cvs.sh: Likewise.
27940
27941 2008-09-26  Bruno Haible  <bruno@clisp.org>
27942
27943         * doc/posix-headers/sys_resource.texi: Reorder items.
27944
27945 2008-09-26  Jim Meyering  <meyering@redhat.com>
27946
27947         fts: tweak inode comparison function
27948         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
27949         inode numbers, as documented.
27950
27951         fts: sort dirent entries on inode number before traversing
27952         This avoids a quadratic, seek-related performance penalty when
27953         operating on a directory containing many entries (measurable at 10k;
27954         3.5 hours at 2 million entries with a cold cache) on certain types
27955         of file systems, including ext3 and ext4, but not tmpfs.
27956         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
27957         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
27958         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
27959         (fs_handles_readdir_ordered_dirents_efficiently): New function.
27960         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
27961         (fts_build): Set the stat.st_ino member from D_INO.
27962         If it is likely to be useful, sort dirent entries on inode number.
27963
27964         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
27965         and the struct statfs.f_type member.
27966         * modules/fts (Depends-on): Add d-ino.
27967
27968 2008-09-26  Bruno Haible  <bruno@clisp.org>
27969
27970         * modules/sigpipe-die (Depends-on): Add sigpipe.
27971
27972         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
27973         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
27974         and GNULIB_STDIO_H_SIGPIPE are set.
27975         * lib/stdio-write.c: New file.
27976         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
27977         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27978         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27979         REPLACE_STDIO_WRITE_FUNCS.
27980         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
27981         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27982         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27983         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
27984         * modules/stdio (Files): Add lib/stdio-write.c.
27985         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
27986         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27987         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27988         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
27989         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
27990         REPLACE_FPRINTF_POSIX.
27991         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
27992         REPLACE_PRINTF_POSIX.
27993         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
27994         REPLACE_VFPRINTF_POSIX.
27995         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
27996         REPLACE_VPRINTF_POSIX.
27997         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
27998         SIGPIPE issue.
27999         * doc/posix-functions/fputc.texi: Likewise.
28000         * doc/posix-functions/fputs.texi: Likewise.
28001         * doc/posix-functions/fwrite.texi: Likewise.
28002         * doc/posix-functions/printf.texi: Likewise.
28003         * doc/posix-functions/putc.texi: Likewise.
28004         * doc/posix-functions/putchar.texi: Likewise.
28005         * doc/posix-functions/puts.texi: Likewise.
28006         * doc/posix-functions/vfprintf.texi: Likewise.
28007         * doc/posix-functions/vprintf.texi: Likewise.
28008
28009         * modules/safe-write (Depends-on): Add write.
28010
28011         * modules/sigpipe-tests: New file.
28012         * tests/test-sigpipe.c: New file.
28013         * tests/test-sigpipe.sh: New file.
28014
28015         * modules/write: New file.
28016         * lib/unistd.in.h: Include <sys/types.h>.
28017         (write): New declaration.
28018         * lib/write.c: New file.
28019         * m4/write.m4: New file.
28020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28021         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28022         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28023         GNULIB_WRITE, REPLACE_WRITE.
28024         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28025         and the SIGPIPE issue.
28026
28027         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28028         (raise): New declaration.
28029         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28030         (ext_signal): New function.
28031         (rpl_raise): New function.
28032         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28033         GNULIB_SIGNAL_H_SIGPIPE.
28034         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28035         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28036
28037         * modules/sigpipe: New file.
28038         * m4/sigpipe.m4: New file.
28039
28040 2008-09-25  Derek Price  <derek@ximbiot.com>
28041             Bruno Haible  <bruno@clisp.org>
28042
28043         * gnulib-tool (func_import): Report all license incompatibilities, not
28044         just the first one.
28045
28046 2008-09-25  Bruno Haible  <bruno@clisp.org>
28047
28048         * gnulib-tool (func_import): When computing the edits, consider not
28049         only the Makefile.ams that exist but also those that will be generated.
28050
28051 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28052
28053         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28054         fixes gnulib-tool --test warning about duplicate dependency.
28055
28056 2008-09-25  Bruno Haible  <bruno@clisp.org>
28057
28058         * gnulib-tool: Don't ask the user to perform edits in the generated
28059         Makefile.ams.
28060         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28061         apply to the Makefile.am being generated.
28062         (func_emit_tests_Makefile_am): Execute edits that apply to the
28063         Makefile.am being generated.
28064         (func_import): Setup list of Makefile.am edits before emitting the
28065         Makefile.ams, not at the end.
28066         (func_create_testdir): Update.
28067         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28068
28069 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28070
28071         * gnulib-tool (func_import): Store the --tests-base option in the
28072         comment in gnulib-cache.m4.
28073
28074 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28075
28076         * NEWS: Document increased portability that sys_select now provides.
28077
28078         * lib/sys_select.in.h: Install select wrapper.
28079         * lib/sys_socket.in.h: Use more descriptive name when there is no
28080         select wrapper.
28081         * lib/winsock-select.c: New.
28082         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28083         Require gl_HEADER_SYS_SOCKET.
28084         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28085         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28086         * tests/test-sys_select.c: Add functional tests.
28087
28088 2008-09-24  Eric Blake  <ebb9@byu.net>
28089
28090         open, fopen: close fd leak in last patch
28091         * lib/open.c (rpl_open): Close fd before returning error.
28092         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28093         * doc/posix-functions/open.texi (open): Document that Irix also
28094         has the bug.
28095         * doc/posix-functions/fopen.texi (fopen): Likewise.
28096         Reported by Paolo Bonzini.
28097
28098 2008-09-24  Bruno Haible  <bruno@clisp.org>
28099
28100         Ensure that a filename ending in a slash cannot be used to access a
28101         non-directory.
28102         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28103         to check whether it's really a directory.
28104         * lib/fopen.c: Include fcntl.h, unistd.h.
28105         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28106         and fdopen().
28107         * modules/fopen (Depends-on): Add unistd.
28108         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28109         * tests/test-fopen.c (main): Likewise.
28110         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28111         * doc/posix-functions/fopen.texi: Likewise.
28112         Reported by Eric Blake.
28113
28114 2008-09-23  Eric Blake  <ebb9@byu.net>
28115
28116         c-stack: avoid compiler optimizations when provoking overflow
28117         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28118         recursion harder to optimize, to ensure a stack overflow occurs.
28119         * tests/test-c-stack.c (recurse): Likewise.
28120         Borrowed from libsigsegv.
28121
28122         c-stack: work around Irix sigaltstack bug
28123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28124         whether sigaltstack uses wrong end of stack_t (copied in part from
28125         libsigsegv).
28126         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28127         Irix bug, without requiring an over-allocation.
28128         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28129         bug.
28130
28131         fopen: document mingw bug on directories
28132         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28133         not allowing a stream visiting a directory, even though reading
28134         from such a stream is not portable.
28135
28136 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28137
28138         * lib/poll.c: Rewrite.
28139         * modules/poll: Depend on alloca.
28140
28141 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28142
28143         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28144         instead define prototypes for a full set of wrappers.  Ensure
28145         that Cygwin does not use the compatibility code, which is only
28146         for MinGW.
28147         * lib/winsock.c: New.
28148         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28149         * modules/sys_socket: Add lib/winsock.c.
28150
28151         * modules/poll-tests: Add errno and perror.
28152         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28153
28154 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28155
28156         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28157
28158 2008-09-23  Bruno Haible  <bruno@clisp.org>
28159
28160         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28161         * doc/glibc-functions/*: Likewise.
28162
28163 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28164
28165         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28166         success.
28167
28168 2008-09-22  Eric Blake  <ebb9@byu.net>
28169             Bruno Haible  <bruno@clisp.org>
28170
28171         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28172         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28173         supply %A but mishandle pseudo-NaN.
28174         Reported by Simon Josefsson.
28175
28176 2008-09-21  Bruno Haible  <bruno@clisp.org>
28177
28178         * tests/test-lock.c (main): Tweak skip message.
28179         * tests/test-tls.c (main): Likewise.
28180
28181 2008-09-21  Bruno Haible  <bruno@clisp.org>
28182
28183         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28184         whether 'struct sigaction' has sa_sigaction here...
28185         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28186         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28187
28188 2008-09-21  Bruno Haible  <bruno@clisp.org>
28189
28190         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28191         section.
28192         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28193         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28194         the new section.
28195         (Support for obsolete systems lacking POSIX:2001): New section.
28196         (String handling <string.h>): Move strdup to the new section.
28197         Suggested by Simon Josefsson and Paolo Bonzini.
28198
28199 2008-09-21  Bruno Haible  <bruno@clisp.org>
28200
28201         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28202         exponents in %e and %g results on 'long double'. Needed for mingw's
28203         improved *printf functions.
28204         * tests/test-vasprintf-posix.c (test_function): Likewise.
28205         * tests/test-snprintf-posix.h (test_function): Likewise.
28206         * tests/test-sprintf-posix.h (test_function): Likewise.
28207         Reported by Eric Blake.
28208
28209 2008-09-21  Bruno Haible  <bruno@clisp.org>
28210
28211         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28212         * tests/test-sprintf-posix.h (test_function): Likewise.
28213
28214 2008-09-21  Bruno Haible  <bruno@clisp.org>
28215
28216         * modules/getpass (Depends-on): Add strdup-posix.
28217
28218         New module 'strdup-posix'.
28219         * modules/strdup-posix: New file.
28220         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28221         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28223         REPLACE_STRDUP.
28224         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
28225         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
28226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28227         strdup-posix.
28228
28229         * modules/strdup (Depends-on): Remove malloc-posix.
28230
28231 2008-09-20  Bruno Haible  <bruno@clisp.org>
28232
28233         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
28234         Wildenhues.
28235
28236 2008-09-20  Bruno Haible  <bruno@clisp.org>
28237
28238         Ensure that wint_t gets defined on IRIX 5.3.
28239         * lib/wchar.in.h (wint_t): Define if not defined by the system.
28240         * lib/wctype.in.h (wint_t): Likewise.
28241         (__wctype_wint_t): Remove type.
28242         (isw*): Use wint_t instead of __wctype_wint_t.
28243         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
28244         * modules/wchar (Files): Add m4/wint_t.m4.
28245         (Makefile.am): Substitute HAVE_WINT_T.
28246         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
28247         * tests/test-wctype.c: Check that wint_t is defined.
28248         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
28249         * doc/posix-headers/wctype.texi: Likewise.
28250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28251
28252 2008-09-18  Bruno Haible  <bruno@clisp.org>
28253
28254         * gnulib-tool (func_exit): Update comment.
28255
28256 2008-09-18  Simon Josefsson  <simon@josefsson.org>
28257
28258         * modules/getaddrinfo (Depends-on): Remove strdup, this module
28259         assumes strdup exists and does not depend on strdup to return
28260         ENOMEM on out of memory conditions.
28261
28262 2008-09-18  Bruno Haible  <bruno@clisp.org>
28263
28264         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
28265         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28266         digits for the exponent.
28267
28268 2008-09-18  Jim Meyering  <meyering@redhat.com>
28269             Bruno Haible  <bruno@clisp.org>
28270
28271         * lib/vasnprintf.c (decimal_point_char): Define also if
28272         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28273
28274 2008-09-16  Bruno Haible  <bruno@clisp.org>
28275         and Eric Blake  <ebb9@byu.net>
28276
28277         vasnprintf: support Irix 5.3
28278         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28279         that mishandle long double infinity.
28280         Reported by Tom G. Christensen.
28281
28282 2008-09-16  Bruno Haible  <bruno@clisp.org>
28283
28284         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28285         Solaris 9.
28286         * doc/glibc-functions/alphasort.texi: Likewise.
28287         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28288
28289 2008-09-16  Jim Meyering  <meyering@redhat.com>
28290
28291         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28292         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28293         a umask modification leak out of a subshell.  Otherwise, the
28294         opensolaris /bin/sh would be accepted and thus cause unwarranted
28295         failures in the coreutils test suite.
28296
28297 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28298
28299         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28300         to succeed.
28301
28302 2008-09-16  Jim Meyering  <meyering@redhat.com>
28303
28304         avoid spurious test failure when library is built without ACL support
28305         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28306         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28307         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28308         * tests/test-copy-acl.sh: Likewise.
28309
28310 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28311
28312         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28313         based on character occurrence counts.
28314
28315 2008-09-15  Eric Blake  <ebb9@byu.net>
28316
28317         tests: avoid some compiler warnings
28318         * tests/test-memchr.c (main): Pass NULL indirectly.
28319         * tests/test-closein.c (main): Avoid unused variable.
28320
28321 2008-09-15  Bruno Haible  <bruno@clisp.org>
28322
28323         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28324         are missing on OpenBSD 4.0 individually.
28325         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28326
28327 2008-09-15  Bruno Haible  <bruno@clisp.org>
28328
28329         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28330         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28331         * doc/posix-functions/perror.texi: Likewise.
28332         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28333         is missing.
28334         Reported by Eric Blake.
28335
28336         * lib/errno.in.h: Use replacement values >= 2000.
28337         Reported by Eric Blake.
28338
28339 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28340
28341         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28342         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28343         limit.
28344         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28345         compareseq was aborted.
28346
28347 2008-09-14  Bruno Haible  <bruno@clisp.org>
28348
28349         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28350         yvec_edit_count.
28351         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28352         (fstrcmp_bounded): Simplify result computation accordingly.
28353
28354 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28355
28356         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28357         (fstrcmp): Define in terms of fstrcmp_bounded.
28358         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28359         lower_bound argument.
28360         Return quickly if the result is certainly < lower_bound.
28361         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28362
28363 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28364
28365         * lib/diffseq.h (EARLY_ABORT): New macro.
28366         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28367         evaluates to true.
28368
28369 2008-09-14  Bruno Haible  <bruno@clisp.org>
28370
28371         * modules/perror-tests: New file.
28372         * tests/test-perror.sh: New file.
28373         * tests/test-perror.c: New file.
28374
28375         New module 'perror'.
28376         * lib/stdio.in.h (perror): New declaration.
28377         * lib/perror.c: New file.
28378         * m4/perror.m4: New file.
28379         * modules/perror: New file.
28380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28381         * doc/posix-functions/perror.texi: Mention the perror module.
28382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28383         REPLACE_PERROR.
28384         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28385         REPLACE_PERROR.
28386
28387 2008-09-14  Bruno Haible  <bruno@clisp.org>
28388
28389         * modules/stdio (Makefile.am): Reorder to match the order in
28390         lib/stdio.in.h.
28391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28392
28393 2008-09-13  Bruno Haible  <bruno@clisp.org>
28394
28395         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
28396
28397 2008-09-13  Bruno Haible  <bruno@clisp.org>
28398
28399         Extend strerror to cover the added errno values.
28400         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
28401         (rpl_strerror): Provide error messages for the added errno values and
28402         for the WSA* values.
28403         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
28404         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
28405         strerror.
28406         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
28407         * modules/strerror (Depends-on): Add errno.
28408         * doc/posix-functions/strerror.texi: Document the change.
28409         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
28410         and EOVERFLOW.
28411
28412 2008-09-13  Bruno Haible  <bruno@clisp.org>
28413
28414         * modules/EOVERFLOW: Remove file.
28415         * m4/eoverflow.m4: Remove file.
28416         * modules/EOVERFLOW-tests: Remove file.
28417         * tests/test-EOVERFLOW.c: Remove file.
28418         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
28419         * modules/ftell (Depends-on): Likewise.
28420         * modules/getdelim (Depends-on): Likewise.
28421         * modules/getugroups (Depends-on): Likewise.
28422         * modules/poll (Depends-on): Likewise.
28423         * modules/snprintf (Depends-on): Likewise.
28424         * modules/sprintf-posix (Depends-on): Likewise.
28425         * modules/vasnprintf (Depends-on): Likewise.
28426         * modules/vasprintf (Depends-on): Likewise.
28427         * modules/vfprintf-posix (Depends-on): Likewise.
28428         * modules/vsnprintf (Depends-on): Likewise.
28429         * modules/vsprintf-posix (Depends-on): Likewise.
28430         * modules/xvasprintf (Depends-on): Likewise.
28431         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28432         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
28433         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
28434         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
28435         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28436         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
28437         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
28438         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
28439         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28440         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
28441         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
28442         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
28443         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28444         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
28445         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
28446         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
28447         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28448         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
28449         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
28450         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
28451         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28452         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
28453         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
28454         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
28455         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
28456         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28457         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
28458         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
28459         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
28460         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
28461         * MODULES.html.sh: Remove EOVERFLOW.
28462         * NEWS: Mention the change.
28463
28464 2008-09-13  Bruno Haible  <bruno@clisp.org>
28465
28466         * modules/errno-tests: New file.
28467         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
28468
28469         * lib/errno.in.h: New file.
28470         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
28471         * modules/errno: New file.
28472         * doc/posix-headers/errno.texi: Update documentation.
28473         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
28474
28475 2008-09-13  Bruno Haible  <bruno@clisp.org>
28476
28477         * tests/test-poll.c: Use #if for native Windows, rather than testing
28478         __MSVCRT__.
28479
28480 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28481             Bruno Haible  <bruno@clisp.org>
28482
28483         * lib/glob.c: Don't include <pwd.h> on native Windows.
28484         (WINDOWS32): New macro.
28485         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
28486
28487 2008-09-13  Bruno Haible  <bruno@clisp.org>
28488
28489         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
28490         (ETIMEDOUT): Remove macro.
28491         (glthread_cond_timedwait_multithreaded): New declaration.
28492         (glthread_cond_timedwait): Use it.
28493         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28494         (glthread_cond_timedwait_multithreaded): New function.
28495
28496 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28497
28498         * modules/poll-tests: Do not check for io.h.
28499         * tests/test-poll.c: Check for __MSVCRT__ instead.
28500
28501 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28502
28503         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
28504         * modules/poll-tests: Add inet_pton, stdbool, sockets.
28505         * tests/test-poll.c: Use them.  Use _pipe on Windows.
28506
28507 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28508
28509         * modules/poll-tests: New.
28510         * tests/test-poll.c: New.
28511
28512 2008-09-12  Eric Blake  <ebb9@byu.net>
28513
28514         frexp: test for NetBSD failure on -0.0
28515         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
28516         not all, bugs from NetBSD 3.0 have been fixed.
28517         * doc/posix-functions/frexp.texi (frexp): Document bug.
28518         Reported by Thomas Klausner.
28519
28520         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
28521         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
28522         literal -0.0.
28523         Reported by Jonathan C. Patschke <jp@centtech.com>.
28524
28525 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28526
28527         * lib/glthread/cond.h: Use dummy implementation also if
28528         USE_WIN32_THREADS.
28529
28530 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28531
28532         * modules/fnmatch-posix (License): Change to LGPLv2+.
28533         * modules/fnmatch-gnu (License): Likewise.
28534
28535 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28536
28537         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
28538
28539 2008-09-11  Jim Meyering  <meyering@redhat.com>
28540
28541         * users.txt: Add gtk-vnc.
28542
28543 2008-09-08  Simon Josefsson  <simon@josefsson.org>
28544
28545         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
28546         rotate amounts.
28547
28548         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
28549         required for 16-bit and 8-bit rotates.
28550         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
28551         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
28552         UINT8_MAX instead of hard-coded constants.
28553         Suggested by Paul Eggert.
28554
28555 2008-09-07  Bruno Haible  <bruno@clisp.org>
28556
28557         * tests/test-striconveh.c (main): Check behaviour when converting from
28558         UTF-7.
28559
28560         Make striconveh work better with stateful encodings.
28561         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
28562         that iconv does not increment the inptr when returning -1/EINVAL.
28563
28564 2008-09-07  Bruno Haible  <bruno@clisp.org>
28565
28566         * build-aux/config.rpath: Update according to libtool-2.2.6.
28567         * build-aux/config.libpath: Likewise.
28568
28569 2008-09-06  Bruno Haible  <bruno@clisp.org>
28570
28571         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
28572         * lib/freadptr.c (freadptr): Likewise.
28573         * lib/freadseek.c (freadptrinc): Likewise.
28574         Reported by Simon Josefsson.
28575
28576 2008-09-06  Bruno Haible  <bruno@clisp.org>
28577
28578         * modules/freadptr (License): Change to LGPLv2+.
28579         * modules/freadseek (License): Likewise.
28580         Suggested by Eric Blake.
28581
28582         * modules/memchr2 (License): Change to LGPLv2+.
28583         Approved by Eric Blake.
28584
28585 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28586             Bruno Haible  <bruno@clisp.org>
28587
28588         Make gnulib-tool work with native 'sed' on AIX.
28589         * gnulib-tool (sed_noop): New variable.
28590         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
28591         func_add_or_update, func_create_testdir): Use it to initialize sed
28592         script variables.
28593         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28594
28595 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
28596             Bruno Haible  <bruno@clisp.org>
28597
28598         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
28599         also works after #include directives.
28600
28601 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
28602
28603         getdate.y: reject an out-of-range timezone value
28604         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
28605         the range [-24...+24].  When specified with only one or two digits,
28606         * tests/test-getdate.c: Tests for the fix.
28607         * doc/getdate.texi: Document this change.
28608
28609 2008-09-03  Bruno Haible  <bruno@clisp.org>
28610
28611         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
28612
28613 2008-09-02  Simon Josefsson  <simon@josefsson.org>
28614
28615         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
28616         <bruce.korb@gmail.com> with ideas from Ben Pfaff
28617         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
28618         Blake <ebb9@byu.net>.
28619
28620         * tests/test-bitrotate.c: Add more test vectors.
28621
28622 2008-09-02  Eric Blake  <ebb9@byu.net>
28623
28624         vasnprintf-posix: handle large precision via %.*d
28625         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
28626         when handling it ourselves.
28627         * tests/test-vasnprintf-posix.c (test_function): Add test.
28628         * tests/test-snprintf-posix.h (test_function): Likewise.
28629         * tests/test-sprintf-posix.h (test_function): Likewise.
28630         * tests/test-vasprintf-posix.c (test_function): Likewise.
28631         Reported by Alain Guibert.
28632
28633 2008-09-01  Eric Blake  <ebb9@byu.net>
28634
28635         c-stack: make configure-time check more robust
28636         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
28637         successful sigaction call.
28638         Reported by Tom G. Christensen.
28639
28640 2008-09-01  Bruno Haible  <bruno@clisp.org>
28641
28642         New module 'findprog-lgpl'.
28643         * modules/findprog-lgpl: New file.
28644         * lib/findprog-lgpl.c: New file.
28645         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
28646         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
28647         to decide whether to use strdup or xstrdup, concatenated_filename or
28648         xconcatenated_filename.
28649
28650 2008-09-01  Bruno Haible  <bruno@clisp.org>
28651
28652         Split module 'concat-filename' into 'concat-filename' (LGPL) and
28653         'xconcat-filename' (GPL).
28654         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
28655         (License): Change to LGPLv2+.
28656         * modules/xconcat-filename: New file.
28657         * lib/concat-filename.h (concatenated_filename): Change specification.
28658         (xconcatenated_filename): New declaration.
28659         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
28660         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
28661         memory situations.
28662         * lib/xconcat-filename.c: New file.
28663         * NEWS: Mention the change.
28664         * lib/findprog.c: Include concat-filename.h, not filename.h.
28665         (find_in_path): Use xconcatenated_filename instead of
28666         concatenated_filename.
28667         * lib/javacomp.c: Include concat-filename.h, not filename.h.
28668         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28669         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28670         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28671         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
28672         instead of concatenated_filename.
28673         * lib/javaexec.c: Include concat-filename.h, not filename.h.
28674         (execute_java_class): Use xconcatenated_filename instead of
28675         concatenated_filename.
28676         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
28677         * modules/javacomp (Depends-on): Likewise.
28678         * modules/javaexec (Depends-on): Likewise.
28679
28680 2008-09-01  Bruno Haible  <bruno@clisp.org>
28681
28682         Split module 'filename' into 'filename' and 'concat-filename'.
28683         * modules/filename: Keep only lib/filename.h.
28684         (License): Change to LGPLv2+.
28685         * modules/concat-filename: New file, extracted from modules/filename.
28686         * lib/filename.h (concatenated_filename): Remove declaration.
28687         * lib/concat-filename.h: New file, extracted from lib/filename.h.
28688         * lib/concat-filename.c: Include concat-filename.h.
28689         * NEWS: Mention the change.
28690
28691 2008-09-01  Simon Josefsson  <simon@josefsson.org>
28692
28693         * lib/bitrotate.h (rotl8, rotr8): Add.
28694
28695         * modules/bitrotate (configure.ac): Need
28696         AC_REQUIRE([AC_C_INLINE]).
28697         (Description): Mention stdint.h.  Reported by Bruno Haible
28698         <bruno@clisp.org>.
28699
28700         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
28701         Paolo Bonzini <bonzini@gnu.org>.
28702
28703 2008-08-31  Bruno Haible  <bruno@clisp.org>
28704
28705         Assume Solaris specific bi-arch conventions on Solaris systems.
28706         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
28707         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
28708         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
28709         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
28710         like acl_libdirstem.
28711         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
28712         acl_libdirstem.
28713         * NEWS: Mention the change.
28714         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
28715
28716 2008-08-31  Jim Meyering  <meyering@redhat.com>
28717
28718         * lib/strftime.h: Add comments describing the two added arguments.
28719
28720         remove duplicate #include directives
28721         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
28722         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
28723
28724 2008-08-31  Bruno Haible  <bruno@clisp.org>
28725
28726         New module 'sigpipe-die'.
28727         * modules/sigpipe-die: New file.
28728         * lib/sigpipe-die.h: New file.
28729         * lib/sigpipe-die.c: New file.
28730         * MODULES.html.sh (Signal handling): Add sigpipe-die.
28731
28732 2008-08-31  Bruno Haible  <bruno@clisp.org>
28733
28734         Don't override previously installed signal handlers.
28735         * lib/fatal-signal.c (saved_sigactions): New variable.
28736         (uninstall_handlers): Reset the signal to the saved handler, not
28737         to SIG_DFL (except when ignored).
28738         (install_handlers): Save the previous handlers.
28739
28740 2008-08-30  Bruno Haible  <bruno@clisp.org>
28741
28742         * gnulib-tool (func_reset_sigpipe): New function.
28743         (func_get_automake_snippet, func_modules_transitive_closure,
28744         func_import): Invoke it before a join command that reads from stdin,
28745         to avoid "echo: write error: Broken pipe" error messages on stderr.
28746         Reported by Sam Steingold <sds@gnu.org>.
28747
28748 2008-08-30  Bruno Haible  <bruno@clisp.org>
28749
28750         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
28751         Code copied from m4/open.m4.
28752         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
28753         access and the filename ends in a slash. Code copied from lib/open.c.
28754         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
28755         * tests/test-fopen.c (main): Check against bug with trailing slash.
28756
28757 2008-08-29  Bruno Haible  <bruno@clisp.org>
28758
28759         Avoid some "gcc -pedantic" warnings.
28760         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
28761         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
28762         * lib/dirent.in.h: Likewise.
28763         * lib/fcntl.in.h: Likewise.
28764         * lib/float.in.h: Likewise.
28765         * lib/iconv.in.h: Likewise.
28766         * lib/inttypes.in.h: Likewise.
28767         * lib/locale.in.h: Likewise.
28768         * lib/math.in.h: Likewise.
28769         * lib/netinet_in.in.h: Likewise.
28770         * lib/search.in.h: Likewise.
28771         * lib/signal.in.h: Likewise.
28772         * lib/stdarg.in.h: Likewise.
28773         * lib/stdint.in.h: Likewise.
28774         * lib/stdio.in.h: Likewise.
28775         * lib/stdlib.in.h: Likewise.
28776         * lib/string.in.h: Likewise.
28777         * lib/strings.in.h: Likewise.
28778         * lib/sys_select.in.h: Likewise.
28779         * lib/sys_socket.in.h: Likewise.
28780         * lib/sys_stat.in.h: Likewise.
28781         * lib/sys_time.in.h: Likewise.
28782         * lib/sysexits.in.h: Likewise.
28783         * lib/time.in.h: Likewise.
28784         * lib/unistd.in.h: Likewise.
28785         * lib/wchar.in.h: Likewise.
28786         * lib/wctype.in.h: Likewise.
28787         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
28788         * modules/fchdir (Makefile.am): Likewise.
28789         * modules/fcntl (Makefile.am): Likewise.
28790         * modules/float (Makefile.am): Likewise.
28791         * modules/iconv_open (Makefile.am): Likewise.
28792         * modules/inttypes (Makefile.am): Likewise.
28793         * modules/locale (Makefile.am): Likewise.
28794         * modules/math (Makefile.am): Likewise.
28795         * modules/netinet_in (Makefile.am): Likewise.
28796         * modules/search (Makefile.am): Likewise.
28797         * modules/signal (Makefile.am): Likewise.
28798         * modules/stdarg (Makefile.am): Likewise.
28799         * modules/stdint (Makefile.am): Likewise.
28800         * modules/stdio (Makefile.am): Likewise.
28801         * modules/stdlib (Makefile.am): Likewise.
28802         * modules/string (Makefile.am): Likewise.
28803         * modules/strings (Makefile.am): Likewise.
28804         * modules/sys_select (Makefile.am): Likewise.
28805         * modules/sys_socket (Makefile.am): Likewise.
28806         * modules/sys_stat (Makefile.am): Likewise.
28807         * modules/sys_time (Makefile.am): Likewise.
28808         * modules/sysexits (Makefile.am): Likewise.
28809         * modules/time (Makefile.am): Likewise.
28810         * modules/unistd (Makefile.am): Likewise.
28811         * modules/wchar (Makefile.am): Likewise.
28812         * modules/wctype (Makefile.am): Likewise.
28813         Reported by Reuben Thomas <rrt@sc3d.org>.
28814
28815 2008-08-29  Bruno Haible  <bruno@clisp.org>
28816
28817         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
28818         any more.
28819
28820 2008-08-29  Simon Josefsson  <simon@josefsson.org>
28821
28822         * MODULES.html.sh (Misc): Add bitrotate.
28823
28824         * modules/bitrotate: New file.
28825
28826         * lib/bitrotate.h: New file.
28827
28828         * modules/bitrotate-tests: New file.
28829
28830         * tests/test-bitrotate.c: New file.
28831
28832         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
28833         on the bitrotate module.
28834
28835         * lib/arctwo.c: Use new bitrotate module.
28836
28837 2008-08-29  Jim Meyering  <meyering@redhat.com>
28838
28839         bootstrap: merge changes from coreutils
28840         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
28841         of copied files.  Remove a kludge, now that this is fixed.
28842         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
28843         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
28844         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
28845
28846 2008-08-29  Bruno Haible  <bruno@clisp.org>
28847
28848         * MODULES.html.sh: Remove --cvs-urls option.
28849
28850 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
28851
28852         maint.mk: adjust to file name change
28853         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
28854
28855 2008-08-28  Jim Meyering  <meyering@redhat.com>
28856
28857         * modules/getndelim2 (License): Relicense to LGPLv2+.
28858         Approved by Richard Stallman for the version of 1995, and by
28859         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
28860
28861 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
28862
28863         * lib/getdelim.c (flockfile, funlockfile): Make all of them
28864         dummy if one is not available.  Do not touch them if
28865         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
28866         (getc_maybe_unlocked): New.
28867         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
28868
28869 2008-08-26  Eric Blake  <ebb9@byu.net>
28870
28871         doc/INSTALL: resync from autoconf
28872         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
28873         (INSTALL_PRELUDE): Delete; this is done more efficiently by
28874         moving...
28875         * install.texi [!autoconf]: ...here.  Resync from autoconf.
28876         * INSTALL: Regenerate.
28877         * INSTALL.ISO: New file.
28878         * INSTALL.UTF-8: Likewise.
28879
28880 2008-08-26  Jim Meyering  <meyering@redhat.com>
28881
28882         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
28883         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
28884         these definitions conditional, so that they may be overridden, too.
28885
28886 2008-08-26  Bruno Haible  <bruno@clisp.org>
28887
28888         Generate INSTALL file variants with prettier quotes.
28889         * doc/Makefile (INSTALL_PRELUDE): New macro.
28890         (INSTALL): Use it.
28891         (INSTALL.ISO, INSTALL.UTF-8): New rules.
28892
28893 2008-08-26  Bruno Haible  <bruno@clisp.org>
28894
28895         Run makeinfo in an English locale.
28896         * doc/Makefile (MAKEINFO): New variable.
28897
28898 2008-08-26  Bruno Haible  <bruno@clisp.org>
28899
28900         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
28901         Suggested by Eric Blake.
28902
28903 2008-08-25  Bruno Haible  <bruno@clisp.org>
28904
28905         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
28906
28907 2008-08-25  Eric Blake  <ebb9@byu.net>
28908
28909         c-stack: test that stack overflow can be caught
28910         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
28911         that platform allows handling stack overflow; at least OS/2 EMX
28912         has sigaltstack, but crashes before transferring control to
28913         handler on stack overflow.
28914         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
28915         check for HAVE_STACK_OVERFLOW_HANDLING.
28916         Reported by Elbert Pol.
28917
28918 2008-08-25  Bruno Haible  <bruno@clisp.org>
28919
28920         * doc/posix-functions/strftime.texi: Fix description of strftime
28921         module.
28922
28923 2008-08-24  Bruno Haible  <bruno@clisp.org>
28924
28925         * tests/uniwidth/test-uc_width2.c: New file.
28926         * tests/uniwidth/test-uc_width2.sh: New file.
28927         * modules/uniwidth/width-tests (Files): Add the new files.
28928         (TESTS): Add uniwidth/test-uc_width2.sh.
28929         (TESTS_ENVIRONMENT): New variable.
28930         (check_PROGRAMS): Add test-uc_width2.
28931         (test_uc_width2_SOURCES): New variable.
28932
28933         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
28934         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
28935         not 0x00AB.
28936         Reported by Alexander V. Lukyanov <lav@netis.ru>.
28937
28938 2008-08-22  Eric Blake  <ebb9@byu.net>
28939
28940         test-lock, test-tls: mention why a test is skipped
28941         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
28942         skipped.
28943         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
28944
28945         count-one-bits: relax license
28946         * modules/count-one-bits (License): Relicense to LGPLv2+.
28947         Suggested by Ludovic Courtès, approved by Ben Pfaff.
28948
28949 2008-08-22  Andreas Schwab  <schwab@suse.de>
28950
28951         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28952         Remove spurious space in assignment.
28953
28954 2008-08-21  Simon Josefsson  <simon@josefsson.org>
28955
28956         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
28957         Paul Eggert <eggert@CS.UCLA.EDU>.
28958
28959 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
28960
28961         * modules/gettext: Add m4/threadlib.m4.
28962
28963 2008-08-19  Eric Blake  <ebb9@byu.net>
28964
28965         test-c-stack: fix compilation failure on FreeBSD 5.0
28966         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
28967         headers before <sys/resource.h>.
28968         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
28969         the bug.
28970         Reported by Nelson H. F. Beebe.
28971
28972         strverscmp: migrate from "strverscmp.h" to <string.h>
28973         * modules/string (Makefile.am): Add new hooks.
28974         * modules/strverscmp (Files): Remove strverscmp.h.
28975         (Depends-on): Add string.
28976         (configure.ac): Add indicator.
28977         (Include): Mention new header.
28978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
28979         defaults.
28980         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
28981         results.
28982         * lib/strverscmp.h: Delete.
28983         * lib/string.in.h (strverscmp): Provide declaration, when needed.
28984         * tests/test-strverscmp.c (includes): Adjust client.
28985         * lib/check-version.c (includes): Likewise.
28986         * NEWS: Document the change.
28987
28988         strverscmp: add unit test
28989         * modules/strverscmp-tests: New file.
28990         * tests/test-strverscmp.c: Likewise.
28991
28992 2008-08-19  Simon Josefsson  <simon@josefsson.org>
28993
28994         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
28995         regarding Windows crypto stuff, from Mono.
28996
28997 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
28998
28999         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29000         if present, for intel RND.  Return error on failures.
29001
29002 2008-08-18  Ben Pfaff  <blp@gnu.org>
29003
29004         gitlog-to-changelog: give better diagnostic for failed pipe-open
29005         * build-aux/gitlog-to-changelog: Improve error message: suggest
29006         that the version of Git may be too old.
29007
29008 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29009
29010         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29011         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29012
29013 2008-08-18  Bruno Haible  <bruno@clisp.org>
29014
29015         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29016         pthread_in_use().
29017
29018 2008-08-18  Bruno Haible  <bruno@clisp.org>
29019
29020         * lib/glthread/threadlib.c: Include <pthread.h>.
29021
29022 2008-08-18  Bruno Haible  <bruno@clisp.org>
29023
29024         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29025         glthread_recursive_lock_* macros.
29026         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29027         Fix syntax error.
29028
29029 2008-08-18  Bruno Haible  <bruno@clisp.org>
29030
29031         * lib/glthread/thread.c: Avoid forcing a context switch right after
29032         thread creation.
29033
29034 2008-08-17  Bruno Haible  <bruno@clisp.org>
29035
29036         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29037         * lib/glthread/thread.h: Provide Win32 specific implementation.
29038         * modules/thread (Files): Add lib/glthread/thread.c.
29039         (Depends-on): Add lock.
29040         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29041
29042 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29043
29044         New module 'yield'.
29045         * modules/yield: New file.
29046         * lib/glthread/yield.h: New file.
29047         * m4/yield.m4: New file.
29048         * MODULES.html.sh (Multithreading): Add yield.
29049
29050 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29051
29052         New module 'thread'.
29053         * modules/thread: New file.
29054         * lib/glthread/thread.h: New file.
29055         * m4/thread.m4: New file.
29056         * MODULES.html.sh (Multithreading): Add thread.
29057
29058 2008-08-17  Bruno Haible  <bruno@clisp.org>
29059
29060         * lib/glthread/lock.h: Include <stdlib.h> always.
29061         * lib/glthread/tls.h: Likewise.
29062         * lib/glthread/cond.h: Likewise.
29063
29064 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29065
29066         New module 'cond'.
29067         * modules/cond: New file.
29068         * lib/glthread/cond.h: New file.
29069         * lib/glthread/cond.c: New file.
29070         * m4/cond.m4: New file.
29071         * MODULES.html.sh (Multithreading): Add cond.
29072
29073 2008-08-16  Eric Blake  <ebb9@byu.net>
29074
29075         c-stack: fix regression on Irix 5.3 from 2008-06-21
29076         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29077         sa_sigaction...
29078         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29079         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29080         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29081         * modules/signal (Makefile.am): Use the value.
29082         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29083         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29084         * doc/posix-headers/signal.texi (signal.h): Document this
29085         portability issue.
29086         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29087         Reported by Tom G. Christensen.
29088
29089 2008-08-17  Bruno Haible  <bruno@clisp.org>
29090
29091         New module 'threadlib'.
29092         * modules/threadlib: New file.
29093         * lib/glthread/threadlib.c: New file, extracted from
29094         lib/glthread/lock.c.
29095         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29096         functions.
29097         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29098         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29099         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29100         macros.
29101         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29102         (gl_DISABLE_THREADS): Remove macro.
29103         * modules/lock (Files): Remove build-aux/config.rpath.
29104         (Depends-on): Remove havelib. Add threadlib.
29105         (configure.ac-early): Remove section.
29106         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29107         * modules/tls (Depends-on): Remove lock. Add threadlib.
29108         (Link): New section, copied from threadlib.
29109         * MODULES.html.sh (Multithreading): Add threadlib.
29110
29111 2008-08-14  Bruno Haible  <bruno@clisp.org>
29112
29113         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29114         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29115         glthread_rwlock_unlock, glthread_rwlock_destroy,
29116         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29117         glthread_recursive_lock_destroy): Define as macros always.
29118         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29119         glthread_lock_lock.
29120         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29121         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29122         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29123         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29124         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29125         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29126         (glthread_recursive_lock_lock_func): Renamed from
29127         glthread_recursive_lock_lock.
29128         (glthread_recursive_lock_unlock_func): Renamed from
29129         glthread_recursive_lock_unlock.
29130         (glthread_recursive_lock_destroy_func): Renamed from
29131         glthread_recursive_lock_destroy.
29132
29133 2008-08-14  Bruno Haible  <bruno@clisp.org>
29134
29135         * lib/glthread/lock.h: Renamed from lib/lock.h.
29136         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29137         * lib/glthread/tls.h: Renamed from lib/tls.h.
29138         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29139         * lib/fstrcmp.c: Update includes.
29140         * lib/strsignal.c: Update includes.
29141         * modules/lock (Files, Makefile.am): Update.
29142         (Include): Change to "glthread/lock.h".
29143         * modules/tls (Files, Makefile.am): Update.
29144         (Include): Change to "glthread/tls.h".
29145         * tests/test-lock.c: Update includes.
29146         * tests/test-tls.c: Update includes.
29147         * NEWS: Mention the renamed header files.
29148
29149 2008-08-11  Jim Meyering  <meyering@redhat.com>
29150
29151         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29152
29153 2008-08-11  Eric Blake  <ebb9@byu.net>
29154
29155         test-c-stack: avoid C99-ism
29156         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29157         before statement.
29158         Reported by Alain Guibert.
29159
29160 2008-08-10  Jim Meyering  <meyering@redhat.com>
29161
29162         ensure that return value of uinttostr et al are not ignored
29163         * lib/inttostr.h (__GNUC_PREREQ): Define.
29164         (__attribute_warn_unused_result__): Define.
29165         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29166
29167 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29168
29169         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29170         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29171
29172 2008-08-07  Jim Meyering  <meyering@redhat.com>
29173
29174         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29175
29176         * modules/mkstemp (License): Relicense under LGPLv2+.
29177         * modules/tempname (License): Likewise.
29178
29179 2008-08-06  Bruno Haible  <bruno@clisp.org>
29180
29181         * lib/poll.c (poll): Further micro-optimization.
29182
29183 2008-08-06  Jim Meyering  <meyering@redhat.com>
29184
29185         inet_pton.c: use locale-independent tolower
29186         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29187         (inet_pton6): Use c_tolower rather than tolower.
29188         * modules/inet_pton (Depends-on): Add c-ctype.
29189
29190 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29191
29192         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29193         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29194
29195 2008-08-06  Jim Meyering  <meyering@redhat.com>
29196
29197         * modules/inet_pton (License): Relicense under LGPLv2+.
29198
29199 2008-08-03  Bruno Haible  <bruno@clisp.org>
29200
29201         Additional non-aborting API for lock and tls.
29202         * lib/lock.h: Include <errno.h>.
29203         (glthread_lock_init): New macro/function.
29204         (gl_lock_init): Define as wrapper around glthread_lock_init.
29205         (glthread_lock_lock): New macro/function.
29206         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29207         (glthread_lock_unlock): New macro/function.
29208         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29209         (glthread_lock_destroy): New macro/function.
29210         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29211         (glthread_rwlock_init): New macro/function.
29212         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29213         (glthread_rwlock_rdlock): New macro/function.
29214         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29215         (glthread_rwlock_wrlock): New macro/function.
29216         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29217         (glthread_rwlock_unlock): New macro/function.
29218         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29219         (glthread_rwlock_destroy): New macro/function.
29220         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29221         (glthread_recursive_lock_init): New macro/function.
29222         (gl_recursive_lock_init): Define as wrapper around
29223         glthread_recursive_lock_init.
29224         (glthread_recursive_lock_lock): New macro/function.
29225         (gl_recursive_lock_lock): Define as wrapper around
29226         glthread_recursive_lock_lock.
29227         (glthread_recursive_lock_unlock): New macro/function.
29228         (gl_recursive_lock_unlock): Define as wrapper around
29229         glthread_recursive_lock_unlock.
29230         (glthread_recursive_lock_destroy): New macro/function.
29231         (gl_recursive_lock_destroy): Define as wrapper around
29232         glthread_recursive_lock_destroy.
29233         (glthread_once): New macro/function.
29234         (gl_once): Define as wrapper around glthread_once.
29235         Update function declarations.
29236         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
29237         glthread_rwlock_init. Return error code.
29238         (glthread_rwlock_rdlock_multithreaded): Renamed from
29239         glthread_rwlock_rdlock. Return error code.
29240         (glthread_rwlock_wrlock_multithreaded): Renamed from
29241         glthread_rwlock_wrlock. Return error code.
29242         (glthread_rwlock_unlock_multithreaded): Renamed from
29243         glthread_rwlock_unlock. Return error code.
29244         (glthread_rwlock_destroy_multithreaded): Renamed from
29245         glthread_rwlock_destroy. Return error code.
29246         (glthread_recursive_lock_init_multithreaded): Renamed from
29247         glthread_recursive_lock_init. Return error code.
29248         (glthread_recursive_lock_lock_multithreaded): Renamed from
29249         glthread_recursive_lock_lock. Return error code.
29250         (glthread_recursive_lock_unlock_multithreaded): Renamed from
29251         glthread_recursive_lock_unlock. Return error code.
29252         (glthread_recursive_lock_destroy_multithreaded): Renamed from
29253         glthread_recursive_lock_destroy. Return error code.
29254         (glthread_once_call): Make static.
29255         (glthread_once_multithreaded): Renamed from glthread_once.
29256         * lib/tls.h: Include <errno.h>.
29257         (glthread_tls_key_init): New macro/function.
29258         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
29259         (glthread_tls_set): New macro/function.
29260         (gl_tls_set): Define as wrapper around glthread_tls_set.
29261         (glthread_tls_key_destroy): New macro/function.
29262         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29263         Update function declarations.
29264         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29265         glthread_tls_get.
29266         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29267
29268 2008-08-04  Eric Blake  <ebb9@byu.net>
29269
29270         gnumakefile: use space, not TAB, outside of targets
29271         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29272
29273 2008-08-02  Jim Meyering  <meyering@redhat.com>
29274
29275         getdate.y: avoid locale-dependent date parsing failure
29276         In Turkish locales, getdate would fail to recognize keywords
29277         containing a lowercase "i".  The solution is not to rely on
29278         locale-sensitive case-conversion.
29279         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29280         (lookup_word): Use c_toupper in place of toupper.
29281         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29282         Reported by Vefa Bicakci <bicave@superonline.com> in
29283         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29284         * modules/getdate (Depends-on): Add c-ctype.
29285
29286 2008-08-02  Bruno Haible  <bruno@clisp.org>
29287
29288         * gnulib-tool (func_import): When updating or creating a .gitignore
29289         file, prepend each added line with a slash, and ignore leading slashes
29290         from the existing lines.
29291         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29292
29293 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29294
29295         Portability fix for GNU make 3.79.1.
29296         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29297         versions do not understand.
29298
29299 2008-08-01  Bruno Haible  <bruno@clisp.org>
29300
29301         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29302         * tests/test-isnanf.h (zero): New variable.
29303         (main): Avoid literal -0.0f.
29304         * tests/test-isnand.h (zero): New variable.
29305         (main): Avoid literal -0.0.
29306         * tests/test-isnanl.h (zero): New variable.
29307         (main): Avoid literal -0.0L.
29308         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29309         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29310         -0.0, -0.0L.
29311         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29312         (test_signbitd): Avoid literal -0.0.
29313         (test_signbitl): Avoid literal -0.0L.
29314         * tests/test-ceilf1.c (zero): New variable.
29315         (main): Avoid literal -0.0f.
29316         * tests/test-ceill.c (zero): New variable.
29317         (main): Avoid literal -0.0L.
29318         * tests/test-floorf1.c (zero): New variable.
29319         (main): Avoid literal -0.0f.
29320         * tests/test-floorl.c (zero): New variable.
29321         (main): Avoid literal -0.0L.
29322         * tests/test-roundf1.c (zero): New variable.
29323         (main): Avoid literal -0.0f.
29324         * tests/test-round1.c (zero): New variable.
29325         (main): Avoid literal -0.0.
29326         * tests/test-roundl.c (zero): New variable.
29327         (main): Avoid literal -0.0L.
29328         * tests/test-truncf1.c (zero): New variable.
29329         (main): Avoid literal -0.0f.
29330         * tests/test-trunc1.c (zero): New variable.
29331         (main): Avoid literal -0.0.
29332         * tests/test-truncl.c (zero): New variable.
29333         (main): Avoid literal -0.0L.
29334         * tests/test-frexp.c (zero): New variable.
29335         (main): Avoid literal -0.0.
29336         * tests/test-frexpl.c (zero): New variable.
29337         (main): Avoid literal -0.0L.
29338         * tests/test-ldexpl.c (zero): New variable.
29339         (main): Avoid literal -0.0L.
29340         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29341         (zerod, zerol): New variables.
29342         (test_function): Avoid literals -0.0, -0.0L.
29343         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29344         (zerod, zerol): New variables.
29345         (test_function): Avoid literals -0.0, -0.0L.
29346         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29347         (zerod, zerol): New variables.
29348         (test_function): Avoid literals -0.0, -0.0L.
29349         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29350         (zerod, zerol): New variables.
29351         (test_function): Avoid literals -0.0, -0.0L.
29352         * tests/test-strtod.c (zero): New variable.
29353         (main): Avoid literal -0.0.
29354         Reported by Jonathan C. Patschke <jp@centtech.com>.
29355
29356 2008-07-31  Jim Meyering  <meyering@redhat.com>
29357
29358         sha256.h: correct definition of SHA224_DIGEST_SIZE
29359         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29360         Reported by Paulie Pena IV <paulie4@gmail.com>.
29361         Define as 224 / 8, rather than as a literal.
29362         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29363         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29364         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29365
29366 2008-07-31  Bruno Haible  <bruno@clisp.org>
29367
29368         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29369         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29370         Reported by Jonathan Patschke <jp@centtech.com>.
29371
29372 2008-07-31  Bruno Haible  <bruno@clisp.org>
29373
29374         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29375         Reported by Paolo Bonzini <bonzini@gnu.org>.
29376
29377 2008-07-30  Eric Blake  <ebb9@byu.net>
29378
29379         test-strtod: allow compilation without -lm
29380         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29381         Reported by Dennis Clarke <blastwave@gmail.com>.
29382
29383 2008-07-28  Jim Meyering  <meyering@redhat.com>
29384
29385         bootstrap: work also when there are no .po files in po/
29386         * build-aux/bootstrap (update_po_files): Complete the change
29387         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29388
29389 2008-07-27  Jim Meyering  <meyering@redhat.com>
29390
29391         * users.txt: Add zile.
29392
29393 2008-07-26  Ben Pfaff  <blp@gnu.org>
29394
29395         Add missing dependencies on new m4/exponent[fdl].m4 files.
29396         * modules/isnanf-nolibm: Add m4/exponentf.m4.
29397         * modules/isnand-nolibm: Add m4/exponentd.m4.
29398         * modules/isnanl-nolibm: Add m4/exponentl.m4.
29399         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
29400         m4/isnan[fdl].m4, because the macros actually used moved.
29401         Reported by Jim Meyering.
29402
29403 2008-07-14  Ben Pfaff  <blp@gnu.org>
29404
29405         Add isinf module.
29406         * lib/isinf.c: New file.
29407         * lib/math.in.h: Define isinf macro if we have decided to replace
29408         it.
29409         * m4/isinf.m4: New file.
29410         * m4/math_h.m4: Initialize and substitute variables for isinf
29411         module.
29412         * modules/isinf: New file.
29413         * modules/isinf-tests: New file.
29414         * modules/math: Add substitutions for new module.
29415         * tests/test-isinf.c: New file.
29416         * doc/posix-functions/isinf.texi: Mention new module.
29417         * MODULES.html.sh: Mention new module.
29418
29419 2008-07-14  Ben Pfaff  <blp@gnu.org>
29420
29421         Factor out some macros for use by additional modules.
29422         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
29423         exponentf.m4.
29424         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
29425         exponentd.m4.
29426         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
29427         file exponentl.m4.
29428         * m4/exponentf.m4: New file.
29429         * m4/exponentd.m4: New file.
29430         * m4/exponentl.m4: New file.
29431         * modules/isnanf: Use new file m4/exponentf.m4.
29432         * modules/isnand: Use new file m4/exponentd.m4.
29433         * modules/isnanl: Use new file m4/exponentl.m4.
29434
29435 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
29436
29437         mktime.c: normalize tp->tm_isdst value to -1/0/1.
29438         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
29439         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
29440         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
29441
29442         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
29443         readlink on platforms without PATH_MAX.
29444
29445 2008-07-21  Eric Blake  <ebb9@byu.net>
29446
29447         Warn, not fail, on stale version.
29448         * top/GNUmakefile (_curr-ver): Tone down previous patch.
29449
29450         Don't allow installation with stale devel version number.
29451         * top/GNUmakefile (_is-install-target): New macro.
29452         (_curr-ver): Forbid installation with stale version number.
29453
29454 2008-07-20  Bruno Haible  <bruno@clisp.org>
29455
29456         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
29457         TESTS_ENVIRONMENT.
29458         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
29459
29460 2008-07-20  Bruno Haible  <bruno@clisp.org>
29461
29462         * lib/c-stack.h (c_stack_action): Add documentation.
29463         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
29464
29465 2008-07-20  Bruno Haible  <bruno@clisp.org>
29466
29467         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
29468         * modules/readlink (License): Likewise.
29469
29470 2008-07-17  Eric Blake  <ebb9@byu.net>
29471
29472         * modules/c-stack (Link): Fix typo.
29473
29474         Make c-stack use libsigsegv, when available.
29475         * modules/c-stack (Depends-on): Add libsigsegv.
29476         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
29477         needed.
29478         * lib/c-stack.c (SIGSTKSZ): Define fallback.
29479         (segv_handler, overflow_handler, c_stack_action)
29480         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
29481         implementation when libsigsegv is available, but only when using
29482         the library is necessary.
29483         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
29484         comment, explaining why XSI check fails on Linux.
29485         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
29486         * tests/test-c-stack2.sh: Tweak skip message.
29487         * NEWS: Document new link-time requirements.
29488
29489 2008-07-16  Eric Blake  <ebb9@byu.net>
29490
29491         c-stack: Expose false positives when not using libsigsegv.
29492         * modules/c-stack-tests (Files): Expand test.
29493         * tests/test-c-stack.c (main): Add means to conditionally trigger
29494         non-overflow SIGSEGV.
29495         * tests/test-c-stack2.sh: New file.
29496
29497 2008-07-14  Bruno Haible  <bruno@clisp.org>
29498
29499         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
29500         Reported by Eric Blake.
29501
29502 2008-07-14  Sam Steingold  <sds@gnu.org>
29503             Bruno Haible  <bruno@clisp.org>
29504
29505         New module libsigsegv.
29506         * modules/libsigsegv: New file.
29507         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
29508         modifications.
29509         * MODULES.html.sh (Signal handling): New section.
29510
29511 2008-07-14  Bruno Haible  <bruno@clisp.org>
29512
29513         * modules/unictype/ctype-* (Description): Add the word "function".
29514         Improves the resulting doc in MODULES.html.
29515
29516 2008-07-12  Ben Pfaff  <blp@gnu.org>
29517
29518         Add longlong module.
29519         * modules/longlong: New file.
29520
29521 2008-07-12  Bruno Haible  <bruno@clisp.org>
29522
29523         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
29524         to empty.
29525
29526 2008-07-10  Ben Pfaff  <blp@gnu.org>
29527
29528         Add isnan module.
29529         * doc/posix-functions/isnan.texi: Mention new module.
29530         * lib/math.in.h: Define isnan macro if we have decided to replace
29531         it.
29532         * m4/isnan.m4: New file.
29533         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
29534         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
29535         also.
29536         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
29537         redundancy.
29538         * m4/math_h.m4: Initialize and substitute variables for isnan
29539         module.
29540         * modules/isnan: New file.
29541         * modules/isnan-tests: New file.
29542         * modules/math: Add substitutions for new module.
29543         * tests/test-isnan.c: New file.
29544         * MODULES.html.sh: Mention new module.
29545
29546 2008-07-10  Ben Pfaff  <blp@gnu.org>
29547
29548         Add isnanf module.
29549         * lib/isnanf.m4: New file.
29550         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
29551         (gl_HAVE_ISNANF_IN_LIBM): New macro.
29552         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
29553         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
29554         * modules/isnanf: New file.
29555         * modules/isnanf-tests: New file.
29556         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
29557         files.
29558         * tests/test-isnanf-nolibm.c: factored most of its contents into
29559         new file tests/test-isnanf.h.
29560         * tests/test-isnanf.h: New file.
29561         * tests/test-isnanf.c: New file.
29562         * MODULES.html.sh: Mention new module.
29563         * doc/glibc-functions/isnanf.texi: Mention new module.
29564
29565 2008-07-10  Ben Pfaff  <blp@gnu.org>
29566
29567         Add isnand module.
29568         * lib/isnand.h: New file.
29569         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
29570         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
29571         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
29572         functionality also.
29573         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
29574         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
29575         (gl_HAVE_ISNAND_IN_LIBM): New macro.
29576         * modules/isnand: New file.
29577         * modules/isnand-tests: New file.
29578         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
29579         files.
29580         * tests/test-isnand-nolibm.c: factored most of its contents into
29581         new file tests/test-isnand.h.
29582         * tests/test-isnand.h: New file.
29583         * tests/test-isnand.c: New file.
29584         * MODULES.html.sh: Mention new module.
29585
29586 2008-07-10  Ben Pfaff  <blp@gnu.org>
29587
29588         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
29589         * lib/isnand.h: Rename lib/isnand-nolibm.h.
29590         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
29591         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
29592         * modules/isnanf-nolibm: Update references to renamed files.
29593         * modules/isnand-nolibm: Likewise.
29594         * modules/isnanf-nolibm-tests: Likewise.
29595         * modules/isnand-nolibm-tests: Likewise.
29596         * lib/frexp.c: Likewise.
29597         * lib/isfinite.c: Likewise.
29598         * lib/signbitd.c: Likewise.
29599         * lib/signbitf.c: Likewise.
29600         * lib/vasnprintf.c: Likewise.
29601         * tests/test-ceilf1.c: Likewise.
29602         * tests/test-ceilf2.c: Likewise.
29603         * tests/test-floorf1.c: Likewise.
29604         * tests/test-floorf2.c: Likewise.
29605         * tests/test-frexp.c: Likewise.
29606         * tests/test-round1.c: Likewise.
29607         * tests/test-round2.c: Likewise.
29608         * tests/test-roundf1.c: Likewise.
29609         * tests/test-strtod.c: Likewise.
29610         * tests/test-trunc1.c: Likewise.
29611         * tests/test-trunc2.c: Likewise.
29612         * tests/test-truncf1.c: Likewise.
29613         * tests/test-truncf2.c: Likewise.
29614         * NEWS: Mention the renamed header files.
29615
29616 2008-07-11  Jim Meyering  <meyering@redhat.com>
29617
29618         vc-list-files: make the last-resort awk code more portable
29619         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
29620         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
29621         does not support it.
29622
29623 2008-07-10  Eric Blake  <ebb9@byu.net>
29624
29625         Work with tar's bootstrap.
29626         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
29627         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
29628         an m4 comment.
29629
29630 2008-07-09  Jim Meyering  <meyering@redhat.com>
29631
29632         posix-shell.m4: fix typo that made this test malfunction
29633         * m4/posix-shell.m4: Remove capitalization in variable name.
29634
29635 2008-07-08  Bruno Haible  <bruno@clisp.org>
29636
29637         * m4/onceonly.m4: Update comments.
29638         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29639
29640 2008-07-04  Jim Meyering  <meyering@redhat.com>
29641
29642         * users.txt: Add vc-dwim.
29643         (bison, coreutils): Use the gitweb URL.
29644
29645 2008-07-03  Jim Meyering  <meyering@redhat.com>
29646
29647         * users.txt: Add libffcall.  From Sam Steingold.
29648
29649 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
29650
29651         getdate.y: do not ignore TZ with relative day, month or year offset
29652         * lib/getdate.y (get_date): Move the tz-handling block to follow the
29653         relative-date-handling, since otherwise, the latter would clobber the
29654         sole output (an updated Start value) of the tz-handling block.
29655         * tests/test-getdate.c: Tests for the fix
29656
29657 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29658
29659         Recognize 'foo_LIBRARIES += libgnu.a'.
29660         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
29661         makefile snippet has already specified an installation location,
29662         also using '+='.
29663
29664 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
29665
29666         getdate.y: factor out common actions
29667         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
29668         Use them in place of open-coded actions.
29669
29670 2008-07-01  Simon Josefsson  <simon@josefsson.org>
29671
29672         Add self-test for getdate module.
29673         * modules/getdate-tests: New file.
29674         * tests/test-getdate.c: New file.
29675
29676 2008-06-29  Bruno Haible  <bruno@clisp.org>
29677
29678         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
29679         .gitignore.
29680         Reported by Sylvain Beucler <beuc@beuc.net>.
29681
29682 2008-06-29  Bruno Haible  <bruno@clisp.org>
29683
29684         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
29685         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
29686
29687 2008-06-29  Bruno Haible  <bruno@clisp.org>
29688
29689         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
29690         EXTRA_DIST.
29691         Reported by Sylvain Beucler <beuc@beuc.net>.
29692
29693 2008-06-26  Jim Meyering  <meyering@redhat.com>
29694
29695         make several modules depend on the "open" module
29696         This provides slightly increased consistency when opening-for-write
29697         the name of a non-directory spelled with a trailing slash.
29698         * modules/chdir-safer: Likewise.
29699         * modules/chown: Likewise.
29700         * modules/clean-temp: Likewise.
29701         * modules/copy-file: Likewise.
29702         * modules/fchdir: Likewise.
29703         * modules/fcntl-safer: Likewise.
29704         * modules/pipe: Likewise.
29705         * modules/utime: Likewise.
29706         Prompted by Eric Blake and Bruno Haible.
29707
29708 2008-06-24  Andreas Schwab  <schwab@suse.de>
29709
29710         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
29711         literals can be used as initializers for global variables.
29712
29713 2008-06-23  Eric Blake  <ebb9@byu.net>
29714
29715         Make gnulib-cache.m4 easier to diff.
29716         * gnulib-tool (func_import): Allow newlines when reading cached
29717         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
29718
29719 2008-06-23  Bruno Haible  <bruno@clisp.org>
29720
29721         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
29722         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
29723         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
29724         m4/signalblocking.m4.
29725         (gl_PREREQ_SIGACTION): Don't invoke it.
29726         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
29727         gl_PREREQ_SIG_HANDLER_H.
29728         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29729         Don't check for sigaction here.
29730
29731 2008-06-23  Bruno Haible  <bruno@clisp.org>
29732
29733         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
29734         (install_handlers): Don't set the SA_RESETHAND flag.
29735
29736 2008-06-23  Bruno Haible  <bruno@clisp.org>
29737
29738         * m4/sigaction.m4: Comment fixes.
29739         * lib/signal.in.h: Likewise.
29740
29741 2008-06-23  Eric Blake  <ebb9@byu.net>
29742
29743         Fix typo.
29744         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
29745
29746         Avoid SA_ namespace.
29747         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
29748         Reported by Ralf Wildenhues.
29749
29750         Avoid test failure due to SA_RESTORER.
29751         * tests/test-sigaction.c (SA_MASK): New macro.
29752         (main): Avoid failing due to extension flags being set.
29753         Reported by Jim Meyering.
29754
29755         Revert use of sig-handler.h in sigprocmask.c.
29756         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
29757         it requires the existence of struct sigaction.
29758         * lib/sigprocmask.c (handler_t): Restore typedef.
29759         (rpl_signal, old_handlers): Use local type.
29760
29761 2008-06-22  Bruno Haible  <bruno@clisp.org>
29762
29763         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
29764         conditionally.
29765         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29766
29767 2008-06-22  Bruno Haible  <bruno@clisp.org>
29768
29769         * doc/posix-functions/siginterrupt.texi: Move note.
29770
29771         * lib/signal.in.h (SA_RESTART): New macro.
29772         * lib/sigaction.c: Update comment.
29773
29774         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
29775
29776         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
29777         (gl_PREREQ_SIGPROCMASK): Invoke it.
29778         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
29779
29780         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
29781
29782         * lib/sigprocmask.c: Update a comment.
29783
29784 2008-06-21  Eric Blake  <ebb9@byu.net>
29785
29786         Use sigaction module rather than signal().
29787         * modules/c-stack (Depends-on): Add sigaction.
29788         * modules/fatal-signal (Depends-on): Likewise.
29789         * modules/nanosleep (Depends-on): Likewise.
29790         * modules/sigprocmask (Files): Add sig-handler.h.
29791         * modules/sigaction (Files): Likewise.
29792         * lib/sig-handler.h (get_handler): New file, suggested by Paul
29793         Eggert.
29794         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
29795         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
29796         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
29797         (init_fatal_signals): Likewise.
29798         * lib/nanosleep.c (rpl_nanosleep): Likewise.
29799         (siginterrupt): Delete fallback.
29800         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
29801         instead.
29802         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
29803         siginterrupt.
29804
29805         New module sigaction, for mingw.
29806         * modules/sigaction: New module...
29807         * modules/sigaction-tests: ...and its test.
29808         * m4/sigaction.m4: New file.
29809         * lib/sigaction.c: Likewise.
29810         * tests/test-sigaction.c: Likewise.
29811         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
29812         * modules/signal (Makefile.am): Likewise.
29813         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
29814         needed.
29815         * doc/posix-headers/signal.texi (signal.h): Mention provided
29816         types.
29817         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
29818         that sigaction is preferable.
29819         * doc/posix-functions/sigaction.texi (sigaction): Mention new
29820         module.
29821         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29822         sigaction.
29823
29824         Improve robustness of sigprocmask by overriding signal.
29825         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
29826         is in use.
29827         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
29828         (SIGKILL, SIGSTOP): Provide fallbacks.
29829         (rpl_signal): Implement.
29830         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
29831         signal can be called inside handlers.
29832
29833         Fix nanosleep module on mingw.
29834         * modules/nanosleep (Depends-on): Add sys_select.
29835         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
29836
29837         Fix licensing of sigprocmask.
29838         * modules/raise (License): Relicense as LGPL.
29839
29840 2008-06-21  Bruno Haible  <bruno@clisp.org>
29841
29842         * lib/propername.c (proper_name_utf8): Don't use the transliterated
29843         result if it contains question marks.
29844         Reported by Michael Geng <linux@michaelgeng.de>.
29845
29846 2008-06-19  Bruno Haible  <bruno@clisp.org>
29847
29848         Fix CVS-ism.
29849         * doc/gnulib.texi: Include updated-stamp.texi.
29850         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
29851         (updated-stamp.texi): New rule.
29852         (gnulib.info): Depend on it.
29853         * doc/.gitignore: Add updated-stamp.texi.
29854         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
29855
29856 2008-06-19  Bruno Haible  <bruno@clisp.org>
29857
29858         * doc/Makefile (gnulib.info): Update and simplify dependencies.
29859         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29860
29861 2008-06-19  Eric Blake  <ebb9@byu.net>
29862
29863         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
29864         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
29865         Reported by Stepan Kasal.
29866
29867 2008-06-18  Bruno Haible  <bruno@clisp.org>
29868
29869         * lib/fatal-signal.c (init_fatal_signals): Add comment.
29870         Reported by Eric Blake.
29871
29872 2008-06-18  Eric Blake  <ebb9@byu.net>
29873
29874         Work around cygwin 1.5.25 strsignal bug.
29875         * tests/test-strsignal.c: Allow for const char *.
29876         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
29877
29878 2008-06-18  Simon Josefsson  <simon@josefsson.org>
29879
29880         * users.txt: Update URL to article and add author/date
29881         information.
29882
29883 2008-06-17  Bruno Haible  <bruno@clisp.org>
29884
29885         New macro gl_DISABLE_THREADS.
29886         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
29887         if the user did not pass --enable-threads or --disable-threads option.
29888         (gl_DISABLE_THREADS): New macro.
29889         Reported by Eric Blake <ebb9@byu.net>.
29890
29891 2008-06-17  Bruno Haible  <bruno@clisp.org>
29892
29893         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
29894         when the macro ignores it.
29895         Based on a patch by Eric Blake <ebb9@byu.net>.
29896
29897 2008-06-17  Bruno Haible  <bruno@clisp.org>
29898
29899         * modules/tls (License): Change to LGPLv2+.
29900         Reported by Eric Blake.
29901
29902 2008-06-17  Eric Blake  <ebb9@byu.net>
29903
29904         Simplify c-stack prerequisites.
29905         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
29906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
29907         no longer requires <ucontext.h> to exist.  Optimize setrlimit
29908         check.
29909         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
29910         <sys/resource.h>.
29911
29912         Move c-stack test into testsuite.
29913         * modules/c-stack-tests: New file.
29914         * lib/c-stack.c [DEBUG]: Move test program...
29915         * tests/test-c-stack.c: ...into this new file.  Skip rather than
29916         fail test if sigaltstack is lacking.
29917         * tests/test-c-stack.sh: New driver file.
29918
29919 2008-06-16  Eric Blake  <ebb9@byu.net>
29920
29921         Use raise module consistently.
29922         * modules/fatal-signal (Depends-on): Add raise.
29923         * modules/sigprocmask (Depends-on): Likewise.
29924         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
29925         * lib/sigprocmask.c (sigprocmask): Likewise.
29926         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29927         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
29928
29929         Fix compliance bug in sigpending.
29930         * lib/sigprocmask.c (sigpending): Return pending array via
29931         parameter, not return value.
29932
29933 2008-06-14  Eric Blake  <ebb9@byu.net>
29934
29935         Improve obstack-printf test code.
29936         * tests/test-obstack-printf.c (test_function): Fix comment, and
29937         simplify usage of obstack_* in macros.  Add a test for coverage.
29938         Reported by Bruno Haible.
29939
29940 2008-06-14  Bruno Haible  <bruno@clisp.org>
29941
29942         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
29943         array size as a constant, not as a const variable.
29944         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
29945         AC_USE_SYSTEM_EXTENSIONS.
29946         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29947         Test whether the obstack_printf function actually exists.
29948         * modules/obstack-printf (Depends-on): Add extensions.
29949         (Include): Remove obstack.h.
29950         * modules/obstack-printf-posix (Depends-on): Add extensions.
29951         (Include): Remove obstack.h.
29952
29953 2008-06-13  Eric Blake  <ebb9@byu.net>
29954
29955         Add obstack-printf and obstack-printf-posix modules.
29956         * modules/obstack-printf: New file.
29957         * modules/obstack-printf-posix: Likewise.
29958         * MODULES.html.sh (Misc): Mention them.
29959         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29960         Likewise.
29961         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29962         Likewise.
29963         * modules/stdio (Makefile.am): Accomodate new modules.
29964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29965         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
29966         Declare.
29967         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
29968         functions.
29969         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
29970         (gl_REPLACE_OBSTACK_PRINTF): New macros
29971         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
29972         * tests/test-obstack-printf.c: New file.
29973         * modules/obstack-printf-tests: Likewise.
29974         * modules/obstack-printf-posix-tests: Likewise.
29975
29976 2008-06-11  Bruno Haible  <bruno@clisp.org>
29977
29978         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
29979         * lib/open.c: Include errno.h.
29980         (open): Fail when attempting to write to a file that has a trailing
29981         slash.
29982         * tests/test-open.c (main): Test against trailing slash bug.
29983         * doc/posix-functions/open.texi: Mention the trailing slash bug.
29984
29985 2008-06-10  Bruno Haible  <bruno@clisp.org>
29986
29987         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
29988         for $? to work inside the trap command, with various /bin/sh-s.
29989         * tests/test-vc-list-files-cvs.sh: Likewise.
29990
29991 2008-06-10  Bruno Haible  <bruno@clisp.org>
29992
29993         * lib/acl-internal.h: Don't include gettext.h here.
29994         * lib/set-mode-acl.c: Include gettext.h here.
29995         * lib/copy-acl.c: Likewise.
29996
29997 2008-06-10  Bruno Haible  <bruno@clisp.org>
29998
29999         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30000         * lib/wait-process.c (wait_subprocess): Likewise.
30001         * lib/execute.h (execute): Add termsigp argument.
30002         * lib/execute.c (execute): Likewise.
30003         * lib/csharpcomp.c (compile_csharp_using_pnet,
30004         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30005         * lib/csharpexec.c (execute_csharp_using_pnet,
30006         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30007         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30008         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30009         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30010         is_jikes_present): Update.
30011         * lib/javaexec.c (execute_java_class): Update.
30012         * lib/javaversion.c (execute_and_read_line): Update.
30013         * NEWS: Document the changes.
30014         Reported by Eric Blake.
30015
30016 2008-06-10  Eric Blake  <ebb9@byu.net>
30017
30018         Add missing include.
30019         * tests/test-strstr.c (includes): Add <signal.h>.
30020         * tests/test-strcasestr.c (includes): Likewise.
30021         * tests/test-memmem.c (includes): Likewise.
30022
30023 2008-06-10  Bruno Haible  <bruno@clisp.org>
30024
30025         * lib/wait-process.c (wait_subprocess): Add an assertion.
30026
30027 2008-06-10  Bruno Haible  <bruno@clisp.org>
30028
30029         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30030
30031 2008-06-10  Bruno Haible  <bruno@clisp.org>
30032
30033         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30034         using alarm().
30035         * tests/test-strcasestr.c (main): Likewise.
30036         * tests/test-strstr.c (main): Likewise.
30037
30038 2008-06-09  Bruno Haible  <bruno@clisp.org>
30039
30040         Work around the Solaris 10 ACE ACLs ABI change.
30041         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30042         declare if ACL_NO_TRIVIAL is present.
30043         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30044         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30045         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30046         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30047         define if ACL_NO_TRIVIAL is present.
30048         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30049         and use the current ABI.
30050         (file_has_acl): Use same #if condition as elsewhere.
30051         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30052         in use, and use the current ABI.
30053         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30054         Reported by Jim Meyering.
30055
30056 2008-06-09  Eric Blake  <ebb9@byu.net>
30057
30058         Work around environments that (stupidly) ignore SIGALRM.
30059         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30060         before using alarm().
30061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30062         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30063         Reported by Ian Beckwith <ianb@erislabs.net>.
30064
30065         Produce autobuild blurb earlier in log.
30066         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30067
30068 2008-06-09  Jim Meyering  <meyering@redhat.com>
30069         and OndÅ™ej Vašík  <ovasik@redhat.com>
30070
30071         utimens.c: correct kernel bug work-around
30072         OndÅ™ej Vašík found that the invalid return value of 280 indicates
30073         failure, not success, and the kernel bug we're trying to work
30074         around affects not just the utimensat call, but also the fallback
30075         futimens call.
30076         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30077         not success.
30078         [HAVE_FUTIMENS]: Use the same work-around, here.
30079
30080 2008-06-09  Jim Meyering  <meyering@redhat.com>
30081
30082         add more guards around definition of ACE_-related code
30083         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30084         ALLOW and ACE_OWNER are also defined.
30085
30086 2008-06-08  Bruno Haible  <bruno@clisp.org>
30087
30088         * lib/acl-internal.h: Add me as co-author.
30089         * lib/file-has-acl.c: Likewise.
30090         * lib/set-mode-acl.c: Likewise.
30091         * lib/copy-acl.c: Likewise.
30092
30093 2008-06-08  Bruno Haible  <bruno@clisp.org>
30094
30095         Add support for AIX ACLs.
30096         * lib/acl-internal.h (acl_nontrivial): New declaration.
30097         * lib/file-has-acl.c (acl_nontrivial): New function.
30098         (file_has_acl): Add implementation using AIX 4 ACL API.
30099         * lib/set-mode-acl.c (qset_acl): Likewise.
30100         * lib/copy-acl.c (qcopy_acl): Likewise.
30101
30102 2008-06-08  Bruno Haible  <bruno@clisp.org>
30103
30104         Add support for HP-UX ACLs.
30105         * lib/acl-internal.h (acl_nontrivial): New declaration.
30106         * lib/file-has-acl.c (acl_nontrivial): New function.
30107         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30108         * lib/set-mode-acl.c (qset_acl): Likewise.
30109         * lib/copy-acl.c (qcopy_acl): Likewise.
30110
30111 2008-06-08  Bruno Haible  <bruno@clisp.org>
30112
30113         Add support for Cygwin ACLs.
30114         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30115         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30116         the chmod_or_fchmod call.
30117         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30118
30119 2008-06-08  Bruno Haible  <bruno@clisp.org>
30120
30121         Fix bug with setuid modes in Solaris 10+ code.
30122         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30123         succeeded, when the mode contains some special bits.
30124
30125 2008-06-08  Bruno Haible  <bruno@clisp.org>
30126
30127         Add support for Solaris 7..10 ACLs.
30128         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30129         declarations.
30130         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30131         functions.
30132         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30133         * lib/set-mode-acl.c (qset_acl): Likewise.
30134         * lib/copy-acl.c (qcopy_acl): Likewise.
30135
30136 2008-06-08  Bruno Haible  <bruno@clisp.org>
30137
30138         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30139         declaration.
30140         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30141         (acl_access_nontrivial): Remove MacOS X case.
30142         (file_has_acl): Use acl_extended_nontrivial.
30143         * lib/copy-acl.c (qcopy_acl): Likewise.
30144
30145 2008-06-08  Bruno Haible  <bruno@clisp.org>
30146
30147         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30148
30149 2008-06-08  Jim Meyering  <meyering@redhat.com>
30150
30151         * modules/acl (Maintainer): Add Bruno Haible.
30152
30153 2008-06-07  Bruno Haible  <bruno@clisp.org>
30154
30155         Improve support for Tru64 ACLs.
30156         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30157         ACL on OSF/1.
30158
30159 2008-06-07  Bruno Haible  <bruno@clisp.org>
30160
30161         Add support for MacOS X ACLs.
30162         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30163         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30164         * lib/set-mode-acl.c (qset_acl): Likewise.
30165         * lib/copy-acl.c (qcopy_acl): Likewise.
30166
30167 2008-06-07  Bruno Haible  <bruno@clisp.org>
30168
30169         Fix memory leak introduced on 2008-05-22.
30170         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30171         use.
30172
30173 2008-06-07  Bruno Haible  <bruno@clisp.org>
30174
30175         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30176         to construct an empty ACL.
30177
30178 2008-06-07  Bruno Haible  <bruno@clisp.org>
30179
30180         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30181         precisely.
30182         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30183
30184 2008-06-07  Bruno Haible  <bruno@clisp.org>
30185
30186         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30187         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30188
30189 2008-06-07  Bruno Haible  <bruno@clisp.org>
30190
30191         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30192         regardless of POSIX.
30193         * doc/posix-functions/_longjmp.texi: Likewise.
30194         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30195         SystemV platform in this case.
30196
30197 2008-06-06  Eric Blake  <ebb9@byu.net>
30198
30199         Document abort() bugs.
30200         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30201
30202         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30203         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30204         sigsetjmp.
30205         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30206         siglongjmp, but only as a macro.
30207         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30208         is obsolete.
30209         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30210
30211         Tweak documentation to cover cygwin argz bugs.
30212         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30213         argz bug fix; no code change needed since no cygwin releases
30214         occurred between the last fix and the bug being tested.
30215         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30216         module and recently fixed cygwin bugs.
30217         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30218         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30219         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30220         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30221         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30222         Likewise.
30223         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
30224         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
30225         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
30226         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
30227         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
30228         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
30229         Likewise.
30230
30231         Avoid gcc warning on cygwin.
30232         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
30233         !ACL_NO_TRIVIAL]: Avoid unused variable.
30234
30235 2008-06-05  Eric Blake  <ebb9@byu.net>
30236
30237         Be tolerant of UNKNOWN version in gnulib-tool test dir.
30238         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
30239         git-version-gen fails to come up with a version.
30240         Reported by Simon Josefsson.
30241
30242 2008-06-05  Jim Meyering  <meyering@redhat.com>
30243             Paul Eggert  <eggert@cs.ucla.edu>
30244
30245         utimens.c: work around a probable Linux kernel bug
30246         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
30247         appears to be a kernel bug that causes utimensat to return 280
30248         instead of 0, indicating success.
30249
30250 2008-06-04  Bruno Haible  <bruno@clisp.org>
30251
30252         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
30253         2008-06-01 commit.
30254
30255 2008-06-04  Bruno Haible  <bruno@clisp.org>
30256
30257         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
30258         * lib/file-has-acl.c (acl_access_nontrivial): New function.
30259         (file_has_acl): Use it. Save errno afterwards.
30260         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
30261
30262 2008-06-03  Bruno Haible  <bruno@clisp.org>
30263
30264         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30265         draft code. Simplify #ifs.
30266         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30267         Put Solaris code after POSIX-draft code. Fix comments regarding
30268         Solaris 10, HP-UX. Mention Cygwin.
30269         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30270
30271 2008-06-03  Eric Blake  <ebb9@byu.net>
30272
30273         Provide fallback for older kernels.
30274         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30275         Provide runtime fallback if kernel lacks support.
30276         Reported by Mike Frysinger.
30277
30278 2008-06-02  Bruno Haible  <bruno@clisp.org>
30279
30280         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30281         it exists.
30282
30283 2008-06-02  Bruno Haible  <bruno@clisp.org>
30284
30285         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30286         * lib/copy-acl.c (qcopy_acl): Update comment.
30287
30288 2008-06-02  Bruno Haible  <bruno@clisp.org>
30289
30290         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30291         like ACL APIs.
30292
30293 2008-06-02  Bruno Haible  <bruno@clisp.org>
30294
30295         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30296         * tests/test-set-mode-acl.sh: Likewise.
30297         * tests/test-copy-acl.sh: Likewise.
30298         * tests/test-copy-file.sh: Likewise.
30299
30300 2008-06-02  Bruno Haible  <bruno@clisp.org>
30301
30302         * tests/test-file-has-acl.sh: Remove unused code.
30303
30304 2008-06-01  Bruno Haible  <bruno@clisp.org>
30305
30306         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30307         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30308         messages.
30309         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30310
30311 2008-06-01  Bruno Haible  <bruno@clisp.org>
30312
30313         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30314         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30315         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30316         APIs.
30317         * modules/acl-tests (configure.ac): Remove tests now contained in
30318         m4/acl.m4.
30319
30320 2008-06-02  Jim Meyering  <meyering@redhat.com>
30321
30322         announce-gen: use a better key-server host name
30323         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30324         it may be more consistently reliable.  Suggested by Werner Koch
30325         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30326
30327 2008-06-01  Bruno Haible  <bruno@clisp.org>
30328
30329         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30330         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30331
30332 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30333
30334         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30335
30336 2008-06-01  Bruno Haible  <bruno@clisp.org>
30337
30338         New ACL tests.
30339         * tests/test-file-has-acl.sh: New file.
30340         * tests/test-file-has-acl.c: New file.
30341         * tests/test-set-mode-acl.sh: New file.
30342         * tests/test-set-mode-acl.c: New file.
30343         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30344         * tests/test-copy-acl.c: New file.
30345         * modules/acl-tests: New file, based on modules/copy-file-tests.
30346         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30347         (Depends-on): Add acl-tests.
30348         (configure.ac): Remove checks.
30349         (Makefile.am): Don't create test-sameacls program here any more.
30350
30351 2008-06-01  Bruno Haible  <bruno@clisp.org>
30352
30353         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30354         * tests/test-sameacls.c: Include progname.h.
30355         (main): Invoke set_program_name. Portability fixes for MacOS X,
30356         Solaris, HP-UX.
30357
30358 2008-06-01  Bruno Haible  <bruno@clisp.org>
30359
30360         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30361         function.
30362         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30363
30364 2008-06-01  Bruno Haible  <bruno@clisp.org>
30365
30366         * modules/rpmatch (Depends-on): Add strdup.
30367
30368 2008-06-01  Bruno Haible  <bruno@clisp.org>
30369
30370         * lib/pipe.c: Include unistd-safer.h.
30371         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30372         * modules/pipe (Depends-on): Add unistd-safer.
30373
30374 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30375
30376         * modules/autobuild (configure.ac): Call AB_INIT.
30377
30378 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30379
30380         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30381         Suggested by Bruno Haible <bruno@clisp.org>.
30382
30383 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30384
30385         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30386         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30387         <bruno@clisp.org>.
30388
30389 2008-05-29  Eric Blake  <ebb9@byu.net>
30390
30391         Prefer new POSIX 200x interfaces over futimesat.
30392         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
30393         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
30394         when available.
30395         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
30396
30397 2008-05-28  Bruno Haible  <bruno@clisp.org>
30398
30399         * modules/stpcpy (License): Change to LGPLv2+.
30400         Requested by David Lutterkort <dlutter@redhat.com>.
30401
30402 2008-05-27  Bruno Haible  <bruno@clisp.org>
30403
30404         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
30405         current mingw.
30406         Reported by Jose E. Marchesi <jemarch@gnu.org>.
30407
30408 2008-05-27  Bruno Haible  <bruno@clisp.org>
30409
30410         * modules/iconv_open (Link): New section, from module 'iconv'.
30411         * modules/striconv (Link): Likewise.
30412         * modules/striconveh (Link): Likewise.
30413         * modules/xstriconv (Link): Likewise.
30414         * modules/unicodeio (Link): Likewise.
30415         * modules/propername (Link): Likewise.
30416         Reported by Jim Meyering.
30417
30418 2008-05-26  Jim Meyering  <meyering@redhat.com>
30419
30420         sha256: do not artificially restrict buffer length to be < 2^32
30421         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
30422         uint32_t to size_t.
30423         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
30424         to match.
30425
30426         avoid unaligned access errors, e.g., on sparc
30427         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
30428         direct access through a possibly-unaligned uint64* pointer.
30429         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
30430         direct access through a possibly-unaligned uint32* pointer.
30431         Prompted by this patch from Tom "spot" Callaway:
30432         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
30433
30434         sha512.c: fix typo in comment
30435         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
30436
30437 2008-05-25  Bruno Haible  <bruno@clisp.org>
30438
30439         * lib/set-mode-acl.c: Renamed from lib/acl.c.
30440         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
30441         (Makefile.am): Update lib_SOURCES.
30442
30443 2008-05-25  Bruno Haible  <bruno@clisp.org>
30444
30445         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
30446
30447 2008-05-25  Jim Meyering  <meyering@redhat.com>
30448
30449         useless-if-before-free: freed expr may have white-space differences
30450         * build-aux/useless-if-before-free: Recognize cases in which the
30451         freed expression differs from the tested one in embedded white
30452         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30453         $1 was used, so we can't make any regexp shy.  Improved tests now
30454         detect this.
30455
30456         useless-if-before-free: accept white space in the expression.
30457         * build-aux/useless-if-before-free: For now, any white space
30458         in the expression must be identical in the free argument.
30459
30460         useless-if-before-free: efficiency tweak
30461         * build-aux/useless-if-before-free: Make the expression-matching
30462         regexp "shy".
30463         Make the *outer* regexp shy, not the expr-matching one.
30464
30465         update code-in-comment to accept cast of free arg
30466         * build-aux/useless-if-before-free: Update regexp.
30467
30468 2008-05-25  Bruno Haible  <bruno@clisp.org>
30469
30470         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
30471         * modules/copy-file-tests (Files, Makefile.am): Update.
30472         * tests/test-copy-file.c (func_test_copy): Update.
30473
30474 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
30475
30476         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
30477
30478 2008-05-23  Bruno Haible  <bruno@clisp.org>
30479
30480         Improve support for ACLs on OSF/1.
30481         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
30482         Remove fallback for unknown flavors of ACLs.
30483
30484 2008-05-22  Bruno Haible  <bruno@clisp.org>
30485
30486         Add support for ACLs on OSF/1.
30487         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30488         replacements.
30489         (acl_free_text): New macro fallback.
30490         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
30491         acl_free.
30492         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
30493         acl_free_text function. Require AC_C_INLINE.
30494
30495 2008-05-22  Bruno Haible  <bruno@clisp.org>
30496
30497         Make copy_acl work on MacOS X 10.5.
30498         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
30499         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
30500         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
30501         If MODE_INSIDE_ACL, don't assume that every system has the same text
30502         representation for ACLs as FreeBSD.
30503         * lib/copy-acl.c (copy_acl): Add support for platforms with
30504         !MODE_INSIDE_ACL.
30505         * lib/file-has-acl.c (file_has_acl): Likewise.
30506         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
30507         FreeBSD, MacOS X, or IRIX, respectively.
30508
30509 2008-05-22  Bruno Haible  <bruno@clisp.org>
30510
30511         * lib/acl.h: Don't include <sys/acl.h>.
30512         (GETACLCNT): Move fallback to lib/acl-internal.h.
30513         * lib/acl-internal.h: Include <sys/acl.h> here.
30514         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
30515
30516 2008-05-22  Bruno Haible  <bruno@clisp.org>
30517
30518         Split off copy_acl function to separate file.
30519         * lib/copy-acl.c: New file, extracted from lib/acl.c.
30520         * lib/acl.c (copy_acl): Moved function to separate file.
30521         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
30522         * modules/acl (Files): Add lib/copy-acl.c.
30523         (Makefiles.am): Augment lib_SOURCES.
30524
30525 2008-05-22  Bruno Haible  <bruno@clisp.org>
30526
30527         * modules/copy-file-tests: New file.
30528         * tests/test-copy-file.sh: New file.
30529         * tests/test-copy-file.c: New file.
30530         * tests/test-copy-file-sameacls.c: New file.
30531
30532 2008-05-22  Eric Blake  <ebb9@byu.net>
30533
30534         Avoid gcc warning.
30535         * tests/test-memcmp.c (main): Pass NULL indirectly.
30536
30537 2008-05-21  Bruno Haible  <bruno@clisp.org>
30538
30539         Add reference doc about ACLs.
30540         * doc/acl-resources.txt: New file.
30541         * doc/acl-cygwin.txt: New file.
30542
30543 2008-05-21  Bruno Haible  <bruno@clisp.org>
30544
30545         Avoid one more warning from gcc.
30546         * lib/vasnprintf.c (IF_LINT): Update comments.
30547         (VASNPRINTF): Use it also for the 'prefix' array initializer.
30548
30549 2008-05-21  Jim Meyering  <meyering@redhat.com>
30550
30551         avoid a warning from gcc
30552         * lib/vasnprintf.c (IF_LINT): Define.
30553         (scale10_round_decimal_long_double):
30554         Use it to avoid a "may be used uninitialized" warning.
30555         (scale10_round_decimal_double): Likewise.
30556
30557 2008-05-21  Simon Josefsson  <simon@josefsson.org>
30558
30559         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
30560         declared.
30561
30562 2008-05-20  Bruno Haible  <bruno@clisp.org>
30563
30564         * tests/test-memcmp.c (main): Test also the sign of the result. Test
30565         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
30566
30567 2008-05-20  Simon Josefsson  <simon@josefsson.org>
30568
30569         * modules/memcmp-tests: New file.
30570         * tests/test-memcmp.c: New file.
30571
30572 2008-05-19  Bruno Haible  <bruno@clisp.org>
30573
30574         * modules/propername (Notice, configure.ac): Put quoted "..." into
30575         --keyword option.
30576         * lib/propername.h: Update comments accordingly.
30577         Reported by Eric Blake.
30578
30579 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
30580
30581         * modules/getpass-gnu (Depends-on): Add fseeko.
30582
30583 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30584
30585         * modules/base64-tests: New file.
30586
30587 2008-05-19  Bo Borgerson <gigabo@gmail.com>
30588
30589         * lib/base64.c (base64_decode_ctx): If a decode context structure
30590         was passed in use it to ignore newlines.  If a context structure
30591         was _not_ passed in, continue to treat newlines as garbage (this
30592         is the historical behavior).  Formerly base64_decode.
30593         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30594         takes a decode context structure.
30595         * lib/base64.h (base64_decode): Macro for four-argument calls.
30596         (base64_decode_alloc): Likewise.
30597         * lib/base64.c (base64_decode_ctx): If a decode context structure
30598         was passed in use it to ignore newlines.  If a context structure
30599         was _not_ passed in, continue to treat newlines as garbage (this
30600         is the historical behavior).  Formerly base64_decode.
30601         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30602         takes a decode context structure.
30603         * lib/base64.h (base64_decode): Macro for four-argument calls.
30604         (base64_decode_alloc): Likewise.
30605
30606 2008-05-19  Jim Meyering  <meyering@redhat.com>
30607
30608         avoid a warning from gcc
30609         * lib/trim.c (IF_LINT): Define.
30610         (trim2): Use it to avoid a "may be used uninitialized" warning.
30611
30612         Fix doc typo.
30613         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
30614
30615 2008-05-19  Bruno Haible  <bruno@clisp.org>
30616
30617         * doc/glibc-functions/getpass.texi: Document limits of other
30618         implementations.
30619
30620 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30621             Bruno Haible <bruno@clisp.org>
30622
30623         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
30624
30625 2008-05-18  Bruno Haible  <bruno@clisp.org>
30626
30627         * modules/propername: New file, from GNU gettext.
30628         * lib/propername.h: New file, from GNU gettext.
30629         * lib/propername.c: New file, from GNU gettext.
30630         * MODULES.html.sh (Internationalization functions): Add propername.
30631
30632 2008-05-16  Jim Meyering  <meyering@redhat.com>
30633             Bruno Haible  <bruno@clisp.org>
30634
30635         Avoid some warnings from "gcc -Wshadow".
30636         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
30637
30638 2008-05-15  Eric Blake  <ebb9@byu.net>
30639
30640         Extend previous patch to cygwin 1.7.0.
30641         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
30642         fast implementation in cygwin >= 1.7.0.
30643         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30645
30646 2008-05-15  Bruno Haible  <bruno@clisp.org>
30647
30648         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
30649         implementation in glibc >= 2.9.
30650         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30652
30653 2008-05-15  Bruno Haible  <bruno@clisp.org>
30654
30655         * MODULES.html.sh (Internationalization functions): Remove linebreak.
30656         (Unicode string functions): Add unilbrk/*.
30657         Reported by Karl Berry.
30658
30659 2008-05-15  Eric Blake  <ebb9@byu.net>
30660
30661         Fix violation of <stdbool.h> replacement in regex.
30662         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
30663         * lib/regexec.c (re_search_internal): Likewise.
30664         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
30665
30666 2008-05-15  Jim Meyering  <meyering@redhat.com>
30667
30668         avoid distracting test output when git or cvs is not found
30669         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
30670         * tests/test-vc-list-files-git.sh: Likewise.
30671
30672 2008-05-15  Eric Blake  <ebb9@byu.net>
30673
30674         Glibc finally accepted the memmem speedup code, bugzilla #5514.
30675         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
30676         glibc version.
30677         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30678         * doc/posix-functions/strstr.texi (strstr): Likewise.
30679         * lib/str-two-way.h (MAX): Sychronize with glibc.
30680
30681 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
30682
30683         * lib/regcomp.c (optimize_utf8): Add a note on why we test
30684         opr.ctx_type.
30685         (calc_first): Initialize constraint field.
30686         (duplicate_node_closure): Use it instead of special casing ANCHORS.
30687         Fix grammar.
30688         (duplicate_node): Merge constraint field for all node types.
30689         (calc_eclosure_iter): Look at constraint field for all node types.
30690         * lib/regex_internal.c (create_cd_newstate): Don't look at
30691         opr.ctx_type.
30692
30693 2008-05-14  Bruno Haible  <bruno@clisp.org>
30694
30695         Help GCC to do better code generation.
30696         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
30697         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30698         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
30699         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
30700         Declare with attribute 'malloc' if supported.
30701
30702 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
30703
30704         use "echo STR|wc -c" rather than unportable "expr length STR"
30705         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
30706         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
30707
30708 2008-05-14  Jim Meyering  <meyering@redhat.com>
30709
30710         use dd ibs=$n count=1 ... rather than less-portable head -c$n
30711         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
30712         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
30713         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
30714         via Collin Lasse.
30715
30716 2008-05-14  Eric Blake  <ebb9@byu.net>
30717
30718         Avoid quadratic growth in gl_LIBSOURCES.
30719         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
30720         Suggested by Bruno Haible.
30721
30722         Test xmemdup0.
30723         * modules/xmemdup0-tests: New file.
30724         * tests/test-xmemdup0.c: Likewise.
30725
30726 2008-05-13  Eric Blake  <ebb9@byu.net>
30727
30728         Split xmemdup0 into its own module.
30729         * modules/xmemdup0: New file.
30730         * lib/xmemdup0.h: Likewise.
30731         * lib/xmemdup0.c: Likewise.
30732         * MODULES.html.sh (Memory management functions): Add xmemdup0.
30733         * lib/xalloc.h (xmemdup0): Remove.
30734         * lib/xmalloc.c (xmemdup0): Likewise.
30735
30736 2008-05-13  Eric Blake  <ebb9@byu.net>
30737             Bruno Haible  <bruno@clisp.org>
30738
30739         Reduce number of forks required during autoconf.
30740         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
30741         and gl_LIBSOURCES_DIR.
30742         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
30743         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
30744         m4_syscmd per file.
30745         <m4_foreach_w>: Move...
30746         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
30747
30748 2008-05-13  Eric Blake  <ebb9@byu.net>
30749
30750         * gnulib-tool: Fix various comment typos.
30751
30752 2008-05-12  Bruno Haible  <bruno@clisp.org>
30753
30754         Tailor the linebreaking algorithm.
30755         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
30756
30757 2008-05-12  Bruno Haible  <bruno@clisp.org>
30758
30759         Update to Unicode 5.0.0.
30760         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30761         LBP_JV, LBP_JT. Redistribute values.
30762         (unilbrk_table): Change size.
30763         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
30764         Unicode TR#14 rev. 22.
30765         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30766         LBP_JV, LBP_JT. Redistribute values.
30767         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
30768         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
30769         Update.
30770         * lib/unilbrk/lbrkprop1.h: Regenerated.
30771         * lib/unilbrk/lbrkprop2.h: Regenerated.
30772         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
30773         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
30774         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
30775         Likewise.
30776         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
30777         Likewise.
30778         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
30779         result.
30780         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
30781         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
30782         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
30783         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
30784         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
30785         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
30786
30787 2008-05-11  Bruno Haible  <bruno@clisp.org>
30788
30789         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
30790
30791 2008-05-11  Bruno Haible  <bruno@clisp.org>
30792
30793         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
30794         * modules/unilbrk/gen-lbrk: New file.
30795
30796 2008-05-11  Bruno Haible  <bruno@clisp.org>
30797
30798         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
30799         * m4/sha512.m4 (gl_SHA512): Likewise.
30800
30801 2008-05-11  Jim Meyering  <meyering@redhat.com>
30802
30803         New modules: crypto/sha256, crypto/sha512 (from coreutils)
30804         * modules/crypto/sha256: New file.
30805         * modules/crypto/sha512: Likewise.
30806         * lib/sha256.c: Likewise.
30807         * lib/sha256.h: Likewise.
30808         * lib/sha512.c: Likewise.
30809         * lib/sha512.h: Likewise.
30810         * lib/u64.h: Likewise.
30811         * m4/sha256.m4: Likewise.
30812         * m4/sha512.m4: Likewise.
30813         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
30814
30815 2008-05-10  Bruno Haible  <bruno@clisp.org>
30816
30817         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
30818         (Input/Output <stdio.h>): Add xprintf.
30819         (Signal handling <signal.h>): Add strsignal.
30820         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
30821         (Core language properties): Add func.
30822         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
30823         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
30824         strings.
30825         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
30826         (Input/output): New section.
30827         (File system functions): Add openat-die, stat-macros.
30828         (Networking functions): Add sockets.
30829         (Unicode string functions): Add unictype/*.
30830         (Support for building libraries and executables): Add gperf.
30831         (Support for building documentation): Add agpl-3.0.
30832         (Misc): Add nocrash.
30833
30834 2008-05-10  Bruno Haible  <bruno@clisp.org>
30835
30836         * modules/unictype/gen-ctype: New file.
30837
30838 2008-05-10  Jim Meyering  <meyering@redhat.com>
30839
30840         Make chdir-safer.c more efficient on a system with no symlinks.
30841         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
30842         also if ELOOP is zero.  Suggested by Bruno Haible.
30843
30844         Make chdir-safer.c slightly safer.
30845         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
30846         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
30847
30848         Avoid compile failure on systems without ELOOP (like mingw).
30849         * lib/chdir-safer.c (ELOOP): Define if not already defined.
30850         Reported by Bruno Haible.
30851
30852 2008-05-10  Bruno Haible  <bruno@clisp.org>
30853
30854         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
30855         (is_utf8_encoding): Use a case-insensitive comparison.
30856         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
30857         streq.
30858
30859 2008-05-10  Bruno Haible  <bruno@clisp.org>
30860
30861         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
30862         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
30863         * lib/unilbrk/ulc-common.h (iconv_string_length,
30864         iconv_string_keeping_offsets): Remove declarations.
30865         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
30866         Don't include <iconv.h>, streq.h, xsize.h.
30867         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
30868         conversion.
30869         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
30870         <iconv.h>, streq.h, xsize.h.
30871         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
30872         conversion.
30873         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
30874         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
30875         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
30876         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
30877
30878 2008-05-10  Bruno Haible  <bruno@clisp.org>
30879
30880         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
30881         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
30882
30883         * modules/unilbrk/u32-width-linebreaks-tests: New file.
30884         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
30885
30886         * modules/unilbrk/u16-width-linebreaks-tests: New file.
30887         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
30888
30889         * modules/unilbrk/u8-width-linebreaks-tests: New file.
30890         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
30891
30892         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
30893         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
30894
30895         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
30896         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
30897
30898         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
30899         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
30900
30901         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
30902         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
30903
30904 2008-05-10  Bruno Haible  <bruno@clisp.org>
30905
30906         Split up 'linebreak' module.
30907         * lib/unilbrk.h: New file, based on lib/linebreak.h.
30908         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
30909         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
30910         modifications.
30911         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
30912         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
30913         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
30914         lib/linebreak.c.
30915         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
30916         lib/linebreak.c.
30917         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
30918         lib/linebreak.c.
30919         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
30920         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
30921         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
30922         lib/linebreak.c.
30923         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
30924         lib/linebreak.c.
30925         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
30926         lib/linebreak.c.
30927         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
30928         lib/linebreak.c.
30929         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
30930         lib/linebreak.c.
30931         * modules/unilbrk/base: New file.
30932         * modules/unilbrk/tables: New file.
30933         * modules/unilbrk/u8-possible-linebreaks: New file.
30934         * modules/unilbrk/u16-possible-linebreaks: New file.
30935         * modules/unilbrk/u32-possible-linebreaks: New file.
30936         * modules/unilbrk/ulc-common: New file.
30937         * modules/unilbrk/ulc-possible-linebreaks: New file.
30938         * modules/unilbrk/u8-width-linebreaks: New file.
30939         * modules/unilbrk/u16-width-linebreaks: New file.
30940         * modules/unilbrk/u32-width-linebreaks: New file.
30941         * modules/unilbrk/ulc-width-linebreaks: New file.
30942         * lib/linebreak.h: Remove file.
30943         * lib/linebreak.c: Remove file.
30944         * m4/linebreak.m4: Remove file.
30945         * modules/linebreak: Remove file.
30946         * NEWS: Mention the changes.
30947
30948 2008-05-09  Eric Blake  <ebb9@byu.net>
30949
30950         Add xmemdup0.
30951         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
30952         implementation.
30953         * lib/xmalloc.c (xmemdup0): New C implementation.
30954
30955 2008-05-08  Bruno Haible  <bruno@clisp.org>
30956
30957         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
30958
30959 2008-05-07  Eric Blake  <ebb9@byu.net>
30960
30961         Support cross-compilation of <wctype.h>.
30962         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
30963         AC_CACHE_CHECK.
30964
30965 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
30966
30967         * build-aux/vc-list-files: Add support for bzr.
30968
30969 2008-05-03  Jim Meyering  <meyering@redhat.com>
30970
30971         avoid failed assertion with tight malloc
30972         * tests/test-getndelim2.c: Correct an off-by-one assertion.
30973
30974 2008-05-03  Simon Josefsson  <simon@josefsson.org>
30975
30976         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
30977         are needed from arpa/inet.h.
30978         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
30979         Reported by Bruno Haible.
30980
30981 2008-05-02  Jim Meyering  <meyering@redhat.com>
30982
30983         avoid compilation error on FreeBSD 6
30984         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
30985
30986 2008-05-01  Jim Meyering  <meyering@redhat.com>
30987
30988         useless-if-before-free: correct --help's exit status description
30989         * build-aux/useless-if-before-free (usage): Like grep, exit 0
30990         for one or more matches, etc.  Reported by Bruno Haible.
30991
30992         vc-list-files: make the stand-alone gnulib test work
30993         * modules/vc-list-files-tests (configure.ac):
30994         Define and AC_SUBST abs_aux_dir.
30995         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
30996         $(abs_top_srcdir) to each script and having each of them
30997         duplicate the work of setting PATH, set PATH here, using
30998         the new variable, abs_aux_dir instead.
30999         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31000         * tests/test-vc-list-files-git.sh: Likewise.
31001         Reported by Bruno Haible.
31002
31003 2008-05-01  Bruno Haible  <bruno@clisp.org>
31004
31005         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31006         reallocation. Rename 'done' to 'found_delimiter'.
31007
31008 2008-05-01  Jim Meyering  <meyering@redhat.com>
31009
31010         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31011         * build-aux/vc-list-files: Use `...`, not $(...).
31012
31013 2008-04-30  Jim Meyering  <meyering@redhat.com>
31014
31015         add tests for vc-list-files
31016         * modules/vc-list-files-tests: New module.
31017         * tests/test-vc-list-files-cvs.sh: New file.
31018         * tests/test-vc-list-files-git.sh: New file.
31019
31020         avoid a warning from gcc
31021         * lib/getndelim2.c (IF_LINT): Define.
31022         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31023
31024         vc-list-files: work properly with build-aux/cvsu, too
31025         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31026         to all cvs-based clauses.
31027
31028         vc-list-files: work properly in the CVS+awk case, too
31029         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31030
31031         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31032         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31033         take more than one file argument, so .  Add quotes, just in case $dir
31034         ever contains a shell meta-character.  Prompted by Soren Hansen in
31035         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31036
31037 2008-04-29  Eric Blake  <ebb9@byu.net>
31038
31039         Optimize getndelim2 to use block operations when possible.
31040         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31041         freadseek, and memchr2.
31042         * lib/getndelim2.c (getndelim2): Use them for block reads.
31043
31044 2008-04-29  Bruno Haible  <bruno@clisp.org>
31045
31046         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31047         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31048         * modules/inet_ntop (Depends-on): Add extensions.
31049         * modules/inet_pton (Depends-on): Likewise.
31050         Reported by Simon Josefsson.
31051
31052 2008-04-29  Jim Meyering  <meyering@redhat.com>
31053
31054         When the is more than one match in a block, match all of them.
31055         * build-aux/useless-if-before-free: Iterate through each block
31056         until there are no more matches.
31057
31058         Fix broken useless-if-before-free script.
31059         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31060         the expression to match cast of argument to free-like function.
31061
31062 2008-04-29  Eric Blake  <ebb9@byu.net>
31063
31064         Use new header.
31065         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31066
31067 2008-04-29  Jim Meyering  <meyering@redhat.com>
31068
31069         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31070         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31071         by gnulib to exist and to declare e.g., inet_ntop.
31072         Don't include "inet_ntop.h", now removed.
31073
31074         * m4/arpa_inet_h.m4: Remove trailing blanks.
31075
31076 2008-04-29  Eric Blake  <ebb9@byu.net>
31077
31078         Silence valgrind on safe reads beyond potential array bounds.
31079         * lib/rawmemchr.valgrind: New file.
31080         * lib/strchrnul.valgrind: Likewise.
31081         * modules/rawmemchr (Files): Distribute new file.
31082         * modules/strchrnul (Files): Likewise.
31083         Suggested by Bruno Haible.
31084
31085 2008-04-29  Bruno Haible  <bruno@clisp.org>
31086
31087         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31088         (inet_ntop, inet_pton): Change portability warning's wording.
31089         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31090         Invoke gl_CHECK_NEXT_HEADERS.
31091         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31092         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31093         set ARPA_INET_H.
31094         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31095         * modules/arpa_inet (Description): No longer only for systems that
31096         lack it.
31097         (Depends-on): Add include_next.
31098         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31099         HAVE_ARPA_INET_H.
31100
31101 2008-04-29  Jim Meyering  <meyering@redhat.com>
31102
31103         * modules/mkdir (License): Re-license as LGPLv2+.
31104
31105 2008-04-29  Bruno Haible  <bruno@clisp.org>
31106
31107         * modules/rawmemchr (Maintainer): Set to Eric.
31108         * modules/strchrnul (Maintainer): Likewise.
31109
31110 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31111
31112         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31113         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31114
31115         * modules/arpa_inet (arpa/inet.h): Use them.
31116
31117 2008-04-28  Eric Blake  <ebb9@byu.net>
31118
31119         Test getndelim2.
31120         * modules/getndelim2-tests: New file.
31121         * tests/test-getndelim2.c: Likewise.
31122         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31123         stream.
31124         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31125
31126         * MODULES.html.sh: Document new module.
31127
31128 2008-04-20  Bruno Haible  <bruno@clisp.org>
31129
31130         * lib/c-stack.c (die): Use raise.
31131         * modules/c-stack (Depends-on): Add raise.
31132
31133 2008-04-28  Bruno Haible  <bruno@clisp.org>
31134
31135         Expect rpmatch to be declared.
31136         * lib/yesno.c (rpmatch): Remove declaration.
31137
31138         Declare rpmatch.
31139         * lib/stdlib.in.h (rpmatch): New declaration.
31140         * lib/rpmatch.c: Include <stdlib.h> first.
31141         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31142         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31144         HAVE_RPMATCH.
31145         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31146         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31147         (Include): Set to <stdlib.h>.
31148         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31149         HAVE_RPMATCH.
31150         * NEWS: Document the change.
31151
31152 2008-04-28  Bruno Haible  <bruno@clisp.org>
31153
31154         Change rpmatch to use nl_langinfo when appropriate.
31155         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31156         (N_): New macro.
31157         (localized_pattern): New function/macro.
31158         (try): Remove match, nomatch arguments. Copy the pattern into safe
31159         memory before caching it.
31160         (rpmatch): Use localized_pattern. Add translator comments.
31161         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31162         Suggested by Eric Blake.
31163         * modules/rpmatch (Depends-on): Add stdbool.
31164
31165 2008-04-28  Eric Blake  <ebb9@byu.net>
31166
31167         Add rawmemchr module, matching glibc.
31168         * modules/string (Makefile.am): New indicator.
31169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31170         * lib/string.in.h (rawmemchr): Declare when appropriate.
31171         * modules/rawmemchr: New file.
31172         * m4/rawmemchr.m4: Likewise.
31173         * lib/rawmemchr.c: Likewise.
31174         * modules/rawmemchr-tests: Likewise.
31175         * tests/test-rawmemchr.c: Likewise.
31176         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31177         module.
31178         * modules/strchrnul (Depends-on): Add rawmemchr.
31179         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31180
31181         Whitespace cleanup.
31182         * tests/test-strchrnul.c: Reindent.
31183         * lib/strchrnul.c: Likewise.
31184
31185         Optimize and test strchrnul.
31186         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31187         * modules/strchrnul-tests: New file.
31188         * tests/test-strchrnul.c: Likewise.
31189
31190         Remove intprops dependency.
31191         * modules/memchr (Depends-on): Remove intprops.
31192         * modules/memrchr (Depends-on): Likewise.
31193         * modules/memchr2 (Depends-on): Likewise.
31194         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31195         * lib/memrchr.c (__memrchr): Likewise.
31196         * lib/memrchr2.c (memchr2): Likewise.
31197         Reported by Simon Josefsson.
31198
31199 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31200
31201         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31202         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31203
31204 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31205
31206         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31207
31208         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31209
31210         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31211
31212         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31213         declarations.
31214         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31215
31216         * m4/inet_pton.m4: Don't check for header files.
31217
31218         * m4/inet_ntop.m4: Don't check for header files.
31219
31220 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31221
31222         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
31223         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
31224         trigger for cygwin).
31225         Reported by Bruno Haible  <bruno@clisp.org>.
31226
31227 2008-04-28  Bruno Haible  <bruno@clisp.org>
31228
31229         * doc/posix-functions/strdup.texi: Mention mingw problem.
31230
31231 2008-04-27  Bruno Haible  <bruno@clisp.org>
31232
31233         * modules/stat-time-tests (Depends-on): Add sleep.
31234         * tests/test-stat-time.c (force_unlink): New function.
31235         (cleanup): Use it.
31236         (test_mtime): Remove the ctime related tests.
31237         (test_ctime): New function, containing the ctime related tests.
31238         (main): Call test_ctime, except on native Windows platforms.
31239
31240 2008-04-27  Bruno Haible  <bruno@clisp.org>
31241
31242         * lib/rpmatch.c (rpmatch): Add some comments.
31243         Reported by James Youngman <jay@gnu.org>.
31244
31245 2008-04-27  Bruno Haible  <bruno@clisp.org>
31246
31247         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
31248         quiet NaNs.
31249
31250 2008-04-27  Bruno Haible  <bruno@clisp.org>
31251
31252         Make test-yesno.sh work on mingw.
31253         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
31254         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
31255         (main): Set stdin to binary mode.
31256         * modules/yesno-tests (Depends-on): Add binary-io.
31257
31258 2008-04-27  Bruno Haible  <bruno@clisp.org>
31259
31260         Fix 'isfinite' on x86, x86_64, ia64 platforms.
31261         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
31262         argument that lie outside the IEEE 854 domain.
31263         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31264         (gl_ISFINITE): Use it.
31265         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31266
31267 2008-04-27  Bruno Haible  <bruno@clisp.org>
31268
31269         Allow local renaming in config.h.
31270         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31271
31272 2008-04-27  Bruno Haible  <bruno@clisp.org>
31273
31274         * lib/memchr.c (__memchr): Change type of 'i'.
31275         * lib/memchr2.c (memchr2): Likewise.
31276
31277 2008-04-26  Eric Blake  <ebb9@byu.net>
31278         and Bruno Haible  <bruno@clisp.org>
31279
31280         Optimize and test memrchr.
31281         * modules/memrchr (Depends-on): Add intprops.
31282         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31283         * modules/memrchr-tests: New file.
31284         * tests/test-memrchr.c: New file.
31285
31286 2008-04-26  Bruno Haible  <bruno@clisp.org>
31287
31288         Add tentative support for DragonFly BSD.
31289         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31290         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31291         fp.
31292         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31293         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31294         * lib/fpurge.c (fpurge): Likewise.
31295         * lib/freadable.c (freaadable): Likewise.
31296         * lib/freadahead.c (freadahead): Likewise.
31297         * lib/freading.c (freading): Likewise.
31298         * lib/freadptr.c (freadptr): Likewise.
31299         * lib/freadseek.c (freadptrinc): Likewise.
31300         * lib/fseeko.c (fseeko): Likewise.
31301         * lib/fseterr.c (fseterr): Likewise.
31302         * lib/fwritable.c (fwritable): Likewise.
31303         * lib/fwriting.c (fwriting): Likewise.
31304
31305 2008-04-26  Bruno Haible  <bruno@clisp.org>
31306
31307         * lib/stdio-impl.h: New file.
31308         * lib/fbufmode.c: Include stdio-impl.h.
31309         (fbufmode): Use fp_, remove redundant #defines.
31310         * lib/fflush.c: Include stdio-impl.h.
31311         (clear_ungetc_buffer): Remove redundant #defines.
31312         * lib/fpurge.c: Include stdio-impl.h.
31313         (fpurge): Remove redundant #defines.
31314         * lib/freadable.c: Include stdio-impl.h.
31315         (freadable): Remove redundant #defines.
31316         * lib/freadahead.c: Include stdio-impl.h.
31317         (freadahead): Remove redundant #defines.
31318         * lib/freading.c: Include stdio-impl.h.
31319         (freading): Remove redundant #defines.
31320         * lib/freadptr.c: Include stdio-impl.h.
31321         (freadptr): Remove redundant #defines.
31322         * lib/freadseek.c: Include stdio-impl.h.
31323         (freadptrinc): Remove redundant #defines.
31324         * lib/fseeko.c: Include stdio-impl.h.
31325         (rpl_fseeko): Remove redundant #defines.
31326         * lib/fseterr.c: Include stdio-impl.h.
31327         (fseterr): Remove redundant #defines.
31328         * lib/fwritable.c: Include stdio-impl.h.
31329         (fwritable: Remove redundant #defines.
31330         * lib/fwriting.c: Include stdio-impl.h.
31331         (fwriting): Remove redundant #defines.
31332         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31333         * modules/fflush (Files): Likewise.
31334         * modules/fpurge (Files): Likewise.
31335         * modules/freadable (Files): Likewise.
31336         * modules/freadahead (Files): Likewise.
31337         * modules/freading (Files): Likewise.
31338         * modules/freadptr (Files): Likewise.
31339         * modules/freadseek (Files): Likewise.
31340         * modules/fseeko (Files): Likewise.
31341         * modules/fseterr (Files): Likewise.
31342         * modules/fwritable (Files): Likewise.
31343         * modules/fwriting (Files): Likewise.
31344
31345 2008-04-26  Bruno Haible  <bruno@clisp.org>
31346
31347         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31348         restore_seek_optimization, update_fpos_cache): New functions, extracted
31349         from rpl_fflush.
31350         (rpl_fflush): Use them.
31351         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31352         (gl_REPLACE_FFLUSH): Use it.
31353
31354 2008-04-26  Bruno Haible  <bruno@clisp.org>
31355
31356         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31357         on Solaris.
31358         * tests/test-xstrtoimax.sh: Likewise.
31359         * tests/test-xstrtoumax.sh: Likewise.
31360         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31361
31362 2008-04-26  Bruno Haible  <bruno@clisp.org>
31363
31364         * modules/memchr-tests: New file.
31365         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31366
31367 2008-04-26  Eric Blake  <ebb9@byu.net>
31368             Bruno Haible  <bruno@clisp.org>
31369
31370         * lib/memchr.c: Include intprops.h.
31371         (__memchr): Optimize parallel detection of matching bytes. Rename local
31372         variables. Add explanatory comments.
31373
31374 2008-04-26  Bruno Haible  <bruno@clisp.org>
31375
31376         Fix module 'memchr', broken since 2000-10-28.
31377         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31378
31379 2008-04-26  Bruno Haible  <bruno@clisp.org>
31380
31381         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31382         comments.
31383
31384 2008-04-25  Eric Blake  <ebb9@byu.net>
31385
31386         Use native fstatat on cygwin 1.7.0.
31387         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31388         first.
31389
31390 2008-04-23  Eric Blake  <ebb9@byu.net>
31391
31392         Improve memchr2 performance.
31393         * lib/memchr2.c (memchr2): Further optimize parallel detection of
31394         NUL bytes.
31395         * modules/memchr2 (Depends-on): Use intprops.h.
31396
31397 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31398
31399         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
31400         an inline function instead of a CPP macro.  Patch by Ben Pfaff
31401         <blp@cs.stanford.edu>.
31402
31403 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31404
31405         * lib/arpa_inet.in.h: New file.
31406
31407         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
31408         (Makefile.am): Sed in substitute header file.
31409
31410         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
31411         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
31412
31413         * modules/inet_ntop (configure.ac): Use
31414         gl_ARPA_INET_MODULE_INDICATOR.
31415
31416         * modules/inet_pton (configure.ac): Use
31417         gl_ARPA_INET_MODULE_INDICATOR.
31418
31419 2008-04-22  Jim Meyering  <meyering@redhat.com>
31420
31421         * modules/verify (License): Re-license as LGPLv2+.
31422
31423 2008-04-22  Simon Josefsson  <simon@josefsson.org>
31424
31425         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
31426         parameter to void* as per POSIX standard (MinGW uses char*).
31427
31428 2008-04-21  Bruno Haible  <bruno@clisp.org>
31429
31430         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31431         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31432         Define to replacements if REPLACE_ISWCNTRL is 1.
31433         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
31434         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
31435         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
31436         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
31437         what it fixes.
31438         * doc/posix-functions/iswalpha.texi: Likewise.
31439         * doc/posix-functions/iswblank.texi: Likewise.
31440         * doc/posix-functions/iswcntrl.texi: Likewise.
31441         * doc/posix-functions/iswdigit.texi: Likewise.
31442         * doc/posix-functions/iswgraph.texi: Likewise.
31443         * doc/posix-functions/iswlower.texi: Likewise.
31444         * doc/posix-functions/iswprint.texi: Likewise.
31445         * doc/posix-functions/iswpunct.texi: Likewise.
31446         * doc/posix-functions/iswspace.texi: Likewise.
31447         * doc/posix-functions/iswupper.texi: Likewise.
31448         * doc/posix-functions/iswxdigit.texi: Likewise.
31449         Reported by Alain Guibert.
31450
31451 2008-04-21  Bruno Haible  <bruno@clisp.org>
31452
31453         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
31454         Patch by Alain Guibert.
31455
31456 2008-04-21  Bruno Haible  <bruno@clisp.org>
31457
31458         Fix test failures on mingw.
31459         * tests/test-xstrtol.c (print_no_progname): New function.
31460         (main): Install it in error_print_progname hook.
31461         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
31462         * tests/test-xstrtoimax.sh: Likewise.
31463         * tests/test-xstrtoumax.sh: Likewise.
31464
31465 2008-04-21  Bruno Haible  <bruno@clisp.org>
31466
31467         Fix test failure on mingw.
31468         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
31469
31470 2008-04-21  Bruno Haible  <bruno@clisp.org>
31471
31472         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
31473         Actually assign a value.
31474
31475 2008-04-20  Bruno Haible  <bruno@clisp.org>
31476
31477         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
31478         take 2.
31479         * lib/canonicalize.c (canonicalize_file_name): Elide if the
31480         'canonicalize-lgpl' module is also used.
31481         * lib/canonicalize-lgpl.c: Undo last change.
31482         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
31483
31484 2008-04-20  Bruno Haible  <bruno@clisp.org>
31485
31486         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
31487         config.h. Provide _mkdir based fallback for mingw.
31488         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
31489         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
31490         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
31491         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
31492         rather than defining mkdir in config.h.
31493         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
31494         (gl_SYS_STAT_H_DEFAULTS): New macro.
31495         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
31496         HAVE_IO_H any more.
31497         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
31498         HAVE_DECL_MKDIR and HAVE_IO_H.
31499
31500 2008-04-20  Bruno Haible  <bruno@clisp.org>
31501
31502         * lib/isapipe.c: Port to native Windows platforms.
31503
31504 2008-04-20  Bruno Haible  <bruno@clisp.org>
31505
31506         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
31507
31508 2008-04-21  Eric Blake  <ebb9@byu.net>
31509
31510         Work around preprocessors that don't handle UINTMAX_MAX.
31511         * lib/memchr2.c (memchr2): Avoid embedded #if.
31512         Reported by Alain Guibert, fix suggested by Bruno Haible.
31513
31514 2008-04-21  Simon Josefsson  <simon@josefsson.org>
31515
31516         * doc/posix-functions/strftime.texi (strftime): Explain better
31517         Windows incompatibility.  Suggested by Micah Cowan
31518         <micah@cowan.name>.
31519
31520 2008-04-20  Bruno Haible  <bruno@clisp.org>
31521
31522         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
31523         unistr/u8-mblen.
31524
31525 2008-04-20  Bruno Haible  <bruno@clisp.org>
31526
31527         Fix test failure on platforms with non-GNU iconv.
31528         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
31529         (U_TO_U8): Use it, rather than u16_to_u8.
31530         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
31531         units at the end of the input string.
31532         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
31533
31534 2008-04-20  Bruno Haible  <bruno@clisp.org>
31535
31536         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
31537         when the resulting length is 0.
31538         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
31539
31540 2008-04-20  Bruno Haible  <bruno@clisp.org>
31541
31542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
31543         works.
31544         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
31545
31546 2008-04-20  Bruno Haible  <bruno@clisp.org>
31547
31548         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
31549         * modules/tsearch-tests (configure.ac): Test for initstate function.
31550
31551 2008-04-20  Bruno Haible  <bruno@clisp.org>
31552
31553         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
31554         for nlink_t if missing.
31555         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
31556
31557 2008-04-19  Bruno Haible  <bruno@clisp.org>
31558
31559         Work around snprintf bug on Linux libc5.
31560         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
31561         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31562         gl_SNPRINTF_SIZE1.
31563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31564         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
31565         that test failed.
31566         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31567         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
31568         * modules/snprintf (Files): Add m4/printf.m4.
31569         * modules/vsnprintf (Files): Likewise.
31570         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
31571         * doc/posix-functions/vsnprintf.texi: Likewise.
31572
31573 2008-04-19  Bruno Haible  <bruno@clisp.org>
31574
31575         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
31576         from 0.0058 to less than 10^-7.
31577
31578 2008-04-19  Bruno Haible  <bruno@clisp.org>
31579
31580         Fix rounding when a precision is given.
31581         * lib/vasnprintf.c (is_borderline): New function.
31582         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
31583         9...9x.
31584         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
31585         %e, %g.
31586         * tests/test-vasprintf-posix.c (test_function): Likewise.
31587         * tests/test-snprintf-posix.h (test_function): Likewise.
31588         * tests/test-sprintf-posix.h (test_function): Likewise.
31589         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
31590         * tests/test-printf-posix.h (test_function): Likewise.
31591         * tests/test-printf-posix.output: Update.
31592         Reported by John Darrington <john@darrington.wattle.id.au> via
31593         Ben Pfaff <blp@cs.stanford.edu>.
31594
31595 2008-04-18  Simon Josefsson  <simon@josefsson.org>
31596
31597         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
31598         Suggested by Bruno Haible <bruno@clisp.org>.
31599
31600 2008-04-17  Bruno Haible  <bruno@clisp.org>
31601
31602         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
31603         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
31604         implementation.
31605         Patch by Bruce Merry <bmerry@gmail.com>.
31606
31607 2008-04-17  Simon Josefsson  <simon@josefsson.org>
31608
31609         * doc/posix-functions/strftime.texi (strftime): Mention that %e
31610         doesn't work under Windows.
31611
31612 2008-04-16  Bruno Haible  <bruno@clisp.org>
31613
31614         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
31615         New macros.
31616         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
31617         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
31618         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
31619         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
31620         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
31621         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
31622         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
31623         macros.
31624         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
31625         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
31626         Northern Sotho, Uighur.
31627
31628 2008-04-16  Bruno Haible  <bruno@clisp.org>
31629
31630         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
31631         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
31632         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
31633         Reported by Daniel Bergström <daniel@octocode.com>.
31634
31635 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
31636             Bruno Haible  <bruno@clisp.org>
31637
31638         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
31639         function.
31640         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
31641         New functions, mostly extracted from gl_locale_name_default.
31642         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
31643
31644 2008-04-16  Eric Blake  <ebb9@byu.net>
31645
31646         Adjust strtod detection to catch glibc 2.7 bug.
31647         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
31648         Reported by John Gatewood Ham.
31649
31650 2008-04-16  Bruno Haible  <bruno@clisp.org>
31651
31652         Add tentative support for Linux libc5.
31653         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
31654         * lib/fpurge.c (fpurge): Likewise.
31655         * lib/freadable.c (freadable): Likewise.
31656         * lib/freadahead.c (freadahead): Likewise.
31657         * lib/freading.c (freading): Likewise.
31658         * lib/freadptr.c (freadptr): Likewise.
31659         * lib/freadseek.c (freadptrinc): Likewise.
31660         * lib/fseeko.c (rpl_fseeko): Likewise.
31661         * lib/fseterr.c (fseterr): Likewise.
31662         * lib/fwritable.c (fwritable): Likewise.
31663         * lib/fwriting.c (fwriting): Likewise.
31664         Reported by Alain Guibert <alguibert+bts@free.fr>.
31665
31666 2008-04-15  Bruno Haible  <bruno@clisp.org>
31667
31668         * modules/mathl (configure.ac): Define module indicator.
31669
31670 2008-04-15  Bruno Haible  <bruno@clisp.org>
31671
31672         * lib/logl.c (logl): Remove unused variables.
31673
31674 2008-04-15  Bruno Haible  <bruno@clisp.org>
31675
31676         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
31677         fails.
31678
31679 2008-04-15  Bruno Haible  <bruno@clisp.org>
31680
31681         * lib/trim.c (trim2): Fix argument of isspace() macro.
31682
31683 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
31684
31685         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
31686         to 0.
31687         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
31688
31689 2008-04-14  Bruno Haible  <bruno@clisp.org>
31690
31691         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
31692         AC_LANG_PROGRAM argument.
31693         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
31694         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
31695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31696         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31697         * m4/math_h.m4 (gl_MATH_H): Likewise.
31698         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
31699         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31700         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31701         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
31702         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
31703         * m4/regex.m4 (gl_REGEX): Likewise.
31704         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
31705         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
31706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31707         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
31708         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31709         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31710         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31712
31713 2008-04-14  Jim Meyering  <meyering@redhat.com>
31714
31715         test-strtod: fix typos: s/abs/fabs/
31716         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
31717
31718 2008-04-13  Bruno Haible  <bruno@clisp.org>
31719
31720         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
31721         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
31722         module is also used and while not building the reloc-wrapper.
31723
31724 2008-04-13  Bruno Haible  <bruno@clisp.org>
31725
31726         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
31727
31728 2008-04-13  Bruno Haible  <bruno@clisp.org>
31729
31730         Fix AIX compilation failure introduced on 2008-04-02.
31731         * tests/test-frexp.c (exp): Undefine before redefining.
31732         * tests/test-frexpl.c (exp): Likewise.
31733
31734 2008-04-13  Bruno Haible  <bruno@clisp.org>
31735
31736         Work around a HP-UX stdio bug.
31737         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
31738         * tests/test-ftello.c (main): Likewise.
31739         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
31740         * doc/posix-functions/ftello.texi: Likewise.
31741
31742 2008-04-13  Bruno Haible  <bruno@clisp.org>
31743
31744         Make test-signbit pass on HP-UX/hppa.
31745         * tests/test-signbit.c (minus_zerol): New variable.
31746         (test_signbitl): Use it.
31747
31748 2008-04-13  Bruno Haible  <bruno@clisp.org>
31749
31750         Make truncl work on OSF/1 4.0.
31751         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
31752         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31753         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
31755         HAVE_DECL_TRUNCL.
31756         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
31757         HAVE_DECL_TRUNCL.
31758         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
31759
31760 2008-04-13  Bruno Haible  <bruno@clisp.org>
31761
31762         * lib/unictype.h: Remove trailing comma from enumeration definitions.
31763
31764 2008-04-13  Bruno Haible  <bruno@clisp.org>
31765
31766         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
31767         expression, so as to avoid HP-UX 11 cc compiler bug.
31768
31769 2008-04-13  Bruno Haible  <bruno@clisp.org>
31770
31771         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
31772
31773 2008-04-13  Bruno Haible  <bruno@clisp.org>
31774
31775         * lib/git-merge-changelog.c: Remove empty declaration outside of
31776         functions.
31777
31778 2008-04-13  Bruno Haible  <bruno@clisp.org>
31779
31780         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
31781
31782 2008-04-13  Bruno Haible  <bruno@clisp.org>
31783
31784         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
31785         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
31786         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
31787         also if it exists but lacks definitions of the SHUT_* macros.
31788         * modules/sys_socket (Description): Update.
31789         Reported by Elbert Pol <e.pol@chello.nl>.
31790
31791 2008-04-13  Bruno Haible  <bruno@clisp.org>
31792
31793         * lib/localcharset.c (OS2): Don't redefine if already defined.
31794         Reported by Elbert Pol <e.pol@chello.nl>.
31795
31796 2008-04-13  Bruno Haible  <bruno@clisp.org>
31797
31798         * lib/binary-io.h [__EMX__]: Include <io.h>.
31799         Reported by Elbert Pol <e.pol@chello.nl>.
31800
31801 2008-04-12  Bruno Haible  <bruno@clisp.org>
31802
31803         * lib/fpucw.h: Enable the definitions also for x86_64.
31804         Needed for NetBSD/x86_64.
31805         Reported by Thomas Klausner <tk@giga.or.at>.
31806
31807 2008-04-12  Bruno Haible  <bruno@clisp.org>
31808
31809         * tests/test-strtod.c: Include isnand.h.
31810         (main): Use isnand instead of isnan.
31811         Reported by Jim Meyering.
31812
31813 2008-04-12  Bruno Haible  <bruno@clisp.org>
31814
31815         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
31816         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31817
31818 2008-04-12  Jim Meyering  <meyering@redhat.com>
31819
31820         * m4/math_h.m4 (gl_MATH_H): Fix typos.
31821
31822 2008-04-12  Bruno Haible  <bruno@clisp.org>
31823
31824         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
31825         Reported by Elbert Pol <e.pol@chello.nl>.
31826
31827 2008-04-12  Eric Blake  <ebb9@byu.net>
31828
31829         Work around Solaris 10 math.h bug.
31830         * m4/math_h.m4 (gl_MATH_H): Check for bug.
31831         (gl_MATH_H_DEFAULTS): Set up default.
31832         * modules/math (Makefile.am): Replace new indicators.
31833         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
31834         * tests/test-math.c (main): Test this.
31835         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
31836         * doc/posix-headers/math.texi (math.h): Mention bug.
31837         Reported by Nelson H. F. Beebe and Jim Meyering.
31838
31839 2008-04-11  Bruno Haible  <bruno@clisp.org>
31840
31841         Adapt to future versions of Apple GCC.
31842         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
31843         Reported by Peter O'Gorman <peter@pogma.com>.
31844
31845 2008-04-11  Bruno Haible  <bruno@clisp.org>
31846
31847         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
31848
31849 2008-04-11  Bruno Haible  <bruno@clisp.org>
31850
31851         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
31852
31853         * modules/getaddrinfo-tests (Makefile.am): Define
31854         test_getaddrinfo_LDADD.
31855
31856 2008-04-11  Bruno Haible  <bruno@clisp.org>
31857
31858         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
31859         (init): Fix syntax error.
31860         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
31861         is declared.
31862
31863 2008-04-11  Bruno Haible  <bruno@clisp.org>
31864
31865         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
31866         * modules/glob (Depends-on): Add stdbool.
31867
31868 2008-04-11  Bruno Haible  <bruno@clisp.org>
31869
31870         * lib/trim.c: Include <string.h>.
31871
31872 2008-04-11  Eric Blake  <ebb9@byu.net>
31873
31874         Avoid compile failure on OS/2.
31875         * lib/regex_internal.h (internal_function): Disable optimization
31876         on OS/2 (__EMX__), where it caused compiler error.
31877         Reported by Elbert Pol.
31878
31879 2008-04-11  Bruno Haible  <bruno@clisp.org>
31880
31881         Flush the standard error stream before aborting. Needed on mingw.
31882         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
31883         * tests/test-array_list.c (ASSERT): Likewise.
31884         * tests/test-array_oset.c (ASSERT): Likewise.
31885         * tests/test-avltree_list.c (ASSERT): Likewise.
31886         * tests/test-avltree_oset.c (ASSERT): Likewise.
31887         * tests/test-avltreehash_list.c (ASSERT): Likewise.
31888         * tests/test-binary-io.c (ASSERT): Likewise.
31889         * tests/test-byteswap.c (ASSERT): Likewise.
31890         * tests/test-c-ctype.c (ASSERT): Likewise.
31891         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
31892         * tests/test-c-strcasestr.c (ASSERT): Likewise.
31893         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
31894         * tests/test-c-strstr.c (ASSERT): Likewise.
31895         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
31896         * tests/test-canonicalize.c (ASSERT): Likewise.
31897         * tests/test-carray_list.c (ASSERT): Likewise.
31898         * tests/test-ceilf1.c (ASSERT): Likewise.
31899         * tests/test-ceilf2.c (ASSERT): Likewise.
31900         * tests/test-ceill.c (ASSERT): Likewise.
31901         * tests/test-count-one-bits.c (ASSERT): Likewise.
31902         * tests/test-fbufmode.c (ASSERT): Likewise.
31903         * tests/test-fflush2.c (ASSERT): Likewise.
31904         * tests/test-floorf1.c (ASSERT): Likewise.
31905         * tests/test-floorf2.c (ASSERT): Likewise.
31906         * tests/test-floorl.c (ASSERT): Likewise.
31907         * tests/test-fopen.c (ASSERT): Likewise.
31908         * tests/test-fpending.c (ASSERT): Likewise.
31909         * tests/test-fprintf-posix.c (ASSERT): Likewise.
31910         * tests/test-fpurge.c (ASSERT): Likewise.
31911         * tests/test-freadable.c (ASSERT): Likewise.
31912         * tests/test-freadahead.c (ASSERT): Likewise.
31913         * tests/test-freading.c (ASSERT): Likewise.
31914         * tests/test-freadptr.c (ASSERT): Likewise.
31915         * tests/test-freadptr2.c (ASSERT): Likewise.
31916         * tests/test-freadseek.c (ASSERT): Likewise.
31917         * tests/test-freopen.c (ASSERT): Likewise.
31918         * tests/test-frexp.c (ASSERT): Likewise.
31919         * tests/test-frexpl.c (ASSERT): Likewise.
31920         * tests/test-fseek.c (ASSERT): Likewise.
31921         * tests/test-fseeko.c (ASSERT): Likewise.
31922         * tests/test-fstrcmp.c (ASSERT): Likewise.
31923         * tests/test-ftell.c (ASSERT): Likewise.
31924         * tests/test-ftello.c (ASSERT): Likewise.
31925         * tests/test-func.c (ASSERT): Likewise.
31926         * tests/test-fwritable.c (ASSERT): Likewise.
31927         * tests/test-fwriting.c (ASSERT): Likewise.
31928         * tests/test-getdelim.c (ASSERT): Likewise.
31929         * tests/test-getline.c (ASSERT): Likewise.
31930         * tests/test-i-ring.c (ASSERT): Likewise.
31931         * tests/test-iconv-utf.c (ASSERT): Likewise.
31932         * tests/test-iconv.c (ASSERT): Likewise.
31933         * tests/test-isfinite.c (ASSERT): Likewise.
31934         * tests/test-isnand.c (ASSERT): Likewise.
31935         * tests/test-isnanf.c (ASSERT): Likewise.
31936         * tests/test-isnanl.h (ASSERT): Likewise.
31937         * tests/test-ldexpl.c (ASSERT): Likewise.
31938         * tests/test-linked_list.c (ASSERT): Likewise.
31939         * tests/test-linkedhash_list.c (ASSERT): Likewise.
31940         * tests/test-localename.c (ASSERT): Likewise.
31941         * tests/test-lseek.c (ASSERT): Likewise.
31942         * tests/test-mbscasecmp.c (ASSERT): Likewise.
31943         * tests/test-mbscasestr1.c (ASSERT): Likewise.
31944         * tests/test-mbscasestr2.c (ASSERT): Likewise.
31945         * tests/test-mbscasestr3.c (ASSERT): Likewise.
31946         * tests/test-mbscasestr4.c (ASSERT): Likewise.
31947         * tests/test-mbschr.c (ASSERT): Likewise.
31948         * tests/test-mbscspn.c (ASSERT): Likewise.
31949         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
31950         * tests/test-mbspbrk.c (ASSERT): Likewise.
31951         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
31952         * tests/test-mbsrchr.c (ASSERT): Likewise.
31953         * tests/test-mbsspn.c (ASSERT): Likewise.
31954         * tests/test-mbsstr1.c (ASSERT): Likewise.
31955         * tests/test-mbsstr2.c (ASSERT): Likewise.
31956         * tests/test-mbsstr3.c (ASSERT): Likewise.
31957         * tests/test-memchr2.c (ASSERT): Likewise.
31958         * tests/test-memmem.c (ASSERT): Likewise.
31959         * tests/test-open.c (ASSERT): Likewise.
31960         * tests/test-printf-frexp.c (ASSERT): Likewise.
31961         * tests/test-printf-frexpl.c (ASSERT): Likewise.
31962         * tests/test-printf-posix.c (ASSERT): Likewise.
31963         * tests/test-quotearg.c (ASSERT): Likewise.
31964         * tests/test-rbtree_list.c (ASSERT): Likewise.
31965         * tests/test-rbtree_oset.c (ASSERT): Likewise.
31966         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
31967         * tests/test-round1.c (ASSERT): Likewise.
31968         * tests/test-roundf1.c (ASSERT): Likewise.
31969         * tests/test-roundl.c (ASSERT): Likewise.
31970         * tests/test-signbit.c (ASSERT): Likewise.
31971         * tests/test-sleep.c (ASSERT): Likewise.
31972         * tests/test-snprintf-posix.c (ASSERT): Likewise.
31973         * tests/test-snprintf.c (ASSERT): Likewise.
31974         * tests/test-sprintf-posix.c (ASSERT): Likewise.
31975         * tests/test-stat-time.c (ASSERT): Likewise.
31976         * tests/test-strcasestr.c (ASSERT): Likewise.
31977         * tests/test-strerror.c (ASSERT): Likewise.
31978         * tests/test-striconv.c (ASSERT): Likewise.
31979         * tests/test-striconveh.c (ASSERT): Likewise.
31980         * tests/test-striconveha.c (ASSERT): Likewise.
31981         * tests/test-strsignal.c (ASSERT): Likewise.
31982         * tests/test-strstr.c (ASSERT): Likewise.
31983         * tests/test-strtod.c (ASSERT): Likewise.
31984         * tests/test-trunc1.c (ASSERT): Likewise.
31985         * tests/test-trunc2.c (ASSERT): Likewise.
31986         * tests/test-truncf1.c (ASSERT): Likewise.
31987         * tests/test-truncf2.c (ASSERT): Likewise.
31988         * tests/test-truncl.c (ASSERT): Likewise.
31989         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
31990         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
31991         * tests/test-vasnprintf.c (ASSERT): Likewise.
31992         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
31993         * tests/test-vasprintf.c (ASSERT): Likewise.
31994         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
31995         * tests/test-vprintf-posix.c (ASSERT): Likewise.
31996         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
31997         * tests/test-vsnprintf.c (ASSERT): Likewise.
31998         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
31999         * tests/test-wcwidth.c (ASSERT): Likewise.
32000         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32001         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32002         * tests/test-xvasprintf.c (ASSERT): Likewise.
32003         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32004         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32005         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32006         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32007         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32008         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32009         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32010         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32011         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32012         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32013         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32014         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32015         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32016         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32017         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32018         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32019         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32020         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32021         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32022         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32023         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32024         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32025         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32026         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32027         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32028         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32029         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32030         * tests/unictype/test-combining.c (ASSERT): Likewise.
32031         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32032         * tests/unictype/test-digit.c (ASSERT): Likewise.
32033         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32034         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32035         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32036         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32037         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32038         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32039         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32040         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32041         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32042         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32043         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32044         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32045         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32046         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32047         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32048         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32049         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32050         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32051         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32052         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32053         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32054         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32055         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32056         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32057         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32058         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32059         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32060         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32061         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32062         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32063         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32064         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32065         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32066         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32067         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32068         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32069         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32070         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32071         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32072         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32073         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32074         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32075         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32076         Reported by Eric Blake.
32077
32078 2008-04-11  Bruno Haible  <bruno@clisp.org>
32079
32080         * lib/wchar.in.h: Tweak comment.
32081
32082 2008-04-11  Bruno Haible  <bruno@clisp.org>
32083
32084         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32085         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32086         gl_COMMON.
32087         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32088
32089 2008-04-11  Bruno Haible  <bruno@clisp.org>
32090
32091         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32092
32093 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32094
32095         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32096         of attempting to use non-existing /dev/*random.  Based on patch
32097         from Adam Strzelecki <ono@java.pl> in
32098         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32099
32100 2008-04-08  Bruno Haible  <bruno@clisp.org>
32101
32102         Add tentative support for emx+gcc.
32103         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32104         * lib/fpurge.c (fpurge): Likewise.
32105         * lib/freadable.c (freadable): Likewise.
32106         * lib/freadahead.c (freadahead): Likewise.
32107         * lib/freading.c (freading): Likewise.
32108         * lib/freadptr.c (freadptr): Likewise.
32109         * lib/freadseek.c (freadptrinc): Likewise.
32110         * lib/fseeko.c (rpl_fseeko): Likewise.
32111         * lib/fseterr.c (fseterr): Likewise.
32112         * lib/fwritable.c (fwritable): Likewise.
32113         * lib/fwriting.c (fwriting): Likewise.
32114         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32115
32116 2008-04-09  Eric Blake  <ebb9@byu.net>
32117
32118         Avoid some autoconf warnings.
32119         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32120         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32121         * m4/afs.m4 (gl_AFS): Likewise.
32122         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32123         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32124         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32125         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32126         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32127         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32128         (AC_CHECK_DECLS_ONCE): Likewise.
32129         Rename file...
32130         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32131         gnulib-tool requires autoconf 2.59 or better.
32132         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32133
32134 2008-04-08  Eric Blake  <ebb9@byu.net>
32135
32136         Use 'git describe --match' if present (added in git 1.5.5).
32137         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32138         if possible.
32139
32140 2008-04-08  Bruno Haible  <bruno@clisp.org>
32141
32142         Add tentative support for OpenServer.
32143         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32144         _ptr, _cnt.
32145         * lib/fpurge.c (fpurge): Likewise.
32146         * lib/freadable.c (freadable): Likewise.
32147         * lib/freadahead.c (freadahead): Likewise.
32148         * lib/freading.c (freading): Likewise.
32149         * lib/freadptr.c (freadptr): Likewise.
32150         * lib/freadseek.c (freadptrinc): Likewise.
32151         * lib/fseeko.c (rpl_fseeko): Likewise.
32152         * lib/fseterr.c (fseterr): Likewise.
32153         * lib/fwritable.c (fwritable): Likewise.
32154         * lib/fwriting.c (fwriting): Likewise.
32155         Reported by Roger Cornelius <rac@tenzing.org> and
32156         Brian K. White <brian@aljex.com>.
32157
32158 2008-04-06  Jim Meyering  <meyering@redhat.com>
32159
32160         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32161
32162 2008-04-06  Bruno Haible  <bruno@clisp.org>
32163
32164         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32165         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32166         * tests/test-printf-posix.sh: Likewise.
32167         * tests/test-vfprintf-posix.sh: Likewise.
32168         * tests/test-vprintf-posix.sh: Likewise.
32169         * tests/test-xprintf-posix.sh: Likewise.
32170
32171 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32172
32173         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32174         hide error from 'ls', needed on OS/2.
32175         Report by Elbert Pol <elbert.pol@gmail.com>.
32176
32177 2008-04-04  Eric Blake  <ebb9@byu.net>
32178
32179         Make test-fseeko.c failures meaningful.
32180         * tests/test-fseeko.c: Print line number on failure.
32181         * tests/test-fseek.c: Likewise.
32182         Reported by Nelson H. F. Beebe.
32183
32184         Improve strtod bug detection check.
32185         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32186         required for Solaris 10.
32187         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32188
32189 2008-04-04  Bruno Haible  <bruno@clisp.org>
32190
32191         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32192         by m4/setenv.m4.
32193
32194 2008-04-03  Eric Blake  <ebb9@byu.net>
32195
32196         Ensure sane .version contents.
32197         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32198         version string.
32199         * build-aux/git-version-gen: Improve documentation.
32200
32201         Make GNU make output nicer.
32202         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32203         MAKECMDGOALS to enforce message for all command line targets.  Set
32204         srcdir for use in maint.mk.
32205
32206         Another maintainer tweak.
32207         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32208         a target that regenerates version.
32209
32210 2008-04-03  Jim Meyering  <meyering@redhat.com>
32211
32212         vc-list-files: don't cause coreutils "make po-check" failure
32213         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32214
32215 2008-04-03  Eric Blake  <ebb9@byu.net>
32216
32217         Allow VPATH usage of vc-list-files.
32218         * build-aux/vc-list-files (scriptversion): Add timestamp.
32219         (options): Add --help, --version, -C.
32220         (CVS): Support installed cvsu.
32221
32222 2008-04-02  Bruno Haible  <bruno@clisp.org>
32223
32224         Avoid some "statement with no effect" warnings from gcc.
32225         * tests/test-wctype.c (main): Explicitly ignore unused values.
32226         Reported by Jim Meyering.
32227
32228 2008-04-02  Jim Meyering  <meyering@redhat.com>
32229
32230         Avoid some warnings from "gcc -Wshadow".
32231         * tests/test-frexp.c (exp): Define to a different identifier.
32232         * tests/test-frexpl.c (exp): Likewise.
32233
32234 2008-04-03  Jim Meyering  <meyering@redhat.com>
32235
32236         bootstrap: remove dangling *.[ch] symlinks from lib
32237         * build-aux/bootstrap [dangling symlink removal]: Move find's
32238         -depth option to precede all others, to avoid a warning.
32239         Remove *.[ch] files too, and from "$source_base" (usually lib/).
32240
32241 2008-04-02  Bruno Haible  <bruno@clisp.org>
32242
32243         Avoid some warnings from "gcc -Wshadow".
32244         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
32245         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
32246         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
32247         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
32248         Reported by Jim Meyering.
32249
32250 2008-04-01  Bruno Haible  <bruno@clisp.org>
32251
32252         Fix test to work on IRIX 6.5 with cc.
32253         * tests/test-math.c (numeric_equal): New function.
32254         (main): Use it.
32255
32256 2008-04-01  Bruno Haible  <bruno@clisp.org>
32257
32258         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
32259
32260 2008-04-01  Bruno Haible  <bruno@clisp.org>
32261
32262         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32263         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32264         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32265         (Depends-on): Remove math.
32266
32267         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32268         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32269         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32270         (Depends-on): Remove math.
32271
32272         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32273         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32274         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32275         (Depends-on): Remove math.
32276         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32277         (Depends-on): Remove math.
32278
32279         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32280         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32281         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32282         (Depends-on): Remove math.
32283         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32284         (Depends-on): Remove math.
32285
32286         * tests/test-round1.c: Include nan.h.
32287         (main): Use NaNd instead of NAN.
32288         * modules/round-tests (Files): Add tests/nan.h.
32289
32290         * tests/test-trunc1.c: Include nan.h.
32291         (main): Use NaNd instead of NAN.
32292         * modules/trunc-tests (Files): Add tests/nan.h.
32293
32294         * tests/test-roundf1.c: Include nan.h.
32295         (main): Use NaNf instead of NAN.
32296         * modules/roundf-tests (Files): Add tests/nan.h.
32297
32298         * tests/test-truncf1.c: Include nan.h.
32299         (main): Use NaNf instead of NAN.
32300         * modules/truncf-tests (Files): Add tests/nan.h.
32301
32302         * tests/test-ceilf1.c: Include nan.h.
32303         (main): Use NaNf instead of NAN.
32304         * modules/ceilf-tests (Files): Add tests/nan.h.
32305
32306         * tests/test-floorf1.c: Include nan.h.
32307         (main): Use NaNf instead of NAN.
32308         * modules/floorf-tests (Files): Add tests/nan.h.
32309
32310         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32311         (main): Use NaNf instead of NAN.
32312         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32313
32314         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32315         (main): Use NaNd instead of NAN.
32316         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32317
32318         * tests/test-frexp.c: Include nan.h.
32319         (main): Use NaNd instead of NAN.
32320         * modules/frexp-tests (Files): Add tests/nan.h.
32321
32322         * lib/isnan.c: Don't include <math.h>.
32323         (FUNC): Don't use NAN macro.
32324         * modules/isnand-nolibm (Depends-on): Remove math.
32325         * modules/isnanf-nolibm (Depends-on): Remove math.
32326         * modules/isnanl (Depends-on): Remove math.
32327         * modules/isnanl-nolibm (Depends-on): Remove math.
32328
32329         * tests/nan.h: New file.
32330
32331 2008-04-01  Eric Blake  <ebb9@byu.net>
32332
32333         Fix typos.
32334         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32335         values to be the right type.
32336
32337         For now, cater to gnulib strtod inaccuracies.
32338         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32339         fractional results.  While not as nice from a QoI perspective, it
32340         is a quicker patch than correctly implementing decimal to binary
32341         rounding.
32342
32343 2008-03-31  Eric Blake  <ebb9@byu.net>
32344
32345         Guarantee a definition of NAN.
32346         * lib/math.in.h (NAN): Define if missing.
32347         * tests/test-math.c (main): Test it.
32348         * doc/posix-headers/math.texi (math.h): Document this.
32349         * lib/isnan.c (rpl_isnand): Use it.
32350         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32351         * tests/test-floorf1.c (NaN): Likewise.
32352         * tests/test-frexp.c (NaN): Likewise.
32353         * tests/test-isnand.c (NaN): Likewise.
32354         * tests/test-isnanf.c (NaN): Likewise.
32355         * tests/test-round1.c (NaN): Likewise.
32356         * tests/test-roundf1.c (NaN): Likewise.
32357         * tests/test-snprintf-posix.h (NaN): Likewise.
32358         * tests/test-sprintf-posix.h (NaN): Likewise.
32359         * tests/test-trunc1.c (NaN): Likewise.
32360         * tests/test-truncf1.c (NaN): Likewise.
32361         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32362         * tests/test-vasprintf-posix.c (NaN): Likewise.
32363         * modules/isnand-nolibm (Depends-on): Add math.
32364         * modules/isnanf-nolibm (Depends-on): Likewise.
32365         * modules/isnanl (Depends-on): Likewise.
32366         * modules/isnanl-nolibm (Depends-on): Likewise.
32367         * modules/snprintf-posix-tests (Depends-on): Likewise.
32368         * modules/sprintf-posix-tests (Depends-on): Likewise.
32369         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32370         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32371         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32372         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32373
32374 2008-03-31  Bruno Haible  <bruno@clisp.org>
32375
32376         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32377         * doc/posix-functions/strtod.texi: Likewise.
32378
32379 2008-03-31  Bruno Haible  <bruno@clisp.org>
32380
32381         * tests/test-strtod.c (main): Don't use C99 syntax.
32382
32383 2008-03-31  Bruno Haible  <bruno@clisp.org>
32384
32385         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32386         Reported by Eric Blake.
32387
32388 2008-03-31  Jim Meyering  <meyering@redhat.com>
32389
32390         Don't compare actual signbit return values.
32391         * tests/test-strtod.c (main): Rather, compare only their
32392         zero/non-zero nature.
32393
32394 2008-03-31  Eric Blake  <ebb9@byu.net>
32395
32396         More strtod documentation.
32397         * doc/posix-functions/strtod.texi (strtod): Interpret more test
32398         failures as distinct bugs.
32399
32400 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32401
32402         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
32403         Problem reported by Erik Benada in
32404         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
32405
32406 2008-03-30  Bruno Haible  <bruno@clisp.org>
32407
32408         * tests/test-strtod.c: Add comments about which assertion fails on which
32409         platform.
32410         * doc/posix-functions/strtod.texi: Add info about many more platforms.
32411
32412 2008-03-30  Eric Blake  <ebb9@byu.net>
32413
32414         Test signbit behavior on zeros.
32415         * tests/test-signbit.c (test_signbitf): Add tests for zero.
32416         (test_signbitd, test_signbitl): Likewise.
32417
32418         More strtod touchups.
32419         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
32420         sign of negative underflow, for now.  Use .5, not .1.
32421         * doc/posix-functions/strtod.texi (strtod): Mention these
32422         limitations.
32423         Reported by Jim Meyering.
32424
32425 2008-03-30  Bruno Haible  <bruno@clisp.org>
32426
32427         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
32428         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
32429
32430 2008-03-30  Bruno Haible  <bruno@clisp.org>
32431
32432         Avoid failure when attempting to return empty iconv results on some
32433         platforms.
32434         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
32435         allocation, don't report ENOMEM when the resulting string is empty.
32436
32437 2008-03-30  Bruno Haible  <bruno@clisp.org>
32438
32439         Fix buffer overrun.
32440         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
32441         Don't consider the width for tmp_length. Check count against tmp_length
32442         before doing the padding. Ensure enough allocation during padding.
32443
32444 2008-03-30  Eric Blake  <ebb9@byu.net>
32445
32446         strtod touchups.
32447         * lib/strtod.c (strtod): Avoid compiler warnings.
32448         Reported by Jim Meyering.
32449
32450 2008-03-30  Bruno Haible  <bruno@clisp.org>
32451
32452         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
32453         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
32454         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
32455         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32456         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
32457         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
32458         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
32459         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
32460
32461         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
32462         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
32463         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
32464         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
32465         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
32466         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
32467         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
32468         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
32469
32470         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
32471         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
32472         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
32473         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
32474         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
32475         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
32476         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
32477         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
32478
32479         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
32480         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
32481
32482         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
32483         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
32484
32485         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
32486         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
32487
32488         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
32489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
32490         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
32491
32492         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
32493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
32494         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
32495
32496         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
32497         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
32498         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
32499
32500         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
32501         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
32502         * modules/vasprintf (Depends-on): Add EOVERFLOW.
32503
32504         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
32505         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
32506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
32507         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
32508         (Depends-on): Add EOVERFLOW.
32509         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
32510         (Depends-on): Add EOVERFLOW.
32511         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32512         (Depends-on): Add EOVERFLOW.
32513         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32514         (Depends-on): Add EOVERFLOW.
32515         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32516         (Depends-on): Add EOVERFLOW.
32517         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32518         (Depends-on): Add EOVERFLOW.
32519         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32520         (Depends-on): Add EOVERFLOW.
32521         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32522         (Depends-on): Add EOVERFLOW.
32523
32524         * lib/sprintf.c (EOVERFLOW): Remove fallback.
32525         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
32526         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
32527
32528         * lib/snprintf.c (EOVERFLOW): Remove fallback.
32529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
32530         * modules/snprintf (Depends-on): Add EOVERFLOW.
32531
32532         * lib/poll.c (EOVERFLOW): Remove fallback.
32533         * modules/poll (Depends-on): Add EOVERFLOW.
32534
32535         * lib/getugroups.c (EOVERFLOW): Remove fallback.
32536         * modules/getugroups (Depends-on): Add EOVERFLOW.
32537
32538         * lib/getdelim.c (EOVERFLOW): Remove fallback.
32539         * modules/getdelim (Depends-on): Add EOVERFLOW.
32540
32541         * lib/ftell.c (EOVERFLOW): Remove fallback.
32542         * modules/ftell (Depends-on): Add EOVERFLOW.
32543
32544         * lib/fprintf.c (EOVERFLOW): Remove fallback.
32545         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
32546         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
32547
32548         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
32549
32550         * modules/EOVERFLOW-tests: New file.
32551         * tests/test-EOVERFLOW.c: New file.
32552
32553         * modules/EOVERFLOW: New file.
32554         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
32555
32556 2008-03-30  Bruno Haible  <bruno@clisp.org>
32557
32558         Fix bug introduced on 2007-06-10.
32559         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
32560         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
32561
32562 2008-03-30  Bruno Haible  <bruno@clisp.org>
32563
32564         Improve freadseek's efficiency after ungetc.
32565         * lib/freadseek.c: Include freadahead.h.
32566         (freadptrinc): New function, extracted from freadseek.
32567         (freadseek): Use it in a loop. Use freadahead to determine the number
32568         of loop iterations.
32569         * modules/freadseek (Depends-on): Add freadahead.
32570         (configure.ac): Require AC_C_INLINE.
32571
32572 2008-03-30  Bruno Haible  <bruno@clisp.org>
32573
32574         * lib/freadseek.c (freadseek): Don't ignore the return value of
32575         freadptr.
32576
32577 2008-03-29  Eric Blake  <ebb9@byu.net>
32578
32579         Add hex float support.
32580         * modules/strtod (Depends-on): Add c-ctype.
32581         (Link): Mention POW_LIB.
32582         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
32583         whitespace between 'e' and exponent.
32584         * tests/test-strtod.c (main): Enable hex float tests.
32585         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
32586         now provides.
32587
32588         Document various strtod bugs, with some fixes.
32589         * doc/posix-functions/strtod.texi (strtod): Document bugs with
32590         "-0x", "inf", "nan", and hex constants.
32591         * doc/posix-functions/atof.texi (atof): Likewise.
32592         * modules/stdlib (Makefile.am): Support strtod.
32593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32594         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
32595         detect additional strtod bugs.
32596         * lib/stdlib.in.h (rpl_strtod): Add declarations.
32597         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
32598         bool where appropriate.  Parse 'inf' and 'nan'.
32599         * tests/test-strtod.c: New file.
32600         * modules/strtod (Depends-on): Add stdbool, stdlib.
32601         (configure.ac): Turn on module indicator.
32602         * modules/strtod-tests: New module.
32603
32604 2008-03-29  Eric Blake  <ebb9@byu.net>
32605
32606         Fix ftell on mingw.
32607         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
32608         * modules/ftell-tests (Depends-on): Add binary-io.
32609         * modules/ftello-tests (Depends-on): Likewise.
32610         * tests/test-ftell.c (main): Enhance test to cover behavior after
32611         ungetc.  Enforce binary mode.
32612         * tests/test-ftello.c (main): Likewise.
32613
32614         Pass test-freadseek on cygwin.
32615         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
32616         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
32617         ungetc buffer.
32618
32619         * tests/test-fflush2.c (main): Fix typo.
32620
32621 2008-03-29  Bruno Haible  <bruno@clisp.org>
32622
32623         * tests/test-fflush2.c (main): Temporarily disable the contents of
32624         this test.
32625         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
32626         Reported by Eric Blake.
32627
32628 2008-03-28  Simon Josefsson  <simon@josefsson.org>
32629
32630         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
32631         (GC_SHA224_DIGEST_SIZE): Add.
32632
32633         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
32634         (gc_hash_digest_length): Likewise.
32635         (gc_hash_buffer): Likewise.
32636
32637 2008-03-25  Bruno Haible  <bruno@clisp.org>
32638
32639         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
32640         detail which gettext release to use.
32641         Reported by Simon Josefsson.
32642
32643 2008-03-26  Jim Meyering  <meyering@redhat.com>
32644
32645         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
32646         * modules/gnumakefile (clean-GNUmakefile): Also, use
32647         test ... && ... || : syntax rather than if-then ... fi.
32648
32649         gnumakefile: Don't double-quote-expand $(VPATH) value.
32650         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
32651
32652 2008-03-24  Eric Blake  <ebb9@byu.net>
32653
32654         Alter GNUmakefile to install into top directory.
32655         * modules/maintainer-makefile: Split, and add dependency...
32656         * modules/gnumakefile: to this new module.
32657         * build-aux/GNUmakefile: Move...
32658         * top/GNUmakefile: ...here.
32659         * build-aux/maint.mk: Move...
32660         * top/maint.mk: ...here.
32661         * MODULES.html.sh (Support for maintaining...): Document new
32662         module.
32663
32664 2008-03-23  Bruno Haible  <bruno@clisp.org>
32665
32666         * gnulib-tool: New options --vc-files, --no-vc-files.
32667         (func_usage): Document them.
32668         (vc_files): New variable.
32669         (func_import): Consider vc_files.
32670         (func_create_testdir): Set vc_files to empty.
32671         Suggested by Jim Meyering and Karl Berry.
32672
32673 2008-03-23  Bruno Haible  <bruno@clisp.org>
32674
32675         Fix regex compilation error on HP-UX 11.
32676         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
32677         * modules/regex (Files): Add m4/mbstate_t.m4.
32678         Reported by Ton Voon <ton.voon@altinity.com>.
32679
32680 2008-03-23  Bruno Haible  <bruno@clisp.org>
32681
32682         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
32683
32684 2008-03-23  Eric Blake  <ebb9@byu.net>
32685             Bruno Haible  <bruno@clisp.org>
32686
32687         Install files from top/ in the destination directory.
32688         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32689         augmentation also for the files from top/.
32690         (func_import, func_create_testdir): Rewrite file names:
32691         top/filename -> filename.
32692
32693 2008-03-23  Bruno Haible  <bruno@clisp.org>
32694
32695         Tweak "gnulib --version" output.
32696         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
32697
32698 2008-03-23  Bruno Haible  <bruno@clisp.org>
32699
32700         Tweak "gnulib --version" output.
32701         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
32702         rather than contents of ChangeLog, when possible.
32703
32704 2008-03-21  Eric Blake  <ebb9@byu.net>
32705
32706         More --version tweaks.
32707         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
32708         date of last ChangeLog entry.
32709
32710 2008-03-21  Jim Meyering  <meyering@redhat.com>
32711
32712         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
32713
32714 2008-03-20  Eric Blake  <ebb9@byu.net>
32715
32716         VPATH fix.
32717         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
32718
32719 2008-03-20  Simon Josefsson  <simon@josefsson.org>
32720
32721         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
32722         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
32723
32724 2008-03-20  Eric Blake  <ebb9@byu.net>
32725
32726         Sync GNUmakefile with coreutils.
32727         * build-aux/GNUmakefile (have-Makefile): Rename...
32728         (_have-Makefile): ...to this, for namespace consideration.
32729         (GNUmakefile.cfg): Include, if present.
32730         (_autoreconf): Define a default.
32731         (_is-dist-target): New rule for rebuilds to pick up intra-release
32732         version.
32733         (maint-cfg.mk): Rename...
32734         (cfg.mk): ...to this.
32735
32736 2008-03-18  Jim Meyering  <meyering@redhat.com>
32737
32738         New script and module: mktempd
32739         * MODULES.html.sh (maint+release support): Add mktempd.
32740         * build-aux/mktempd: New file.
32741         * modules/mktempd: New file.
32742
32743 2008-03-15  Jim Meyering  <meyering@redhat.com>
32744
32745         Undo last change.
32746         * lib/sha1.c, lib/md5.c: 63 != ~63.
32747         Reported by Andreas Schwab.
32748
32749         sha1.c, md5.c: Hoist a redundant expression.
32750         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
32751         "ctx->buflen" only once, before calling *_process_block.
32752         * lib/md5.c (md5_process_bytes): Likewise.
32753
32754 2008-03-14  Eric Blake  <ebb9@byu.net>
32755
32756         Bump copyright year in files generated by gnulib-tool.
32757         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
32758         gnulib-tool, rather than hard-coding it.
32759
32760         Fix 'gnulib-tool --version' output to work with git.
32761         * gnulib-tool (func_gnulib_dir): New function, extracted from...
32762         (startup): ...here.
32763         (func_version): Use it to invoke git-version-gen, rather than
32764         relying on CVS keyword expansion.  Modernize wording.
32765         (cvsdatestamp, last_checkin_date, version): Kill unused
32766         variables.
32767
32768 2008-03-12  Jim Meyering  <meyering@redhat.com>
32769
32770         Recognize optional cast of the argument to free.
32771         * build-aux/useless-if-before-free: Update regexps.
32772
32773         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
32774
32775 2008-03-11  Bruno Haible  <bruno@clisp.org>
32776
32777         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
32778         by a single package.
32779         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
32780         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
32781         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
32782         Reported by Sam Steingold <sds@gnu.org>.
32783
32784 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32785
32786         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
32787         repositories.
32788
32789 2008-03-11  Bruno Haible  <bruno@clisp.org>
32790
32791         Avoid conflicts between local macro definitions.
32792         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32793         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
32794
32795 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
32796             Bruno Haible  <bruno@clisp.org>
32797
32798         Make va_copy work with some version of xlc on AIX 5.1.
32799         * lib/stdarg.in.h: New file.
32800         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
32801         On AIX, use a <stdarg.h> file substitute.
32802         * modules/stdarg (Files): Add lib/stdarg.in.h.
32803         (Depends-on): Add include_next.
32804         (Makefile.am): Build a stdarg.h substitute if requested.
32805         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
32806
32807 2008-03-10  Bruno Haible  <bruno@clisp.org>
32808
32809         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
32810         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32811         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
32812
32813 2008-03-10  Bruno Haible  <bruno@clisp.org>
32814
32815         * modules/stdlib (Depends-on): Add include_next, remove
32816         absolute-header.
32817
32818 2008-03-09  Bruno Haible  <bruno@clisp.org>
32819
32820         * lib/freadahead.h (freadahead): Document more precisely.
32821         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
32822         the sum of both buffer sizes.
32823         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
32824         * NEWS: Document the change.
32825
32826 2008-03-09  Bruno Haible  <bruno@clisp.org>
32827
32828         Extend freadptr to return also the buffer size.
32829         * lib/freadptr.h (freadptr): Add sizep argument.
32830         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
32831         (freadptr): Add sizep argument. Determine buffer size like freadahead
32832         does.
32833         * tests/test-freadptr.c: Don't include freadahead.h.
32834         (main): Adapt for new calling convention of freadptr.
32835         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
32836         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
32837         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
32838         tests/test-freadptr2.sh.
32839         (Depends): Remove freadahead.
32840         (TESTS): Add test-freadptr2.sh.
32841         (check_PROGRAMS): Add test-freadptr2.
32842
32843 2008-03-09  Bruno Haible  <bruno@clisp.org>
32844
32845         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
32846         Report and solution by Simon Josefsson.
32847
32848 2008-03-06  Bruno Haible  <bruno@clisp.org>
32849
32850         Make fflush after ungetc work on BSD platforms.
32851         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
32852         * tests/test-fflush2.c: New file.
32853         * tests/test-fflush2.sh: New file.
32854         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
32855         tests/test-fflush2.c.
32856         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
32857         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
32858
32859 2008-03-06  Eric Blake  <ebb9@byu.net>
32860
32861         Likewise for ftello.
32862         * modules/ftello (Dependencies): Add extensions.
32863         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
32864
32865 2008-03-06  Bruno Haible  <bruno@clisp.org>
32866
32867         * modules/fseeko (Dependencies): Add extensions.
32868         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
32869         Needed on glibc systems.
32870
32871 2008-03-06  Bruno Haible  <bruno@clisp.org>
32872
32873         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
32874         email address.
32875         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32876
32877 2008-03-06  Bruno Haible  <bruno@clisp.org>
32878
32879         * users.txt: Add libgnupdf.
32880
32881 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32882
32883         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
32884         (Header File Substitutes, Function Substitutes,
32885         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
32886         (Build robot for gnulib): Fix typo.
32887
32888 2008-03-06  Bruno Haible  <bruno@clisp.org>
32889
32890         * doc/gnulib-tool.texi (VCS Issues): Small updates.
32891         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32892
32893 2008-03-06  Bruno Haible  <bruno@clisp.org>
32894
32895         * doc/func.texi: New file, extracted from doc/gnulib.texi.
32896         * doc/gnulib.texi: Include it.
32897
32898 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32899
32900         * modules/func (License): Change license to unlimited; there was
32901         no LGPL parts in the module anyway.
32902
32903 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32904
32905         * modules/__func__: Renamed to modules/func.
32906         * modules/__func__-tests: Renamed to modules/func-tests.
32907         * tests/test-__func__.c: Renamed to tests/test-func.c.
32908         * m4/__func__.m4: Renamed to m4/func.m4.
32909         * doc/gnulib.texi (__func__): Section renamed to func.
32910         Suggested by Eric Blake <ebb9@byu.net>.
32911
32912 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32913
32914         * doc/gnulib.texi (__func__): Use C99 terminology when talking
32915         about __func__.  Make example self-contained.  Suggested by Eric
32916         Blake <ebb9@byu.net>.
32917
32918         * tests/test-__func__.c (main): Avoid extraneous () around __func.
32919         Suggested by Eric Blake <ebb9@byu.net>.
32920
32921 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32922
32923         * modules/__func__: New file.
32924         * modules/__func__-tests: New file.
32925         * tests/test-__func__.c: New file.
32926         * m4/__func__.m4: New file.
32927         * doc/gnulib.texi (__func__): Document __func__ module.
32928
32929 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32930
32931         * modules/byteswap (License): Re-license as LGPLv2+.
32932
32933 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32934
32935         * doc/Makefile: Add pdf target.
32936
32937 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32938
32939         * modules/inline (License): Use 'unlimited', since there are only
32940         *.m4 files in this module.
32941
32942 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
32943             Bruno Haible  <bruno@clisp.org>
32944
32945         Add support for HP C 7.1 on OpenVMS 8.3.
32946         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
32947
32948 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
32949
32950         Update VMS specifics.
32951         * lib/getopt.c [VMS]: Remove include of unixlib.h.
32952
32953 2008-03-02  Jim Meyering  <meyering@redhat.com>
32954
32955         Remove the last dependency on the "free" module.
32956         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
32957         Reported by Bob Proulx.
32958
32959         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
32960
32961         Remove useless "if" tests before free.  Deprecate "free" module.
32962         * doc/posix-functions/free.texi: Mention that this
32963         module is no longer useful.
32964         * modules/free (Notice): Say this module is obsolete.
32965         * modules/readutmp (Depends-on): Remove free.
32966         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
32967         * lib/putenv.c (putenv): Likewise.
32968         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
32969         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
32970         * tests/test-c-strcasestr.c (main): Likewise.
32971         * tests/test-c-strstr.c (main): Likewise.
32972         * tests/test-mbscasestr1.c (main): Likewise.
32973         * tests/test-mbscasestr2.c (main): Likewise.
32974         * tests/test-mbsstr1.c (main): Likewise.
32975         * tests/test-mbsstr2.c (main): Likewise.
32976         * tests/test-memmem.c (main): Likewise.
32977         * tests/test-strcasestr.c (main): Likewise.
32978         * tests/test-striconv.c (main): Likewise.
32979         * tests/test-striconveh.c (main): Likewise.
32980         * tests/test-striconveha.c (main): Likewise.
32981         * tests/test-strstr.c (main): Likewise.
32982
32983         * build-aux/git-version-gen: Adjust a comment and the Usage string.
32984
32985         bootstrap: sync from coreutils again
32986         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
32987
32988 2008-03-01  Jim Meyering  <meyering@redhat.com>
32989
32990         bootstrap: sync from coreutils
32991         * build-aux/bootstrap (update_po_files): Copy a .po file into place
32992         also when the target doesn't exist.
32993
32994 2008-03-01  Eric Blake  <ebb9@byu.net>
32995
32996         Fix bugs in last patch.
32997         * lib/memchr2.c (memchr2): Fix typo.
32998         * tests/test-memchr2.c: Test previous bug, and don't use GNU
32999         extension.
33000         Reported by Bruce Korb.
33001
33002         New module 'memchr2'.
33003         * modules/memchr2: New file.
33004         * modules/memchr2-tests: Likewise.
33005         * lib/memchr2.h: Likewise.
33006         * lib/memchr2.c: Likewise, based on memchr.c.
33007         * tests/test-memchr2.c: New test.
33008         * MODULES.html.sh (String handling): Add memchr2.
33009
33010 2008-02-29  Bruno Haible  <bruno@clisp.org>
33011
33012         * modules/freadseek-tests: New file.
33013         * tests/test-freadseek.sh: New file.
33014         * tests/test-freadseek.c: New file.
33015
33016         New module 'freadseek'.
33017         * modules/freadseek: New file.
33018         * lib/freadseek.h: New file.
33019         * lib/freadseek.c: New file.
33020         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33021
33022 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33023
33024         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33025         wydawca.
33026
33027         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33028         program_invocation_name and program_invocation_short_name are
33029         present.
33030
33031 2008-02-28  Bruno Haible  <bruno@clisp.org>
33032
33033         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33034         * tests/test-freadptr.sh: Also test non-seekable stdin.
33035
33036 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33037
33038         * build-aux/bootstrap (source_base, m4_base)
33039         (doc_base, tests_base): New variables.
33040         (gnulib_tool_options): Do not hardcode base directories, use
33041         the above variables instead.
33042
33043 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33044
33045         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33046
33047 2008-02-28  Bruno Haible  <bruno@clisp.org>
33048
33049         * modules/freadptr-tests: New file.
33050         * tests/test-freadptr.sh: New file.
33051         * tests/test-freadptr.c: New file.
33052
33053         New module 'freadptr'.
33054         * modules/freadptr: New file.
33055         * lib/freadptr.h: New file.
33056         * lib/freadptr.c: New file.
33057         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33058
33059 2008-02-26  Karl Berry  <karl@freefriends.org>
33060
33061         Sync from Libtool:
33062         * libltdl/argz.c (argz_add, argz_count): New functions.
33063         * libltdl/argz.in.h: Declare them.
33064         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33065
33066 2008-02-22  Bruno Haible  <bruno@clisp.org>
33067
33068         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33069         is a pointer type.  Needed for HP-UX 10.
33070         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33071         * doc/posix-functions/gmtime_r.texi: Likewise.
33072         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33073
33074 2008-02-24  Bruno Haible  <bruno@clisp.org>
33075
33076         * modules/environ-tests: New file.
33077         * tests/test-environ.c: New file.
33078
33079         New module 'environ'.
33080         * modules/environ: New file.
33081         * lib/unistd.in.h (environ): New declaration.
33082         * m4/environ.m4: New file.
33083         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33084         after use.
33085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33086         HAVE_DECL_ENVIRON.
33087         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33088         HAVE_DECL_ENVIRON.
33089         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33090         wrong claim that 'environ' is missing on some systems.
33091         * modules/execute (Depends-on): Add environ.
33092         * lib/execute.c (environ): Remove fallback declaration.
33093         * modules/pipe (Depends-on): Add environ.
33094         * lib/pipe.c (environ): Remove fallback declaration.
33095         * modules/setenv (Depends-on): Add environ.
33096         * lib/setenv.c (environ): Remove fallback declaration.
33097         * modules/unsetenv (Depends-on): Add environ.
33098         * lib/unsetenv.c (environ): Remove fallback declaration.
33099         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33100         m4/environ.m4.
33101         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33102         (gl_PREREQ_UNSETENV): Likewise.
33103
33104 2008-02-24  Bruno Haible  <bruno@clisp.org>
33105
33106         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33107
33108 2008-02-20  Bob Proulx  <bob@proulx.com>
33109
33110         Enable use of older two part flavor 'git describe'.
33111         * build-aux/git-version-gen: If using the older two part flavor of
33112         git version then recreate the third part now present in the
33113         newer three part flavor of git describe.
33114
33115 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33116
33117         * lib/fts.c (fts_build): Typo correction to comment.
33118
33119 2008-02-17  Bruno Haible  <bruno@clisp.org>
33120
33121         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33122         generating no-op conflicts.
33123
33124 2008-02-17  Bruno Haible  <bruno@clisp.org>
33125
33126         Speed up by 10%.
33127         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33128         result_entries, rather than an index-based loop.
33129
33130 2008-02-17  Bruno Haible  <bruno@clisp.org>
33131
33132         Speed up by 25%.
33133         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33134         'hashcode_cached'.
33135         (entry_create): New function.
33136         (entry_hashcode): Use the cached hashcode if possible.
33137         (read_changelog_file, try_split_merged_entry): Use entry_create.
33138
33139 2008-02-17  Bruno Haible  <bruno@clisp.org>
33140
33141         Speed up from O(n^2) to O(n) for long ChangeLog files.
33142         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33143         (read_changelog_file): Change implementation of entries_reversed list
33144         to rbtreehash.
33145         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33146
33147 2008-02-17  Bruno Haible  <bruno@clisp.org>
33148
33149         New option --split-merged-entry.
33150         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33151         (find_paragraph_end, try_split_merged_entry): New functions.
33152         (long_options): Add option --split-merged-entry.
33153         (usage): Document option --split-merged-entry.
33154         (main): Implement option --split-merged-entry.
33155         Reported by Eric Blake.
33156
33157 2008-02-17  Bruno Haible  <bruno@clisp.org>
33158
33159         * lib/git-merge-changelog.c: Include c-strstr.h.
33160         (main): Support the "git pull --rebase" situation.
33161         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33162         Reported by Eric Blake.
33163
33164 2008-02-16  Eric Blake  <ebb9@byu.net>
33165
33166         Avoid doubling \ in common case of "c-maybe" quoting style.
33167         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33168         eliding outer quotes.
33169         * lib/quotearg.h: Document this.
33170         * tests/test-quotearg.c (result_strings, inputs, results_g)
33171         (flag_results, locale_results): Test it by adding a new string to
33172         each test group.
33173         (compare_strings): Test new string.
33174
33175 2008-02-13  Eric Blake  <ebb9@byu.net>
33176
33177         Avoid trigraph quoting in default output.
33178         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33179         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33180         unless explicitly requested.
33181         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33182
33183 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33184
33185         Don't rely on signed integer overflowing to negative value.
33186         * lib/getugroups.c (getugroups): Include <limits.h>.
33187         Instead, compare against INT_MAX, and increment only if the test passes.
33188
33189 2008-02-13  Jim Meyering  <meyering@redhat.com>
33190         and Eric Blake  <ebb9@byu.net>
33191
33192         Avoid shadowing warning and compile errors on Linux.
33193         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33194         forwarding macros on Linux.
33195         (dcgettext): Define a stub, for Linux.
33196         (results_g, main): Avoid warnings.
33197
33198 2008-02-12  Eric Blake  <ebb9@byu.net>
33199
33200         Silence warning in last patch.
33201         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33202
33203         Quotearg part 4: add tests, fix c-maybe colon quoting.
33204         * lib/quotearg.h: Improve documentation.
33205         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33206         escapes when adding outer quotes.  When quoting trigraphs, use
33207         valid C notation.  When quoting NUL, omit extra characters if next
33208         character is not digit.  Alter prototype.
33209         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33210         callers.
33211         * modules/quotearg-tests: New module.
33212         * tests/test-quotearg.c: New test.
33213
33214 2008-02-07  Eric Blake  <ebb9@byu.net>
33215
33216         Quotearg part 3: add flag to control outer quote elision.
33217         * lib/quotearg.h (c_maybe_quoting_style): New style.
33218         (enum quoting_flags): Better documentation of flags.
33219         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33220         c-maybe style.
33221         (quotearg_buffer_restyled): Handle new flag to elide outer
33222         quotes.
33223
33224         Quotearg part 2: add flag that can control NUL elision.
33225         * lib/quotearg.h (set_quoting_flags): New prototype.
33226         * lib/quotearg.c (struct quoting_options): Add flag field.
33227         (set_quoting_flags): New function.
33228         (quotearg_buffer_restyled): Add flags parameter.
33229         (quotearg_alloc_mem): Set the flag if length cannot be returned.
33230         (quotearg_n_options): Set the flag, since length cannot be
33231         returned.
33232         (quoting_options_from_style): Default flags correctly.
33233
33234         Quotearg part 1: more wrappers, restore quotearg_char state.
33235         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
33236         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
33237         (quotearg_colon_mem): New wrappers.
33238         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
33239         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
33240         functions.
33241         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
33242         (quotearg_colon_mem): New functions.
33243
33244 2008-02-11  Bruno Haible  <bruno@clisp.org>
33245
33246         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
33247         library in the current directory: it does not work with parallel make.
33248         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33249
33250 2008-02-11  Bruno Haible  <bruno@clisp.org>
33251
33252         * .gitattributes: New file.
33253
33254 2008-02-11  Jim Meyering  <meyering@redhat.com>
33255
33256         useless-if-before-free: Fix reversed exit values.
33257         * build-aux/useless-if-before-free: Use correct values
33258         for EXIT_MATCH and EXIT_NO_MATCH.
33259
33260         * build-aux/useless-if-before-free: Close stdout carefully.
33261
33262 2008-02-10  Bruno Haible  <bruno@clisp.org>
33263
33264         New module 'git-merge-changelog'.
33265         * modules/git-merge-changelog: New file.
33266         * lib/git-merge-changelog.c: New file.
33267
33268 2008-02-10  Jim Meyering  <meyering@redhat.com>
33269
33270         useless-if-before-free: New option: --list (-l).
33271
33272         useless-if-before-free: Don't exit immediately upon open failure.
33273         * build-aux/useless-if-before-free: Exit 2 for errors.
33274         Upon failure to open a file, don't exit immediately.
33275         Rather, just warn and continue with any remaining files.
33276
33277 2008-02-10  Bruno Haible  <bruno@clisp.org>
33278
33279         New abstract list operation 'node_set_value'.
33280         * lib/gl_list.h (gl_list_node_set_value): New function.
33281         (struct gl_list_implementation): New field node_set_value.
33282         * lib/gl_list.c (gl_list_node_set_value): New function.
33283         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33284         (gl_array_list_implementation): Update.
33285         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33286         (gl_carray_list_implementation): Update.
33287         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33288         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33289         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33290         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33291         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33292         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33293         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33294         Update.
33295         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33296         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33297         (gl_sublist_list_implementation): Update.
33298
33299 2008-02-10  Bruno Haible  <bruno@clisp.org>
33300
33301         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33302         Needed when ELEMENT is #defined to 'some_type *'.
33303
33304 2008-02-10  Jim Meyering  <meyering@redhat.com>
33305
33306         New script and module: useless-if-before-free
33307         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33308         * build-aux/useless-if-before-free: New file.
33309         * modules/useless-if-before-free: New file.
33310
33311         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33312
33313         xstrtol_error: Fix typo.
33314         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33315         s/exit_failure/exit_status/.
33316
33317 2008-02-09  Jim Meyering  <meyering@redhat.com>
33318
33319         New script and module: gitlog-to-changelog
33320         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33321         * modules/gitlog-to-changelog: New file.
33322         * build-aux/gitlog-to-changelog: New file.
33323
33324 2008-02-08  Jim Meyering  <meyering@redhat.com>
33325
33326         Avoid two "parameter unused" warnings.
33327         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33328         Mark "st" as used.
33329
33330         Use "git COMMAND", not "git-COMMAND".
33331         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33332         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33333         * build-aux/git-version-gen: Use "git status", not "git-status".
33334
33335 2008-02-07  Bruno Haible  <bruno@clisp.org>
33336
33337         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33338         Avoids a crash on Windows Vista.
33339         Reported by Adam Strzelecki <ono@java.pl> via
33340         Simon Josefsson <simon@josefsson.org>.
33341
33342 2008-02-06  Bruno Haible  <bruno@clisp.org>
33343
33344         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33345         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33346         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33348         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33349         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33350         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33351         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33353         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33355         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33356         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33359         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33360         left-adjust flag.
33361         * tests/test-snprintf-posix.h (test_function): Likewise.
33362         * tests/test-sprintf-posix.h (test_function): Likewise.
33363         * tests/test-vasprintf-posix.c (test_function): Likewise.
33364         * doc/posix-functions/fprintf.texi: Update.
33365         * doc/posix-functions/printf.texi: Update.
33366         * doc/posix-functions/snprintf.texi: Update.
33367         * doc/posix-functions/sprintf.texi: Update.
33368         * doc/posix-functions/vfprintf.texi: Update.
33369         * doc/posix-functions/vprintf.texi: Update.
33370         * doc/posix-functions/vsnprintf.texi: Update.
33371         * doc/posix-functions/vsprintf.texi: Update.
33372         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33373
33374 2008-02-06  Bruno Haible  <bruno@clisp.org>
33375
33376         Fix bug introduced on 2008-01-26.
33377         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33378
33379 2008-02-06  Bruno Haible  <bruno@clisp.org>
33380
33381         Fix bug introduced on 2007-06-10.
33382         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33383         !NEED_PRINTF_FLAG_ZERO.
33384
33385 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33386
33387         getloadavg: use libperfstat on AIX5
33388         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33389
33390 2008-02-03  Bruno Haible  <bruno@clisp.org>
33391
33392         * lib/diffseq.h: Add comments about required #includes.
33393         Reported by Michael Biggs <gnulib@doubleplum.net>.
33394
33395 2008-02-01  Bruno Haible  <bruno@clisp.org>
33396
33397         * users.txt: Add gnuit.
33398
33399 2008-01-31  Bruno Haible  <bruno@clisp.org>
33400
33401         * lib/md4.c (set_uint32): Mark as inline.
33402         * lib/md5.c (set_uint32): Likewise.
33403         * lib/sha1.c (set_uint32): Likewise.
33404         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
33405         * m4/md5.m4 (gl_MD5): Likewise.
33406         * m4/sha1.m4 (gl_SHA1): Likewise.
33407
33408 2008-01-31  Jim Meyering  <meyering@redhat.com>
33409
33410         Use "sizeof VAR", rather than a literal "4".
33411         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
33412         * lib/md4.c (md4_read_ctx): Likewise.
33413         * lib/sha1.c (sha1_read_ctx): Likewise.
33414
33415 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33416
33417         * tests/test-sha1.c: New file, based on test-md5.c.
33418
33419         * modules/crypto/sha1-tests: New file.
33420
33421 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33422
33423         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
33424
33425 2008-01-31  Jim Meyering  <meyering@redhat.com>
33426
33427         Prefer "sizeof v" over the equivalent "4".
33428         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
33429         * lib/md5.c (set_uint32): Likewise.
33430         * lib/sha1.c (set_uint32): Likewise.
33431
33432 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33433
33434         * lib/sha1.c (set_uint32): Mark function as static.
33435
33436 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33437
33438         md2: clarify comments to say that alignment is not required.
33439         * lib/md2.h: Remove warning about alignment in comment.
33440         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
33441         never been required.
33442
33443 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33444
33445         md4: adapt alignment constraint fix from sha1.
33446         * lib/md4.c (set_uint32): New function, from sha1.c
33447         (md4_read_ctx): Use it.
33448         (md4_finish_ctx): Doc fix.
33449         * lib/md4.h: Doc fix.
33450
33451 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33452
33453         md5: adapt alignment constraint fix from sha1.
33454         * lib/md5.c (set_uint32): New function, from sha1.c
33455         (md5_read_ctx): Use it.
33456         (md5_finish_ctx): Doc fix.
33457         * lib/md5.h: Doc fix.
33458
33459 2008-01-30  Peter Palfrader  <weasel@debian.org>
33460
33461         sha1: remove the result buffer alignment constraint
33462         * lib/sha1.c (set_uint32): New function.
33463         (sha1_read_ctx): Rewrite to remove the result buffer alignment
33464         constraint.
33465         (sha1_finish_ctx): Remove comment warning about alignment constraint.
33466         * lib/sha1.h: Likewise.
33467
33468 2008-01-30  Andreas Schwab  <schwab@suse.de>
33469             Bruno Haible  <bruno@clisp.org>
33470
33471         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
33472         correct definition of LDBL_MIN_EXP.
33473
33474 2008-01-30  Karl Berry  <karl@gnu.org>
33475
33476         * config/srclist-update: try to preserve x bit on updates.
33477         * config/srclistvars.sh: update for karl.
33478
33479 2008-01-29  Jim Meyering  <meyering@redhat.com>
33480
33481         vasnprintf.c: Avoid warning about unused label
33482         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
33483         "overflow" label definition and associated code with the
33484         same cpp condition that guards the sole use of that label.
33485
33486 2008-01-26  Bruno Haible  <bruno@clisp.org>
33487
33488         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
33489         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
33490         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
33491         * lib/isnanl-nolibm.h (isnanl): Likewise.
33492         Reported by Paul Eggert <eggert@cs.ucla.edu>.
33493
33494 2008-01-26  Bruno Haible  <bruno@clisp.org>
33495
33496         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
33497         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
33498
33499 2008-01-26  Bruno Haible  <bruno@clisp.org>
33500
33501         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
33502         GCC >= 4.0 built-in.
33503         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
33504
33505 2008-01-26  Bruno Haible  <bruno@clisp.org>
33506
33507         Rename isnan, applicable to 'double' only, to isnand.
33508         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
33509         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
33510         (configure.ac): Update.
33511         (Include): Replace "isnan.h" with "isnand.h".
33512         * m4/isnand.m4: Renamed from m4/isnan.m4.
33513         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
33514         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
33515         instead of isnan.c.
33516         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
33517         instead of HAVE_ISNAN_IN_LIBC.
33518         (isnand): Renamed from isnan.
33519         * lib/isnand.c: New file.
33520         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
33521         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
33522         (Makefile.am): Update.
33523         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
33524         Include isnand.h instead of isnan.h.
33525         (main): Test isnand instead of isnan.
33526         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
33527         isnan-nolibm.
33528         * modules/frexp (Depends-on): Likewise.
33529         * modules/frexp-tests (Depends-on): Likewise.
33530         * modules/frexp-nolibm (Depends-on): Likewise.
33531         * modules/frexp-nolibm-tests (Depends-on): Likewise.
33532         * modules/isfinite (Depends-on): Likewise.
33533         * modules/round-tests (Depends-on): Likewise.
33534         * modules/signbit (Depends-on): Likewise.
33535         * modules/signbit-tests (Depends-on): Likewise.
33536         * modules/snprintf-posix (Depends-on): Likewise.
33537         * modules/sprintf-posix (Depends-on): Likewise.
33538         * modules/trunc-tests (Depends-on): Likewise.
33539         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33540         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33541         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33542         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33543         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33544         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33545         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33546         * modules/vasnprintf-posix (Depends-on): Likewise.
33547         * modules/vasprintf-posix (Depends-on): Likewise.
33548         * modules/vfprintf-posix (Depends-on): Likewise.
33549         * modules/vsnprintf-posix (Depends-on): Likewise.
33550         * modules/vsprintf-posix (Depends-on): Likewise.
33551         * lib/frexp.c: Include isnand.h instead of isnan.h.
33552         (ISNAN): Set to isnand instead of isnan.
33553         * lib/isfinite.c: Include isnand.h instead of isnan.h.
33554         (gl_isfinited): Use isnand instead of isnan.
33555         * lib/signbitd.c: Include isnand.h instead of isnan.h.
33556         (gl_signbitd): Use isnand instead of isnan.
33557         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
33558         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
33559         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
33560         (main): Use isnand instead of isnan.
33561         * tests/test-round1.c: Include isnand.h.
33562         (main): Use isnand instead of isnan.
33563         * tests/test-round2.c: Include isnand.h instead of isnan.h.
33564         (ISNAN): Set to isnand instead of isnan.
33565         * tests/test-trunc1.c: Include isnand.h.
33566         (main): Use isnand instead of isnan.
33567         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
33568         (equal): Use isnand instead of isnan.
33569         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
33570         isnand-nolibm.
33571         * NEWS: Mention the change.
33572
33573 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33574             Bruno Haible  <bruno@clisp.org>
33575
33576         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
33577         the GCC builtins for signbits are present and set
33578         REPLACE_SIGNBIT_USING_GCC if so.
33579         * lib/math.in.h (signbit): Define using GCC builtins if
33580         REPLACE_SIGNBIT_USING_GCC is set.
33581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
33582         REPLACE_SIGNBIT_USING_GCC.
33583         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
33584
33585 2008-01-25  Jim Meyering  <meyering@redhat.com>
33586
33587         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
33588         * lib/poll.c: Include <config.h>, not "config.h".
33589         * tests/test-getaddrinfo.c: Likewise.
33590
33591 2008-01-25  Simon Josefsson  <simon@josefsson.org>
33592
33593         * modules/sockets-tests: New file.
33594
33595 2008-01-24  Simon Josefsson  <simon@josefsson.org>
33596
33597         * modules/sockets: New module, can be used to call WSA_Startup and
33598         WSA_Cleanup when needed.
33599
33600         * lib/sockets.h, lib/sockets.c: New files.
33601
33602         * m4/sockets.m4: New file.
33603
33604         * tests/test-sockets.c: New file.
33605
33606 2008-01-19  Bruno Haible  <bruno@clisp.org>
33607
33608         * doc/posix-headers: Renamed from doc/headers.
33609         * doc/posix-functions: Renamed from doc/functions.
33610         * doc/gnulib.texi: Update.
33611
33612 2008-01-19  Bruno Haible  <bruno@clisp.org>
33613
33614         * doc/glibc-functions/strcasestr.texi: Include contents of
33615         doc/functions/strcasestr.texi, fixing the list of platforms.
33616         * doc/functions/strcasestr.texi: Remove file.
33617
33618 2008-01-19  Bruno Haible  <bruno@clisp.org>
33619
33620         * doc/glibc-functions/memmem.texi: Include contents of
33621         doc/functions/memmem.texi.
33622         * doc/functions/memmem.texi: Remove file.
33623
33624 2008-01-18  Bruno Haible  <bruno@clisp.org>
33625
33626         * doc/glibc-functions/*.texi: New files.
33627         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
33628         to use the new files.
33629
33630 2008-01-17  Bruno Haible  <bruno@clisp.org>
33631
33632         * tests/test-gethostname.c (main): Fix printf statement.
33633
33634 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33635
33636         * modules/gethostname-tests: New file.
33637
33638         * tests/test-gethostname.c: New file.
33639
33640 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33641
33642         * lib/gethostname.c: Include string.h unconditionally, strncpy is
33643         used by the UNAME case.  Reported by Bruno Haible
33644         <bruno@clisp.org>.
33645
33646 2008-01-17  Eric Blake  <ebb9@byu.net>
33647
33648         Convert c-strcasestr to be more efficient.
33649         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
33650         (Depends-on): Add c-strcase, remove malloca, strnlen.
33651         * tests/test-c-strcasestr.c (main): Enhance test.
33652         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
33653
33654 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
33655
33656         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
33657         Use it in creating po/Makevars.
33658
33659 2008-01-15  Simon Josefsson  <simon@josefsson.org>
33660
33661         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
33662         Applications that requires it should initialize libgcrypt
33663         manually.
33664
33665 2008-01-16  Simon Josefsson  <simon@josefsson.org>
33666
33667         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
33668
33669 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
33670
33671         Fix problem with getdate on mingw32 reported by Simon Josefsson
33672         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
33673         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
33674         tzname", when deciding whether to declare tzname.
33675         * lib/strftime.c (tzname): Likewise.
33676
33677 2008-01-15  Bruno Haible  <bruno@clisp.org>
33678
33679         Work around a MacOS X 10.5 bug in frexpl().
33680         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
33681         * doc/functions/frexpl.texi: Document the bug.
33682         Reported by Elias Pipping <pipping@gentoo.org>.
33683
33684 2008-01-14  Eric Blake  <ebb9@byu.net>
33685
33686         Touch up previous patch.
33687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
33688         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
33689
33690         Convert strcasestr module to use Two-Way algorithm.
33691         * modules/strcasestr-simple: New module, based on the old
33692         strcasestr, but with Two-Way rather than KMP.
33693         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
33694         * lib/string.in.h (rpl_strcasestr): Declare.
33695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
33696         performance.
33697         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
33698         * modules/string (Makefile.am): Support strcasestr.
33699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33700         * modules/strcasestr-tests (Depends-on): Check for alarm.
33701         * tests/test-strcasestr.c: Augment test.
33702         * lib/str-two-way.h: Clean up stray macro.
33703         * NEWS: Document new module.
33704         * MODULES.html.sh (string handling): Likewise.
33705         * doc/functions/strcasestr.texi: New file.
33706         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
33707         here, since it is not a POSIX function.
33708
33709 2008-01-14  Colin Watson  <cjwatson@debian.org>
33710             Bruno Haible  <bruno@clisp.org>
33711
33712         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
33713         works fine; if not, set REPLACE_STRSIGNAL.
33714         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
33715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33716         REPLACE_STRSIGNAL.
33717         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
33718         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
33719         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
33720
33721 2008-01-14  Bruno Haible  <bruno@clisp.org>
33722
33723         * modules/strsignal (Include): Change to <string.h>.
33724
33725 2008-01-14  Colin Watson  <cjwatson@debian.org>
33726
33727         * modules/argp (Notice): Add a notice recommending to change
33728         XGETTEXT_OPTIONS.
33729         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
33730
33731 2008-01-13  Colin Watson  <cjwatson@debian.org>
33732
33733         * modules/strsignal-tests: New file.
33734         * tests/test-strsignal.c: New file.
33735
33736         * lib/strsignal.c: New file, from glibc with modifications.
33737         * lib/siglist.h: New file, from glibc with modifications.
33738         * lib/string.in.h (strsignal): New declaration.
33739         * m4/strsignal.m4: New file.
33740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33741         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
33742         * modules/strsignal: New file.
33743         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
33744         HAVE_DECL_STRSIGNAL.
33745
33746 2008-01-13  Bruno Haible  <bruno@clisp.org>
33747
33748         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
33749         locale encoding is not ASCII. Needed for OpenBSD 4.0.
33750         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33751         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33752
33753 2008-01-13  Bruno Haible  <bruno@clisp.org>
33754
33755         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
33756         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
33757         * lib/argp.h (__attribute__): Likewise.
33758         * lib/c-stack.c (__attribute__): Likewise.
33759         * lib/error.h (__attribute__): Likewise.
33760         * lib/fts.c (__attribute__): Likewise.
33761         * lib/openat.h (__attribute__): Likewise.
33762         * lib/stdio.in.h (__attribute__): Likewise.
33763         * lib/string.in.h (__attribute__): Likewise.
33764         * lib/utimens.c (__attribute__): Likewise.
33765         * lib/vasnprintf.h (__attribute__): Likewise.
33766         * lib/xalloc.h (__attribute__): Likewise.
33767         * lib/xprintf.h (__attribute__): Likewise.
33768         * lib/xstrtol.h (__attribute__): Likewise.
33769         * lib/xvasprintf.h (__attribute__): Likewise.
33770
33771 2008-01-12  Bruno Haible  <bruno@clisp.org>
33772
33773         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
33774         * doc/glibc-headers/a.out.texi: New file.
33775         * doc/glibc-headers/aliases.texi: New file.
33776         * doc/glibc-headers/alloca.texi: New file.
33777         * doc/glibc-headers/ar.texi: New file.
33778         * doc/glibc-headers/argp.texi: New file.
33779         * doc/glibc-headers/argz.texi: New file.
33780         * doc/glibc-headers/byteswap.texi: New file.
33781         * doc/glibc-headers/crypt.texi: New file.
33782         * doc/glibc-headers/endian.texi: New file.
33783         * doc/glibc-headers/envz.texi: New file.
33784         * doc/glibc-headers/err.texi: New file.
33785         * doc/glibc-headers/error.texi: New file.
33786         * doc/glibc-headers/execinfo.texi: New file.
33787         * doc/glibc-headers/fpu_control.texi: New file.
33788         * doc/glibc-headers/fstab.texi: New file.
33789         * doc/glibc-headers/fts.texi: New file.
33790         * doc/glibc-headers/getopt.texi: New file.
33791         * doc/glibc-headers/ieee754.texi: New file.
33792         * doc/glibc-headers/ifaddrs.texi: New file.
33793         * doc/glibc-headers/libintl.texi: New file.
33794         * doc/glibc-headers/mcheck.texi: New file.
33795         * doc/glibc-headers/mntent.texi: New file.
33796         * doc/glibc-headers/obstack.texi: New file.
33797         * doc/glibc-headers/paths.texi: New file.
33798         * doc/glibc-headers/printf.texi: New file.
33799         * doc/glibc-headers/pty.texi: New file.
33800         * doc/glibc-headers/resolv.texi: New file.
33801         * doc/glibc-headers/shadow.texi: New file.
33802         * doc/glibc-headers/sysexits.texi: New file.
33803         * doc/glibc-headers/ttyent.texi: New file.
33804
33805 2008-01-12  Jim Meyering  <meyering@redhat.com>
33806
33807         announce-gen: emit Gnulib's git-based version string.
33808         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
33809         New option --gnulib-version=V, where V is expected to be
33810         the output of running git describe in the gnulib directory.
33811         (get_tool_versions): Request feedback on xdelta.  I suspect it's
33812         not useful, and plan to stop publishing an xdelta file with each
33813         coreutils release.
33814
33815         * build-aux/announce-gen: Also check for lzma-compressed files.
33816
33817 2008-01-11  Bruno Haible  <bruno@clisp.org>
33818
33819         * tests/test-memmem.c (main): Increase maximum allowed time.
33820         * tests/test-strstr.c (main): Likewise.
33821
33822 2008-01-11  Bruno Haible  <bruno@clisp.org>
33823
33824         * doc/functions/memmem.texi: Add more precisions about platforms.
33825         * doc/functions/strstr.texi: Likewise.
33826
33827 2008-01-10  Eric Blake  <ebb9@byu.net>
33828
33829         * m4/strstr.m4: Delete cruft from copy-n-paste.
33830         Reported by Bruno Haible.
33831
33832 2008-01-10  Bruno Haible  <bruno@clisp.org>
33833
33834         Make c-strstr rely on strstr.
33835         * lib/c-strstr.c: Don't include str-kmp.h.
33836         (c_strstr): Define in terms of strstr.
33837         * modules/c-strstr (Files): Remove lib/str-kmp.h.
33838         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
33839
33840 2008-01-10  Bruno Haible  <bruno@clisp.org>
33841
33842         * doc/gnulib.texi (String Functions in C Locale): New section.
33843         * doc/c-ctype.texi: New file.
33844         * doc/c-strcase.texi: New file.
33845         * doc/c-strcaseeq.texi: New file.
33846         * doc/c-strcasestr.texi: New file.
33847         * doc/c-strstr.texi: New file.
33848         * doc/c-strtod.texi: New file.
33849         * doc/c-strtold.texi: New file.
33850
33851 2008-01-10  Eric Blake  <ebb9@byu.net>
33852
33853         * lib/relocatable.h: Fix a comment.
33854
33855 2008-01-10  Eric Blake  <ebb9@byu.net>
33856
33857         Share two-way algorithm.
33858         * lib/str-two-way.h: New file, merged from...
33859         * lib/memmem.c: ...here...
33860         * lib/strstr.c: ...and here.
33861         * modules/memmem (Files): Use it.
33862         * modules/strstr (Files): Likewise.
33863
33864         Avoid quadratic strstr implementations.
33865         * lib/strstr.c: New file.
33866         * m4/strstr.m4: Likewise.
33867         * modules/strstr: Likewise.
33868         * modules/strstr-tests: Likewise.
33869         * tests/test-strstr.c: Likewise.
33870         * lib/string.in.h (rpl_strstr): Declare.
33871         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
33872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
33873         * modules/string (Makefile.am): Likewise.
33874         * MODULES.html.sh (string handling): Mention new module.
33875         * doc/functions/strstr.texi (strstr): Document the bug.
33876
33877 2008-01-10  Bruno Haible  <bruno@clisp.org>
33878
33879         * lib/relocatable.h (relocate): State whether result is freshly
33880         allocated or not.
33881         * lib/relocatable.c (relocate): Return a freshly allocated string
33882         instead of a pointer to a privately held string.
33883         Reported by Sylvain Beucler <beuc@gnu.org>.
33884
33885 2008-01-10  Colin Watson  <cjwatson@debian.org>
33886
33887         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
33888         s/S_ISNLK/S_ISLNK/.
33889
33890 2008-01-09  Bruno Haible  <bruno@clisp.org>
33891
33892         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
33893         and other files.
33894         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
33895         if it's only a guess.
33896         * modules/memmem: Simplify by depending on memmem-simple.
33897
33898 2008-01-09  Bruno Haible  <bruno@clisp.org>
33899
33900         Work around OpenBSD 4.0 tdelete() bug.
33901         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
33902         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
33903         macros and don't redefine the enum values.
33904         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
33905         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
33906         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
33907
33908 2008-01-09  Bruno Haible  <bruno@clisp.org>
33909
33910         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
33911         (main): Don't perform the tests if setlocale did not install a UTF-8
33912         locale. Needed on OpenBSD 4.0.
33913         * modules/wcwidth-tests (Depends-on): Add localcharset.
33914
33915 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33916
33917         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
33918         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
33919         * NEWS: announce this.
33920         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
33921
33922 2008-01-09  Simon Josefsson  <simon@josefsson.org>
33923         and Eric Blake  <ebb9@byu.net>
33924
33925         Add memmem-simple module.
33926         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
33927         (gl_FUNC_MEMMEM): Separate performance from presence checks.
33928         * modules/memmem-simple: New file.
33929         * modules/memmem (Description): Tweak.
33930         * MODULES.html.sh (string handling): Mention new module.
33931         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
33932         addressed by memmem-simple.
33933         * NEWS: Document the difference.
33934
33935 2008-01-09  Eric Blake  <ebb9@byu.net>
33936
33937         Give gcc some memmem optimization hints.
33938         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
33939         (strcasestr): Declare as pure.
33940         * modules/memmem (Maintainer): Claim my implementation.
33941
33942 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33943
33944         Support AIX 6.1 and higher.
33945         * build-aux/config.libpath: Likewise.
33946         * build-aux/config.rpath: Likewise.
33947
33948 2008-01-08  Jim Meyering  <meyering@redhat.com>
33949             Bruno Haible  <bruno@clisp.org>
33950
33951         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
33952         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
33953         Reported by Peter Fales in
33954         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
33955
33956 2008-01-08  Bruno Haible  <bruno@clisp.org>
33957
33958         * modules/unictype/category-of (Depends-on): Add
33959         unictype/category-none.
33960         * modules/unictype/category-and-tests (Depends-on): Add
33961         unictype/category-{L,N,Lu,Nd}.
33962         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
33963         * modules/unictype/category-or-tests (Depends-on): Add
33964         unictype/category-{L,N}.
33965         * modules/unictype/category-name-tests (Depends-on): Add
33966         unictype/category-{Z,Nl}.
33967         Reported by Simon Josefsson.
33968
33969 2008-01-08  Bruno Haible  <bruno@clisp.org>
33970
33971         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
33972         convention better.
33973         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
33974         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
33975         Reported by Peter Miller <millerp@canb.auug.org.au>.
33976
33977 2008-01-08  Eric Blake  <ebb9@byu.net>
33978
33979         Rewrite memmem to guarantee linear complexity without malloc.
33980         * lib/memmem.c (memmem): Use Two-Way rather than
33981         Knuth-Morris-Pratt, to allow O(1) space usage.
33982         (critical_factorization, two_way_short_needle)
33983         (two_way_long_needle): New functions.
33984         (knuth_morris_pratt): Delete.
33985         * modules/memmem (Depends-on): No longer need malloca or stdbool.
33986         Add stdint.
33987         * tests/test-memmem.c (main): Add tests for periodic needle and
33988         sublinear performance.
33989         * doc/functions/memmem.texi (memmem): Document other deficiencies
33990         in cygwin and older glibc.
33991
33992 2008-01-08  Bruno Haible  <bruno@clisp.org>
33993
33994         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
33995         augmentation.
33996
33997 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
33998
33999         Add a configure time option: --disable-acl.
34000         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34001         AC_ARG_ENABLE(acl).
34002
34003 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34004
34005         * tests/test-localename.c: Don't include obsolete "setenv.h".
34006
34007         * modules/localename-tests (Depends-on): Need unsetenv.
34008
34009 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34010
34011         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34012
34013 2008-01-06  Colin Watson  <cjwatson@debian.org>
34014
34015         * users.txt: Add man-db.
34016
34017 2008-01-07  Bruno Haible  <bruno@clisp.org>
34018
34019         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34020         previous section name.
34021
34022 2008-01-07  Bruno Haible  <bruno@clisp.org>
34023
34024         * lib/progname.c (set_program_name): Don't strip off a leading
34025         "lt-" prefix outside a .libs directory.
34026         Suggested by Paul Eggert.
34027
34028 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34029             Bruno Haible  <bruno@clisp.org>
34030
34031         Improve memory cleanup in 'relocatable' module.
34032         * lib/relocatable.h (compute_curr_prefix): Change return type to
34033         'char *'.
34034         * lib/relocatable.c (compute_curr_prefix): Change return type to
34035         'char *'. Free curr_installdir after use.
34036         (relocate): Free curr_prefix_better after use.
34037         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34038
34039 2008-01-01  Bruno Haible  <bruno@clisp.org>
34040
34041         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34042         failure on older glibc systems.
34043         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34044
34045 2008-01-05  Eric Blake  <ebb9@byu.net>
34046
34047         Avoid quadratic system memmem.
34048         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34049         Reported by Ralf Wildenhues.
34050
34051         Fix memmem test for mingw.
34052         * modules/memmem-tests (configure.ac): Check for alarm.
34053         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34054         it.
34055         * doc/functions/memmem.texi: New file.
34056         * doc/gnulib.texi (Function Substitutes): Add memmem.
34057         Reported by Bruno Haible.
34058
34059 2008-01-04  Bruno Haible  <bruno@clisp.org>
34060
34061         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34062         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34063         gl_HEADER_STRING_H_DEFAULTS.
34064
34065 2008-01-04  Eric Blake  <ebb9@byu.net>
34066
34067         Shorten duration of memmem test.
34068         * tests/test-memmem.c (main): Use alarm to declare failure if test
34069         is taking too long.
34070         Reported by Ralf Wildenhues.
34071
34072 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34073
34074         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34075         string, needed by strerror.
34076
34077 2008-01-03  Colin Watson  <cjwatson@debian.org>
34078             Bruno Haible  <bruno@clisp.org>
34079
34080         * doc/gnulib-tool.texi (Localization): New section.
34081
34082 2008-01-02  Bruno Haible  <bruno@clisp.org>
34083
34084         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34085         variables to 'unsigned char *' type.
34086         Reported by Paul Eggert.
34087
34088 2008-01-02  Jim Meyering  <jim@meyering.net>
34089
34090         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34091
34092 2007-12-31  Jim Meyering  <jim@meyering.net>
34093
34094         Avoid use of private FTS type name.
34095         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34096
34097 2007-12-30  Karl Berry  <karl@gnu.org>
34098
34099         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34100         work around defect in Texinfo and/or the standalone Info browser.
34101
34102 2007-12-30  Bruno Haible  <bruno@clisp.org>
34103
34104         Unify 5 copies of the KMP code.
34105         * lib/str-kmp.h: New file.
34106         * lib/c-strcasestr.c: Include str-kmp.h.
34107         (knuth_morris_pratt): Remove function.
34108         (c_strcasestr): Update.
34109         * lib/c-strstr.c: Include str-kmp.h.
34110         (knuth_morris_pratt): Remove function.
34111         (c_strcasestr): Update.
34112         * lib/mbscasestr.c: Include str-kmp.h.
34113         (knuth_morris_pratt_unibyte): Remove function.
34114         * lib/mbsstr.c: Include str-kmp.h.
34115         (knuth_morris_pratt_unibyte): Remove function.
34116         * lib/strcasestr.c: Include str-kmp.h.
34117         (knuth_morris_pratt): Remove function.
34118         (strcasestr): Update.
34119         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34120         * modules/c-strstr (Files): Likewise.
34121         * modules/mbscasestr (Files): Likewise.
34122         * modules/mbsstr (Files): Likewise.
34123         * modules/strcasestr (Files): Likewise.
34124         Suggested by Paul Eggert.
34125
34126 2007-12-30  Bruno Haible  <bruno@clisp.org>
34127
34128         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34129         defined.
34130
34131 2007-12-30  Bruno Haible  <bruno@clisp.org>
34132
34133         * lib/xmalloca.h: Include xalloc.h.
34134         (xnmalloca): New macro.
34135
34136 2007-12-30  Bruno Haible  <bruno@clisp.org>
34137
34138         * lib/malloca.h (nmalloca): New macro.
34139         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34140         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34141         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34142         knuth_morris_pratt_multibyte): Likewise.
34143         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34144         knuth_morris_pratt_multibyte): Likewise.
34145         * lib/memmem.c (knuth_morris_pratt): Likewise.
34146         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34147
34148 2007-12-25  Bruno Haible  <bruno@clisp.org>
34149
34150         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34151         * lib/glob.c: Don't include openat.h.
34152         (link_exists2_p): Add back the code that deals with the
34153         !GLOB_ALTDIRFUNC case.
34154         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34155         let it do the filename concatenation.
34156         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34157         * modules/glob (Depends-on): Remove openat.
34158
34159 2007-12-31  Bruno Haible  <bruno@clisp.org>
34160
34161         * modules/dirfd (License): Change to LGPLv2+.
34162         Approved by Jim Meyering.
34163
34164 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34165
34166         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34167         when multiplying M by sizeof (size_t).
34168
34169 2007-12-10  Martin Lambers  <marlam@marlam.de>
34170
34171         Override getpagesize on mingw.
34172         * lib/getpagesize.c: New file.
34173         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34174         * modules/getpagesize (Files): Add lib/getpagesize.c.
34175         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34177         REPLACE_GETPAGESIZE.
34178         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34179
34180 2007-12-25  Bruno Haible  <bruno@clisp.org>
34181
34182         * modules/localcharset (Notice): New field.
34183         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34184         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34185
34186 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34187             Bruno Haible  <bruno@clisp.org>
34188
34189         Avoid using the syntax symbol() in formatted documentation.
34190         * MODULES.html.sh (func_module): When replacing symbol() with a
34191         hyperlink, remove the parentheses. Show an error if some remain.
34192         Recognize and render the '...' syntax.
34193         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34194         Rework. Add paragraph about GCC's inlining.
34195         * doc/alloca.texi: Likewise.
34196         * doc/error.texi: Remove parentheses from symbol reference.
34197         * doc/gnulib-intro.texi: Likewise.
34198         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34199         * modules/fnmatch (Description): Reword to say "the ... function".
34200         * modules/full-read (Description): Likewise.
34201         * modules/full-write (Description): Likewise.
34202         * modules/safe-read (Description): Likewise.
34203         * modules/safe-write (Description): Likewise.
34204         * modules/strchrnul (Description): Likewise.
34205         * modules/trim (Description): Likewise.
34206         * modules/error (Description): Remove parentheses from symbol
34207         references.
34208         * modules/verror (Description): Likewise.
34209         Reported by Karl Berry.
34210
34211 2007-12-25  Bruno Haible  <bruno@clisp.org>
34212
34213         Fixup after 2007-10-16 commit.
34214         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34215
34216 2007-12-24  Bruno Haible  <bruno@clisp.org>
34217
34218         Make --enable-relocatable work with DESTDIR.
34219         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34220         to compute installdir from destprog.
34221         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34222         also set the RELOC_DESTDIR variable.
34223         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34224
34225 2007-12-24  Bruno Haible  <bruno@clisp.org>
34226
34227         Fix link error due to xalloc_die().
34228         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
34229         of xreadlink.
34230         * lib/relocwrapper.c: Update comments.
34231         * build-aux/install-reloc: Remove xreadlink.c from file list.
34232         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
34233         xreadlink.c.
34234         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34235
34236 2007-12-24  Bruno Haible  <bruno@clisp.org>
34237
34238         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
34239         * lib/setenv.h: Remove file.
34240         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
34241         lib/setenv.h.
34242         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
34243         (Depends-on): Add stdlib.
34244         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
34245         gl_FUNC_UNSETENV.
34246         (Include): Replace setenv.h with <stdlib.h>.
34247         * modules/unsetenv: New file.
34248         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
34249         * lib/unsetenv.c: Include <stdlib.h> first.
34250         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
34251         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
34252         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
34253         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
34254         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
34255         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
34257         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34258         * doc/functions/unsetenv.texi: Update.
34259         * modules/xsetenv (Depends-on): Add unsetenv.
34260         * modules/getdate (Depends-on): Likewise.
34261         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
34262         * lib/xsetenv.c: Don't include setenv.h.
34263         * lib/getdate.y: Likewise.
34264         * lib/relocwrapper.c: Likewise.
34265         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34266         (Depends-on): Add stdlib.
34267         * NEWS: Mention the changes.
34268         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34269
34270 2007-12-23  Bruno Haible  <bruno@clisp.org>
34271
34272         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34273         indentation.
34274
34275 2007-12-23  Bruno Haible  <bruno@clisp.org>
34276
34277         * lib/c-strcasestr.c: Add more comments.
34278         * lib/c-strstr.c: Likewise.
34279         * lib/mbscasestr.c: Likewise.
34280         * lib/mbsstr.c: Likewise.
34281         * lib/strcasestr.c: Likewise.
34282         * lib/memmem.c: Likewise.
34283
34284 2007-12-23  Bruno Haible  <bruno@clisp.org>
34285
34286         * tests/test-memmem.c: Include <string.h> first.
34287
34288 2007-12-22  Bruno Haible  <bruno@clisp.org>
34289
34290         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34291         the contents of $testsbase.
34292         Reported by Ralf Wildenhues.
34293
34294 2007-12-22  Bruno Haible  <bruno@clisp.org>
34295
34296         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34297         two variables local_ldadd_before, local_ldadd_last.
34298
34299 2007-12-20  Eric Blake  <ebb9@byu.net>
34300
34301         Work around circular library issue when cross-compiling.
34302         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34303         that progname.o does not need to pull in rpl_memcmp.
34304
34305 2007-12-19  Eric Blake  <ebb9@byu.net>
34306
34307         Fix memmem to avoid O(n^2) worst-case complexity.
34308         * lib/memmem.c (knuth_morris_pratt): New function.
34309         (memmem): Use it if first few naive iterations fail.
34310         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34311         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34312         * modules/memchr (License): Likewise.
34313         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34314         malloca.
34315         * tests/test-memmem.c: Rewrite, borrowing ideas from
34316         test-mbsstr1.c; the old version wouldn't even compile!
34317         * modules/memmem-tests: New file.
34318         * lib/string.in.h (rpl_memmem): Add declaration.
34319         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34321         REPLACE_MEMMEM.
34322
34323 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34324
34325         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34326         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34327         before any system include files, and undef after them all.  This
34328         should fix a problem on VMS reported by John E. Malmberg in
34329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34330
34331 2007-12-17  Eric Blake  <ebb9@byu.net>
34332
34333         Revert addition of verify, for BSD/OS.
34334         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34335         can't handle large files, for the sake of obsolete platforms.
34336         * modules/fseeko (Depends-on): Remove verify.
34337         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34338         * doc/functions/ftello.texi (ftello): Likewise.
34339         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34340         Reported by Larry Jones.
34341
34342 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34343
34344         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34345         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34346
34347 2007-12-17  Jim Meyering  <meyering@redhat.com>
34348
34349         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34350         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34351         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34352         * modules/getcwd (Depends-on): Add openat.
34353         Reported by Petr Salinger.
34354
34355 2007-12-17  Bruno Haible  <bruno@clisp.org>
34356
34357         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34358         avoid a segmentation fault of the configure test on x86_64 systems.
34359
34360 2007-12-15  Jim Meyering  <meyering@redhat.com>
34361
34362         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34363
34364 2007-12-13  Eric Blake  <ebb9@byu.net>
34365
34366         Another fseek test.
34367         * tests/test-fseek.c (main): Also test ungetc handling.
34368         * tests/test-fseeko.c (main): Likewise.
34369         * modules/fseeko (Depends-on): Add verify.
34370         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34371         large.
34372         Reported by Larry Jones.
34373
34374         Fix fseeko on mingw.
34375         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34376         seek.
34377
34378         Beef up fseek tests.
34379         * tests/test-fseek.c (main): Also test eof handling.
34380         * tests/test-fseeko.c (main): Likewise.
34381         Reported by Larry Jones.
34382
34383 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34384
34385         Fix fseeko on BSD-based platforms.
34386         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34387         successful seek.
34388
34389 2007-12-12  Eric Blake  <ebb9@byu.net>
34390
34391         Allow circular dependency of separate libtests.a
34392         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
34393         when use_libtests.
34394
34395 2007-12-11  Eric Blake  <ebb9@byu.net>
34396
34397         Fix bug with -0.0L in previous patch.
34398         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
34399         * tests/test-isnan.c (main): Also test on zeroes.
34400         * tests/test-isnanf.c (main): Likewise.
34401         * tests/test-isnanl.h (main): Likewise.
34402
34403         Detect pseudo-denormals on x86 even when cross-compiling.
34404         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
34405         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
34406         invalid bit patterns that happen to satisfy ==.
34407
34408         Avoid link failures with separate libtests.a.
34409         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
34410         last, to satisfy circular dependencies.
34411
34412 2007-12-11  Eric Blake  <ebb9@byu.net>
34413         and Bruno Haible  <bruno@clisp.org>
34414
34415         Fix OpenBSD 4.0 <float.h> handling of long double.
34416         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
34417         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
34418         * doc/headers/float.texi (float.h): Document OpenBSD bug.
34419
34420 2007-12-11  Jim Meyering  <meyering@redhat.com>
34421
34422         * users.txt: Add libvirt.
34423
34424         Support versions of autoconf prior to 2.59c.
34425         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
34426         if it is not already defined.
34427
34428 2007-12-09  Bruno Haible  <bruno@clisp.org>
34429
34430         Let 'gnulib-tool --import' collect sources needed for the tests in
34431         tests/ rather than in lib/.
34432         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
34433         argument. If true, add rules to generate libtests.a, and put libtests.a
34434         into $(LDADD). Consider source files in subdirectories and set
34435         uses_subdirs.
34436         (func_emit_initmacro_start, func_emit_initmacro_end,
34437         func_emit_initmacro_done): Pass all arguments explicitly.
34438         (func_import): Determine two module lists main_modules,
34439         testsrelated_modules. Determine use_libtests. Determine two variables
34440         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
34441         instead of just sed_transform_lib_file. Determine two variables
34442         main_files and testsrelated_files. Compute 'files' as the union of
34443         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
34444         func_add_or_update. In the generated gnulib-comp.m4, collect the
34445         object files for tests/ in different variables than those for lib/.
34446         Substitute LIBTESTS_LIBDEPS.
34447         (func_create_testdir): Combine the uses_subdirs results from
34448         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
34449
34450 2007-12-09  Bruno Haible  <bruno@clisp.org>
34451
34452         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
34453         the build-aux directory.
34454
34455 2007-12-09  Bruno Haible  <bruno@clisp.org>
34456
34457         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
34458         introduced on 2006-09-09.
34459
34460 2007-12-07  Jim Meyering  <meyering@redhat.com>
34461
34462         Let these macros work also with autoconf-2.59.
34463         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
34464         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
34465         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34466
34467 2007-12-06  Jim Meyering  <meyering@redhat.com>
34468
34469         Avoid a configure-time syntax error in gl_FUNC_ACL.
34470         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
34471         function in each branch, before testing the cache variable.
34472
34473 2007-12-04  Eric Blake  <ebb9@byu.net>
34474
34475         Make scripts executable.
34476         * build-aux/config.guess: Add execute permissions.
34477         * build-aux/config.sub: Likewise.
34478         * build-aux/gendocs.sh: Likewise.
34479
34480         Fix frexp on mingw.
34481         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
34482         cross-compiling.
34483         * doc/functions/frexp.texi (frexp): Document the bug.
34484
34485         Make cygwin fseeko check more reliable.
34486         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
34487         version numbers, rather than unrelated feature check.
34488         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
34489         * doc/functions/ftello.texi (ftello): Likewise.
34490         Reported by Bruno Haible.
34491
34492         * m4/strerror.m4: Bump version number.
34493
34494 2007-12-03  Bruno Haible  <bruno@clisp.org>
34495
34496         * doc/functions/mprotect.texi: Mention the mingw problem.
34497
34498 2007-12-03  Eric Blake  <ebb9@byu.net>
34499
34500         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
34501         REPLACE_STRERROR is initialized before this macro.
34502
34503 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34504
34505         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
34506         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
34507         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
34508         put -lsec in even for programs other than 'ls'.  This fixes a problem
34509         for gettext reported by Bruno Haible in
34510         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
34511         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
34512         Add support for Solaris 10.  This isn't efficient, but should get the
34513         job done for now.
34514
34515 2007-12-03  James Youngman  <jay@gnu.org>
34516
34517         * doc/regexprops-generic.texi: change "an close-group" to "a
34518         close-group" and "illegal" to "not allowed".
34519
34520 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34521
34522         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
34523         pr_byname.h. Needed for the rare case when the maintainer has done
34524         "make maintainer-clean" in the source directory and then attempts a
34525         build outside the source directory.
34526         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
34527         scripts_byname.h.
34528
34529 2007-12-02  Martin Lambers <marlam@marlam.de>
34530             Bruno Haible  <bruno@clisp.org>
34531
34532         * lib/getpagesize.h: Remove file.
34533         * lib/unistd.in.h: Include declaration of getpagesize here.
34534         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
34535         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
34536         HAVE_SYS_PARAM_H.
34537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
34538         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34539         * modules/getpagesize (Files): Remove lib/getpagesize.h.
34540         (Depends-on): Add unistd.
34541         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34542         (Include): Use <unistd.h> instead of getpagesize.h.
34543         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
34544         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34545         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
34546         gl_GETPAGESIZE invocation, already handled by module dependency.
34547         * lib/pagealign_alloc.c: Don't include getpagesize.h.
34548
34549 2007-12-02  Bruno Haible  <bruno@clisp.org>
34550
34551         * modules/strings-tests: New file.
34552         * tests/test-strings.c: New file.
34553
34554         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
34555         * lib/strings.in.h: New file.
34556         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
34557         * m4/strings_h.m4: New file.
34558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
34559         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
34560         * modules/strings: New file.
34561         * modules/string (Makefile.am): Update.
34562         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
34563         Reported by Karl Berry.
34564
34565 2007-12-01  Eric Blake  <ebb9@byu.net>
34566
34567         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
34568         accomodate fix in cygwin 1.5.25.
34569
34570 2007-12-01  Jim Meyering  <meyering@redhat.com>
34571
34572         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
34573         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
34574         that would inhibit utf8-optimization of a regexp containing line-
34575         or buffer-anchors, e.g., `^', `$'.
34576
34577 2007-11-30  Bruno Haible  <bruno@clisp.org>
34578
34579         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
34580         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
34581         glthread_recursive_lock_init.
34582         * lib/lock.c (glthread_recursive_lock_init)
34583         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
34584         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34585
34586 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34587
34588         New function qset_acl, like set_acl but with syscall semantics.
34589         * lib/acl.h (qset_acl): New decl.
34590         * lib/acl.c (qset_acl): New function.
34591         (set_acl): Use new function.  Use more-consistent diagnostics.
34592
34593 2007-11-28  Jim Meyering  <meyering@redhat.com>
34594
34595         * modules/physmem (License): Change from GPL to LGPLv2+.
34596
34597 2007-11-26  Bruno Haible  <bruno@clisp.org>
34598
34599         * lib/vasnprintf.c (decode_long_double): Don't abort if the
34600         'long double' type has excess precision.
34601         Reported by Jim Meyering in
34602         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
34603
34604 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34605
34606         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
34607         Sync from <http://gnu.org/licenses>.
34608         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
34609         with license text from same location.
34610         * doc/maintain.texi, doc/standards.texi:  Sync from
34611         <http://savannah.gnu.org/projects/gnustandards>.
34612
34613 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
34614         and Jim Meyering  <meyering@redhat.com>
34615
34616         Adjust getdate' grammar to accept a slightly more regular language.
34617         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
34618         Before, the former was rejected.
34619         * lib/getdate.y (digits_to_date_time): New function, factored
34620         out of ...
34621         (number): ...here.  Just call digits_to_date_time.
34622         (hybrid): New non-terminal to handle an <unsigned number,
34623         signed relative offset> sequence consistently.
34624
34625 2007-11-18  Jim Meyering  <meyering@redhat.com>
34626
34627         Pull my changes from coreutils:
34628         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
34629         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
34630         use of $gnulib_tool_option_extras, so that it's separated from the
34631         preceding argument.
34632
34633         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
34634         * build-aux/bootstrap (cp_mark_as_generated): Create any required
34635         parent destination directories before copying a file into place.
34636
34637 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
34638
34639         bootstrap: work also with 4-argument variant of AC_INIT
34640         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
34641
34642 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34643
34644         Port test-getaddrinfo to Solaris.
34645         Problem reported by Bruno Haible in
34646         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
34647         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
34648         explanation of setting 'hints'.
34649         Don't reject an implementation merely because it returns EAI_SERVICE.
34650         (EAI_SERVICE): Define to 0 if not defined.
34651
34652 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34653
34654         The license of gnu-make and posix-shell is now "GPLed build tool".
34655         * modules/gnu-make (License): Likewise.
34656         * modules/posix-shell (License): Likewise.
34657
34658         New module posix-shell, for determining a POSIX shell
34659         or perhaps something that is close enough to a POSIX shell.
34660         * m4/posix-shell.m4: New file.
34661         * modules/posix-shell: New file.
34662
34663         * MODULES.html.sh: Mention new module.
34664
34665         New module gnu-make, for determining whether we're using GNU Make.
34666         * m4/gnu-make.m4: New file.
34667         * modules/gnu-make: New file.
34668         * MODULES.html.sh: Mention new module.
34669
34670 2007-11-14  Jim Meyering  <meyering@redhat.com>
34671
34672         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
34673         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
34674         use this macro to create a function _definition_.
34675         Remove useless "#undef ARGMATCH_DIE".
34676
34677 2007-11-14  Bruno Haible  <bruno@clisp.org>
34678
34679         * lib/config.charset: Update for OpenBSD 4.1.
34680         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
34681
34682 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
34683
34684         Document 64-bit #if problems in stdint.texi.
34685         * doc/headers/stdint.texi (stdint.h): Mention problems with
34686         64-bit-#if, and how to work around them.
34687
34688         Don't insist on 'long long int' support in the preprocessor.  It
34689         breaks too many things.  For example, PRIdMAX still uses a 'long
34690         long int' format with the latest Sun compiler, even though
34691         HAVE_LONG_LONG_INT isn't defined due to that compiler's
34692         preprocessor problem.  This causes the latest coreutils to dump
34693         core on Solaris 10 sparc with the Sun C compiler.
34694         Instead, fix the 2007-10-16 problem in a different way, by evaluating
34695         the troublesome expressions at configure-time, not at #if-time.
34696         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
34697         preprocessor.
34698         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
34699         compile-time C checks, done at 'configure'-time.
34700         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
34701         * modules/inttypes (Makefile): Substitute the new symbols that
34702         gl_INTTYPES_H now generates.
34703         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
34704
34705 2007-11-12  Bruno Haible  <bruno@clisp.org>
34706
34707         Tests for Unicode character classification functions.
34708
34709         * modules/unictype/bidicategory-byname-tests: New file.
34710         * modules/unictype/bidicategory-name-tests: New file.
34711         * modules/unictype/bidicategory-of-tests: New file.
34712         * modules/unictype/bidicategory-test-tests: New file.
34713         * modules/unictype/block-list-tests: New file.
34714         * modules/unictype/block-of-tests: New file.
34715         * modules/unictype/block-test-tests: New file.
34716         * modules/unictype/category-C-tests: New file.
34717         * modules/unictype/category-Cc-tests: New file.
34718         * modules/unictype/category-Cf-tests: New file.
34719         * modules/unictype/category-Cn-tests: New file.
34720         * modules/unictype/category-Co-tests: New file.
34721         * modules/unictype/category-Cs-tests: New file.
34722         * modules/unictype/category-L-tests: New file.
34723         * modules/unictype/category-Ll-tests: New file.
34724         * modules/unictype/category-Lm-tests: New file.
34725         * modules/unictype/category-Lo-tests: New file.
34726         * modules/unictype/category-Lt-tests: New file.
34727         * modules/unictype/category-Lu-tests: New file.
34728         * modules/unictype/category-M-tests: New file.
34729         * modules/unictype/category-Mc-tests: New file.
34730         * modules/unictype/category-Me-tests: New file.
34731         * modules/unictype/category-Mn-tests: New file.
34732         * modules/unictype/category-N-tests: New file.
34733         * modules/unictype/category-Nd-tests: New file.
34734         * modules/unictype/category-Nl-tests: New file.
34735         * modules/unictype/category-No-tests: New file.
34736         * modules/unictype/category-P-tests: New file.
34737         * modules/unictype/category-Pc-tests: New file.
34738         * modules/unictype/category-Pd-tests: New file.
34739         * modules/unictype/category-Pe-tests: New file.
34740         * modules/unictype/category-Pf-tests: New file.
34741         * modules/unictype/category-Pi-tests: New file.
34742         * modules/unictype/category-Po-tests: New file.
34743         * modules/unictype/category-Ps-tests: New file.
34744         * modules/unictype/category-S-tests: New file.
34745         * modules/unictype/category-Sc-tests: New file.
34746         * modules/unictype/category-Sk-tests: New file.
34747         * modules/unictype/category-Sm-tests: New file.
34748         * modules/unictype/category-So-tests: New file.
34749         * modules/unictype/category-Z-tests: New file.
34750         * modules/unictype/category-Zl-tests: New file.
34751         * modules/unictype/category-Zp-tests: New file.
34752         * modules/unictype/category-Zs-tests: New file.
34753         * modules/unictype/category-and-not-tests: New file.
34754         * modules/unictype/category-and-tests: New file.
34755         * modules/unictype/category-byname-tests: New file.
34756         * modules/unictype/category-name-tests: New file.
34757         * modules/unictype/category-none-tests: New file.
34758         * modules/unictype/category-of-tests: New file.
34759         * modules/unictype/category-or-tests: New file.
34760         * modules/unictype/category-test-withtable-tests: New file.
34761         * modules/unictype/combining-class-tests: New file.
34762         * modules/unictype/ctype-alnum-tests: New file.
34763         * modules/unictype/ctype-alpha-tests: New file.
34764         * modules/unictype/ctype-blank-tests: New file.
34765         * modules/unictype/ctype-cntrl-tests: New file.
34766         * modules/unictype/ctype-digit-tests: New file.
34767         * modules/unictype/ctype-graph-tests: New file.
34768         * modules/unictype/ctype-lower-tests: New file.
34769         * modules/unictype/ctype-print-tests: New file.
34770         * modules/unictype/ctype-punct-tests: New file.
34771         * modules/unictype/ctype-space-tests: New file.
34772         * modules/unictype/ctype-upper-tests: New file.
34773         * modules/unictype/ctype-xdigit-tests: New file.
34774         * modules/unictype/decimal-digit-tests: New file.
34775         * modules/unictype/digit-tests: New file.
34776         * modules/unictype/mirror-tests: New file.
34777         * modules/unictype/numeric-tests: New file.
34778         * modules/unictype/property-alphabetic-tests: New file.
34779         * modules/unictype/property-ascii-hex-digit-tests: New file.
34780         * modules/unictype/property-bidi-arabic-digit-tests: New file.
34781         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
34782         * modules/unictype/property-bidi-block-separator-tests: New file.
34783         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
34784         * modules/unictype/property-bidi-common-separator-tests: New file.
34785         * modules/unictype/property-bidi-control-tests: New file.
34786         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
34787         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
34788         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
34789         * modules/unictype/property-bidi-european-digit-tests: New file.
34790         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
34791         * modules/unictype/property-bidi-left-to-right-tests: New file.
34792         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
34793         * modules/unictype/property-bidi-other-neutral-tests: New file.
34794         * modules/unictype/property-bidi-pdf-tests: New file.
34795         * modules/unictype/property-bidi-segment-separator-tests: New file.
34796         * modules/unictype/property-bidi-whitespace-tests: New file.
34797         * modules/unictype/property-byname-tests: New file.
34798         * modules/unictype/property-combining-tests: New file.
34799         * modules/unictype/property-composite-tests: New file.
34800         * modules/unictype/property-currency-symbol-tests: New file.
34801         * modules/unictype/property-dash-tests: New file.
34802         * modules/unictype/property-decimal-digit-tests: New file.
34803         * modules/unictype/property-default-ignorable-code-point-tests: New file.
34804         * modules/unictype/property-deprecated-tests: New file.
34805         * modules/unictype/property-diacritic-tests: New file.
34806         * modules/unictype/property-extender-tests: New file.
34807         * modules/unictype/property-format-control-tests: New file.
34808         * modules/unictype/property-grapheme-base-tests: New file.
34809         * modules/unictype/property-grapheme-extend-tests: New file.
34810         * modules/unictype/property-grapheme-link-tests: New file.
34811         * modules/unictype/property-hex-digit-tests: New file.
34812         * modules/unictype/property-hyphen-tests: New file.
34813         * modules/unictype/property-id-continue-tests: New file.
34814         * modules/unictype/property-id-start-tests: New file.
34815         * modules/unictype/property-ideographic-tests: New file.
34816         * modules/unictype/property-ids-binary-operator-tests: New file.
34817         * modules/unictype/property-ids-trinary-operator-tests: New file.
34818         * modules/unictype/property-ignorable-control-tests: New file.
34819         * modules/unictype/property-iso-control-tests: New file.
34820         * modules/unictype/property-join-control-tests: New file.
34821         * modules/unictype/property-left-of-pair-tests: New file.
34822         * modules/unictype/property-line-separator-tests: New file.
34823         * modules/unictype/property-logical-order-exception-tests: New file.
34824         * modules/unictype/property-lowercase-tests: New file.
34825         * modules/unictype/property-math-tests: New file.
34826         * modules/unictype/property-non-break-tests: New file.
34827         * modules/unictype/property-not-a-character-tests: New file.
34828         * modules/unictype/property-numeric-tests: New file.
34829         * modules/unictype/property-other-alphabetic-tests: New file.
34830         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
34831         * modules/unictype/property-other-grapheme-extend-tests: New file.
34832         * modules/unictype/property-other-id-continue-tests: New file.
34833         * modules/unictype/property-other-id-start-tests: New file.
34834         * modules/unictype/property-other-lowercase-tests: New file.
34835         * modules/unictype/property-other-math-tests: New file.
34836         * modules/unictype/property-other-uppercase-tests: New file.
34837         * modules/unictype/property-paired-punctuation-tests: New file.
34838         * modules/unictype/property-paragraph-separator-tests: New file.
34839         * modules/unictype/property-pattern-syntax-tests: New file.
34840         * modules/unictype/property-pattern-white-space-tests: New file.
34841         * modules/unictype/property-private-use-tests: New file.
34842         * modules/unictype/property-punctuation-tests: New file.
34843         * modules/unictype/property-quotation-mark-tests: New file.
34844         * modules/unictype/property-radical-tests: New file.
34845         * modules/unictype/property-sentence-terminal-tests: New file.
34846         * modules/unictype/property-soft-dotted-tests: New file.
34847         * modules/unictype/property-space-tests: New file.
34848         * modules/unictype/property-terminal-punctuation-tests: New file.
34849         * modules/unictype/property-test-tests: New file.
34850         * modules/unictype/property-titlecase-tests: New file.
34851         * modules/unictype/property-unassigned-code-value-tests: New file.
34852         * modules/unictype/property-unified-ideograph-tests: New file.
34853         * modules/unictype/property-uppercase-tests: New file.
34854         * modules/unictype/property-variation-selector-tests: New file.
34855         * modules/unictype/property-white-space-tests: New file.
34856         * modules/unictype/property-xid-continue-tests: New file.
34857         * modules/unictype/property-xid-start-tests: New file.
34858         * modules/unictype/property-zero-width-tests: New file.
34859         * modules/unictype/scripts-tests: New file.
34860         * modules/unictype/syntax-c-ident-tests: New file.
34861         * modules/unictype/syntax-c-whitespace-tests: New file.
34862         * modules/unictype/syntax-java-ident-tests: New file.
34863         * modules/unictype/syntax-java-whitespace-tests: New file.
34864         * tests/unictype/test-bidi_byname.c: New file.
34865         * tests/unictype/test-bidi_name.c: New file.
34866         * tests/unictype/test-bidi_of.c: New file.
34867         * tests/unictype/test-bidi_test.c: New file.
34868         * tests/unictype/test-block_list.c: New file.
34869         * tests/unictype/test-block_of.c: New file.
34870         * tests/unictype/test-block_test.c: New file.
34871         * tests/unictype/test-categ_and.c: New file.
34872         * tests/unictype/test-categ_and_not.c: New file.
34873         * tests/unictype/test-categ_byname.c: New file.
34874         * tests/unictype/test-categ_name.c: New file.
34875         * tests/unictype/test-categ_none.c: New file.
34876         * tests/unictype/test-categ_of.c: New file.
34877         * tests/unictype/test-categ_or.c: New file.
34878         * tests/unictype/test-categ_test_withtable.c: New file.
34879         * tests/unictype/test-combining.c: New file.
34880         * tests/unictype/test-decdigit.c: New file.
34881         * tests/unictype/test-digit.c: New file.
34882         * tests/unictype/test-mirror.c: New file.
34883         * tests/unictype/test-numeric.c: New file.
34884         * tests/unictype/test-pr_byname.c: New file.
34885         * tests/unictype/test-pr_test.c: New file.
34886         * tests/unictype/test-predicate-part1.h: New file.
34887         * tests/unictype/test-predicate-part2.h: New file.
34888         * tests/unictype/test-scripts.c: New file.
34889         * tests/unictype/test-sy_c_ident.c: New file.
34890         * tests/unictype/test-sy_java_ident.c: New file.
34891
34892         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
34893         for Unicode 5.0.0.
34894         * tests/unictype/test-categ_Cc.c: Likewise.
34895         * tests/unictype/test-categ_Cf.c: Likewise.
34896         * tests/unictype/test-categ_Cn.c: Likewise.
34897         * tests/unictype/test-categ_Co.c: Likewise.
34898         * tests/unictype/test-categ_Cs.c: Likewise.
34899         * tests/unictype/test-categ_L.c: Likewise.
34900         * tests/unictype/test-categ_Ll.c: Likewise.
34901         * tests/unictype/test-categ_Lm.c: Likewise.
34902         * tests/unictype/test-categ_Lo.c: Likewise.
34903         * tests/unictype/test-categ_Lt.c: Likewise.
34904         * tests/unictype/test-categ_Lu.c: Likewise.
34905         * tests/unictype/test-categ_M.c: Likewise.
34906         * tests/unictype/test-categ_Mc.c: Likewise.
34907         * tests/unictype/test-categ_Me.c: Likewise.
34908         * tests/unictype/test-categ_Mn.c: Likewise.
34909         * tests/unictype/test-categ_N.c: Likewise.
34910         * tests/unictype/test-categ_Nd.c: Likewise.
34911         * tests/unictype/test-categ_Nl.c: Likewise.
34912         * tests/unictype/test-categ_No.c: Likewise.
34913         * tests/unictype/test-categ_P.c: Likewise.
34914         * tests/unictype/test-categ_Pc.c: Likewise.
34915         * tests/unictype/test-categ_Pd.c: Likewise.
34916         * tests/unictype/test-categ_Pe.c: Likewise.
34917         * tests/unictype/test-categ_Pf.c: Likewise.
34918         * tests/unictype/test-categ_Pi.c: Likewise.
34919         * tests/unictype/test-categ_Po.c: Likewise.
34920         * tests/unictype/test-categ_Ps.c: Likewise.
34921         * tests/unictype/test-categ_S.c: Likewise.
34922         * tests/unictype/test-categ_Sc.c: Likewise.
34923         * tests/unictype/test-categ_Sk.c: Likewise.
34924         * tests/unictype/test-categ_Sm.c: Likewise.
34925         * tests/unictype/test-categ_So.c: Likewise.
34926         * tests/unictype/test-categ_Z.c: Likewise.
34927         * tests/unictype/test-categ_Zl.c: Likewise.
34928         * tests/unictype/test-categ_Zp.c: Likewise.
34929         * tests/unictype/test-categ_Zs.c: Likewise.
34930         * tests/unictype/test-ctype_alnum.c: Likewise.
34931         * tests/unictype/test-ctype_alpha.c: Likewise.
34932         * tests/unictype/test-ctype_blank.c: Likewise.
34933         * tests/unictype/test-ctype_cntrl.c: Likewise.
34934         * tests/unictype/test-ctype_digit.c: Likewise.
34935         * tests/unictype/test-ctype_graph.c: Likewise.
34936         * tests/unictype/test-ctype_lower.c: Likewise.
34937         * tests/unictype/test-ctype_print.c: Likewise.
34938         * tests/unictype/test-ctype_punct.c: Likewise.
34939         * tests/unictype/test-ctype_space.c: Likewise.
34940         * tests/unictype/test-ctype_upper.c: Likewise.
34941         * tests/unictype/test-ctype_xdigit.c: Likewise.
34942         * tests/unictype/test-decdigit.h: Likewise.
34943         * tests/unictype/test-digit.h: Likewise.
34944         * tests/unictype/test-numeric.h: Likewise.
34945         * tests/unictype/test-pr_alphabetic.c: Likewise.
34946         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
34947         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
34948         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
34949         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
34950         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
34951         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
34952         * tests/unictype/test-pr_bidi_control.c: Likewise.
34953         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
34954         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
34955         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
34956         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
34957         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
34958         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
34959         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
34960         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
34961         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
34962         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
34963         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
34964         * tests/unictype/test-pr_combining.c: Likewise.
34965         * tests/unictype/test-pr_composite.c: Likewise.
34966         * tests/unictype/test-pr_currency_symbol.c: Likewise.
34967         * tests/unictype/test-pr_dash.c: Likewise.
34968         * tests/unictype/test-pr_decimal_digit.c: Likewise.
34969         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
34970         * tests/unictype/test-pr_deprecated.c: Likewise.
34971         * tests/unictype/test-pr_diacritic.c: Likewise.
34972         * tests/unictype/test-pr_extender.c: Likewise.
34973         * tests/unictype/test-pr_format_control.c: Likewise.
34974         * tests/unictype/test-pr_grapheme_base.c: Likewise.
34975         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
34976         * tests/unictype/test-pr_grapheme_link.c: Likewise.
34977         * tests/unictype/test-pr_hex_digit.c: Likewise.
34978         * tests/unictype/test-pr_hyphen.c: Likewise.
34979         * tests/unictype/test-pr_id_continue.c: Likewise.
34980         * tests/unictype/test-pr_id_start.c: Likewise.
34981         * tests/unictype/test-pr_ideographic.c: Likewise.
34982         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
34983         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
34984         * tests/unictype/test-pr_ignorable_control.c: Likewise.
34985         * tests/unictype/test-pr_iso_control.c: Likewise.
34986         * tests/unictype/test-pr_join_control.c: Likewise.
34987         * tests/unictype/test-pr_left_of_pair.c: Likewise.
34988         * tests/unictype/test-pr_line_separator.c: Likewise.
34989         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
34990         * tests/unictype/test-pr_lowercase.c: Likewise.
34991         * tests/unictype/test-pr_math.c: Likewise.
34992         * tests/unictype/test-pr_non_break.c: Likewise.
34993         * tests/unictype/test-pr_not_a_character.c: Likewise.
34994         * tests/unictype/test-pr_numeric.c: Likewise.
34995         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
34996         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
34997         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
34998         * tests/unictype/test-pr_other_id_continue.c: Likewise.
34999         * tests/unictype/test-pr_other_id_start.c: Likewise.
35000         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35001         * tests/unictype/test-pr_other_math.c: Likewise.
35002         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35003         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35004         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35005         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35006         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35007         * tests/unictype/test-pr_private_use.c: Likewise.
35008         * tests/unictype/test-pr_punctuation.c: Likewise.
35009         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35010         * tests/unictype/test-pr_radical.c: Likewise.
35011         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35012         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35013         * tests/unictype/test-pr_space.c: Likewise.
35014         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35015         * tests/unictype/test-pr_titlecase.c: Likewise.
35016         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35017         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35018         * tests/unictype/test-pr_uppercase.c: Likewise.
35019         * tests/unictype/test-pr_variation_selector.c: Likewise.
35020         * tests/unictype/test-pr_white_space.c: Likewise.
35021         * tests/unictype/test-pr_xid_continue.c: Likewise.
35022         * tests/unictype/test-pr_xid_start.c: Likewise.
35023         * tests/unictype/test-pr_zero_width.c: Likewise.
35024         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35025         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35026
35027 2007-11-12  Bruno Haible  <bruno@clisp.org>
35028
35029         Unicode character classification functions.
35030         * lib/unictype.h: New file.
35031         * modules/unictype/base: New file.
35032         * modules/unictype/category-L: New file.
35033         * modules/unictype/category-Lu: New file.
35034         * modules/unictype/category-Ll: New file.
35035         * modules/unictype/category-Lt: New file.
35036         * modules/unictype/category-Lm: New file.
35037         * modules/unictype/category-Lo: New file.
35038         * modules/unictype/category-M: New file.
35039         * modules/unictype/category-Mn: New file.
35040         * modules/unictype/category-Mc: New file.
35041         * modules/unictype/category-Me: New file.
35042         * modules/unictype/category-N: New file.
35043         * modules/unictype/category-Nd: New file.
35044         * modules/unictype/category-Nl: New file.
35045         * modules/unictype/category-No: New file.
35046         * modules/unictype/category-P: New file.
35047         * modules/unictype/category-Pc: New file.
35048         * modules/unictype/category-Pd: New file.
35049         * modules/unictype/category-Ps: New file.
35050         * modules/unictype/category-Pe: New file.
35051         * modules/unictype/category-Pi: New file.
35052         * modules/unictype/category-Pf: New file.
35053         * modules/unictype/category-Po: New file.
35054         * modules/unictype/category-S: New file.
35055         * modules/unictype/category-Sm: New file.
35056         * modules/unictype/category-Sc: New file.
35057         * modules/unictype/category-Sk: New file.
35058         * modules/unictype/category-So: New file.
35059         * modules/unictype/category-Z: New file.
35060         * modules/unictype/category-Zs: New file.
35061         * modules/unictype/category-Zl: New file.
35062         * modules/unictype/category-Zp: New file.
35063         * modules/unictype/category-C: New file.
35064         * modules/unictype/category-Cc: New file.
35065         * modules/unictype/category-Cf: New file.
35066         * modules/unictype/category-Cs: New file.
35067         * modules/unictype/category-Co: New file.
35068         * modules/unictype/category-Cn: New file.
35069         * modules/unictype/category-or: New file.
35070         * modules/unictype/category-of: New file.
35071         * modules/unictype/category-test: New file.
35072         * modules/unictype/category-test-withtable: New file.
35073         * modules/unictype/category-byname: New file.
35074         * modules/unictype/category-none: New file.
35075         * modules/unictype/category-and: New file.
35076         * modules/unictype/category-and-not: New file.
35077         * modules/unictype/category-name: New file.
35078         * modules/unictype/combining-class: New file.
35079         * modules/unictype/category-all: New file.
35080         * modules/unictype/bidicategory-all: New file.
35081         * modules/unictype/bidicategory-byname: New file.
35082         * modules/unictype/bidicategory-name: New file.
35083         * modules/unictype/bidicategory-of: New file.
35084         * modules/unictype/bidicategory-test: New file.
35085         * modules/unictype/decimal-digit: New file.
35086         * modules/unictype/digit: New file.
35087         * modules/unictype/numeric: New file.
35088         * modules/unictype/mirror: New file.
35089         * modules/unictype/property-white-space: New file.
35090         * modules/unictype/property-alphabetic: New file.
35091         * modules/unictype/property-other-alphabetic: New file.
35092         * modules/unictype/property-not-a-character: New file.
35093         * modules/unictype/property-default-ignorable-code-point: New file.
35094         * modules/unictype/property-other-default-ignorable-code-point: New
35095         file.
35096         * modules/unictype/property-deprecated: New file.
35097         * modules/unictype/property-logical-order-exception: New file.
35098         * modules/unictype/property-variation-selector: New file.
35099         * modules/unictype/property-private-use: New file.
35100         * modules/unictype/property-unassigned-code-value: New file.
35101         * modules/unictype/property-uppercase: New file.
35102         * modules/unictype/property-other-uppercase: New file.
35103         * modules/unictype/property-lowercase: New file.
35104         * modules/unictype/property-other-lowercase: New file.
35105         * modules/unictype/property-titlecase: New file.
35106         * modules/unictype/property-soft-dotted: New file.
35107         * modules/unictype/property-id-start: New file.
35108         * modules/unictype/property-other-id-start: New file.
35109         * modules/unictype/property-id-continue: New file.
35110         * modules/unictype/property-other-id-continue: New file.
35111         * modules/unictype/property-xid-start: New file.
35112         * modules/unictype/property-xid-continue: New file.
35113         * modules/unictype/property-pattern-white-space: New file.
35114         * modules/unictype/property-pattern-syntax: New file.
35115         * modules/unictype/property-join-control: New file.
35116         * modules/unictype/property-grapheme-base: New file.
35117         * modules/unictype/property-grapheme-extend: New file.
35118         * modules/unictype/property-other-grapheme-extend: New file.
35119         * modules/unictype/property-grapheme-link: New file.
35120         * modules/unictype/property-bidi-control: New file.
35121         * modules/unictype/property-bidi-left-to-right: New file.
35122         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35123         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35124         * modules/unictype/property-bidi-european-digit: New file.
35125         * modules/unictype/property-bidi-eur-num-separator: New file.
35126         * modules/unictype/property-bidi-eur-num-terminator: New file.
35127         * modules/unictype/property-bidi-arabic-digit: New file.
35128         * modules/unictype/property-bidi-common-separator: New file.
35129         * modules/unictype/property-bidi-block-separator: New file.
35130         * modules/unictype/property-bidi-segment-separator: New file.
35131         * modules/unictype/property-bidi-whitespace: New file.
35132         * modules/unictype/property-bidi-non-spacing-mark: New file.
35133         * modules/unictype/property-bidi-boundary-neutral: New file.
35134         * modules/unictype/property-bidi-pdf: New file.
35135         * modules/unictype/property-bidi-embedding-or-override: New file.
35136         * modules/unictype/property-bidi-other-neutral: New file.
35137         * modules/unictype/property-hex-digit: New file.
35138         * modules/unictype/property-ascii-hex-digit: New file.
35139         * modules/unictype/property-ideographic: New file.
35140         * modules/unictype/property-unified-ideograph: New file.
35141         * modules/unictype/property-radical: New file.
35142         * modules/unictype/property-ids-binary-operator: New file.
35143         * modules/unictype/property-ids-trinary-operator: New file.
35144         * modules/unictype/property-zero-width: New file.
35145         * modules/unictype/property-space: New file.
35146         * modules/unictype/property-non-break: New file.
35147         * modules/unictype/property-iso-control: New file.
35148         * modules/unictype/property-format-control: New file.
35149         * modules/unictype/property-dash: New file.
35150         * modules/unictype/property-hyphen: New file.
35151         * modules/unictype/property-punctuation: New file.
35152         * modules/unictype/property-line-separator: New file.
35153         * modules/unictype/property-paragraph-separator: New file.
35154         * modules/unictype/property-quotation-mark: New file.
35155         * modules/unictype/property-sentence-terminal: New file.
35156         * modules/unictype/property-terminal-punctuation: New file.
35157         * modules/unictype/property-currency-symbol: New file.
35158         * modules/unictype/property-math: New file.
35159         * modules/unictype/property-other-math: New file.
35160         * modules/unictype/property-paired-punctuation: New file.
35161         * modules/unictype/property-left-of-pair: New file.
35162         * modules/unictype/property-combining: New file.
35163         * modules/unictype/property-composite: New file.
35164         * modules/unictype/property-decimal-digit: New file.
35165         * modules/unictype/property-numeric: New file.
35166         * modules/unictype/property-diacritic: New file.
35167         * modules/unictype/property-extender: New file.
35168         * modules/unictype/property-ignorable-control: New file.
35169         * modules/unictype/property-test: New file.
35170         * modules/unictype/property-byname: New file.
35171         * modules/unictype/property-all: New file.
35172         * modules/unictype/scripts: New file.
35173         * modules/unictype/scripts-all: New file.
35174         * modules/unictype/block-of: New file.
35175         * modules/unictype/block-test: New file.
35176         * modules/unictype/block-list: New file.
35177         * modules/unictype/block-all: New file.
35178         * modules/unictype/syntax-c-whitespace: New file.
35179         * modules/unictype/syntax-java-whitespace: New file.
35180         * modules/unictype/syntax-c-ident: New file.
35181         * modules/unictype/syntax-java-ident: New file.
35182         * modules/unictype/ctype-alnum: New file.
35183         * modules/unictype/ctype-alpha: New file.
35184         * modules/unictype/ctype-cntrl: New file.
35185         * modules/unictype/ctype-digit: New file.
35186         * modules/unictype/ctype-graph: New file.
35187         * modules/unictype/ctype-lower: New file.
35188         * modules/unictype/ctype-print: New file.
35189         * modules/unictype/ctype-punct: New file.
35190         * modules/unictype/ctype-space: New file.
35191         * modules/unictype/ctype-upper: New file.
35192         * modules/unictype/ctype-xdigit: New file.
35193         * modules/unictype/ctype-blank: New file.
35194         * lib/unictype/bidi_byname.c: New file.
35195         * lib/unictype/bidi_name.c: New file.
35196         * lib/unictype/bidi_of.c: New file.
35197         * lib/unictype/bidi_test.c: New file.
35198         * lib/unictype/bitmap.h: New file.
35199         * lib/unictype/block_test.c: New file.
35200         * lib/unictype/blocks.c: New file.
35201         * lib/unictype/categ_C.c: New file.
35202         * lib/unictype/categ_Cc.c: New file.
35203         * lib/unictype/categ_Cf.c: New file.
35204         * lib/unictype/categ_Cn.c: New file.
35205         * lib/unictype/categ_Co.c: New file.
35206         * lib/unictype/categ_Cs.c: New file.
35207         * lib/unictype/categ_L.c: New file.
35208         * lib/unictype/categ_Ll.c: New file.
35209         * lib/unictype/categ_Lm.c: New file.
35210         * lib/unictype/categ_Lo.c: New file.
35211         * lib/unictype/categ_Lt.c: New file.
35212         * lib/unictype/categ_Lu.c: New file.
35213         * lib/unictype/categ_M.c: New file.
35214         * lib/unictype/categ_Mc.c: New file.
35215         * lib/unictype/categ_Me.c: New file.
35216         * lib/unictype/categ_Mn.c: New file.
35217         * lib/unictype/categ_N.c: New file.
35218         * lib/unictype/categ_Nd.c: New file.
35219         * lib/unictype/categ_Nl.c: New file.
35220         * lib/unictype/categ_No.c: New file.
35221         * lib/unictype/categ_P.c: New file.
35222         * lib/unictype/categ_Pc.c: New file.
35223         * lib/unictype/categ_Pd.c: New file.
35224         * lib/unictype/categ_Pe.c: New file.
35225         * lib/unictype/categ_Pf.c: New file.
35226         * lib/unictype/categ_Pi.c: New file.
35227         * lib/unictype/categ_Po.c: New file.
35228         * lib/unictype/categ_Ps.c: New file.
35229         * lib/unictype/categ_S.c: New file.
35230         * lib/unictype/categ_Sc.c: New file.
35231         * lib/unictype/categ_Sk.c: New file.
35232         * lib/unictype/categ_Sm.c: New file.
35233         * lib/unictype/categ_So.c: New file.
35234         * lib/unictype/categ_Z.c: New file.
35235         * lib/unictype/categ_Zl.c: New file.
35236         * lib/unictype/categ_Zp.c: New file.
35237         * lib/unictype/categ_Zs.c: New file.
35238         * lib/unictype/categ_and.c: New file.
35239         * lib/unictype/categ_and_not.c: New file.
35240         * lib/unictype/categ_byname.c: New file.
35241         * lib/unictype/categ_name.c: New file.
35242         * lib/unictype/categ_none.c: New file.
35243         * lib/unictype/categ_of.c: New file.
35244         * lib/unictype/categ_or.c: New file.
35245         * lib/unictype/categ_test.c: New file.
35246         * lib/unictype/combining.c: New file.
35247         * lib/unictype/ctype_alnum.c: New file.
35248         * lib/unictype/ctype_alpha.c: New file.
35249         * lib/unictype/ctype_blank.c: New file.
35250         * lib/unictype/ctype_cntrl.c: New file.
35251         * lib/unictype/ctype_digit.c: New file.
35252         * lib/unictype/ctype_graph.c: New file.
35253         * lib/unictype/ctype_lower.c: New file.
35254         * lib/unictype/ctype_print.c: New file.
35255         * lib/unictype/ctype_punct.c: New file.
35256         * lib/unictype/ctype_space.c: New file.
35257         * lib/unictype/ctype_upper.c: New file.
35258         * lib/unictype/ctype_xdigit.c: New file.
35259         * lib/unictype/decdigit.c: New file.
35260         * lib/unictype/digit.c: New file.
35261         * lib/unictype/identsyntaxmap.h: New file.
35262         * lib/unictype/mirror.c: New file.
35263         * lib/unictype/numeric.c: New file.
35264         * lib/unictype/pr_alphabetic.c: New file.
35265         * lib/unictype/pr_ascii_hex_digit.c: New file.
35266         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35267         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35268         * lib/unictype/pr_bidi_block_separator.c: New file.
35269         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35270         * lib/unictype/pr_bidi_common_separator.c: New file.
35271         * lib/unictype/pr_bidi_control.c: New file.
35272         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35273         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35274         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35275         * lib/unictype/pr_bidi_european_digit.c: New file.
35276         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35277         * lib/unictype/pr_bidi_left_to_right.c: New file.
35278         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35279         * lib/unictype/pr_bidi_other_neutral.c: New file.
35280         * lib/unictype/pr_bidi_pdf.c: New file.
35281         * lib/unictype/pr_bidi_segment_separator.c: New file.
35282         * lib/unictype/pr_bidi_whitespace.c: New file.
35283         * lib/unictype/pr_byname.c: New file.
35284         * lib/unictype/pr_byname.gperf: New file.
35285         * lib/unictype/pr_combining.c: New file.
35286         * lib/unictype/pr_composite.c: New file.
35287         * lib/unictype/pr_currency_symbol.c: New file.
35288         * lib/unictype/pr_dash.c: New file.
35289         * lib/unictype/pr_decimal_digit.c: New file.
35290         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35291         * lib/unictype/pr_deprecated.c: New file.
35292         * lib/unictype/pr_diacritic.c: New file.
35293         * lib/unictype/pr_extender.c: New file.
35294         * lib/unictype/pr_format_control.c: New file.
35295         * lib/unictype/pr_grapheme_base.c: New file.
35296         * lib/unictype/pr_grapheme_extend.c: New file.
35297         * lib/unictype/pr_grapheme_link.c: New file.
35298         * lib/unictype/pr_hex_digit.c: New file.
35299         * lib/unictype/pr_hyphen.c: New file.
35300         * lib/unictype/pr_id_continue.c: New file.
35301         * lib/unictype/pr_id_start.c: New file.
35302         * lib/unictype/pr_ideographic.c: New file.
35303         * lib/unictype/pr_ids_binary_operator.c: New file.
35304         * lib/unictype/pr_ids_trinary_operator.c: New file.
35305         * lib/unictype/pr_ignorable_control.c: New file.
35306         * lib/unictype/pr_iso_control.c: New file.
35307         * lib/unictype/pr_join_control.c: New file.
35308         * lib/unictype/pr_left_of_pair.c: New file.
35309         * lib/unictype/pr_line_separator.c: New file.
35310         * lib/unictype/pr_logical_order_exception.c: New file.
35311         * lib/unictype/pr_lowercase.c: New file.
35312         * lib/unictype/pr_math.c: New file.
35313         * lib/unictype/pr_non_break.c: New file.
35314         * lib/unictype/pr_not_a_character.c: New file.
35315         * lib/unictype/pr_numeric.c: New file.
35316         * lib/unictype/pr_other_alphabetic.c: New file.
35317         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35318         * lib/unictype/pr_other_grapheme_extend.c: New file.
35319         * lib/unictype/pr_other_id_continue.c: New file.
35320         * lib/unictype/pr_other_id_start.c: New file.
35321         * lib/unictype/pr_other_lowercase.c: New file.
35322         * lib/unictype/pr_other_math.c: New file.
35323         * lib/unictype/pr_other_uppercase.c: New file.
35324         * lib/unictype/pr_paired_punctuation.c: New file.
35325         * lib/unictype/pr_paragraph_separator.c: New file.
35326         * lib/unictype/pr_pattern_syntax.c: New file.
35327         * lib/unictype/pr_pattern_white_space.c: New file.
35328         * lib/unictype/pr_private_use.c: New file.
35329         * lib/unictype/pr_punctuation.c: New file.
35330         * lib/unictype/pr_quotation_mark.c: New file.
35331         * lib/unictype/pr_radical.c: New file.
35332         * lib/unictype/pr_sentence_terminal.c: New file.
35333         * lib/unictype/pr_soft_dotted.c: New file.
35334         * lib/unictype/pr_space.c: New file.
35335         * lib/unictype/pr_terminal_punctuation.c: New file.
35336         * lib/unictype/pr_test.c: New file.
35337         * lib/unictype/pr_titlecase.c: New file.
35338         * lib/unictype/pr_unassigned_code_value.c: New file.
35339         * lib/unictype/pr_unified_ideograph.c: New file.
35340         * lib/unictype/pr_uppercase.c: New file.
35341         * lib/unictype/pr_variation_selector.c: New file.
35342         * lib/unictype/pr_white_space.c: New file.
35343         * lib/unictype/pr_xid_continue.c: New file.
35344         * lib/unictype/pr_xid_start.c: New file.
35345         * lib/unictype/pr_zero_width.c: New file.
35346         * lib/unictype/scripts.c: New file.
35347         * lib/unictype/sy_c_ident.c: New file.
35348         * lib/unictype/sy_c_whitespace.c: New file.
35349         * lib/unictype/sy_java_ident.c: New file.
35350         * lib/unictype/sy_java_whitespace.c: New file.
35351
35352         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35353         Unicode 5.0.0.
35354         * lib/unictype/blocks.h: Likewise.
35355         * lib/unictype/categ_C.h: Likewise.
35356         * lib/unictype/categ_Cc.h: Likewise.
35357         * lib/unictype/categ_Cf.h: Likewise.
35358         * lib/unictype/categ_Cn.h: Likewise.
35359         * lib/unictype/categ_Co.h: Likewise.
35360         * lib/unictype/categ_Cs.h: Likewise.
35361         * lib/unictype/categ_L.h: Likewise.
35362         * lib/unictype/categ_Ll.h: Likewise.
35363         * lib/unictype/categ_Lm.h: Likewise.
35364         * lib/unictype/categ_Lo.h: Likewise.
35365         * lib/unictype/categ_Lt.h: Likewise.
35366         * lib/unictype/categ_Lu.h: Likewise.
35367         * lib/unictype/categ_M.h: Likewise.
35368         * lib/unictype/categ_Mc.h: Likewise.
35369         * lib/unictype/categ_Me.h: Likewise.
35370         * lib/unictype/categ_Mn.h: Likewise.
35371         * lib/unictype/categ_N.h: Likewise.
35372         * lib/unictype/categ_Nd.h: Likewise.
35373         * lib/unictype/categ_Nl.h: Likewise.
35374         * lib/unictype/categ_No.h: Likewise.
35375         * lib/unictype/categ_P.h: Likewise.
35376         * lib/unictype/categ_Pc.h: Likewise.
35377         * lib/unictype/categ_Pd.h: Likewise.
35378         * lib/unictype/categ_Pe.h: Likewise.
35379         * lib/unictype/categ_Pf.h: Likewise.
35380         * lib/unictype/categ_Pi.h: Likewise.
35381         * lib/unictype/categ_Po.h: Likewise.
35382         * lib/unictype/categ_Ps.h: Likewise.
35383         * lib/unictype/categ_S.h: Likewise.
35384         * lib/unictype/categ_Sc.h: Likewise.
35385         * lib/unictype/categ_Sk.h: Likewise.
35386         * lib/unictype/categ_Sm.h: Likewise.
35387         * lib/unictype/categ_So.h: Likewise.
35388         * lib/unictype/categ_Z.h: Likewise.
35389         * lib/unictype/categ_Zl.h: Likewise.
35390         * lib/unictype/categ_Zp.h: Likewise.
35391         * lib/unictype/categ_Zs.h: Likewise.
35392         * lib/unictype/categ_of.h: Likewise.
35393         * lib/unictype/combining.h: Likewise.
35394         * lib/unictype/ctype_alnum.h: Likewise.
35395         * lib/unictype/ctype_alpha.h: Likewise.
35396         * lib/unictype/ctype_blank.h: Likewise.
35397         * lib/unictype/ctype_cntrl.h: Likewise.
35398         * lib/unictype/ctype_digit.h: Likewise.
35399         * lib/unictype/ctype_graph.h: Likewise.
35400         * lib/unictype/ctype_lower.h: Likewise.
35401         * lib/unictype/ctype_print.h: Likewise.
35402         * lib/unictype/ctype_punct.h: Likewise.
35403         * lib/unictype/ctype_space.h: Likewise.
35404         * lib/unictype/ctype_upper.h: Likewise.
35405         * lib/unictype/ctype_xdigit.h: Likewise.
35406         * lib/unictype/decdigit.h: Likewise.
35407         * lib/unictype/digit.h: Likewise.
35408         * lib/unictype/mirror.h: Likewise.
35409         * lib/unictype/numeric.h: Likewise.
35410         * lib/unictype/pr_alphabetic.h: Likewise.
35411         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35412         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35413         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35414         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35415         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35416         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35417         * lib/unictype/pr_bidi_control.h: Likewise.
35418         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35419         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35420         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35421         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35422         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35423         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35424         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35425         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35426         * lib/unictype/pr_bidi_pdf.h: Likewise.
35427         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35428         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35429         * lib/unictype/pr_combining.h: Likewise.
35430         * lib/unictype/pr_composite.h: Likewise.
35431         * lib/unictype/pr_currency_symbol.h: Likewise.
35432         * lib/unictype/pr_dash.h: Likewise.
35433         * lib/unictype/pr_decimal_digit.h: Likewise.
35434         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35435         * lib/unictype/pr_deprecated.h: Likewise.
35436         * lib/unictype/pr_diacritic.h: Likewise.
35437         * lib/unictype/pr_extender.h: Likewise.
35438         * lib/unictype/pr_format_control.h: Likewise.
35439         * lib/unictype/pr_grapheme_base.h: Likewise.
35440         * lib/unictype/pr_grapheme_extend.h: Likewise.
35441         * lib/unictype/pr_grapheme_link.h: Likewise.
35442         * lib/unictype/pr_hex_digit.h: Likewise.
35443         * lib/unictype/pr_hyphen.h: Likewise.
35444         * lib/unictype/pr_id_continue.h: Likewise.
35445         * lib/unictype/pr_id_start.h: Likewise.
35446         * lib/unictype/pr_ideographic.h: Likewise.
35447         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35448         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35449         * lib/unictype/pr_ignorable_control.h: Likewise.
35450         * lib/unictype/pr_iso_control.h: Likewise.
35451         * lib/unictype/pr_join_control.h: Likewise.
35452         * lib/unictype/pr_left_of_pair.h: Likewise.
35453         * lib/unictype/pr_line_separator.h: Likewise.
35454         * lib/unictype/pr_logical_order_exception.h: Likewise.
35455         * lib/unictype/pr_lowercase.h: Likewise.
35456         * lib/unictype/pr_math.h: Likewise.
35457         * lib/unictype/pr_non_break.h: Likewise.
35458         * lib/unictype/pr_not_a_character.h: Likewise.
35459         * lib/unictype/pr_numeric.h: Likewise.
35460         * lib/unictype/pr_other_alphabetic.h: Likewise.
35461         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35462         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35463         * lib/unictype/pr_other_id_continue.h: Likewise.
35464         * lib/unictype/pr_other_id_start.h: Likewise.
35465         * lib/unictype/pr_other_lowercase.h: Likewise.
35466         * lib/unictype/pr_other_math.h: Likewise.
35467         * lib/unictype/pr_other_uppercase.h: Likewise.
35468         * lib/unictype/pr_paired_punctuation.h: Likewise.
35469         * lib/unictype/pr_paragraph_separator.h: Likewise.
35470         * lib/unictype/pr_pattern_syntax.h: Likewise.
35471         * lib/unictype/pr_pattern_white_space.h: Likewise.
35472         * lib/unictype/pr_private_use.h: Likewise.
35473         * lib/unictype/pr_punctuation.h: Likewise.
35474         * lib/unictype/pr_quotation_mark.h: Likewise.
35475         * lib/unictype/pr_radical.h: Likewise.
35476         * lib/unictype/pr_sentence_terminal.h: Likewise.
35477         * lib/unictype/pr_soft_dotted.h: Likewise.
35478         * lib/unictype/pr_space.h: Likewise.
35479         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35480         * lib/unictype/pr_titlecase.h: Likewise.
35481         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35482         * lib/unictype/pr_unified_ideograph.h: Likewise.
35483         * lib/unictype/pr_uppercase.h: Likewise.
35484         * lib/unictype/pr_variation_selector.h: Likewise.
35485         * lib/unictype/pr_white_space.h: Likewise.
35486         * lib/unictype/pr_xid_continue.h: Likewise.
35487         * lib/unictype/pr_xid_start.h: Likewise.
35488         * lib/unictype/pr_zero_width.h: Likewise.
35489         * lib/unictype/scripts.h: Likewise.
35490         * lib/unictype/scripts_byname.gperf: Likewise.
35491         * lib/unictype/sy_c_ident.h: Likewise.
35492         * lib/unictype/sy_c_whitespace.h: Likewise.
35493         * lib/unictype/sy_java_ident.h: Likewise.
35494         * lib/unictype/sy_java_whitespace.h: Likewise.
35495
35496         * lib/unictype/Makefile: New file.
35497         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
35498         glibc.
35499         * lib/unictype/3level.h: New file, copied from glibc.
35500         * lib/unictype/3levelbit.h: New file.
35501
35502 2007-11-11  Bruno Haible  <bruno@clisp.org>
35503
35504         * modules/gperf: New file.
35505         * modules/iconv_open (Depends-on): Add it.
35506         (Makefile.am): Remove the GPERF definition.
35507
35508 2007-11-11  Bruno Haible  <bruno@clisp.org>
35509
35510         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
35511         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
35512
35513 2007-11-11  Bruno Haible  <bruno@clisp.org>
35514
35515         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
35516         (usage): Remove function.
35517
35518 2007-11-11  Bruno Haible  <bruno@clisp.org>
35519
35520         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
35521         gl_FUNC_CEILF_LIBS.
35522         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
35523         gl_FUNC_CEIL_LIBS.
35524         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
35525         gl_FUNC_CEILL_LIBS.
35526         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
35527         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
35528         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
35529
35530 2007-11-11  Bruno Haible  <bruno@clisp.org>
35531
35532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
35533         roundf were declared but do not exist on functions.
35534         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
35535         roundl were declared but do not exist on functions.
35536         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
35537         HAVE_FLOORL_AND_CEILL, respectively.
35538         Needed for Sun C on Solaris 10.
35539
35540 2007-11-11  Bruno Haible  <bruno@clisp.org>
35541
35542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
35543         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
35544         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
35545         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
35546         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
35547         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
35548         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
35549         HAVE_DECL_ROUNDF.
35550         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
35551         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
35552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
35553         of HAVE_DECL_ROUND*.
35554         * modules/math (Makefile.am): Update.
35555
35556 2007-11-10  Bruno Haible  <bruno@clisp.org>
35557
35558         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
35559         ptrdiff_t as m4/intl.m4.
35560
35561 2007-11-10  Jim Meyering  <meyering@redhat.com>
35562
35563         Avoid link failure for the argmatch test.
35564         * tests/test-argmatch.c (usage): Define function to avoid a link
35565         failure: argmatch_die requires a usage function.
35566
35567 2007-11-09  Bruno Haible  <bruno@clisp.org>
35568
35569         * doc/functions/snprintf.texi: Mention BeOS deficiency.
35570         * doc/functions/vsnprintf.texi: Likewise.
35571         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
35572         with a size argument < 2.
35573
35574 2007-11-09  Bruno Haible  <bruno@clisp.org>
35575
35576         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
35577         buffer. Fixes an inefficiency introduced on 2007-11-03.
35578
35579 2007-11-09  Bruno Haible  <bruno@clisp.org>
35580
35581         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
35582         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
35583
35584 2007-11-08  Jim Meyering  <meyering@redhat.com>
35585
35586         Change cache variable name prefix "jm_" to "gl_" everywhere.
35587         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
35588         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
35589         * m4/uptime.m4: s/gl_/jm_/
35590
35591 2007-11-07  Bruno Haible  <bruno@clisp.org>
35592
35593         Update to GNU gettext 0.17.
35594         * m4/intl.m4: Update to GNU gettext 0.17.
35595         * m4/po.m4: Likewise.
35596         * modules/gettext (Files): Remove m4/ulonglong.m4.
35597         (configure.ac): Require gettext infrastructure from version 0.17.
35598
35599 2007-11-06  Bruno Haible  <bruno@clisp.org>
35600
35601         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
35602         symbolic values are not defined in a public header.
35603         * lib/freadable.c (freadable) [QNX]: Likewise.
35604         * lib/freadahead.c (freadahead) [QNX]: Likewise.
35605         * lib/freading.c (freading) [QNX]: Likewise.
35606         * lib/fseterr.c (fseterr) [QNX]: Likewise.
35607         * lib/fwritable.c (fwritable) [QNX]: Likewise.
35608         * lib/fwriting.c (fwriting) [QNX]: Likewise.
35609         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
35610         Reported by Alain Magloire.
35611
35612         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
35613
35614 2007-11-05  Bruno Haible  <bruno@clisp.org>
35615
35616         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
35617         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
35618         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
35619         Reported by Eric Blake.
35620
35621 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35622             Bruno Haible  <bruno@clisp.org>
35623
35624         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
35625         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
35626         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
35627         (malloc): Undefine also before including <stdlib.h>.
35628         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
35629         Needed on OSF/1 4.0.
35630
35631 2007-11-05  Jim Meyering  <meyering@redhat.com>
35632
35633         git-version-gen: sync from coreutils.
35634         * build-aux/git-version-gen: Add comments.
35635         Change the first '-' to '.' in the snapshot version string,
35636         e.g., 6.9-377-08144 -> 6.9.377-08144
35637         Remove first parameter.
35638         Don't declare a version "-dirty" merely because a time
35639         stamp has changed.
35640
35641 2007-11-04  Bruno Haible  <bruno@clisp.org>
35642
35643         * lib/lock.h: Protect all macro definitions containing an 'if'
35644         statement through a "do { ... } while (0)".
35645         * lib/tls.h: Likewise.
35646
35647 2007-11-04  Bruno Haible  <bruno@clisp.org>
35648
35649         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
35650
35651 2007-11-04  Bruno Haible  <bruno@clisp.org>
35652
35653         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
35654         * modules/fprintf-posix (Depends-on): Add nocrash.
35655         * modules/snprintf-posix (Depends-on): Likewise.
35656         * modules/sprintf-posix (Depends-on): Likewise.
35657         * modules/vasnprintf-posix (Depends-on): Likewise.
35658         * modules/vasprintf-posix (Depends-on): Likewise.
35659         * modules/vfprintf-posix (Depends-on): Likewise.
35660         * modules/vsnprintf-posix (Depends-on): Likewise.
35661         * modules/vsprintf-posix (Depends-on): Likewise.
35662         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35663         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35664         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35665         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35666         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35667         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35668         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35669
35670 2007-11-04  Bruno Haible  <bruno@clisp.org>
35671
35672         * modules/nocrash: New file.
35673         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
35674         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
35675
35676 2007-11-04  Bruno Haible  <bruno@clisp.org>
35677
35678         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
35679         precision handling.
35680         * tests/test-vasprintf-posix.c (test_function): Likewise.
35681         * tests/test-snprintf-posix.h (test_function): Likewise.
35682         * tests/test-sprintf-posix.h (test_function): Likewise.
35683
35684         Fix *printf behaviour for large precisions on mingw and BeOS.
35685         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
35686         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
35687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
35688         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35690         gl_PRINTF_PRECISION and test its result. Invoke
35691         gl_PREREQ_VASNPRINTF_PRECISION.
35692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35693         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35699         * doc/functions/fprintf.texi: Update.
35700         * doc/functions/printf.texi: Update.
35701         * doc/functions/snprintf.texi: Update.
35702         * doc/functions/sprintf.texi: Update.
35703         * doc/functions/vfprintf.texi: Update.
35704         * doc/functions/vprintf.texi: Update.
35705         * doc/functions/vsnprintf.texi: Update.
35706         * doc/functions/vsprintf.texi: Update.
35707
35708 2007-11-04  Bruno Haible  <bruno@clisp.org>
35709
35710         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
35711
35712 2007-11-04  Bruno Haible  <bruno@clisp.org>
35713
35714         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
35715         Reported by Sylvain Beucler <beuc@gnu.org>.
35716
35717 2007-11-03  Bruno Haible  <bruno@clisp.org>
35718
35719         * tests/test-fprintf-posix2.sh: New file.
35720         * tests/test-fprintf-posix2.c: New file.
35721         * modules/fprintf-posix-tests (Files): Add them.
35722         (TESTS): Add test-fprintf-posix2.sh.
35723         (configure.ac): Check for getrlimit and setrlimit.
35724         (check_PROGRAMS): Add test-fprintf-posix2.
35725
35726         * tests/test-printf-posix2.sh: New file.
35727         * tests/test-printf-posix2.c: New file.
35728         * modules/printf-posix-tests (Files): Add them.
35729         (TESTS): Add test-printf-posix2.sh.
35730         (configure.ac): Check for getrlimit and setrlimit.
35731         (check_PROGRAMS): Add test-printf-posix2.
35732
35733         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
35734         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
35735         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
35736         (decode_double): New function, copied from decode_long_double.
35737         (scale10_round_decimal_decoded): New function, extracted from
35738         scale10_round_decimal_long_double.
35739         (scale10_round_decimal_long_double): Use it.
35740         (scale10_round_decimal_double): New function.
35741         (floorlog10): New function.
35742         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
35743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
35744         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35745         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35746         gl_PRINTF_ENOMEM and test its result. Invoke
35747         gl_PREREQ_VASNPRINTF_ENOMEM.
35748         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35749         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35750         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35751         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35752         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35753         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35754         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35755         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
35756         * modules/snprintf-posix (Depends-on): Likewise.
35757         * modules/sprintf-posix (Depends-on): Likewise.
35758         * modules/vasnprintf-posix (Depends-on): Likewise.
35759         * modules/vasprintf-posix (Depends-on): Likewise.
35760         * modules/vfprintf-posix (Depends-on): Likewise.
35761         * modules/vsnprintf-posix (Depends-on): Likewise.
35762         * modules/vsprintf-posix (Depends-on): Likewise.
35763         * doc/functions/fprintf.texi: Update.
35764         * doc/functions/printf.texi: Update.
35765         * doc/functions/snprintf.texi: Update.
35766         * doc/functions/sprintf.texi: Update.
35767         * doc/functions/vfprintf.texi: Update.
35768         * doc/functions/vprintf.texi: Update.
35769         * doc/functions/vsnprintf.texi: Update.
35770         * doc/functions/vsprintf.texi: Update.
35771
35772 2007-11-03  Bruno Haible  <bruno@clisp.org>
35773
35774         * modules/frexp-nolibm-tests: New file.
35775
35776         * modules/frexp-nolibm: New file.
35777         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
35778
35779 2007-11-03  Bruno Haible  <bruno@clisp.org>
35780
35781         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
35782         value is C99 compliant.
35783         Needed for OSF/1 5.1.
35784
35785 2007-11-03  Bruno Haible  <bruno@clisp.org>
35786
35787         Fix out-of-memory handling of vasnprintf.
35788         * lib/printf-parse.c: Include <errno.h>.
35789         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
35790         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
35791         is already set.
35792
35793 2007-11-02  Eric Blake  <ebb9@byu.net>
35794
35795         Fix tests on cygwin.
35796         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
35797
35798 2007-11-01  Bruno Haible  <bruno@clisp.org>
35799
35800         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
35801         warning.
35802         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
35803         needed for POSIX compatibility.
35804
35805 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
35806
35807         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
35808         for compatibility with GNU.
35809
35810 2007-11-01  Bruno Haible  <bruno@clisp.org>
35811
35812         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
35813         (putenv): Renamed from rpl_putenv. Change argument type from
35814         'const char *' to 'char *'.
35815         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
35816         of defining putenv in config.h, just set REPLACE_PUTENV.
35817         * modules/putenv (Depends-on): Add stdlib.
35818         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35819         (Include): Use <stdlib.h>.
35820         * lib/stdlib.in.h (putenv): New declaration.
35821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
35822         REPLACE_PUTENV.
35823         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
35824         REPLACE_PUTENV.
35825         Needed for MacOS X 10.5.0.
35826         Reported by Peter O'Gorman <peter@pogma.com>.
35827
35828 2007-11-01  Jim Meyering  <meyering@redhat.com>
35829
35830         Treat an empty date string exactly like "0".
35831         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
35832         if the remaining date string (to be parsed) is empty, use "0".
35833         Reported by Mischa Molhoek and discussed in this thread:
35834         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
35835
35836 2007-10-31  Bruno Haible  <bruno@clisp.org>
35837
35838         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
35839         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
35840         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
35841         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
35842         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
35843         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
35844
35845 2007-10-31  Bruno Haible  <bruno@clisp.org>
35846
35847         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
35848         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
35849         (AC_TYPE_LONG_LONG_INT): Use it.
35850         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
35851         it as well.
35852         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
35853         to m4/longlong.m4.
35854         * modules/stdint (Files): Remove m4/ulonglong.m4.
35855         * modules/strtoull (Files): Use m4/longlong.m4 instead of
35856         m4/ulonglong.m4.
35857         * modules/strtoumax (Files): Likewise.
35858
35859 2007-10-30  Bruno Haible  <bruno@clisp.org>
35860
35861         * modules/xvasprintf-posix: New file.
35862         Suggested by Eric Blake.
35863
35864 2007-10-30  Bruno Haible  <bruno@clisp.org>
35865
35866         * modules/xprintf-posix-tests: New file.
35867         * tests/test-xprintf-posix.sh: New file.
35868         * tests/test-xprintf-posix.c: New file.
35869         * tests/test-xfprintf-posix.c: New file.
35870
35871         * modules/xprintf-posix: New file.
35872
35873 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35874
35875         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
35876         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
35877         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
35878
35879 2007-10-29  Bruno Haible  <bruno@clisp.org>
35880
35881         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
35882         contain the special marker '_cv_'.
35883         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35884         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35885         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35886         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
35887         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35888         Reported by Ralf Wildenhues.
35889
35890 2007-10-29  Bruno Haible  <bruno@clisp.org>
35891
35892         * gnulib-tool (func_import): When --lgpl is not specified, set
35893         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
35894         GPLv3.
35895         Reported by Simon Josefsson.
35896
35897 2007-10-28  Bruno Haible  <bruno@clisp.org>
35898
35899         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
35900         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
35901         HAVE_DECL_ISFINITE.
35902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
35903         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
35904         HAVE_DECL_ISFINITE.
35905
35906 2007-10-28  Bruno Haible  <bruno@clisp.org>
35907
35908         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
35909         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
35910
35911 2007-10-28  Bruno Haible  <bruno@clisp.org>
35912
35913         Fix link errors with Sun C 5.0 on Solaris 10.
35914         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
35915         function is declared but not present in the compiler's libm.
35916         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35917         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35918         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
35919         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
35920         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
35921         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
35922         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
35923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
35924         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
35925         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
35926         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
35927         HAVE_DECL_FLOORL.
35928
35929 2007-10-28  Bruno Haible  <bruno@clisp.org>
35930
35931         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
35932         gl_FUNC_FLOORL. Cache the result.
35933         (gl_FUNC_FLOORL): Use it.
35934         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
35935         gl_FUNC_CEILL. Cache the result.
35936         (gl_FUNC_CEILL): Use it.
35937
35938         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
35939         gl_FUNC_FLOOR. Cache the result.
35940         (gl_FUNC_FLOOR): Use it.
35941         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
35942         gl_FUNC_CEIL. Cache the result.
35943         (gl_FUNC_CEIL): Use it.
35944
35945         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
35946         gl_FUNC_FLOORF. Cache the result.
35947         (gl_FUNC_FLOORF): Use it.
35948         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
35949         gl_FUNC_CEILF. Cache the result.
35950         (gl_FUNC_CEILF): Use it.
35951
35952 2007-10-28  Bruno Haible  <bruno@clisp.org>
35953
35954         * gnulib-tool: Allow specifying the LGPL version number through
35955         --lgpl=2 or --lgpl=3.
35956         (func_usage): Document --lgpl with argument.
35957         Handle --lgpl=... arguments.
35958         (func_import): Recognize also gl_LGPL calls with an argument. When
35959         --lgpl=2 is used and the module's license is just LGPL, report an
35960         error. Set sed_transform_lib_file according to the lgpl variable. In
35961         the generated files, use --lgpl or gl_LGPL invocations with argument,
35962         if necessary.
35963         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
35964         an LGPv2+ license.
35965         * doc/gnulib-tool.texi (Modified imports): Update explanation of
35966         gl_LGPL macro.
35967
35968 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35969             Bruno Haible  <bruno@clisp.org>
35970
35971         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
35972         (u16_uctomb_aux): Likewise.
35973         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
35974         !HAVE_INLINE.
35975         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
35976
35977 2007-10-28  Bruno Haible  <bruno@clisp.org>
35978
35979         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
35980         Invoke AM_GETTEXT_OPTION if it exists.
35981         * modules/vasprintf: Likewise.
35982         * modules/verror: Likewise.
35983         * modules/xprintf: Likewise.
35984         * modules/xvasprintf: Likewise.
35985
35986 2007-10-27  Ben Pfaff  <blp@gnu.org>
35987
35988         * lib/math.in.h: Define isfinite macro and prototypes for
35989         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
35990         implementations.
35991         * m4/math_h.m4: New substitutions for isfinite module.
35992         * lib/isfinite.c: New file.
35993         * m4/isfinite.m4: New file.
35994         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
35995         * modules/isfinite: New file.
35996         * modules/isfinite-tests: New file.
35997         * tests/tests-isfinite.c: New file.
35998         * doc/functions/isfinite.texi: Mention isfinite module.
35999         * MODULES.html.sh: Mention new module.
36000
36001 2007-10-27  Ben Pfaff  <blp@gnu.org>
36002
36003         Ralf Wildenhues reported that Tru64 4.0D declares the round
36004         functions but does not have definitions.
36005         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36006         cannot be found in any library, set the output variable to
36007         "missing" instead of "".
36008         * m4/round.m4: Also use our substitute if we cannot find round in
36009         any library, even if it is declared.
36010         * m4/roundf.m4: Likewise for roundf.
36011         * m4/roundl.m4: Likewise for roundl.
36012         * lib/math.in.h: Undefine roundf, round, roundl before defining
36013         their replacements, to allow for hypothetical systems where these
36014         may be defined as macros but not available in libraries.
36015
36016 2007-10-27  Bruno Haible  <bruno@clisp.org>
36017
36018         * doc/gnulib.texi: Invoke @firstparagraphindent.
36019         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36020         changes in gnulib.
36021         (Source changes): New section.
36022
36023 2007-10-26  Bruno Haible  <bruno@clisp.org>
36024
36025         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36026         borrowed from autoconf.
36027
36028 2007-10-26  Bruno Haible  <bruno@clisp.org>
36029
36030         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36031         strerror returned the empty string. Needed on HP-UX 11.00.
36032
36033 2007-10-24  Micah Cowan  <micah@cowan.name>
36034
36035         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36036         * build-aux/bootstrap: Remove support for now-unnecessary option,
36037         --cvs-user, and envvars CVS_USER, CVS_RSH.
36038
36039 2007-10-24  Jim Meyering  <meyering@redhat.com>
36040
36041         Avoid diagnostics from sha1sum when there is no cached checksum.
36042         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36043         if the po.s1 file hasn't been created yet.
36044
36045         * build-aux/bootstrap: Sync from coreutils:
36046         2007-10-24  Jim Meyering  <meyering@redhat.com>
36047         Get gnulib from the git repository, not from an obsolete cvs one.
36048         * build-aux/bootstrap: Suggestion from Micah Cowan.
36049         2007-10-04  Jim Meyering  <jim@meyering.net>
36050         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36051         (update_po_files): Work also when there are no .po files in po/.
36052
36053 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36054
36055         * README: Append ".git" to git and cg examples.
36056         Problem reported by Benoit Sigoure.
36057
36058 2007-10-23  Micah Cowan  <micah@cowan.name>
36059
36060         * users.txt: Add wget.
36061
36062 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36063
36064         Fix linking of some unistdio tests on FreeBSD.
36065         * modules/unistdio/u16-vsnprintf-tests
36066         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36067         * modules/unistdio/u16-vsprintf-tests
36068         (test_u16_vsnprintf1_LDADD): Likewise.
36069         * modules/unistdio/u32-vsnprintf-tests
36070         (test_u32_vsnprintf1_LDADD): Likewise.
36071         * modules/unistdio/u32-vsprintf-tests
36072         (test_u32_vsprintf1_LDADD): Likewise.
36073         * modules/unistdio/u8-vsnprintf-tests
36074         (test_u8_vsnprintf1_LDADD): Likewise.
36075         * modules/unistdio/u8-vsprintf-tests
36076         (test_u8_vsprintf1_LDADD): Likewise.
36077         * modules/unistdio/ulc-vsnprintf-tests
36078         (test_ulc_vsnprintf1_LDADD): Likewise.
36079         * modules/unistdio/ulc-vsprintf-tests
36080         (test_ulc_vsprintf1_LDADD): Likewise.
36081
36082         Fix linking of some uniconv tests on FreeBSD.
36083         * modules/uniconv/u16-conv-from-enc-tests
36084         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36085         * modules/uniconv/u16-conv-to-enc-tests
36086         (test_u16_conv_to_enc_LDADD): Likewise.
36087         * modules/uniconv/u16-strconv-from-enc-tests
36088         (test_u16_strconv_from_enc_LDADD): Likewise.
36089         * modules/uniconv/u16-strconv-to-enc-tests
36090         (test_u16_strconv_to_enc_LDADD): Likewise.
36091         * modules/uniconv/u32-conv-from-enc-tests
36092         (test_u32_conv_from_enc_LDADD): Likewise.
36093         * modules/uniconv/u32-conv-to-enc-tests
36094         (test_u32_conv_to_enc_LDADD): Likewise.
36095         * modules/uniconv/u32-strconv-from-enc-tests
36096         (test_u32_strconv_from_enc_LDADD): Likewise.
36097         * modules/uniconv/u32-strconv-to-enc-tests
36098         (test_u32_strconv_to_enc_LDADD): Likewise.
36099         * modules/uniconv/u8-conv-from-enc-tests
36100         (test_u8_conv_from_enc_LDADD): Likewise.
36101         * modules/uniconv/u8-conv-to-enc-tests
36102         (test_u8_conv_to_enc_LDADD): Likewise.
36103         * modules/uniconv/u8-strconv-from-enc-tests
36104         (test_u8_strconv_from_enc_LDADD): Likewise.
36105         * modules/uniconv/u8-strconv-to-enc-tests
36106         (test_u8_strconv_to_enc_LDADD): Likewise.
36107
36108 2007-10-22  Bruno Haible  <bruno@clisp.org>
36109
36110         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36111         size.
36112
36113 2007-10-22  Eric Blake  <ebb9@byu.net>
36114
36115         Tweak x*printf documentation.
36116         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36117         variable name and comments.
36118         Suggested by Bruno Haible.
36119
36120 2007-10-22  Bruno Haible  <bruno@clisp.org>
36121
36122         * lib/acl.c (copy_acl): Fix file name in comment.
36123
36124 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36125
36126         Fix Tru64 problem with stdbool.h.
36127         * lib/stdbool.in.h (false, true):
36128         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36129         Don't declare as an enum in this situation; it runs afoul of Tru64.
36130         Problem reported by Steven M. Schweda in
36131         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36132
36133 2007-10-22  Eric Blake  <ebb9@byu.net>
36134
36135         Also wrap vf?printf.
36136         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36137         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36138         (xvprintf, xvfprintf): New functions.
36139
36140 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36141
36142         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36143         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36144
36145         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36146         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36147
36148 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36149
36150         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36151         by Bruno Haible.
36152
36153 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36154
36155         * lib/getloadavg.c
36156         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36157         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36158
36159         * tests/test-i-ring.c: Work for C89.
36160
36161 2007-10-22  Bruno Haible  <bruno@clisp.org>
36162
36163         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36164         -1u, in preprocessor expression, so that we don't test for the bug
36165         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36167
36168 2007-10-22  Eric Blake  <ebb9@byu.net>
36169
36170         * tests/test-yesno.sh: Silence stderr during test.
36171
36172 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36173
36174         * modules/crypto/gc-camellia: New file.
36175
36176         * m4/gc-camellia.m4: New file.
36177
36178         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36179
36180         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36181
36182 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36183
36184         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36185         --help to stdout.  Reported by sms@antinode.org (Steven
36186         M. Schweda).
36187
36188 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36189
36190         * users.txt: Fix link to libksba.
36191
36192 2007-10-21  Ben Pfaff  <blp@gnu.org>
36193
36194         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36195         round.c roundf implementation that depends on floorf and ceilf to
36196         be tested unconditionally.
36197
36198 2007-10-21  Ben Pfaff  <blp@gnu.org>
36199
36200         * m4/check-libm-func.m4: Removed.
36201         * m4/check-math-lib.m4: New file.
36202         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36203         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36204         definition and lack of AC_LIBOBJ([roundf]).
36205         * m4/roundl.m4: Ditto, and similarly for roundl.
36206         * modules/round: Reference new m4 file.
36207         * modules/roundf: Ditto.
36208         * modules/roundl: Ditto.
36209         * tests/test-round2.c (main): Use ROUND instead of round.
36210         Bug report from Bruno Haible.
36211
36212 2007-10-21  Bruno Haible  <bruno@clisp.org>
36213
36214         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36215         context.
36216
36217 2007-10-21  Bruno Haible  <bruno@clisp.org>
36218
36219         * tests/test-wcwidth.c (main): Allow negative result for some control
36220         characters.
36221
36222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
36223         Needed on OSF/1 5.1.
36224
36225 2007-10-21  Bruno Haible  <bruno@clisp.org>
36226
36227         * tests/test-floorf1.c: Include isnanf.h.
36228         (main): Use isnanf() instead of isnan().
36229         * tests/test-ceilf1.c: Include isnanf.h.
36230         (main): Use isnanf() instead of isnan().
36231         * tests/test-truncf1.c: Include isnanf.h.
36232         (main): Use isnanf() instead of isnan().
36233         * tests/test-roundf1.c: Include isnanf.h.
36234         (main): Use isnanf() instead of isnan().
36235
36236 2007-10-21  Eric Blake  <ebb9@byu.net>
36237
36238         * users.txt: Update URL for m4.
36239
36240 2007-10-21  Bruno Haible  <bruno@clisp.org>
36241
36242         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
36243
36244 2007-10-21  Bruno Haible  <bruno@clisp.org>
36245
36246         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
36247         Git's management files if the CVS files are not present.
36248
36249 2007-10-20  Bruno Haible  <bruno@clisp.org>
36250
36251         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
36252         gcc-3.4.x.
36253
36254 2007-10-20  Ben Pfaff  <blp@gnu.org>
36255
36256         * lib/math.in.h: Declare round, roundf, roundl if we are providing
36257         implementations.
36258         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
36259         * lib/round.c: New file.
36260         * lib/roundf.c: New file.
36261         * lib/roundl.c: New file.
36262         * m4/round.m4: New file.
36263         * m4/roundf.m4: New file.
36264         * m4/roundl.m4: New file.
36265         * m4/check-libm-func-m4: New file.
36266         * modules/math: Replace round, roundf, roundl related @VARS@ in
36267         math.in.h.
36268         * modules/round: New file.
36269         * modules/round-tests: New file.
36270         * modules/roundf: New file.
36271         * modules/roundf-tests: New file.
36272         * modules/roundl: New file.
36273         * modules/roundl-tests: New file.
36274         * tests/test-round1.c: New file.
36275         * tests/test-round2.c: New file.
36276         * tests/test-roundf1.c: New file.
36277         * tests/test-roundf2.c: New file.
36278         * tests/test-roundl.c: New file.
36279         * doc/functions/round.texi: Mention round module.
36280         * doc/functions/roundf.texi: Mention roundf module.
36281         * doc/functions/roundl.texi: Mention roundl module.
36282         * MODULES.html.sh: Mention new modules.
36283         Thanks to Bruno Haible for suggestions.
36284
36285 2007-10-20  Jim Meyering  <meyering@redhat.com>
36286
36287         * lib/xprintf.c: Include <config.h> unconditionally.
36288
36289         Change xprintf's license to GPL.
36290         * modules/xprintf (License): s/LGPL/GPL/, since this module
36291         depends on modules (exit and exitfail) which are GPL.
36292         Suggestion from Bruno Haible.
36293
36294         xprintf fixes.
36295         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36296         Use a clearer diagnostic.
36297         Patch from Bruno Haible.
36298
36299 2007-10-20  Bruno Haible  <bruno@clisp.org>
36300
36301         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36302         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36303         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36304
36305 2007-10-20  Bruno Haible  <bruno@clisp.org>
36306
36307         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36308         precision in the comparison result > x - 1 or similar.
36309         * tests/test-ceilf2.c (correct_result_p): Likewise.
36310         * tests/test-truncf2.c (correct_result_p): Likewise.
36311         * tests/test-trunc2.c (correct_result_p): Likewise.
36312         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36313
36314 2007-10-20  Bruno Haible  <bruno@clisp.org>
36315
36316         * modules/ceil: New file.
36317         * m4/ceil.m4: New file.
36318         * doc/functions/ceil.texi: Mention the 'ceil' module.
36319
36320 2007-10-20  Bruno Haible  <bruno@clisp.org>
36321
36322         * modules/floor: New file.
36323         * m4/floor.m4: New file.
36324         * doc/functions/floor.texi: Mention the 'floor' module.
36325
36326 2007-10-20  Bruno Haible  <bruno@clisp.org>
36327
36328         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36329         of %a.
36330         * modules/floorf-tests (Depends-on): Likewise.
36331         * modules/truncf-tests (Depends-on): Likewise.
36332         * modules/trunc-tests (Depends-on): Likewise.
36333         Reported by Ben Pfaff.
36334
36335 2007-10-19  Jim Meyering  <meyering@redhat.com>
36336
36337         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36338         Don't bother testing specific errno values.  Just test ferror.
36339
36340         New module: xprintf
36341         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36342
36343 2007-10-19  Bruno Haible  <bruno@clisp.org>
36344
36345         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36346         syntax.
36347         * modules/javaexec (Makefile.am): Likewise.
36348         * modules/relocatable-prog (Makefile.am): Likewise.
36349         Suggested by Jim Meyering.
36350
36351 2007-10-18  Bruno Haible  <bruno@clisp.org>
36352
36353         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36354         Reported by Jim Meyering.
36355
36356 2007-10-18  Eric Blake  <ebb9@byu.net>
36357
36358         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36359
36360 2007-10-18  Bruno Haible  <bruno@clisp.org>
36361
36362         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36363         the format string into writable memory. Needed in Fortify conditions.
36364
36365 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36366             Bruno Haible  <bruno@clisp.org>
36367
36368         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36369         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36370         * modules/trim (Depends-on): Add mbchar.
36371         (configure.ac): Add gl_FUNC_MBRTOWC.
36372         (Makefile.am): Augment lib_SOURCES.
36373
36374 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36375
36376         Modify glob.c to use fstatat and dirfd, to simplify it.
36377         Suggested by Eric Blake.
36378         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36379         Don't include <stdbool.h>; not used.
36380         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36381         (link_exists_p): Simplify implementation, since we can now assume
36382         dirfd and fstatat.
36383         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36384
36385 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36386
36387         * gnulib-tool (func_get_dependencies): Fix sed script to
36388         match only tests.
36389
36390 2007-10-17  Bruno Haible  <bruno@clisp.org>
36391
36392         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
36393         allow locale names without encoding suffix.
36394         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36395         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36396
36397 2007-10-16  Bruno Haible  <bruno@clisp.org>
36398
36399         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
36400         * lib/getgroups.c (getgroups): Likewise.
36401         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
36402
36403 2007-10-16  Bruno Haible  <bruno@clisp.org>
36404
36405         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
36406         * modules/malloc-posix (License): Likewise.
36407         * modules/realloc-posix (License): Likewise.
36408         * modules/calloc-posix (License): Likewise.
36409         * modules/intprops (License): Change from GPL to LGPL, with
36410         Paul Eggert's approval.
36411
36412 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36413
36414         Merge glibc changes into lib/glob.c.
36415
36416         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
36417         2007-10-15 04:59:03 UTC.  Here are the changes:
36418
36419         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
36420
36421         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
36422
36423         * lib/glob.c: Add some branch prediction throughout.
36424
36425         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
36426
36427         [BZ #5103]
36428         * lib/glob.c (glob): Recognize patterns starting \/.
36429
36430         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
36431
36432         [BZ #3996]
36433         * lib/glob.c (attribute_hidden): Define if not defined.
36434         (glob): Unescape dirname, filename or username when needed and not
36435         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
36436         is NULL.  Handle unescaped [ in pattern without closing ].
36437         Don't pass GLOB_CHECK down to recursive glob for directories.
36438         (__glob_pattern_type): New function.
36439         (__glob_pattern_p): Implement using __glob_pattern_type.
36440         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
36441         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
36442         Remove unreachable code.
36443
36444         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
36445
36446         * lib/glob.c (glob_in_dir): Add some comments and asserts to
36447         explain why there are no leaks.
36448
36449         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
36450
36451         [BZ #3253]
36452         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
36453         time, rather allocate increasingly bigger arrays of pointers, if
36454         possible with alloca, if too large with malloc.
36455
36456 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36457
36458         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
36459         Problem reported by H.Merijn Brand in
36460         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
36461         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
36462         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36463
36464 2007-10-15  Bruno Haible  <bruno@clisp.org>
36465
36466         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
36467         with explicit rpl_ prefix.
36468         * lib/fopen.c (fopen): Likewise.
36469         * lib/freopen.c (freopen): Likewise.
36470         * lib/iconv.c (iconv): Likewise.
36471         * lib/iconv_close.c (iconv_close): Likewise.
36472
36473 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36474
36475         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
36476
36477 2007-10-15  Bruno Haible  <bruno@clisp.org>
36478
36479         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
36480         <stddef.h> instead of <stdlib.h> since we only need NULL.
36481         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36482
36483 2007-10-15  Bruno Haible  <bruno@clisp.org>
36484
36485         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
36486         Replace paragraph talking about LIBOBJS.
36487         Reported by Colin Watson <cjwatson@debian.org>.
36488
36489 2007-10-15  Bruno Haible  <bruno@clisp.org>
36490
36491         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
36492         <stdlib.h> before using NULL.
36493
36494 2007-10-15  Simon Josefsson  <simon@josefsson.org>
36495
36496         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
36497         Reported by Albert Chin <china@thewrittenword.com>.
36498
36499 2007-10-14  Bruno Haible  <bruno@clisp.org>
36500
36501         * modules/iconv_open-utf-tests: New file.
36502         * tests/test-iconv-utf.c: New file.
36503
36504         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
36505         * modules/iconv_open-utf: New file.
36506         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
36507         (iconv, iconv_close): New declarations.
36508         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
36509         be defined.
36510         (iconv_open): Add special handling of conversion between UTF-8 and
36511         UTF-{16,32}{BE,LE}.
36512         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
36513         * lib/iconv_close.c: New file.
36514         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
36515         gl_FUNC_ICONV_OPEN.
36516         (gl_FUNC_ICONV_OPEN): Use it.
36517         (gl_FUNC_ICONV_OPEN_UTF): New macro.
36518         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
36519         and REPLACE_ICONV_UTF.
36520         * modules/iconv_open (Depends-on): Add c-strcase.
36521         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
36522         ICONV_CONST.
36523         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
36524
36525 2007-10-13  Albert Chin  <china@thewrittenword.com>
36526             Bruno Haible  <bruno@clisp.org>
36527
36528         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
36529         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
36530
36531 2007-10-13  Bruno Haible  <bruno@clisp.org>
36532
36533         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
36534         defined, use the ISO C99 inline semantics.
36535         * lib/argp.h (ARGP_EI): Likewise.
36536
36537 2007-10-13  Bruno Haible  <bruno@clisp.org>
36538
36539         Handle 'inline' change in gcc 4.3.0.
36540         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
36541         argp_fmtstream_write, argp_fmtstream_set_lmargin,
36542         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
36543         argp_fmtstream_point): Disable 'extern' declaration if the function
36544         definition is going to be provided inline.
36545         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
36546         semantics, not the ISO C99 inline semantics.
36547         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
36548         'extern' declaration if the function definition is going to be provided
36549         inline.
36550         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
36551         the GNU C inline semantics, not the ISO C99 inline semantics. With
36552         GCC 4.2, avoid a warning.
36553
36554 2007-10-13  Bruno Haible  <bruno@clisp.org>
36555
36556         * lib/freading.h (freading): Enable the use of __freading for
36557         glibc >= 2.7.
36558         * lib/freading.c (freading): Likewise.
36559
36560 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36561
36562         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
36563         "warning: C99 inline functions are not supported; using GNU89".
36564
36565 2007-10-12  Bruno Haible  <bruno@clisp.org>
36566
36567         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
36568         of 2.
36569         * tests/test-ceilf2.c: New file.
36570         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
36571
36572         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
36573         * modules/ceilf-tests: Update.
36574
36575 2007-10-12  Bruno Haible  <bruno@clisp.org>
36576
36577         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
36578         of 2.
36579         * tests/test-floorf2.c: New file.
36580         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
36581
36582         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
36583         * modules/floorf-tests: Update.
36584
36585 2007-10-12  Bruno Haible  <bruno@clisp.org>
36586
36587         * tests/test-trunc2.c: New file.
36588         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
36589
36590         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
36591         * modules/trunc-tests: Update.
36592
36593 2007-10-12  Bruno Haible  <bruno@clisp.org>
36594
36595         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
36596         of 2.
36597         * tests/test-truncf2.c: New file.
36598         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
36599
36600         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
36601         * modules/truncf-tests: Update.
36602
36603 2007-10-11  Eric Blake  <ebb9@byu.net>
36604
36605         Don't claim strerror is broken on Interix.
36606         * doc/functions/strerror.texi (strerror): Known broken systems are
36607         now Solaris 8, and not Interix.
36608         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
36609         Interix on cross-compile.
36610         Reported by Martin Koeppe in
36611         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
36612
36613 2007-10-11  Bruno Haible  <bruno@clisp.org>
36614
36615         * modules/i-ring-tests: New file.
36616         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
36617         instead of assert.
36618
36619 2007-10-11  Bruno Haible  <bruno@clisp.org>
36620
36621         * modules/filenamecat-tests: New file.
36622         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
36623         * lib/filenamecat.c: Remove test code.
36624
36625 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
36626
36627         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
36628
36629         * lib/strerror.c: Include <string.h> always, to test interface,
36630         and to remove the need for the dummy.
36631         Include intprops.h to compute width instead of doing it ourselves
36632         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
36633         (strerror): Define it to return NULL if there's no system strerror.
36634         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
36635         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
36636         ancient pre-strerror Unix systems well any more.  Saying "unknown
36637         system error" is enough.
36638         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
36639         simpler strerror.c implementation.
36640         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
36641         Simplify the tests to reflect the simpler strerror implementation.
36642         * modules/strerror (Depends-on): Add intprops.
36643
36644 2007-10-09  Eric Blake  <ebb9@byu.net>
36645
36646         Silence test-fpending.
36647         * modules/fpending-tests (Files): Add wrapper script.
36648         * tests/test-fpending.sh: New file.
36649
36650 2007-10-09  Bruno Haible  <bruno@clisp.org>
36651
36652         * MODULES.html.sh (func_module): Don't create a hyperlink for
36653         function names like 'printf_frexp'.
36654         (Misc): Add crc, memxor.
36655         (Characteristics of floating types): New section.
36656         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
36657         isnanf-nolibm, signbit, trunc, truncf, truncl.
36658         (Enhancements for ISO C 99 functions): New subsection Input/output.
36659         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
36660         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
36661         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
36662         (Compatibility checks for POSIX:2001 functions): Add clock-time.
36663         (Enhancements for POSIX:2001 functions): Add chdir-long.
36664         (File system functions): Add areadlink, chdir-safer, read-file.
36665         Remove cycle-check.
36666         (File system as inode set): New section.
36667         (Date and time): Add gethrxtime.
36668         (Multithreading): Add openmp.
36669         (Internationalization functions): Add localename.
36670         (Unicode string functions): Add unistr/u*-mbsnlen.
36671         (Support for maintaining and releasing projects): Add git-version-gen.
36672         (Lone files): Remove directories.
36673
36674 2007-10-08  Ben Pfaff  <blp@gnu.org>
36675
36676         * lib/xmalloca.h: Fix typo in comment.
36677
36678 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36679
36680         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
36681         when avoiding problems with integer overflow.  Use a portable test
36682         instead.
36683
36684 2007-10-08  Simon Josefsson  <simon@josefsson.org>
36685
36686         * modules/dummy (License): Change to LGPLv2+.
36687         * modules/float (License): Likewise
36688         * modules/realloc (License): Likewise
36689         * modules/stdlib (License): Likewise
36690
36691 2007-10-07  Bruno Haible  <bruno@clisp.org>
36692
36693         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
36694         * floor.c (TWO_MANT_DIG): Likewise.
36695         * ceil.c (TWO_MANT_DIG): Likewise.
36696         Reported by Ben Pfaff.
36697
36698 2007-10-07  Bruno Haible  <bruno@clisp.org>
36699
36700         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
36701         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
36702         * lib/frexp.c (FUNC): Likewise.
36703         * lib/printf-frexp.h (printf_frexp): Likewise.
36704         * lib/printf-frexpl.h (printf_frexpl): Likewise.
36705         * lib/printf-frexp.c (FUNC): Likewise.
36706         Suggested by Jim Meyering.
36707
36708 2007-10-07  Jim Meyering  <meyering@redhat.com>
36709
36710         Make xnanosleep's integer overflow test more robust.
36711         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
36712         so that gcc-4.3.0 doesn't optimize away this test for overflow.
36713
36714 2007-10-07  Bruno Haible  <bruno@clisp.org>
36715
36716         * NEWS: Mention the license change.
36717
36718         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
36719         abbreviations in the modules files.
36720
36721         Change copyright notice from GPLv2+ to GPLv3+.
36722         * README: Change copyright notice.
36723         * MODULES.html.sh: Likewise.
36724         * build-aux/bootstrap.conf: Likewise.
36725         * build-aux/config.libpath: Likewise.
36726         * build-aux/csharpcomp.sh.in: Likewise.
36727         * build-aux/csharpexec.sh.in: Likewise.
36728         * build-aux/install-reloc: Likewise.
36729         * build-aux/javacomp.sh.in: Likewise.
36730         * build-aux/javaexec.sh.in: Likewise.
36731         * build-aux/ldd.sh.in: Likewise.
36732         * build-aux/reloc-ldflags: Likewise.
36733         * build-aux/relocatable.sh.in: Likewise.
36734         * build-aux/x-to-1.in: Likewise.
36735         * check-module: Likewise.
36736         * config/srclistvars.sh: Likewise.
36737         * gnulib-tool: Likewise.
36738         * lib/acl-internal.h: Likewise.
36739         * lib/acl.c: Likewise.
36740         * lib/acl.h: Likewise.
36741         * lib/acl_entries.c: Likewise.
36742         * lib/areadlink-with-size.c: Likewise.
36743         * lib/areadlink.c: Likewise.
36744         * lib/areadlink.h: Likewise.
36745         * lib/argmatch.c: Likewise.
36746         * lib/argmatch.h: Likewise.
36747         * lib/argp-ba.c: Likewise.
36748         * lib/argp-eexst.c: Likewise.
36749         * lib/argp-fmtstream.c: Likewise.
36750         * lib/argp-fmtstream.h: Likewise.
36751         * lib/argp-fs-xinl.c: Likewise.
36752         * lib/argp-help.c: Likewise.
36753         * lib/argp-namefrob.h: Likewise.
36754         * lib/argp-parse.c: Likewise.
36755         * lib/argp-pin.c: Likewise.
36756         * lib/argp-pv.c: Likewise.
36757         * lib/argp-pvh.c: Likewise.
36758         * lib/argp-xinl.c: Likewise.
36759         * lib/argp.h: Likewise.
36760         * lib/at-func.c: Likewise.
36761         * lib/atanl.c: Likewise.
36762         * lib/backupfile.c: Likewise.
36763         * lib/backupfile.h: Likewise.
36764         * lib/basename.c: Likewise.
36765         * lib/binary-io.h: Likewise.
36766         * lib/byteswap.in.h: Likewise.
36767         * lib/c-stack.c: Likewise.
36768         * lib/c-stack.h: Likewise.
36769         * lib/c-strcasestr.c: Likewise.
36770         * lib/c-strcasestr.h: Likewise.
36771         * lib/c-strstr.c: Likewise.
36772         * lib/c-strstr.h: Likewise.
36773         * lib/c-strtod.c: Likewise.
36774         * lib/calloc.c: Likewise.
36775         * lib/canon-host.c: Likewise.
36776         * lib/canon-host.h: Likewise.
36777         * lib/canonicalize-lgpl.c: Likewise.
36778         * lib/canonicalize.c: Likewise.
36779         * lib/canonicalize.h: Likewise.
36780         * lib/ceil.c: Likewise.
36781         * lib/ceilf.c: Likewise.
36782         * lib/ceill.c: Likewise.
36783         * lib/chdir-long.c: Likewise.
36784         * lib/chdir-long.h: Likewise.
36785         * lib/chdir-safer.c: Likewise.
36786         * lib/chdir-safer.h: Likewise.
36787         * lib/chown.c: Likewise.
36788         * lib/classpath.c: Likewise.
36789         * lib/classpath.h: Likewise.
36790         * lib/clean-temp.c: Likewise.
36791         * lib/clean-temp.h: Likewise.
36792         * lib/cloexec.c: Likewise.
36793         * lib/close-stream.c: Likewise.
36794         * lib/closein.c: Likewise.
36795         * lib/closein.h: Likewise.
36796         * lib/closeout.c: Likewise.
36797         * lib/closeout.h: Likewise.
36798         * lib/concat-filename.c: Likewise.
36799         * lib/copy-file.c: Likewise.
36800         * lib/copy-file.h: Likewise.
36801         * lib/count-one-bits.h: Likewise.
36802         * lib/crc.c: Likewise.
36803         * lib/crc.h: Likewise.
36804         * lib/creat-safer.c: Likewise.
36805         * lib/csharpcomp.c: Likewise.
36806         * lib/csharpcomp.h: Likewise.
36807         * lib/csharpexec.c: Likewise.
36808         * lib/csharpexec.h: Likewise.
36809         * lib/cycle-check.c: Likewise.
36810         * lib/cycle-check.h: Likewise.
36811         * lib/diacrit.c: Likewise.
36812         * lib/diacrit.h: Likewise.
36813         * lib/diffseq.h: Likewise.
36814         * lib/dirchownmod.c: Likewise.
36815         * lib/dirent.in.h: Likewise.
36816         * lib/dirfd.c: Likewise.
36817         * lib/dirfd.h: Likewise.
36818         * lib/dirname.c: Likewise.
36819         * lib/dirname.h: Likewise.
36820         * lib/dummy.c: Likewise.
36821         * lib/dup-safer.c: Likewise.
36822         * lib/dup2.c: Likewise.
36823         * lib/eealloc.h: Likewise.
36824         * lib/error.c: Likewise.
36825         * lib/error.h: Likewise.
36826         * lib/euidaccess.c: Likewise.
36827         * lib/exclude.c: Likewise.
36828         * lib/exclude.h: Likewise.
36829         * lib/execute.c: Likewise.
36830         * lib/execute.h: Likewise.
36831         * lib/exitfail.c: Likewise.
36832         * lib/exitfail.h: Likewise.
36833         * lib/expl.c: Likewise.
36834         * lib/fatal-signal.c: Likewise.
36835         * lib/fatal-signal.h: Likewise.
36836         * lib/fbufmode.c: Likewise.
36837         * lib/fbufmode.h: Likewise.
36838         * lib/fchdir.c: Likewise.
36839         * lib/fchmodat.c: Likewise.
36840         * lib/fchownat.c: Likewise.
36841         * lib/fcntl--.h: Likewise.
36842         * lib/fcntl-safer.h: Likewise.
36843         * lib/fcntl.in.h: Likewise.
36844         * lib/fd-safer.c: Likewise.
36845         * lib/fflush.c: Likewise.
36846         * lib/file-has-acl.c: Likewise.
36847         * lib/file-set.c: Likewise.
36848         * lib/file-type.c: Likewise.
36849         * lib/file-type.h: Likewise.
36850         * lib/fileblocks.c: Likewise.
36851         * lib/filemode.c: Likewise.
36852         * lib/filemode.h: Likewise.
36853         * lib/filename.h: Likewise.
36854         * lib/filenamecat.c: Likewise.
36855         * lib/filenamecat.h: Likewise.
36856         * lib/findprog.c: Likewise.
36857         * lib/findprog.h: Likewise.
36858         * lib/float.in.h: Likewise.
36859         * lib/floor.c: Likewise.
36860         * lib/floorf.c: Likewise.
36861         * lib/floorl.c: Likewise.
36862         * lib/fopen-safer.c: Likewise.
36863         * lib/fopen.c: Likewise.
36864         * lib/fpending.c: Likewise.
36865         * lib/fpending.h: Likewise.
36866         * lib/fprintf.c: Likewise.
36867         * lib/fprintftime.h: Likewise.
36868         * lib/fpucw.h: Likewise.
36869         * lib/fpurge.c: Likewise.
36870         * lib/fpurge.h: Likewise.
36871         * lib/freadable.c: Likewise.
36872         * lib/freadable.h: Likewise.
36873         * lib/freadahead.c: Likewise.
36874         * lib/freadahead.h: Likewise.
36875         * lib/freading.c: Likewise.
36876         * lib/freading.h: Likewise.
36877         * lib/free.c: Likewise.
36878         * lib/freopen.c: Likewise.
36879         * lib/frexp.c: Likewise.
36880         * lib/frexpl.c: Likewise.
36881         * lib/fseek.c: Likewise.
36882         * lib/fseterr.c: Likewise.
36883         * lib/fseterr.h: Likewise.
36884         * lib/fstatat.c: Likewise.
36885         * lib/fstrcmp.c: Likewise.
36886         * lib/fstrcmp.h: Likewise.
36887         * lib/fsusage.c: Likewise.
36888         * lib/fsusage.h: Likewise.
36889         * lib/ftell.c: Likewise.
36890         * lib/ftello.c: Likewise.
36891         * lib/fts-cycle.c: Likewise.
36892         * lib/fts.c: Likewise.
36893         * lib/fts_.h: Likewise.
36894         * lib/full-read.c: Likewise.
36895         * lib/full-read.h: Likewise.
36896         * lib/full-write.c: Likewise.
36897         * lib/full-write.h: Likewise.
36898         * lib/fwritable.c: Likewise.
36899         * lib/fwritable.h: Likewise.
36900         * lib/fwriteerror.c: Likewise.
36901         * lib/fwriteerror.h: Likewise.
36902         * lib/fwriting.c: Likewise.
36903         * lib/fwriting.h: Likewise.
36904         * lib/gcd.c: Likewise.
36905         * lib/gcd.h: Likewise.
36906         * lib/getcwd.c: Likewise.
36907         * lib/getdate.h: Likewise.
36908         * lib/getdate.y: Likewise.
36909         * lib/getdomainname.c: Likewise.
36910         * lib/getdomainname.h: Likewise.
36911         * lib/getgroups.c: Likewise.
36912         * lib/gethostname.c: Likewise.
36913         * lib/gethrxtime.c: Likewise.
36914         * lib/gethrxtime.h: Likewise.
36915         * lib/getloadavg.c: Likewise.
36916         * lib/getndelim2.c: Likewise.
36917         * lib/getndelim2.h: Likewise.
36918         * lib/getnline.c: Likewise.
36919         * lib/getnline.h: Likewise.
36920         * lib/getopt.c: Likewise.
36921         * lib/getopt.in.h: Likewise.
36922         * lib/getopt1.c: Likewise.
36923         * lib/getopt_int.h: Likewise.
36924         * lib/getpagesize.h: Likewise.
36925         * lib/getsubopt.c: Likewise.
36926         * lib/gettime.c: Likewise.
36927         * lib/getugroups.c: Likewise.
36928         * lib/getugroups.h: Likewise.
36929         * lib/getusershell.c: Likewise.
36930         * lib/gl_anyavltree_list1.h: Likewise.
36931         * lib/gl_anyavltree_list2.h: Likewise.
36932         * lib/gl_anyhash_list1.h: Likewise.
36933         * lib/gl_anyhash_list2.h: Likewise.
36934         * lib/gl_anylinked_list1.h: Likewise.
36935         * lib/gl_anylinked_list2.h: Likewise.
36936         * lib/gl_anyrbtree_list1.h: Likewise.
36937         * lib/gl_anyrbtree_list2.h: Likewise.
36938         * lib/gl_anytree_list1.h: Likewise.
36939         * lib/gl_anytree_list2.h: Likewise.
36940         * lib/gl_anytree_oset.h: Likewise.
36941         * lib/gl_anytreehash_list1.h: Likewise.
36942         * lib/gl_anytreehash_list2.h: Likewise.
36943         * lib/gl_array_list.c: Likewise.
36944         * lib/gl_array_list.h: Likewise.
36945         * lib/gl_array_oset.c: Likewise.
36946         * lib/gl_array_oset.h: Likewise.
36947         * lib/gl_avltree_list.c: Likewise.
36948         * lib/gl_avltree_list.h: Likewise.
36949         * lib/gl_avltree_oset.c: Likewise.
36950         * lib/gl_avltree_oset.h: Likewise.
36951         * lib/gl_avltreehash_list.c: Likewise.
36952         * lib/gl_avltreehash_list.h: Likewise.
36953         * lib/gl_carray_list.c: Likewise.
36954         * lib/gl_carray_list.h: Likewise.
36955         * lib/gl_linked_list.c: Likewise.
36956         * lib/gl_linked_list.h: Likewise.
36957         * lib/gl_linkedhash_list.c: Likewise.
36958         * lib/gl_linkedhash_list.h: Likewise.
36959         * lib/gl_list.c: Likewise.
36960         * lib/gl_list.h: Likewise.
36961         * lib/gl_oset.c: Likewise.
36962         * lib/gl_oset.h: Likewise.
36963         * lib/gl_rbtree_list.c: Likewise.
36964         * lib/gl_rbtree_list.h: Likewise.
36965         * lib/gl_rbtree_oset.c: Likewise.
36966         * lib/gl_rbtree_oset.h: Likewise.
36967         * lib/gl_rbtreehash_list.c: Likewise.
36968         * lib/gl_rbtreehash_list.h: Likewise.
36969         * lib/gl_sublist.c: Likewise.
36970         * lib/gl_sublist.h: Likewise.
36971         * lib/group-member.c: Likewise.
36972         * lib/group-member.h: Likewise.
36973         * lib/hard-locale.c: Likewise.
36974         * lib/hard-locale.h: Likewise.
36975         * lib/hash-pjw.c: Likewise.
36976         * lib/hash-pjw.h: Likewise.
36977         * lib/hash-triple.c: Likewise.
36978         * lib/hash.c: Likewise.
36979         * lib/hash.h: Likewise.
36980         * lib/human.c: Likewise.
36981         * lib/human.h: Likewise.
36982         * lib/i-ring.c: Likewise.
36983         * lib/i-ring.h: Likewise.
36984         * lib/idcache.c: Likewise.
36985         * lib/imaxabs.c: Likewise.
36986         * lib/imaxdiv.c: Likewise.
36987         * lib/inet_pton.c: Likewise.
36988         * lib/inet_pton.h: Likewise.
36989         * lib/intprops.h: Likewise.
36990         * lib/inttostr.c: Likewise.
36991         * lib/inttostr.h: Likewise.
36992         * lib/inttypes.in.h: Likewise.
36993         * lib/isapipe.c: Likewise.
36994         * lib/isdir.c: Likewise.
36995         * lib/isnan.c: Likewise.
36996         * lib/isnan.h: Likewise.
36997         * lib/isnanf.c: Likewise.
36998         * lib/isnanf.h: Likewise.
36999         * lib/isnanl-nolibm.h: Likewise.
37000         * lib/isnanl.c: Likewise.
37001         * lib/isnanl.h: Likewise.
37002         * lib/javacomp.c: Likewise.
37003         * lib/javacomp.h: Likewise.
37004         * lib/javaexec.c: Likewise.
37005         * lib/javaexec.h: Likewise.
37006         * lib/javaversion.c: Likewise.
37007         * lib/javaversion.h: Likewise.
37008         * lib/javaversion.java: Likewise.
37009         * lib/lbrkprop.h: Likewise.
37010         * lib/lchmod.h: Likewise.
37011         * lib/lchown.c: Likewise.
37012         * lib/ldexpl.c: Likewise.
37013         * lib/linebreak.c: Likewise.
37014         * lib/linebreak.h: Likewise.
37015         * lib/linebuffer.c: Likewise.
37016         * lib/linebuffer.h: Likewise.
37017         * lib/locale.in.h: Likewise.
37018         * lib/logl.c: Likewise.
37019         * lib/long-options.c: Likewise.
37020         * lib/long-options.h: Likewise.
37021         * lib/lstat.c: Likewise.
37022         * lib/lstat.h: Likewise.
37023         * lib/math.in.h: Likewise.
37024         * lib/mbchar.c: Likewise.
37025         * lib/mbchar.h: Likewise.
37026         * lib/mbfile.h: Likewise.
37027         * lib/mbiter.h: Likewise.
37028         * lib/mbscasecmp.c: Likewise.
37029         * lib/mbscasestr.c: Likewise.
37030         * lib/mbschr.c: Likewise.
37031         * lib/mbscspn.c: Likewise.
37032         * lib/mbslen.c: Likewise.
37033         * lib/mbsncasecmp.c: Likewise.
37034         * lib/mbsnlen.c: Likewise.
37035         * lib/mbspbrk.c: Likewise.
37036         * lib/mbspcasecmp.c: Likewise.
37037         * lib/mbsrchr.c: Likewise.
37038         * lib/mbssep.c: Likewise.
37039         * lib/mbsspn.c: Likewise.
37040         * lib/mbsstr.c: Likewise.
37041         * lib/mbstok_r.c: Likewise.
37042         * lib/mbswidth.c: Likewise.
37043         * lib/mbswidth.h: Likewise.
37044         * lib/mbuiter.h: Likewise.
37045         * lib/memcasecmp.c: Likewise.
37046         * lib/memcasecmp.h: Likewise.
37047         * lib/memchr.c: Likewise.
37048         * lib/memcmp.c: Likewise.
37049         * lib/memcoll.c: Likewise.
37050         * lib/memcoll.h: Likewise.
37051         * lib/memcpy.c: Likewise.
37052         * lib/memrchr.c: Likewise.
37053         * lib/mkancesdirs.c: Likewise.
37054         * lib/mkdir-p.c: Likewise.
37055         * lib/mkdir-p.h: Likewise.
37056         * lib/mkdir.c: Likewise.
37057         * lib/mkdirat.c: Likewise.
37058         * lib/mkdtemp.c: Likewise.
37059         * lib/mkstemp-safer.c: Likewise.
37060         * lib/mkstemp.c: Likewise.
37061         * lib/modechange.c: Likewise.
37062         * lib/modechange.h: Likewise.
37063         * lib/mountlist.c: Likewise.
37064         * lib/mountlist.h: Likewise.
37065         * lib/mpsort.c: Likewise.
37066         * lib/nanosleep.c: Likewise.
37067         * lib/obstack.c: Likewise.
37068         * lib/obstack.h: Likewise.
37069         * lib/open-safer.c: Likewise.
37070         * lib/open.c: Likewise.
37071         * lib/openat-die.c: Likewise.
37072         * lib/openat-priv.h: Likewise.
37073         * lib/openat-proc.c: Likewise.
37074         * lib/openat.c: Likewise.
37075         * lib/openat.h: Likewise.
37076         * lib/pagealign_alloc.c: Likewise.
37077         * lib/pagealign_alloc.h: Likewise.
37078         * lib/physmem.c: Likewise.
37079         * lib/physmem.h: Likewise.
37080         * lib/pipe-safer.c: Likewise.
37081         * lib/pipe.c: Likewise.
37082         * lib/pipe.h: Likewise.
37083         * lib/posixtm.c: Likewise.
37084         * lib/posixtm.h: Likewise.
37085         * lib/posixver.c: Likewise.
37086         * lib/printf-frexp.c: Likewise.
37087         * lib/printf-frexp.h: Likewise.
37088         * lib/printf-frexpl.c: Likewise.
37089         * lib/printf-frexpl.h: Likewise.
37090         * lib/printf.c: Likewise.
37091         * lib/progname.c: Likewise.
37092         * lib/progname.h: Likewise.
37093         * lib/progreloc.c: Likewise.
37094         * lib/putenv.c: Likewise.
37095         * lib/quote.c: Likewise.
37096         * lib/quote.h: Likewise.
37097         * lib/quotearg.c: Likewise.
37098         * lib/quotearg.h: Likewise.
37099         * lib/raise.c: Likewise.
37100         * lib/readline.c: Likewise.
37101         * lib/readline.h: Likewise.
37102         * lib/readlink.c: Likewise.
37103         * lib/readtokens.c: Likewise.
37104         * lib/readtokens.h: Likewise.
37105         * lib/readtokens0.c: Likewise.
37106         * lib/readtokens0.h: Likewise.
37107         * lib/readutmp.c: Likewise.
37108         * lib/readutmp.h: Likewise.
37109         * lib/realloc.c: Likewise.
37110         * lib/relocwrapper.c: Likewise.
37111         * lib/rename-dest-slash.c: Likewise.
37112         * lib/rename.c: Likewise.
37113         * lib/rmdir.c: Likewise.
37114         * lib/rpmatch.c: Likewise.
37115         * lib/safe-read.c: Likewise.
37116         * lib/safe-read.h: Likewise.
37117         * lib/safe-write.c: Likewise.
37118         * lib/safe-write.h: Likewise.
37119         * lib/same-inode.h: Likewise.
37120         * lib/same.c: Likewise.
37121         * lib/same.h: Likewise.
37122         * lib/save-cwd.c: Likewise.
37123         * lib/save-cwd.h: Likewise.
37124         * lib/savedir.c: Likewise.
37125         * lib/savedir.h: Likewise.
37126         * lib/savewd.c: Likewise.
37127         * lib/savewd.h: Likewise.
37128         * lib/search.in.h: Likewise.
37129         * lib/setenv.c: Likewise.
37130         * lib/setenv.h: Likewise.
37131         * lib/settime.c: Likewise.
37132         * lib/sh-quote.c: Likewise.
37133         * lib/sh-quote.h: Likewise.
37134         * lib/sig2str.c: Likewise.
37135         * lib/sig2str.h: Likewise.
37136         * lib/signal.in.h: Likewise.
37137         * lib/signbitd.c: Likewise.
37138         * lib/signbitf.c: Likewise.
37139         * lib/signbitl.c: Likewise.
37140         * lib/sigprocmask.c: Likewise.
37141         * lib/sincosl.c: Likewise.
37142         * lib/sleep.c: Likewise.
37143         * lib/sprintf.c: Likewise.
37144         * lib/sqrtl.c: Likewise.
37145         * lib/stat-time.h: Likewise.
37146         * lib/stdio--.h: Likewise.
37147         * lib/stdio-safer.h: Likewise.
37148         * lib/stdlib--.h: Likewise.
37149         * lib/stdlib-safer.h: Likewise.
37150         * lib/stdlib.in.h: Likewise.
37151         * lib/stpcpy.c: Likewise.
37152         * lib/stpncpy.c: Likewise.
37153         * lib/strchrnul.c: Likewise.
37154         * lib/strcspn.c: Likewise.
37155         * lib/strerror.c: Likewise.
37156         * lib/strftime.c: Likewise.
37157         * lib/strftime.h: Likewise.
37158         * lib/striconveh.c: Likewise.
37159         * lib/striconveh.h: Likewise.
37160         * lib/striconveha.c: Likewise.
37161         * lib/striconveha.h: Likewise.
37162         * lib/stripslash.c: Likewise.
37163         * lib/strnlen1.c: Likewise.
37164         * lib/strnlen1.h: Likewise.
37165         * lib/strtod.c: Likewise.
37166         * lib/strtoimax.c: Likewise.
37167         * lib/strtok_r.c: Likewise.
37168         * lib/strtol.c: Likewise.
37169         * lib/strtoll.c: Likewise.
37170         * lib/strtoul.c: Likewise.
37171         * lib/strtoull.c: Likewise.
37172         * lib/sysexits.in.h: Likewise.
37173         * lib/tempname.c: Likewise.
37174         * lib/tempname.h: Likewise.
37175         * lib/timespec.h: Likewise.
37176         * lib/tls.c: Likewise.
37177         * lib/tls.h: Likewise.
37178         * lib/tmpdir.c: Likewise.
37179         * lib/tmpdir.h: Likewise.
37180         * lib/tmpfile-safer.c: Likewise.
37181         * lib/tmpfile.c: Likewise.
37182         * lib/trigl.c: Likewise.
37183         * lib/trigl.h: Likewise.
37184         * lib/trim.c: Likewise.
37185         * lib/trim.h: Likewise.
37186         * lib/trunc.c: Likewise.
37187         * lib/truncf.c: Likewise.
37188         * lib/truncl.c: Likewise.
37189         * lib/tsearch.c: Likewise.
37190         * lib/unicodeio.c: Likewise.
37191         * lib/unicodeio.h: Likewise.
37192         * lib/unistd--.h: Likewise.
37193         * lib/unistd-safer.h: Likewise.
37194         * lib/unistdio/ulc-fprintf.c: Likewise.
37195         * lib/unistdio/ulc-vfprintf.c: Likewise.
37196         * lib/unlinkdir.c: Likewise.
37197         * lib/unlinkdir.h: Likewise.
37198         * lib/unlocked-io.h: Likewise.
37199         * lib/unsetenv.c: Likewise.
37200         * lib/userspec.c: Likewise.
37201         * lib/utime.c: Likewise.
37202         * lib/utimecmp.c: Likewise.
37203         * lib/utimecmp.h: Likewise.
37204         * lib/utimens.c: Likewise.
37205         * lib/verify.h: Likewise.
37206         * lib/verror.c: Likewise.
37207         * lib/verror.h: Likewise.
37208         * lib/version-etc-fsf.c: Likewise.
37209         * lib/version-etc.c: Likewise.
37210         * lib/version-etc.h: Likewise.
37211         * lib/vfprintf.c: Likewise.
37212         * lib/vprintf.c: Likewise.
37213         * lib/vsprintf.c: Likewise.
37214         * lib/w32spawn.h: Likewise.
37215         * lib/wait-process.c: Likewise.
37216         * lib/wait-process.h: Likewise.
37217         * lib/wcwidth.c: Likewise.
37218         * lib/write-any-file.c: Likewise.
37219         * lib/xalloc-die.c: Likewise.
37220         * lib/xalloc.h: Likewise.
37221         * lib/xasprintf.c: Likewise.
37222         * lib/xgetcwd.c: Likewise.
37223         * lib/xgetcwd.h: Likewise.
37224         * lib/xgetdomainname.c: Likewise.
37225         * lib/xgetdomainname.h: Likewise.
37226         * lib/xgethostname.c: Likewise.
37227         * lib/xmalloc.c: Likewise.
37228         * lib/xmalloca.c: Likewise.
37229         * lib/xmalloca.h: Likewise.
37230         * lib/xmemcoll.c: Likewise.
37231         * lib/xnanosleep.c: Likewise.
37232         * lib/xreadlink.c: Likewise.
37233         * lib/xreadlink.h: Likewise.
37234         * lib/xsetenv.c: Likewise.
37235         * lib/xsetenv.h: Likewise.
37236         * lib/xstriconv.c: Likewise.
37237         * lib/xstriconv.h: Likewise.
37238         * lib/xstrndup.c: Likewise.
37239         * lib/xstrndup.h: Likewise.
37240         * lib/xstrtod.c: Likewise.
37241         * lib/xstrtod.h: Likewise.
37242         * lib/xstrtol-error.c: Likewise.
37243         * lib/xstrtol.c: Likewise.
37244         * lib/xstrtol.h: Likewise.
37245         * lib/xtime.h: Likewise.
37246         * lib/xvasprintf.c: Likewise.
37247         * lib/xvasprintf.h: Likewise.
37248         * lib/yesno.c: Likewise.
37249         * lib/yesno.h: Likewise.
37250         * posix-modules: Likewise.
37251         * tests/test-alloca-opt.c: Likewise.
37252         * tests/test-arcfour.c: Likewise.
37253         * tests/test-arctwo.c: Likewise.
37254         * tests/test-argmatch.c: Likewise.
37255         * tests/test-argp-2.sh: Likewise.
37256         * tests/test-argp.c: Likewise.
37257         * tests/test-arpa_inet.c: Likewise.
37258         * tests/test-array_list.c: Likewise.
37259         * tests/test-array_oset.c: Likewise.
37260         * tests/test-atexit.c: Likewise.
37261         * tests/test-avltree_list.c: Likewise.
37262         * tests/test-avltree_oset.c: Likewise.
37263         * tests/test-avltreehash_list.c: Likewise.
37264         * tests/test-base64.c: Likewise.
37265         * tests/test-binary-io.c: Likewise.
37266         * tests/test-byteswap.c: Likewise.
37267         * tests/test-c-ctype.c: Likewise.
37268         * tests/test-c-strcasecmp.c: Likewise.
37269         * tests/test-c-strcasestr.c: Likewise.
37270         * tests/test-c-strncasecmp.c: Likewise.
37271         * tests/test-c-strstr.c: Likewise.
37272         * tests/test-canonicalize-lgpl.c: Likewise.
37273         * tests/test-canonicalize.c: Likewise.
37274         * tests/test-carray_list.c: Likewise.
37275         * tests/test-ceilf.c: Likewise.
37276         * tests/test-ceill.c: Likewise.
37277         * tests/test-count-one-bits.c: Likewise.
37278         * tests/test-crc.c: Likewise.
37279         * tests/test-dirname.c: Likewise.
37280         * tests/test-fbufmode.c: Likewise.
37281         * tests/test-fcntl.c: Likewise.
37282         * tests/test-fflush.c: Likewise.
37283         * tests/test-floorf.c: Likewise.
37284         * tests/test-floorl.c: Likewise.
37285         * tests/test-fopen.c: Likewise.
37286         * tests/test-fprintf-posix.c: Likewise.
37287         * tests/test-fprintf-posix.h: Likewise.
37288         * tests/test-fpurge.c: Likewise.
37289         * tests/test-freadable.c: Likewise.
37290         * tests/test-freadahead.c: Likewise.
37291         * tests/test-freading.c: Likewise.
37292         * tests/test-freopen.c: Likewise.
37293         * tests/test-frexp.c: Likewise.
37294         * tests/test-frexpl.c: Likewise.
37295         * tests/test-fseek.c: Likewise.
37296         * tests/test-fseeko.c: Likewise.
37297         * tests/test-fseterr.c: Likewise.
37298         * tests/test-fstrcmp.c: Likewise.
37299         * tests/test-ftell.c: Likewise.
37300         * tests/test-ftello.c: Likewise.
37301         * tests/test-fwritable.c: Likewise.
37302         * tests/test-fwriting.c: Likewise.
37303         * tests/test-getaddrinfo.c: Likewise.
37304         * tests/test-getpass.c: Likewise.
37305         * tests/test-gettimeofday.c: Likewise.
37306         * tests/test-hmac-md5.c: Likewise.
37307         * tests/test-hmac-sha1.c: Likewise.
37308         * tests/test-iconv.c: Likewise.
37309         * tests/test-iconvme.c: Likewise.
37310         * tests/test-inttypes.c: Likewise.
37311         * tests/test-isnan.c: Likewise.
37312         * tests/test-isnanf.c: Likewise.
37313         * tests/test-isnanl-nolibm.c: Likewise.
37314         * tests/test-isnanl.c: Likewise.
37315         * tests/test-isnanl.h: Likewise.
37316         * tests/test-ldexpl.c: Likewise.
37317         * tests/test-linked_list.c: Likewise.
37318         * tests/test-linkedhash_list.c: Likewise.
37319         * tests/test-locale.c: Likewise.
37320         * tests/test-localename.c: Likewise.
37321         * tests/test-lock.c: Likewise.
37322         * tests/test-lseek.c: Likewise.
37323         * tests/test-malloca.c: Likewise.
37324         * tests/test-math.c: Likewise.
37325         * tests/test-mbscasecmp.c: Likewise.
37326         * tests/test-mbscasestr1.c: Likewise.
37327         * tests/test-mbscasestr2.c: Likewise.
37328         * tests/test-mbscasestr3.c: Likewise.
37329         * tests/test-mbscasestr4.c: Likewise.
37330         * tests/test-mbschr.c: Likewise.
37331         * tests/test-mbscspn.c: Likewise.
37332         * tests/test-mbsncasecmp.c: Likewise.
37333         * tests/test-mbspbrk.c: Likewise.
37334         * tests/test-mbspcasecmp.c: Likewise.
37335         * tests/test-mbsrchr.c: Likewise.
37336         * tests/test-mbsspn.c: Likewise.
37337         * tests/test-mbsstr1.c: Likewise.
37338         * tests/test-mbsstr2.c: Likewise.
37339         * tests/test-mbsstr3.c: Likewise.
37340         * tests/test-md5.c: Likewise.
37341         * tests/test-memmem.c: Likewise.
37342         * tests/test-netinet_in.c: Likewise.
37343         * tests/test-open.c: Likewise.
37344         * tests/test-printf-frexp.c: Likewise.
37345         * tests/test-printf-frexpl.c: Likewise.
37346         * tests/test-printf-posix.c: Likewise.
37347         * tests/test-printf-posix.h: Likewise.
37348         * tests/test-rbtree_list.c: Likewise.
37349         * tests/test-rbtree_oset.c: Likewise.
37350         * tests/test-rbtreehash_list.c: Likewise.
37351         * tests/test-read-file.c: Likewise.
37352         * tests/test-rijndael.c: Likewise.
37353         * tests/test-search.c: Likewise.
37354         * tests/test-signbit.c: Likewise.
37355         * tests/test-sleep.c: Likewise.
37356         * tests/test-snprintf-posix.c: Likewise.
37357         * tests/test-snprintf-posix.h: Likewise.
37358         * tests/test-snprintf.c: Likewise.
37359         * tests/test-sprintf-posix.c: Likewise.
37360         * tests/test-sprintf-posix.h: Likewise.
37361         * tests/test-stat-time.c: Likewise.
37362         * tests/test-stdbool.c: Likewise.
37363         * tests/test-stdint.c: Likewise.
37364         * tests/test-stdio.c: Likewise.
37365         * tests/test-stdlib.c: Likewise.
37366         * tests/test-stpncpy.c: Likewise.
37367         * tests/test-strcasestr.c: Likewise.
37368         * tests/test-striconv.c: Likewise.
37369         * tests/test-striconveh.c: Likewise.
37370         * tests/test-striconveha.c: Likewise.
37371         * tests/test-string.c: Likewise.
37372         * tests/test-sys_select.c: Likewise.
37373         * tests/test-sys_socket.c: Likewise.
37374         * tests/test-sys_stat.c: Likewise.
37375         * tests/test-sys_time.c: Likewise.
37376         * tests/test-sysexits.c: Likewise.
37377         * tests/test-time.c: Likewise.
37378         * tests/test-tls.c: Likewise.
37379         * tests/test-trunc.c: Likewise.
37380         * tests/test-truncf.c: Likewise.
37381         * tests/test-truncl.c: Likewise.
37382         * tests/test-unistd.c: Likewise.
37383         * tests/test-vasnprintf-posix.c: Likewise.
37384         * tests/test-vasnprintf-posix2.c: Likewise.
37385         * tests/test-vasnprintf.c: Likewise.
37386         * tests/test-vasprintf-posix.c: Likewise.
37387         * tests/test-vasprintf.c: Likewise.
37388         * tests/test-verify.c: Likewise.
37389         * tests/test-vfprintf-posix.c: Likewise.
37390         * tests/test-vprintf-posix.c: Likewise.
37391         * tests/test-vsnprintf-posix.c: Likewise.
37392         * tests/test-vsnprintf.c: Likewise.
37393         * tests/test-vsprintf-posix.c: Likewise.
37394         * tests/test-wchar.c: Likewise.
37395         * tests/test-wctype.c: Likewise.
37396         * tests/test-wcwidth.c: Likewise.
37397         * tests/test-xstrtol.c: Likewise.
37398         * tests/test-xvasprintf.c: Likewise.
37399         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37400         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37401         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37402         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37403         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37404         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37405         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37406         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37407         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37408         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37409         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37410         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37411         * tests/uniname/test-uninames.c: Likewise.
37412         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37413         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
37414         * tests/unistdio/test-u16-printf1.h: Likewise.
37415         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37416         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37417         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37418         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37419         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37420         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37421         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37422         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
37423         * tests/unistdio/test-u32-printf1.h: Likewise.
37424         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37425         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37426         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37427         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37428         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37429         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37430         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37431         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
37432         * tests/unistdio/test-u8-printf1.h: Likewise.
37433         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37434         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37435         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37436         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37437         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37438         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37439         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37440         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
37441         * tests/unistdio/test-ulc-printf1.h: Likewise.
37442         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37443         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37444         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37445         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37446         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37447         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37448         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37449         * tests/uniwidth/test-u16-width.c: Likewise.
37450         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37451         * tests/uniwidth/test-u32-width.c: Likewise.
37452         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37453         * tests/uniwidth/test-u8-width.c: Likewise.
37454         * tests/uniwidth/test-uc_width.c: Likewise.
37455         * config/srclist-update: Likewise.
37456         (fixlicense): Update to GPLv3+.
37457
37458         Change copyright notice from LGPLv2.1+ to LGPLv3+.
37459         * tests/test-tsearch.c: Change copyright notice.
37460
37461         Change copyright notice from LGPLv2.0+ to LGPLv3+.
37462         * lib/c-strcaseeq.h: Change copyright notice.
37463         * lib/streq.h: Likewise.
37464         * lib/uniconv.h: Likewise.
37465         * lib/uniconv/u-conv-from-enc.h: Likewise.
37466         * lib/uniconv/u-conv-to-enc.h: Likewise.
37467         * lib/uniconv/u-strconv-from-enc.h: Likewise.
37468         * lib/uniconv/u-strconv-to-enc.h: Likewise.
37469         * lib/uniconv/u16-conv-from-enc.c: Likewise.
37470         * lib/uniconv/u16-conv-to-enc.c: Likewise.
37471         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
37472         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
37473         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
37474         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
37475         * lib/uniconv/u32-conv-from-enc.c: Likewise.
37476         * lib/uniconv/u32-conv-to-enc.c: Likewise.
37477         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
37478         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
37479         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
37480         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
37481         * lib/uniconv/u8-conv-from-enc.c: Likewise.
37482         * lib/uniconv/u8-conv-to-enc.c: Likewise.
37483         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
37484         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
37485         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
37486         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
37487         * lib/uniname.h: Likewise.
37488         * lib/uniname/uniname.c: Likewise.
37489         * lib/unistdio.h: Likewise.
37490         * lib/unistdio/u-asnprintf.h: Likewise.
37491         * lib/unistdio/u-asprintf.h: Likewise.
37492         * lib/unistdio/u-printf-args.c: Likewise.
37493         * lib/unistdio/u-printf-args.h: Likewise.
37494         * lib/unistdio/u-printf-parse.h: Likewise.
37495         * lib/unistdio/u-snprintf.h: Likewise.
37496         * lib/unistdio/u-sprintf.h: Likewise.
37497         * lib/unistdio/u-vasprintf.h: Likewise.
37498         * lib/unistdio/u-vsnprintf.h: Likewise.
37499         * lib/unistdio/u-vsprintf.h: Likewise.
37500         * lib/unistdio/u16-asnprintf.c: Likewise.
37501         * lib/unistdio/u16-asprintf.c: Likewise.
37502         * lib/unistdio/u16-printf-parse.c: Likewise.
37503         * lib/unistdio/u16-snprintf.c: Likewise.
37504         * lib/unistdio/u16-sprintf.c: Likewise.
37505         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
37506         * lib/unistdio/u16-u16-asprintf.c: Likewise.
37507         * lib/unistdio/u16-u16-snprintf.c: Likewise.
37508         * lib/unistdio/u16-u16-sprintf.c: Likewise.
37509         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
37510         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
37511         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
37512         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
37513         * lib/unistdio/u16-vasnprintf.c: Likewise.
37514         * lib/unistdio/u16-vasprintf.c: Likewise.
37515         * lib/unistdio/u16-vsnprintf.c: Likewise.
37516         * lib/unistdio/u16-vsprintf.c: Likewise.
37517         * lib/unistdio/u32-asnprintf.c: Likewise.
37518         * lib/unistdio/u32-asprintf.c: Likewise.
37519         * lib/unistdio/u32-printf-parse.c: Likewise.
37520         * lib/unistdio/u32-snprintf.c: Likewise.
37521         * lib/unistdio/u32-sprintf.c: Likewise.
37522         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
37523         * lib/unistdio/u32-u32-asprintf.c: Likewise.
37524         * lib/unistdio/u32-u32-snprintf.c: Likewise.
37525         * lib/unistdio/u32-u32-sprintf.c: Likewise.
37526         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
37527         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
37528         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
37529         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
37530         * lib/unistdio/u32-vasnprintf.c: Likewise.
37531         * lib/unistdio/u32-vasprintf.c: Likewise.
37532         * lib/unistdio/u32-vsnprintf.c: Likewise.
37533         * lib/unistdio/u32-vsprintf.c: Likewise.
37534         * lib/unistdio/u8-asnprintf.c: Likewise.
37535         * lib/unistdio/u8-asprintf.c: Likewise.
37536         * lib/unistdio/u8-printf-parse.c: Likewise.
37537         * lib/unistdio/u8-snprintf.c: Likewise.
37538         * lib/unistdio/u8-sprintf.c: Likewise.
37539         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
37540         * lib/unistdio/u8-u8-asprintf.c: Likewise.
37541         * lib/unistdio/u8-u8-snprintf.c: Likewise.
37542         * lib/unistdio/u8-u8-sprintf.c: Likewise.
37543         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
37544         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
37545         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
37546         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
37547         * lib/unistdio/u8-vasnprintf.c: Likewise.
37548         * lib/unistdio/u8-vasprintf.c: Likewise.
37549         * lib/unistdio/u8-vsnprintf.c: Likewise.
37550         * lib/unistdio/u8-vsprintf.c: Likewise.
37551         * lib/unistdio/ulc-asnprintf.c: Likewise.
37552         * lib/unistdio/ulc-asprintf.c: Likewise.
37553         * lib/unistdio/ulc-printf-parse.c: Likewise.
37554         * lib/unistdio/ulc-snprintf.c: Likewise.
37555         * lib/unistdio/ulc-sprintf.c: Likewise.
37556         * lib/unistdio/ulc-vasnprintf.c: Likewise.
37557         * lib/unistdio/ulc-vasprintf.c: Likewise.
37558         * lib/unistdio/ulc-vsnprintf.c: Likewise.
37559         * lib/unistdio/ulc-vsprintf.c: Likewise.
37560         * lib/unistr.h: Likewise.
37561         * lib/unistr/u-cpy-alloc.h: Likewise.
37562         * lib/unistr/u-cpy.h: Likewise.
37563         * lib/unistr/u-endswith.h: Likewise.
37564         * lib/unistr/u-move.h: Likewise.
37565         * lib/unistr/u-set.h: Likewise.
37566         * lib/unistr/u-startswith.h: Likewise.
37567         * lib/unistr/u-stpcpy.h: Likewise.
37568         * lib/unistr/u-stpncpy.h: Likewise.
37569         * lib/unistr/u-strcat.h: Likewise.
37570         * lib/unistr/u-strcpy.h: Likewise.
37571         * lib/unistr/u-strcspn.h: Likewise.
37572         * lib/unistr/u-strdup.h: Likewise.
37573         * lib/unistr/u-strlen.h: Likewise.
37574         * lib/unistr/u-strncat.h: Likewise.
37575         * lib/unistr/u-strncpy.h: Likewise.
37576         * lib/unistr/u-strnlen.h: Likewise.
37577         * lib/unistr/u-strpbrk.h: Likewise.
37578         * lib/unistr/u-strspn.h: Likewise.
37579         * lib/unistr/u-strstr.h: Likewise.
37580         * lib/unistr/u-strtok.h: Likewise.
37581         * lib/unistr/u16-check.c: Likewise.
37582         * lib/unistr/u16-chr.c: Likewise.
37583         * lib/unistr/u16-cmp.c: Likewise.
37584         * lib/unistr/u16-cpy-alloc.c: Likewise.
37585         * lib/unistr/u16-cpy.c: Likewise.
37586         * lib/unistr/u16-endswith.c: Likewise.
37587         * lib/unistr/u16-mblen.c: Likewise.
37588         * lib/unistr/u16-mbsnlen.c: Likewise.
37589         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37590         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37591         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37592         * lib/unistr/u16-mbtouc.c: Likewise.
37593         * lib/unistr/u16-mbtoucr.c: Likewise.
37594         * lib/unistr/u16-move.c: Likewise.
37595         * lib/unistr/u16-next.c: Likewise.
37596         * lib/unistr/u16-prev.c: Likewise.
37597         * lib/unistr/u16-set.c: Likewise.
37598         * lib/unistr/u16-startswith.c: Likewise.
37599         * lib/unistr/u16-stpcpy.c: Likewise.
37600         * lib/unistr/u16-stpncpy.c: Likewise.
37601         * lib/unistr/u16-strcat.c: Likewise.
37602         * lib/unistr/u16-strchr.c: Likewise.
37603         * lib/unistr/u16-strcmp.c: Likewise.
37604         * lib/unistr/u16-strcpy.c: Likewise.
37605         * lib/unistr/u16-strcspn.c: Likewise.
37606         * lib/unistr/u16-strdup.c: Likewise.
37607         * lib/unistr/u16-strlen.c: Likewise.
37608         * lib/unistr/u16-strmblen.c: Likewise.
37609         * lib/unistr/u16-strmbtouc.c: Likewise.
37610         * lib/unistr/u16-strncat.c: Likewise.
37611         * lib/unistr/u16-strncmp.c: Likewise.
37612         * lib/unistr/u16-strncpy.c: Likewise.
37613         * lib/unistr/u16-strnlen.c: Likewise.
37614         * lib/unistr/u16-strpbrk.c: Likewise.
37615         * lib/unistr/u16-strrchr.c: Likewise.
37616         * lib/unistr/u16-strspn.c: Likewise.
37617         * lib/unistr/u16-strstr.c: Likewise.
37618         * lib/unistr/u16-strtok.c: Likewise.
37619         * lib/unistr/u16-to-u32.c: Likewise.
37620         * lib/unistr/u16-to-u8.c: Likewise.
37621         * lib/unistr/u16-uctomb-aux.c: Likewise.
37622         * lib/unistr/u16-uctomb.c: Likewise.
37623         * lib/unistr/u32-check.c: Likewise.
37624         * lib/unistr/u32-chr.c: Likewise.
37625         * lib/unistr/u32-cmp.c: Likewise.
37626         * lib/unistr/u32-cpy-alloc.c: Likewise.
37627         * lib/unistr/u32-cpy.c: Likewise.
37628         * lib/unistr/u32-endswith.c: Likewise.
37629         * lib/unistr/u32-mblen.c: Likewise.
37630         * lib/unistr/u32-mbsnlen.c: Likewise.
37631         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37632         * lib/unistr/u32-mbtouc.c: Likewise.
37633         * lib/unistr/u32-mbtoucr.c: Likewise.
37634         * lib/unistr/u32-move.c: Likewise.
37635         * lib/unistr/u32-next.c: Likewise.
37636         * lib/unistr/u32-prev.c: Likewise.
37637         * lib/unistr/u32-set.c: Likewise.
37638         * lib/unistr/u32-startswith.c: Likewise.
37639         * lib/unistr/u32-stpcpy.c: Likewise.
37640         * lib/unistr/u32-stpncpy.c: Likewise.
37641         * lib/unistr/u32-strcat.c: Likewise.
37642         * lib/unistr/u32-strchr.c: Likewise.
37643         * lib/unistr/u32-strcmp.c: Likewise.
37644         * lib/unistr/u32-strcpy.c: Likewise.
37645         * lib/unistr/u32-strcspn.c: Likewise.
37646         * lib/unistr/u32-strdup.c: Likewise.
37647         * lib/unistr/u32-strlen.c: Likewise.
37648         * lib/unistr/u32-strmblen.c: Likewise.
37649         * lib/unistr/u32-strmbtouc.c: Likewise.
37650         * lib/unistr/u32-strncat.c: Likewise.
37651         * lib/unistr/u32-strncmp.c: Likewise.
37652         * lib/unistr/u32-strncpy.c: Likewise.
37653         * lib/unistr/u32-strnlen.c: Likewise.
37654         * lib/unistr/u32-strpbrk.c: Likewise.
37655         * lib/unistr/u32-strrchr.c: Likewise.
37656         * lib/unistr/u32-strspn.c: Likewise.
37657         * lib/unistr/u32-strstr.c: Likewise.
37658         * lib/unistr/u32-strtok.c: Likewise.
37659         * lib/unistr/u32-to-u16.c: Likewise.
37660         * lib/unistr/u32-to-u8.c: Likewise.
37661         * lib/unistr/u32-uctomb.c: Likewise.
37662         * lib/unistr/u8-check.c: Likewise.
37663         * lib/unistr/u8-chr.c: Likewise.
37664         * lib/unistr/u8-cmp.c: Likewise.
37665         * lib/unistr/u8-cpy-alloc.c: Likewise.
37666         * lib/unistr/u8-cpy.c: Likewise.
37667         * lib/unistr/u8-endswith.c: Likewise.
37668         * lib/unistr/u8-mblen.c: Likewise.
37669         * lib/unistr/u8-mbsnlen.c: Likewise.
37670         * lib/unistr/u8-mbtouc-aux.c: Likewise.
37671         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37672         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37673         * lib/unistr/u8-mbtouc.c: Likewise.
37674         * lib/unistr/u8-mbtoucr.c: Likewise.
37675         * lib/unistr/u8-move.c: Likewise.
37676         * lib/unistr/u8-next.c: Likewise.
37677         * lib/unistr/u8-prev.c: Likewise.
37678         * lib/unistr/u8-set.c: Likewise.
37679         * lib/unistr/u8-startswith.c: Likewise.
37680         * lib/unistr/u8-stpcpy.c: Likewise.
37681         * lib/unistr/u8-stpncpy.c: Likewise.
37682         * lib/unistr/u8-strcat.c: Likewise.
37683         * lib/unistr/u8-strchr.c: Likewise.
37684         * lib/unistr/u8-strcmp.c: Likewise.
37685         * lib/unistr/u8-strcpy.c: Likewise.
37686         * lib/unistr/u8-strcspn.c: Likewise.
37687         * lib/unistr/u8-strdup.c: Likewise.
37688         * lib/unistr/u8-strlen.c: Likewise.
37689         * lib/unistr/u8-strmblen.c: Likewise.
37690         * lib/unistr/u8-strmbtouc.c: Likewise.
37691         * lib/unistr/u8-strncat.c: Likewise.
37692         * lib/unistr/u8-strncmp.c: Likewise.
37693         * lib/unistr/u8-strncpy.c: Likewise.
37694         * lib/unistr/u8-strnlen.c: Likewise.
37695         * lib/unistr/u8-strpbrk.c: Likewise.
37696         * lib/unistr/u8-strrchr.c: Likewise.
37697         * lib/unistr/u8-strspn.c: Likewise.
37698         * lib/unistr/u8-strstr.c: Likewise.
37699         * lib/unistr/u8-strtok.c: Likewise.
37700         * lib/unistr/u8-to-u16.c: Likewise.
37701         * lib/unistr/u8-to-u32.c: Likewise.
37702         * lib/unistr/u8-uctomb-aux.c: Likewise.
37703         * lib/unistr/u8-uctomb.c: Likewise.
37704         * lib/unitypes.h: Likewise.
37705         * lib/uniwidth.h: Likewise.
37706         * lib/uniwidth/cjk.h: Likewise.
37707         * lib/uniwidth/u16-strwidth.c: Likewise.
37708         * lib/uniwidth/u16-width.c: Likewise.
37709         * lib/uniwidth/u32-strwidth.c: Likewise.
37710         * lib/uniwidth/u32-width.c: Likewise.
37711         * lib/uniwidth/u8-strwidth.c: Likewise.
37712         * lib/uniwidth/u8-width.c: Likewise.
37713         * lib/uniwidth/width.c: Likewise.
37714
37715 2007-10-07  Bruno Haible  <bruno@clisp.org>
37716
37717         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
37718         The file is still under LGPL (see modules/inttypes).
37719
37720 2007-10-06  Bruno Haible  <bruno@clisp.org>
37721
37722         * modules/trunc (Dependencies): Add 'extensions'.
37723         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
37724         Reported by Ben Pfaff <blp@gnu.org>.
37725
37726 2007-10-06  Bruno Haible  <bruno@clisp.org>
37727
37728         * modules/freopen-tests: New file.
37729         * tests/test-freopen.c: New file.
37730
37731         * modules/fopen-tests: New file.
37732         * tests/test-fopen.c: New file.
37733
37734         * modules/fopen: New file.
37735         * lib/fopen.c: New file.
37736         * m4/fopen.m4: New file.
37737         * modules/freopen: New file.
37738         * lib/freopen.c: New file.
37739         * m4/freopen.m4: New file.
37740         * lib/stdio.in.h (fopen, freopen): New declarations.
37741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
37742         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37743         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
37744         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37745         * doc/functions/fopen.texi: Mention the 'fopen' module.
37746         * doc/functions/freopen.texi: Mention the 'freopen' module.
37747
37748 2007-10-06  Bruno Haible  <bruno@clisp.org>
37749
37750         * modules/open-tests: New file.
37751         * tests/test-open.c: New file.
37752
37753         * modules/open: New file.
37754         * lib/open.c: New file.
37755         * m4/open.m4: New file.
37756         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
37757         lib/open.c does.
37758         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
37759         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
37760         macros.
37761         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
37762         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
37763         REPLACE_OPEN.
37764         * doc/functions/open.texi: Mention the 'open' module.
37765
37766 2007-10-04  Bruno Haible  <bruno@clisp.org>
37767
37768         * modules/ceill-tests: New file.
37769         * tests/test-ceill.c: New file.
37770
37771         * modules/ceill: New file.
37772         * lib/ceill.c: Replace entire file.
37773         * m4/ceill.m4: New file.
37774         * lib/math.in.h (ceill): Replace declaration.
37775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
37776         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
37777         * doc/functions/ceill.texi: Mention the 'ceill' module.
37778         * modules/mathl (Files): Remove lib/ceill.c.
37779         (Depends-on): Add ceill.
37780
37781 2007-10-04  Bruno Haible  <bruno@clisp.org>
37782
37783         * modules/ceilf-tests: New file.
37784         * tests/test-ceilf.c: New file.
37785
37786         * modules/ceilf: New file.
37787         * lib/ceil.c: New file.
37788         * lib/ceilf.c: New file.
37789         * m4/ceilf.m4: New file.
37790         * lib/math.in.h (ceilf): New declaration.
37791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
37792         HAVE_DECL_CEILF.
37793         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
37794         HAVE_DECL_CEILF.
37795         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
37796
37797 2007-10-04  Bruno Haible  <bruno@clisp.org>
37798
37799         * modules/floorl-tests: New file.
37800         * tests/test-floorl.c: New file.
37801
37802         * modules/floorl: New file.
37803         * lib/floorl.c: Replace entire file.
37804         * m4/floorl.m4: New file.
37805         * lib/math.in.h (floorl): Replace declaration.
37806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
37807         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
37808         * doc/functions/floorl.texi: Mention the 'floorl' module.
37809         * modules/mathl (Files): Remove lib/floorl.c.
37810         (Depends-on): Add floorl.
37811
37812 2007-10-04  Bruno Haible  <bruno@clisp.org>
37813
37814         * modules/floorf-tests: New file.
37815         * tests/test-floorf.c: New file.
37816
37817         * modules/floorf: New file.
37818         * lib/floor.c: New file.
37819         * lib/floorf.c: New file.
37820         * m4/floorf.m4: New file.
37821         * lib/math.in.h (floorf): New declaration.
37822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
37823         HAVE_DECL_FLOORF.
37824         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
37825         HAVE_DECL_FLOORF.
37826         * doc/functions/floorf.texi: Mention the 'floorf' module.
37827
37828 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
37829             Bruno Haible  <bruno@clisp.org>
37830
37831         Advertise for the Git server instead of the CVS server.
37832         * doc/gnulib-intro.texi (Steady Development): Mention the Git
37833         repository instead of the CVS one.
37834         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
37835         about all VCS systems generically.
37836         * doc/gnulib.texi (Introduction): Capitalize `Git'.
37837
37838 2007-10-04  Bruno Haible  <bruno@clisp.org>
37839
37840         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
37841         means.
37842         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
37843
37844 2007-10-04  Bruno Haible  <bruno@clisp.org>
37845
37846         * modules/truncl-tests: New file.
37847         * tests/test-truncl.c: New file.
37848
37849         * modules/truncl: New file.
37850         * lib/truncl.c: New file.
37851         * m4/truncl.m4: New file.
37852         * lib/math.in.h (truncl): New declaration.
37853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
37854         HAVE_DECL_TRUNCL.
37855         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
37856         HAVE_DECL_TRUNCL.
37857         * doc/functions/truncl.texi: Mention the 'truncl' module.
37858
37859 2007-10-04  Bruno Haible  <bruno@clisp.org>
37860
37861         * modules/truncf-tests: New file.
37862         * tests/test-truncf.c: New file.
37863
37864         * modules/truncf: New file.
37865         * lib/trunc.c: Make paramerizable through USE_* macros.
37866         * lib/truncf.c: New file.
37867         * m4/truncf.m4: New file.
37868         * lib/math.in.h (truncf): New declaration.
37869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
37870         HAVE_DECL_TRUNCF.
37871         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
37872         HAVE_DECL_TRUNCF.
37873         * doc/functions/truncf.texi: Mention the 'truncf' module.
37874
37875 2007-10-03  Bruno Haible  <bruno@clisp.org>
37876
37877         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
37878         augmentation also for tests modules.
37879         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
37880         * modules/atexit-tests (Makefile.am): Likewise.
37881         * modules/binary-io-tests (Makefile.am): Likewise.
37882         * modules/c-strcase-tests (Makefile.am): Likewise.
37883         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
37884         * modules/canonicalize-tests (Makefile.am): Likewise.
37885         * modules/closein-tests (Makefile.am): Likewise.
37886         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37887         * modules/freadahead-tests (Makefile.am): Likewise.
37888         * modules/fseek-tests (Makefile.am): Likewise.
37889         * modules/fseeko-tests (Makefile.am): Likewise.
37890         * modules/ftell-tests (Makefile.am): Likewise.
37891         * modules/ftello-tests (Makefile.am): Likewise.
37892         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
37893         * modules/isnanl-tests (Makefile.am): Likewise.
37894         * modules/lseek-tests (Makefile.am): Likewise.
37895         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37896         * modules/mbscasestr-tests (Makefile.am): Likewise.
37897         * modules/mbschr-tests (Makefile.am): Likewise.
37898         * modules/mbscspn-tests (Makefile.am): Likewise.
37899         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37900         * modules/mbspbrk-tests (Makefile.am): Likewise.
37901         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37902         * modules/mbsrchr-tests (Makefile.am): Likewise.
37903         * modules/mbsspn-tests (Makefile.am): Likewise.
37904         * modules/mbsstr-tests (Makefile.am): Likewise.
37905         * modules/printf-posix-tests (Makefile.am): Likewise.
37906         * modules/snprintf-posix-tests (Makefile.am): Likewise.
37907         * modules/sprintf-posix-tests (Makefile.am): Likewise.
37908         * modules/tsearch-tests (Makefile.am): Likewise.
37909         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37910         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37911         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37912         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37913         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37914         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37915         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37916         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37917         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
37918         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
37919         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37920         * modules/xstrtol-tests (Makefile.am): Likewise.
37921         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37922         * modules/yesno-tests (Makefile.am): Likewise.
37923
37924 2007-10-03  Bruno Haible  <bruno@clisp.org>
37925
37926         * modules/trunc-tests: New file.
37927         * tests/test-trunc.c: New file.
37928
37929         * modules/trunc: New file.
37930         * lib/trunc.c: New file.
37931         * m4/trunc.m4: New file.
37932         * lib/math.in.h (trunc): New declaration.
37933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
37934         HAVE_DECL_TRUNC.
37935         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
37936         HAVE_DECL_TRUNC.
37937         * doc/functions/trunc.texi: Mention the 'trunc' module.
37938
37939 2007-10-03  Bruno Haible  <bruno@clisp.org>
37940
37941         * tests/test-fpending.c: New file, mostly copied
37942         from coreutils/lib/t-fpending.c.
37943         * modules/fpending-tests: New file.
37944
37945 2007-10-03  Bruno Haible  <bruno@clisp.org>
37946
37947         Port the stdio extensions to QNX (untested).
37948         * lib/fseterr.c (fseterr): Add support for QNX.
37949         * lib/fbufmode.c (fbufmode): Likewise.
37950         * lib/freadable.c (freadable): Likewise.
37951         * lib/fwritable.c (fwritable): Likewise.
37952         * lib/freading.c (freading): Likewise.
37953         * lib/fwriting.c (fwriting): Likewise.
37954         * lib/freadahead.c (freadahed): Likewise.
37955         * lib/fpurge.c (fpurge): Likewise.
37956         * lib/fseeko.c (rpl_fseeko): Likewise.
37957
37958 2007-10-03  Bruno Haible  <bruno@clisp.org>
37959             Jim Meyering  <jim@meyering.net>
37960             Eric Blake  <ebb9@byu.net>
37961
37962         * doc/relocatable.texi: Use @command instead of @program.
37963
37964 2007-10-02  Jim Meyering  <jim@meyering.net>
37965
37966         Perform one more "_.h" -> ".in.h" substitution.
37967         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
37968         instead of unistd_.h here, too.
37969
37970 2007-10-01  Bruno Haible  <bruno@clisp.org>
37971
37972         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
37973         Needed for the alloca-opt module.
37974
37975 2007-09-30  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/alloca.in.h: Renamed from lib/alloca_.h.
37978         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
37979         alloca_.h.
37980         * lib/argz.in.h: Renamed from lib/argz_.h.
37981         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
37982         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
37983         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
37984         byteswap_.h.
37985         * lib/dirent.in.h: Renamed from lib/dirent_.h.
37986         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
37987         dirent_.h.
37988         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
37989         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
37990         fcntl_.h.
37991         * lib/float.in.h: Renamed from lib/float_.h.
37992         * modules/float (Files, Makefile.am): Use float.in.h instead of
37993         float_.h.
37994         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
37995         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
37996         fnmatch_.h.
37997         * lib/getopt.in.h: Renamed from lib/getopt_.h.
37998         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
37999         getopt_.h.
38000         * lib/glob.in.h: Renamed from lib/glob_.h.
38001         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38002         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38003         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38004         iconv_.h.
38005         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38006         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38007         inttypes_.h.
38008         * lib/locale.in.h: Renamed from lib/locale_.h.
38009         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38010         locale_.h.
38011         * lib/math.in.h: Renamed from lib/math_.h.
38012         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38013         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38014         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38015         of netinet_in_.h. Add dependency.
38016         * lib/poll.in.h: Renamed from lib/poll_.h.
38017         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38018         * lib/search.in.h: Renamed from lib/search_.h.
38019         * modules/search (Files, Makefile.am): Use search.in.h instead of
38020         search_.h.
38021         * lib/signal.in.h: Renamed from lib/signal_.h.
38022         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38023         _signal.h.
38024         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38025         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38026         stdbool_.h.
38027         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38028         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38029         stdint_.h.
38030         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38031         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38032         stdio_.h.
38033         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38034         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38035         stdlib_.h.
38036         * lib/string.in.h: Renamed from lib/string_.h.
38037         * modules/string (Files, Makefile.am): Use string.in.h instead of
38038         string_.h.
38039         * doc/gnulib-tool.texi (Initial import): Update.
38040         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38041         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38042         of sys_select_.h. Add dependency.
38043         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38044         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38045         of sys_socket_.h.
38046         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38047         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38048         sys_stat_.h.
38049         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38050         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38051         sys_time_.h.
38052         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38053         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38054         sysexits_.h.
38055         * lib/time.in.h: Renamed from lib/time_.h.
38056         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38057         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38058         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38059         unistd_.h.
38060         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38061         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38062         wchar_.h.
38063         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38064         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38065         wctype_.h.
38066         * build-aux/bootstrap (slurp): Update.
38067         * lib/.cppi-disable: Update.
38068
38069 2007-09-30  Bruno Haible  <bruno@clisp.org>
38070
38071         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38072         Needed on BeOS.
38073
38074 2007-09-30  Bruno Haible  <bruno@clisp.org>
38075
38076         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38077
38078 2007-09-29  Bruno Haible  <bruno@clisp.org>
38079
38080         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38081
38082 2007-09-29  Bruno Haible  <bruno@clisp.org>
38083
38084         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38085         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38086         * build-aux/install-reloc: Compile also areadlink.c.
38087         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38088
38089 2007-09-29  Bruno Haible  <bruno@clisp.org>
38090
38091         * gnulib-tool (func_emit_initmacro_done): Indentation.
38092
38093 2007-09-29  Bruno Haible  <bruno@clisp.org>
38094
38095         * README: Add CVS checkout update instructions.
38096         Info from Bob Proulx <bob@proulx.com>.
38097
38098 2007-09-28  Eric Blake  <ebb9@byu.net>
38099
38100         Provide move-if-change.
38101         * build-aux/move-if-change: New file, based on best practice
38102         rather than any canonical upstream location.
38103
38104 2007-09-28  Jim Meyering  <jim@meyering.net>
38105
38106         Fix canonicalize loop-detection corner case.
38107         Do not attempt to stat the symlink values stored via seen_triple.
38108         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38109         on linux-2.6.18, (but not 2.6.22).
38110         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38111         triple_compare.  The former compares dev,ino,filename, while the latter
38112         would actually stat dirname(filename) when dev and ino were equal.
38113         * lib/hash-triple.c: Install <string.h>.
38114         (STREQ): Define.
38115         (triple_compare_ino_str): New function.
38116         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38117
38118 2007-09-28  Eric Blake  <ebb9@byu.net>
38119
38120         Enforce that AC_REPLACE_FUNCS files exist.
38121         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38122         override check for typos.
38123
38124         Fix test-closein on Solaris 10.
38125         * tests/test-closein.c (main): Don't assume stdin can be inherited
38126         closed on all systems.
38127         * tests/test-closein.sh: Likewise.
38128         Reported by Piotr Tarnowski.
38129
38130 2007-09-28  Jim Meyering  <jim@meyering.net>
38131
38132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38133
38134 2007-09-27  Jim Meyering  <jim@meyering.net>
38135
38136         canonicalize: Avoid a false-positive cycle failure.
38137         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38138         Sort.  Remove cycle-check.
38139         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38140         not cycle-check.h.
38141         (seen_triple): New function.
38142         (canonicalize_filename_mode): Use it instead of cycle-check.
38143         * tests/test-canonicalize.c: Add a test for this bug.
38144         * tests/test-canonicalize.sh: Set up and run the test.
38145
38146         New module, file-set, from coreutils.
38147         * modules/file-set: Define it.
38148         * lib/file-set.c, lib/file-set.h: Implement.
38149
38150         New module, hash-triple, from coreutils.
38151         * modules/hash-triple: Define it.
38152         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38153
38154 2007-09-25  Eric Blake  <ebb9@byu.net>
38155
38156         Fix strerror on Interix.
38157         * lib/string_.h (strerror): Declare replacement.
38158         * doc/functions/strerror.texi (strerror): Document the Interix
38159         shortcoming.
38160         * modules/string (Makefile.am): Support new hooks.
38161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38162         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38163         gl_FUNC_STRERROR_SEPARATE.
38164         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38165         * lib/strerror.c (rpl_strerror): Provide replacement.
38166         * modules/strerror (Depends-on): Add string.
38167         (configure.ac): Detect use of module.
38168         * tests/test-strerror.c: New file.
38169         * modules/strerror-tests: New test module.
38170         * modules/argp (Depends-on): Add strerror.
38171         * modules/error (Depends-on): Likewise.
38172         Reported by Martin Koeppe.
38173
38174 2007-09-24  Bruno Haible  <bruno@clisp.org>
38175
38176         * README: Update git instructions.
38177
38178 2007-09-24  Eric Blake  <ebb9@byu.net>
38179
38180         Revert fpending breakage from 2007-09-08.
38181         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38182         __fpending.c.
38183
38184 2007-09-24  Jim Meyering  <jim@meyering.net>
38185
38186         filenamecat.c: Add a test.
38187         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38188         showing how the function works when DIR is the empty string.
38189
38190 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38191
38192         * tests/test-canonicalize.sh: Turn on executable bit.
38193
38194 2007-09-19  Eric Blake  <ebb9@byu.net>
38195
38196         * README: Update CVS instructions.
38197
38198 2007-09-18  Bruno Haible  <bruno@clisp.org>
38199
38200         * modules/areadlink: New file.
38201         * lib/areadlink.h (areadlink): New declaration.
38202         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38203
38204 2007-09-17  Jim Meyering  <jim@meyering.net>
38205
38206         * lib/savewd.c (ESTALE) [!defined]: Define.
38207         Reported to be required on Interix by Martin Koeppe.
38208
38209 2007-09-17  Bruno Haible  <bruno@clisp.org>
38210
38211         * gnulib-tool (func_version): Use $version.
38212
38213 2007-09-16  Bruno Haible  <bruno@clisp.org>
38214
38215         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38216         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38217         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38218         Reported by Greg Schafer <gschafer@zip.com.au>.
38219
38220 2007-09-15  Bruno Haible  <bruno@clisp.org>
38221
38222         * gnulib-tool (sed): Try a little harder to make bash understand the
38223         alias.
38224         Reported by Bruce Korb <bruce.korb@gmail.com>.
38225
38226 2007-09-13  Eric Blake  <ebb9@byu.net>
38227
38228         * ChangeLog: Remove conflict markers.
38229
38230 2007-09-13  Simon Josefsson  <simon@josefsson.org>
38231
38232         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
38233         Reported by Bruno Haible <bruno@clisp.org>.
38234
38235 2007-09-12  Bruno Haible  <bruno@clisp.org>
38236
38237         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
38238         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
38239         is not defined.
38240
38241 2007-09-12  Eric Blake  <ebb9@byu.net>
38242
38243         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
38244         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
38245         Autoconf definition.
38246         * modules/euidaccess (Depends-on): Add extensions, for
38247         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
38248         * modules/fnmatch (Depends-on): Likewise.
38249         * modules/getaddrinfo (Depends-on): Likewise.
38250         * modules/getdelim (Depends-on): Likewise.
38251         * modules/getline (Depends-on): Likewise.
38252         * modules/getsubopt (Depends-on): Likewise.
38253         * modules/gettext (Depends-on): Likewise.
38254         * modules/group-member (Depends-on): Likewise.
38255         * modules/mbchar (Depends-on): Likewise.
38256         * modules/memmem (Depends-on): Likewise.
38257         * modules/mempcpy (Depends-on): Likewise.
38258         * modules/memrchr (Depends-on): Likewise.
38259         * modules/pagealign_alloc (Depends-on): Likewise.
38260         * modules/readutmp (Depends-on): Likewise.
38261         * modules/stpcpy (Depends-on): Likewise.
38262         * modules/stpncpy (Depends-on): Likewise.
38263         * modules/strchrnul (Depends-on): Likewise.
38264         * modules/strndup (Depends-on): Likewise.
38265         * modules/strsep (Depends-on): Likewise.
38266         * modules/strverscmp (Depends-on): Likewise.
38267         * modules/vasprintf (Depends-on): Likewise.
38268         * modules/wcwidth (Depends-on): Likewise.
38269         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38270         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38271         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38273         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38274         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38275         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38276         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38277         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38278         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38279         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38280         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38281         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38282         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38283         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38284         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38285         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38286         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38287         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38288         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38289         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38290         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38291         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38292         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38293         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38295         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38296         so that lock.m4 can be used in gettext without extensions module.
38297
38298 2007-09-11  Bruno Haible  <bruno@clisp.org>
38299
38300         * m4/isc-posix.m4: Remove file.
38301         Suggested by Eric Blake.
38302
38303 2007-09-11  Eric Blake  <ebb9@byu.net>
38304
38305         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38306
38307 2007-09-10  Bruno Haible  <bruno@clisp.org>
38308
38309         * posix-modules: Fix typo in error message.
38310         Reported by Matt <mkraai@beckman.com>.
38311
38312 2007-09-09  Bruno Haible  <bruno@clisp.org>
38313
38314         * doc/functions/getdelim.texi: Update list of platforms lacking the
38315         function.
38316         * doc/functions/getline.texi: Likewise.
38317
38318 2007-09-09  Jim Meyering  <jim@meyering.net>
38319
38320         * lib/hash.c (hash_initialize): Detect calloc failure.
38321         Reported by Bruno Haible.
38322
38323 2007-09-09  Bruno Haible  <bruno@clisp.org>
38324
38325         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38326         malloc or realloc fails.
38327
38328 2007-09-09  Bruno Haible  <bruno@clisp.org>
38329
38330         * modules/getcwd (Depends-on): Add malloc-posix.
38331         * modules/glob (Depends-on): Likewise.
38332         * modules/putenv (Depends-on): Likewise.
38333         * modules/strdup (Depends-on): Likewise.
38334         * modules/getdelim (Depends-on): Add realloc-posix.
38335         * modules/read-file (Depends-on): Likewise.
38336
38337 2007-09-09  Bruno Haible  <bruno@clisp.org>
38338
38339         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38340         (gl_FUNC_MALLOC_POSIX): Require it.
38341         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38342         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38343         * modules/realloc (Files): Add m4/malloc.m4.
38344         * modules/calloc (Files): Likewise.
38345
38346 2007-09-09  Bruno Haible  <bruno@clisp.org>
38347
38348         * modules/malloc-posix: New file.
38349         * modules/malloc (Depends-on): Add malloc-posix.
38350         * lib/malloc.c: Include errno.h.
38351         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38352         and a POSIX-compatible malloc into a single function. Set ENOMEM
38353         when returning NULL.
38354         * m4/malloc.m4: New file.
38355         * doc/functions/malloc.texi: Mention the malloc-posix module.
38356         * lib/stdlib_.h (malloc): New declaration.
38357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38358         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38359         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38360         and HAVE_MALLOC_POSIX.
38361
38362 2007-09-09  Bruno Haible  <bruno@clisp.org>
38363
38364         * modules/realloc-posix: New file.
38365         * modules/realloc (Depends-on): Add realloc-posix.
38366         * lib/realloc.c: Include errno.h.
38367         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38368         and a POSIX-compatible realloc into a single function. Set ENOMEM
38369         when returning NULL.
38370         * m4/realloc.m4: New file.
38371         * doc/functions/realloc.texi: Mention the realloc-posix module.
38372         * lib/stdlib_.h (realloc): New declaration.
38373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38374         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38375         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38376         and HAVE_REALLOC_POSIX.
38377
38378 2007-09-09  Bruno Haible  <bruno@clisp.org>
38379
38380         * modules/calloc-posix: New file.
38381         * modules/calloc (Depends-on): Add calloc-posix.
38382         * lib/calloc.c: Include errno.h.
38383         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38384         and a POSIX-compatible calloc into a single function. Set ENOMEM
38385         when returning NULL.
38386         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38387         * doc/functions/calloc.texi: Mention the calloc-posix module.
38388         * lib/stdlib_.h (calloc): New declaration.
38389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38390         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
38391         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
38392         and HAVE_CALLOC_POSIX.
38393
38394 2007-09-09  Bruno Haible  <bruno@clisp.org>
38395
38396         Allow for modules to show an arbitrary notice.
38397         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
38398         * gnulib-tool: New option --extract-notice.
38399         (func_usage): Document it.
38400         (sed_extract_prog): Update.
38401         (func_get_notice): New function.
38402         (func_modules_notice): New function.
38403         (func_import, func_create_testdir): Invoke it.
38404         Suggested by Jim Meyering.
38405
38406 2007-09-09  Bruno Haible  <bruno@clisp.org>
38407
38408         * gnulib-tool: New options --verbose, --quiet.
38409         (func_usage): Document them.
38410         (verbose): New variable.
38411         (func_execute_command): New function.
38412         (func_import): Don't show the module list and the file list if
38413         $verbose < 0.
38414         (func_create_testdir): Likewise. Use func_execute_command.
38415         (func_create_megatestdir): Use func_execute_command.
38416
38417 2007-09-08  Bruno Haible  <bruno@clisp.org>
38418
38419         * gnulib-tool (func_import): Prefer rsync over wget when available,
38420         for fetching the PO files.
38421
38422 2007-09-08  Bruno Haible  <bruno@clisp.org>
38423
38424         * posix-modules: New file. Portions copied from gnulib-tool.
38425         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
38426
38427 2007-09-08  Jim Meyering  <jim@meyering.net>
38428
38429         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
38430         * lib/fpending.h: Rename from __fpending.h.
38431         * lib/fpending.c: Rename from __fpending.c.
38432         Include "fpending.h", not "__fpending.h".
38433         * lib/__fpending.h, lib/__fpending.c: Remove files.
38434         * modules/fpending (Files): Reflect new file names.
38435         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
38436
38437 2007-09-08  Bruno Haible  <bruno@clisp.org>
38438
38439         * m4/inttypes-h.m4: Remove stub file.
38440
38441 2007-09-07  Simon Josefsson  <simon@josefsson.org>
38442
38443         * doc/headers/stdint.texi: Discuss #include_next issue.
38444
38445 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38446
38447         * build-aux/bootstrap: Remove obsolete comment about wget --help.
38448
38449 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38450
38451         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
38452         in variable name.
38453
38454 2007-09-03  Jim Meyering  <jim@meyering.net>
38455
38456         New module: git-version-gen.
38457         * modules/git-version-gen: New file.
38458
38459         Import changes from coreutils for bootstrap script.
38460
38461         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
38462
38463         bootstrap: uses rsync to download the .po files
38464         * build-aux/bootstrap (po_download_command_format): New global.
38465         (download_po_files): Use rsync.
38466         (update_po_files): Don't remove .po files after download,
38467         so future rsync runs can take advantage of the copies.
38468
38469         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
38470
38471         Solve the unnecessary-.po-file-regeneration problem once and for all.
38472         * build-aux/bootstrap (download_po_files): New function, renamed from
38473         get_translations.  Now, downloads, but doesn't update LINGUAS.
38474         (update_po_files): New function.
38475
38476         bootstrap: Ignore more.
38477         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
38478         uniwidth to e.g., lib/.gitignore.
38479         (slurp): Handle the sys_stat_.h -> sys mapping, too.
38480
38481         * build-aux/bootstrap: New setting: vc_ignore.
38482         (insert_sorted_if_absent): Create $file if absent.
38483         Adapt to new, possibly empty, list: $vc_ignore.
38484
38485         bootstrap: generate more ignorable names
38486         * build-aux/bootstrap (slurp): When generating ignorable names,
38487         also map .sin to .sed, .gperf to .c, and .y to .c.
38488
38489 2007-09-03  Jim Meyering  <jim@meyering.net>
38490
38491         * build-aux/git-version-gen: New file, from coreutils.  For details, see
38492         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
38493
38494 2007-09-02  Bruno Haible  <bruno@clisp.org>
38495
38496         Fix mis-recognition of 'mcs' on QNX 6.
38497         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
38498         output contains the string "Mono".
38499         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
38500         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
38501
38502 2007-09-01  Bruno Haible  <bruno@clisp.org>
38503
38504         Fix collision between uniwidth/* and linebreak modules.
38505         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
38506         u32_width): Remove declarations.
38507         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
38508         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
38509         streq3, streq2, streq1, streq0): Remove functions.
38510         (STREQ): Remove macro.
38511         (is_cjk_encoding): Remove function.
38512         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
38513         (uc_width, u8_width, u16_width, u32_width): Remove functions.
38514         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
38515         * NEWS: Document the change.
38516
38517 2007-09-01  Bruno Haible  <bruno@clisp.org>
38518
38519         * lib/streq.h: Add double-inclusion guard.
38520
38521 2007-09-01  Karl Berry  <karl@gnu.org>
38522
38523         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
38524
38525 2007-08-28  Jim Meyering  <jim@meyering.net>
38526
38527         Rename mreadlink_with_size to areadlink_with_size.
38528         * NEWS: Document the change.
38529         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
38530         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
38531         * lib/mreadlink.h: Rename this to...
38532         * lib/areadlink.h: ...this.
38533         * modules/mreadlink-with-size: Rename this to...
38534         * modules/areadlink-with-size: ...this.
38535         * lib/canonicalize.c: Reflect the renaming.
38536         * modules/canonicalize: Likewise.
38537
38538 2007-08-26  Bruno Haible  <bruno@clisp.org>
38539
38540         * gnulib-tool (func_import): When deciding which files to remove,
38541         consider also dangling symbolic links.
38542         Reported by Eric Blake.
38543
38544 2007-08-26  Bruno Haible  <bruno@clisp.org>
38545
38546         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
38547
38548 2007-08-23  Simon Josefsson  <simon@josefsson.org>
38549
38550         * lib/readline.c: Don't include getline.h, the prototype is now
38551         found in stdio.h.
38552
38553 2007-08-23  Jim Meyering  <jim@meyering.net>
38554
38555         Getdelim touchup.
38556         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
38557         around the funlockfile call, since funlockfile never sets errno.
38558         Don't set errno upon failed realloc.
38559
38560 2007-08-22  Eric Blake  <ebb9@byu.net>
38561
38562         Getline touchups.
38563         * lib/getdelim.c (getdelim): Revert regression that required *n to
38564         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
38565         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
38566         getdelim, rather than whether implementation is missing.
38567         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
38568         * lib/stdio_.h (getline): Also declare if replacement is
38569         required.
38570         * doc/functions/getdelim.texi: New file.
38571         * doc/functions/getline.texi: Likewise.
38572         * doc/gnulib.texi (Function Substitutes): Add new files.
38573         Reported by Bruno Haible.
38574
38575 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
38576
38577         * users.txt: Add Guile.
38578
38579 2007-08-22  Eric Blake  <ebb9@byu.net>
38580
38581         * tests/test-getdelim.c (main): Use remove, not unlink.
38582         * tests/test-getline.c (main): Likewise.
38583
38584         Move getline and getdelim into stdio.h, per POSIX 200x.
38585         * modules/getline (Files): Remove getline.h.
38586         (Depends-on): Add stdio.
38587         (configure.ac): Add module indicator.
38588         * modules/getdelim (Files): Remove getdelim.h.
38589         (Depends-on): Add stdio.
38590         (configure.ac): Add module indicator.
38591         * modules/stdio (Makefile.am): Work with new indicators.
38592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38593         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
38594         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38595         * lib/getdelim.h: Delete.
38596         * lib/getline.h: Delete.
38597         * lib/stdio_.h (getdelim, getline): Declare.
38598         * modules/getdelim-tests: New module.
38599         * modules/getline-tests: Likewise.
38600         * tests/test-getdelim.c: New file.
38601         * tests/test-getline.c: Likewise.
38602         * NEWS: Document the change.
38603         * lib/getline.c: Update choice of header.
38604         * lib/csharpcomp.c: Likewise.
38605         * lib/getpass.c: Likewise.
38606         * lib/javacomp.c: Likewise.
38607         * lib/javaversion.c: Likewise.
38608         * lib/yesno.c: Likewise.
38609         * lib/getdelim.c: Likewise.
38610         (getdelim): Set errno on failure, and avoid memory leak.
38611
38612 2007-08-19  Bruno Haible  <bruno@clisp.org>
38613
38614         * modules/closein (Depends-on): Add freadahead.
38615         * lib/closein.c: Include freadahead.h.
38616         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
38617         is zero.
38618
38619 2007-08-19  Bruno Haible  <bruno@clisp.org>
38620
38621         * modules/freadahead-tests: New file.
38622         * tests/test-freadahead.sh: New file.
38623         * tests/test-freadahead.c: New file.
38624
38625         * modules/freadahead: New file.
38626         * lib/freadahead.h: New file.
38627         * lib/freadahead.c: New file.
38628         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
38629         fbufmode, fpurge, freadable, fwritable.
38630
38631 2007-08-19  Eric Blake  <ebb9@byu.net>
38632
38633         Test yesno in combination with closein.
38634         * lib/yesno.c (yesno): Document use of stdin.
38635         * modules/yesno-tests (Files): New module.
38636         * tests/test-yesno.c (main): New file.
38637         * tests/test-yesno.sh: Likewise.
38638
38639 2007-08-19  Bruno Haible  <bruno@clisp.org>
38640
38641         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
38642         * lib/fseeko.c (rpl_fseeko): Likewise.
38643         * lib/fseterr.c (fseterr): Likewise.
38644
38645 2007-08-19  Bruno Haible  <bruno@clisp.org>
38646
38647         * tests/test-lseek.c (main): Disable a test for BeOS.
38648         * doc/functions/lseek.texi: Document the BeOS bug.
38649
38650 2007-08-19  Bruno Haible  <bruno@clisp.org>
38651             Eric Blake  <ebb9@byu.net>
38652
38653         * lib/lseek.c: Include <sys/stat.h>.
38654         (rpl_lseek): Add workaround code also for Unix platforms.
38655         Needed for BeOS.
38656         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
38657         * doc/functions/lseek.texi: Document BeOS definiency.
38658
38659 2007-08-18  Bruno Haible  <bruno@clisp.org>
38660
38661         * modules/fstrcmp-tests: New file.
38662         * tests/test-fstrcmp.c: New file.
38663
38664 2007-08-18  Bruno Haible  <bruno@clisp.org>
38665
38666         * modules/fstrcmp: New file, from GNU gettext with modifications.
38667         * lib/fstrcmp.h: New file, from GNU gettext.
38668         * lib/fstrcmp.c: New file, from GNU gettext.
38669         * MODULES.html.sh (String handling): Add fstrcmp.
38670
38671 2007-08-18  Bruno Haible  <bruno@clisp.org>
38672
38673         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
38674         'bool'.
38675         (diag, compareseq): Remove const from the ctxt argument.
38676         (USE_HEURISTIC): Undefine at the end.
38677
38678 2007-08-18  Jim Meyering  <jim@meyering.net>
38679
38680         New file: lib/idcache.h
38681         * NEWS: Mention the addition.
38682         * modules/idcache (Files): Add lib/idcache.h
38683         * lib/idcache.c: Include "idcache.h".
38684         Don't include <sys/types.h>.
38685         Add a FIXME comment.
38686         Move file-scoped "static" declarations to the top.
38687         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
38688
38689 2007-08-17  Bruno Haible  <bruno@clisp.org>
38690         and Paul Eggert  <eggert@cs.ucla.edu>
38691
38692         * MODULES.html.sh: Add diffseq.
38693         * modules/diffseq: New file.
38694         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
38695         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
38696
38697 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38698
38699         Import changes from coreutils for bootstrap script.
38700
38701         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
38702
38703         * build-aux/bootstrap (slurp): Work even in environments where
38704         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
38705         current code does not slurp files whose names start with ".", and
38706         this looks like it might be a troublesome area.
38707
38708         2007-07-11  Jim Meyering  <jim@meyering.net>
38709
38710         If there's a GPL vN copyright comment, require that N == 3.
38711
38712         2007-07-08  Jim Meyering  <jim@meyering.net>
38713
38714         Run the coreutils-specific code only if tests/Makefile.am.in exists.
38715         * build-aux/bootstrap (mam_template): Move definition out of loop.
38716
38717         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
38718
38719         * build-aux/bootstrap (symlink_to_dir): Rename function from
38720         symlink_to_gnulib.  Add a directory parameter.  Update all
38721         callers.
38722         (cp_mark_as_generated): Also check for -- and link to -- files in
38723         gl/.
38724
38725         2007-07-08  Jim Meyering  <jim@meyering.net>
38726
38727         Adapt to deeper hierarchy in gnulib.
38728         * build-aux/bootstrap (symlink_to_dir): If the destination
38729         directory doesn't exist, create it. This is required at least for
38730         "lib/uniwidth/cjk.h".
38731
38732         2007-05-15  Jim Meyering  <jim@meyering.net>
38733
38734         * build-aux/bootstrap: Now that generated Makefile.am files
38735         are no longer under version control, they must be created at
38736         bootstrap time.
38737
38738 2007-08-14  Ben Pfaff  <blp@gnu.org>
38739
38740         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
38741
38742 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38743
38744         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
38745         given the changes below.
38746         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
38747         even on hosts that have padding bits beyond the supported 64.
38748
38749 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38750
38751         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
38752         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
38753         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
38754         depends on it.
38755         (xstrtol_error): Remove.
38756         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
38757         but with a different signature.
38758         (ATTRIBUTE_NORETURN, __attribute__): New macros.
38759         * lib/xstrtol-error.c: Include exitfail.h.
38760         (xstrtol_fatal): New function, with a different signature from the
38761         old xstrtol_error, so that the caller need not worry about passing
38762         in an exit status, or about storage management of the option argument.
38763         (xstrtol_error): Now a static function.  Redo signature to
38764         implement xstrtol_fatal.  Output the correct number of hyphens in
38765         front of the option so that the caller need not worry about
38766         storage management.
38767         (N_): New macro.
38768         (_): Remove; not used now.
38769         * modules/xstrtol: Depend on getopt.
38770         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
38771         of old STRTOL_FATAL_ERROR macro.
38772         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
38773         of test program.
38774         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
38775         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
38776
38777 2007-08-08  Eric Blake  <ebb9@byu.net>
38778
38779         * lib/xstrtol-error.c: Add missing include.
38780
38781         Move xstrtol messages into gnulib domain, when --pobase is used.
38782         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
38783         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
38784         * modules/xstrtol (Files): Distribute new file.
38785         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
38786         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
38787         * tests/test-xstrtol.c: ...into new file.
38788         * tests/test-xstrtoul.c: Also test xstrtoul.
38789         * tests/test-xstrtoimax.c: Also test xstrtoimax.
38790         * tests/test-xstrtoumax.c: Also test xstrtoumax.
38791         * tests/test-xstrtol.sh: Drive the tests.
38792         * tests/test-xstrtoimax.sh: Likewise.
38793         * tests/test-xstrtoumax.sh: Likewise.
38794         * modules/xstrtol-tests: New module.
38795         * modules/xstrtoimax-tests: Likewise.
38796         * modules/xstrtoumax-tests: Likewise.
38797
38798 2007-08-08  Jim Meyering  <jim@meyering.net>
38799
38800         New function: mfile_name_concat.
38801         * lib/filenamecat.c (mfile_name_concat): New function, just like
38802         file_name_concat, but return NULL upon failure rather than exiting
38803         with a diagnostic.
38804         * lib/filenamecat.h: Declare it.
38805
38806 2007-08-07  Bruno Haible  <bruno@clisp.org>
38807
38808         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
38809         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
38810         warning from gcc.
38811         Reported by Eric Blake.
38812
38813 2007-08-07  Simon Josefsson  <simon@josefsson.org>
38814
38815         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
38816         * modules/crypto/arcfour (License): Likewise.
38817         * modules/crypto/des-tests (License): Likewise.
38818         * modules/crypto/gc-arctwo-tests (License): Likewise.
38819         * modules/crypto/gc-des-tests (License): Likewise.
38820         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
38821         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
38822         * modules/crypto/gc-md2-tests (License): Likewise.
38823         * modules/crypto/gc-md4-tests (License): Likewise.
38824         * modules/crypto/gc-md5-tests (License): Likewise.
38825         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
38826         * modules/crypto/gc-rijndael-tests (License): Likewise.
38827         * modules/crypto/gc-sha1-tests (License): Likewise.
38828         * modules/crypto/gc-tests (License): Likewise.
38829         * modules/crypto/hmac-md5 (License): Likewise.
38830         * modules/crypto/hmac-sha1 (License): Likewise.
38831         * modules/crypto/md2-tests (License): Likewise.
38832         * modules/crypto/md4-tests (License): Likewise.
38833         * modules/crypto/md5 (License): Likewise.
38834         * modules/crypto/rijndael (License): Likewise.
38835         * modules/crypto/sha1 (License): Likewise.
38836         * modules/memxor (License): Likewise.
38837
38838 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
38839         and Bruno Haible  <bruno@clisp.org>
38840
38841         * NEWS: Describe interface changes to human, xstrtol.
38842         * lib/human.h: Include <xstrtol.h>.
38843         (human_options): Return enum strtol_error, not int.  Remove
38844         bool arg; take int * instead.
38845         * lib/human.c: Don't include "gettext.h".
38846         (_): Remove; no longer used.
38847         Don't include <xstrtol.h>, since human.h does it.
38848         (human_options): Adjust to abovementioned interface changes.
38849         Do not report error to stderr; that's now the caller's
38850         responsibility.
38851         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
38852         interface change.
38853         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
38854         Str, Argument_type_string.  All uses changed.  Put " argument"
38855         in diagnostics to make them clearer.  Change wording of suffix
38856         message for clarity.
38857         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
38858         Argument_type_string.
38859         (STRTOL_FATAL_WARN): Remove; no longer used.
38860         * modules/human (Depends-on): Remove gettext-h.
38861
38862 2007-08-06  Simon Josefsson  <simon@josefsson.org>
38863
38864         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
38865
38866 2007-07-31  Bruno Haible  <bruno@clisp.org>
38867
38868         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
38869         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
38870         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
38871
38872 2007-07-31  Bruno Haible  <bruno@clisp.org>
38873
38874         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
38875         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
38876
38877 2007-07-30  Bruno Haible  <bruno@clisp.org>
38878
38879         * modules/base64 (License): Use the synonymous term "LGPLv2+".
38880         * modules/c-ctype (License): Likewise.
38881         * modules/c-strcase (License): Likewise.
38882         * modules/check-version (License): Likewise.
38883         * modules/iconv (License): Likewise.
38884         * modules/iconv_open (License): Likewise.
38885         * modules/read-file (License): Likewise.
38886         * modules/striconv (License): Likewise.
38887         * modules/strverscmp (License): Likewise.
38888         * modules/vasprintf (License): Likewise.
38889         * modules/crypto/des (License): Likewise.
38890         * modules/crypto/gc (License): Likewise.
38891         * modules/crypto/gc-arcfour (License): Likewise.
38892         * modules/crypto/gc-arctwo (License): Likewise.
38893         * modules/crypto/gc-des (License): Likewise.
38894         * modules/crypto/gc-hmac-md5 (License): Likewise.
38895         * modules/crypto/gc-hmac-sha1 (License): Likewise.
38896         * modules/crypto/gc-md2 (License): Likewise.
38897         * modules/crypto/gc-md4 (License): Likewise.
38898         * modules/crypto/gc-md5 (License): Likewise.
38899         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
38900         * modules/crypto/gc-random (License): Likewise.
38901         * modules/crypto/gc-rijndael (License): Likewise.
38902         * modules/crypto/gc-sha1 (License): Likewise.
38903         * modules/crypto/md2 (License): Likewise.
38904         * modules/crypto/md4 (License): Likewise.
38905
38906 2007-07-30  Jim Meyering  <jim@meyering.net>
38907
38908         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
38909         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
38910         it has valid stat data.  This bug would cause du not to count the
38911         sizes of inaccessible directories.
38912         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
38913         in <http://bugzilla.redhat.com/250077>.
38914
38915 2007-07-25  Peter O'Gorman  <peter@pogma.com>
38916             Bruno Haible  <bruno@clisp.org>
38917
38918         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
38919         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
38920         #include_next, gives a diagnostic about it, but reports no error in
38921         the exit code.
38922         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38923
38924 2007-07-24  Ben Pfaff  <blp@gnu.org>
38925
38926         Improve name: "count-one-bits" is better than "popcount".
38927         * MODULES.html.sh: Update name.
38928         * lib/popcount.h: Renamed lib/count-one-bits.h.
38929         (popcount): Renamed count_one_bits.
38930         (popcountl): Renamed count_one_bits_l.
38931         (popcountll): Renamed count_one_bits_ll.
38932         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
38933         * modules/popcount: Renamed module/count-one-bits.
38934         * modules/popcount-tests: Renamed module/count-one-bits-tests.
38935         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
38936
38937 2007-07-23  Ben Pfaff  <blp@gnu.org>
38938
38939         * lib/popcount.h (popcount32): Reduce size of constants, to allow
38940         better code generation, and add U to large constants to avoid
38941         warnings, in non-GCC case.
38942         Suggested by Bruno Haible.
38943
38944 2007-07-23  Ben Pfaff  <blp@gnu.org>
38945
38946         * lib/popcount.h: Use verify_true instead of if...abort.
38947         * modules/popcount: Depend on verify module.
38948         Suggested by Jim Meyering.
38949
38950 2007-07-23  Bruno Haible  <bruno@clisp.org>
38951
38952         * gnulib-tool (func_import): Create a .cvsignore file also when the
38953         directory is not yet in CVS but the toplevel directory is. When
38954         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
38955         Reported by Karl Berry.
38956
38957 2007-07-22  Ben Pfaff  <blp@gnu.org>
38958
38959         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
38960         case.
38961         Suggested by Eric Blake.
38962
38963 2007-07-22  Ben Pfaff  <blp@gnu.org>
38964
38965         New module: popcount.
38966         * MODULES.html.sh: Add popcount.
38967         * modules/popcount: New file.
38968         * modules/popcount-tests: New file.
38969         * tests/test-popcount.c: New file.
38970         * lib/popcount.h: New file.
38971         * m4/popcount.m4: New file.
38972
38973 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38974
38975         * build-aux/announce-gen: Update to GPLv3.
38976
38977         * build-aux/config.guess: Update from config.
38978
38979 2007-07-21  Bruno Haible  <bruno@clisp.org>
38980
38981         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
38982         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
38983
38984 2007-07-20  Jim Meyering  <jim@meyering.net>
38985
38986         * check-module: Diagnose a self-dependency.
38987
38988 2007-07-19  Bruno Haible  <bruno@clisp.org>
38989
38990         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
38991         empty.
38992         Reported by Eric Blake.
38993
38994 2007-07-18  Bruno Haible  <bruno@clisp.org>
38995
38996         * gnulib-tool: New options --po-base, --po-domain.
38997         (func_usage): Document them.
38998         (pobase, po_domain): New variables.
38999         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39000         DEFAULT_TEXT_DOMAIN.
39001         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39002         (func_import): Consider pobase and po_domain. Create a po/ directory.
39003         (func_create_testdir): Set pobase and po_domain to empty.
39004         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39005         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39006
39007 2007-07-18  Bruno Haible  <bruno@clisp.org>
39008
39009         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39010         EXTRA_DIST augmentation for files in build-aux/.
39011
39012 2007-07-16  Bruno Haible  <bruno@clisp.org>
39013
39014         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39015         * modules/getdelim (License): Likewise.
39016
39017 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39018
39019         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39020         * modules/d-type (License): Likewise.
39021         * modules/extensions (License): Likewise.
39022         * modules/fnmatch (License): Likewise.
39023         * modules/fseeko (License): Likewise.
39024         * modules/getaddrinfo (License): Likewise.
39025         * modules/getline (License): Likewise.
39026         * modules/getlogin_r (License): Likewise.
39027         * modules/getpass (License): Likewise.
39028         * modules/gettimeofday (License): Likewise.
39029         * modules/glob (License): Likewise.
39030         * modules/inet_ntop (License): Likewise.
39031         * modules/malloc (License): Likewise.
39032         * modules/malloca (License): Likewise.
39033         * modules/memmem (License): Likewise.
39034         * modules/mempcpy (License): Likewise.
39035         * modules/memset (License): Likewise.
39036         * modules/minmax (License): Likewise.
39037         * modules/mktime (License): Likewise.
39038         * modules/netinet_in (License): Likewise.
39039         * modules/pathmax (License): Likewise.
39040         * modules/poll (License): Likewise.
39041         * modules/regex (License): Likewise.
39042         * modules/snprintf (License): Likewise.
39043         * modules/stdbool (License): Likewise.
39044         * modules/stdint (License): Likewise.
39045         * modules/stdio (License): Likewise.
39046         * modules/strcase (License): Likewise.
39047         * modules/strcasestr (License): Likewise.
39048         * modules/strdup (License): Likewise.
39049         * modules/string (License): Likewise.
39050         * modules/strndup (License): Likewise.
39051         * modules/strnlen (License): Likewise.
39052         * modules/strpbrk (License): Likewise.
39053         * modules/strptime (License): Likewise.
39054         * modules/strsep (License): Likewise.
39055         * modules/sys_select (License): Likewise.
39056         * modules/sys_socket (License): Likewise.
39057         * modules/sys_stat (License): Likewise.
39058         * modules/sys_time (License): Likewise.
39059         * modules/time (License): Likewise.
39060         * modules/time_r (License): Likewise.
39061         * modules/timegm (License): Likewise.
39062         * modules/unistd (License): Likewise.
39063         * modules/vsnprintf (License): Likewise.
39064         * modules/wctype (License): Likewise.
39065
39066 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39067
39068         * modules/argz (License): LGPLv2+.
39069
39070 2007-07-15  Karl Berry  <karl@gnu.org>
39071
39072         * doc/gnulib.texi: revise node structure per new fdl.texi.
39073
39074 2007-07-14  Bruno Haible  <bruno@clisp.org>
39075
39076         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39077         the output file.
39078         * lib/uniname/uninames.h: Regenerated.
39079
39080 2007-07-14  Karl Berry  <karl@gnu.org>
39081
39082         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39083         omitting sectioning and index commands.
39084
39085 2007-07-13  Bruno Haible  <bruno@clisp.org>
39086
39087         New gnulib-tool option --more-symlinks.
39088         * gnulib-tool (func_usage): Document --more-symlinks.
39089         (do_copyrights): New variable.
39090         Recognize option --more-symlinks.
39091         (func_import): Don't add a copyright notice transform to
39092         sed_transform_lib_file if do_copyrights is empty.
39093
39094 2007-07-13  Bruno Haible  <bruno@clisp.org>
39095
39096         * lib/vasnprintf.c (decimal_point_char): Define also if
39097         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39098         && !NEED_PRINTF_DIRECTIVE_A.
39099         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39100         Gary V. Vaughan <gary@gnu.org>.
39101
39102 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39103
39104         * lib/inttypes_.h: Undo previous change, since it was fixed
39105         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39106
39107 2007-07-13  Bruno Haible  <bruno@clisp.org>
39108
39109         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39110         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39111
39112 2007-07-13  Jim Meyering  <jim@meyering.net>
39113
39114         df: Don't fail for Tru64's "file-on-file mount".
39115         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39116         so we fall through and use statfs instead.  Details here:
39117         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39118         Reported by Albert Chin.
39119
39120 2007-07-13  Bruno Haible  <bruno@clisp.org>
39121
39122         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39123         * modules/configmake (License): Likewise.
39124         * modules/gettext (License): Likewise.
39125         * modules/gettext-h (License): Likewise.
39126         * modules/include_next (License): Likewise.
39127         * modules/link-warning (License): Likewise.
39128         * modules/localcharset (License): Likewise.
39129         * modules/localename (License): Likewise.
39130         * modules/lock (License): Likewise.
39131         * modules/relocatable-lib-lgpl (License): Likewise.
39132         * modules/size_max (License): Likewise.
39133         * modules/vasnprintf (License): Likewise.
39134         * modules/wchar (License): Likewise.
39135         * modules/xsize (License): Likewise.
39136
39137 2007-07-13  Bruno Haible  <bruno@clisp.org>
39138
39139         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39140         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39141
39142 2007-07-12  Bruno Haible  <bruno@clisp.org>
39143
39144         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39145         in the modules files.
39146
39147 2007-07-11  Karl Berry  <karl@gnu.org>
39148
39149         * MODULES.html.sh (func_module): use
39150          sed -e '\|^'"${includefile}"'$|d'
39151          instead of /.../d, to avoid errors on $includefile's containing /.
39152
39153 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39154
39155         * gnulib-tool (func_import): Avoid duplication of --avoid
39156         statements
39157         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39158         names to `_' in variable names.
39159
39160 2007-07-10  Eric Blake  <ebb9@byu.net>
39161
39162         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39163         * NEWS: Document this change.
39164
39165 2007-07-08  Bruno Haible  <bruno@clisp.org>
39166
39167         Update to Unicode 5.0.
39168         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39169         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39170         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39171         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39172         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39173         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39174         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39175         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39176         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39177         U+10A3F, U+1D242..U+1D244.
39178         (nonspacing_table_ind): Update.
39179         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39180         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39181
39182 2007-07-08  Bruno Haible  <bruno@clisp.org>
39183
39184         Update to Unicode 5.0.
39185         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39186         code transform. Extend the name index field of unicode_name_to_code and
39187         unicode_code_to_name from 16 to 24 bits.
39188         * lib/uniname/uniname.c (unicode_character_name,
39189         unicode_name_character): Add the range 0x12xxx to the code transform.
39190         * lib/uniname/uninames.h: Regenerated.
39191         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39192
39193 2007-07-07  Bruno Haible  <bruno@clisp.org>
39194
39195         * modules/wcwidth-tests: New file.
39196         * tests/test-wcwidth.c: New file.
39197
39198         Work around MacOS X wcwidth() bug.
39199         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39200         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39201         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39202         original wcwidth in non-UTF-8 locales.
39203         * modules/wcwidth (Depends-on): Add localcharset, streq,
39204         uniwidth/width.
39205         * doc/functions/wcwidth.texi: Update.
39206
39207 2007-07-07  Bruno Haible  <bruno@clisp.org>
39208
39209         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39210         (wcwidth): New declaration.
39211         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39212         macros.
39213         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39214         here. Prepare for creating <wchar.h> unconditionally.
39215         * modules/wchar (Depends-on): Add link-warning.
39216         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39217         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39218         * lib/wcwidth.h: Remove file.
39219         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39220         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39221         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39222         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
39223         (Include): Replace wcwidth.h with <wchar.h>.
39224         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
39225         * lib/mbchar.h: Don't include wcwidth.h.
39226         * lib/mbswidth.c: Likewise.
39227         * NEWS: Mention the change.
39228
39229 2007-07-07  Bruno Haible  <bruno@clisp.org>
39230
39231         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
39232         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
39233         definition with an external declaration.
39234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
39235         defined as a function. Remove AC_C_INLINE requirement.
39236         * modules/wcwidth (Files): Add lib/wcwidth.c.
39237         (Makefile.am): Remove redundant statement.
39238
39239 2007-07-07  Bruno Haible  <bruno@clisp.org>
39240
39241         * MODULES.html.sh (Unicode string functions): Add the new modules.
39242
39243         * tests/uniwidth/test-u32-strwidth.c: New file.
39244         * modules/uniwidth/u32-strwidth-tests: New file.
39245
39246         * lib/uniwidth/u32-strwidth.c: New file.
39247         * modules/uniwidth/u32-strwidth: New file.
39248
39249         * tests/uniwidth/test-u16-strwidth.c: New file.
39250         * modules/uniwidth/u16-strwidth-tests: New file.
39251
39252         * lib/uniwidth/u16-strwidth.c: New file.
39253         * modules/uniwidth/u16-strwidth: New file.
39254
39255         * tests/uniwidth/test-u8-strwidth.c: New file.
39256         * modules/uniwidth/u8-strwidth-tests: New file.
39257
39258         * lib/uniwidth/u8-strwidth.c: New file.
39259         * modules/uniwidth/u8-strwidth: New file.
39260
39261         * tests/uniwidth/test-u32-width.c: New file.
39262         * modules/uniwidth/u32-width-tests: New file.
39263
39264         * lib/uniwidth/u32-width.c: New file.
39265         * modules/uniwidth/u32-width: New file.
39266
39267         * tests/uniwidth/test-u16-width.c: New file.
39268         * modules/uniwidth/u16-width-tests: New file.
39269
39270         * lib/uniwidth/u16-width.c: New file.
39271         * modules/uniwidth/u16-width: New file.
39272
39273         * tests/uniwidth/test-u8-width.c: New file.
39274         * modules/uniwidth/u8-width-tests: New file.
39275
39276         * lib/uniwidth/u8-width.c: New file.
39277         * modules/uniwidth/u8-width: New file.
39278
39279         * tests/uniwidth/test-uc_width.c: New file.
39280         * modules/uniwidth/width-tests: New file.
39281
39282         * lib/uniwidth/width.c: New file, from GNU libiconv.
39283         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39284         * modules/uniwidth/width: New file.
39285
39286         * lib/uniwidth.h: New file, from GNU libiconv.
39287         * modules/uniwidth/base: New file.
39288
39289 2007-07-07  Bruno Haible  <bruno@clisp.org>
39290
39291         * lib/uniname.h: New file, from GNU gettext.
39292         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39293         * lib/uniname/uninames.h: New file, from GNU gettext.
39294         * lib/uniname/uniname.c: New file, from GNU gettext.
39295         * tests/uniname/test-uninames.sh: New file.
39296         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39297         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39298         * modules/uniname/base: New file.
39299         * modules/uniname/uniname: New file.
39300         * modules/uniname/uniname-tests: New file.
39301         * MODULES.html.sh (Unicode string functions): Add the new modules.
39302
39303 2007-07-06  Bruno Haible  <bruno@clisp.org>
39304
39305         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39306
39307 2007-07-06  Bruno Haible  <bruno@clisp.org>
39308
39309         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39310         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39311         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39312         include <sys/time.h>.
39313         Reported by Eric Blake.
39314
39315 2007-07-06  Eric Blake  <ebb9@byu.net>
39316
39317         Fix testing canonicalize on cygwin.
39318         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39319         Revert patch from 2007-06-19.
39320         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39321         canonicalize module is also in use.
39322         * tests/test-canonicalize.c: New file.
39323         * tests/test-canonicalize.sh: Likewise.
39324         * modules/canonicalize-tests: Likewise.
39325
39326 2007-07-06  Jim Meyering  <jim@meyering.net>
39327
39328         * lib/getugroups.c (getugroups): Detect getgrent failure.
39329         Adjust comment to reflect reality: this function may return -1.
39330
39331 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39332
39333         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39334         the new TP address.
39335         (usage): Fix typo
39336         (gnulib_mk): New variable.
39337
39338 2007-07-05  Jim Meyering  <jim@meyering.net>
39339
39340         Don't let endgrent clobber errno, no matter how improbable.
39341         * lib/getugroups.c (getugroups): Save and restore errno around
39342         endgrent call.
39343
39344         Close the group DB even when failing with 2^31 or more members.
39345         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39346
39347 2007-07-04  Jim Meyering  <jim@meyering.net>
39348
39349         * lib/getugroups.h: New file.
39350         * lib/getugroups.c: Include "getugroups.h".
39351         Remove uses of "register" keyword.
39352         Move local variable, "cp", down into scope where used.
39353         Give "username" parameter the "const" attribute.
39354         * modules/getugroups (Files): Add lib/getugroups.h
39355
39356 2007-07-04  Karl Berry  <karl@gnu.org>
39357
39358         * MODULES.html.sh (func_all_modules): Complete rename of
39359         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39360
39361 2007-07-02  Bruno Haible  <bruno@clisp.org>
39362
39363         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39364         mode, when inttypes.h comes from gnulib.
39365         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39366
39367 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39368
39369         * NEWS: Mention lgpl module name change.
39370
39371         * modules/lgpl-2.1: Renamed from lgpl.
39372
39373         * NEWS: Mention gpl module name change.
39374
39375         * modules/gpl-3.0: New file, based on gpl-2.0.
39376
39377         * modules/gpl-2.0: Renamed from gpl.
39378
39379         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39380         doc/gpl-2.0.texi.
39381
39382 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39383
39384         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39385         #define __STDC_LIMIT_MACROS temporarily while including
39386         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39387         Problem reported by Joel E. Denny in
39388         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39389
39390 2007-07-01  Bruno Haible  <bruno@clisp.org>
39391
39392         * lib/unistdio.h: New file.
39393         * lib/unistdio/u-asnprintf.h: New file.
39394         * lib/unistdio/u-asprintf.h: New file.
39395         * lib/unistdio/u-printf-args.c: New file.
39396         * lib/unistdio/u-printf-args.h: New file.
39397         * lib/unistdio/u-printf-parse.h: New file.
39398         * lib/unistdio/u-snprintf.h: New file.
39399         * lib/unistdio/u-sprintf.h: New file.
39400         * lib/unistdio/u-vasprintf.h: New file.
39401         * lib/unistdio/u-vsnprintf.h: New file.
39402         * lib/unistdio/u-vsprintf.h: New file.
39403         * lib/unistdio/ulc-asnprintf.c: New file.
39404         * lib/unistdio/ulc-asprintf.c: New file.
39405         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
39406         * lib/unistdio/ulc-printf-parse.c: New file.
39407         * lib/unistdio/ulc-snprintf.c: New file.
39408         * lib/unistdio/ulc-sprintf.c: New file.
39409         * lib/unistdio/ulc-vasnprintf.c: New file.
39410         * lib/unistdio/ulc-vasprintf.c: New file.
39411         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
39412         * lib/unistdio/ulc-vsnprintf.c: New file.
39413         * lib/unistdio/ulc-vsprintf.c: New file.
39414         * lib/unistdio/u8-asnprintf.c: New file.
39415         * lib/unistdio/u8-asprintf.c: New file.
39416         * lib/unistdio/u8-printf-parse.c: New file.
39417         * lib/unistdio/u8-snprintf.c: New file.
39418         * lib/unistdio/u8-sprintf.c: New file.
39419         * lib/unistdio/u8-vasnprintf.c: New file.
39420         * lib/unistdio/u8-vasprintf.c: New file.
39421         * lib/unistdio/u8-vsnprintf.c: New file.
39422         * lib/unistdio/u8-vsprintf.c: New file.
39423         * lib/unistdio/u8-u8-asnprintf.c: New file.
39424         * lib/unistdio/u8-u8-asprintf.c: New file.
39425         * lib/unistdio/u8-u8-snprintf.c: New file.
39426         * lib/unistdio/u8-u8-sprintf.c: New file.
39427         * lib/unistdio/u8-u8-vasnprintf.c: New file.
39428         * lib/unistdio/u8-u8-vasprintf.c: New file.
39429         * lib/unistdio/u8-u8-vsnprintf.c: New file.
39430         * lib/unistdio/u8-u8-vsprintf.c: New file.
39431         * lib/unistdio/u16-asnprintf.c: New file.
39432         * lib/unistdio/u16-asprintf.c: New file.
39433         * lib/unistdio/u16-printf-parse.c: New file.
39434         * lib/unistdio/u16-snprintf.c: New file.
39435         * lib/unistdio/u16-sprintf.c: New file.
39436         * lib/unistdio/u16-vasnprintf.c: New file.
39437         * lib/unistdio/u16-vasprintf.c: New file.
39438         * lib/unistdio/u16-vsnprintf.c: New file.
39439         * lib/unistdio/u16-vsprintf.c: New file.
39440         * lib/unistdio/u16-u16-asnprintf.c: New file.
39441         * lib/unistdio/u16-u16-asprintf.c: New file.
39442         * lib/unistdio/u16-u16-snprintf.c: New file.
39443         * lib/unistdio/u16-u16-sprintf.c: New file.
39444         * lib/unistdio/u16-u16-vasnprintf.c: New file.
39445         * lib/unistdio/u16-u16-vasprintf.c: New file.
39446         * lib/unistdio/u16-u16-vsnprintf.c: New file.
39447         * lib/unistdio/u16-u16-vsprintf.c: New file.
39448         * lib/unistdio/u32-asnprintf.c: New file.
39449         * lib/unistdio/u32-asprintf.c: New file.
39450         * lib/unistdio/u32-printf-parse.c: New file.
39451         * lib/unistdio/u32-snprintf.c: New file.
39452         * lib/unistdio/u32-sprintf.c: New file.
39453         * lib/unistdio/u32-vasnprintf.c: New file.
39454         * lib/unistdio/u32-vasprintf.c: New file.
39455         * lib/unistdio/u32-vsnprintf.c: New file.
39456         * lib/unistdio/u32-vsprintf.c: New file.
39457         * lib/unistdio/u32-u32-asnprintf.c: New file.
39458         * lib/unistdio/u32-u32-asprintf.c: New file.
39459         * lib/unistdio/u32-u32-snprintf.c: New file.
39460         * lib/unistdio/u32-u32-sprintf.c: New file.
39461         * lib/unistdio/u32-u32-vasnprintf.c: New file.
39462         * lib/unistdio/u32-u32-vasprintf.c: New file.
39463         * lib/unistdio/u32-u32-vsnprintf.c: New file.
39464         * lib/unistdio/u32-u32-vsprintf.c: New file.
39465         * tests/unistdio/test-ulc-asnprintf1.c: New file.
39466         * tests/unistdio/test-ulc-asnprintf1.h: New file.
39467         * tests/unistdio/test-ulc-printf1.h: New file.
39468         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
39469         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
39470         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
39471         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
39472         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
39473         * tests/unistdio/test-ulc-vasprintf1.c: New file.
39474         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
39475         * tests/unistdio/test-ulc-vsprintf1.c: New file.
39476         * tests/unistdio/test-u8-asnprintf1.c: New file.
39477         * tests/unistdio/test-u8-asnprintf1.h: New file.
39478         * tests/unistdio/test-u8-printf1.h: New file.
39479         * tests/unistdio/test-u8-vasnprintf1.c: New file.
39480         * tests/unistdio/test-u8-vasnprintf2.c: New file.
39481         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
39482         * tests/unistdio/test-u8-vasnprintf3.c: New file.
39483         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
39484         * tests/unistdio/test-u8-vasprintf1.c: New file.
39485         * tests/unistdio/test-u8-vsnprintf1.c: New file.
39486         * tests/unistdio/test-u8-vsprintf1.c: New file.
39487         * tests/unistdio/test-u16-asnprintf1.c: New file.
39488         * tests/unistdio/test-u16-asnprintf1.h: New file.
39489         * tests/unistdio/test-u16-printf1.h: New file.
39490         * tests/unistdio/test-u16-vasnprintf1.c: New file.
39491         * tests/unistdio/test-u16-vasnprintf2.c: New file.
39492         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
39493         * tests/unistdio/test-u16-vasnprintf3.c: New file.
39494         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
39495         * tests/unistdio/test-u16-vasprintf1.c: New file.
39496         * tests/unistdio/test-u16-vsnprintf1.c: New file.
39497         * tests/unistdio/test-u16-vsprintf1.c: New file.
39498         * tests/unistdio/test-u32-asnprintf1.c: New file.
39499         * tests/unistdio/test-u32-asnprintf1.h: New file.
39500         * tests/unistdio/test-u32-printf1.h: New file.
39501         * tests/unistdio/test-u32-vasnprintf1.c: New file.
39502         * tests/unistdio/test-u32-vasnprintf2.c: New file.
39503         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
39504         * tests/unistdio/test-u32-vasnprintf3.c: New file.
39505         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
39506         * tests/unistdio/test-u32-vasprintf1.c: New file.
39507         * tests/unistdio/test-u32-vsnprintf1.c: New file.
39508         * tests/unistdio/test-u32-vsprintf1.c: New file.
39509         * modules/unistdio/base: New file.
39510         * modules/unistdio/u-printf-args: New file.
39511         * modules/unistdio/ulc-asnprintf: New file.
39512         * modules/unistdio/ulc-asprintf: New file.
39513         * modules/unistdio/ulc-fprintf: New file.
39514         * modules/unistdio/ulc-printf-parse: New file.
39515         * modules/unistdio/ulc-snprintf: New file.
39516         * modules/unistdio/ulc-sprintf: New file.
39517         * modules/unistdio/ulc-vasnprintf: New file.
39518         * modules/unistdio/ulc-vasprintf: New file.
39519         * modules/unistdio/ulc-vfprintf: New file.
39520         * modules/unistdio/ulc-vsnprintf: New file.
39521         * modules/unistdio/ulc-vsprintf: New file.
39522         * modules/unistdio/u8-asnprintf: New file.
39523         * modules/unistdio/u8-asprintf: New file.
39524         * modules/unistdio/u8-printf-parse: New file.
39525         * modules/unistdio/u8-snprintf: New file.
39526         * modules/unistdio/u8-sprintf: New file.
39527         * modules/unistdio/u8-vasnprintf: New file.
39528         * modules/unistdio/u8-vasprintf: New file.
39529         * modules/unistdio/u8-vsnprintf: New file.
39530         * modules/unistdio/u8-vsprintf: New file.
39531         * modules/unistdio/u8-u8-asnprintf: New file.
39532         * modules/unistdio/u8-u8-asprintf: New file.
39533         * modules/unistdio/u8-u8-snprintf: New file.
39534         * modules/unistdio/u8-u8-sprintf: New file.
39535         * modules/unistdio/u8-u8-vasnprintf: New file.
39536         * modules/unistdio/u8-u8-vasprintf: New file.
39537         * modules/unistdio/u8-u8-vsnprintf: New file.
39538         * modules/unistdio/u8-u8-vsprintf: New file.
39539         * modules/unistdio/u16-asnprintf: New file.
39540         * modules/unistdio/u16-asprintf: New file.
39541         * modules/unistdio/u16-printf-parse: New file.
39542         * modules/unistdio/u16-snprintf: New file.
39543         * modules/unistdio/u16-sprintf: New file.
39544         * modules/unistdio/u16-vasnprintf: New file.
39545         * modules/unistdio/u16-vasprintf: New file.
39546         * modules/unistdio/u16-vsnprintf: New file.
39547         * modules/unistdio/u16-vsprintf: New file.
39548         * modules/unistdio/u16-u16-asnprintf: New file.
39549         * modules/unistdio/u16-u16-asprintf: New file.
39550         * modules/unistdio/u16-u16-snprintf: New file.
39551         * modules/unistdio/u16-u16-sprintf: New file.
39552         * modules/unistdio/u16-u16-vasnprintf: New file.
39553         * modules/unistdio/u16-u16-vasprintf: New file.
39554         * modules/unistdio/u16-u16-vsnprintf: New file.
39555         * modules/unistdio/u16-u16-vsprintf: New file.
39556         * modules/unistdio/u32-asnprintf: New file.
39557         * modules/unistdio/u32-asprintf: New file.
39558         * modules/unistdio/u32-printf-parse: New file.
39559         * modules/unistdio/u32-snprintf: New file.
39560         * modules/unistdio/u32-sprintf: New file.
39561         * modules/unistdio/u32-vasnprintf: New file.
39562         * modules/unistdio/u32-vasprintf: New file.
39563         * modules/unistdio/u32-vsnprintf: New file.
39564         * modules/unistdio/u32-vsprintf: New file.
39565         * modules/unistdio/u32-u32-asnprintf: New file.
39566         * modules/unistdio/u32-u32-asprintf: New file.
39567         * modules/unistdio/u32-u32-snprintf: New file.
39568         * modules/unistdio/u32-u32-sprintf: New file.
39569         * modules/unistdio/u32-u32-vasnprintf: New file.
39570         * modules/unistdio/u32-u32-vasprintf: New file.
39571         * modules/unistdio/u32-u32-vsnprintf: New file.
39572         * modules/unistdio/u32-u32-vsprintf: New file.
39573         * modules/unistdio/ulc-asnprintf-tests: New file.
39574         * modules/unistdio/ulc-vasnprintf-tests: New file.
39575         * modules/unistdio/ulc-vasprintf-tests: New file.
39576         * modules/unistdio/ulc-vsnprintf-tests: New file.
39577         * modules/unistdio/ulc-vsprintf-tests: New file.
39578         * modules/unistdio/u8-asnprintf-tests: New file.
39579         * modules/unistdio/u8-vasnprintf-tests: New file.
39580         * modules/unistdio/u8-vasprintf-tests: New file.
39581         * modules/unistdio/u8-vsnprintf-tests: New file.
39582         * modules/unistdio/u8-vsprintf-tests: New file.
39583         * modules/unistdio/u16-asnprintf-tests: New file.
39584         * modules/unistdio/u16-vasnprintf-tests: New file.
39585         * modules/unistdio/u16-vasprintf-tests: New file.
39586         * modules/unistdio/u16-vsnprintf-tests: New file.
39587         * modules/unistdio/u16-vsprintf-tests: New file.
39588         * modules/unistdio/u32-asnprintf-tests: New file.
39589         * modules/unistdio/u32-vasnprintf-tests: New file.
39590         * modules/unistdio/u32-vasprintf-tests: New file.
39591         * modules/unistdio/u32-vsnprintf-tests: New file.
39592         * modules/unistdio/u32-vsprintf-tests: New file.
39593         * MODULES.html.sh (Unicode string functions): Add the new modules.
39594
39595 2007-07-01  Bruno Haible  <bruno@clisp.org>
39596
39597         * lib/sprintf.c (sprintf): Limit the available length estimation,
39598         to avoid address wraparound.
39599         * lib/vsprintf.c (vsprintf): Likewise.
39600         * modules/sprintf-posix (Dependencies): Add stdint.
39601         * modules/vsprintf-posix (Dependencies): Likewise.
39602
39603 2007-07-01  Bruno Haible  <bruno@clisp.org>
39604
39605         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
39606         Windows PATH as well. Conservative double-quoting. Comments.
39607
39608 2007-07-01  Bruno Haible  <bruno@clisp.org>
39609             Eric Blake  <ebb9@byu.net>
39610             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39611
39612         * gnulib-tool (self_abspathname): Fix algorithm to cope with
39613         empty components in $PATH, denoting '.'.
39614
39615 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39616
39617         * gnulib-tool: Fix indentation.
39618         (func_create_megatestdir): Likewise.
39619         Report by Bruno Haible.
39620
39621 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39622
39623         Sync from Automake.
39624         * build-aux/gnupload: Fix shell portability issues with for loops.
39625         Report by Karl Berry.
39626
39627 2007-06-29  Simon Josefsson  <simon@josefsson.org>
39628
39629         * build-aux/maint.mk (POURL): Use translationproject.org.
39630
39631 2007-06-27  Simon Josefsson  <simon@josefsson.org>
39632             Bruno Haible  <bruno@clisp.org>
39633
39634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
39635         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
39636         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
39637         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
39638         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
39639
39640 2007-06-27  Bruno Haible  <bruno@clisp.org>
39641
39642         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
39643         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
39644
39645 2007-06-26  Karl Berry  <karl@gnu.org>
39646
39647         * MODULES.html.sh: remove xreadlink-with-size.
39648
39649 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39650
39651         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
39652         method that I hope also handles the double-include problem noted
39653         by Bruno Haible in
39654         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
39655
39656 2007-06-23  Bruno Haible  <bruno@clisp.org>
39657
39658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39659         Don't let the 'mostlyclean' target fail if the last subdirectory could
39660         not be removed.
39661         Reported by Karl Berry.
39662
39663 2007-06-23  Bruno Haible  <bruno@clisp.org>
39664
39665         * gnulib-tool (echo): Add a speedier workaround for ksh.
39666         * tests/test-echo.sh: Likewise.
39667
39668 2007-06-23  Bruno Haible  <bruno@clisp.org>
39669
39670         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
39671         * tests/test-echo.sh: Likewise.
39672
39673 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39674
39675         * gnulib-tool (IFS): Initialize early, so we don't set it to
39676         empty later.
39677         (self_abspathname): Rewrite algorithm to set it, reindent.
39678         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
39679         (func_create_megatestdir): Merge some sed scripts.
39680
39681 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39682
39683         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
39684         exposed by Sun Studio 11 cc on Solaris 8.
39685
39686 2007-06-22  Bruno Haible  <bruno@clisp.org>
39687
39688         * gnulib-tool (echo): Ensure the echo primitive does not interpret
39689         backslashes.
39690         * tests/test-echo.sh: New file.
39691
39692 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39693
39694         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
39695         simplify `sed_replace_build_aux' scripts, they are portable but
39696         echoing them with `echo' is not.
39697         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
39698
39699 2007-06-21  Karl Berry  <karl@gnu.org>
39700
39701         * config/srclist.txt: guess we can't handle the licenses via
39702         srclist at the moment.
39703
39704 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39705
39706         * MODULES.html.sh: Add include_next.
39707         * modules/include_next: New file.
39708
39709 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39710
39711         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
39712         INCLUDE_NEXT.
39713         (gl_CHECK_NEXT_HEADERS): New macro.
39714         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
39715         the obsolescent gl_ABSOLUTE_HEADER.
39716         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
39717         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
39718         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39719         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39720         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39721         * m4/math_h.m4 (gl_MATH_H): Likewise.
39722         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39723         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39724         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39725         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39726         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39727         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39728         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39729         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39730         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39731         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39732         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39733         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39734         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
39735         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39736         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39737         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39738         * m4/inttypes.m4 (gl_INTTYPES_H): Define
39739         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
39740         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
39741         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
39742         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
39743         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
39744         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
39745         * lib/float_.h: Likewise.
39746         * lib/inttypes_.h: Likewise.
39747         * lib/math_.h: Likewise.
39748         * lib/search_.h: Likewise.
39749         * lib/signal_.h: Likewise.
39750         * lib/stdint_.h: Likewise.
39751         * lib/stdio_.h: Likewise.
39752         * lib/stdlib_.h: Likewise.
39753         * lib/string_.h: Likewise.
39754         * lib/sys_stat_.h: Likewise.
39755         * lib/sys_time_.h: Likewise.
39756         * lib/time_.h: Likewise.
39757         * lib/unistd_.h: Likewise.
39758         * lib/wchar_.h: Likewise.
39759         * lib/wctype_.h: Likewise.
39760         * lib/dirent_.h: Likewise.
39761         * lib/iconv_.h: Likewise.
39762         * lib/locale_.h: Likewise.
39763         * lib/netinet_in_.h: Likewise.
39764         * lib/sys_select_.h: Likewise.
39765         * lib/sys_socket_.h: Likewise.
39766         * lib/sysexits_.h: Likewise.
39767         * modules/fcntl (Depends-on): Depend on include_next, not
39768         absolute_header.
39769         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
39770         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
39771         * modules/fchdir: Likewise.
39772         * modules/float: Likewise.
39773         * modules/iconv_open: Likewise.
39774         * modules/inttypes: Likewise.
39775         * modules/locale: Likewise.
39776         * modules/math: Likewise.
39777         * modules/netinet_in: Likewise.
39778         * modules/search: Likewise.
39779         * modules/signal: Likewise.
39780         * modules/stdint: Likewise.
39781         * modules/stdio: Likewise.
39782         * modules/stdlib: Likewise.
39783         * modules/string: Likewise.
39784         * modules/sys_select: Likewise.
39785         * modules/sys_socket: Likewise.
39786         * modules/sys_stat: Likewise.
39787         * modules/sys_time: Likewise.
39788         * modules/sysexits: Likewise.
39789         * modules/time: Likewise.
39790         * modules/unistd: Likewise.
39791         * modules/wchar: Likewise.
39792         * modules/wctype: Likewise.
39793         * modules/sys_stat: Change maintainer to "all".
39794         * modules/unistd: Likewise.
39795
39796 2007-06-20  Karl Berry  <karl@gnu.org>
39797
39798         * config/srclist.txt: track www changes in license files.
39799
39800 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
39801
39802         * build-aux/bootstrap: Remove stray dot.
39803         Make sure build_aux settings are honored when linking
39804         gnulib_extra_files.
39805
39806 2007-06-19  Eric Blake  <ebb9@byu.net>
39807
39808         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39809         Allow compilation on cygwin.
39810
39811 2007-06-19  Jim Meyering  <jim@meyering.net>
39812
39813         xreadlink-with-size: Remove module.  No longer used.
39814         Ex-callers now use xreadlink or mreadlink-with-size.
39815         * modules/xreadlink-with-size: Remove module.
39816         * lib/xreadlink-with-size.c: Remove file.
39817         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
39818         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
39819         just before the function definition *is* accurate.
39820
39821         Eliminate one way canonicalize_filename_mode could exit.
39822         * lib/canonicalize.c (canonicalize_filename_mode):
39823         Use mreadlink_with_size, not xreadlink_with_size.
39824
39825 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
39826
39827         Detect porting problems to FreeBSD/arm, which has time_t wider than
39828         long int.  Original problem reported for GNU diff by Xin Li in
39829         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
39830         * modules/getdate (Depends-on): Add intprops, verify.
39831         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
39832         is an integer type no wider than long int.
39833
39834 2007-06-18  Jim Meyering  <jim@meyering.net>
39835
39836         New module: mreadlink-with-size.
39837         * MODULES.html.sh: Add mreadlink-with-size.
39838         * modules/mreadlink-with-size: New module
39839         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
39840         not xreadlink-with-size.
39841         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
39842
39843 2007-06-16  Bruno Haible  <bruno@clisp.org>
39844
39845         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
39846         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
39847         Reported by Gary V. Vaughan <gary@gnu.org>.
39848
39849 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
39850
39851         Revamp lchown so that it lives in unistd.h where it belongs.
39852         * lib/lchown.h: Remove.
39853         * lib/dirchownmod.c: Don't include lib/lchown.h.
39854         * lib/fchownat.c: Likewise.
39855         * lib/openat.c: Likewise.
39856         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
39857         does not follow symlinks.
39858         (EOPNOTSUPP): Define if not defined.
39859         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
39860         is defined to 0.
39861         (lchown): New decl.
39862         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
39863         Do not check for lchown decl.
39864         Set REPLACE_LCHOWN.
39865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
39866         REPLACE_LCHOWN.
39867         * modules/chown: Make it clear it follows symlinks.
39868         * modules/lchown: Make it clear it doesn't follow symlinks.
39869         (Files): Remove lib/lchown.h
39870         (Depends-on): Add unistd.
39871         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
39872         (Include): Include <unistd.h>, not "lchown.h".
39873         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
39874         REPLACE_LCHOWN.
39875
39876 2007-06-15  Jim Meyering  <jim@meyering.net>
39877
39878         Change license (GPL to LGPL) of fsusage and dependents.
39879         * modules/fsusage (License): Change to LGPL.
39880         * modules/full-read (License): Likewise.
39881         * modules/full-write (License): Likewise.
39882         * modules/safe-read (License): Likewise.
39883         * modules/safe-write (License): Likewise.
39884
39885 2007-06-14  Ben Pfaff  <blp@gnu.org>
39886
39887         Missing part of allocsa -> malloca transition.
39888         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
39889         gl_MALLOCA.
39890
39891 2007-06-12  Bruno Haible  <bruno@clisp.org>
39892
39893         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
39894         to ia64, x86_64, i386.
39895         Reported by Eric Blake.
39896
39897 2007-06-12  Bruno Haible  <bruno@clisp.org>
39898
39899         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
39900         cross-compiling to x86_64.
39901
39902 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
39903
39904         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
39905         glitch reported by Ralf Wildenhues in
39906         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
39907
39908         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
39909         Vin Shelton.
39910
39911 2007-06-11  Bruno Haible  <bruno@clisp.org>
39912
39913         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
39914         replacement string.
39915         Reported by Eric Blake.
39916
39917 2007-06-10  Bruno Haible  <bruno@clisp.org>
39918
39919         Prepare vasnprintf code for use with Unicode strings.
39920         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
39921         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
39922         TYPE_U32_STRING.
39923         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
39924         a_u32_string variants.
39925         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
39926         * lib/printf-args.c: Don't include config.h and the specification
39927         header if PRINTF_FETCHARGS is already defined.
39928         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
39929         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
39930         TYPE_U16_STRING, TYPE_U32_STRING.
39931         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
39932         u16_directive, u16_directives, u32_directive, u32_directives): New
39933         types.
39934         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
39935         New declarations.
39936         * lib/printf-parse.c: Don't include config.h and the specification
39937         header if PRINTF_PARSE is already defined. Eliminate the set of
39938         parameters for WIDE_CHAR_VERSION; the user of this file must provide
39939         them now. Include c-ctype.h.
39940         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
39941         directive and CHAR_T_ONLY_ASCII.
39942         * lib/vasnprintf.c: Don't include config.h and the specification header
39943         if VASNPRINTF is already defined.
39944         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
39945         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
39946         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
39947         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
39948         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
39949         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
39950         code accordingly.
39951         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
39952         pad_ourselves also in this case, with the 'c' and 's' directives, and
39953         with a different notion of "width".
39954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
39955
39956 2007-06-10  Bruno Haible  <bruno@clisp.org>
39957
39958         * modules/unistr/u32-mbsnlen: New file.
39959         * lib/unistr/u32-mbsnlen.c: New file.
39960
39961         * modules/unistr/u16-mbsnlen: New file.
39962         * lib/unistr/u16-mbsnlen.c: New file.
39963
39964         * modules/unistr/u8-mbsnlen: New file.
39965         * lib/unistr/u8-mbsnlen.c: New file.
39966
39967         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
39968         declarations.
39969
39970 2007-06-10  Bruno Haible  <bruno@clisp.org>
39971
39972         * lib/string_.h (mbsnlen): New declaration.
39973         * lib/mbsnlen.c: New file.
39974         * m4/mbsnlen.m4: New file.
39975         * modules/mbsnlen: New file.
39976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
39977         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
39978         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
39979
39980 2007-06-10  Bruno Haible  <bruno@clisp.org>
39981
39982         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
39983
39984 2007-06-10  Bruno Haible  <bruno@clisp.org>
39985
39986         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
39987         * lib/mbuiter.h: Likewise.
39988
39989 2007-06-10  Bruno Haible  <bruno@clisp.org>
39990
39991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
39992         declaration.
39993
39994 2007-06-10  Karl Berry  <karl@gnu.org>
39995
39996         * config/srclist.txt: remove gettext entries, Bruno prefers
39997         to update individually.
39998
39999 2007-06-10  Bruno Haible  <bruno@clisp.org>
40000
40001         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40002         'maxlen'. Ensure only length + width bytes are allocated, not
40003         length + 1 + width.
40004
40005 2007-06-09  Bruno Haible  <bruno@clisp.org>
40006
40007         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40008         (CHAR_T): Remove macro.
40009         (VASNPRINTF): Update.
40010
40011 2007-06-09  Bruno Haible  <bruno@clisp.org>
40012
40013         * MODULES.html.sh (Unicode string functions): Add the new modules.
40014
40015         * modules/uniconv/u32-conv-to-enc: New file.
40016         * lib/uniconv/u32-conv-to-enc.c: New file.
40017         * modules/uniconv/u32-conv-to-enc-tests: New file.
40018         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40019
40020         * modules/uniconv/u16-conv-to-enc: New file.
40021         * lib/uniconv/u16-conv-to-enc.c: New file.
40022         * lib/uniconv/u-conv-to-enc.h: New file.
40023         * modules/uniconv/u16-conv-to-enc-tests: New file.
40024         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40025
40026         * modules/uniconv/u8-conv-to-enc: New file.
40027         * lib/uniconv/u8-conv-to-enc.c: New file.
40028         * modules/uniconv/u8-conv-to-enc-tests: New file.
40029         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40030
40031         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40032         u32_conv_to_encoding): New declarations.
40033
40034 2007-06-09  Bruno Haible  <bruno@clisp.org>
40035
40036         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40037
40038 2007-06-09  Bruno Haible  <bruno@clisp.org>
40039
40040         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40041         * modules/malloca: Renamed from modules/allocsa, updated.
40042         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40043         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40044         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40045         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40046         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40047         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40048         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40049         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40050         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40051         * modules/c-strcasestr (Depends-on): Update.
40052         * lib/c-strcasestr.c: Update.
40053         * modules/c-strstr (Depends-on): Update.
40054         * lib/c-strstr.c: Update.
40055         * modules/canonicalize-lgpl (Depends-on): Update.
40056         * lib/canonicalize-lgpl.c: Update.
40057         * modules/clean-temp (Depends-on): Update.
40058         * lib/clean-temp.c: Update.
40059         * modules/csharpcomp (Depends-on): Update.
40060         * lib/csharpcomp.c: Update.
40061         * modules/csharpexec (Depends-on): Update.
40062         * lib/csharpexec.c: Update.
40063         * modules/javacomp (Depends-on): Update.
40064         * lib/javacomp.c: Update.
40065         * modules/javaexec (Depends-on): Update.
40066         * lib/javaexec.c: Update.
40067         * modules/mbscasestr (Depends-on): Update.
40068         * lib/mbscasestr.c: Update.
40069         * modules/mbsstr (Depends-on): Update.
40070         * lib/mbsstr.c: Update.
40071         * modules/setenv (Depends-on): Update.
40072         * lib/setenv.c: Update.
40073         * modules/strcasestr (Depends-on): Update.
40074         * lib/strcasestr.c: Update.
40075         * modules/striconveha (Depends-on): Update.
40076         * lib/striconveha.c: Update.
40077         * modules/relocatable-prog-wrapper (Files): Update.
40078         * lib/relocwrapper.c: Update.
40079         * build-aux/install-reloc: Update.
40080         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40081
40082 2007-06-08  Bruno Haible  <bruno@clisp.org>
40083
40084         Port to uClibc.
40085         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40086         * lib/fpurge.c (fpurge): Likewise.
40087         * lib/freading.c (freading): Likewise.
40088         * lib/fseeko.c (rpl_fseeko): Likewise.
40089         * lib/fseterr.c (fseterr): Likewise.
40090         * lib/fwriting.c (fwriting): Likewise.
40091         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40092
40093 2007-06-08  Bruno Haible  <bruno@clisp.org>
40094
40095         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40096         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40097         * modules/gettext (Files): Add m4/intlmacosx.m4.
40098
40099 2007-06-07  Bruno Haible  <bruno@clisp.org>
40100
40101         * modules/localename-tests: New file.
40102         * tests/test-localename.c: New file.
40103
40104         New module 'localename'.
40105         * lib/localename.h: New file.
40106         * lib/localename.c: New file, from GNU gettext.
40107         * m4/localename.m4: New file.
40108         * modules/localename: New file.
40109
40110 2007-06-07  Bruno Haible  <bruno@clisp.org>
40111
40112         Work around the lack of <wchar.h> on some builds of uClibc.
40113         * doc/headers/wchar.texi: Update.
40114         * lib/wchar_.h: Include <wchar.h> only if it exists.
40115         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40116         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40117         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40118         doesn't exist.
40119         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40120         * modules/mbfile (Depends-on): Add wchar.
40121         * modules/mbiter (Depends-on): Likewise.
40122         * modules/mbuiter (Depends-on): Likewise.
40123         Reported by Simon Josefsson.
40124
40125 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40126
40127         Work around problem reported by Steven M. Schweda in
40128         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40129         Tru64 5.1B with the Compaq compiler environment installed declares
40130         an 'isblank' function but does not define it in the C library.
40131         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40132         * lib/regex_internal.h (isblank): Likewise.
40133         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40134         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40135
40136 2007-06-05  Bruno Haible  <bruno@clisp.org>
40137
40138         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40139         ia64.
40140         * modules/printf-safe: New file.
40141         * modules/fprintf-posix (Depends-on): Add printf-safe.
40142         * modules/printf-posix (Depends-on): Likewise.
40143         * modules/snprintf-posix (Depends-on): Likewise.
40144         * modules/sprintf-posix (Depends-on): Likewise.
40145         * modules/vasnprintf-posix (Depends-on): Likewise.
40146         * modules/vasprintf-posix (Depends-on): Likewise.
40147         * modules/vfprintf-posix (Depends-on): Likewise.
40148         * modules/vprintf-posix (Depends-on): Likewise.
40149         * modules/vsnprintf-posix (Depends-on): Likewise.
40150         * modules/vsprintf-posix (Depends-on): Likewise.
40151         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40152         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40153         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40154         "no" on i386, x86_64, ia64.
40155         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40156         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40157         on i386, x86_64, ia64.
40158         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40159         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40160         on i386, x86_64, ia64.
40161         * tests/test-vasnprintf-posix.c: Include float.h.
40162         (LDBL80_WORDS): New macro.
40163         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40164         on i386, x86_64, ia64.
40165         * tests/test-vasprintf-posix.c: Include float.h.
40166         (LDBL80_WORDS): New macro.
40167         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40168         on i386, x86_64, ia64.
40169         * tests/test-snprintf-posix.c: Include float.h.
40170         * tests/test-sprintf-posix.c: Likewise.
40171         * tests/test-vsnprintf-posix.c: Likewise.
40172         * tests/test-vsprintf-posix.c: Likewise.
40173
40174 2007-06-05  Bruno Haible  <bruno@clisp.org>
40175
40176         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40177         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40178         non-IEEE numbers on i386, x86_64, ia64.
40179         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40180         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40181         * tests/test-isnanl.h: Include float.h.
40182         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40183
40184 2007-06-05  Bruno Haible  <bruno@clisp.org>
40185
40186         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40187         also the %a / %A. Handle the %a / %A code before this extra handling.
40188
40189 2007-06-05  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40192         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40193
40194 2007-06-05  Bruno Haible  <bruno@clisp.org>
40195
40196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40197         typo in variable name.
40198
40199 2007-06-05  Eric Blake  <ebb9@byu.net>
40200
40201         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40202         Reported by Simon Josefsson.
40203
40204 2007-06-04  Bruno Haible  <bruno@clisp.org>
40205
40206         Avoid test failures on some PowerPC platforms.
40207         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40208         Define differently for PowerPC.
40209         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40210         Reported by Gary V. Vaughan <gary@gnu.org>.
40211
40212 2007-06-02  Bruno Haible  <bruno@clisp.org>
40213
40214         Fix test-stdint failure on FreeBSD/ia64.
40215         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40216         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40217         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40218         * doc/headers/stdint.texi: Update.
40219
40220 2007-06-01  Bruno Haible  <bruno@clisp.org>
40221
40222         * tests/test-binary-io.c (main): Pass a third argument to open().
40223         Reported by Gary V. Vaughan <gary@gnu.org>.
40224
40225 2007-06-01  Bruno Haible  <bruno@clisp.org>
40226
40227         * doc/functions/frexpl.texi: Update for mingw.
40228
40229 2007-06-01  Bruno Haible  <bruno@clisp.org>
40230
40231         * tests/test-lseek.c (main): Disable test of errno for invalid third
40232         argument.
40233         * doc/functions/lseek.texi: Update.
40234         Reported by Gary V. Vaughan <gary@gnu.org>.
40235
40236 2007-05-28  Bruno Haible  <bruno@clisp.org>
40237
40238         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
40239
40240 2007-05-31  Eric Blake  <ebb9@byu.net>
40241
40242         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
40243         cross compiling.
40244
40245 2007-05-30  Eric Blake  <ebb9@byu.net>
40246         and Bruno Haible  <bruno@clisp.org>
40247
40248         Work around mingw test failures exposed by m4-1.4.9b.
40249         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
40250         * tests/test-unistd.c: Disable uid_t and git_t tests for the
40251         moment.
40252
40253 2007-05-30  Bruno Haible  <bruno@clisp.org>
40254
40255         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
40256         assuming that they are closed. Needed on HP-UX 11.
40257
40258 2007-05-29  Bruno Haible  <bruno@clisp.org>
40259
40260         Fix a problem with #include_next.
40261         * lib/dirent_.h: Split the double-inclusion guard.
40262         * lib/fcntl_.h: Likewise.
40263         * lib/float_.h: Likewise.
40264         * lib/iconv_.h: Likewise.
40265         * lib/inttypes_.h: Likewise.
40266         * lib/locale_.h: Likewise.
40267         * lib/math_.h: Likewise.
40268         * lib/netinet_in_.h: Likewise.
40269         * lib/search_.h: Likewise.
40270         * lib/signal_.h: Likewise.
40271         * lib/stdint_.h: Likewise.
40272         * lib/stdio_.h: Likewise.
40273         * lib/stdlib_.h: Likewise.
40274         * lib/string_.h: Likewise.
40275         * lib/sys_select_.h: Likewise.
40276         * lib/sys_socket_.h: Likewise.
40277         * lib/sys_stat_.h: Likewise.
40278         * lib/sys_time_.h: Likewise.
40279         * lib/sysexits_.h: Likewise.
40280         * lib/time_.h: Likewise.
40281         * lib/unistd_.h: Likewise.
40282         * lib/wchar_.h: Likewise.
40283         * lib/wctype_.h: Likewise.
40284
40285 2007-05-29  Bruno Haible  <bruno@clisp.org>
40286
40287         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40288         for the moment.
40289
40290 2007-05-29  Bruno Haible  <bruno@clisp.org>
40291
40292         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40293         invocation.
40294         Reported by Eric Blake.
40295
40296 2007-05-29  Bruno Haible  <bruno@clisp.org>
40297
40298         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40299         compiling case.
40300
40301 2007-05-29  Eric Blake  <ebb9@byu.net>
40302             Bruno Haible  <bruno@clisp.org>
40303
40304         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40305         cross compiles.
40306
40307 2007-05-28  Eric Blake  <ebb9@byu.net>
40308
40309         * modules/closein-tests (test_closein_LDADD): Support test on
40310         cygwin with libtool.
40311
40312 2007-05-28  Bruno Haible  <bruno@clisp.org>
40313
40314         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40315         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40316         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40317         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40318         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40319         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40320         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40321         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40322         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40323
40324 2007-05-28  Eric Blake  <ebb9@byu.net>
40325
40326         Unconditionally include <config.h> in unit tests.
40327         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40328         * tests/test-allocsa.c, tests/test-arcfour.c,
40329         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40330         tests/test-array_list.c, tests/test-array_oset.c,
40331         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40332         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40333         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40334         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40335         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40336         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40337         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40338         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40339         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40340         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40341         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40342         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40343         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40344         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40345         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40346         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40347         test-md5.c, test-memmem.c, test-printf-posix.c,
40348         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40349         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40350         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40351         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40352         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40353         test-vasnprintf-posix2.c, test-vasnprintf.c,
40354         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40355         test-vfprintf-posix.c, test-vprintf-posix.c,
40356         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40357         test-xvasprintf.c: Likewise.
40358
40359 2007-05-28  Bruno Haible  <bruno@clisp.org>
40360
40361         * gnulib-tool (func_import): Remember the --with-tests command-line
40362         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40363         Reported by Eric Blake.
40364
40365 2007-05-28  Bruno Haible  <bruno@clisp.org>
40366
40367         * modules/ftell-tests: New file.
40368         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40369         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40370
40371         * lib/ftell.c: New file.
40372         * modules/ftell: New file.
40373         * m4/ftell.m4: New file.
40374         * doc/functions/ftell.texi: Update.
40375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40376         REPLACE_FTELL.
40377         * lib/stdio_.h (rpl_ftell): New declaration.
40378         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40379         REPLACE_FTELL.
40380
40381 2007-05-28  Eric Blake  <ebb9@byu.net>
40382
40383         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40384
40385 2007-05-28  Bruno Haible  <bruno@clisp.org>
40386
40387         * modules/fseek-tests: New file.
40388         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40389         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40390
40391         * lib/fseek.c: New file.
40392         * modules/fseek: New file.
40393         * m4/fseek.m4: New file.
40394         * doc/functions/fseek.texi: Update.
40395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
40396         REPLACE_FSEEK.
40397         * lib/stdio_.h (rpl_fseek): New declaration.
40398         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
40399         REPLACE_FSEEK.
40400
40401 2007-05-28  Bruno Haible  <bruno@clisp.org>
40402
40403         * lib/stdio_.h (fflush): More comments.
40404
40405 2007-05-28  Bruno Haible  <bruno@clisp.org>
40406
40407         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
40408         runtime test.
40409
40410 2007-05-28  Eric Blake  <ebb9@byu.net>
40411
40412         Improve lseek module.
40413         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
40414         * lib/unistd_.h (lseek): Scale back link warning message.
40415         * tests/test-lseek.c: Beef up test.
40416         * tests/test-lseek.sh: Exercise more facets of lseek.
40417         Reported by Bruno Haible.
40418
40419 2007-05-28  Bruno Haible  <bruno@clisp.org>
40420
40421         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
40422         to define.
40423
40424 2007-05-27  Bruno Haible  <bruno@clisp.org>
40425
40426         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
40427
40428 2007-05-27  Bruno Haible  <bruno@clisp.org>
40429
40430         * modules/openmp: New file.
40431         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
40432         Noah Misch.
40433
40434 2007-05-26  Bruno Haible  <bruno@clisp.org>
40435
40436         * modules/chdir-long (Depends-on): Add fchdir.
40437         * modules/chdir-safer (Depends-on): Likewise.
40438         * modules/fts (Depends-on): Likewise.
40439         * modules/fts-lgpl (Depends-on): Likewise.
40440         * modules/openat (Depends-on): Likewise.
40441         * modules/savewd (Depends-on): Likewise.
40442
40443 2007-05-24  Eric Blake  <ebb9@byu.net>
40444
40445         Fix lseek on mingw.
40446         * modules/lseek: New module.
40447         * m4/lseek.m4: New file.
40448         * lib/lseek.c: New file.
40449         * modules/lseek-tests: New file.
40450         * tests/test-lseek.c: New file.
40451         * tests/test-lseek.sh: New file.
40452         * MODULES.html.sh: Document lseek module.
40453         * modules/fflush (Depends-on): Add lseek, fseeko.
40454         * modules/fseeko (Depends-on): Likewise.
40455         * modules/ftello (Depends-on): Likewise.
40456         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
40457         broken.
40458         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
40459         broken.
40460         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
40461         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
40462         * lib/ftello.c (rpl_ftello): Likewise.
40463         * tests/test-fseeko.c (main): Test this.
40464         * tests/test-fseeko.sh: Likewise.
40465         * tests/test-ftello.c (main): Likewise.
40466         * tests/test-ftello.sh: Likewise.
40467         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
40468         implies replacing fseek.
40469         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
40470         HAVE_FTELLO.
40471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
40472         * modules/unistd (Makefile.am): Likewise.
40473         * lib/unistd_.h (lseek): Declare a replacement.
40474         * doc/functions/lseek.texi (lseek): Document this fix.
40475         * doc/functions/fseek.texi (fseek): Likewise.
40476         * doc/functions/ftell.texi (ftell): Likewise.
40477
40478 2007-05-24  Bruno Haible  <bruno@clisp.org>
40479
40480         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
40481         in the printed representation of a NaN.
40482         * tests/test-vasprintf-posix.c (test_function): Likewise.
40483         * tests/test-snprintf-posix.h (test_function): Likewise.
40484         * tests/test-sprintf-posix.h (test_function): Likewise.
40485         Reported by Eric Blake.
40486
40487 2007-05-23  Eric Blake  <ebb9@byu.net>
40488
40489         Fix fseeko/ftello on cygwin 1.5.24.
40490         * doc/functions/fseeko.texi (fseeko): Document the fix.
40491         * doc/functions/ftello.texi (ftello): Document the fix.
40492         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
40493         * doc/functions/stdout.text (stdout): New file.
40494         * doc/functions/stderr.text (stderr): New file.
40495         * doc/gnulib.texi (Function Substitutes): Use new files.
40496         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
40497         prior to 1.7.0.
40498         * tests/test-ftello.c (main): Likewise for ftello.
40499         * tests/test-fseeko.sh: New file.
40500         * tests/test-ftello.sh: New file.
40501         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
40502         with seekable stdin.
40503         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
40504         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
40505         (gl_REPLACE_FSEEKO): New macro.
40506         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
40507         * modules/fseeko (Files): Distribute fseeko.c.
40508         * modules/ftello (Files): Distribute ftello.c.
40509         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
40510         mode.
40511         * lib/ftello.c (rpl_ftello): New file.
40512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
40513         fseeko, ftello.
40514         (gl_STDIN_LARGE_OFFSET): New macro.
40515         * modules/stdio (Makefile.am): Perform the replacement.
40516         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
40517
40518 2007-05-23  Bruno Haible  <bruno@clisp.org>
40519
40520         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
40521         GNULIB_POSIXCHECK is defined.
40522
40523 2007-05-21  Bruno Haible  <bruno@clisp.org>
40524
40525         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
40526         Check also the output for NaN arguments. When cross-compiling, guess
40527         no on IRIX.
40528         * lib/vasnprintf.c: Update comments.
40529         * tests/test-vasnprintf-posix.c (strisnan): New function.
40530         (test_function): Use it.
40531         * tests/test-vasprintf-posix.c (strisnan): New function.
40532         (test_function): Use it.
40533         * tests/test-snprintf-posix.h (strisnan): New function.
40534         (test_function): Use it.
40535         * tests/test-sprintf-posix.h (strisnan): New function.
40536         (test_function): Use it.
40537         Reported by Eric Blake.
40538
40539 2007-05-20  Bruno Haible  <bruno@clisp.org>
40540
40541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
40542         numbers that fails on BeOS.
40543         * doc/functions/frexpl.texi: Update.
40544
40545 2007-05-20  Jim Meyering  <jim@meyering.net>
40546
40547         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
40548         forced upon us by glibc-2.6.
40549
40550 2007-05-20  Bruno Haible  <bruno@clisp.org>
40551
40552         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
40553         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
40554         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
40555         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
40556         NEED_PRINTF_INFINITE.
40557         (is_infinitel): New function.
40558         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
40559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
40560         gl_PREREQ_VASNPRINTF_INFINITE.
40561         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
40562         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40563         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
40564         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
40565         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
40566         gl_PREREQ_VASNPRINTF_INFINITE.
40567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40569         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40570         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40571         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40572         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40573         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40574         * doc/functions/fprintf.texi: Update.
40575         * doc/functions/printf.texi: Update.
40576         * doc/functions/snprintf.texi: Update.
40577         * doc/functions/sprintf.texi: Update.
40578         * doc/functions/vfprintf.texi: Update.
40579         * doc/functions/vprintf.texi: Update.
40580         * doc/functions/vsnprintf.texi: Update.
40581         * doc/functions/vsprintf.texi: Update.
40582
40583 2007-05-20  Bruno Haible  <bruno@clisp.org>
40584
40585         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
40586         was not found in libc.
40587         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40588
40589 2007-05-20  Bruno Haible  <bruno@clisp.org>
40590
40591         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40592         printed as "-nan" instead of "nan".
40593         * tests/test-vasprintf-posix.c (test_function): Likewise.
40594         * tests/test-snprintf-posix.h (test_function): Likewise.
40595         * tests/test-sprintf-posix.h (test_function): Likewise.
40596         Needed for HP-UX 11.
40597
40598 2007-05-20  Jim Meyering  <jim@meyering.net>
40599
40600         Fix buggy test for the fchownat-deref bug.
40601         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
40602         symlink required for the run-test.  Without it, this test would
40603         always declare that fchownat doesn't work, and client code would
40604         unnecessarily use the replacement function with fixed libc.
40605         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
40606         Reported by Greg Schafer.
40607
40608 2007-05-19  Bruno Haible  <bruno@clisp.org>
40609
40610         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
40611         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
40612         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
40613         Needed for IRIX 6.5 and Solaris 2.5.1.
40614
40615 2007-05-19  Bruno Haible  <bruno@clisp.org>
40616
40617         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
40618         (test_function): Skip tests involving -0.0 on platforms where
40619         -0.0 = 0.0.
40620         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
40621         (test_function): Skip tests involving -0.0 on platforms where
40622         -0.0 = 0.0.
40623         * tests/test-snprintf-posix.h (have_minus_zero): New function.
40624         (test_function): Skip tests involving -0.0 on platforms where
40625         -0.0 = 0.0.
40626         * tests/test-sprintf-posix.h (have_minus_zero): New function.
40627         (test_function): Skip tests involving -0.0 on platforms where
40628         -0.0 = 0.0.
40629         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
40630         tests.
40631         * tests/test-printf-posix.h (test_function): Likewise.
40632         * tests/test-printf-posix.output: Remove all -0.0 related results.
40633         Needed for IRIX 6.5.
40634
40635 2007-05-19  Bruno Haible  <bruno@clisp.org>
40636
40637         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40638         printed as "nan0x7fffffff" instead of "nan".
40639         * tests/test-vasprintf-posix.c (test_function): Likewise.
40640         * tests/test-snprintf-posix.h (test_function): Likewise.
40641         * tests/test-sprintf-posix.h (test_function): Likewise.
40642         * tests/test-fprintf-posix.h (NaN): Remove macro.
40643         (test_function): Remove all NaN related tests.
40644         * tests/test-printf-posix.h (NaN): Remove macro.
40645         (test_function): Remove all NaN related tests.
40646         * tests/test-printf-posix.output: Remove all NaN related results.
40647         Needed for IRIX 6.5.
40648
40649 2007-05-19  Bruno Haible  <bruno@clisp.org>
40650
40651         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
40652         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40653
40654 2007-05-19  Bruno Haible  <bruno@clisp.org>
40655
40656         * lib/float_.h: New file.
40657         * m4/float_h.m4: New file.
40658         * modules/float: New file.
40659         * modules/isnanl (Dependencies): Add float.
40660         * modules/isnanl-nolibm (Dependencies): Likewise.
40661         * modules/mathl (Dependencies): Likewise.
40662         * modules/printf-frexpl (Dependencies): Likewise.
40663         * modules/signbit (Dependencies): Likewise.
40664         * modules/vasnprintf (Dependencies): Likewise.
40665         * doc/headers/float.texi: Update.
40666
40667 2007-05-19  Jim Meyering  <jim@meyering.net>
40668
40669         * lib/utimens.c (gl_futimens): Rename from futimens,
40670         now that glibc-2.6 declares futimens.
40671         * lib/utimens.h: Likewise.
40672
40673 2007-05-19  Bruno Haible  <bruno@clisp.org>
40674
40675         Avoid test failures on mingw.
40676         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
40677         * tests/test-printf-posix.sh: Likewise.
40678         * tests/test-vfprintf-posix.sh: Likewise.
40679         * tests/test-vprintf-posix.sh: Likewise.
40680
40681 2007-05-19  Bruno Haible  <bruno@clisp.org>
40682
40683         Fix *printf result for NaN, Inf, -0.0 on mingw.
40684         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
40685         * lib/vasnprintf.c: Include math.h and isnan.h.
40686         (is_infinite_or_zero): New function.
40687         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
40688         values in the %f, %F, %e, %E, %g, %G directives.
40689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
40690         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40691         gl_PRINTF_INFINITE and test its result. Invoke
40692         gl_PREREQ_VASNPRINTF_INFINITE.
40693         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40694         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40695         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40696         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40697         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40699         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40700         * doc/functions/fprintf.texi: Update.
40701         * doc/functions/printf.texi: Update.
40702         * doc/functions/snprintf.texi: Update.
40703         * doc/functions/sprintf.texi: Update.
40704         * doc/functions/vfprintf.texi: Update.
40705         * doc/functions/vprintf.texi: Update.
40706         * doc/functions/vsnprintf.texi: Update.
40707         * doc/functions/vsprintf.texi: Update.
40708
40709 2007-05-19  Bruno Haible  <bruno@clisp.org>
40710
40711         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
40712         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
40713         Instead of multiplying with 10^k, set extra_zeroes to k.
40714         (scale10_round_long_double): Remove function.
40715
40716 2007-05-18  Bruno Haible  <bruno@clisp.org>
40717
40718         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
40719         introduced on 2007-05-06.
40720
40721 2007-05-18  Bruno Haible  <bruno@clisp.org>
40722
40723         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
40724         %g directives.
40725         * tests/test-vasprintf-posix.c (test_function): Likewise.
40726         * tests/test-snprintf-posix.h (test_function): Likewise.
40727         * tests/test-sprintf-posix.h (test_function): Likewise.
40728
40729 2007-05-18  Bruno Haible  <bruno@clisp.org>
40730
40731         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
40732         (strmatch): New function.
40733         (test_function): Test the %f directive on numbers of various exponents.
40734         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
40735         (strmatch): New function.
40736         (test_function): Test the %f directive on numbers of various exponents.
40737         * tests/test-snprintf-posix.h (strmatch): New function.
40738         (test_function): Test the %f directive on numbers of various exponents.
40739         * tests/test-sprintf-posix.h (strmatch): New function.
40740         (test_function): Test the %f directive on numbers of various exponents.
40741         * tests/test-snprintf-posix.c (SIZEOF): New macro.
40742         * tests/test-sprintf-posix.c (SIZEOF): New macro.
40743         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
40744         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
40745
40746 2007-05-18  Bruno Haible  <bruno@clisp.org>
40747
40748         Add support for 'long double' number output.
40749         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
40750         * lib/vasnprintf.c: Include math.h and float+.h.
40751         (mp_limb_t): New type.
40752         (GMP_LIMB_BITS): New macro.
40753         (mp_twolimb_t): New type.
40754         (GMP_TWOLIMB_BITS): New macro.
40755         (mpn_t): New type.
40756         (multiply, divide, convert_to_decimal, decode_long_double,
40757         scale10_round_long_double, scale10_round_decimal_long_double,
40758         floorlog10l): New functions.
40759         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
40760         for the %f, %F, %e, %E, %g, %G directives.
40761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
40762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40763         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
40764         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
40765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40766         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40772         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
40773         * modules/snprintf-posix (Depends-on): Likewise.
40774         * modules/sprintf-posix (Depends-on): Likewise.
40775         * modules/vasnprintf-posix (Depends-on): Likewise.
40776         * modules/vasprintf-posix (Depends-on): Likewise.
40777         * modules/vfprintf-posix (Depends-on): Likewise.
40778         * modules/vsnprintf-posix (Depends-on): Likewise.
40779         * modules/vsprintf-posix (Depends-on): Likewise.
40780         * modules/vasnprintf (Files): Add lib/float+.h.
40781         * doc/functions/fprintf.texi: Update.
40782         * doc/functions/printf.texi: Update.
40783         * doc/functions/snprintf.texi: Update.
40784         * doc/functions/sprintf.texi: Update.
40785         * doc/functions/vfprintf.texi: Update.
40786         * doc/functions/vprintf.texi: Update.
40787         * doc/functions/vsnprintf.texi: Update.
40788         * doc/functions/vsprintf.texi: Update.
40789
40790 2007-05-18  Bruno Haible  <bruno@clisp.org>
40791
40792         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
40793
40794 2007-05-18  Bruno Haible  <bruno@clisp.org>
40795
40796         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
40797         for printing 64-bit integers. Needed for mingw.
40798
40799 2007-05-18  Bruno Haible  <bruno@clisp.org>
40800
40801         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40802         gl_FUNC_FREXPL_WORKS.
40803         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
40804
40805 2007-05-18  Bruno Haible  <bruno@clisp.org>
40806
40807         * modules/frexpl-nolibm-tests: New file.
40808
40809         * modules/frexpl-nolibm: New file.
40810         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
40811
40812 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40813
40814         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
40815         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40816         GCC 4.2, which otherwise issues a lot of warnings.
40817         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
40818         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
40819         Likewise.
40820         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
40821         * modules/iconv_open (iconv.h): Likewise.
40822         * modules/locale (locale.h): Likewise.
40823         * modules/netinet_in (netinet/in.h): Likewise.
40824         * modules/sys_select (sys_select.h): Likewise.
40825         * modules/sys_socket (sys/socket.h): Likewise.
40826         * modules/sys_stat (sys/stat.h): Likewise.
40827         * modules/sysexits (sysexits.h): Likewise.
40828         * modules/unistd (unistd.h): Likewise.
40829
40830 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40831
40832         * modules/closein-tests (Makefile.am): Distribute
40833         `test-closein.sh'.
40834
40835 2007-05-17  Bruno Haible  <bruno@clisp.org>
40836
40837         * tests/test-printf-posix.output: Renamed from
40838         tests/test-fprintf-posix.out.
40839         * modules/fprintf-posix-tests: Update.
40840         * modules/printf-posix-tests: Update.
40841         * modules/vfprintf-posix-tests: Update.
40842         * modules/vprintf-posix-tests: Update.
40843         * tests/test-fprintf-posix.sh: Update.
40844         * tests/test-printf-posix.sh: Update.
40845         * tests/test-vfprintf-posix.sh: Update.
40846         * tests/test-vprintf-posix.sh: Update.
40847         Reported by Ralf Wildenhues.
40848
40849 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40850
40851         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
40852         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40853         GCC 4.2, which otherwise issues a lot of warnings.
40854         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
40855         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
40856         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
40857         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
40858         it should no longer be needed.
40859         * lib/string_.h: Likewise.
40860         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
40861         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
40862         * modules/inttypes (inttypes.h): Likewise.
40863         * modules/math (math.h): Likewise.
40864         * modules/search (search.h): Likewise.
40865         * modules/signal (signal.h): Likewise.
40866         * modules/stdint (stdint.h): Likewise.
40867         * modules/stdio (stdio.h): Likewise.
40868         * modules/stdlib (stdlib.h): Likewise.
40869         * modules/string (string.h): Likewise.
40870         * modules/sys_time (sys/time.h): Likewise.
40871         * modules/time (time.h): Likewise.
40872         * modules/wchar (wchar.h): Likewise.
40873         * modules/wctype (wtype.h): Likewise.
40874
40875 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40876
40877         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
40878
40879 2007-05-13  Bruno Haible  <bruno@clisp.org>
40880
40881         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
40882         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40883         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
40884         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
40885         (gl_PREREQ_STRTOK_R): Don't require it here.
40886
40887 2007-05-13  Bruno Haible  <bruno@clisp.org>
40888
40889         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
40890         when used in C++ mode.
40891
40892 2007-05-12  Bruno Haible  <bruno@clisp.org>
40893
40894         * lib/linebuffer.h: Tweak doc.
40895         * lib/linebuffer.c: Likewise.
40896
40897 2007-05-12  James Youngman  <jay@gnu.org>
40898
40899         * lib/linebuffer.c (readlinebuffer_delim): New function,
40900         like readlinebuffer, but use a caller-specified delimiter.
40901         (readlinebuffer): Just call readlinebuffer_delim with '\n'
40902         as the delimiter.
40903         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
40904
40905 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40906
40907         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
40908         * modules/openat (Files): Remove openat-die.c.
40909         (Depends-on): Add openat-die.
40910         * modules/openat-die: New module.
40911
40912 2007-05-06  Bruno Haible  <bruno@clisp.org>
40913
40914         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
40915         Update with info about Cygwin.
40916         * doc/functions/fprintf.texi: Update.
40917         * doc/functions/printf.texi: Update.
40918         * doc/functions/snprintf.texi: Update.
40919         * doc/functions/sprintf.texi: Update.
40920         * doc/functions/vfprintf.texi: Update.
40921         * doc/functions/vprintf.texi: Update.
40922         * doc/functions/vsnprintf.texi: Update.
40923         * doc/functions/vsprintf.texi: Update.
40924         Reported by Eric Blake.
40925
40926 2007-05-06  Bruno Haible  <bruno@clisp.org>
40927
40928         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
40929         padding ourselves for the floating-point directives.
40930         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
40931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
40932         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40933         gl_PRINTF_FLAG_ZERO and test its result. Invoke
40934         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
40935         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40936         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
40937         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40938         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40939         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40941         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40942         * tests/test-snprintf-posix.h (test_function): Also check the width
40943         and some flags in the %f directive.
40944         * tests/test-sprintf-posix.h (test_function): Likewise.
40945         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40946         * tests/test-vasprintf-posix.c (test_function): Likewise.
40947         * doc/functions/fprintf.texi: Update.
40948         * doc/functions/printf.texi: Update.
40949         * doc/functions/snprintf.texi: Update.
40950         * doc/functions/sprintf.texi: Update.
40951         * doc/functions/vfprintf.texi: Update.
40952         * doc/functions/vprintf.texi: Update.
40953         * doc/functions/vsnprintf.texi: Update.
40954         * doc/functions/vsprintf.texi: Update.
40955
40956 2007-05-06  Bruno Haible  <bruno@clisp.org>
40957
40958         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
40959         pass the ' flag character to sprintf or snprintf.
40960         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
40961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
40962         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40963         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
40964         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
40965         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40966         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
40967         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40969         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40970         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40971         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40972         * tests/test-snprintf-posix.h (test_function): Also check the grouping
40973         flag.
40974         * tests/test-sprintf-posix.h (test_function): Likewise.
40975         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40976         * tests/test-vasprintf-posix.c (test_function): Likewise.
40977         * doc/functions/fprintf.texi: Update.
40978         * doc/functions/printf.texi: Update.
40979         * doc/functions/snprintf.texi: Update.
40980         * doc/functions/sprintf.texi: Update.
40981         * doc/functions/vfprintf.texi: Update.
40982         * doc/functions/vprintf.texi: Update.
40983         * doc/functions/vsnprintf.texi: Update.
40984         * doc/functions/vsprintf.texi: Update.
40985
40986 2007-05-01  Bruno Haible  <bruno@clisp.org>
40987
40988         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
40989
40990 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
40991
40992         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
40993         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
40994
40995 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
40996
40997         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
40998         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
40999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41000
41001 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41002
41003         * lib/argp-help.c (struct hol_entry): New member `ord'.
41004         (HOL_ENTRY_PTRCMP): Use ord for comparison
41005         (hol_sort): Initialize ord.
41006
41007 2007-05-01  Bruno Haible  <bruno@clisp.org>
41008
41009         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41010         Reported by Eric Blake.
41011         * doc/gnulib.texi (Function Substitutes): Update.
41012
41013 2007-05-01  Bruno Haible  <bruno@clisp.org>
41014
41015         * doc/functions.texi: Remove file, now redundant through
41016         doc/functions/*.texi.
41017
41018 2007-05-01  Bruno Haible  <bruno@clisp.org>
41019
41020         * modules/argp (Depends-on): Add sleep.
41021
41022 2007-05-01  Bruno Haible  <bruno@clisp.org>
41023
41024         * modules/sleep-tests: New file.
41025         * tests/test-sleep.c: New file.
41026
41027         * modules/sleep: New file.
41028         * lib/sleep.c: New file.
41029         * m4/sleep.m4: New file.
41030         * lib/unistd_.h (sleep): New declaration.
41031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41032         HAVE_SLEEP.
41033         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41034         * doc/functions/sleep.texi: Document the sleep module.
41035
41036 2007-05-01  Bruno Haible  <bruno@clisp.org>
41037
41038         * lib/sigprocmask.h: Remove file.
41039         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41040         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41041         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41042         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41043         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41044         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41045         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41046         HAVE_SIGSET_T as a shell variable.
41047         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41048         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41049         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41050         (Depends-on): Add signal. Remove verify.
41051         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41052         (Include): Mention <signal.h> instead of sigprocmask.h.
41053         * NEWS: Mention the change.
41054         * lib/fatal-signal.c: Don't include sigprocmask.h.
41055
41056 2007-05-01  Bruno Haible  <bruno@clisp.org>
41057
41058         * modules/signal: New file.
41059         * lib/signal_.h: New file.
41060         * m4/signal_h.m4: New file.
41061
41062 2007-05-01  Bruno Haible  <bruno@clisp.org>
41063
41064         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41065         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41066         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41067         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41068
41069 2007-05-01  Bruno Haible  <bruno@clisp.org>
41070
41071         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41072         configure time.
41073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41074         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41075         * modules/sys_stat (Makefile.am): Substitute their values into
41076         sys/stat.h.
41077
41078 2007-05-01  Bruno Haible  <bruno@clisp.org>
41079
41080         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41081         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41082         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41083
41084 2007-05-01  Bruno Haible  <bruno@clisp.org>
41085
41086         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41087         'assert' module here.
41088
41089 2007-05-01  Bruno Haible  <bruno@clisp.org>
41090
41091         * doc/functions/*.texi: New files.
41092         * doc/functions/google-ranking.txt: New file.
41093         * doc/gnulib.texi (Function Substitutes): New chapter.
41094         (ctime, inet_ntoa): Remove sections.
41095         * doc/ctime.texi: Remove file.
41096         * doc/inet_ntoa.texi: Remove file.
41097         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41098         dependencies.
41099         (%.info): New rule, specifying a --reference-limit.
41100
41101 2007-05-01  Bruno Haible  <bruno@clisp.org>
41102
41103         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41104
41105 2007-05-01  Bruno Haible  <bruno@clisp.org>
41106
41107         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41108         the portability of 'mkdir' to mingw systems.
41109
41110 2007-05-01  Bruno Haible  <bruno@clisp.org>
41111
41112         * doc/headers/google-ranking.txt: New file.
41113
41114 2007-04-30  Eric Blake  <ebb9@byu.net>
41115
41116         Prefer fseeko to fseek.
41117         * modules/getpass (Depends-on): Add fseeko.
41118         * lib/getpass.c (getpass): Use fseeko, not fseek.
41119
41120 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41121
41122         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41123         assumes the sorting is stable, while most qsort implementations
41124         are not.  Use argument addresses to ensure they never compare as
41125         equal.
41126
41127         * tests/test-argp-2.sh (usage-indent test): Fix output
41128         (func_compare): Restore diff options
41129         * tests/test-argp.c: Restore #include "progname.h"
41130
41131 2007-04-29  Bruno Haible  <bruno@clisp.org>
41132
41133         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41135         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41136         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41137         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41138         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41139         (TESTS, check_PROGRAMS): Add test-snprintf.
41140         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41141         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41142         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41143         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41144         assertions that fail on HP-UX, OSF/1, or IRIX.
41145         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41146
41147 2007-04-29  Bruno Haible  <bruno@clisp.org>
41148
41149         * MODULES.html.sh (posix_functions): Remove 'contents'.
41150
41151 2007-04-29  Karl Berry  <karl@gnu.org>
41152
41153         * config/srclist.txt (gendocs_template_min): new entry.
41154
41155 2007-04-29  Bruno Haible  <bruno@clisp.org>
41156
41157         Work around fpurge bug on BSD systems.
41158         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41159         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41160         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41161         fpurge to rpl_fpurge if the system already has this function.
41162         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41163         the case where the system already has this function. Correct invariants
41164         on BSD systems.
41165         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41166         BSD systems.
41167
41168 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41169
41170         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41171         proposed by Sven Verdoolaege.
41172
41173         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41174         options.
41175         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41176         (usage and help tests): Update
41177
41178 2007-04-29  Bruno Haible  <bruno@clisp.org>
41179
41180         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41181         Print more information in case of failure. Disable a test on BeOS.
41182
41183 2007-04-29  Bruno Haible  <bruno@clisp.org>
41184
41185         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41186         This helps debugging on systems on which no gdb is available.
41187
41188 2007-04-29  Bruno Haible  <bruno@clisp.org>
41189
41190         * lib/freading.h: Improve comments.
41191         * lib/fwriting.h: Likewise.
41192         * tests/test-freading.c (main): Don't check freading immediately after
41193         repositioning. Needed for glibc.
41194
41195 2007-04-29  Bruno Haible  <bruno@clisp.org>
41196
41197         * lib/freading.c (freading): Trivial simplification.
41198
41199 2007-04-28  Bruno Haible  <bruno@clisp.org>
41200
41201         * tests/test-fwriting.c (main): Also test the interaction between
41202         fflush and fwriting.
41203         * modules/fwriting-tests (Depends-on): Add fflush.
41204
41205         * tests/test-freading.c (main): Also test the interaction between
41206         fflush and freading.
41207         * modules/freading-tests (Depends-on): Add fflush.
41208
41209 2007-04-28  Bruno Haible  <bruno@clisp.org>
41210
41211         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41212         fseeko and ftello.
41213         Suggested by Eric Blake.
41214
41215 2007-04-28  Jim Meyering  <jim@meyering.net>
41216
41217         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41218         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41219         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41220
41221 2007-04-27  Eric Blake  <ebb9@byu.net>
41222
41223         * doc/headers/assert.texi (assert.h): Document assert module use.
41224
41225 2007-04-27  Bruno Haible  <bruno@clisp.org>
41226
41227         * doc/headers/*.texi: New files.
41228         * doc/gnulib.texi (Header File Substitutes): New chapter.
41229         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
41230         dependencies.
41231         (standards.info ,standards.html, standards.dvi): Update dependencies.
41232         (mostlyclean, clean): New targets.
41233
41234 2007-04-27  Bruno Haible  <bruno@clisp.org>
41235
41236         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
41237         * modules/sysexits (Files, Makefile.am): Update.
41238
41239         * lib/sys_socket_.h: Renamed from lib/socket_.h.
41240         * modules/sys_socket (Files, Makefile.am): Update.
41241
41242         * lib/sys_stat_.h: Renamed from lib/stat_.h.
41243         * modules/sys_stat (Files, Makefile.am): Update.
41244
41245 2007-04-27  Eric Blake  <ebb9@byu.net>
41246
41247         * lib/freading.h: Improve comments.
41248         * lib/fwriting.h: Likewise.
41249         * lib/fflush.c: Likewise.
41250
41251         Fix closein for mingw.
41252         * modules/closein-tests: Add tests for closein.
41253         * tests/test-closein.c: New file.
41254         * tests/test-closein.sh: Likewise.
41255         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
41256         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
41257
41258 2007-04-27  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
41261         version is < 6.
41262         * lib/math_.h [__DECC]: Likewise.
41263         * lib/stdio_.h [__DECC]: Likewise.
41264         * lib/stdlib_.h [__DECC]: Likewise.
41265         * lib/string_.h [__DECC]: Likewise.
41266         * lib/time_.h [__DECC]: Likewise.
41267         * lib/wchar_.h [__DECC]: Likewise.
41268         * lib/wctype_.h [__DECC]: Likewise.
41269
41270 2007-04-27  Bruno Haible  <bruno@clisp.org>
41271
41272         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41273
41274 2007-04-27  Bruno Haible  <bruno@clisp.org>
41275
41276         * lib/fflush.c: Add comments.
41277         * modules/fpurge-tests (Depends-on): Add fflush.
41278         * modules/freadable-tests (Depends-on): Likewise.
41279         * modules/fwritable-tests (Depends-on): Likewise.
41280
41281 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41282
41283         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41284         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41285         Report by Bruno Haible <bruno@clisp.org>.
41286
41287 2007-04-26  Eric Blake  <ebb9@byu.net>
41288
41289         Fix fflush on mingw.
41290         * modules/fflush (Depends-on): Add freading.
41291         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41292         but unread data.
41293
41294 2007-04-26  Eric Blake  <ebb9@byu.net>
41295         and Bruno Haible  <bruno@clisp.org>
41296
41297         Implement freading and fwriting.
41298         * lib/freading.c: New file.
41299         * lib/freading.h: Likewise.
41300         * m4/freading.m4: Likewise.
41301         * modules/freading: Likewise.
41302         * modules/freading-tests: Likewise.
41303         * tests/test-freading.c: Likewise.
41304         * lib/fwriting.c: New file.
41305         * lib/fwriting.h: Likewise.
41306         * m4/fwriting.m4: Likewise.
41307         * modules/fwriting: Likewise.
41308         * modules/fwriting-tests: Likewise.
41309         * tests/test-fwriting.c: Likewise.
41310         * MODULES.html.sh (File stream based Input/Output): Mention them.
41311
41312 2007-04-26  Bruno Haible  <bruno@clisp.org>
41313
41314         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41315         'long' when we assume it.
41316         Suggested by Eric Blake.
41317
41318 2007-04-26  Bruno Haible  <bruno@clisp.org>
41319
41320         Ensure fseeko, ftello are declared on glibc systems.
41321         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41322         * modules/fseeko (configure.ac-early): Likewise.
41323         * modules/ftello (configure.ac-early): Likewise.
41324         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41325         AC_FUNC_FSEEKO for this.
41326         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41327         (gl_CHECK_FSEEKO): Remove macro.
41328
41329 2007-04-26  Bruno Haible  <bruno@clisp.org>
41330
41331         * tests/test-fflush.c (main): Also check the ftell result after
41332         fflush and fseek/fseeko.
41333         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41334         file descriptor position cache in the stream.
41335         * lib/fseeko.c (rpl_fseeko): Likewise.
41336
41337 2007-04-26  Bruno Haible  <bruno@clisp.org>
41338
41339         * modules/fflush-tests (Depends-on): Add fseeko.
41340
41341 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41342             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41343
41344         * lib/argz_.h: ensure error_t definition is obtained in same
41345         mechanism system argz.h would have.
41346         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41347         argz facilities are known bad.  Err on the side of caution if
41348         cross-compiling.
41349
41350 2007-04-25  Eric Blake  <ebb9@byu.net>
41351
41352         * lib/fpurge.c (includes): Use stdlib.h for free.
41353         * tests/test-fflush.c (main): Also test fflush-fseeko.
41354
41355 2007-04-25  Bruno Haible  <bruno@clisp.org>
41356
41357         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41358         * lib/fseeko.c: New file.
41359         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41360         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41361         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41362         gl_FUNC_FSEEKO.
41363         (gl_FUNC_FSEEKO): Invoke it.
41364         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41365         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41366         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41367
41368 2007-04-25  Bruno Haible  <bruno@clisp.org>
41369
41370         * modules/fflush (Depends-on): Add ftello.
41371
41372 2007-04-25  Bruno Haible  <bruno@clisp.org>
41373
41374         * modules/ftello-tests: New file.
41375         * tests/test-ftello.c: New file.
41376
41377         * modules/ftello: New file.
41378         * m4/ftello.m4: New file.
41379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41380         HAVE_FTELLO.
41381         * lib/stdio_.h (ftello): New declaration.
41382         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41383         HAVE_FTELLO.
41384
41385 2007-04-25  Bruno Haible  <bruno@clisp.org>
41386
41387         * modules/fseeko-tests: New file.
41388         * tests/test-fseeko.c: New file.
41389
41390         * modules/fseeko: New file.
41391         * m4/fseeko.m4: New file.
41392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
41393         HAVE_FSEEKO.
41394         * lib/stdio_.h (fseeko): New declaration.
41395         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
41396         HAVE_FSEEKO.
41397
41398 2007-04-25  Bruno Haible  <bruno@clisp.org>
41399
41400         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
41401
41402 2007-04-25  Bruno Haible  <bruno@clisp.org>
41403
41404         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
41405         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
41406         * tests/test-unistd.c: Likewise.
41407         * tests/test-fcntl.c: Likewise.
41408
41409 2007-04-23  Eric Blake  <ebb9@byu.net>
41410
41411         * lib/fflush.c: Fix missing include.
41412         Reported by Bruno Haible.
41413
41414 2007-04-23  Bruno Haible  <bruno@clisp.org>
41415
41416         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
41417         Reported by Eric Blake.
41418
41419 2007-04-23  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
41422
41423 2007-04-23  Bruno Haible  <bruno@clisp.org>
41424
41425         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
41426
41427 2007-04-23  Bruno Haible  <bruno@clisp.org>
41428
41429         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
41430         Needed on HP-UX 11.
41431
41432 2007-04-16  Eric Blake  <ebb9@byu.net>
41433
41434         Make fflush rely on fpurge.
41435         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
41436         open coding all variants.
41437         * modules/fflush (Depends-on): Add fpurge and unistd.
41438         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
41439         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
41440
41441         Fix --with-tests compilation on cygwin.
41442         * modules/argmatch-tests (Makefile.am): List gnulib library first
41443         in LDADD.
41444         * modules/argp-tests (Makefile.am): Likewise.
41445         * modules/array-list-tests (Makefile.am): Likewise.
41446         * modules/array-oset-tests (Makefile.am): Likewise.
41447         * modules/avltree-list-tests (Makefile.am): Likewise.
41448         * modules/avltree-oset-tests (Makefile.am): Likewise.
41449         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41450         * modules/carray-list-tests (Makefile.am): Likewise.
41451         * modules/dirname-tests (Makefile.am): Likewise.
41452         * modules/frexp-tests (Makefile.am): Likewise.
41453         * modules/isnanl-tests (Makefile.am): Likewise.
41454         * modules/linked-list-tests (Makefile.am): Likewise.
41455         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41456         * modules/lock-tests (Makefile.am): Likewise.
41457         * modules/rbtree-list-tests (Makefile.am): Likewise.
41458         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41459         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41460         * modules/tls-tests (Makefile.am): Likewise.
41461         * modules/tsearch-tests (Makefile.am): Likewise.
41462         * modules/xvasprintf-tests (Makefile.am): Likewise.
41463
41464         Fix fpurge for cygwin.
41465         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
41466         value.
41467         * modules/fpurge-tests (Depends-on): Clean up trash.
41468
41469 2007-04-16  Simon Josefsson  <simon@josefsson.org>
41470
41471         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
41472
41473         * m4/autobuild.m4: Re-indent.
41474
41475 2007-04-13  Bruno Haible  <bruno@clisp.org>
41476
41477         * modules/fpurge-tests: New file.
41478         * tests/test-fpurge.c: New file.
41479
41480         * modules/fpurge: New file.
41481         * lib/fpurge.h: New file.
41482         * lib/fpurge.c: New file.
41483         * m4/fpurge.m4: New file.
41484
41485 2007-04-13  Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/fbufmode-tests: New file.
41488         * tests/test-fbufmode.c: New file.
41489
41490         * modules/fbufmode: New file.
41491         * lib/fbufmode.h: New file.
41492         * lib/fbufmode.c: New file.
41493         * m4/fbufmode.m4: New file.
41494
41495 2007-04-13  Bruno Haible  <bruno@clisp.org>
41496
41497         * modules/fwritable-tests: New file.
41498         * tests/test-fwritable.c: New file.
41499
41500         * modules/fwritable: New file.
41501         * lib/fwritable.h: New file.
41502         * lib/fwritable.c: New file.
41503         * m4/fwritable.m4: New file.
41504
41505 2007-04-13  Bruno Haible  <bruno@clisp.org>
41506
41507         * modules/freadable-tests: New file.
41508         * tests/test-freadable.c: New file.
41509
41510         * modules/freadable: New file.
41511         * lib/freadable.h: New file.
41512         * lib/freadable.c: New file.
41513         * m4/freadable.m4: New file.
41514
41515 2007-04-13  Bruno Haible  <bruno@clisp.org>
41516
41517         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
41518         MOSTLYCLEANFILES.
41519
41520 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41521
41522         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
41523         gzip bootstrap.conf to avoid dragging in i18n machinery.
41524         (gnulib_tool_option): Use it.
41525
41526 2007-04-13  Bruno Haible  <bruno@clisp.org>
41527
41528         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
41529         %F directives.
41530         * tests/test-vasprintf-posix.c (test_function): Likewise.
41531         * tests/test-snprintf-posix.h (test_function): Likewise.
41532         * tests/test-sprintf-posix.h (test_function): Likewise.
41533         * tests/test-fprintf-posix.h (test_function): Likewise.
41534         * tests/test-printf-posix.h (test_function): Likewise.
41535         * tests/test-fprintf-posix.out: Likewise.
41536
41537 2007-04-13  Bruno Haible  <bruno@clisp.org>
41538
41539         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
41540         * modules/tls-tests (configure.ac): Likewise.
41541         Reported by Arto C. Nirkko <anirkko@insel.ch>.
41542
41543 2007-04-13  Bruno Haible  <bruno@clisp.org>
41544
41545         * lib/tls.c (glthread_tls_get): Fix return type.
41546         Patch by Arto C. Nirkko <anirkko@insel.ch>.
41547
41548 2007-04-12  Eric Blake  <ebb9@byu.net>
41549
41550         * modules/gettime (Depends-on): Remove gettime.
41551         Reported by Dmitry V. Levin.
41552
41553 2007-04-12  Bruno Haible  <bruno@clisp.org>
41554
41555         * modules/fflush (Include): Mention <stdio.h>.
41556         * modules/strtoimax (Include): Mention <inttypes.h>.
41557         * modules/strtoumax (Include): Likewise.
41558
41559 2007-04-12  Eric Blake  <ebb9@byu.net>
41560
41561         * .cvsignore: New file.
41562         * .gitignore: Likewise.
41563
41564 2007-04-12  Bruno Haible  <bruno@clisp.org>
41565
41566         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
41567         not before, since $(LDADD) often contains libgnu.a.
41568         * modules/striconv-tests (test_striconv_LDADD): Likewise.
41569         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
41570         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
41571         Needed on Cygwin.
41572
41573 2007-04-12  Eric Blake  <ebb9@byu.net>
41574
41575         Work around glibc's failure to flush stdin on fclose.
41576         * lib/closein.c (close_stdin): Flush stdin before closing.
41577
41578         Work around glibc's failure to reset seekable stdin on exit.
41579         * modules/closein: New module.
41580         * lib/closein.c: New file.
41581         * lib/closein.h: Likewise.
41582         * m4/closein.m4: Likewise.
41583         * MODULES.html.sh (File stream based Input/Output): Document it.
41584
41585 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41586
41587         * gnulib-tool: Rename generated 'autobuild' script to
41588         'do-autobuild' in --create-megatestdir output.
41589
41590         * doc/gnulib.texi (Build robot for gnulib): Fix.
41591
41592 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41593
41594         * modules/sysexits (Depends-on): Add absolute-header.
41595
41596 2007-04-12  Eric Blake  <ebb9@byu.net>
41597
41598         No need to preserve errno on success.
41599         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
41600         Reported by Bruno Haible.
41601
41602 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41603
41604         * MODULES.html.sh (Support for maintaining and releasing
41605         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
41606
41607 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41608
41609         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
41610
41611 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41612
41613         * modules/autobuild: New module.
41614
41615         * m4/autobuild.m4: New file.
41616
41617 2007-04-11  Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
41620         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
41621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
41622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
41623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41624         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41625         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41627         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41628         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41629         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
41630         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41631         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
41633         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41634         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41635         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
41636         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41637         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
41639         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41640         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
41642         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41643         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41644         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
41645         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41646         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41647         Reported by Eric Blake.
41648
41649 2007-04-11  Bruno Haible  <bruno@clisp.org>
41650
41651         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
41652
41653 2007-04-10  Bruno Haible  <bruno@clisp.org>
41654
41655         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
41656         for NaN and Infinity. Needed on FreeBSD 6.1.
41657         * tests/test-vasnprintf-posix.c (test_function): Undo last change
41658         regarding results for "%010a" of Infinity and NaN.
41659         * tests/test-vasprintf-posix.c (test_function): Likewise.
41660         * tests/test-snprintf-posix.h (test_function): Likewise.
41661         * tests/test-sprintf-posix.h (test_function): Likewise.
41662         * tests/test-fprintf-posix.h (test_function): Likewise.
41663         * tests/test-printf-posix.h (test_function): Likewise.
41664         * tests/test-fprintf-posix.out: Likewise.
41665
41666 2007-04-10  Bruno Haible  <bruno@clisp.org>
41667
41668         * modules/locale-tests: New file.
41669         * tests/test-locale.c: New file.
41670
41671         * modules/locale: New file.
41672         * lib/locale_.h: New file.
41673         * m4/locale_h.m4: New file.
41674
41675 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
41676             Bruno Haible  <bruno@clisp.org>
41677
41678         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
41679         be determined, test for availability of the copysignf, copysign,
41680         copysignl functions.
41681         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
41682         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
41683         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
41684
41685 2007-04-09  Eric Blake  <ebb9@byu.net>
41686
41687         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
41688         * modules/stdio (Makefile.am): Support fflush.
41689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41690         * modules/fflush: New file.
41691         * lib/fflush.c: Likewise.
41692         * m4/fflush.m4: Likewise.
41693         * modules/fflush-tests: New test.
41694         * tests/test-fflush.c: Likewise.
41695         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
41696
41697 2007-04-06  Bruno Haible  <bruno@clisp.org>
41698
41699         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
41700         (VASNPRINTF): Use signbit for faster determination whether to print a
41701         minus sign.
41702         * modules/vasnprintf (Files): Remove lib/float+.h.
41703         * modules/fprintf-posix (Depends-on): Add signbit.
41704         * modules/snprintf-posix (Depends-on): Likewise.
41705         * modules/sprintf-posix (Depends-on): Likewise.
41706         * modules/vasnprintf-posix (Depends-on): Likewise.
41707         * modules/vasprintf-posix (Depends-on): Likewise.
41708         * modules/vfprintf-posix (Depends-on): Likewise.
41709         * modules/vsnprintf-posix (Depends-on): Likewise.
41710         * modules/vsprintf-posix (Depends-on): Likewise.
41711
41712 2007-04-06  Bruno Haible  <bruno@clisp.org>
41713
41714         * tests/test-frexp.c (main): Test also the sign bit of zero results.
41715         * tests/test-frexpl.c (main): Likewise.
41716         * tests/test-ldexpl.c (main): Likewise.
41717         * modules/frexp-tests (Depends-on): Add signbit.
41718         * modules/frexpl-tests (Depdends-on): Likewise.
41719         * modules/ldexpl-tests (Depdends-on): Likewise.
41720
41721 2007-04-06  Bruno Haible  <bruno@clisp.org>
41722
41723         * modules/signbit-tests: New file.
41724         * tests/test-signbit.c: New file.
41725
41726         * modules/signbit: New file.
41727         * lib/signbitf.c: New file.
41728         * lib/signbitd.c: New file.
41729         * lib/signbitl.c: New file.
41730         * m4/signbit.m4: New file.
41731         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
41732         (signbit): New macro.
41733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
41734         REPLACE_SIGNBIT.
41735         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
41736         REPLACE_FREXPL into math.h.
41737
41738 2007-04-06  Bruno Haible  <bruno@clisp.org>
41739
41740         * modules/isnanf-nolibm-tests: New file.
41741         * tests/test-isnanf.c: New file.
41742
41743         * modules/isnanf-nolibm: New file.
41744         * lib/isnanf.h: New file.
41745         * lib/isnanf.c: New file.
41746         * lib/isnan.c: Consider the USE_FLOAT macro.
41747         * m4/isnanf.m4: New file.
41748
41749 2007-04-06  Bruno Haible  <bruno@clisp.org>
41750
41751         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
41752         (Link): New section.
41753
41754         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
41755
41756 2007-04-06  Bruno Haible  <bruno@clisp.org>
41757
41758         Assume the 'long double' type.
41759         * m4/longdouble.m4: Remove file.
41760         * config/srclist.txt: Don't mention longdouble.m4.
41761         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
41762         * lib/float+.h: Likewise.
41763         * lib/frexp.c: Likewise.
41764         * lib/printf-args.h: Likewise.
41765         * lib/printf-args.c: Likewise.
41766         * lib/printf-frexp.c: Likewise.
41767         * lib/printf-parse.c: Likewise.
41768         * lib/vasnprintf.c: Likewise.
41769         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
41770         * m4/intl.m4: Likewise.
41771         * m4/isnanl.m4: Likewise.
41772         * m4/printf.m4: Likewise.
41773         * m4/printf-frexpl.m4: Likewise.
41774         * m4/vasnprintf.m4: Likewise.
41775         * modules/allocsa (Files): Remove m4/longdouble.m4.
41776         * modules/gettext (Files): Likewise.
41777         * modules/relocatable-prog-wrapper (Files): Likewise.
41778         * modules/vasnprintf (Files): Likewise.
41779         * modules/isnanl (Files): Likewise.
41780         (Include): Simplify.
41781         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
41782         (Include): Simplify.
41783         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
41784         (Include): Simplify.
41785         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
41786         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41787         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
41788         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41789         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41790         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41791         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
41792         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41793         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41794         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41795         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
41796         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41797         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
41798         * tests/test-isnanl.c: Likewise.
41799         * tests/test-snprintf-posix.h: Likewise.
41800         * tests/test-sprintf-posix.h: Likewise.
41801         * tests/test-vasnprintf-posix.c: Likewise.
41802         * tests/test-vasnprintf-posix2.c: Likewise.
41803         * tests/test-vasprintf-posix.c: Likewise.
41804
41805 2007-04-06  Bruno Haible  <bruno@clisp.org>
41806
41807         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
41808         * lib/math_.h [__DECC]: Include the overridden include file through
41809         #include_next, outside the double-inclusion guard.
41810         * lib/stdio_.h [__DECC]: Likewise.
41811         * lib/stdlib_.h [__DECC]: Likewise.
41812         * lib/string_.h [__DECC]: Likewise.
41813         * lib/time_.h [__DECC]: Likewise.
41814         * lib/wchar_.h [__DECC]: Likewise.
41815         * lib/wctype_.h [__DECC]: Likewise.
41816         * lib/inttypes_.h [__DECC]: Likewise.
41817         Reported by Albert Chin <china@thewrittenword.com> in
41818         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
41819
41820 2007-04-04  Eric Blake  <ebb9@byu.net>
41821
41822         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
41823         1.5.x.
41824
41825 2007-04-04  Bruno Haible  <bruno@clisp.org>
41826
41827         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
41828         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
41829
41830 2007-04-04  Bruno Haible  <bruno@clisp.org>
41831
41832         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
41833         results for "%010a" of Infinity and NaN.
41834         * tests/test-vasprintf-posix.c (test_function): Likewise.
41835         * tests/test-snprintf-posix.h (test_function): Likewise.
41836         * tests/test-sprintf-posix.h (test_function): Likewise.
41837         * tests/test-fprintf-posix.h (test_function): Remove these tests.
41838         * tests/test-printf-posix.h (test_function): Likewise.
41839         * tests/test-fprintf-posix.out: Update.
41840         Needed for FreeBSD 6.1.
41841
41842 2007-04-04  Bruno Haible  <bruno@clisp.org>
41843
41844         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
41845         directly used by the gnulib modules nor by gnulib-tool.
41846
41847 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
41848
41849         * DEPENDENCIES: Give overall description of version dependency
41850         desirability.  Use more-typical names for apps.
41851         Add shell, coreutils, diffutils, grep, tar, gzip.
41852
41853 2007-04-04  Simon Josefsson  <simon@josefsson.org>
41854
41855         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
41856
41857 2007-04-04  Karl Berry  <karl@gnu.org>
41858
41859         * MODULES.html.sh (func_module): missing '.
41860
41861 2007-04-03  Bruno Haible  <bruno@clisp.org>
41862
41863         * modules/argmatch-tests (Makefile.am): New variable
41864         test_argmatch_LDADD.
41865         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
41866         * modules/array-list-tests (Makefile.am): New variable
41867         test_array_list_LDADD.
41868         * modules/array-oset-tests (Makefile.am): New variable
41869         test_array_oset_LDADD.
41870         * modules/avltree-list-tests (Makefile.am): New variable
41871         test_avltree_list_LDADD.
41872         * modules/avltree-oset-tests (Makefile.am): New variable
41873         test_avltree_oset_LDADD.
41874         * modules/avltreehash-list-tests (Makefile.am): New variable
41875         test_avltreehash_list_LDADD.
41876         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
41877         test_canonicalize_lgpl_LDADD.
41878         * modules/carray-list-tests (Makefile.am): New variable
41879         test_carray_list_LDADD.
41880         * modules/dirname-tests (Makefile.am): New variable
41881         test_dirname_LDADD.
41882         * modules/linked-list-tests (Makefile.am): New variable
41883         test_linked_list_LDADD.
41884         * modules/linkedhash-list-tests (Makefile.am): New variable
41885         test_linkedhash_list_LDADD.
41886         * modules/rbtree-list-tests (Makefile.am): New variable
41887         test_rbtree_list_LDADD.
41888         * modules/rbtree-oset-tests (Makefile.am): New variable
41889         test_rbtree_oset_LDADD.
41890         * modules/rbtreehash-list-tests (Makefile.am): New variable
41891         test_rbtreehash_list_LDADD.
41892         * modules/xvasprintf-tests (Makefile.am): New variable
41893         test_xvasprintf_LDADD.
41894         Reported by Eric Blake.
41895
41896 2007-04-03  Eric Blake  <ebb9@byu.net>
41897
41898         * DEPENDENCIES: Weaken m4 requirements.
41899
41900 2007-04-03  Bruno Haible  <bruno@clisp.org>
41901
41902         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
41903         * modules/isnanl-tests (configure.ac): Likewise.
41904
41905 2007-04-03  Ben Pfaff  <blp@gnu.org>
41906
41907         * modules/iconv_open: Add $(srcdir)/ to source directory
41908         references in Makefile fragments that call gperf, to fix VPATH
41909         builds.
41910
41911 2007-04-03  Bruno Haible  <bruno@clisp.org>
41912
41913         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
41914         * lib/ldexpl.c: Undo last change.
41915
41916 2007-04-03  Bruno Haible  <bruno@clisp.org>
41917
41918         * modules/printf-frexpl (Depends-on): Undo last change.
41919         (Files): Add m4/ldexpl.m4.
41920
41921 2007-04-03  Bruno Haible  <bruno@clisp.org>
41922
41923         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
41924         * modules/isnanl (Link): New section.
41925
41926         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
41927         * modules/frexp (Link): New section.
41928
41929         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
41930         * modules/frexpl (Link): New section.
41931
41932         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
41933         * modules/ldexpl (Link): New section.
41934
41935 2007-04-03  Bruno Haible  <bruno@clisp.org>
41936
41937         * modules/TEMPLATE-EXTENDED: New file.
41938         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
41939
41940 2007-04-03  Bruno Haible  <bruno@clisp.org>
41941
41942         * DEPENDENCIES: New file.
41943         Suggested by Simon Josefsson.
41944
41945 2007-04-03  Bruno Haible  <bruno@clisp.org>
41946
41947         * doc/gnulib.texi: Escape @.
41948
41949 2007-04-03  James Youngman  <jay@gnu.org>
41950         and Paul Eggert  <eggert@cs.ucla.edu>
41951
41952         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
41953         birthtime on all systems that have birthtime, not just those which
41954         use st_birthtimensec rather than st_birthtim.  Putting zero in
41955         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
41956         that the birth time is not available for files on an NFS mount.
41957
41958 2007-04-03  Simon Josefsson  <simon@josefsson.org>
41959
41960         * modules/memxor: Move back from crypto/, suggested by Bruno.
41961         * modules/crypto/hmac-sha1: Fix memxor dependency.
41962
41963         * modules/crypto/gc: Moved from ../.
41964
41965 2007-04-02  Eric Blake  <ebb9@byu.net>
41966
41967         * lib/ldexpl.c (includes): Avoid libm.
41968
41969         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
41970
41971 2007-04-02  Bruno Haible  <bruno@clisp.org>
41972
41973         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
41974         on IRIX.
41975
41976 2007-04-02  Bruno Haible  <bruno@clisp.org>
41977
41978         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
41979         x86 or x86_64 platforms running MacOS X.
41980         Reported by Ryan Schmidt <@ryandesign.com>.
41981
41982 2007-04-02  Bruno Haible  <bruno@clisp.org>
41983
41984         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
41985         i386.
41986
41987 2007-04-01  Simon Josefsson  <simon@josefsson.org>
41988
41989         * modules/crypto/arcfour: Moved from ../.
41990         * modules/crypto/arcfour-tests: Moved from ../.
41991         * modules/crypto/arctwo: Moved from ../.
41992         * modules/crypto/arctwo-tests: Moved from ../.
41993         * modules/crypto/des: Moved from ../.
41994         * modules/crypto/des-tests: Moved from ../.
41995         * modules/crypto/gc-arcfour: Moved from ../.
41996         * modules/crypto/gc-arcfour-tests: Moved from ../.
41997         * modules/crypto/gc-arctwo: Moved from ../.
41998         * modules/crypto/gc-arctwo-tests: Moved from ../.
41999         * modules/crypto/gc-des: Moved from ../.
42000         * modules/crypto/gc-des-tests: Moved from ../.
42001         * modules/crypto/gc-hmac-md5: Moved from ../.
42002         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42003         * modules/crypto/gc-hmac-sha1: Moved from ../.
42004         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42005         * modules/crypto/gc-md2: Moved from ../.
42006         * modules/crypto/gc-md2-tests: Moved from ../.
42007         * modules/crypto/gc-md4: Moved from ../.
42008         * modules/crypto/gc-md4-tests: Moved from ../.
42009         * modules/crypto/gc-md5: Moved from ../.
42010         * modules/crypto/gc-md5-tests: Moved from ../.
42011         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42012         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42013         * modules/crypto/gc-random: Moved from ../.
42014         * modules/crypto/gc-rijndael: Moved from ../.
42015         * modules/crypto/gc-rijndael-tests: Moved from ../.
42016         * modules/crypto/gc-sha1: Moved from ../.
42017         * modules/crypto/gc-sha1-tests: Moved from ../.
42018         * modules/crypto/gc-tests: Moved from ../.
42019         * modules/crypto/hmac-md5: Moved from ../.
42020         * modules/crypto/hmac-md5-tests: Moved from ../.
42021         * modules/crypto/hmac-sha1: Moved from ../.
42022         * modules/crypto/hmac-sha1-tests: Moved from ../.
42023         * modules/crypto/md2: Moved from ../.
42024         * modules/crypto/md2-tests: Moved from ../.
42025         * modules/crypto/md4: Moved from ../.
42026         * modules/crypto/md4-tests: Moved from ../.
42027         * modules/crypto/md5: Moved from ../.
42028         * modules/crypto/md5-tests: Moved from ../.
42029         * modules/crypto/memxor: Moved from ../.
42030         * modules/crypto/rijndael: Moved from ../.
42031         * modules/crypto/rijndael-tests: Moved from ../.
42032         * modules/crypto/sha1: Moved from ../.
42033
42034 2007-03-30  James Youngman  <jay@gnu.org>
42035
42036         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42037         rename() to change the ctime of a file (because ctime is unaffected
42038         by rename on jfs2 on AIX 5.1).
42039         (main): Start by doing cleanup, in case a previous run failed leaving
42040         test files behind.
42041
42042 2007-03-31  Bruno Haible  <bruno@clisp.org>
42043
42044         Support old proprietary implementations of iconv.
42045         * modules/iconv_open: New file.
42046         * lib/iconv_.h: New file.
42047         * m4/iconv_h.m4: New file.
42048         * lib/iconv_open.c: New file.
42049         * lib/iconv_open-aix.gperf: New file.
42050         * lib/iconv_open-hpux.gperf: New file.
42051         * lib/iconv_open-irix.gperf: New file.
42052         * lib/iconv_open-osf.gperf: New file.
42053         * m4/iconv_open.m4: New file.
42054         * modules/linebreak (Depends-on): Add iconv_open.
42055         * modules/striconv (Depends-on): Likewise.
42056         * modules/striconveh (Depends-on): Likewise.
42057         * modules/unicodeio (Depends-on): Likewise.
42058         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42059         (iconv_t)(-1).
42060         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42061         conversion if cd is (iconv_t)(-1).
42062         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42063         is not possible.
42064
42065 2007-03-31  Bruno Haible  <bruno@clisp.org>
42066
42067         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42068         work on Solaris either. Protect also second use of "autodetect_jp".
42069
42070 2007-03-31  Bruno Haible  <bruno@clisp.org>
42071
42072         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42073         the function is not present.
42074
42075 2007-03-31  Bruno Haible  <bruno@clisp.org>
42076
42077         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42078         the function is not present.
42079
42080 2007-03-31  Bruno Haible  <bruno@clisp.org>
42081
42082         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42083         a bug in HP-UX iconv_open().
42084
42085 2007-03-31  Bruno Haible  <bruno@clisp.org>
42086
42087         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42088         (Mathematics <math.h>): New section, add fpieee.
42089         (Input/output <stdio.h>): Add fseterr.
42090         (Mathematics <math.h>): New section, add printf-frexp.
42091         (Container data structures): Add sublist.
42092         (Core language properties): Add fpucw, inline.
42093         (Functions for greatest-width integer types <inttypes.h>): Add
42094         imaxabs, imaxdiv, inttypes.
42095         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42096         isnanl-nolibm, ldexp.
42097         (Mathematics <math.h>): New section, add printf-frexpl.
42098         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42099         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42100         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42101         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42102         (Unicode string functions): Add unistr/u*-mbtoucr.
42103         (Java): Add javacomp-script, javaexec-script.
42104         (C#): Add csharpcomp-script, csharpexec-script.
42105         (Support for building libraries and executables): Add havelib,
42106         relocatable-*.
42107         (Support for maintaining and releasing projects): Renamed from
42108         'Support for maintaining and release projects'. Add announce-gen.
42109
42110 2007-03-31  Bruno Haible  <bruno@clisp.org>
42111
42112         * README: Talk primarily about git.
42113         (git and CVS): Renamed from CVS.
42114         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42115         gnulib is available through git.
42116         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42117
42118 2007-03-30  Bruno Haible  <bruno@clisp.org>
42119
42120         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42121         * lib/poll_.h: Likewise.
42122         * lib/stat_.h: Likewise.
42123         * lib/sys_time_.h: Likewise.
42124         * lib/sysexit_.h: Likewise.
42125         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42126         * lib/stdbool_.h: Likewise.
42127         * lib/byteswap_.h: Add double-inclusion guard.
42128
42129 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42130
42131         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42132
42133 2007-03-30  Karl Berry  <karl@gnu.org>
42134
42135         * config/srclist-update: double space after USA in the license
42136         substitution, since that's how it's usually (?) written.
42137
42138 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42139
42140         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42141         reported by Bruno Haible.
42142
42143 2007-03-29  Bruno Haible  <bruno@clisp.org>
42144
42145         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42146         a bug in AIX iconv().
42147
42148 2007-03-29  Bruno Haible  <bruno@clisp.org>
42149
42150         * modules/ldexpl-tests: New file.
42151         * tests/test-ldexpl.c: New file.
42152
42153 2007-03-29  Bruno Haible  <bruno@clisp.org>
42154
42155         * lib/ldexpl.c: Include fpucw.h.
42156         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42157         multiplication.
42158         * modules/ldexpl (Depends-on): Add fpucw.
42159
42160 2007-03-29  Bruno Haible  <bruno@clisp.org>
42161
42162         * modules/ldexpl: New file.
42163         * m4/ldexpl.m4: New file.
42164         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42165         set.
42166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42167         REPLACE_LDEXPL.
42168         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42169         REPLACE_LDEXPL.
42170         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42171         gl_FUNC_LDEXPL_WORKS.
42172         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42173         * modules/mathl (Files): Remove lib/ldexpl.c.
42174         (Depends-on): Add ldexpl.
42175
42176 2007-03-29  Bruno Haible  <bruno@clisp.org>
42177
42178         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42179
42180 2007-03-29  Bruno Haible  <bruno@clisp.org>
42181
42182         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42183         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42184         and possibly also HP-UX.
42185         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42186         work on AIX, IRIX, HP-UX, OSF/1.
42187         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42188         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42189         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42190         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42191         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42192         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42193
42194 2007-03-29  Bruno Haible  <bruno@clisp.org>
42195
42196         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42197
42198 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42199
42200         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42201         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42202
42203 2007-03-29  Eric Blake  <ebb9@byu.net>
42204
42205         * lib/acl-internal.h: Remove redundant include.
42206         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42207         Cygwin when a file is locked.
42208
42209 2007-03-29  Bruno Haible  <bruno@clisp.org>
42210
42211         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42212         file.
42213         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42214
42215 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42216
42217         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42218         try to remove a parent directory if the child couldn't be removed
42219         (except for the first rmdir, which could fail because the child
42220         doesn't exist).  Problem reported by Jeff Blaine in
42221         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42222
42223 2007-03-28  Bruno Haible  <bruno@clisp.org>
42224
42225         * lib/striconveh.c (utf8conv_carefully): New function.
42226         (mem_cd_iconveh_internal): Invoke it.
42227
42228 2007-03-28  Bruno Haible  <bruno@clisp.org>
42229
42230         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
42231         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
42232         input.
42233         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
42234         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
42235         unistr/u8-uctomb.
42236
42237 2007-03-28  Bruno Haible  <bruno@clisp.org>
42238
42239         * modules/unistr/u8-mbtoucr: New file.
42240         * lib/unistr/u8-mbtoucr.c: New file.
42241         * modules/unistr/u16-mbtoucr: New file.
42242         * lib/unistr/u16-mbtoucr.c: New file.
42243         * modules/unistr/u16-mbtoucr: New file.
42244         * lib/unistr/u16-mbtoucr.c: New file.
42245         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
42246
42247 2007-03-27  Simon Josefsson  <simon@josefsson.org>
42248             Bruno Haible  <bruno@clisp.org>
42249
42250         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
42251         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
42252         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
42253
42254         * m4/stdio_h.m4: Add stubs for vasprintf too.
42255
42256         * modules/stdio: Support vasprintf in sed command.
42257
42258         * modules/vasprintf: Depend on stdio for prototypes.  Remove
42259         vasprintf.h.  Add stdio module indicator.
42260
42261         * lib/stdio_.h: Declare asprintf and vasprintf, based on
42262         vasprintf.h.
42263
42264         * lib/vasprintf.h: File removed.
42265
42266         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42267         * lib/vasprintf.c: Ditto.
42268         * lib/xvasprintf.c: Ditto.
42269         * tests/test-vasprintf-posix.c: Ditto.
42270         * tests/test-vasprintf.c: Ditto.
42271
42272 2007-03-27  Bruno Haible  <bruno@clisp.org>
42273
42274         Make vasnprintf multithread-safe.
42275         * lib/vasnprintf.c (decimal_point_char): New function.
42276         (VASNPRINTF): Use it.
42277         Suggested by Simon Josefsson.
42278
42279 2007-03-27  Eric Blake  <ebb9@byu.net>
42280
42281         Support sub-second birthtime on cygwin.
42282         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42283         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42284         (get_stat_birthtime): Also work with st_birthtim.
42285
42286 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42287
42288         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42289         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42290         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42291         (get_stat_birthtime_ns): Simplify compile-time tests.
42292         (get_stat_birthtime): Change the API to look like
42293         get_stat_mtime etc., except return a negative tv_nsec on error.
42294         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42295         Don't check for "spare" fields.
42296         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42297         or for struct stat.st_birthtime, as these tests aren't used.
42298         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42299
42300 2007-03-27  Bruno Haible  <bruno@clisp.org>
42301
42302         * lib/stat-time.h: Include <sys/stat.h>.
42303
42304 2007-03-27  James Youngman  <jay@gnu.org>
42305
42306         * lib/stat-time.h (get_stat_birthtime): New function for
42307           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42308         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42309           and its variants.
42310         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42311         * modules/stat-time-test: New file.
42312         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42313
42314 2007-03-26  Bruno Haible  <bruno@clisp.org>
42315
42316         Better support of signalling NaNs.
42317         * lib/atanl.c: Include isnanl.h.
42318         (atanl): Perform test for NaN at the beginning of the function and
42319         through a call to isnanl.
42320         * lib/cosl.c: Include isnanl.h.
42321         (cosl): Perform test for NaN at the beginning of the function and
42322         through a call to isnanl.
42323         * lib/ldexpl.c: Include isnanl.h.
42324         (ldexpl): Perform test for NaN through a call to isnanl.
42325         * lib/logl.c: Include isnanl.h.
42326         (logl): Perform test for NaN at the beginning of the function and
42327         through a call to isnanl.
42328         * lib/sinl.c: Include isnanl.h.
42329         (sinl): Perform test for NaN at the beginning of the function and
42330         through a call to isnanl.
42331         * lib/sqrtl.c: Include isnanl.h.
42332         (sqrtl): Perform test for NaN at the beginning of the function and
42333         through a call to isnanl.
42334         * lib/tanl.c: Include isnanl.h.
42335         (tanl): Perform test for NaN at the beginning of the function and
42336         through a call to isnanl.
42337         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42338         * modules/mathl (Depends-on): Add isnanl.
42339
42340 2007-03-26  Eric Blake  <ebb9@byu.net>
42341
42342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42343         regression in logic sense of previous patch.
42344
42345 2007-03-26  Bruno Haible  <bruno@clisp.org>
42346
42347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42348         unportable shell command "if ! ...".
42349         Reported by Ralf Wildenhues.
42350
42351 2007-03-25  Bruno Haible  <bruno@clisp.org>
42352
42353         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42354         <sysexits.h> file, and only add EX_CONFIG.
42355         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42356         absolute file name and whether it is sufficient. Substitute also
42357         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42358         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42359         ABSOLUTE_SYSEXITS_H into sysexits.h.
42360
42361 2007-03-25  Bruno Haible  <bruno@clisp.org>
42362
42363         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42364         hints is NULL.
42365
42366 2007-03-25  Bruno Haible  <bruno@clisp.org>
42367
42368         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42369         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42370
42371 2007-03-25  Bruno Haible  <bruno@clisp.org>
42372
42373         * lib/vasnprintf.c: Include langinfo.h.
42374         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42375         multithread-safe.
42376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42377         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42379         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42382         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42385         Reported by Simon Josefsson.
42386
42387 2007-03-25  Bruno Haible  <bruno@clisp.org>
42388
42389         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42390         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
42391         * modules/vasnprintf (Depends-on): Add stdint.
42392
42393 2007-03-25  Bruno Haible  <bruno@clisp.org>
42394
42395         * modules/fpieee: New file.
42396         * m4/fpieee.m4: New file.
42397         * modules/isnan-nolibm (Depends-on): Add fpieee.
42398         * modules/isnanl-nolibm (Depends-on): Add fpieee.
42399         * modules/isnanl (Depends-on): Add fpieee.
42400
42401 2007-03-25  Bruno Haible  <bruno@clisp.org>
42402
42403         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
42404
42405 2007-03-25  Bruno Haible  <bruno@clisp.org>
42406
42407         Avoid test failures on IRIX 6.5.
42408         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
42409         (main): Use it.
42410         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
42411         macros.
42412         (main): Use them.
42413
42414 2007-03-25  Bruno Haible  <bruno@clisp.org>
42415
42416         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
42417         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
42418         exists but doesn't work.
42419         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
42420         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
42421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
42422         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
42423
42424 2007-03-25  Bruno Haible  <bruno@clisp.org>
42425
42426         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
42427         returns inf. Needed on IRIX 6.5.
42428
42429 2007-03-25  Bruno Haible  <bruno@clisp.org>
42430
42431         * tests/test-frexpl.c: Include isnanl-nolibm.h.
42432         (main): Use isnanl instead of x != x idiom.
42433         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
42434
42435         * tests/test-frexp.c: Include isnan.h.
42436         (main): Use isnan instead of x != x idiom.
42437         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
42438
42439 2007-03-25  Bruno Haible  <bruno@clisp.org>
42440
42441         * tests/test-frexp.c (NaN): New function/macro.
42442         (main): Use it instead of 0.0 / 0.0.
42443         * tests/test-isnan.c (NaN): New function/macro.
42444         (main): Use it instead of 0.0 / 0.0.
42445         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
42446         (test_function): Use it instead of 0.0 / 0.0.
42447         * tests/test-vasprintf-posix.c (NaN): New function/macro.
42448         (test_function): Use it instead of 0.0 / 0.0.
42449         * tests/test-snprintf-posix.h (NaN): New function/macro.
42450         (test_function): Use it instead of 0.0 / 0.0.
42451         * tests/test-sprintf-posix.h (NaN): New function/macro.
42452         (test_function): Use it instead of 0.0 / 0.0.
42453         * tests/test-fprintf-posix.h (NaN): New function/macro.
42454         (test_function): Use it instead of 0.0 / 0.0.
42455         * tests/test-printf-posix.h (NaN): New function/macro.
42456         (test_function): Use it instead of 0.0 / 0.0.
42457
42458         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
42459
42460 2007-03-25  Bruno Haible  <bruno@clisp.org>
42461
42462         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
42463
42464 2007-03-25  Bruno Haible  <bruno@clisp.org>
42465
42466         * lib/regexec.c (merge_state_with_log): Make static.
42467
42468 2007-03-25  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/trigl.c (kernel_rem_pio2): Make static.
42471
42472 2007-03-25  Bruno Haible  <bruno@clisp.org>
42473
42474         * lib/sincosl.c (sincosl_table): Make static.
42475
42476 2007-03-25  Bruno Haible  <bruno@clisp.org>
42477
42478         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
42479         if the compiler does not support C99.
42480
42481 2007-03-25  Bruno Haible  <bruno@clisp.org>
42482
42483         * modules/time (Makefile.am): Ensure all rule action lines start with a
42484         tab.
42485
42486 2007-03-24  Bruno Haible  <bruno@clisp.org>
42487
42488         * modules/tsearch-tests: New file.
42489         * tests/test-tsearch.sh: New file.
42490         * tests/test-tsearch.c: New file, mostly copied from glibc.
42491
42492         * modules/search-tests: New file.
42493         * tests/test-search.c: New file.
42494
42495         * modules/search: New file.
42496         * lib/search_.h: New file, incorporating lib/tsearch.h.
42497         * m4/search_h.m4: New file.
42498         * lib/tsearch.h: Remove file.
42499         * lib/tsearch.c: Include search.h instead of tsearch.h.
42500         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
42501         HAVE_TSEARCH.
42502         * modules/tsearch (Files): Remove lib/tsearch.h.
42503         (Depends-on): Add search.
42504         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
42505         (Include): Change tsearch.h into search.h.
42506
42507 2007-03-24  Bruno Haible  <bruno@clisp.org>
42508
42509         * modules/fpucw: New file.
42510         * lib/fpucw.h: New file.
42511         * lib/frexp.c: Include fpucw.h.
42512         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42513         (FUNC): Use them.
42514         * lib/printf-frexp.c: Include fpucw.h.
42515         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42516         (FUNC): Use them.
42517         * lib/vasnprintf.c: Include fpucw.h.
42518         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
42519         'long double' calculations.
42520         * tests/test-frexpl.c: Include fpucw.h.
42521         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42522         * tests/test-printf-frexpl.c: Include fpucw.h.
42523         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42524         * modules/frexpl (Depends-on): Add fpucw.
42525         * modules/printf-frexpl (Depends-on): Likewise.
42526         * modules/fprintf-posix (Depends-on): Likewise.
42527         * modules/snprintf-posix (Depends-on): Likewise.
42528         * modules/sprintf-posix (Depends-on): Likewise.
42529         * modules/vasnprintf-posix (Depends-on): Likewise.
42530         * modules/vasprintf-posix (Depends-on): Likewise.
42531         * modules/vfprintf-posix (Depends-on): Likewise.
42532         * modules/vsnprintf-posix (Depends-on): Likewise.
42533         * modules/vsprintf-posix (Depends-on): Likewise.
42534         * modules/frexpl-tests (Depends-on): Likewise.
42535         * modules/printf-frexpl-tests (Depends-on): Likewise.
42536
42537 2007-03-24  Bruno Haible  <bruno@clisp.org>
42538
42539         * lib/float+.h: New file.
42540         * lib/isnan.c: Include float+.h.
42541         (SIZE): New macro.
42542         (FUNC): Compare only SIZE bytes of the value.
42543         * lib/vasnprintf.c: Include float+.h.
42544         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
42545         SIZEOF_LDBL or SIZEOF_DBL bytes.
42546         * modules/isnan-nolibm (Files): Add lib/float+.h.
42547         * modules/isnanl-nolibm (Files): Add lib/float+.h.
42548         * modules/isnanl (Files): Add lib/float+.h.
42549         * modules/vasnprintf (Files): Add lib/float+.h.
42550
42551 2007-03-24  Bruno Haible  <bruno@clisp.org>
42552
42553         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
42554         include isnanl-nolibm.h.
42555
42556 2007-03-24  Bruno Haible  <bruno@clisp.org>
42557
42558         * tests/test-read-file.c (main): Don't produce spurious output for
42559         expected situations. Make the test fail if it encountered unexpected
42560         results.
42561
42562 2007-03-24  Bruno Haible  <bruno@clisp.org>
42563
42564         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
42565         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
42566
42567 2007-03-24  Bruno Haible  <bruno@clisp.org>
42568
42569         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
42570
42571 2007-03-24  Bruno Haible  <bruno@clisp.org>
42572
42573         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
42574         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
42575
42576         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
42577         * modules/utf8-ucs4: Turn into a symbolic link to module
42578         unistr/u8-mbtouc.
42579
42580         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
42581         utf8-ucs4-unsafe.
42582         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
42583         unistr/u8-mbtouc-unsafe.
42584
42585         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
42586         * modules/utf16-ucs4: Turn into a symbolic link to module
42587         unistr/u16-mbtouc.
42588
42589         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
42590         utf16-ucs4-unsafe.
42591         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
42592         unistr/u16-mbtouc-unsafe.
42593
42594         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
42595         * modules/ucs4-utf8: Turn into a symbolic link to module
42596         unistr/u8-ubtomb.
42597
42598         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
42599         * modules/ucs4-utf16: Turn into a symbolic link to module
42600         unistr/u16-ubtomb.
42601
42602 2007-03-24  Bruno Haible  <bruno@clisp.org>
42603
42604         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
42605         Enable the function only if HAVE_INLINE.
42606         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
42607         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42608         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
42609         Enable the function only if HAVE_INLINE.
42610         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
42611         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42612         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
42613         Enable the function only if HAVE_INLINE.
42614         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
42615         Enable the function only if HAVE_INLINE.
42616         * modules/utf8-ucs4: Update.
42617         * modules/utf8-ucs4-unsafe: Update.
42618         * modules/utf16-ucs4: Update.
42619         * modules/utf16-ucs4-unsafe: Update.
42620         * modules/ucs4-utf8: Update.
42621         * modules/ucs4-utf16: Update.
42622
42623 2007-03-24  Bruno Haible  <bruno@clisp.org>
42624
42625         * lib/utf8-ucs4.h: Remove file.
42626         * lib/utf8-ucs4-unsafe.h: Remove file.
42627         * lib/utf16-ucs4.h: Remove file.
42628         * lib/utf16-ucs4-unsafe.h: Remove file.
42629         * lib/ucs4-utf8.h: Remove file.
42630         * lib/ucs4-utf16.h: Remove file.
42631         * lib/unistr.h: Include their previous contents.
42632         * m4/utf-ucs4.m4: Remove file.
42633         * m4/ucs4-utf.m4: Remove file.
42634         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
42635         (Depends-on): Add unistr/base.
42636         (configure.ac): Remove gl_UTF_UCS4.
42637         (Makefile.am): Update.
42638         (Include): Change to unistr.h.
42639         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
42640         (Depends-on): Add unistr/base.
42641         (configure.ac): Remove gl_UTF_UCS4.
42642         (Makefile.am): Update.
42643         (Include): Change to unistr.h.
42644         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
42645         (Depends-on): Add unistr/base.
42646         (configure.ac): Remove gl_UTF_UCS4.
42647         (Makefile.am): Update.
42648         (Include): Change to unistr.h.
42649         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
42650         (Depends-on): Add unistr/base.
42651         (configure.ac): Remove gl_UTF_UCS4.
42652         (Makefile.am): Update.
42653         (Include): Change to unistr.h.
42654         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
42655         (Depends-on): Add unistr/base.
42656         (configure.ac): Remove gl_UCS4_UTF.
42657         (Makefile.am): Update.
42658         (Include): Change to unistr.h.
42659         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
42660         (Depends-on): Add unistr/base.
42661         (configure.ac): Remove gl_UCS4_UTF.
42662         (Makefile.am): Update.
42663         (Include): Change to unistr.h.
42664         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
42665         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
42666         utf8-ucs4-unsafe.h.
42667         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
42668         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
42669         utf16-ucs4-unsafe.h.
42670         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
42671         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
42672         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
42673         * lib/unistr/u8-strchr.c: Likewise.
42674         * lib/unistr/u8-strrchr.c: Likewise.
42675         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
42676         * lib/unistr/u16-strchr.c: Likewise.
42677         * lib/unistr/u16-strrchr.c: Likewise.
42678         * lib/striconveh.c: Update.
42679         * lib/linebreak.c: Update.
42680
42681 2007-03-24  Bruno Haible  <bruno@clisp.org>
42682
42683         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
42684         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
42685
42686 2007-03-22  Bruno Haible  <bruno@clisp.org>
42687
42688         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
42689
42690 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
42691
42692         * MODULES.html.sh (File system functions): New module write-any-file.
42693         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
42694         * m4/write-any-file.m4: New files.
42695
42696 2007-03-23  Eric Blake  <ebb9@byu.net>
42697
42698         * gnulib-tool: Rearrange space-tab sequences, since some editors
42699         like to eat them.
42700
42701 2007-03-23  Eric Blake  <ebb9@byu.net>
42702
42703         * lib/version-etc.c (version_etc_va): Update license wording to
42704         be more concise.  Recommended by Richard Stallman.
42705
42706 2007-03-22  Bruno Haible  <bruno@clisp.org>
42707
42708         * lib/poll.c (MSG_PEEK): New fallback definition.
42709
42710 2007-03-22  Bruno Haible  <bruno@clisp.org>
42711
42712         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
42713         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
42714         (main): Update.
42715         Fixes a compilation error on BeOS.
42716
42717 2007-03-22  Bruno Haible  <bruno@clisp.org>
42718
42719         * modules/frexpl-tests: New file.
42720         * tests/test-frexpl.c: New file.
42721
42722         * modules/frexpl: New file.
42723         * m4/frexpl.m4: New file.
42724         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
42725         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
42726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
42727         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
42728         (Depends-on): Add frexpl. Remove isnanl-nolibm.
42729         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
42730
42731 2007-03-22  Bruno Haible  <bruno@clisp.org>
42732
42733         * lib/frexpl.c: Share code with lib/frexp.c.
42734         * modules/mathl (Files): Add lib/frexp.c.
42735         (Depends-on): Add isnanl-nolibm.
42736
42737 2007-03-22  Bruno Haible  <bruno@clisp.org>
42738
42739         * modules/printf-frexp (Files): Add m4/frexp.m4.
42740         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
42741         only if the found frexp function actually works.
42742
42743 2007-03-22  Bruno Haible  <bruno@clisp.org>
42744
42745         * lib/frexp.c: Remove older implementation that uses divisions.
42746
42747 2007-03-21  Bruno Haible  <bruno@clisp.org>
42748
42749         * modules/frexp-tests: New file.
42750         * tests/test-frexp.c: New file.
42751
42752         * modules/frexp: New file.
42753         * lib/frexp.c: New file.
42754         * m4/frexp.m4: New file.
42755         * lib/math_.h (frexp): New declaration.
42756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
42757         REPLACE_FREXP.
42758         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
42759
42760 2007-03-21  Bruno Haible  <bruno@clisp.org>
42761
42762         * modules/isnanl-tests: New file.
42763         * tests/test-isnanl.c: New file.
42764
42765         * modules/isnanl: New file.
42766         * lib/isnanl.h: New file.
42767         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
42768         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
42769         gl_FUNC_ISNANL_WORKS.
42770         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
42771         New macros.
42772
42773 2007-03-21  Bruno Haible  <bruno@clisp.org>
42774
42775         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
42776         lib/isnanl.h.
42777         (Include): Update.
42778         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
42779         * lib/vasnprintf.c: Update.
42780         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
42781         tests/test-isnanl.h, remove tests/test-isnanl.c.
42782         (Makefile.am): Update.
42783         * tests/test-isnanl-nolibm.c: New file.
42784         * tests/test-isnanl.h: New file.
42785         * tests/test-isnanl.c: Remove file.
42786
42787 2007-03-21  Jim Meyering  <jim@meyering.net>
42788
42789         When trying to open ".", treat ESTALE like EACCES.
42790         * lib/savewd.c (savewd_save): Resort to forking not just upon
42791         failure with EACCES, but also when errno is ESTALE.
42792
42793 2007-03-20  Bruno Haible  <bruno@clisp.org>
42794
42795         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
42796         Needed on AIX 5.1. Reported by Matthew Woehlke.
42797
42798 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42799
42800         Suggestions by Bruno Haible:
42801         * lib/acl-internal.h: Include "gettext.h" rather than rolling
42802         our own.
42803         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
42804         * modules/acl (Depends-on): Add gettext.
42805
42806 2007-03-19  Bruno Haible  <bruno@clisp.org>
42807
42808         * modules/iconvme: Remove file.
42809         * lib/iconvme.h: Remove file.
42810         * lib/iconvme.c: Remove file.
42811         * m4/iconvme.m4: Remove file.
42812
42813 2007-03-19  Bruno Haible  <bruno@clisp.org>
42814
42815         * doc/relocatable-maint.texi: Break long shell script line.
42816         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
42817
42818 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42819
42820         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
42821         handle file_has_acl.
42822         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
42823         * lib/acl.c: Move header inclusions and related macro defns into
42824         lib/acl-internal.h.
42825         (S_ISLNK): Remove defn, since that's now done for us.
42826         (file_has_acl): Move to lib/file-has-acl.c.
42827         Call acl_trivial if available.  This is the crucial part of the fix.
42828         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
42829         shared within the library.  Rewrite a bit, partly to make it compatible
42830         with the GNU coding style.
42831         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
42832         Remove unnecessary double-quotes.
42833         Don't test for acl_to_text; the build will catch that.
42834         Replace acl_entries if it doesn't exist and it is needed.
42835         Check for -lsec and acl_trivial (as used on Solaris 10).
42836         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
42837         lib/file-has-acl.c.
42838         (Depends-on): Add sys_stat, for S_ISLNK.
42839
42840 2007-03-19  Ben Pfaff  <blp@gnu.org>
42841
42842         * doc/gnulib.texi: Fix typos.
42843         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
42844
42845 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42846
42847         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
42848         If size is zero here, buf must be zero.
42849
42850 2007-03-19  Simon Josefsson  <simon@josefsson.org>
42851
42852         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
42853         <bruno@clisp.org>.
42854
42855 2007-03-18  Bruno Haible  <bruno@clisp.org>
42856
42857         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
42858         Suggested by Eric Blake.
42859
42860 2007-03-18  Ben Pfaff  <blp@gnu.org>
42861
42862         * doc/relocatable.texi: Recommend using as prefix a directory
42863         that does not exist and will never be created.  Based on
42864         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
42865         and others.
42866
42867 2007-03-17  Bruno Haible  <bruno@clisp.org>
42868
42869         * lib/fchownat.c: Include lchown.h.
42870
42871 2007-03-17  Bruno Haible  <bruno@clisp.org>
42872
42873         Fix endless loop when the given allocated size was > INT_MAX.
42874         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
42875         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
42876         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
42877         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
42878         * lib/sprintf.c (sprintf): Likewise.
42879
42880 2007-03-17  Bruno Haible  <bruno@clisp.org>
42881
42882         * tests/test-argp-2.sh (func_compare): Output a context diff.
42883
42884 2007-03-17  Bruno Haible  <bruno@clisp.org>
42885
42886         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
42887         locale's decimal-point character.
42888
42889 2007-03-17  Bruno Haible  <bruno@clisp.org>
42890
42891         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
42892         before comparing it. Needed because on some platforms (e.g. x86) a
42893         'long double' occupies less bytes than sizeof (long double).
42894
42895 2007-03-17  Bruno Haible  <bruno@clisp.org>
42896
42897         * tests/test-crc.c (main): Make printf statements 64-bit clean.
42898         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
42899         * tests/test-getaddrinfo.c (simple): Likewise.
42900         * tests/test-read-file.c (main): Likewise.
42901
42902 2007-03-17  Bruno Haible  <bruno@clisp.org>
42903
42904         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
42905
42906 2007-03-17  Bruno Haible  <bruno@clisp.org>
42907
42908         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
42909         unused variable.
42910
42911 2007-03-17  Bruno Haible  <bruno@clisp.org>
42912
42913         * tests/test-c-strcasecmp.c: Include c-strcase.h.
42914         * tests/test-c-strncasecmp.c: Likewise.
42915
42916 2007-03-17  Bruno Haible  <bruno@clisp.org>
42917
42918         * modules/stdlib (Depends-on): Add unistd.
42919         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
42920         Needed for MacOS X 10.3.
42921
42922 2007-03-17  Bruno Haible  <bruno@clisp.org>
42923
42924         * lib/unistr/u-strdup.h: Include <stdlib.h>.
42925
42926 2007-03-17  Bruno Haible  <bruno@clisp.org>
42927
42928         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
42929
42930 2007-03-17  Bruno Haible  <bruno@clisp.org>
42931
42932         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
42933         to reflect files copied from gnulib (with or without modifications).
42934         Suggested by Jim Meyering.
42935
42936 2007-03-17  Eric Blake  <ebb9@byu.net>
42937
42938         * NEWS: Document stdlib change from 2007-02-18.
42939
42940 2007-03-17  Jim Meyering  <jim@meyering.net>
42941
42942         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
42943         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
42944         someone uses a name containing shell meta-characters.
42945         Reported by Alfred M. Szmidt.
42946
42947         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
42948
42949 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
42950
42951         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
42952         and copy gettext configuration files only if configure.ac contains
42953         a use of AM_GNU_GETTEXT_VERSION.
42954
42955 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
42956
42957         * build-aux/bootstrap (gnulib_name): New variable.
42958         (gnulib_tool_options): Use it.
42959
42960 2007-03-13  Simon Josefsson  <simon@josefsson.org>
42961
42962         * tests/test-des.c: Use new namespace.
42963
42964 2007-03-15  Bruno Haible  <bruno@clisp.org>
42965
42966         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
42967         Reported by James Youngman <jay@gnu.org>.
42968
42969 2007-03-15  Bruno Haible  <bruno@clisp.org>
42970
42971         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
42972         declared prototype. Needed with cc on OSF/1 5.1.
42973
42974 2007-03-15  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
42977         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
42978         (struct gl_list_implementation): Add dispose_fn argument to the
42979         'create_empty', 'create' methods.
42980         (struct gl_list_impl_base): Add field 'dispose_fn'.
42981         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
42982         argument.
42983         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
42984         dispose_fn argument.
42985         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
42986         dispose_fn on the dropped values.
42987         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
42988         dispose_fn argument.
42989         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
42990         dropped values.
42991         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
42992         (gl_tree_remove_node): Call dispose_fn on the dropped value.
42993         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
42994         (gl_tree_remove_node): Call dispose_fn on the dropped value.
42995         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
42996         argument.
42997         (gl_tree_list_free): Call dispose_fn on the dropped values.
42998         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
42999         the dropped values.
43000         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43001         Add dispose_fn argument.
43002         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43003         Call dispose_fn on the dropped values.
43004         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43005         Add dispose_fn argument.
43006         (gl_sublist_create): Initialize the 'dispose_fn' field.
43007         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43008         * tests/test-array_list.c (main): Update.
43009         * tests/test-carray_list.c (main): Update.
43010         * tests/test-avltree_list.c (main): Update.
43011         * tests/test-rbtree_list.c (main): Update.
43012         * tests/test-avltreehash_list.c (main): Update.
43013         * tests/test-rbtreehash_list.c (main): Update.
43014         * tests/test-linked_list.c (main): Update.
43015         * tests/test-linkedhash_list.c (main): Update.
43016         * tests/test-array_oset.c (main): Update.
43017
43018 2007-03-15  Bruno Haible  <bruno@clisp.org>
43019
43020         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43021         (gl_oset_create_empty): Add dispose_fn argument.
43022         (struct gl_oset_implementation): Add dispose_fn argument to
43023         'create_empty' method.
43024         (struct gl_oset_impl_base): Add dispose_fn field.
43025         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43026         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43027         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43028         values.
43029         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43030         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43031         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43032         dropped value.
43033         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43034         dropped value.
43035         * tests/test-array_oset.c (main): Update.
43036         * tests/test-avltree_oset.c (main): Update.
43037         * tests/test-rbtree_oset.c (main): Update.
43038         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43039
43040 2007-03-13  Bruno Haible  <bruno@clisp.org>
43041
43042         * tests/test-stdbool.c (i): Update after last patch.
43043
43044 2007-03-12  Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43047         the iswprint macro. Needed on Solaris 2.5.1.
43048
43049 2007-03-12  Bruno Haible  <bruno@clisp.org>
43050
43051         * tests/test-printf-frexp.c (main): Declare x as volatile.
43052
43053 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43054
43055         * doc/gnulib.texi (Build robot for gnulib): New section.
43056
43057 2007-03-12  Jim Meyering  <jim@meyering.net>
43058
43059         * build-aux/bootstrap: New file.
43060         * build-aux/bootstrap.conf: New file, from coreutils.
43061
43062 2007-03-11  Bruno Haible  <bruno@clisp.org>
43063
43064         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43065
43066 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43067
43068         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43069         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43070         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43071
43072 2007-03-11  Bruno Haible  <bruno@clisp.org>
43073
43074         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43075         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43076
43077 2007-03-11  Bruno Haible  <bruno@clisp.org>
43078
43079         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43080         formula. Needed for SunPRO C 5.0.
43081
43082 2007-03-11  Bruno Haible  <bruno@clisp.org>
43083
43084         * modules/long-options (Depends-on): Add getopt.
43085
43086 2007-03-11  Bruno Haible  <bruno@clisp.org>
43087
43088         * modules/modechange (Depends-on): Add stdbool.
43089
43090 2007-03-11  Bruno Haible  <bruno@clisp.org>
43091
43092         * modules/i-ring (Depends-on): Add stdbool.
43093
43094 2007-03-11  Bruno Haible  <bruno@clisp.org>
43095
43096         * modules/gc-des (Depends-on): Add stdbool.
43097
43098 2007-03-11  Bruno Haible  <bruno@clisp.org>
43099
43100         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43101
43102 2007-03-11  Bruno Haible  <bruno@clisp.org>
43103
43104         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43105
43106 2007-03-11  Bruno Haible  <bruno@clisp.org>
43107
43108         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43109
43110 2007-03-11  Bruno Haible  <bruno@clisp.org>
43111
43112         * lib/vasnprintf.c (sprintf): Undefine.
43113
43114 2007-03-11  Bruno Haible  <bruno@clisp.org>
43115
43116         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43117         initializers in SunPRO C and Compaq C compilers.
43118
43119 2007-03-11  Bruno Haible  <bruno@clisp.org>
43120
43121         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43122         decrementing code ANSI C compliant.
43123
43124 2007-03-11  Bruno Haible  <bruno@clisp.org>
43125
43126         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43127         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43128
43129 2007-03-11  Bruno Haible  <bruno@clisp.org>
43130
43131         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43132         <stdbool.h> substitute doesn't pass.
43133
43134 2007-03-11  Bruno Haible  <bruno@clisp.org>
43135
43136         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43137
43138 2007-03-11  Bruno Haible  <bruno@clisp.org>
43139
43140         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43141         script, for submission to autobuild.josefsson.org.
43142
43143 2007-03-10  Bruno Haible  <bruno@clisp.org>
43144
43145         * modules/canonicalize-lgpl-tests: New file.
43146         * tests/test-canonicalize-lgpl.sh: New file.
43147         * tests/test-canonicalize-lgpl.c: New file.
43148
43149         * modules/c-strcase-tests: New file.
43150         * tests/test-c-strcase.sh: New file.
43151         * tests/test-c-strcasecmp.c: New file.
43152         * tests/test-c-strncasecmp.c: New file.
43153
43154         * modules/atexit-tests: New file.
43155         * tests/test-atexit.sh: New file.
43156         * tests/test-atexit.c: New file.
43157
43158 2007-03-10  Bruno Haible  <bruno@clisp.org>
43159
43160         * tests/test-binary-io.sh: Use temporary filenames that are not so
43161         likely to clash with those of other tests (in a parallel make).
43162         * tests/test-binary-io.c: Likewise.
43163
43164 2007-03-10  Bruno Haible  <bruno@clisp.org>
43165
43166         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43167         fallback; use #error instead.
43168         Suggested by Simon Josefsson.
43169
43170 2007-03-10  Bruno Haible  <bruno@clisp.org>
43171
43172         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43173         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43174         first and the last.
43175
43176 2007-03-10  Bruno Haible  <bruno@clisp.org>
43177
43178         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43179
43180 2007-03-10  Bruno Haible  <bruno@clisp.org>
43181
43182         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43183         "make distcheck".
43184         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43185         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43186         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43187
43188 2007-03-10  Bruno Haible  <bruno@clisp.org>
43189
43190         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43191         variable.
43192         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43193         variable.
43194
43195 2007-03-09  Eric Blake  <ebb9@byu.net>
43196         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43197
43198         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43199         types are not being provided by gnulib.
43200         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43201         types are supported.
43202
43203 2007-03-10  Bruno Haible  <bruno@clisp.org>
43204
43205         * lib/stdio_.h (__attribute__): New macro.
43206         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43207         vsprintf): Specify __attribute__ __format__ for GCC.
43208         Suggested by Eric Blake.
43209
43210 2007-03-09  Bruno Haible  <bruno@clisp.org>
43211
43212         * modules/printf-posix-tests: New file.
43213         * tests/test-printf-posix.sh: New file.
43214         * tests/test-printf-posix.c: New file.
43215
43216         * modules/printf-posix: New file.
43217         * lib/printf.c: New file.
43218         * m4/printf-posix-rpl.m4: New file.
43219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43220         REPLACE_PRINTF.
43221         * lib/stdio_.h (printf): New declaration.
43222         (format, __format__, ____printf____, ____scanf____, ____strftime____,
43223         ____strfmon____): New macros.
43224         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
43225         REPLACE_PRINTF.
43226
43227 2007-03-09  Bruno Haible  <bruno@clisp.org>
43228
43229         * tests/test-vasnprintf-posix2.sh: New file.
43230         * tests/test-vasnprintf-posix2.c: New file.
43231         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
43232         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43233         (Makefile.am): Activate test-vasnprintf-posix2.sh.
43234
43235         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
43236         a locale dependent decimal point, rather than always '.'.
43237
43238 2007-03-09  Eric Blake  <ebb9@byu.net>
43239
43240         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
43241         spite of platforms like Tandem/NSK that define it to -1.
43242
43243 2007-03-08  Bruno Haible  <bruno@clisp.org>
43244
43245         * modules/vprintf-posix-tests: New file.
43246         * tests/test-vprintf-posix.sh: New file.
43247         * tests/test-vprintf-posix.c: New file.
43248         * tests/test-printf-posix.h: New file.
43249
43250         * modules/vprintf-posix: New file.
43251         * lib/vprintf.c: New file.
43252         * m4/vprintf-posix.m4: New file.
43253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
43254         REPLACE_VPRINTF.
43255         * lib/stdio_.h (vprintf): New declaration.
43256         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
43257         REPLACE_VPRINTF.
43258
43259 2007-03-08  Bruno Haible  <bruno@clisp.org>
43260
43261         * modules/fprintf-posix-tests: New file.
43262         * tests/test-fprintf-posix.sh: New file.
43263         * tests/test-fprintf-posix.c: New file.
43264
43265         * modules/fprintf-posix: New file.
43266         * lib/fprintf.c: New file.
43267         * m4/fprintf-posix.m4: New file.
43268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43269         REPLACE_FPRINTF.
43270         * lib/stdio_.h (fprintf): New declaration.
43271         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43272         REPLACE_FPRINTF.
43273
43274 2007-03-08  Bruno Haible  <bruno@clisp.org>
43275
43276         * modules/vfprintf-posix-tests: New file.
43277         * tests/test-vfprintf-posix.sh: New file.
43278         * tests/test-vfprintf-posix.c: New file.
43279         * tests/test-fprintf-posix.h: New file.
43280         * tests/test-fprintf-posix.out: New file.
43281
43282         * modules/vfprintf-posix: New file.
43283         * lib/vfprintf.c: New file.
43284         * m4/vfprintf-posix.m4: New file.
43285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43286         REPLACE_VFPRINTF.
43287         * lib/stdio_.h (vfprintf): New declaration.
43288         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43289         REPLACE_VFPRINTF.
43290
43291 2007-03-08  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43294
43295 2007-03-08  Bruno Haible  <bruno@clisp.org>
43296
43297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43298         instead of 'expr' invocations.
43299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43304         Suggested by Paul Eggert.
43305
43306 2007-03-08  Bruno Haible  <bruno@clisp.org>
43307
43308         * modules/fseterr-tests: New file.
43309         * tests/test-fseterr.c: New file.
43310
43311         * modules/fseterr: New file.
43312         * lib/fseterr.h: New file.
43313         * lib/fseterr.c: New file.
43314
43315 2007-03-08  Bruno Haible  <bruno@clisp.org>
43316
43317         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43318         * lib/getopt_.h: Likewise.
43319         * lib/mbswidth.h: Likewise.
43320         * lib/setenv.h: Likewise.
43321         * lib/vasnprintf.h: Likewise.
43322         * lib/vasprintf.h: Likewise.
43323         * lib/verror.h: Likewise.
43324         * lib/xsetenv.h: Likewise.
43325         * lib/xvasprintf.h: Likewise.
43326
43327 2007-03-08  Jim Meyering  <jim@meyering.net>
43328
43329         * users.txt: Add parted.
43330
43331         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43332
43333 2007-03-07  Bruno Haible  <bruno@clisp.org>
43334
43335         * m4/printf.m4: Make the shell script snippets copy&pastable.
43336
43337 2007-03-02  Bruno Haible  <bruno@clisp.org>
43338
43339         * lib/netinet_in_.h: New file.
43340         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43341         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43342         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43343         (Depends-on): Add absolute-header.
43344         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43345         into netinet/in.h.
43346
43347 2007-03-03  Bruno Haible  <bruno@clisp.org>
43348
43349         * lib/sys_select_.h: New file.
43350         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43351         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43352         * modules/sys_select (Files): Add lib/sys_select_.h.
43353         (Depends-on): Add absolute-header.
43354         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43355         into sys/select.h.
43356
43357 2007-03-02  Bruno Haible  <bruno@clisp.org>
43358
43359         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43360         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43361         values.
43362         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43363         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43364         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43365         * modules/sys_socket (Depends-on): Add absolute-header.
43366         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43367         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43368         (Include): Remove requirement of inclusion of <sys/types.h>.
43369
43370 2007-03-02  Bruno Haible  <bruno@clisp.org>
43371
43372         * lib/byteswap_.h (bswap_32): Fix formula.
43373
43374 2007-03-06  Bruno Haible  <bruno@clisp.org>
43375
43376         * modules/sprintf-posix-tests: New file.
43377         * tests/test-sprintf-posix.c: New file.
43378
43379         * modules/sprintf-posix: New file.
43380         * lib/sprintf.c: New file.
43381         * m4/sprintf-posix.m4: New file.
43382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43383         REPLACE_SPRINTF.
43384         * lib/stdio_.h (sprintf): New declaration.
43385         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43386         REPLACE_SPRINTF.
43387
43388 2007-03-06  Bruno Haible  <bruno@clisp.org>
43389
43390         * modules/vsprintf-posix-tests: New file.
43391         * tests/test-vsprintf-posix.c: New file.
43392         * tests/test-sprintf-posix.h: New file.
43393
43394         * modules/vsprintf-posix: New file.
43395         * lib/vsprintf.c: New file.
43396         * m4/vsprintf-posix.m4: New file.
43397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
43398         REPLACE_VSPRINTF.
43399         * lib/stdio_.h (vsprintf): New declaration.
43400         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
43401         REPLACE_VSPRINTF.
43402
43403 2007-03-06  Bruno Haible  <bruno@clisp.org>
43404
43405         * modules/vsnprintf (Depend-on): Remove minmax.
43406
43407 2007-03-06  Bruno Haible  <bruno@clisp.org>
43408
43409         * modules/snprintf-posix-tests: New file.
43410         * tests/test-snprintf-posix.c: New file.
43411
43412         * modules/snprintf-posix: New file.
43413         * m4/snprintf-posix.m4: New file.
43414         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
43415         gl_FUNC_SNPRINTF.
43416         (gl_FUNC_SNPRINTF): Invoke it.
43417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
43418         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
43419         is set.
43420         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
43421
43422 2007-03-06  Bruno Haible  <bruno@clisp.org>
43423
43424         * modules/vsnprintf-posix-tests: New file.
43425         * tests/test-vsnprintf-posix.c: New file.
43426         * tests/test-snprintf-posix.h: New file.
43427
43428         * modules/vsnprintf-posix: New file.
43429         * m4/vsnprintf-posix.m4: New file.
43430         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
43431         gl_FUNC_VSNPRINTF.
43432         (gl_FUNC_VSNPRINTF): Invoke it.
43433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
43434         * lib/stdio_.h (vsnprintf): Define as a replacement if
43435         REPLACE_VSNPRINTF is set.
43436         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
43437
43438 2007-03-06  Bruno Haible  <bruno@clisp.org>
43439
43440         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
43441         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
43442
43443 2007-03-06  Bruno Haible  <bruno@clisp.org>
43444
43445         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
43446         (asinl): Declare also if HAVE_DECL_ASINL is set.
43447         (atanl): Declare also if HAVE_DECL_ATANL is set.
43448         (ceill): Declare also if HAVE_DECL_CEILL is set.
43449         (cosl): Declare also if HAVE_DECL_COSL is set.
43450         (expl): Declare also if HAVE_DECL_EXPL is set.
43451         (floorl): Declare also if HAVE_DECL_FLOORL is set.
43452         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
43453         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
43454         (logl): Declare also if HAVE_DECL_LOGL is set.
43455         (sinl): Declare also if HAVE_DECL_SINL is set.
43456         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
43457         (tanl): Declare also if HAVE_DECL_TANL is set.
43458         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
43459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
43460         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
43461         declaration of frexpl, ldexpl.
43462         * modules/printf-frexpl (Depends-on): Add math.
43463         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
43464
43465 2007-03-05  Bruno Haible  <bruno@clisp.org>
43466
43467         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
43468         frexpl and ldexpl are declared.
43469         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
43470
43471 2007-03-05  Bruno Haible  <bruno@clisp.org>
43472
43473         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
43474         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
43475
43476 2007-03-05  Bruno Haible  <bruno@clisp.org>
43477
43478         * lib/stdio_.h: Include <stddef.h>.
43479
43480 2007-03-05  Bruno Haible  <bruno@clisp.org>
43481
43482         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
43483
43484 2007-03-05  Bruno Haible  <bruno@clisp.org>
43485
43486         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
43487         NetBSD 4, from Ralf Wildenhues.
43488
43489 2007-03-04  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/vasprintf.h: Update #if logic for the case when the functions
43492         exist but are overridden.
43493
43494 2007-03-04  Bruno Haible  <bruno@clisp.org>
43495
43496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
43497         implementations: glibc-2.4 and MacOS X 10.3.
43498         * tests/test-vasnprintf-posix.c (test_function): Test also the case
43499         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
43500         * tests/test-vasprintf-posix.c (test_function): Likewise.
43501
43502 2007-03-04  Bruno Haible  <bruno@clisp.org>
43503
43504         * modules/vasprintf-posix-tests: New file.
43505         * tests/test-vasprintf-posix.c: New file.
43506
43507         * modules/vasprintf-posix: New file.
43508         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
43509         defined.
43510         * m4/vasprintf-posix.m4: New file.
43511         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
43512         gl_FUNC_VASPRINTF.
43513         (gl_FUNC_VASPRINTF): Invoke it.
43514         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
43515         here.
43516         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
43517
43518 2007-03-04  Bruno Haible  <bruno@clisp.org>
43519
43520         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
43521         REPLACE_GETTIMEOFDAY.
43522         * modules/sys_time (Makefile.am): Likewise.
43523         * m4/sys_time_h.m4: Likewise.
43524         * m4/gettimeofday.m4: Likewise.
43525
43526 2007-03-04  Bruno Haible  <bruno@clisp.org>
43527
43528         * modules/vasnprintf-posix-tests: New file.
43529         * tests/test-vasnprintf-posix.c: New file.
43530
43531         * modules/vasnprintf-posix: New file.
43532         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
43533         printf-frexpl.h.
43534         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
43535         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
43536         REPLACE_VASNPRINTF is defined.
43537         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
43538         gl_FUNC_VASNPRINTF.
43539         (gl_FUNC_VASNPRINTF): Invoke it.
43540         * m4/vasnprintf-posix.m4: New file.
43541         * m4/printf.m4: New file.
43542
43543 2007-03-04  Bruno Haible  <bruno@clisp.org>
43544
43545         Compile progreloc.c only if --enable-relocatable is specified.
43546         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
43547         if --enable-relocatable was specified.
43548         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
43549         lib_SOURCES.
43550
43551 2007-03-04  Jim Meyering  <jim@meyering.net>
43552
43553         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
43554         Use it consistently, rather than enumerating errno constants.
43555
43556 2007-03-04  Bruno Haible  <bruno@clisp.org>
43557
43558         * modules/xvasprintf-tests: New file.
43559         * tests/test-xvasprintf.c: New file.
43560
43561         * modules/vasprintf-tests: New file.
43562         * tests/test-vasprintf.c: New file.
43563
43564         * modules/vasnprintf-tests: New file.
43565         * tests/test-vasnprintf.c: New file.
43566
43567         * modules/vsnprintf-tests: New file.
43568         * tests/test-vsnprintf.c: New file.
43569
43570         * modules/snprintf-tests: New file.
43571         * tests/test-snprintf.c: New file.
43572
43573 2007-03-04  Bruno Haible  <bruno@clisp.org>
43574
43575         Compile relocatable.c only if --enable-relocatable is specified.
43576         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
43577         gl_RELOCATABLE_LIBRARY.
43578         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
43579         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
43580         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
43581         gl_RELOCATABLE_LIBRARY.
43582         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
43583         (Makefile.am): Remove lib_SOURCES.
43584         * modules/relocatable-lib-lgpl (configure.ac): Invoke
43585         gl_RELOCATABLE_LIBRARY.
43586         (Makefile.am): Remove lib_SOURCES.
43587         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
43588         always.
43589         * modules/relocatable-prog-wrapper (configure.ac): Invoke
43590         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
43591
43592 2007-03-04  Bruno Haible  <bruno@clisp.org>
43593
43594         * modules/argmatch-tests: New file.
43595         * tests/test-argmatch.c: New file.
43596
43597         * tests/test-allocsa.c (main): Halve the number of loop runs.
43598
43599         * modules/alloca-opt-tests: New file.
43600         * tests/test-alloca-opt.c: New file.
43601
43602 2007-03-04  Jim Meyering  <jim@meyering.net>
43603
43604         Work around difference between Linux ACLs and Solaris 10 ZFS.
43605         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
43606         for EINVAL.
43607
43608 2007-03-03  Bruno Haible  <bruno@clisp.org>
43609
43610         * modules/relocatable-prog (Depends-on): Add back progreloc's
43611         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
43612
43613 2007-03-03  Bruno Haible  <bruno@clisp.org>
43614
43615         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
43616         * modules/relocatable-lib: New file.
43617
43618 2007-03-03  Bruno Haible  <bruno@clisp.org>
43619
43620         * modules/relocatable-prog: Renamed from modules/relocatable.
43621         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
43622
43623 2007-03-03  Bruno Haible  <bruno@clisp.org>
43624
43625         * modules/relocatable-script (Files): Add doc/relocatable.texi,
43626         m4/relocatable-lib.m4.
43627         (Depends-on): Remove 'relocatable'.
43628         (configure.ac): Add gl_RELOCATABLE_NOP.
43629
43630 2007-03-03  Bruno Haible  <bruno@clisp.org>
43631
43632         * modules/relocatable-prog-wrapper: New file.
43633         * modules/relocatable (Depends-on): Add it. Remove all other
43634         dependencies except progname.
43635         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
43636
43637         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
43638         (gl_FUNC_STRERROR): Nop.
43639         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
43640
43641         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
43642         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
43643
43644         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
43645         (gl_FUNC_READLINK): Update.
43646
43647         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
43648
43649 2007-03-03  Bruno Haible  <bruno@clisp.org>
43650
43651         * lib/xreadlink.c: Include <unistd.h> unconditionally.
43652         * modules/xreadlink (Depends-on): Add unistd.
43653         * modules/xreadlink-with-size (Depends-on): Likewise.
43654
43655 2007-03-03  Bruno Haible  <bruno@clisp.org>
43656
43657         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
43658         extracted from gt_FUNC_SETENV.
43659         (gt_FUNC_SETENV): Remove macro.
43660         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
43661         remove gt_FUNC_SETENV.
43662
43663 2007-03-03  Bruno Haible  <bruno@clisp.org>
43664
43665         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
43666         ENABLE_RELOCATABLE here.
43667         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
43668
43669 2007-03-03  Bruno Haible  <bruno@clisp.org>
43670
43671         * modules/rbtreehash-list-tests (Depends-on): Add progname.
43672         * tests/test-rbtreehash_list.c: Include progname.h.
43673         (main): Call set_program_name.
43674
43675         * modules/rbtree-oset-tests (Depends-on): Add progname.
43676         * tests/test-rbtree_oset.c: Include progname.h.
43677         (main): Call set_program_name.
43678
43679         * modules/rbtree-list-tests (Depends-on): Add progname.
43680         * tests/test-rbtree_list.c: Include progname.h.
43681         (main): Call set_program_name.
43682
43683         * modules/linked-list-tests (Depends-on): Add progname.
43684         * tests/test-linked_list.c: Include progname.h.
43685         (main): Call set_program_name.
43686
43687 2007-03-03  Bruno Haible  <bruno@clisp.org>
43688
43689         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
43690         All uses of __restrict changed to _Restrict_.
43691         * lib/glob_.h (__restrict): Remove macro.
43692
43693 2007-03-02  Bruno Haible  <bruno@clisp.org>
43694
43695         * modules/gettext (configure.ac): Require gettext infrastructure
43696         from version 0.16.1.
43697
43698 2007-03-02  Bruno Haible  <bruno@clisp.org>
43699
43700         * modules/linkedhash-list-tests (Depends-on): Add progname.
43701         * tests/test-linkedhash_list.c: Include progname.h.
43702         (main): Call set_program_name.
43703
43704         * modules/carray-list-tests (Depends-on): Add progname.
43705         * tests/test-carray_list.c: Include progname.h.
43706         (main): Call set_program_name.
43707
43708         * modules/avltreehash-list-tests (Depends-on): Add progname.
43709         * tests/test-avltreehash_list.c: Include progname.h.
43710         (main): Call set_program_name.
43711
43712         * modules/avltree-oset-tests (Depends-on): Add progname.
43713         * tests/test-avltree_oset.c: Include progname.h.
43714         (main): Call set_program_name.
43715
43716         * modules/avltree-list-tests (Depends-on): Add progname.
43717         * tests/test-avltree_list.c: Include progname.h.
43718         (main): Call set_program_name.
43719
43720         * modules/array-oset-tests (Depends-on): Add progname.
43721         * tests/test-array_oset.c: Include progname.h.
43722         (main): Call set_program_name.
43723
43724         * modules/array-list-tests (Depends-on): Add progname.
43725         * tests/test-array_list.c: Include progname.h.
43726         (main): Call set_program_name.
43727
43728         * modules/argp-tests (Depends-on): Add progname.
43729         * tests/test-argp.c: Include argp.h first. Include progname.h.
43730         (main): Call set_program_name.
43731
43732 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
43733
43734         * doc/gnulib-tool.texi (Initial import): Reword description of
43735         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
43736         limited effect even if defined after the first system include.
43737
43738 2007-03-01  Bruno Haible  <bruno@clisp.org>
43739
43740         * build-aux/config.libpath: Update to libtool-1.5.22.
43741         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43742
43743 2007-03-01  Bruno Haible  <bruno@clisp.org>
43744
43745         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
43746         foo_CFLAGS.
43747         Reported by Ralf Wildenhues.
43748
43749 2007-03-01  Bruno Haible  <bruno@clisp.org>
43750
43751         * build-aux/install-reloc: Remove object files left over by some
43752         compilers.
43753         Reported by Ralf Wildenhues.
43754
43755 2007-03-01  Bruno Haible  <bruno@clisp.org>
43756
43757         * build-aux/install-reloc: Break long lines.
43758
43759 2007-03-01  Bruno Haible  <bruno@clisp.org>
43760
43761         * doc/relocatable.texi: Document that it may not work on OpenBSD.
43762         Reported by Ralf Wildenhues.
43763
43764 2007-03-01  Bruno Haible  <bruno@clisp.org>
43765
43766         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
43767         include ordering constraints.
43768
43769 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43770
43771         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
43772         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
43773         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
43774         as another example.
43775         * lib/time_.h: Fix misspelling.
43776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43777         Require gl_HEADER_TIME_H_DEFAULTS.
43778         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
43779         * m4/time_r.m4 (gl_TIME_R): Likewise.
43780         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
43781
43782 2007-03-01  Bruno Haible  <bruno@clisp.org>
43783
43784         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
43785         * m4/utimens.m4 (gl_UTIMENS): Likewise.
43786
43787 2007-03-01  Jim Meyering  <jim@meyering.net>
43788
43789         * modules/xreadlink (Maintainer): Add my name.
43790         * modules/xreadlink-with-size (Depends-on): Alphabetize.
43791
43792 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
43793             Bruno Haible  <bruno@clisp.org>
43794
43795         * build-aux/install-reloc: Compile also c-ctype.c.
43796         * build-aux/relocatable.sh.in: New file.
43797         * doc/relocatable.texi: New file.
43798         * doc/relocatable-maint.texi: New file.
43799         * doc/gnulib.texi: Include relocatable-maint.texi.
43800         * lib/progreloc.c: Include unistd.h unconditionally.
43801         * lib/relocwrapper.c: Include unistd.h unconditionally.
43802         Include c-ctype.h.
43803         (add_dotbin): Use c_tolower.
43804         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
43805         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
43806         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
43807         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
43808         to m4/relocatable-lib.m4.
43809         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
43810         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
43811         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
43812         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
43813         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
43814         * modules/relocatable: New file.
43815         * modules/relocatable-lib: New file.
43816         * modules/relocatable-script: New file.
43817
43818 2007-02-28  Bruno Haible  <bruno@clisp.org>
43819
43820         Import --enable-relocatable infrastructure.
43821         * build-aux/config.libpath: New file, from GNU gettext.
43822         * build-aux/install-reloc: New file, from GNU gettext.
43823         * build-aux/reloc-ldflags: New file, from GNU gettext.
43824         * lib/relocatable.h: New file, from GNU gettext.
43825         * lib/relocatable.c: New file, from GNU gettext.
43826         * lib/relocwrapper.c: New file, from GNU gettext.
43827         * m4/relocatable.m4: New file, from GNU gettext.
43828
43829 2007-02-28  Bruno Haible  <bruno@clisp.org>
43830
43831         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
43832
43833         * modules/xreadlink: New file, from GNU gettext with modifications.
43834         * lib/xreadlink.c: New file, from GNU gettext.
43835         * lib/xreadlink.h: Add comments.
43836         (xreadlink): New declaration.
43837
43838         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
43839         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
43840         lib/xreadlink-with-size.c.
43841         (configure.ac): Remove gl_XREADLINK invocation.
43842         (Makefile.am): Augment lib_SOURCES.
43843         * m4/xreadlink.m4: Remove file.
43844         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
43845         (xreadlink_with_size): Renamed from xreadink.
43846         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
43847         * modules/canonicalize (Depends-on): Replace xreadlink with
43848         xreadlink-with-size.
43849         * lib/canonicalize.c (canonicalize_filename_mode): Update.
43850
43851 2007-02-25  Jim Meyering  <jim@meyering.net>
43852
43853         * build-aux/announce-gen: When complaining about excess arguments,
43854         list them.
43855
43856 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
43857
43858         * README: Document signed integer overflow situation more
43859         accurately.
43860
43861 2007-02-25  Bruno Haible  <bruno@clisp.org>
43862
43863         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
43864         'a' or 'A' conversion.
43865
43866 2007-02-25  Bruno Haible  <bruno@clisp.org>
43867
43868         * modules/filename: Renamed from modules/pathname.
43869         (Files): Replace lib/pathname.h with lib/filename.h. Replace
43870         lib/concatpath.c with lib/concat-filename.c.
43871         (Makefile.am): Update.
43872         (Include): Replace pathname.h with filename.h.
43873         * lib/filename.h: Renamed from lib/pathname.h.
43874         (concatenated_filename): Renamed from concatenated_pathname.
43875         * lib/concat-filename.c: Renamed from lib/concatpath.c.
43876         (concatenated_filename): Renamed from concatenated_pathname.
43877         * lib/findprog.c: Include filename.h instead of pathname.h.
43878         (find_in_path): Update.
43879         * lib/javacomp.c: Include filename.h instead of pathname.h.
43880         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43881         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43882         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43883         is_oldgcj_14_13_usable, is_javac_usable): Update.
43884         * lib/javaexec.c: Include filename.h instead of pathname.h.
43885         (execute_java_class): Update.
43886         * modules/findprog: Update.
43887         * modules/javacomp: Update.
43888         * modules/javaexec: Update.
43889         * MODULES.html.sh (File system functions): Add 'filename', remove
43890         'pathname'.
43891
43892 2007-02-25  Bruno Haible  <bruno@clisp.org>
43893
43894         * modules/printf-frexpl-tests: New file.
43895         * tests/test-printf-frexpl.c: New file.
43896
43897         * modules/printf-frexpl: New file.
43898         * lib/printf-frexpl.h: New file.
43899         * lib/printf-frexpl.c: New file.
43900         * m4/printf-frexpl.m4: New file.
43901
43902 2007-02-25  Bruno Haible  <bruno@clisp.org>
43903
43904         * modules/printf-frexp-tests: New file.
43905         * tests/test-printf-frexp.c: New file.
43906
43907         * modules/printf-frexp: New file.
43908         * lib/printf-frexp.h: New file.
43909         * lib/printf-frexp.c: New file.
43910         * m4/printf-frexp.m4: New file.
43911
43912 2007-02-25  Bruno Haible  <bruno@clisp.org>
43913
43914         Assume automake >= 1.10 for the tests.
43915         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
43916         * modules/arctwo-tests: Likewise.
43917         * modules/argp-tests: Likewise.
43918         * modules/avltree-list-tests: Likewise.
43919         * modules/avltree-oset-tests: Likewise.
43920         * modules/avltreehash-list-tests: Likewise.
43921         * modules/carray-list-tests: Likewise.
43922         * modules/crc-tests: Likewise.
43923         * modules/des-tests: Likewise.
43924         * modules/gc-arcfour-tests: Likewise.
43925         * modules/gc-arctwo-tests: Likewise.
43926         * modules/gc-des-tests: Likewise.
43927         * modules/gc-hmac-md5-tests: Likewise.
43928         * modules/gc-hmac-sha1-tests: Likewise.
43929         * modules/gc-md2-tests: Likewise.
43930         * modules/gc-md4-tests: Likewise.
43931         * modules/gc-md5-tests: Likewise.
43932         * modules/gc-pbkdf2-sha1-tests: Likewise.
43933         * modules/gc-rijndael-tests: Likewise.
43934         * modules/gc-sha1-tests: Likewise.
43935         * modules/gc-tests: Likewise.
43936         * modules/getaddrinfo-tests: Likewise.
43937         * modules/hmac-md5-tests: Likewise.
43938         * modules/hmac-sha1-tests: Likewise.
43939         * modules/linked-list-tests: Likewise.
43940         * modules/linkedhash-list-tests: Likewise.
43941         * modules/lock-tests: Likewise.
43942         * modules/md2-tests: Likewise.
43943         * modules/md4-tests: Likewise.
43944         * modules/md5-tests: Likewise.
43945         * modules/rbtree-list-tests: Likewise.
43946         * modules/rbtree-oset-tests: Likewise.
43947         * modules/rbtreehash-list-tests: Likewise.
43948         * modules/read-file-tests: Likewise.
43949         * modules/rijndael-tests: Likewise.
43950         * modules/stdint-tests: Likewise.
43951         * modules/tls-tests: Likewise.
43952
43953 2007-02-24  Bruno Haible  <bruno@clisp.org>
43954
43955         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
43956         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
43957         function; instead check whether isnan with a double argument links.
43958         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
43959         function; instead check whether isnan with a 'long double' argument
43960         links.
43961         Reported by Eric Blake <ebb9@byu.net>.
43962
43963 2007-02-24  Bruno Haible  <bruno@clisp.org>
43964
43965         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
43966         defined.
43967         * lib/isnanl.c: Remove all code. Just include isnan.c.
43968         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
43969
43970 2007-02-25  Jim Meyering  <jim@meyering.net>
43971
43972         Avoid conflicting types for 'unsetenv' on FreeBSD.
43973         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
43974         conflicting with FreeBSD's (5.0 and 6.1) function declaration
43975         in stdlib.h.
43976
43977 2007-02-24  Bruno Haible  <bruno@clisp.org>
43978
43979         * modules/isnanl-nolibm-tests: New file.
43980         * tests/test-isnanl.c: New file.
43981
43982         * modules/isnanl-nolibm: New file.
43983         * lib/isnanl.h: New file.
43984         * lib/isnanl.c: New file.
43985         * m4/isnanl.m4: New file.
43986
43987 2007-02-24  Bruno Haible  <bruno@clisp.org>
43988
43989         * modules/isnan-nolibm-tests: New file.
43990         * tests/test-isnan.c: New file.
43991
43992         * modules/isnan-nolibm: New file.
43993         * lib/isnan.h: New file.
43994         * lib/isnan.c: New file.
43995         * m4/isnan.m4: New file.
43996
43997 2007-02-24  Bruno Haible  <bruno@clisp.org>
43998
43999         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44000         assume that an exponent fits in 20 bits.
44001
44002 2007-02-24  Jim Meyering  <jim@meyering.net>
44003
44004         * m4/regex.m4: Update the description of the configure-time option,
44005         --without-included-regex, to state accurately what the defaults are,
44006         and perhaps to give people an idea why using this option is risky.
44007
44008 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44009
44010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44011         loops on small arguments.  This attempts to avoid the problem
44012         Bruno Haible reported for AIX 4.3.2 in
44013         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44014
44015 2007-02-23  Bruno Haible  <bruno@clisp.org>
44016
44017         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44018         Needed for help2man.
44019
44020 2007-02-23  Karl Berry  <karl@gnu.org>
44021
44022         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44023         exists, foo.h should be cvs-ignored, not committed.
44024
44025 2007-02-23  Eric Blake  <ebb9@byu.net>
44026
44027         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44028         * lib/stat-time.h (includes): Likewise.
44029         * lib/utimecmp.c (includes): Likewise.
44030         * lib/utimens.h (includes): Likewise.
44031         * lib/getdate.y (includes): Also include "timespec.h" for use
44032         internal to the module.
44033         * modules/utimens (Depends-on): Revert yesterday's patch.
44034         * modules/nanosleep (Depends-on): Add missing dependency.
44035
44036 2007-02-22  Bruno Haible  <bruno@clisp.org>
44037
44038         * lib/glob.c: Don't include getlogin_r.h.
44039
44040 2007-02-22  Jim Meyering  <jim@meyering.net>
44041
44042         * modules/utimens (Depends-on): Add timespec, required for
44043         utimens.h's inclusion of timespec.h.
44044
44045 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44046
44047         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44048         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44049         Schwab in
44050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44051         I'll try to think of a better way to fix the Solaris problem.
44052
44053         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44054         like glibc; on Solaris 10, it fails with errno == EINVAL.
44055         POSIX says the behavior is unspecified if the first argument is NULL,
44056         so play it safe and never pass NULL to the system getcwd.
44057
44058 2007-02-21  Jim Meyering  <jim@meyering.net>
44059
44060         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44061         of gettimeofday.  It would conflict with the one now always
44062         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44063         an IRIX 6.5 build failure.
44064
44065 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44066
44067         Minor fixups to port to Solaris 10 with Sun C 5.8.
44068         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44069         * modules/getcwd (Depends-on): Add dirfd.
44070         * lib/putenv.c (putenv): #undef it.
44071         (rpl_putenv): New decl.
44072         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44073
44074 2007-02-20  Bruno Haible  <bruno@clisp.org>
44075
44076         * modules/stdio-tests: New file.
44077         * tests/test-stdio.c: New file.
44078
44079         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44080         (Depends-on): Add stdio.
44081         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44082         (Include): Use <stdio.h> instead of vsnprintf.h.
44083         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44084         HAVE_DECL_VSNPRINTF.
44085         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44086
44087         * modules/snprintf (Files): Remove lib/snprintf.h.
44088         (Depends-on): Add stdio.
44089         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44090         (Include): Use <stdio.h> instead of snprintf.h.
44091         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44092         HAVE_DECL_SNPRINTF.
44093         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44094         * lib/getaddrinfo.c: Likewise.
44095
44096         * modules/stdio: New file.
44097         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44098         * lib/snprintf.h: Remove file.
44099         * lib/vsnprintf.h: Remove file.
44100         * lib/.cppi-disable: Remove snprintf.h.
44101         * m4/stdio_h.m4: New file.
44102         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44103
44104 2007-02-20  Jim Meyering  <jim@meyering.net>
44105
44106         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44107         used by e.g., mingw.  From Bruno Haible.
44108
44109 2007-02-19  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44112         warnings.
44113         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44114
44115 2007-02-19  Bruno Haible  <bruno@clisp.org>
44116
44117         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44118         from mingw users.
44119
44120 2007-02-19  Bruno Haible  <bruno@clisp.org>
44121
44122         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44123         warnings.
44124         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44125
44126 2007-02-19  Jim Meyering  <jim@meyering.net>
44127
44128         Don't use FD after a successful "fdopendir (fd)".
44129         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44130         Reset it by calling dirfd on the just-obtained DIR*.
44131
44132         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44133         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44134
44135 2007-02-18  Bruno Haible  <bruno@clisp.org>
44136
44137         * lib/readlink.c: Include <unistd.h>.
44138         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44139         HAVE_READLINK.
44140         * modules/readlink (Depends-on): Add unistd.
44141         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44142         (Include): Add <unistd.h>.
44143
44144         * lib/getlogin_r.h: Remove file.
44145         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44146         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44147         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44148         HAVE_DECL_GETLOGIN_R.
44149         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44150         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44151         (Include): Use <unistd.h> instead of getlogin_r.h.
44152
44153         * lib/getcwd.h: Remove file.
44154         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44155         * lib/xgetcwd.c: Likewise.
44156         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44157         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44158         * modules/getcwd (Files): Remove lib/getcwd.h.
44159         (Depends-on): Add unistd.
44160         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44161         (Include): Use <unistd.h> instad of getcwd.h.
44162
44163         * lib/ftruncate.c: Include <unistd.h> first.
44164         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44165         Set HAVE_FTRUNCATE.
44166         * modules/ftruncate (Depends-on): Add unistd.
44167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44168
44169         * lib/fchdir.c: Include <unistd.h> first.
44170         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44172         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44173         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44174         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44175
44176         * lib/dup2.c: Include <unistd.h> first.
44177         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44178         HAVE_DUP2.
44179         * modules/dup2 (Depends-on): Add unistd.
44180         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44181
44182         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44183         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44184         REPLACE_CHOWN. Don't define chown as a macro here.
44185         * modules/chown (Depends-on): Add unistd.
44186         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44187
44188         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44189         Add definition for GL_LINK_WARNING.
44190         (chown, dup2): New declarations.
44191         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44192         link warning.
44193         (ftruncate): New declaration.
44194         (getcwd): New declaration, taken from old getcwd.h.
44195         (getlogin_r): New declaration, taken from old getlogin_r.h.
44196         (readlink): New declaration.
44197         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44198         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44199         (gl_PREREQ_UNISTD): Remove macro.
44200         (gl_UNISTD_MODULE_INDICATOR): New macro.
44201         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44202         many new variables. Don't set UNISTD_H.
44203         * modules/unistd (Description): Change.
44204         (Depends-on): Add link-warning.
44205         (configure.ac): Update.
44206         (Makefile.am): Create unistd.h always. Substitute many new variables
44207         into it.
44208
44209 2007-02-18  Bruno Haible  <bruno@clisp.org>
44210
44211         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44212         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44213         HAVE_GETSUBOPT.
44214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44215         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44216         * lib/getsubopt.h: Remove file.
44217         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44218         (Depends-on): Add stdlib.
44219         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44220         (Includes): Use <stdlib.h> instead of getsubopt.h.
44221         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44222         Set HAVE_GETSUBOPT.
44223         * lib/getsubopt.c: Don't include getsubopt.h.
44224
44225 2007-02-18  Bruno Haible  <bruno@clisp.org>
44226
44227         * modules/fchdir (Depends-on): Add dup2.
44228
44229 2007-02-18  Bruno Haible  <bruno@clisp.org>
44230
44231         * lib/stdlib_.h: Handle glibc's special invocation convention
44232         specially.
44233
44234 2007-02-18  Bruno Haible  <bruno@clisp.org>
44235
44236         * modules/stdlib-tests: New file.
44237         * tests/test-stdlib.c: New file.
44238
44239         * modules/mkstemp (Files): Remove lib/mkstemp.h.
44240         (Depends-on): Add stdlib.
44241         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44242         (Includes): Use <stdlib.h> instead of mkstemp.h.
44243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44244         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
44245         * lib/mkstemp.c: Don't include mkstemp.h.
44246         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
44247         * lib/stdlib--.h: Don't include mkstemp.h.
44248
44249         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
44250         (Depends-on): Add stdlib.
44251         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44252         (Includes): Use <stdlib.h> instead of mkdtemp.h.
44253         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44254         HAVE_MKDTEMP.
44255         * lib/mkdtemp.c: Don't include mkdtemp.h.
44256         * lib/clean-temp.c: Don't include mkdtemp.h.
44257
44258         * modules/exit (Files): Remove lib/exit.h.
44259         (Depends-on): Add stdlib.
44260         (Makefile.am): Remove lib_SOURCES.
44261         (Include): Use <stdlib.h> instead of exit.h.
44262         * lib/argmatch.c: Don't include exit.h.
44263         * lib/execute.c: Likewise.
44264         * lib/pagealign_alloc.c: Likewise.
44265         * lib/pipe.c: Likewise.
44266         * lib/wait-process.c: Likewise.
44267         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44268         * lib/exitfail.c: Likewise.
44269         * lib/savewd.c: Likewise.
44270         * lib/xsetenv.c: Likewise.
44271
44272         * modules/stdlib: New file.
44273         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44274         and extra comments about mkstemp().
44275         * lib/exit.h: Remove file.
44276         * lib/mkdtemp.h: Remove file.
44277         * lib/mkstemp.h: Remove file.
44278         * m4/stdlib_h.m4: New file.
44279         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44280
44281 2007-02-18  Bruno Haible  <bruno@clisp.org>
44282
44283         * modules/math-tests: New file.
44284         * tests/test-math.c: New file.
44285
44286         * modules/math: New file.
44287         * modules/mathl (Files): Remove lib/mathl.h.
44288         (Depends-on): Add math.
44289         (Makefile.am): Don't mention mathl.h.
44290         (Include): Use <math.h> instead of mathl.h.
44291         * lib/math_.h: New file.
44292         * lib/mathl.h: Remove file.
44293         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44294         mathl.h.
44295         * lib/asinl.c: Likewise.
44296         * lib/atanl.c: Likewise.
44297         * lib/ceill.c: Likewise.
44298         * lib/cosl.c: Likewise.
44299         * lib/expl.c: Likewise.
44300         * lib/floorl.c: Likewise.
44301         * lib/frexpl.c: Likewise.
44302         * lib/ldexpl.c: Likewise.
44303         * lib/logl.c: Likewise.
44304         * lib/sincosl.c: Likewise.
44305         * lib/sinl.c: Likewise.
44306         * lib/sqrtl.c: Likewise.
44307         * lib/tanl.c: Likewise.
44308         * lib/trigl.c: Likewise.
44309         * m4/math_h.m4: New file.
44310         * MODULES.html.sh (Mathematics): Add math.
44311
44312 2007-02-17  Bruno Haible  <bruno@clisp.org>
44313
44314         * modules/wctype-tests: New file.
44315         * tests/test-wctype.c: New file.
44316
44317         * modules/wchar-tests: New file.
44318         * tests/test-wchar.c: New file.
44319
44320         * modules/unistd-tests: New file.
44321         * tests/test-unistd.c: New file.
44322
44323         * modules/time-tests: New file.
44324         * tests/test-time.c: New file.
44325
44326         * modules/sysexits-tests: New file.
44327         * tests/test-sysexits.c: New file.
44328
44329         * modules/sys_time-tests: New file.
44330         * tests/test-sys_time.c: New file.
44331
44332         * modules/sys_stat-tests: New file.
44333         * tests/test-sys_stat.c: New file.
44334
44335         * modules/sys_socket-tests: New file.
44336         * tests/test-sys_socket.c: New file.
44337
44338         * modules/sys_select-tests: New file.
44339         * tests/test-sys_select.c: New file.
44340
44341         * modules/string-tests: New file.
44342         * tests/test-string.c: New file.
44343
44344         * modules/stdbool-tests: New file.
44345         * tests/test-stdbool.c: New file.
44346
44347         * modules/netinet_in-tests: New file.
44348         * tests/test-netinet_in.c: New file.
44349
44350         * modules/inttypes-tests: New file.
44351         * tests/test-inttypes.c: New file.
44352
44353         * modules/fcntl-tests: New file.
44354         * tests/test-fcntl.c: New file.
44355
44356         * modules/byteswap-tests: New file.
44357         * tests/test-byteswap.c: New file.
44358
44359         * modules/arpa_inet-tests: New file.
44360         * tests/test-arpa_inet.c: New file.
44361
44362 2007-02-17  Bruno Haible  <bruno@clisp.org>
44363
44364         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44365         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44366         if the corresponding module is not enabled. Emit link warnings if
44367         the function is used nevertheless.
44368         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44369         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44370         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44371         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44372         * modules/inttypes (Depends-on): Add link-warning.
44373         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44374         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44375         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44376         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44377         * modules/imaxdiv (configure.ac): Likewise.
44378         * modules/strtoimax (configure.ac): Likewise.
44379         * modules/strtoumax (configure.ac): Likewise.
44380
44381 2007-02-17  Bruno Haible  <bruno@clisp.org>
44382
44383         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44384         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44385         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44386         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44387
44388 2007-02-17  Bruno Haible  <bruno@clisp.org>
44389
44390         * modules/link-warning: New file.
44391         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
44392         * lib/string_.h (GL_LINK_WARNING): Remove definition.
44393         * modules/string (Depends-on): Add link-warning.
44394         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44395         string.h.
44396         * MODULES.html.sh (Support for building libraries and executables): Add
44397         link-warning.
44398
44399 2007-02-17  Bruno Haible  <bruno@clisp.org>
44400
44401         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
44402         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
44403         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
44404         long lines.
44405
44406 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
44407             Bruno Haible  <bruno@clisp.org>
44408
44409         * modules/tmpfile: New file.
44410         * lib/tmpfile.c: New file.
44411         * m4/tmpfile.m4: New file.
44412         * MODULES.html.sh (func_all_modules): New section "Input/output".
44413
44414 2007-02-15  Bruno Haible  <bruno@clisp.org>
44415
44416         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
44417         (supports_delete_on_close): New function.
44418         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
44419
44420 2007-02-14  Bruno Haible  <bruno@clisp.org>
44421
44422         * modules/mbspcasecmp-tests: New file.
44423         * tests/test-mbspcasecmp.sh: New file.
44424         * tests/test-mbspcasecmp.c: New file.
44425
44426         New module mbspcasecmp.
44427         * modules/mbspcasecmp: New file.
44428         * lib/mbspcasecmp.c: New file.
44429         * lib/string_.h (strncasecmp): Change warning message.
44430         (mbspcasecmp): New declaration.
44431         * m4/mbspcasecmp.m4: New file.
44432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44433         GNULIB_MBSPCASECMP.
44434         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
44435         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
44436
44437 2007-02-14  Bruno Haible  <bruno@clisp.org>
44438
44439         * modules/mbsncasecmp-tests: New file.
44440         * tests/test-mbsncasecmp.sh: New file.
44441         * tests/test-mbsncasecmp.c: New file.
44442
44443         New module mbsncasecmp.
44444         * modules/mbsncasecmp: New file.
44445         * lib/mbsncasecmp.c: New file.
44446         * lib/string_.h (mbsncasecmp): New declaration.
44447         * m4/mbsncasecmp.m4: New file.
44448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44449         GNULIB_MBSNCASECMP.
44450         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
44451         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
44452
44453 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44454
44455         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
44456         Verify that it doesn't overlap with our flags.
44457         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
44458         do not have the desired effect in multibyte locales; instead, use
44459         mbscasecmp.
44460         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
44461         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
44462         we don't require GNU fnmatch ourselves (if our users require it, they
44463         should do so explicitly).
44464
44465         Fix regex code so it doesn't rely on strcasecmp.
44466         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
44467         Otherwise, include gnulib's langinfo.h.
44468         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
44469         undesirable behavior in non-C locales.  Instead, rely on localecharset.
44470         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
44471         * modules/regex (FILES): Remove m4/codeset.m4.
44472         (Depends-on): Add localcharset.  Remove strcase.
44473
44474 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44475
44476         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
44477         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44478
44479 2007-02-13  Bruno Haible  <bruno@clisp.org>
44480
44481         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
44482         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44483
44484 2007-02-12  Bruno Haible  <bruno@clisp.org>
44485
44486         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44487         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
44488         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
44489         time warning rather than a link error.
44490
44491 2007-02-12  Bruno Haible  <bruno@clisp.org>
44492
44493         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
44494         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44495         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44496
44497 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44498
44499         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
44500         args, not 2.
44501
44502 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44503
44504         New module 'time', so that apps can include <time.h> as per
44505         POSIX and GNU instead of separate include files like time_r.h
44506         and timegm.h.  This implementation tries out a simpler approach
44507         for replacing decls in standard include files (as compared to
44508         the string module), somewhat as an experiment.
44509
44510         * config/srclist.txt: Comment out mktime.c for now.
44511         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
44512         since it doesn't apply any more.  Use generic wording instead.
44513         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
44514         'time'.
44515         * lib/time_.h, m4/time_h.m4, modules/time: New files.
44516         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
44517         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
44518         Don't include <sys/types.h>; no longer needed since we assume C89.
44519         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
44520         * lib/strftime.c: Likewise.
44521         * lib/time_r.c: Likewise.
44522         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
44523         * lib/nanosleep.c: Include <time.h> first, to check interface.
44524         * lib/strptime.c: Likewise.
44525         * lib/time_r.c: Likewise.
44526         * lib/timegm.c: Likewise.
44527         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
44528         needed.
44529         * lib/timegm.c: Don't include timegm.h; no longer needed.
44530         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
44531         time.h now handles any problems in that area.
44532         (struct timespec, nanosleep): Remove; time.h now arranges for these.
44533         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
44534         that time.h defines struct timespec.
44535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
44536         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
44537         handles that.
44538         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
44539         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
44540         needed.  Set REPLACE_LOCALTIME.
44541         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
44542         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
44543         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
44544         nanosleep; time_h.m4 now does that.  Don't require
44545         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
44546         module handles this now.
44547         * modules/getdate (Depends-on): Remove timespec.  Add time.
44548         * modules/nanosleep (Depends-on): Likewise.
44549         * modules/stat-time (Depends-on): Likewise.
44550         * modules/nanosleep (Include): Include time.h, not timespec.h.
44551         * modules/strptime (Files): Remove lib/strptime.h.
44552         (Depends-on): Add extensions, time.
44553         (Include): Include time.h, not strptime.h.
44554         * modules/time_r (Files): Remove lib/time_r.h.
44555         (Depends-on): Add time.
44556         (Include): Include time.h, not time_r.h.
44557         * modules/timegm: Likewise.
44558         * modules/timespec (Description): Now does timespec-related decls
44559         of our own, instead of struct timespec itself.
44560         (Depends-on): Add time; remove extensions.
44561         (Maintainer): Add self.
44562         * modules/utimecmp (Depends-on): Add time; remove timespec.
44563         * modules/utimens (Depends-on): Likewise.
44564         * modules/xnanosleep (Depends-on): Likewise.
44565
44566 2007-02-11  Bruno Haible  <bruno@clisp.org>
44567
44568         * lib/c-strstr.c: Include allocsa.h.
44569         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44570         * lib/c-strcasestr.c: Include allocsa.h.
44571         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44572         * lib/strcasestr.c: Include allocsa.h.
44573         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44574         * lib/mbsstr.c: Include allocsa.h.
44575         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44576         allocsa/freesa instead of malloc/free.
44577         * lib/mbscasestr.c: Include allocsa.h.
44578         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44579         allocsa/freesa instead of malloc/free.
44580         * modules/c-strstr (Depends-on): Add allocsa.
44581         * modules/c-strcasestr (Depends-on): Likewise.
44582         * modules/strcasestr (Depends-on): Likewise.
44583         * modules/mbsstr (Depends-on): Likewise.
44584         * modules/mbscasestr (Depends-on): Likewise.
44585
44586 2007-02-11  Bruno Haible  <bruno@clisp.org>
44587
44588         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
44589
44590         * modules/mbsspn-tests: New file.
44591         * tests/test-mbsspn.sh: New file.
44592         * tests/test-mbsspn.c: New file.
44593
44594 2007-02-11  Bruno Haible  <bruno@clisp.org>
44595
44596         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
44597
44598         * modules/mbspbrk-tests: New file.
44599         * tests/test-mbspbrk.sh: New file.
44600         * tests/test-mbspbrk.c: New file.
44601
44602 2007-02-11  Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
44605         unneeded cast.
44606
44607         * modules/mbscspn-tests: New file.
44608         * tests/test-mbscspn.sh: New file.
44609         * tests/test-mbscspn.c: New file.
44610
44611 2007-02-11  Bruno Haible  <bruno@clisp.org>
44612
44613         * modules/mbscasecmp-tests: New file.
44614         * tests/test-mbscasecmp.sh: New file.
44615         * tests/test-mbscasecmp.c: New file.
44616
44617 2007-02-11  Bruno Haible  <bruno@clisp.org>
44618
44619         Ensure O(n) worst-case complexity of mbscasestr.
44620         * lib/mbscasestr.c: Include stdbool.h.
44621         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44622         functions.
44623         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
44624         the bookkeeping indicates that it's worth it.
44625         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
44626
44627         * modules/mbscasestr-tests: New file.
44628         * tests/test-mbscasestr1.c: New file.
44629         * tests/test-mbscasestr2.sh: New file.
44630         * tests/test-mbscasestr2.c: New file.
44631         * tests/test-mbscasestr3.sh: New file.
44632         * tests/test-mbscasestr3.c: New file.
44633         * tests/test-mbscasestr4.sh: New file.
44634         * tests/test-mbscasestr4.c: New file.
44635         * m4/locale-tr.m4: New file.
44636
44637 2007-02-11  Bruno Haible  <bruno@clisp.org>
44638
44639         Ensure O(n) worst-case complexity of mbsstr.
44640         * lib/mbsstr.c: Include stdbool.h.
44641         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44642         functions.
44643         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
44644         bookkeeping indicates that it's worth it.
44645         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
44646
44647         * modules/mbsstr-tests: New file.
44648         * tests/test-mbsstr1.c: New file.
44649         * tests/test-mbsstr2.sh: New file.
44650         * tests/test-mbsstr2.c: New file.
44651         * tests/test-mbsstr3.sh: New file.
44652         * tests/test-mbsstr3.c: New file.
44653         * m4/locale-fr.m4: New file.
44654
44655 2007-02-11  Bruno Haible  <bruno@clisp.org>
44656
44657         * lib/mbsrchr.c (mbsrchr): Fix bug.
44658
44659         * modules/mbsrchr-tests: New file.
44660         * tests/test-mbsrchr.sh: New file.
44661         * tests/test-mbsrchr.c: New file.
44662
44663 2007-02-11  Bruno Haible  <bruno@clisp.org>
44664
44665         * lib/mbschr.c (mbschr): Fix bug.
44666
44667         * modules/mbschr-tests: New file.
44668         * tests/test-mbschr.sh: New file.
44669         * tests/test-mbschr.c: New file.
44670         * m4/locale-zh.m4: New file.
44671
44672 2007-02-11  Bruno Haible  <bruno@clisp.org>
44673
44674         Support for copying multibyte string iterators.
44675         * lib/mbiter.h: Include <string.h>.
44676         (mbiter_multi_copy): New function.
44677         (mbi_copy): New macro.
44678         * lib/mbuiter.h: Include <string.h>.
44679         (mbuiter_multi_copy): New function.
44680         (mbui_copy): New macro.
44681
44682 2007-02-11  Bruno Haible  <bruno@clisp.org>
44683
44684         New module mbslen.
44685         * modules/mbslen: New file.
44686         * lib/mbslen.c: New file.
44687         * lib/string_.h (mbslen): New declaration.
44688         * m4/mbslen.m4: New file.
44689         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44690         GNULIB_MBSLEN.
44691         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
44692         * MODULES.html.sh (Internationalization functions): Add mbslen.
44693
44694 2007-02-11  Bruno Haible  <bruno@clisp.org>
44695
44696         Ensure O(n) worst-case complexity of strcasestr substitute.
44697         * lib/strcasestr.c: Include stdbool.h.
44698         (knuth_morris_pratt): New function.
44699         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44700         bookkeeping indicates that it's worth it.
44701         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
44702
44703         * modules/strcasestr-tests: New file.
44704         * tests/test-strcasestr.c: New file.
44705
44706 2007-02-11  Bruno Haible  <bruno@clisp.org>
44707
44708         Ensure O(n) worst-case complexity of c_strcasestr.
44709         * lib/c-strcasestr.c: Include stdbool.h, string.h.
44710         (knuth_morris_pratt): New function.
44711         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
44712         the bookkeeping indicates that it's worth it.
44713         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
44714
44715         * modules/c-strcasestr-tests: New file.
44716         * tests/test-c-strcasestr.c: New file.
44717
44718 2007-02-11  Bruno Haible  <bruno@clisp.org>
44719
44720         Ensure O(n) worst-case complexity of c_strstr.
44721         * lib/c-strstr.c: Include stdbool.h, string.h.
44722         (knuth_morris_pratt): New function.
44723         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44724         bookkeeping indicates that it's worth it.
44725         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
44726
44727         * lib/c-strstr.c: Complete rewrite for maintainability.
44728
44729         * modules/c-strstr-tests: New file.
44730         * tests/test-c-strstr.c: New file.
44731
44732 2007-02-11  Bruno Haible  <bruno@clisp.org>
44733
44734         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
44735         5.2.1 and earlier, whereby \055 was treated just like the range
44736         delimiter '-'.
44737         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44738
44739 2007-02-08  Bruno Haible  <bruno@clisp.org>
44740
44741         * modules/regex (Depends-on): Add stdbool.
44742         Reported by Dalibor Topic <robilad@kaffe.org>.
44743
44744 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44745
44746         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
44747         Prefer returning from main to exiting from it.
44748         Remove unnecessary parens after sizeof.
44749
44750 2007-02-05  Bruno Haible  <bruno@clisp.org>
44751
44752         New module mbssep.
44753         * modules/mbssep: New file.
44754         * lib/mbssep.c: New file.
44755         * lib/string_.h (strsep): Add a conditional link warning.
44756         (mbssep): New declaration.
44757         * m4/mbssep.m4: New file.
44758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44759         GNULIB_MBSSEP.
44760         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
44761         * MODULES.html.sh (Internationalization functions): Add mbssep.
44762
44763 2007-02-05  Bruno Haible  <bruno@clisp.org>
44764
44765         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
44766         Optimize search in case of 1 delimiter.
44767
44768 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44769
44770         * lib/acl.h: Include sys/types.h before sys/acl.h.
44771
44772 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44773
44774         Merge upstream fix for glibc bugzilla #3957:
44775
44776         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
44777
44778         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
44779         bit for RE_HAT_LISTS_NOT_NEWLINE.
44780         (build_charclass_op): Remove bogus comment.
44781
44782 2007-02-05  Simon Josefsson  <simon@josefsson.org>
44783
44784         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
44785
44786 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44787
44788         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
44789         * lib/memmem.c [!defined _LIBC]: Include config.h.
44790
44791 2007-02-04  Bruno Haible  <bruno@clisp.org>
44792
44793         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
44794         warning message.
44795
44796 2007-02-04  Bruno Haible  <bruno@clisp.org>
44797
44798         New module mbstok_r.
44799         * modules/mbstok_r: New file.
44800         * lib/mbstok_r.c: New file.
44801         * lib/string_.h (strtok_r): Change argument names to match the
44802         comments. Add a conditional link warning.
44803         (mbstok_r): New declaration.
44804         * m4/mbstok_r.m4: New file.
44805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44806         GNULIB_MBSTOK_R.
44807         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
44808         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
44809
44810 2007-02-04  Bruno Haible  <bruno@clisp.org>
44811
44812         New module mbsspn.
44813         * modules/mbsspn: New file.
44814         * lib/mbsspn.c: New file.
44815         * lib/string_.h (strspn): Add a conditional link warning.
44816         (mbsspn): New declaration.
44817         * m4/mbsspn.m4: New file.
44818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44819         GNULIB_MBSSPN.
44820         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
44821         * MODULES.html.sh (Internationalization functions): Add mbsspn.
44822
44823 2007-02-04  Bruno Haible  <bruno@clisp.org>
44824
44825         New module mbspbrk.
44826         * modules/mbspbrk: New file.
44827         * lib/mbspbrk.c: New file.
44828         * lib/string_.h (strpbrk): Add a conditional link warning.
44829         (mbspbrk): New declaration.
44830         * m4/mbspbrk.m4: New file.
44831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44832         GNULIB_MBSPBRK.
44833         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
44834         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
44835
44836 2007-02-04  Bruno Haible  <bruno@clisp.org>
44837
44838         New module mbscspn.
44839         * modules/mbscspn: New file.
44840         * lib/mbscspn.c: New file.
44841         * lib/string_.h (strcspn): Add a conditional link warning.
44842         (mbscspn): New declaration.
44843         * m4/mbscspn.m4: New file.
44844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44845         GNULIB_MBSCSPN.
44846         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
44847         * MODULES.html.sh (Internationalization functions): Add mbscspn.
44848
44849 2007-02-04  Bruno Haible  <bruno@clisp.org>
44850
44851         New module mbscasestr, reduced goal of strcasestr.
44852         * modules/mbscasestr: New file.
44853         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
44854         (mbscasestr): Renamed from strcasestr.
44855         * lib/strcasestr.c: Don't include mbuiter.h.
44856         (strcasestr): Remove support for multibyte locales.
44857         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
44858         Change the conditional link warning.
44859         (mbscasestr): New declaration.
44860         * m4/mbscasestr.m4: New file.
44861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
44862         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
44863         REPLACE_STRCASESTR.
44864         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
44865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44866         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44867         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
44868         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
44869         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44870         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
44871         (Depends-on): Remove mbuiter.
44872         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
44873
44874 2007-02-04  Bruno Haible  <bruno@clisp.org>
44875
44876         Simplify handling of strncasecmp.
44877         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
44878         the conditional link warning.
44879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44880         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
44881         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
44882         * modules/strcase (configure.ac): Don't invoke
44883         gl_STRING_MODULE_INDICATOR.
44884         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
44885
44886 2007-02-04  Bruno Haible  <bruno@clisp.org>
44887
44888         New module mbscasecmp, reduced goal of strcasecmp.
44889         * modules/mbscasecmp: New file.
44890         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
44891         (mbscasecmp): Renamed from strcasecmp.
44892         * lib/strcasecmp.c: Don't include mbuiter.h.
44893         (strcasecmp): Remove support for multibyte locales.
44894         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
44895         Change the conditional link warning.
44896         (mbscasecmp): New declaration.
44897         * m4/mbscasecmp.m4: New file.
44898         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
44899         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
44900         REPLACE_STRCASECMP.
44901         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
44902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44903         GNULIB_MBSCASECMP.
44904         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
44905         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
44906         * modules/strcase (Files): Remove m4/mbrtowc.m4.
44907         (Depends-on): Remove mbuiter.
44908         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
44909
44910 2007-02-04  Bruno Haible  <bruno@clisp.org>
44911
44912         New module mbsstr. Remove module strstr.
44913         * modules/mbsstr: New file.
44914         * modules/strstr: Remove file.
44915         * lib/mbsstr.c: Renamed from lib/strstr.c.
44916         (mbsstr): Renamed from strstr.
44917         * lib/string_.h (strstr): Remove declaration. Change the conditional
44918         link warning.
44919         (mbsstr): New declaration.
44920         * m4/mbsstr.m4: New file.
44921         * m4/strstr.m4: Remove file.
44922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
44923         REPLACE_STRSTR.
44924         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
44925         Don't initialize GNULIB_STRSTR.
44926         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
44927         substitute GNULIB_STRSTR and REPLACE_STRSTR.
44928         * MODULES.html.sh (Internationalization functions): Add mbsstr.
44929         (Support for systems lacking ANSI C 89): Remove strstr.
44930
44931 2007-02-04  Bruno Haible  <bruno@clisp.org>
44932
44933         New module mbsrchr.
44934         * modules/mbsrchr: New file.
44935         * lib/mbsrchr.c: New file.
44936         * lib/string_.h (strrchr): Add a conditional link warning.
44937         (mbsrchr): New declaration.
44938         * m4/mbsrchr.m4: New file.
44939         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44940         GNULIB_MBSRCHR.
44941         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
44942         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
44943
44944 2007-02-04  Bruno Haible  <bruno@clisp.org>
44945
44946         New module mbschr.
44947         * modules/mbschr: New file.
44948         * lib/mbschr.c: New file.
44949         * lib/string_.h (strchr): Add a conditional link warning.
44950         (mbschr): New declaration.
44951         * m4/mbschr.m4: New file.
44952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44953         GNULIB_MBSCHR.
44954         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
44955         * MODULES.html.sh (Internationalization functions): Add mbschr.
44956
44957 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44958
44959         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
44960
44961         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
44962
44963 2007-02-04  Bruno Haible  <bruno@clisp.org>
44964
44965         New module description section 'configure.ac-early'.
44966         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
44967         (func_get_autoconf_early_snippet): New function.
44968         (func_import, func_create_testdir): Use it. Remove special cases for
44969         modules 'extensions' and 'lock'.
44970         * modules/extensions (configure.ac-early): Require
44971         gl_USE_SYSTEM_EXTENSIONS.
44972         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
44973
44974 2007-02-04  Bruno Haible  <bruno@clisp.org>
44975
44976         Make use of gcj-4.3's -fsource and -ftarget option.
44977         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
44978         and if so try the options -fsource and -ftarget.
44979         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
44980         source_version, ftarget_option, target_version arguments.
44981         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
44982         (is_envjavac_oldgcj_14_14_usable): Renamed from
44983         is_envjavac_gcj_14_14_usable.
44984         (is_envjavac_oldgcj_14_13_usable): Renamed from
44985         is_envjavac_gcj_14_13_usable.
44986         (is_gcj_present): Update.
44987         (is_gcj_43, is_gcj43_usable): New functions.
44988         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
44989         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
44990         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
44991         try the options -fsource and -ftarget.
44992
44993 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44994
44995         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
44996         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
44997         larger value.
44998
44999 2007-02-03  Jim Meyering  <jim@meyering.net>
45000
45001         Give tools a better chance to allocate space for very large buffers.
45002         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45003
45004         Make pwd and readlink work also when run with an unreadable parent dir
45005         on systems with openat support.
45006         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45007         provided getcwd function, even when we have openat support.
45008         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45009
45010 2007-02-02  Bruno Haible  <bruno@clisp.org>
45011
45012         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45013         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45014         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45015         portability problems if one of these functions is only used on specific
45016         platforms.
45017         Reported by Paul Eggert.
45018
45019 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45020
45021         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45022         is causing more trouble than it's curing.
45023         * lib/regex_internal.h (__mempcpy): Remove.
45024         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45025         (and make the code a tad smaller to boot).
45026         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45027
45028 2007-02-02  Jim Meyering  <jim@meyering.net>
45029
45030         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45031         section, not in the Makefile.am: one.
45032
45033 2007-02-02  Eric Blake  <ebb9@byu.net>
45034
45035         * lib/strchrnul.c: Always include config.h first.
45036
45037         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45038         gnulib strstr is not necessary here.
45039
45040 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45041
45042         * m4/socklen.m4: Fix typo.
45043
45044 2007-02-02  Eric Blake  <ebb9@byu.net>
45045
45046         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45047         * modules/netinet_in (Makefile.am): Likewise.
45048
45049 2007-02-01  Bruno Haible  <bruno@clisp.org>
45050
45051         * lib/string_.h (GL_LINK_WARNING): New macro.
45052         (strcasecmp, strstr, strcasestr): If provided by the system,
45053         conditionally define as a macro that leads to a warning instead of to
45054         an error.
45055         (strncasecmp): Conditionally define as a macro that leads to a warning.
45056
45057 2007-02-01  Karl Berry  <karl@gnu.org>
45058
45059         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45060
45061 2007-02-01  Bruno Haible  <bruno@clisp.org>
45062
45063         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45064         renamings.
45065
45066 2007-02-01  Eric Blake  <ebb9@byu.net>
45067
45068         * modules/regex (Depends-on): Revert dependence on mempcpy.
45069         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45070         module's definition of mempcpy.
45071         Reported by Paul Eggert.
45072
45073 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45074
45075         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45076         the symbol XYZ before redefining it.  This fixes a problem with
45077         programs that don't use XYZ, when compiled on systems that define
45078         XYZ to something else.
45079
45080 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45081
45082         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45083         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45084         writeable to group or other and (2) is intended to have a special
45085         mode bit that is set or cleared.  In such a case, the directory
45086         should be neither group- nor other-writeable until the special
45087         mode bits are right.
45088
45089 2007-01-31  Eric Blake  <ebb9@byu.net>
45090
45091         * modules/mountlist (Depends-on): Add strstr.
45092
45093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45094         bug.
45095         * modules/string (Makefile.am): Remove redundant replacement.
45096         * modules/regex (Depends-on): Add mempcpy.
45097
45098 2007-01-31  Bruno Haible  <bruno@clisp.org>
45099
45100         New module description field 'Link'.
45101         * gnulib-tool (func_usage): Document --extract-link-directive.
45102         (sed_extract_prog): Recognize 'Link' directive.
45103         (func_get_link_directive): New function.
45104         (func_import): Show summary of link directives.
45105         Handle --extract-link-directive option.
45106         * modules/acl (Link): New section.
45107         * modules/clock-time (Link): New section.
45108         * modules/euidaccess (Link): New section.
45109         * modules/gettext (Link): New section.
45110         * modules/iconv (Link): New section.
45111         * modules/lock (Link): New section.
45112         * modules/nanosleep (Link): New section.
45113         * modules/readline (Link): New section.
45114
45115 2007-01-27  Bruno Haible  <bruno@clisp.org>
45116
45117         Enforce the use of gnulib modules for unportable <string.h> functions.
45118         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45119         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45120         (gl_HEADER_STRING_H_BODY): Require it.
45121         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45122         the symbol XYZ to one that gives a link error.
45123         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45124         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45125         * modules/mempcpy (configure.ac): Likewise.
45126         * modules/memrchr (configure.ac): Likewise.
45127         * modules/stpcpy (configure.ac): Likewise.
45128         * modules/stpncpy (configure.ac): Likewise.
45129         * modules/strcase (configure.ac): Likewise.
45130         * modules/strcasestr (configure.ac): Likewise.
45131         * modules/strchrnul (configure.ac): Likewise.
45132         * modules/strdup (configure.ac): Likewise.
45133         * modules/strndup (configure.ac): Likewise.
45134         * modules/strnlen (configure.ac): Likewise.
45135         * modules/strpbrk (configure.ac): Likewise.
45136         * modules/strsep (configure.ac): Likewise.
45137         * modules/strstr (configure.ac): Likewise.
45138         * modules/strtok_r (configure.ac): Likewise.
45139
45140 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45141
45142         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45143
45144 2007-01-30  Jim Meyering  <jim@meyering.net>
45145
45146         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45147
45148 2007-01-29  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45151         * lib/execute.c: Likewise.
45152         * lib/pipe.c: Likewise.
45153         * lib/printf-args.h: Likewise.
45154         * lib/printf-args.c: Likewise.
45155         * lib/printf-parse.c: Likewise.
45156         * lib/vasnprintf.c: Likewise.
45157
45158 2007-01-29  Eric Blake  <ebb9@byu.net>
45159
45160         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45161         declaration.
45162
45163 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45164
45165         * lib/strptime.h (strptime): Use 'restrict' for args where
45166         POSIX requires this.
45167         * lib/strptime.c (strptime): Likewise.
45168         Change license notice from LGPL to GPL, since gnulib-tool will
45169         change this as needed.
45170         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45171         defined.
45172         Include "strptime.h" first, to check interface.
45173         Do not #undef _LIBC and _NL_CURRENT.
45174         Do not include <stdlib.h>; no longer needed.
45175         Include "time_r.h" and declare ptime_locale_status
45176         only if _LIBC is not defined.
45177         (__P): Remove unused macro.
45178         (match_string): Bring back glibc version, but use it only if _LIBC
45179         is defined.
45180         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45181         Remove unnecessary assertion and abort() call.
45182         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45183         * m4/strptime.m4: Fix serial number comment.
45184         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45185         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45186         (Depends-on): Add time_r.
45187
45188 2007-01-29  Bruno Haible  <bruno@clisp.org>
45189
45190         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45191         strptime.
45192         * modules/strptime (Depends-on): Add stdbool.
45193         * lib/strptime.h: Include <time.h> always. Add comments.
45194
45195 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45196
45197         * modules/strptime: New file.
45198         * lib/strptime.h: New file.
45199         * lib/strptime.c: New file.
45200         * m4/strptime.m4: New file.
45201
45202 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45203
45204         * MODULES.html.sh: New module mpsort.
45205         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45206
45207         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45208         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45210         All uses changed.
45211         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45212         All uses changed.
45213         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45214         to _Restrict_.
45215         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45216         the parameter matches the prototype.
45217
45218 2007-01-28  Jim Meyering  <jim@meyering.net>
45219
45220         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45221         sys/time.h here, reverting that part of the previous patch:
45222         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
45223
45224 2007-01-28  Bruno Haible  <bruno@clisp.org>
45225
45226         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
45227         value of $(SYS_TIME_H).
45228         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
45229         remove it conditionally, too. [added by Jim Meyering]
45230         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
45231         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45232         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
45233         GETTIMEOFDAY_REPLACEMENT to 1.
45234
45235 2007-01-28  Bruno Haible  <bruno@clisp.org>
45236
45237         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
45238         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
45240         Set UNISTD_H instead of UNISTD_H2.
45241         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
45242
45243 2007-01-28  Bruno Haible  <bruno@clisp.org>
45244
45245         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
45246         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
45247
45248 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45249
45250         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
45251         (func_create_testdir): Ensure C locale for `grep' and `tr'
45252         character ranges.
45253         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
45254         ACLOCAL_AMFLAGS parsing state machine.
45255
45256 2007-01-27  Bruno Haible  <bruno@clisp.org>
45257
45258         * modules/unistr/base: Update.
45259
45260 2007-01-27  Bruno Haible  <bruno@clisp.org>
45261
45262         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45263         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45264         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45265         modules/unistr/u32-mbtouc.
45266         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45267         * lib/unistr.h: Update.
45268         * lib/linebreak.c: Update.
45269         * modules/unistr/u32-mbtouc: Renamed from
45270         modules/unistr/u32-mbtouc-safe.
45271         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45272         * lib/unistr.h: Update.
45273         * lib/unistr/u32-to-u8.c: Update.
45274         * lib/unistr/u32-to-u16.c: Update.
45275
45276 2007-01-27  Bruno Haible  <bruno@clisp.org>
45277
45278         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45279         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45280         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45281         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45282         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45283         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45284         modules/unistr/u16-mbtouc.
45285         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45286         * lib/unistr.h: Update.
45287         * lib/linebreak.c: Update.
45288         * modules/linebreak: Update.
45289         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45290         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45291         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45292         * modules/unistr/u16-mbtouc: Renamed from
45293         modules/unistr/u16-mbtouc-safe.
45294         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45295         * lib/unistr.h: Update.
45296         * lib/unistr/u16-to-u8.c: Update.
45297         * modules/unistr/u16-to-u8: Update.
45298         * lib/unistr/u16-to-u32.c: Update.
45299         * modules/unistr/u16-to-u32: Update.
45300
45301 2007-01-27  Bruno Haible  <bruno@clisp.org>
45302
45303         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45304         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45305         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45306         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45307         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45308         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45309         modules/unistr/u8-mbtouc.
45310         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45311         * lib/unistr.h: Update.
45312         * lib/striconveh.c: Update.
45313         * modules/striconveh: Update.
45314         * lib/linebreak.c: Update.
45315         * modules/linebreak: Update.
45316         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45317         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45318         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45319         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45320         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45321         * lib/unistr.h: Update.
45322         * lib/striconveh.c: Update.
45323         * modules/striconveh: Update.
45324         * lib/unistr/u8-to-u16.c: Update.
45325         * modules/unistr/u8-to-u16: Update.
45326         * lib/unistr/u8-to-u32.c: Update.
45327         * modules/unistr/u8-to-u32: Update.
45328
45329 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45330
45331         Sync from Libtool.
45332         * lib/argz.c: Do not include strings.h nor memory.h, include
45333         string.h unconditionally.  Patch by Simon Josefsson.
45334
45335 2007-01-27  Bruno Haible  <bruno@clisp.org>
45336
45337         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45338         from gl_HEADER_STRING_H_BODY.
45339         (gl_HEADER_STRING_H_BODY): Require it.
45340         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45341         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45342         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45343         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45344         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45345         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45347         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45348         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45349         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45350         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45351         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45352         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45353         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45354         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45355
45356 2007-01-27  Bruno Haible  <bruno@clisp.org>
45357
45358         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45359         check_PROGRAMS into noinst_PROGRAMS.
45360         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45361         check_PROGRAMS in this case.
45362         (func_import): Set for_test to false.
45363         (func_create_testdir): Set for_test to true.
45364
45365 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45366             Bruno Haible  <bruno@clisp.org>
45367
45368         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45369         (Depends-on): Add string.
45370         (Includes): Use <string.h> instead of strcasestr.h.
45371         * modules/string (Makefile.am): Also substitute the value of
45372         REPLACE_STRCASESTR.
45373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45374         assume strcasestr is declared in <string.h> not <strings.h>. Also
45375         set REPLACE_STRCASESTR.
45376         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45377         REPLACE_STRCASESTR.
45378         * lib/strcasestr.h: Remove file.
45379         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45380         * lib/string_.h (strcasestr): New declaration.
45381
45382 2007-01-27  Bruno Haible  <bruno@clisp.org>
45383
45384         * lib/string_.h: Use 'extern'.
45385
45386 2007-01-27  Jim Meyering  <jim@meyering.net>
45387
45388         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45389         of set-but-not-used local, "q".
45390
45391         * lib/mempcpy.c: Include <config.h> before <string.h>.
45392         This fixes a compilation error on HP-UX, due to the system's
45393         "restrict"-using mempcpy prototype.
45394
45395 2007-01-26  Bruno Haible  <bruno@clisp.org>
45396
45397         Small optimization.
45398         * lib/javacomp.c: Include c-strstr.h.
45399          (is_envjavac_gcj): Use c_strstr instead of strstr.
45400         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
45401
45402 2007-01-26  Bruno Haible  <bruno@clisp.org>
45403
45404         * MODULES.html.sh (Unicode string functions): Add the new modules.
45405
45406         * modules/uniconv/u32-strconv-to-locale: New file.
45407         * lib/uniconv/u32-strconv-to-locale.c: New file.
45408
45409         * modules/uniconv/u16-strconv-to-locale: New file.
45410         * lib/uniconv/u16-strconv-to-locale.c: New file.
45411
45412         * modules/uniconv/u8-strconv-to-locale: New file.
45413         * lib/uniconv/u8-strconv-to-locale.c: New file.
45414
45415         * modules/uniconv/u32-strconv-from-locale: New file.
45416         * lib/uniconv/u32-strconv-from-locale.c: New file.
45417
45418         * modules/uniconv/u16-strconv-from-locale: New file.
45419         * lib/uniconv/u16-strconv-from-locale.c: New file.
45420
45421         * modules/uniconv/u8-strconv-from-locale: New file.
45422         * lib/uniconv/u8-strconv-from-locale.c: New file.
45423
45424         * modules/uniconv/u32-strconv-to-enc: New file.
45425         * lib/uniconv/u32-strconv-to-enc.c: New file.
45426         * modules/uniconv/u32-strconv-to-enc-tests: New file.
45427         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
45428
45429         * modules/uniconv/u16-strconv-to-enc: New file.
45430         * lib/uniconv/u16-strconv-to-enc.c: New file.
45431         * lib/uniconv/u-strconv-to-enc.h: New file.
45432         * modules/uniconv/u16-strconv-to-enc-tests: New file.
45433         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
45434
45435         * modules/uniconv/u8-strconv-to-enc: New file.
45436         * lib/uniconv/u8-strconv-to-enc.c: New file.
45437         * modules/uniconv/u8-strconv-to-enc-tests: New file.
45438         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
45439
45440         * modules/uniconv/u32-strconv-from-enc: New file.
45441         * lib/uniconv/u32-strconv-from-enc.c: New file.
45442         * modules/uniconv/u32-strconv-from-enc-tests: New file.
45443         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
45444
45445         * modules/uniconv/u16-strconv-from-enc: New file.
45446         * lib/uniconv/u16-strconv-from-enc.c: New file.
45447         * modules/uniconv/u16-strconv-from-enc-tests: New file.
45448         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
45449
45450         * modules/uniconv/u8-strconv-from-enc: New file.
45451         * lib/uniconv/u8-strconv-from-enc.c: New file.
45452         * lib/uniconv/u-strconv-from-enc.h: New file.
45453         * modules/uniconv/u8-strconv-from-enc-tests: New file.
45454         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
45455
45456         * modules/uniconv/u32-conv-from-enc: New file.
45457         * lib/uniconv/u32-conv-from-enc.c: New file.
45458         * modules/uniconv/u32-conv-from-enc-tests: New file.
45459         * tests/uniconv/test-u32-conv-from-enc.c: New file.
45460
45461         * modules/uniconv/u16-conv-from-enc: New file.
45462         * lib/uniconv/u16-conv-from-enc.c: New file.
45463         * lib/uniconv/u-conv-from-enc.h: New file.
45464         * modules/uniconv/u16-conv-from-enc-tests: New file.
45465         * tests/uniconv/test-u16-conv-from-enc.c: New file.
45466
45467         * modules/uniconv/u8-conv-from-enc: New file.
45468         * lib/uniconv/u8-conv-from-enc.c: New file.
45469         * modules/uniconv/u8-conv-from-enc-tests: New file.
45470         * tests/uniconv/test-u8-conv-from-enc.c: New file.
45471
45472         * modules/uniconv/base: New file.
45473         * lib/uniconv.h: New file.
45474
45475 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45476
45477         * doc/gnulib-tool.texi (Initial import): Update to match current
45478         behavior with strdup module.
45479         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
45480         * lib/memmem.h: Remove; all uses removed.  This is now done
45481         by <string.h>.
45482         * lib/mempcpy.h: Likewise.
45483         * lib/memrchr.h: Likewise.
45484         * lib/stpcpy.h: Likewise.
45485         * lib/stpncpy.h: Likewise.
45486         * lib/strcase.h: Likewise.
45487         * lib/strchrnul.h: Likewise.
45488         * lib/strdup.h: Likewise.
45489         * lib/strndup.h: Likewise.
45490         * lib/strnlen.h: Likewise.
45491         * lib/strpbrk.h: Likewise.
45492         * lib/strsep.h: Likewise.
45493         * lib/strstr.h: Likewise.
45494         * lib/strtok_r.h: Likewise.
45495         * lib/string_.h: New file.
45496         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
45497         Rely on <string.h> instead.
45498         * lib/canon-host.c: Likewise.
45499         * lib/chdir-long.c: Likewise.
45500         * lib/concatpath.c: Likewise.
45501         * lib/exclude.c: Likewise.
45502         * lib/fchdir.c: Likewise.
45503         * lib/getaddrinfo.c: Likewise.
45504         * lib/getcwd.c: Likewise.
45505         * lib/getsubopt.c: Likewise.
45506         * lib/glob.c: Likewise.
45507         * lib/hard-locale.c: Likewise.
45508         * lib/iconvme.c: Likewise.
45509         * lib/javacomp.c: Likewise.
45510         * lib/mempcpy.c: Likewise.
45511         * lib/memrchr.c: Likewise.
45512         * lib/regex_internal.h: Likewise.
45513         * lib/stpncpy.c: Likewise.
45514         * lib/strcasecmp.c: Likewise.
45515         * lib/strchrnul.c: Likewise.
45516         * lib/strdup.c: Likewise.
45517         * lib/striconv.c: Likewise.
45518         * lib/striconveh.c: Likewise.
45519         * lib/striconveha.c: Likewise.
45520         * lib/strncasecmp.c: Likewise.
45521         * lib/strndup.c: Likewise.
45522         * lib/strnlen.c: Likewise.
45523         * lib/strsep.c: Likewise.
45524         * lib/strstr.c: Likewise.
45525         * lib/strtok_r.c: Likewise.
45526         * lib/userspec.c: Likewise.
45527         * lib/w32spawn.h: Likewise.
45528         * lib/xstrndup.c: Likewise.
45529         * lib/mountlist.c (strstr): Remove decl.
45530         * m4/string_h.m4: New file.
45531         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
45532         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
45533         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
45534         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
45535         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
45536         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
45537         Set REPLACE_STRCASECMP if necessary.
45538         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
45539         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
45540         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
45541         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
45542         HAVE_DECL_STRDUP if necessary.
45543         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
45544         since gl_FUNC_STRNDUP does that now.
45545         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
45546         Check for decl here...
45547         (gl_PREREQ_STRNLEN): ... not here.
45548         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
45549         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
45550         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
45551         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
45552         necessary.
45553         * modules/string: New file.
45554         * modules/memmem (Files): Remove special-purpose include file.
45555         (Depends-on): Add string.
45556         (Include): Include <string.h>, not the removed file.
45557         * modules/mempcpy: Likewise.
45558         * modules/memrchr: Likewise.
45559         * modules/stpcpy: Likewise.
45560         * modules/stpncpy: Likewise.
45561         * modules/strcase: Likewise.
45562         * modules/strchrnul: Likewise.
45563         * modules/strdup: Likewise.
45564         * modules/strndup: Likewise.
45565         * modules/strnlen: Likewise.
45566         * modules/strpbrk: Likewise.
45567         * modules/strsep: Likewise.
45568         * modules/strstr: Likewise.
45569         * modules/strtok_r: Likewise.
45570         * tests/test-dirname.c: Don't include "strdup.h", since
45571         <string.h> now suffices.
45572         * tests/test-memmem.c: Don't include "memmem.h", since
45573         <string.h> now suffices.
45574
45575 2007-01-25  Bruno Haible  <bruno@clisp.org>
45576
45577         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
45578         *resultp is 0.
45579
45580         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
45581         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
45582         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
45583         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
45584
45585         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
45586         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
45587         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
45588         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
45589         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
45590         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
45591
45592 2007-01-24  Bruno Haible  <bruno@clisp.org>
45593
45594         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
45595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
45596         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
45597         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
45598         gl_FUNC_FTS_CORE.
45599         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
45600         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
45601         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45602         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
45603         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
45604         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
45605         gl_FUNC_FCHOWNAT.
45606         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
45607         gl_FUNC_STRFTIME.
45608         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
45609         Reported by Ralf Wildenhues.
45610
45611 2007-01-24  Bruno Haible  <bruno@clisp.org>
45612
45613         Drop AC_REQUIRE calls that are redundant with the module dependencies.
45614         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
45615         gl_GETADDRINFO.
45616         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
45617         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
45618         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
45619
45620 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
45621
45622         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
45623         Don't use 'exit'; just return from 'main'.
45624         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
45625
45626         * lib/fnmatch_.h: Readjust white space and comments to match
45627         glibc, to avoid spurious diffs.
45628
45629 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45630
45631         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
45632         2004-12-01 change by Jakub Jelinek, since this code won't compile
45633         if !LIBC.  Problem reported by Bob Proulx.
45634
45635 2007-01-23  Bruno Haible  <bruno@clisp.org>
45636
45637         * lib/striconveh.c: Include c-strcaseeq.h.
45638         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
45639         * modules/striconveh (Depends-on): Add c-strcaseeq.
45640
45641 2007-01-23  Bruno Haible  <bruno@clisp.org>
45642
45643         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
45644
45645         * modules/c-strcaseeq: New file.
45646         * lib/c-strcaseeq.h: New file.
45647
45648         * modules/streq: New file.
45649         * lib/streq.h: New file.
45650
45651 2007-01-23  Bruno Haible  <bruno@clisp.org>
45652
45653         * modules/striconveha-tests: New file.
45654         * tests/test-striconveha.c: New file.
45655
45656         * lib/striconveha.h: Include <stdbool.h>.
45657         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
45658         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
45659         (mem_iconveha_notranslit): Renamed from mem_iconveha.
45660         (mem_iconveha): New function.
45661         (str_iconveha_notranslit): Renamed from str_iconveha.
45662         (str_iconveha): New function.
45663         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
45664         c-strcase.
45665
45666 2007-01-23  Bruno Haible  <bruno@clisp.org>
45667
45668         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
45669         encodings without forgiving before trying any encoding with handler.
45670         (str_iconveha): Try all encodings without forgiving before trying any
45671         encoding with handler.
45672
45673 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45674
45675         Import the following changes from libc.
45676
45677         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45678
45679         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
45680
45681         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
45682
45683         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
45684         normal_bracket label.
45685
45686         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
45687
45688         [BZ #361]
45689         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
45690         to normal_bracket after fetching the next character.
45691
45692 2007-01-22  Bruno Haible  <bruno@clisp.org>
45693
45694         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
45695         argument.
45696         * lib/striconveh.c (iconv_carefully_1): New function.
45697         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
45698         argument.
45699         (str_cd_iconveh): Update.
45700         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
45701         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
45702         * tests/test-striconveh.c (MAGIC): New macro.
45703         (new_offsets): New function.
45704         (main): Test call with and without offsets.
45705
45706 2007-01-22  Bruno Haible  <bruno@clisp.org>
45707
45708         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
45709         * modules/sys_select (Makefile.am): Likewise.
45710         * modules/sys_socket (Makefile.am): Likewise.
45711         * modules/sys_time (Makefile.am): Likewise.
45712
45713 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45714
45715         * modules/gettimeofday (License): Change from GPL to LGPL, since
45716         gettimeofday is a library function.
45717
45718 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45719
45720         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
45721
45722 2007-01-21  Bruno Haible  <bruno@clisp.org>
45723
45724         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
45725
45726 2007-01-21  Bruno Haible  <bruno@clisp.org>
45727
45728         * modules/striconveha: New file.
45729         * lib/striconveha.h: New file.
45730         * lib/striconveha.c: New file.
45731         * MODULES.html.sh (Internationalization functions): Add striconveha.
45732         * lib/striconv.c (str_iconv): Optimize the case of an empty input
45733         string.
45734         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
45735
45736 2007-01-21  Bruno Haible  <bruno@clisp.org>
45737
45738         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
45739         * lib/striconveh.c (str_iconveh): Likewise.
45740
45741 2007-01-21  Bruno Haible  <bruno@clisp.org>
45742
45743         * lib/striconveh.h (mem_iconveh): New declaration.
45744         * lib/striconveh.c (mem_iconveh): New function.
45745         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
45746
45747 2007-01-21  Bruno Haible  <bruno@clisp.org>
45748
45749         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
45750
45751         * lib/striconveh.h (mem_cd_iconveh): Change specification.
45752         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
45753         original result buffer.
45754         (str_cd_iconveh): Update.
45755         * tests/test-striconveh.c (main): Update.
45756
45757         * lib/striconv.h (mem_cd_iconv): Change specification.
45758         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
45759         result buffer.
45760         (str_cd_iconv): Update.
45761         * tests/test-striconv.c (main): Update.
45762
45763 2007-01-21  Bruno Haible  <bruno@clisp.org>
45764
45765         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
45766
45767 2007-01-20  Jim Meyering  <jim@meyering.net>
45768
45769         * lib/userspec.c (parse_with_separator): If a user or group string
45770         starts with "+", skip the corresponding name-to-ID look-up, since
45771         such a look-up must fail: user and group names may not include "+".
45772
45773 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
45774
45775         * lib/poll.c: Include sys/time.h and time.h unconditionally,
45776         since we now assume the sys_time module.
45777         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
45778         check for sys/time.h; no longer needed.
45779         * modules/poll (Depends-on): Depend on sys_time.
45780
45781 2007-01-18  Bruno Haible  <bruno@clisp.org>
45782
45783         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
45784         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45785
45786         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
45787         gettimeofday.
45788
45789         * tests/test-gettimeofday.c: Include <time.h>.
45790         (dummy): Remove variable.
45791
45792         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
45793         gl_HEADER_SYS_TIME_H.
45794         (gl_HEADER_SYS_TIME_H): New macro.
45795
45796         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
45797         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45798         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
45799         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
45800         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45801         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
45802         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
45803         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45804         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
45805         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
45806         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45807
45808         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
45809         last change; it caused a compilation error when cross-compiling to
45810         Cygwin.
45811
45812 2007-01-18  Jim Meyering  <jim@meyering.net>
45813
45814         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
45815         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
45816         than the race-prone "test -d sys || mkdir sys".
45817         (configure.ac): Use AC_PROG_MKDIR_P.
45818         * modules/sys_select: Likewise.
45819         * modules/sys_socket: Likewise.
45820         * modules/sys_time: Likewise.
45821
45822 2007-01-18  Eric Blake  <ebb9@byu.net>
45823
45824         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
45825         replace gettimeofday.
45826         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
45827         name, to avoid infinite recursion.
45828
45829 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
45830
45831         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
45832         module sys_time.
45833         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
45834         assume timespec.h defines struct timeval.
45835         * lib/settime.c: Likewise.
45836         * lib/utimens.c: Likewise.
45837         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
45838         since we now assume the gettimeofday module.
45839         * lib/tempname.c (__gen_tempname): Likewise.
45840         * lib/gettimeofday.h: Remove.
45841         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
45842         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
45843         Include <time.h>, for 'time()'.
45844         (localtime_buffer_addr): Also use this workaround if
45845         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
45846         to simplify the uses.  All uses changed.
45847         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
45848         that #undef is inside {}, and 'const' follows type name consistently.
45849         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
45850         (gettimeofday): Do not use the maximum possible value for
45851         tv->tv_usec, since that might break usages other than ls.c.
45852         Instead, we'll leave ls.c alone.  This undoes today's patch
45853         by Bruno.  Add a compile-time warning for 1s-clock resolution;
45854         we've never observed the problem but might as well keep the
45855         canary.
45856         * lib/nanosleep.c: Include timespec.h first, for interface check.
45857         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
45858         now assume the sys_time module.
45859         * lib/tempname.c: Likewise.
45860         * lib/timespec.h: Likewise.
45861         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
45862         needed.
45863         * lib/strftime.c: Likewise.
45864         * lib/timespec.h: Likewise.
45865         * lib/posixtm.c: Include posixtm.h first, for interface check.
45866         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
45867         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
45868         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
45869         * lib/sys_time_.h: New file.
45870         * lib/timespec.h (struct timespec): Use long int, not long.
45871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45872         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
45873         Remove obsolescent call to AC_HEADER_TIME.
45874         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
45875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45876         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45877         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
45878         Likewise.
45879         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
45880         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
45881         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
45882         into the sys_time module.  Check for gettimeofday just once.
45883         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
45884         for gettimeofday signature to just check the signature.  Merely
45885         compile it, since linking doesn't test signature.  Improve test for
45886         whether gettimeofday.o is actually needed.
45887         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
45888         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
45889         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
45890         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45891         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
45892         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
45893         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
45894         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
45895         than worrying about sys/time.h.
45896         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45897         Don't bother worrying about TIME_WITH_SYS_TIME.
45898         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45899         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
45900         * m4/sys_time_h.m4: New file.
45901         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
45902         Don't include sys/time.h.  Return from main rather than exiting.
45903         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
45904         all uses changed.
45905         * modules/gethrxtime (Depends-on): Add sys_time.
45906         * modules/gettime (Depends-on): Likewise.
45907         * modules/gettimeofday (Depends-on): Likewise.
45908         * modules/nanosleep (Depends-on): Likewise.
45909         * modules/settime (Depends-on): Likewise.
45910         * modules/tempname (Depends-on): Likewise.
45911         * modules/utimens (Depends-on): Likewise.
45912         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
45913         (Include:) Change back to <sys/time.h>.
45914         (Maintainer:) Add self.
45915         * modules/sys_time: New file.
45916         * modules/tempname (Depends-on): Add gettimeofday.
45917         * tests/test-gettimeofday.c: Include <sys/time.h>
45918         rather than gettimeofday.h.
45919
45920 2007-01-17  Bruno Haible  <bruno@clisp.org>
45921
45922         * gnulib-tool (func_get_license): Revert last patch. Instead, let
45923         the license default to GPL.
45924         (func_create_testdir): Don't complain if a module is LGPL and its
45925         tests module depends on GPLed modules.
45926
45927 2007-01-17  Bruno Haible  <bruno@clisp.org>
45928
45929         * lib/gettimeofday.c (gettimeofday): Add code for the case
45930         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
45931         maximum possible value for tv->tv_usec, rather than the minimum one.
45932
45933 2005-10-08  Martin Lambers  <marlam@marlam.de>
45934 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45935 2007-01-16  Bruno Haible  <bruno@clisp.org>
45936
45937         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
45938         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
45939         gl_FUNC_GETTIMEOFDAY.
45940         (Include): Add gettimeofday.h.
45941         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
45942         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
45943         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
45944         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
45945         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
45946         * lib/gettimeofday.h: New file.
45947         * lib/gettimeofday.c: Include <sys/timeb.h>.
45948         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
45949         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45950         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
45951         fall back on time().
45952
45953         * tests/test-gettimeofday.c: New file.
45954         * modules/gettimeofday-tests: New file.
45955
45956 2007-01-16  Eric Blake  <ebb9@byu.net>
45957
45958         * modules/fnmatch (Depends-on): Depend on wchar.
45959         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
45960         * m4/fnmatch.m4: Likewise.
45961         * modules/mbchar (Makefile.am): Assume <wchar.h>.
45962         * m4/mbchar.m4: Likewise.
45963         * modules/mbswidth (Depends-on): Depend on wchar.
45964         * lib/mbswidth.c: Assume <wchar.h>.
45965         * m4/mbswidth.m4: Likewise.
45966         * modules/quotearg (Depends-on): Depend on wchar.
45967         * lib/quotearg.c: Assume <wchar.h>.
45968         * m4/quotearg.m4: Likewise.
45969         * modules/regex (Depends-on): Depend on wchar.
45970         * lib/regex_internal.h: Assume <wchar.h>.
45971         * m4/regex.m4: Likewise.
45972         * modules/stdint (Depends-on): Depend on wchar.
45973         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
45974         * m4/stdint.m4: Likewise.
45975         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
45976         * modules/strftime (Depends-on): Depend on wchar.
45977         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
45978         * modules/strtol (Depends-on): Depend on wchar.
45979         * lib/strtol.c: Assume <wchar.h>.
45980         * modules/wcwidth (Depends-on): Depend on wchar.
45981         * lib/wcwidth.h: Assume <wchar.h>.
45982         * m4/wcwidth.m4: Likewise.
45983
45984 2007-01-16  Bruno Haible  <bruno@clisp.org>
45985
45986         * modules/csharpexec-script: New, created from...
45987         * modules/csharpexec: ... this.
45988
45989 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45990
45991         * modules/javaexec-script: New, created from...
45992         * modules/javaexec: ... this.
45993
45994 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45995
45996         * modules/poll (Dependencies): Add sys_select.
45997
45998 2007-01-15  Jim Meyering  <jim@meyering.net>
45999
46000         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46001         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46002         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46003         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46004
46005 2007-01-15  Bruno Haible  <bruno@clisp.org>
46006
46007         * modules/striconveh: New file.
46008         * lib/striconveh.h: New file.
46009         * lib/striconveh.c: New file.
46010         * MODULES.html.sh (Internationalization functions): Add striconveh.
46011
46012         * modules/striconveh-tests: New file.
46013         * tests/test-striconveh.c: New file.
46014
46015 2007-01-15  Bruno Haible  <bruno@clisp.org>
46016
46017         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46018         not from GNU libiconv or GNU libc.
46019
46020 2007-01-15  Bruno Haible  <bruno@clisp.org>
46021
46022         * doc/gnulib-intro.texi (Copyright): Explain the different license
46023         terms for module descriptions, autoconf macros, tests, documentation.
46024
46025 2007-01-14  Bruno Haible  <bruno@clisp.org>
46026
46027         * modules/striconv-tests: New file.
46028         * tests/test-striconv.c: New file.
46029
46030 2007-01-14  Bruno Haible  <bruno@clisp.org>
46031
46032         * modules/iconv-tests: New file.
46033         * tests/test-iconv.c: New file.
46034
46035 2007-01-14  Bruno Haible  <bruno@clisp.org>
46036
46037         * gnulib-tool (func_get_license): For test modules, use the license of
46038         the main module.
46039
46040 2007-01-14  Bruno Haible  <bruno@clisp.org>
46041
46042         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46043         if iconv is found to exist.
46044
46045 2007-01-14  Bruno Haible  <bruno@clisp.org>
46046
46047         * modules/c-ctype-tests: New file.
46048         * tests/test-c-ctype.c: New file.
46049
46050 2007-01-14  Bruno Haible  <bruno@clisp.org>
46051
46052         * modules/binary-io-tests: New file.
46053         * tests/test-binary-io.sh: New file.
46054         * tests/test-binary-io.c: New file.
46055
46056 2007-01-14  Bruno Haible  <bruno@clisp.org>
46057
46058         * modules/array-oset-tests: New file.
46059         * tests/test-array_oset.c: New file.
46060
46061 2007-01-14  Bruno Haible  <bruno@clisp.org>
46062
46063         * modules/array-list-tests: New file.
46064         * tests/test-array_list.c: New file.
46065
46066 2007-01-14  Bruno Haible  <bruno@clisp.org>
46067
46068         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46069         and make.
46070         Reported by Simon Josefsson in
46071         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46072
46073 2007-01-14  Bruno Haible  <bruno@clisp.org>
46074
46075         * modules/allocsa-tests: New file.
46076         * tests/test-allocsa.c: New file.
46077
46078 2007-01-14  Bruno Haible  <bruno@clisp.org>
46079
46080         * modules/fchdir (Depends-on): Add absolute-header.
46081         * modules/unistd (Depends-on): Likewise.
46082
46083 2006-12-30  Bruno Haible  <bruno@clisp.org>
46084
46085         * modules/fchdir: New file.
46086         * modules/unistd (Files): Add lib/unistd_.h.
46087         (Makefile.am): Generate unistd.h from unistd_.h.
46088         * lib/fchdir.c: New file.
46089         * lib/dirent_.h: New file.
46090         * lib/unistd_.h: New file.
46091         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46092         * m4/fchdir.m4: New file.
46093         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46094         (gl_HEADER_UNISTD): Invoke it.
46095         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46096         function.
46097         * lib/backupfile.c (opendir, closedir): Undefine.
46098         * lib/chown.c (open, close): Undefine.
46099         * lib/clean-temp.c (open, close): Undefine.
46100         * lib/copy-file.c (open, close): Undefine.
46101         * lib/execute.c (open, close): Undefine.
46102         * lib/fsusage.c (open, close): Undefine.
46103         * lib/gc-gnulib.c (open, close): Undefine.
46104         * lib/getcwd.c (opendir, closedir): Undefine.
46105         * lib/glob.c (opendir, closedir): Undefine.
46106         * lib/javacomp.c (open, close): Undefine.
46107         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46108         * lib/openat-proc.c (open, close): Undefine.
46109         * lib/pagealign_alloc.c (open, close): Undefine.
46110         * lib/pipe.c (open, close): Undefine.
46111         * lib/progreloc.c (open, close): Undefine.
46112         * lib/savedir.c (opendir, closedir): Undefine.
46113         * lib/utime.c (open, close): Undefine.
46114         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46115
46116 2007-01-10  Bruno Haible  <bruno@clisp.org>
46117
46118         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46119
46120 2007-01-12  Eric Blake  <ebb9@byu.net>
46121
46122         Provide a robust <wchar.h>.  Further simplifications are now
46123         possible in other modules, but not included here.
46124         * modules/wchar: New module.
46125         * m4/wchar.m4: New file.
46126         * lib/wchar_.h: Likewise.
46127         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46128         of the new module.
46129         * MODULES.html.sh (Extended multibyte and wide character utilities):
46130         New section.
46131
46132 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46133
46134         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46135         to a reasonable default for memory allocation.
46136         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46137         file system that reports garbage st_size values for symlinks.
46138         Problem reported by Liyang Hu.
46139
46140 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46141
46142         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46143         Emacs .#* auto-save files).
46144
46145 2007-01-11  Bruno Haible  <bruno@clisp.org>
46146
46147         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46148         directory.
46149
46150 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46151
46152         Use @...@ consistently in lib/wctype_.h.
46153         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46154         on it being set to 1 or 0.
46155         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46156         go back to AC_SUBSTing it.
46157         * modules/wctype (Makefile.am): Undo previous change.
46158
46159 2007-01-10  Eric Blake  <ebb9@byu.net>
46160
46161         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46162         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46163         * modules/wctype (Makefile.am): Likewise.
46164         Reported by Chris McGuire.
46165
46166 2007-01-10  Jim Meyering  <jim@meyering.net>
46167
46168         fts.c: a small readability/maintainability improvement
46169         * lib/fts.c (fts_read): Make this code slightly more readable and
46170         maintainable by hoisting the "sp->fts_cur = p" assignments to
46171         immediately follow the statements that set P.  Derived from
46172         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46173
46174 2007-01-10  Eric Blake  <ebb9@byu.net>
46175
46176         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46177         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46179         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46180         Reported by Chris McGuire.
46181
46182 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46183
46184         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46185         in sed script.
46186
46187 2007-01-09  Bruno Haible  <bruno@clisp.org>
46188
46189         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46190         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46191         variables.
46192         (func_module): Use them.
46193
46194 2007-01-09  Bruno Haible  <bruno@clisp.org>
46195
46196         * modules/unistr/base: New file.
46197         * lib/unistr.h: New file.
46198
46199         * modules/unistr/u8-to-u16: New file.
46200         * lib/unistr/u8-to-u16.c: New file.
46201
46202         * modules/unistr/u8-to-u32: New file.
46203         * lib/unistr/u8-to-u32.c: New file.
46204
46205         * modules/unistr/u16-to-u8: New file.
46206         * lib/unistr/u16-to-u8.c: New file.
46207
46208         * modules/unistr/u16-to-u32: New file.
46209         * lib/unistr/u16-to-u32.c: New file.
46210
46211         * modules/unistr/u32-to-u8: New file.
46212         * lib/unistr/u32-to-u8.c: New file.
46213
46214         * modules/unistr/u32-to-u16: New file.
46215         * lib/unistr/u32-to-u16.c: New file.
46216
46217         * modules/unistr/u8-check: New file.
46218         * modules/unistr/u16-check: New file.
46219         * modules/unistr/u32-check: New file.
46220         * lib/unistr/u8-check.c: New file.
46221         * lib/unistr/u16-check.c: New file.
46222         * lib/unistr/u32-check.c: New file.
46223
46224         * modules/unistr/u8-chr: New file.
46225         * modules/unistr/u16-chr: New file.
46226         * modules/unistr/u32-chr: New file.
46227         * lib/unistr/u8-chr.c: New file.
46228         * lib/unistr/u16-chr.c: New file.
46229         * lib/unistr/u32-chr.c: New file.
46230
46231         * modules/unistr/u8-cmp: New file.
46232         * modules/unistr/u16-cmp: New file.
46233         * modules/unistr/u32-cmp: New file.
46234         * lib/unistr/u8-cmp.c: New file.
46235         * lib/unistr/u16-cmp.c: New file.
46236         * lib/unistr/u32-cmp.c: New file.
46237
46238         * modules/unistr/u8-cpy: New file.
46239         * modules/unistr/u16-cpy: New file.
46240         * modules/unistr/u32-cpy: New file.
46241         * lib/unistr/u8-cpy.c: New file.
46242         * lib/unistr/u16-cpy.c: New file.
46243         * lib/unistr/u32-cpy.c: New file.
46244         * lib/unistr/u-cpy.h: New file.
46245
46246         * modules/unistr/u8-cpy-alloc: New file.
46247         * modules/unistr/u16-cpy-alloc: New file.
46248         * modules/unistr/u32-cpy-alloc: New file.
46249         * lib/unistr/u8-cpy-alloc.c: New file.
46250         * lib/unistr/u16-cpy-alloc.c: New file.
46251         * lib/unistr/u32-cpy-alloc.c: New file.
46252         * lib/unistr/u-cpy-alloc.h: New file.
46253
46254         * modules/unistr/u8-endswith: New file.
46255         * modules/unistr/u16-endswith: New file.
46256         * modules/unistr/u32-endswith: New file.
46257         * lib/unistr/u8-endswith.c: New file.
46258         * lib/unistr/u16-endswith.c: New file.
46259         * lib/unistr/u32-endswith.c: New file.
46260         * lib/unistr/u-endswith.h: New file.
46261
46262         * modules/unistr/u8-mblen: New file.
46263         * modules/unistr/u16-mblen: New file.
46264         * modules/unistr/u32-mblen: New file.
46265         * lib/unistr/u8-mblen.c: New file.
46266         * lib/unistr/u16-mblen.c: New file.
46267         * lib/unistr/u32-mblen.c: New file.
46268
46269         * modules/unistr/u8-mbtouc: New file.
46270         * modules/unistr/u16-mbtouc: New file.
46271         * modules/unistr/u32-mbtouc: New file.
46272         * lib/unistr/u8-mbtouc.c: New file.
46273         * lib/unistr/u16-mbtouc.c: New file.
46274         * lib/unistr/u32-mbtouc.c: New file.
46275
46276         * modules/unistr/u8-mbtouc-safe: New file.
46277         * modules/unistr/u16-mbtouc-safe: New file.
46278         * modules/unistr/u32-mbtouc-safe: New file.
46279         * lib/unistr/u8-mbtouc-safe.c: New file.
46280         * lib/unistr/u16-mbtouc-safe.c: New file.
46281         * lib/unistr/u32-mbtouc-safe.c: New file.
46282
46283         * modules/unistr/u8-move: New file.
46284         * modules/unistr/u16-move: New file.
46285         * modules/unistr/u32-move: New file.
46286         * lib/unistr/u8-move.c: New file.
46287         * lib/unistr/u16-move.c: New file.
46288         * lib/unistr/u32-move.c: New file.
46289         * lib/unistr/u-move.h: New file.
46290
46291         * modules/unistr/u8-next: New file.
46292         * modules/unistr/u16-next: New file.
46293         * modules/unistr/u32-next: New file.
46294         * lib/unistr/u8-next.c: New file.
46295         * lib/unistr/u16-next.c: New file.
46296         * lib/unistr/u32-next.c: New file.
46297
46298         * modules/unistr/u8-prev: New file.
46299         * modules/unistr/u16-prev: New file.
46300         * modules/unistr/u32-prev: New file.
46301         * lib/unistr/u8-prev.c: New file.
46302         * lib/unistr/u16-prev.c: New file.
46303         * lib/unistr/u32-prev.c: New file.
46304
46305         * modules/unistr/u8-set: New file.
46306         * modules/unistr/u16-set: New file.
46307         * modules/unistr/u32-set: New file.
46308         * lib/unistr/u8-set.c: New file.
46309         * lib/unistr/u16-set.c: New file.
46310         * lib/unistr/u32-set.c: New file.
46311         * lib/unistr/u-set.h: New file.
46312
46313         * modules/unistr/u8-startswith: New file.
46314         * modules/unistr/u16-startswith: New file.
46315         * modules/unistr/u32-startswith: New file.
46316         * lib/unistr/u8-startswith.c: New file.
46317         * lib/unistr/u16-startswith.c: New file.
46318         * lib/unistr/u32-startswith.c: New file.
46319         * lib/unistr/u-startswith.h: New file.
46320
46321         * modules/unistr/u8-stpcpy: New file.
46322         * modules/unistr/u16-stpcpy: New file.
46323         * modules/unistr/u32-stpcpy: New file.
46324         * lib/unistr/u8-stpcpy.c: New file.
46325         * lib/unistr/u16-stpcpy.c: New file.
46326         * lib/unistr/u32-stpcpy.c: New file.
46327         * lib/unistr/u-stpcpy.h: New file.
46328
46329         * modules/unistr/u8-stpncpy: New file.
46330         * modules/unistr/u16-stpncpy: New file.
46331         * modules/unistr/u32-stpncpy: New file.
46332         * lib/unistr/u8-stpncpy.c: New file.
46333         * lib/unistr/u16-stpncpy.c: New file.
46334         * lib/unistr/u32-stpncpy.c: New file.
46335         * lib/unistr/u-stpncpy.h: New file.
46336
46337         * modules/unistr/u8-strcat: New file.
46338         * modules/unistr/u16-strcat: New file.
46339         * modules/unistr/u32-strcat: New file.
46340         * lib/unistr/u8-strcat.c: New file.
46341         * lib/unistr/u16-strcat.c: New file.
46342         * lib/unistr/u32-strcat.c: New file.
46343         * lib/unistr/u-strcat.h: New file.
46344
46345         * modules/unistr/u8-strchr: New file.
46346         * modules/unistr/u16-strchr: New file.
46347         * modules/unistr/u32-strchr: New file.
46348         * lib/unistr/u8-strchr.c: New file.
46349         * lib/unistr/u16-strchr.c: New file.
46350         * lib/unistr/u32-strchr.c: New file.
46351
46352         * modules/unistr/u8-strcmp: New file.
46353         * modules/unistr/u16-strcmp: New file.
46354         * modules/unistr/u32-strcmp: New file.
46355         * lib/unistr/u8-strcmp.c: New file.
46356         * lib/unistr/u16-strcmp.c: New file.
46357         * lib/unistr/u32-strcmp.c: New file.
46358
46359         * modules/unistr/u8-strcpy: New file.
46360         * modules/unistr/u16-strcpy: New file.
46361         * modules/unistr/u32-strcpy: New file.
46362         * lib/unistr/u8-strcpy.c: New file.
46363         * lib/unistr/u16-strcpy.c: New file.
46364         * lib/unistr/u32-strcpy.c: New file.
46365         * lib/unistr/u-strcpy.h: New file.
46366
46367         * modules/unistr/u8-strcspn: New file.
46368         * modules/unistr/u16-strcspn: New file.
46369         * modules/unistr/u32-strcspn: New file.
46370         * lib/unistr/u8-strcspn.c: New file.
46371         * lib/unistr/u16-strcspn.c: New file.
46372         * lib/unistr/u32-strcspn.c: New file.
46373         * lib/unistr/u-strcspn.h: New file.
46374
46375         * modules/unistr/u8-strdup: New file.
46376         * modules/unistr/u16-strdup: New file.
46377         * modules/unistr/u32-strdup: New file.
46378         * lib/unistr/u8-strdup.c: New file.
46379         * lib/unistr/u16-strdup.c: New file.
46380         * lib/unistr/u32-strdup.c: New file.
46381         * lib/unistr/u-strdup.h: New file.
46382
46383         * modules/unistr/u8-strlen: New file.
46384         * modules/unistr/u16-strlen: New file.
46385         * modules/unistr/u32-strlen: New file.
46386         * lib/unistr/u8-strlen.c: New file.
46387         * lib/unistr/u16-strlen.c: New file.
46388         * lib/unistr/u32-strlen.c: New file.
46389         * lib/unistr/u-strlen.h: New file.
46390
46391         * modules/unistr/u8-strmblen: New file.
46392         * modules/unistr/u16-strmblen: New file.
46393         * modules/unistr/u32-strmblen: New file.
46394         * lib/unistr/u8-strmblen.c: New file.
46395         * lib/unistr/u16-strmblen.c: New file.
46396         * lib/unistr/u32-strmblen.c: New file.
46397
46398         * modules/unistr/u8-strmbtouc: New file.
46399         * modules/unistr/u16-strmbtouc: New file.
46400         * modules/unistr/u32-strmbtouc: New file.
46401         * lib/unistr/u8-strmbtouc.c: New file.
46402         * lib/unistr/u16-strmbtouc.c: New file.
46403         * lib/unistr/u32-strmbtouc.c: New file.
46404
46405         * modules/unistr/u8-strncat: New file.
46406         * modules/unistr/u16-strncat: New file.
46407         * modules/unistr/u32-strncat: New file.
46408         * lib/unistr/u8-strncat.c: New file.
46409         * lib/unistr/u16-strncat.c: New file.
46410         * lib/unistr/u32-strncat.c: New file.
46411         * lib/unistr/u-strncat.h: New file.
46412
46413         * modules/unistr/u8-strncmp: New file.
46414         * modules/unistr/u16-strncmp: New file.
46415         * modules/unistr/u32-strncmp: New file.
46416         * lib/unistr/u8-strncmp.c: New file.
46417         * lib/unistr/u16-strncmp.c: New file.
46418         * lib/unistr/u32-strncmp.c: New file.
46419
46420         * modules/unistr/u8-strncpy: New file.
46421         * modules/unistr/u16-strncpy: New file.
46422         * modules/unistr/u32-strncpy: New file.
46423         * lib/unistr/u8-strncpy.c: New file.
46424         * lib/unistr/u16-strncpy.c: New file.
46425         * lib/unistr/u32-strncpy.c: New file.
46426         * lib/unistr/u-strncpy.h: New file.
46427
46428         * modules/unistr/u8-strnlen: New file.
46429         * modules/unistr/u16-strnlen: New file.
46430         * modules/unistr/u32-strnlen: New file.
46431         * lib/unistr/u8-strnlen.c: New file.
46432         * lib/unistr/u16-strnlen.c: New file.
46433         * lib/unistr/u32-strnlen.c: New file.
46434         * lib/unistr/u-strnlen.h: New file.
46435
46436         * modules/unistr/u8-strpbrk: New file.
46437         * modules/unistr/u16-strpbrk: New file.
46438         * modules/unistr/u32-strpbrk: New file.
46439         * lib/unistr/u8-strpbrk.c: New file.
46440         * lib/unistr/u16-strpbrk.c: New file.
46441         * lib/unistr/u32-strpbrk.c: New file.
46442         * lib/unistr/u-strpbrk.h: New file.
46443
46444         * modules/unistr/u8-strrchr: New file.
46445         * modules/unistr/u16-strrchr: New file.
46446         * modules/unistr/u32-strrchr: New file.
46447         * lib/unistr/u8-strrchr.c: New file.
46448         * lib/unistr/u16-strrchr.c: New file.
46449         * lib/unistr/u32-strrchr.c: New file.
46450
46451         * modules/unistr/u8-strspn: New file.
46452         * modules/unistr/u16-strspn: New file.
46453         * modules/unistr/u32-strspn: New file.
46454         * lib/unistr/u8-strspn.c: New file.
46455         * lib/unistr/u16-strspn.c: New file.
46456         * lib/unistr/u32-strspn.c: New file.
46457         * lib/unistr/u-strspn.h: New file.
46458
46459         * modules/unistr/u8-strstr: New file.
46460         * modules/unistr/u16-strstr: New file.
46461         * modules/unistr/u32-strstr: New file.
46462         * lib/unistr/u8-strstr.c: New file.
46463         * lib/unistr/u16-strstr.c: New file.
46464         * lib/unistr/u32-strstr.c: New file.
46465         * lib/unistr/u-strstr.h: New file.
46466
46467         * modules/unistr/u8-strtok: New file.
46468         * modules/unistr/u16-strtok: New file.
46469         * modules/unistr/u32-strtok: New file.
46470         * lib/unistr/u8-strtok.c: New file.
46471         * lib/unistr/u16-strtok.c: New file.
46472         * lib/unistr/u32-strtok.c: New file.
46473         * lib/unistr/u-strtok.h: New file.
46474
46475         * modules/unistr/u8-uctomb: New file.
46476         * modules/unistr/u16-uctomb: New file.
46477         * modules/unistr/u32-uctomb: New file.
46478         * lib/unistr/u8-uctomb.c: New file.
46479         * lib/unistr/u16-uctomb.c: New file.
46480         * lib/unistr/u32-uctomb.c: New file.
46481
46482         * MODULES.html.sh (Unicode string functions): Add the new modules.
46483
46484 2007-01-08  Bruno Haible  <bruno@clisp.org>
46485
46486         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
46487         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
46488         subdirectories.
46489
46490 2007-01-08  Karl Berry  <karl@gnu.org>
46491
46492         * doc/error.texi: mention that main() fns must set program_name
46493         when progname is used.
46494
46495 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
46496
46497         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
46498         WCTYPE_H is empty, for the benefit of builds from non-distclean
46499         directories.  Problem reported by Eric Blake in
46500         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
46501
46502 2007-01-08  Bruno Haible  <bruno@clisp.org>
46503
46504         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
46505         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
46506         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
46507         PROVIDE_CANONICALIZE_FILENAME_MODE.
46508         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
46509
46510 2007-01-08  Bruno Haible  <bruno@clisp.org>
46511
46512         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
46513         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
46514         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
46515         * lib/fts.c: Likewise.
46516         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
46517
46518 2006-12-25  Bruno Haible  <bruno@clisp.org>
46519
46520         * modules/utf8-ucs4-safe: New file.
46521         * lib/utf8-ucs4-safe.h: New file.
46522         * lib/unistr/utf8-ucs4-safe.c: New file.
46523
46524         * modules/utf16-ucs4-safe: New file.
46525         * lib/utf16-ucs4-safe.h: New file.
46526         * lib/unistr/utf16-ucs4-safe.c: New file.
46527
46528         * MODULES.html.sh (Unicode string functions): Add the new modules.
46529
46530 2007-01-08  Bruno Haible  <bruno@clisp.org>
46531
46532         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
46533         (Depends-on): Add unitypes.
46534         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46535         (u8_mbtouc_aux): Move out to separate file.
46536         (u8_mbtouc): Use ucs4_t, uint8_t types.
46537         * lib/unistr/utf8-ucs4.c: New file.
46538
46539         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
46540         (Depends-on): Add unitypes.
46541         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46542         (u16_mbtouc_aux): Move out to separate file.
46543         (u16_mbtouc): Use ucs4_t, uint16_t types.
46544         * lib/unistr/utf16-ucs4.c: New file.
46545
46546         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
46547         (Depends-on): Add unitypes.
46548         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
46549         (u8_uctomb_aux): Move out to separate file.
46550         (u8_uctomb): Use ucs4_t, uint8_t types.
46551         * lib/unistr/ucs4-utf8.c: New file.
46552
46553         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
46554         (Depends-on): Add unitypes.
46555         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
46556         (u16_uctomb_aux): Move out to separate file.
46557         (u16_uctomb): Use ucs4_t, uint16_t types.
46558         * lib/unistr/ucs4-utf16.c: New file.
46559
46560 2006-12-25  Bruno Haible  <bruno@clisp.org>
46561
46562         * modules/unitypes: New file.
46563         * lib/unitypes.h: New file.
46564         * MODULES.html.sh (func_all_modules): New section "Unicode string
46565         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
46566         this section. Add unitypes.
46567
46568 2007-01-08  Bruno Haible  <bruno@clisp.org>
46569
46570         Avoid variable names that conflict with those from libtool.
46571         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
46572         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
46573         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
46574         library_names_spec to acl_library_names_spec, hardcode_* to
46575         acl_hardcode_*.
46576         Reported by Ralf Wildenhues.
46577
46578 2007-01-08  Bruno Haible  <bruno@clisp.org>
46579
46580         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
46581         definition.
46582         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
46583         definition.
46584         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
46585         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
46586         definition.
46587         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
46588         definition.
46589         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
46590         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
46591         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
46592         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
46593         definition.
46594         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
46595         definition.
46596         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
46597         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
46598         GC_USE_<algorithm>.
46599         * lib/gc-libgcrypt.c: Likewise.
46600         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
46601         * modules/gc-arctwo (configure.ac): Likewise.
46602         * modules/gc-des (configure.ac): Likewise.
46603         * modules/gc-hmac-md5 (configure.ac): Likewise.
46604         * modules/gc-hmac-sha1 (configure.ac): Likewise.
46605         * modules/gc-md2 (configure.ac): Likewise.
46606         * modules/gc-md4 (configure.ac): Likewise.
46607         * modules/gc-md5 (configure.ac): Likewise.
46608         * modules/gc-random (configure.ac): Likewise.
46609         * modules/gc-rijndael (configure.ac): Likewise.
46610         * modules/gc-sha1 (configure.ac): Likewise.
46611
46612 2007-01-08  Bruno Haible  <bruno@clisp.org>
46613
46614         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
46615         macro definition.
46616         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
46617         definition.
46618         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
46619         definition.
46620         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
46621         * modules/fcntl-safer (configure.ac): Likewise.
46622         * modules/fopen-safer (configure.ac): Likewise.
46623         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
46624         GNULIB_FWRITEERROR macro definition.
46625
46626 2007-01-08  Bruno Haible  <bruno@clisp.org>
46627
46628         * m4/gnulib-common.m4: New file.
46629         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
46630         (func_get_filelist): Add m4/gnulib-common.m4.
46631
46632 2007-01-08  Bruno Haible  <bruno@clisp.org>
46633
46634         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
46635         command.
46636
46637 2007-01-08  Jim Meyering  <jim@meyering.net>
46638
46639         Use a more robust test for a "can't happen" condition.
46640         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
46641         narrowed the st_size value.  Presuming the "can't happen" condition
46642         is true, that narrowing could conceivably convert an invalid st_size
46643         value into a valid one.  Instead, use a change based on Matthew
46644         Woehlke's original patch.
46645
46646         Slight readability improvement: use an assert-like macro
46647         in place of literal "abort ()" uses.
46648         * lib/fts.c (fts_assert): Define.
46649         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
46650         Use this macro instead of a bare 'abort'.
46651
46652 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
46653
46654         Don't worry about using IRIX 5.3's wctype.h broken definitions;
46655         simply work around them.
46656         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
46657         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
46658         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
46659         declaring.
46660         Don't bother to define as macros, since the standard doesn't require it.
46661         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
46662         longer worry about IRIX 5.3.
46663         (HAVE_WCTYPE_CTMP_BUG): Remove.
46664
46665 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46666
46667         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
46668         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
46669         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46670         Problems reported by Georg Schwarz for IRIX 5.3.
46671
46672         * gnulib-tool (autoconf_minversion): Take the maximum version number
46673         found, not the minimum.  Problem reported by James Youngman.
46674
46675 2007-01-03  Karl Berry  <karl@gnu.org>
46676
46677         * doc/error.texi: new file, explaining interaction with progname.
46678         * doc/gnulib.texi: include it.  Update copyright.
46679
46680 2007-01-03  Simon Josefsson  <simon@josefsson.org>
46681
46682         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
46683         AC_CANONICAL_HOST, to improve autobuild outputs.
46684
46685 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
46686             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46687
46688         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
46689         sockets, server sockets, and other file descriptors.  Count errors
46690         to compute the return value.  Reorder the code a bit to be easier
46691         to follow.  Don't set event bits that were not requested (except
46692         POLLERR and POLLHUP).
46693
46694 2007-01-01  Bruno Haible  <bruno@clisp.org>
46695
46696         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
46697
46698 2007-01-03  Jim Meyering  <jim@meyering.net>
46699
46700         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
46701
46702 2007-01-02  Bruno Haible  <bruno@clisp.org>
46703
46704         * modules/settime (Include): Require timespec.h.
46705         * modules/nanosleep (Include): Likewise.
46706
46707 2007-01-01  Bruno Haible  <bruno@clisp.org>
46708
46709         * gnulib-tool (func_emit_copyright_notice): Bump year.
46710         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
46711
46712 2007-01-01  Bruno Haible  <bruno@clisp.org>
46713
46714         Improve support for OpenBSD.
46715         * build-aux/config.rpath (libname_spec): Export.
46716         (library_names_spec): New variable. Export.
46717         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
46718         library_names_spec from the config.rpath output. Locate shared library
46719         through the name pattern in library_names_spec.
46720
46721 2007-01-01  Eric Blake  <ebb9@byu.net>
46722
46723         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
46724
46725 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
46726
46727         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
46728         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
46729         assume the C locale, and avoid an "eval" that could cause trouble.
46730         Problem with SORT reported by Bob Proulx.
46731
46732         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
46733         Define.  Trivial patch from Henning Nielsen Lund, originally
46734         sent to bug-grep@gnu.org today.
46735
46736 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46737
46738         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
46739         struct stat.  Problem reported by Henning Nielsen Lund.
46740         * lib/acl.c: Include acl.h first, to check interface.  Don't
46741         bother to include sys/types.h and sys/stat.h again.
46742
46743 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
46744
46745         Import the following change from libc; problem reported by
46746         Sven Verdoolaege.
46747
46748         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
46749
46750         [BZ #1373]
46751         * lib/argp.h: Remove __NTH for __argp_usage inline function.
46752
46753 2006-12-28  Jim Meyering  <jim@meyering.net>
46754
46755         * build-aux/announce-gen: Do not assume that the package
46756         builds any of tar.gz, tar.bz2, and .xdelta files.
46757         Suggestion from Simon Josefsson.
46758
46759 2006-12-28  Simon Josefsson  <simon@josefsson.org>
46760
46761         * modules/announce-gen: New file.
46762
46763 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46764
46765         * lib/mbchar.h: Just include <wctype.h>; the wctype module
46766         handles its gotchas now.
46767         * lib/mbswidth.c: Likewise.
46768         * lib/wcwidth.h: Likewise.
46769         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
46770         and iswcntrl; the wctype module does this stuff now.
46771         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46773         * modules/mbchar (Depends-on): Add wctype.
46774         * modules/mbswidth (Depends-on): Likewise.
46775         * modules/wcwidth (Depends-on): Likewise.
46776
46777 2006-12-27  Eric Blake  <ebb9@byu.net>
46778
46779         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
46780         module uses more than what <wctype.h> is required to provide.
46781
46782 2006-12-26  Eric Blake  <ebb9@byu.net>
46783
46784         * gnulib-tool (sed_extract_prog): Avoid space-tab.
46785
46786 2006-12-26  Eric Blake  <ebb9@byu.net>
46787
46788         * modules/absolute-header: New module.
46789         * modules/fcntl (Depends-on): Depend on it.
46790         * modules/inttypes (Depends-on): Likewise.
46791         * modules/stdint (Depends-on): Likewise.
46792         * modules/sys_stat (Depends-on): Likewise.
46793         * modules/wctype (Depends-on): Likewise.
46794         * MODULES.html.sh (Support for building libraries and
46795         executables): Document it.
46796
46797 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46798
46799         * gnulib-tool (SED): Remove, undoing previous change.
46800         The problem was that it broke coreutils on Solaris, because
46801         "sed --posix" leaked into a makefile.
46802         (sed): New alias, if 'alias' and GNU sed.
46803
46804 2006-12-24  Jim Meyering  <jim@meyering.net>
46805
46806         Work around an fchownat bug in glibc-2.4:
46807         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
46808         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
46809         in spite of the -P option.
46810         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
46811         New macros.
46812         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
46813         * modules/openat (Files): Add lib/fchownat.c.
46814         * lib/openat.c (fchownat): Don't define here.  Move to...
46815         * lib/fchownat.c: ...this new file.
46816
46817 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46818
46819         Fix bug reported by Bruno Haible in
46820         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
46821         where quotearg.c didn't compile on Mac OS X 10.2 because it
46822         lacks <wchar.h> and wint_t.
46823         * lib/wctype_.h (__wctype_wint_t): New type.
46824         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
46825         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
46826         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
46827         Arg is now of type __wctype_wint_t, not wint_t.
46828         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
46829         substitute HAVE_WINT_T.
46830         * modules/wctype (Files): Add m4/wint_t.m4.
46831         (wctype.h): Substitute HAVE_WINT_T.
46832
46833 2006-12-23  Bruno Haible  <bruno@clisp.org>
46834
46835         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
46836
46837 2006-12-23  Bruno Haible  <bruno@clisp.org>
46838
46839         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
46840         S_ISLNK.
46841         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
46842         mingw.
46843
46844 2006-12-22  Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/copy-file.c: Include acl.h.
46847         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
46848         Close the file descriptors only after being done with copy_acl.
46849         * modules/copy-file (Depends-on): Add acl.
46850
46851 2006-12-22  Bruno Haible  <bruno@clisp.org>
46852
46853         * gnulib-tool (SED): New variable.
46854         Use $SED instead of sed everywhere.
46855
46856 2006-12-22  Bruno Haible  <bruno@clisp.org>
46857
46858         * modules/no-c++: New file.
46859         * m4/no-c++.m4: New file.
46860         * MODULES.html.sh (Support for building libraries and executables):
46861         Add no-c++.
46862
46863 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46864
46865         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46866         Include <limits.h>, and use its INT_MAX to rewrite the
46867         j loop so that it does not overflow 'int'.  Problem reported by
46868         Ralf Wildenhues in
46869         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
46870         Play it safe by shifting left by 1 rather than multiplying by 2,
46871         as GCC is less likely to optimize this away when the value
46872         is signed (when it assumes overflow leads to undefined behavior).
46873         Also, don't assume time_t uses two's complement.
46874
46875 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46876
46877         * MODULES.html.sh: New module wctype.
46878         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
46879         * lib/fnmatch.c: Don't bother to include <wchar.h> before
46880         <wctype.h>, since the new wctype module should fix this.
46881         * lib/quotearg.c: Include <wctype.h> unconditionally, since
46882         the wctype module should arrange for it.
46883         * lib/regex_internal.h: Likewise.
46884         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
46885         since the wctype module should handle this now.
46886         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
46887         * modules/fnmatch (Depends-on): Add wctype.
46888         * modules/quotearg (Depends-on): Likewise.
46889         * modules/regex (Depends-on): Likewise.
46890
46891 2006-12-19  Bruno Haible  <bruno@clisp.org>
46892
46893         * lib/strdup.h [C++]: Wrap definitions in extern "C".
46894         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
46895
46896 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46897
46898         * modules/savewd (Depends-on): Fix dependency on fcntl.
46899
46900 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46901
46902         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
46903         conforms to C99, rather than relying on the user's environment
46904         setting of STDINT_H.
46905
46906 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46907         and Eric Blake  <ebb9@byu.net>
46908
46909         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
46910         This is more consistent with the other defines here.
46911         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
46912         Port to z/OS.  Problem reported by Paul Gilmartin.
46913         Change local vars to use gl_ prefix rather than ac_.
46914         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
46915         with other defines.
46916         * modules/double-slash-root: New module.
46917         * modules/dirname (Files): Remove m4/double-slash-root.m4.
46918         (Depends-on): Add double-slash-root.
46919         * MODULES.html.sh (File system functions): Mention new module.
46920
46921 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
46922
46923         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
46924         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
46925         This is for the benefit of gzip, which doesn't do i18n.
46926
46927 2006-12-12  Jim Meyering  <jim@meyering.net>
46928
46929         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
46930         Reported by Andreas Schwab <schwab@suse.de>.
46931
46932 2006-12-12  Bruno Haible  <bruno@clisp.org>
46933
46934         Merge these changes.
46935         2006-09-05  Bruno Haible  <bruno@clisp.org>
46936         * lib/iconvme.c (iconv_string): No need to save and restore errno when
46937         iconv_alloc succeeded.
46938         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
46939         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
46940         test for " && dest " at the end - dest is always != NULL there. Call
46941         iconv with 4xNULL arguments initially, to reset the state. Call iconv
46942         with 2xNULL arguments, also to flush the state storage. Handle the
46943         IRIX iconv behaviour. Realloc the final result, to throw away unused
46944         memory.
46945
46946 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
46947
46948         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
46949         and fchmodat unconditionally, since glibc 2.4 has them.
46950         Problem reported by Arkadiusz Miskiewicz.
46951
46952 2006-12-10  Bruno Haible  <bruno@clisp.org>
46953
46954         * gnulib-tool (func_import): Show the include files only for those
46955         modules that are copied and specified.
46956         Reported by Karl Berry.
46957
46958 2006-12-08  Jim Meyering  <jim@meyering.net>
46959
46960         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
46961         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
46962
46963         * build-aux/announce-gen: Add two new options, both optional:
46964         --bootstrap-tools=TOOL_LIST
46965               a comma-separated list of tools, e.g.,
46966               autoconf,automake,bison,gnulib
46967         --gnulib-snapshot-date=DATE
46968               if gnulib is in the bootstrap tool list,
46969               then report this as the snapshot date.
46970               If not specified, use the current date/time.
46971               If you specify a date here, be sure it's UTC.
46972
46973 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46974
46975         * tests/test-argp-2.sh: Fix test to match actual output.
46976         (func_compare): Fix sed script to be portable.
46977
46978 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
46979
46980         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
46981         workaround for this case.  It is not autoconfigured now; offhand
46982         it's hard to see how to autoconfigure it.
46983
46984 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46985
46986         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
46987         a directory that is about to be chowned.  Such a directory's
46988         initial file permissions should permit the owner only and this
46989         should not be changed until after the chown, since the group and
46990         other bits would be incorrect if they granted permission before
46991         the chown.
46992
46993         Fix porting problem for iswctype reported by Georg Schwarz in:
46994         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
46995         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
46996         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
46997         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
46998         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46999
47000 2006-12-03  Jim Meyering  <jim@meyering.net>
47001
47002         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47003         p->fts_statp may not yet be defined.
47004         (fts_read): Instead, set it in the caller, once p->fts_statp is
47005         sure to be defined, and corresponds to a top-level directory.
47006         This bug made du -x fail.  Here's the coreutils test case:
47007         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47008         Reported by Mike Frysinger.
47009
47010 2006-12-01  Jim Meyering  <jim@meyering.net>
47011
47012         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47013         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47014         Reported by Simon Josefsson.
47015
47016 2006-11-30  Jim Meyering  <jim@meyering.net>
47017
47018         * m4/warning.m4: Use the all-permissive copyright notice
47019         recommended by RMS (rather than LGPL).
47020         * m4/vararrays.m4: Likewise.
47021         * m4/flexmember.m4: Likewise.
47022
47023 2006-11-29  Bruno Haible  <bruno@clisp.org>
47024
47025         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47026         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47027         using +=.
47028         Reported by Simon Josefsson <simon@josefsson.org>.
47029
47030 2006-11-28  James Youngman <jay@gnu.org>
47031
47032         * README: Advise users that they might find the bug-gnulib@gnu.org
47033         and autotools-announce@gnu.org mailing lists useful.
47034
47035 2006-11-28  Bruno Haible  <bruno@clisp.org>
47036
47037         * m4/ptrdiff_max.m4: Remove file.
47038
47039 2006-11-21  Bruno Haible  <bruno@clisp.org>
47040
47041         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47042         _AC_COMPUTE_INT.
47043         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47044         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47045         _AC_COMPUTE_INT.
47046         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47047         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47048         _AC_COMPUTE_INT.
47049         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47050
47051 2006-11-28  Jim Meyering  <jim@meyering.net>
47052
47053         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47054         warning from "gcc -Wshadow" about shadowing the builtin.
47055
47056 2006-11-27  Bruno Haible  <bruno@clisp.org>
47057
47058         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47059         _AC_COMPUTE_INT.
47060         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47061
47062 2006-11-27  Bruno Haible  <bruno@clisp.org>
47063             Paul Eggert  <eggert@cs.ucla.edu>
47064
47065         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47066
47067 2006-11-26  Bruno Haible  <bruno@clisp.org>
47068
47069         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47070         noinst_LTLIBRARIES.
47071
47072 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47073             Bruno Haible  <bruno@clisp.org>
47074
47075         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47076         if compiling with "gcc -ansi".
47077
47078 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47079
47080         Fix some incompatibilities with gcc -ansi -pedantic.
47081         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47082         if compiling pedantically with GCC, unless it's C99 or later.
47083         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47084         it mishandles gcc -ansi -pedantic as well.
47085         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47086         if gcc -pedantic.
47087         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47088         initializers for struct if -pedantic, unless it's C99 or later.
47089
47090 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47091
47092         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47093         Don't close an fd more than once. Identical atimes indicate
47094         success, not failure.
47095
47096 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47097
47098         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47099
47100 2006-11-23  Jim Meyering  <jim@meyering.net>
47101
47102         * build-aux/announce-gen: New file.  From coreutils.
47103
47104 2006-11-22  Jim Meyering  <jim@meyering.net>
47105
47106         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47107         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47108         (fts_read): Use a temporary to narrow the overused st_size member
47109         before using it in a switch statement.  Reported by Matthew Woehlke.
47110
47111         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47112         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47113
47114 2006-11-20  Bruno Haible  <bruno@clisp.org>
47115
47116         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47117         changequote instead of pairs of brackets.
47118         Reported by Andreas Schwab <schwab@suse.de>.
47119
47120 2006-11-21  Jim Meyering  <jim@meyering.net>
47121
47122         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47123         so as to remain compatible with older compilers.
47124         Patch from Michael Deutschmann.
47125
47126 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47127
47128         * MODULES.html.sh (File system functions): Add openat.
47129
47130         * lib/openat.h (rpl_fstatat): New macro, if
47131         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47132         (fstatat): Define to rpl_fstatat under the same conditions,
47133         unless COMPILING_FSTATAT.
47134         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47135         seems to have the bug.
47136         * lib/fstatat.c: New file.
47137         * modules/openat (Files): Add it.
47138
47139 2006-11-20  Bruno Haible  <bruno@clisp.org>
47140
47141         * Makefile: New file.
47142
47143 2006-11-20  Jim Meyering  <jim@meyering.net>
47144
47145         The beginnings of syntax-related checks for gnulib.
47146         * lib/Makefile: New file.
47147         * lib/t-idcache: New script.  Ensure that the two halves of
47148         idcache.c stay in sync.
47149
47150         * lib/idcache.c: Adjust comments in user- and group- portions to
47151         be more accurate, and to be consistent with one another.
47152
47153 2006-11-20  Jim Meyering  <jim@meyering.net>
47154
47155         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47156         continue using the flexible array member (thus, this module performs
47157         half as many malloc calls), with the addition that...
47158         (getgroup, getuser): Consistently record a non-match via an empty
47159         "name" string, and map an empty string match to a NULL return value.
47160         * modules/idcache (Depends-on): Re-add flexmember.
47161
47162         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47163         (getuidbyname, getgroup, getgidbyname): Likewise.
47164
47165         Use cleaner syntax: NULL rather than 0.
47166         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47167
47168 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47169
47170         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47171         It mishandled the case where the group was missing.
47172         Problem reported by Greg Schafer.
47173         * modules/idcache: Likewise.
47174
47175 2006-11-18  Jim Meyering  <jim@meyering.net>
47176
47177         * check-module (%exempt_header): Add exception for some
47178         conditionally-included headers.
47179
47180         * modules/i-ring (Depends-on): Add verify.
47181         (License): Change to LGPL.
47182
47183 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47184
47185         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47186         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47187         and inttostr.h.  Use snprintf rather than uinttostr, so that
47188         LGPLed code doesn't depend on GPLed.
47189
47190 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47191
47192         * modules/inline (License): Change from GPL to LGPL.
47193
47194 2006-11-17  Jim Meyering  <jim@meyering.net>
47195
47196         * modules/d-type (License): Switch to LGPL.
47197
47198 2006-11-15  Bruno Haible  <bruno@clisp.org>
47199
47200         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47201
47202 2006-11-15  Eric Blake  <ebb9@byu.net>
47203
47204         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47205         the module dependency.
47206
47207 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47208             Bruno Haible  <bruno@clisp.org>
47209
47210         * gnulib-tool (func_create_testdir): Add license consistency check.
47211
47212 2006-11-15  Eric Blake  <ebb9@byu.net>
47213
47214         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47215         random "(cached)" in configure output.
47216
47217 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47218
47219         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47220         test for conforming inttypes.h is both announced and cached.
47221
47222         * MODULES.html.sh (seen_modules, seen_files): New variables.
47223         (func_module): Rewrite to use a few less gnulib-tool and sed
47224         invocations.  Avoid a couple of quadratic algorithms for ...
47225         (missed_modules, missed_files): ... these, with ...
47226         (func_append, func_tmpdir): ... these new functions, from
47227         gnulib-tool.  Analogously, install traps for cleanup.
47228
47229         * tests/test-gc.c (main): Remove unused variables.
47230         * tests/test-read-file.c: Include stdlib.h, for 'free'.
47231
47232 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
47233
47234         * modules/inttostr (License): Change to LGPL.
47235
47236 2006-11-14  Eric Blake  <ebb9@byu.net>
47237
47238         * modules/tempname (License): Change to LGPL.
47239
47240 2006-11-14  Eric Blake  <ebb9@byu.net>
47241
47242         * doc/functions.texi (Function Portability): *printf functions on
47243         Cygwin now understand all POSIX size specifiers.
47244
47245 2006-11-14  Bruno Haible  <bruno@clisp.org>
47246
47247         * modules/c-ctype (License): Change to LGPL.
47248
47249 2006-11-12  Bruno Haible  <bruno@clisp.org>
47250
47251         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47252         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
47253         for GNOME libraries, for which the include files are installed in
47254         subdirectories of $prefix/include.
47255
47256 2006-11-12  Bruno Haible  <bruno@clisp.org>
47257
47258         * m4/lib-link.m4: Require at least autoconf-2.54.
47259         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
47260         name to underscores for the --with option.
47261
47262 2006-11-13  Bruno Haible  <bruno@clisp.org>
47263
47264         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47265         the tests directory.
47266         Reported by Ralf Wildenhues.
47267
47268 2006-11-13  Bruno Haible  <bruno@clisp.org>
47269
47270         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47271         (func_emit_initmacro_end): Undo the override here.
47272         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47273         Works around the famous automake error in coreutils.
47274
47275 2006-11-13  Eric Blake  <ebb9@byu.net>
47276
47277         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47278         element, not its node.
47279
47280 2006-11-12  Bruno Haible  <bruno@clisp.org>
47281
47282         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47283         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47284
47285 2006-11-12  Bruno Haible  <bruno@clisp.org>
47286
47287         * gnulib-tool: New option --local-symlink.
47288         (func_usage): Document it.
47289         (lsymbolic): New variable.
47290         (func_import, func_create_testdir): If --symlink was not specified,
47291         test whether --local-symlink was specified and the file comes from
47292         the local_gnulib_dir.
47293
47294 2006-11-12  Bruno Haible  <bruno@clisp.org>
47295
47296         * gnulib-tool (func_ln): New function.
47297         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47298
47299 2006-11-12  Bruno Haible  <bruno@clisp.org>
47300
47301         Finish support for source files in subdirectories.
47302         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47303         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47304         AUTOMAKE_OPTIONS.
47305         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47306
47307 2006-11-12  Bruno Haible  <bruno@clisp.org>
47308
47309         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47310         EXTRA_lib_SOURCES augmentation.
47311         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47312
47313 2006-11-12  Jim Meyering  <jim@meyering.net>
47314
47315         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47316         file descriptors.  This also averts a failure on systems with
47317         native openat support when a traversed directory lacks "x" access.
47318         * lib/fts_.h: Include "i-ring.h"
47319         (struct FTS) [fts_fd_ring]: New member.
47320         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47321         (FCHDIR): Add parentheses.
47322         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47323         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47324         When descending, rather than simply closing the previous
47325         fts_cwd_fd value, push that file descriptor onto the ring.
47326         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47327         (fts_open): Initialize the new fd_ring member.
47328         (fts_close): Clear the ring.
47329         (fts_safe_changedir): When possible, use our new fd_ring to skip
47330         the diropen and fstat and dev/ino comparison that would normally
47331         accompany a virtual `chdir ("..")'.
47332
47333         * modules/fts (Depends-on): Add i-ring.
47334         * modules/i-ring: New module.
47335         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47336         * m4/i-ring.m4: New file.
47337
47338 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47339
47340         * gnulib-tool (func_create_testdir): Fix replacement of
47341         `build-aux' in configure.ac.  Run autotools in gltests
47342         subdirectory.
47343         (func_create_testdir, func_create_megatestdir, test): There is
47344         no need for '--force' in most autotool invocations in a new
47345         tree.  Actually fail the whole test if any of the tools, or the
47346         configure or make stages fail.
47347
47348         Sync from Automake.
47349         * build-aux/gnupload: Revert last change.  Add pointer to upload
47350         instructions of the GNU Maintenance Instructions.
47351         Suggestion by Karl Berry.
47352
47353 2006-11-10  Jim Meyering  <jim@meyering.net>
47354
47355         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47356
47357 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47358
47359         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47360         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47361         (bind_textdomain_codeset) [! ENABLE_NLS]:
47362         Evaluate all the arguments.  That way, callers get compatible behavior
47363         if the arguments have side effects.  Also, it avoids some GCC
47364         diagnostics in some cases; Joel E. Denny reported problems when Bison
47365         was configured with --enable-gcc-warnigs.
47366
47367 2006-11-10  Jim Meyering  <jim@meyering.net>
47368
47369         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47370         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47371         account.
47372
47373 2006-11-10  Jim Meyering  <jim@meyering.net>
47374
47375         * modules/inline: New file/module.
47376         * modules/xalloc (Files): Remove m4/inline.m4.
47377         (Depends-on): Add inline, instead.
47378         * modules/oset: Likewise.
47379         * modules/list: Likewise.
47380
47381 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47382
47383         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47384         Problem reported by Matthew Woehlke.
47385
47386 2006-11-09  Bruno Haible  <bruno@clisp.org>
47387
47388         * lib/tempname.c (gen_tempname): Remove variant that invokes
47389         __gen_tempname.
47390         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
47391         __gen_tempname.
47392
47393 2006-11-08  Bruno Haible  <bruno@clisp.org>
47394
47395         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
47396         to 'yes' instead of 'cross-compiling'.
47397
47398 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
47399
47400         * lib/quotearg.h (quotearg_free): New decl.
47401         * lib/quotearg.c (quotearg_free): New function.
47402         (slot0, nslots, slotvec0, slotvec):
47403         Now file-scope so that quotearg_free can get at them.
47404
47405 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47406
47407         Sync from Automake.
47408         * build-aux/gnupload: Add missing 'gnu' to example URL.
47409         Report by Karl Berry.
47410
47411 2006-11-08  Bruno Haible  <bruno@clisp.org>
47412
47413         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
47414         Suggested by Paul Eggert.
47415
47416 2006-11-08  Jim Meyering  <jim@meyering.net>
47417
47418         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
47419         It's already included if !_LIBC.
47420         (fts_safe_changedir): Add a comment.
47421
47422 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47423
47424         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
47425         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
47426         Matthew Woehlke.
47427
47428         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
47429         definitions up, to avoid colliding with change below.
47430         (static_inline) [HAVE_INLINE]: New macro.
47431         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47432         Provide extern decls when !HAVE_INLINE.  Do not define unless
47433         static_inline is defined, either by us or by xmalloc.c.  Use
47434         static_inline rather than static inline.
47435         (XCALLOC): Optimize sizeof(T) = 1 case.
47436         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
47437
47438 2006-11-07  Bruno Haible  <bruno@clisp.org>
47439
47440         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
47441         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
47442         AC_C_INLINE.
47443         * modules/xalloc (Files): Add m4/inline.m4.
47444
47445 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47446
47447         * README: Fix typo.
47448         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
47449         (Miscellanous Notes): ...from this.
47450
47451 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47452
47453         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
47454         Mention that offsetof should be used instead of sizeof.
47455         From Bruno Haible.
47456
47457 2006-11-07  Bruno Haible  <bruno@clisp.org>
47458
47459         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
47460
47461 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47462
47463         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47464         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
47465         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47466         (gl_tree_add_before, gl_tree_add_after):
47467         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
47468         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
47469         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47470         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
47471         (gl_linked_add_after, gl_linked_add_at): Likewise.
47472         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
47473         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47474         (gl_tree_add_before, gl_tree_add_after): Likewise.
47475         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
47476         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
47477         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
47478
47479 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47480
47481         * lib/gl_oset.h: Use C comment style, not C++ comment style.
47482
47483 2006-11-06  Bruno Haible  <bruno@clisp.org>
47484
47485         * m4/inline.m4: New file.
47486         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
47487         * modules/list (Files): Add m4/inline.m4.
47488         * modules/oset (Files): Likewise.
47489
47490 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47491
47492         * lib/idcache.c: Include <stddef.h>, for offsetof.
47493         (struct userid.name): Change from char * to a flexible array member.
47494         All uses changed.
47495         * modules/idcache (Depends-on): Add flexmember.
47496
47497         * MODULES.html.sh (Core language properties): New module flexmember.
47498         * modules/flexmember, m4/flexmember.m4: New files.
47499
47500         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
47501         inline functions that are identical with the old xnmalloc_inline,
47502         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
47503         that we can avoid some unnecessary integer multiplications and
47504         divisions in the common case where the element size is known at
47505         compile time.
47506         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
47507         needed.
47508         (xnboundedmalloc): Remove.
47509         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
47510         arguments, for consistency with rest of this header.
47511         (xcharalloc): Rewrite using XNMALLOC.
47512         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
47513         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
47514         versions have been moved to lib/xalloc.h and renamed to be the
47515         non-*_inline versions.
47516         (xmalloc, xrealloc): Implement without reference to the xnmalloc
47517         and xnrealloc functions, since those functions are now inline and
47518         now call us.
47519         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
47520         renaming described above.
47521         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
47522         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
47523         captures the dependency in AC_C_INLINE.
47524
47525         New module canonicalize-lgpl, proposed by Charles Wilson in
47526         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
47527         with a few small changes afterwards.
47528         * MODULES.html.sh (File system functions): New module
47529         canonicalize-lgpl.
47530         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
47531         and canonicalize_file_name.
47532         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
47533         * modules/canonicalize-lgpl: New files.
47534
47535 2006-11-05  Bruno Haible  <bruno@clisp.org>
47536
47537         * gnulib-tool (func_import, func_create_testdir): Create directories
47538         also for files in subdirectories of lib/.
47539
47540 2006-11-05  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
47543         ANSI C compliant.
47544
47545 2006-11-03  Bruno Haible  <bruno@clisp.org>
47546
47547         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47548         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
47549         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
47550         (xnboundedmalloc): New inline function.
47551         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
47552         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
47553         xmalloc.
47554         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
47555         xmalloc.
47556         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
47557         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
47558         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
47559         xmalloc.
47560         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47561         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
47562         xmalloc.
47563         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
47564         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47565         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
47566         xmalloc.
47567         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47568         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
47569         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47570         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
47571         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
47572         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
47573         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
47574
47575 2006-11-03  Bruno Haible  <bruno@clisp.org>
47576
47577         * lib/c-ctype.h [C++]: Define functions without name mangling.
47578         * lib/fwriteerror.h [C++]: Likewise.
47579         * lib/gcd.h [C++]: Likewise.
47580         * lib/linebreak.h [C++]: Likewise.
47581
47582 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
47583
47584         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
47585         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
47586         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
47587         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47588         Check for functions and headers just once.
47589         Check for declaration of canonicalize_file_name.
47590         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
47591
47592 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47593
47594         * gnulib-tool (func_import): Fix typo in actioncmd.
47595
47596 2006-11-02  Bruno Haible  <bruno@clisp.org>
47597
47598         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
47599         newline sequence in the Makefile.am snippet as a space, like "make"
47600         does.
47601         Reported by Roger Persson <perrog@gmail.com>.
47602
47603 2006-11-01  Bruno Haible  <bruno@clisp.org>
47604
47605         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
47606         already declared in <string.h>.
47607         * lib/strcase.h (strncasecmp): Don't declare it if yes.
47608
47609 2006-11-01  Bruno Haible  <bruno@clisp.org>
47610
47611         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
47612         * lib/strcase.h: Include <string.h>.
47613         (strcasecmp): Define to rpl_strcasecmp here.
47614
47615 2006-11-01  Bruno Haible  <bruno@clisp.org>
47616
47617         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
47618
47619 2006-11-01  Eric Blake  <ebb9@byu.net>
47620
47621         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
47622
47623         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
47624
47625 2006-10-29  Bruno Haible  <bruno@clisp.org>
47626
47627         Make it compile in C++ mode.
47628         * lib/full-write.c (full_rw): Add a cast.
47629
47630 2006-11-01  Bruno Haible  <bruno@clisp.org>
47631
47632         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
47633         be POSIX compliant.
47634         Reported by Roger Persson <perrog@gmail.com>.
47635
47636 2006-11-01  Eric Blake  <ebb9@byu.net>
47637
47638         * lib/getopt_.h: Fix comments.
47639
47640 2006-10-31  Eric Blake  <ebb9@byu.net>
47641
47642         * modules/tmpdir (Depends-on): Add sys_stat.
47643         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
47644         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
47645         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
47646         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
47647         tempname.
47648
47649 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
47650
47651         Avoid some C++ diagnostics reported by Bruno Haible.
47652         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
47653         xmalloc.
47654         (quotearg_alloc): Use xcharalloc rather than xmalloc.
47655         (struct slotvec): Move to top level.
47656         (quotearg_n_options): Rewrite to avoid xmalloc.
47657         * lib/xalloc.h (xcharalloc): New function.
47658         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
47659         [defined __cplusplus]: Add function template that provides result
47660         type propagation.  This part of the change is from Bruno Haible.
47661
47662 2006-10-29  Bruno Haible  <bruno@clisp.org>
47663
47664         Make it compile in C++ mode.
47665         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
47666         * lib/strnlen1.c (strnlen1): Cast memchr result.
47667         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
47668         * lib/clean-temp.c (string_equals, string_hash): Add casts.
47669         (create_temp_dir): Rename local variable 'template'.
47670         (compile_csharp_using_sscli): Add cast.
47671         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
47672         * lib/findprog.c (find_in_path): Likewise.
47673         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
47674         * lib/wait-process.c (register_slave_subprocess): Likewise.
47675
47676 2006-10-22  Bruno Haible  <bruno@clisp.org>
47677
47678         * modules/tsearch: New file.
47679         * lib/tsearch.h: New file.
47680         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
47681         * m4/tsearch.m4: New file.
47682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
47683
47684 2006-10-29  Eric Blake  <ebb9@byu.net>
47685
47686         * lib/arcfour.c: Assume config.h.
47687         * lib/arctwo.c: Likewise.
47688         * lib/base64.c: Likewise.
47689         * lib/check-version.c: Likewise.
47690         * lib/crc.c: Likewise.
47691         * lib/des.c: Likewise.
47692         * lib/gc-gnulib.c: Likewise.
47693         * lib/gc-libgcrypt.c: Likewise.
47694         * lib/gc-pbkdf2-sha1.c: Likewise.
47695         * lib/getaddrinfo.c: Likewise.
47696         * lib/getdelim.c: Likewise.
47697         * lib/getline.c: Likewise.
47698         * lib/hmac-md5.c: Likewise.
47699         * lib/hmac-sha1.c: Likewise.
47700         * lib/iconvme.c: Likewise.
47701         * lib/md2.c: Likewise.
47702         * lib/md4.c: Likewise.
47703         * lib/memxor.c: Likewise.
47704         * lib/read-file.c: Likewise.
47705         * lib/readline.c: Likewise.
47706         * lib/rijndael-alg-fst.c: Likewise.
47707         * lib/rijndael-api-fst.c: Likewise.
47708         * lib/xgetdomainname.c: Likewise.
47709
47710 2006-10-28  Eric Blake  <ebb9@byu.net>
47711
47712         * lib/xstrndup.c: Assume config.h.
47713
47714 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47715
47716         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
47717         stat-macros.h is now for our own macros, whereas stat_h is for
47718         macros in the <sys/stat.h> name space.
47719         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
47720         (STAT_MACROS_H): Remove.
47721         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
47722         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
47723         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
47724         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
47725         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
47726         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
47727         Move these macros to ...
47728         * lib/stat_.h: here.  Don't include stat-macros.h.
47729         * lib/canonicalize.c: Don't include stat-macros.h.
47730         * lib/chown.c: Likewise.
47731         * lib/euidaccess.c: Likewise.
47732         * lib/file-type.c: Likewise.
47733         * lib/filemode.c: Likewise.
47734         * lib/glob.c: Likewise.
47735         * lib/isapipe.c: Likewise.
47736         * lib/lchown.c: Likewise.
47737         * lib/lstat.c: Likewise.
47738         * lib/mkdir-p.c: Likewise.
47739         * lib/rmdir.c: Likewise.
47740         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
47741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
47742         unless mkdir isn't declared, to speed up 'configure'.
47743         Always create sys/stat.h, since it's unlikely any real sys/stat.h
47744         would define all the S_* symbols.
47745         * modules/canonicalize (Depends-on):
47746         Depend on sys_stat, not stat-macros.
47747         * modules/chown: Likewise.
47748         * modules/euidaccess: Likewise.
47749         * modules/filemode: Likewise.
47750         * modules/file-type: Likewise.
47751         * modules/glob: Likewise.
47752         * modules/isapipe: Likewise.
47753         * modules/lchown: Likewise.
47754         * modules/lstat: Likewise.
47755         * modules/mkancesdirs: Likewise.
47756         * modules/rmdir: Likewise.
47757         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
47758         * modules/modechange: Likewise.
47759         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
47760         (configure.ac): Remove gl_STAT_MACROS.
47761         * modules/sys_stat (Depends-on): Remove stat-macros.
47762
47763 2006-10-27  Bruno Haible  <bruno@clisp.org>
47764
47765         * m4/signed.m4: Remove file.
47766         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
47767         invocation.
47768         * modules/vasnprintf (Files): Remove m4/signed.m4.
47769
47770 2006-10-27  Bruno Haible  <bruno@clisp.org>
47771
47772         Update to GNU gettext 0.16.
47773         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
47774         m4/inttypes-h.m4, m4/signed.m4.
47775         * m4/gettext.m4: Update to GNU gettext 0.16.
47776         * m4/intl.m4: New file, from GNU gettext.
47777         * m4/intldir.m4: New file, from GNU gettext.
47778         * config/srclist.txt: Update
47779
47780 2006-10-27  Eric Blake  <ebb9@byu.net>
47781
47782         * MODULES.html.sh: Document tempname.
47783         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
47784         dependencies.
47785         (Files): Move lib/tempname.c...
47786         * modules/tempname: ...to this new module.
47787         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
47788         (gl_PREREQ_TEMPNAME): Move...
47789         * m4/tempname.m4: ...to this new file.
47790         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
47791         * modules/sys_stat (Depends-on): Add stat-macros.
47792         * lib/stat_.h (includes): Pick up stat macros.
47793         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
47794         if stat macros are broken.
47795         * lib/tempname.c (includes): No need to include "stat-macros.h".
47796         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
47797         (direxists, __path_search) [!_LIBC]: Don't compile these in
47798         gnulib; the tmpdir module covers that.
47799         * lib/tempname.h: New file.
47800
47801 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47802
47803         * COPYING: Explain how gnulib-tool converts licence headers.
47804         Almost all wording by Eric Blake.
47805
47806 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
47807
47808         * lib/mbchar.h (is_basic_table): Make read-only.
47809         * lib/mbchar.c (is_basic_table): Likewise.
47810         Reported by John Darrington.
47811
47812 2006-10-25  Bruno Haible  <bruno@clisp.org>
47813
47814         * lib/progname.h (set_program_name): Undefine before defining.
47815
47816 2006-10-25  Bruno Haible  <bruno@clisp.org>
47817
47818         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
47819         false for non-gcc C++ compilers.
47820         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47821
47822 2006-10-24  Bruno Haible  <bruno@clisp.org>
47823
47824         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
47825         iconv implementations like Irix iconv.
47826
47827 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47828
47829         * modules/vararrays: New file.
47830         * m4/vararrays.m4: New file, taken from diffutils.
47831         * MODULES.html.sh: New module vararrays.
47832
47833 2006-10-24  Karl Berry  <karl@gnu.org>
47834
47835         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
47836         Don't call GNU Unix.
47837
47838 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47839
47840         * users.txt: Add Libtool.
47841
47842         Sync from Libtool:
47843
47844         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47845
47846         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
47847         to gnulib's policy of including config.h unconditionally.
47848
47849 2006-10-24  Bruno Haible  <bruno@clisp.org>
47850
47851         * modules/wcwidth (Files): Add m4/wint_t.m4.
47852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
47853         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
47854
47855 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47856
47857         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
47858         to pacify GCC with some -W flags enabled.  Problem reported by
47859         Bruno Haible.
47860
47861 2006-10-24  Jim Meyering  <jim@meyering.net>
47862
47863         * MODULES.html.sh: Remove uinttostr.  It's not a module.
47864         Reported by Karl Berry.
47865
47866 2006-10-23  Bruno Haible  <bruno@clisp.org>
47867
47868         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
47869
47870 2006-10-24  Bruno Haible  <bruno@clisp.org>
47871
47872         * lib/gl_list.h: Use C comment style, not C++ comment style.
47873
47874 2006-10-23  Eric Blake  <ebb9@byu.net>
47875
47876         * lib/getaddrinfo.c (includes): Add missing include.
47877
47878 2006-10-23  Bruno Haible  <bruno@clisp.org>
47879             Paul Eggert  <eggert@cs.ucla.edu>
47880
47881         Ability to rename obstack_free.
47882         * lib/obstack.h (__obstack_free): New macro. Declare instead of
47883         obstack_free.
47884         (obstack_free): Invoke the __obstack_free macro.
47885         * lib/obstack.c (obstack_free): Use __obstack_free macro.
47886
47887 2006-10-23  Bruno Haible  <bruno@clisp.org>
47888             Paul Eggert  <eggert@cs.ucla.edu>
47889
47890         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
47891         __argc, __argv from the declaration. (They are defined as macros on
47892         mingw.)
47893
47894 2006-10-22  Bruno Haible  <bruno@clisp.org>
47895
47896         * doc/gnulib-intro.texi: New file.
47897         * doc/gnulib.texi: Include it.
47898
47899 2006-10-21  Bruno Haible  <bruno@clisp.org>
47900
47901         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
47902         "Introduction", "Miscellanous Notes", "Particular Modules".
47903
47904 2006-10-21  Bruno Haible  <bruno@clisp.org>
47905
47906         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47907         Change mostlyclean-local rule to avoid sh syntax error from bash
47908         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
47909
47910 2006-10-23  Jim Meyering  <jim@meyering.net>
47911
47912         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
47913         in place of snprintf.
47914
47915         * modules/inttostr (Files): Add lib/uinttostr.c.
47916         * lib/uinttostr.c (inttostr): New file/function.
47917         * lib/inttostr.h (uinttostr): Declare.
47918         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
47919         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47920         Add uinttostr.
47921         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
47922
47923 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
47924
47925         * lib/canonicalize.c (ELOOP): Define if not already defined.
47926         Problem reported by Bruno Haible in
47927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
47928
47929 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
47930
47931         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
47932         Problem reported by Perry Smith and Ville Laurikari.
47933
47934         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
47935         uses.
47936
47937 2006-10-19  Bruno Haible  <bruno@clisp.org>
47938
47939         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
47940         for mingw.
47941
47942 2006-10-19  Bruno Haible  <bruno@clisp.org>
47943
47944         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
47945         Needed for mingw.
47946
47947 2006-10-19  Bruno Haible  <bruno@clisp.org>
47948
47949         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
47950
47951 2006-10-19  Bruno Haible  <bruno@clisp.org>
47952
47953         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
47954         it.
47955
47956 2006-10-19  Bruno Haible  <bruno@clisp.org>
47957
47958         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
47959         invocation.
47960
47961 2006-10-19  Bruno Haible  <bruno@clisp.org>
47962
47963         * gnulib-tool (func_create_testdir): Don't include ftruncate and
47964         mountlist by default.
47965
47966 2006-10-16  Bruno Haible  <bruno@clisp.org>
47967
47968         * lib/c-strstr.c: Include c-strstr.h.
47969
47970 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47971
47972         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
47973         in a slash.
47974
47975 2006-10-18  Bruno Haible  <bruno@clisp.org>
47976
47977         * lib/lock.h [C++]: Wrap definitions in extern "C".
47978
47979 2006-10-18  Bruno Haible  <bruno@clisp.org>
47980
47981         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
47982         gl_LIBOBJS list.
47983
47984 2006-10-18  Bruno Haible  <bruno@clisp.org>
47985
47986         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
47987
47988 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
47989
47990         * lib/xstrtol.h: Include gettext.h.
47991         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
47992         Problem reported by Eric Blake.
47993         * modules/xstrtol (Depends-on): Add gettext-h.
47994
47995 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
47996
47997         * lib/strftime.c (advance): New macro.
47998         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
47999         incomplete type, so you can't add 0 to it.  Problem and patch
48000         reported by Eelco Dolstra for dietlibc.
48001
48002 2006-10-18  Jim Meyering  <jim@meyering.net>
48003
48004         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48005         type for a local, and rename it: s/up/user_proc/.
48006
48007 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48008
48009         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48010         READ_UTMP_USER_PROCESS.
48011         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48012
48013 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48014
48015         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48016         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48017
48018 2006-10-17  Eric Blake  <ebb9@byu.net>
48019
48020         * lib/sigprocmask.c (sigprocmask): Fix typo.
48021
48022         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48023
48024         * modules/clean-temp (Makefile.am): Don't add to make output...
48025         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48026         config.h.
48027
48028 2006-10-17  Bruno Haible  <bruno@clisp.org>
48029
48030         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48031         differently if DEFAULT_TEXT_DOMAIN is set.
48032
48033 2006-10-16  Bruno Haible  <bruno@clisp.org>
48034
48035         * lib/clean-temp.c: Include fwriteerror.h.
48036
48037 2006-10-16  Bruno Haible  <bruno@clisp.org>
48038
48039         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48040
48041 2006-10-16  Bruno Haible  <bruno@clisp.org>
48042
48043         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48044         * lib/sigprocmask.h: Include <sys/types.h>.
48045         (sigset_t): Use the system's definition if present.
48046
48047 2006-10-17  Eric Blake  <ebb9@byu.net>
48048
48049         * lib/xvasprintf.c (includes): Assume config.h.
48050         * lib/xasprintf.c (includes): Likewise.
48051
48052 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48053
48054         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48055         at least as wide as intmax_t.
48056
48057 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48058
48059         (Imported from Automake.)
48060         * build-aux/gnupload: Update to version 1.1 of directive file.
48061
48062 2006-10-16  Eric Blake  <ebb9@byu.net>
48063
48064         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48065         match Automake 1.10a.
48066
48067 2006-10-14  Bruno Haible  <bruno@clisp.org>
48068
48069         * modules/sigprocmask: New file.
48070         * lib/sigprocmask.h: New file.
48071         * lib/sigprocmask.c: New file.
48072         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48073         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48074         request sigprocmask.o.
48075         (gl_PREREQ_SIGPROCMASK): New macro.
48076         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48077         (Depends-on): Add sigprocmask.
48078         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48079         gt_SIGNALBLOCKING. Test for 'raise' only once.
48080         * lib/fatal-signal.c: Include sigprocmask.h.
48081         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48082         unblock_fatal_signals): Define always.
48083         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48084         sigprocmask.
48085
48086 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48087
48088         Sync from Automake.
48089         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48090         which incorrectly sets the mode of an existing destination
48091         directory.  In some cases the unpatched install-sh could do the
48092         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48093         system.  We hope this is rare in practice, but it's clearly worth
48094         fixing.  Problem reported by Alex Unleashed in
48095         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48096         Also, don't bother to check for -m bugs unless we're using -m;
48097         suggested by Stepan Kasal.
48098
48099 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48100
48101         Sync from Automake.
48102         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48103         `-c' flag, so they appear at the same position as in %FASTDEP%
48104         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48105         which ignores unknown options only after the first non-option.
48106         Bug report against M4 by Nelson H. F. Beebe.
48107
48108 2006-10-13  Jim Meyering  <jim@meyering.net>
48109
48110         Fix a bug in yesterday's change.
48111         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48112         p->fts_statp->st_dev would be used uninitialized.
48113         Ensures that we always call fts_stat on the very first entry.
48114         Miklos Szeredi reported that find -xdev stopped working.
48115
48116 2006-10-12  Bruno Haible  <bruno@clisp.org>
48117
48118         * gnulib-tool (func_get_automake_snippet): Append an automatically
48119         computed EXTRA_DIST augmentation.
48120         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48121         * modules/alloca-opt (Makefile.am): Likewise.
48122         * modules/allocsa (Makefile.am): Likewise.
48123         * modules/arcfour (Makefile.am): Likewise.
48124         * modules/arctwo (Makefile.am): Likewise.
48125         * modules/argmatch (Makefile.am): Likewise.
48126         * modules/argz (Makefile.am): Likewise.
48127         * modules/atexit (Makefile.am): Likewise.
48128         * modules/backupfile (Makefile.am): Likewise.
48129         * modules/byteswap (Makefile.am): Likewise.
48130         * modules/c-strtod (Makefile.am): Likewise.
48131         * modules/c-strtold (Makefile.am): Likewise.
48132         * modules/calloc (Makefile.am): Likewise.
48133         * modules/canon-host (Makefile.am): Likewise.
48134         * modules/canonicalize (Makefile.am): Likewise.
48135         * modules/chdir-long (Makefile.am): Likewise.
48136         * modules/chdir-safer (Makefile.am): Likewise.
48137         * modules/check-version (Makefile.am): Likewise.
48138         * modules/chown (Makefile.am): Likewise.
48139         * modules/cloexec (Makefile.am): Likewise.
48140         * modules/close-stream (Makefile.am): Likewise.
48141         * modules/closeout (Makefile.am): Likewise.
48142         * modules/crc (Makefile.am): Likewise.
48143         * modules/csharpexec (Makefile.am): Likewise.
48144         * modules/cycle-check (Makefile.am): Likewise.
48145         * modules/des (Makefile.am): Likewise.
48146         * modules/dev-ino (Makefile.am): Likewise.
48147         * modules/dirfd (Makefile.am): Likewise.
48148         * modules/dirname (Makefile.am): Likewise.
48149         * modules/dup2 (Makefile.am): Likewise.
48150         * modules/eealloc (Makefile.am): Likewise.
48151         * modules/error (Makefile.am): Likewise.
48152         * modules/euidaccess (Makefile.am): Likewise.
48153         * modules/exclude (Makefile.am): Likewise.
48154         * modules/exitfail (Makefile.am): Likewise.
48155         * modules/fcntl-safer (Makefile.am): Likewise.
48156         * modules/fcntl (Makefile.am): Likewise.
48157         * modules/file-type (Makefile.am): Likewise.
48158         * modules/fileblocks (Makefile.am): Likewise.
48159         * modules/filemode (Makefile.am): Likewise.
48160         * modules/filenamecat (Makefile.am): Likewise.
48161         * modules/fnmatch (Makefile.am): Likewise.
48162         * modules/fopen-safer (Makefile.am): Likewise.
48163         * modules/fpending (Makefile.am): Likewise.
48164         * modules/fprintftime (Makefile.am): Likewise.
48165         * modules/free (Makefile.am): Likewise.
48166         * modules/fsusage (Makefile.am): Likewise.
48167         * modules/ftruncate (Makefile.am): Likewise.
48168         * modules/fts (Makefile.am): Likewise.
48169         * modules/gc-arcfour (Makefile.am): Likewise.
48170         * modules/gc-des (Makefile.am): Likewise.
48171         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48172         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48173         * modules/gc-md4 (Makefile.am): Likewise.
48174         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48175         * modules/gc-sha1 (Makefile.am): Likewise.
48176         * modules/gc (Makefile.am): Likewise.
48177         * modules/getaddrinfo (Makefile.am): Likewise.
48178         * modules/getcwd (Makefile.am): Likewise.
48179         * modules/getdelim (Makefile.am): Likewise.
48180         * modules/getdomainname (Makefile.am): Likewise.
48181         * modules/getgroups (Makefile.am): Likewise.
48182         * modules/gethostname (Makefile.am): Likewise.
48183         * modules/gethrxtime (Makefile.am): Likewise.
48184         * modules/getline (Makefile.am): Likewise.
48185         * modules/getloadavg (Makefile.am): Likewise.
48186         * modules/getlogin_r (Makefile.am): Likewise.
48187         * modules/getndelim2 (Makefile.am): Likewise.
48188         * modules/getopt (Makefile.am): Likewise.
48189         * modules/getpagesize (Makefile.am): Likewise.
48190         * modules/getpass-gnu (Makefile.am): Likewise.
48191         * modules/getpass (Makefile.am): Likewise.
48192         * modules/getsubopt (Makefile.am): Likewise.
48193         * modules/gettime (Makefile.am): Likewise.
48194         * modules/gettimeofday (Makefile.am): Likewise.
48195         * modules/getugroups (Makefile.am): Likewise.
48196         * modules/getusershell (Makefile.am): Likewise.
48197         * modules/glob (Makefile.am): Likewise.
48198         * modules/group-member (Makefile.am): Likewise.
48199         * modules/hard-locale (Makefile.am): Likewise.
48200         * modules/hash (Makefile.am): Likewise.
48201         * modules/hmac-md5 (Makefile.am): Likewise.
48202         * modules/hmac-sha1 (Makefile.am): Likewise.
48203         * modules/human (Makefile.am): Likewise.
48204         * modules/idcache (Makefile.am): Likewise.
48205         * modules/imaxabs (Makefile.am): Likewise.
48206         * modules/imaxdiv (Makefile.am): Likewise.
48207         * modules/inet_ntop (Makefile.am): Likewise.
48208         * modules/inet_pton (Makefile.am): Likewise.
48209         * modules/intprops (Makefile.am): Likewise.
48210         * modules/inttostr (Makefile.am): Likewise.
48211         * modules/inttypes (Makefile.am): Likewise.
48212         * modules/isapipe (Makefile.am): Likewise.
48213         * modules/javaversion (Makefile.am): Likewise.
48214         * modules/lchmod (Makefile.am): Likewise.
48215         * modules/lchown (Makefile.am): Likewise.
48216         * modules/localcharset (Makefile.am): Likewise.
48217         * modules/long-options (Makefile.am): Likewise.
48218         * modules/lstat (Makefile.am): Likewise.
48219         * modules/malloc (Makefile.am): Likewise.
48220         * modules/mathl (Makefile.am): Likewise.
48221         * modules/mbchar (Makefile.am): Likewise.
48222         * modules/md2 (Makefile.am): Likewise.
48223         * modules/md4 (Makefile.am): Likewise.
48224         * modules/md5 (Makefile.am): Likewise.
48225         * modules/memcasecmp (Makefile.am): Likewise.
48226         * modules/memchr (Makefile.am): Likewise.
48227         * modules/memcmp (Makefile.am): Likewise.
48228         * modules/memcoll (Makefile.am): Likewise.
48229         * modules/memcpy (Makefile.am): Likewise.
48230         * modules/memmem (Makefile.am): Likewise.
48231         * modules/memmove (Makefile.am): Likewise.
48232         * modules/mempcpy (Makefile.am): Likewise.
48233         * modules/memrchr (Makefile.am): Likewise.
48234         * modules/memset (Makefile.am): Likewise.
48235         * modules/memxor (Makefile.am): Likewise.
48236         * modules/mkancesdirs (Makefile.am): Likewise.
48237         * modules/mkdir-p (Makefile.am): Likewise.
48238         * modules/mkdir (Makefile.am): Likewise.
48239         * modules/mkdtemp (Makefile.am): Likewise.
48240         * modules/mkstemp (Makefile.am): Likewise.
48241         * modules/mktime (Makefile.am): Likewise.
48242         * modules/modechange (Makefile.am): Likewise.
48243         * modules/mountlist (Makefile.am): Likewise.
48244         * modules/nanosleep (Makefile.am): Likewise.
48245         * modules/obstack (Makefile.am): Likewise.
48246         * modules/openat (Makefile.am): Likewise.
48247         * modules/pagealign_alloc (Makefile.am): Likewise.
48248         * modules/pathmax (Makefile.am): Likewise.
48249         * modules/physmem (Makefile.am): Likewise.
48250         * modules/poll (Makefile.am): Likewise.
48251         * modules/posixtm (Makefile.am): Likewise.
48252         * modules/posixver (Makefile.am): Likewise.
48253         * modules/putenv (Makefile.am): Likewise.
48254         * modules/quote (Makefile.am): Likewise.
48255         * modules/quotearg (Makefile.am): Likewise.
48256         * modules/raise (Makefile.am): Likewise.
48257         * modules/read-file (Makefile.am): Likewise.
48258         * modules/readline (Makefile.am): Likewise.
48259         * modules/readlink (Makefile.am): Likewise.
48260         * modules/readtokens (Makefile.am): Likewise.
48261         * modules/readutmp (Makefile.am): Likewise.
48262         * modules/realloc (Makefile.am): Likewise.
48263         * modules/regex (Makefile.am): Likewise.
48264         * modules/rename-dest-slash (Makefile.am): Likewise.
48265         * modules/rename (Makefile.am): Likewise.
48266         * modules/rijndael (Makefile.am): Likewise.
48267         * modules/rmdir (Makefile.am): Likewise.
48268         * modules/rpmatch (Makefile.am): Likewise.
48269         * modules/safe-read (Makefile.am): Likewise.
48270         * modules/safe-write (Makefile.am): Likewise.
48271         * modules/same-inode (Makefile.am): Likewise.
48272         * modules/same (Makefile.am): Likewise.
48273         * modules/save-cwd (Makefile.am): Likewise.
48274         * modules/savedir (Makefile.am): Likewise.
48275         * modules/setenv (Makefile.am): Likewise.
48276         * modules/settime (Makefile.am): Likewise.
48277         * modules/sha1 (Makefile.am): Likewise.
48278         * modules/sig2str (Makefile.am): Likewise.
48279         * modules/snprintf (Makefile.am): Likewise.
48280         * modules/stat-macros (Makefile.am): Likewise.
48281         * modules/stat-time (Makefile.am): Likewise.
48282         * modules/stdbool (Makefile.am): Likewise.
48283         * modules/stdint (Makefile.am): Likewise.
48284         * modules/stdlib-safer (Makefile.am): Likewise.
48285         * modules/stpcpy (Makefile.am): Likewise.
48286         * modules/stpncpy (Makefile.am): Likewise.
48287         * modules/strcase (Makefile.am): Likewise.
48288         * modules/strcasestr (Makefile.am): Likewise.
48289         * modules/strchrnul (Makefile.am): Likewise.
48290         * modules/strcspn (Makefile.am): Likewise.
48291         * modules/strdup (Makefile.am): Likewise.
48292         * modules/strerror (Makefile.am): Likewise.
48293         * modules/strftime (Makefile.am): Likewise.
48294         * modules/strndup (Makefile.am): Likewise.
48295         * modules/strnlen (Makefile.am): Likewise.
48296         * modules/strpbrk (Makefile.am): Likewise.
48297         * modules/strsep (Makefile.am): Likewise.
48298         * modules/strstr (Makefile.am): Likewise.
48299         * modules/strtod (Makefile.am): Likewise.
48300         * modules/strtoimax (Makefile.am): Likewise.
48301         * modules/strtok_r (Makefile.am): Likewise.
48302         * modules/strtol (Makefile.am): Likewise.
48303         * modules/strtoll (Makefile.am): Likewise.
48304         * modules/strtoul (Makefile.am): Likewise.
48305         * modules/strtoull (Makefile.am): Likewise.
48306         * modules/strtoumax (Makefile.am): Likewise.
48307         * modules/strverscmp (Makefile.am): Likewise.
48308         * modules/sys_socket (Makefile.am): Likewise.
48309         * modules/sys_stat (Makefile.am): Likewise.
48310         * modules/sysexits (Makefile.am): Likewise.
48311         * modules/time_r (Makefile.am): Likewise.
48312         * modules/timegm (Makefile.am): Likewise.
48313         * modules/timespec (Makefile.am): Likewise.
48314         * modules/tmpfile-safer (Makefile.am): Likewise.
48315         * modules/trim (Makefile.am): Likewise.
48316         * modules/unistd-safer (Makefile.am): Likewise.
48317         * modules/unlinkdir (Makefile.am): Likewise.
48318         * modules/unlocked-io (Makefile.am): Likewise.
48319         * modules/userspec (Makefile.am): Likewise.
48320         * modules/utime (Makefile.am): Likewise.
48321         * modules/utimecmp (Makefile.am): Likewise.
48322         * modules/utimens (Makefile.am): Likewise.
48323         * modules/vasnprintf (Makefile.am): Likewise.
48324         * modules/vasprintf (Makefile.am): Likewise.
48325         * modules/vsnprintf (Makefile.am): Likewise.
48326         * modules/xalloc (Makefile.am): Likewise.
48327         * modules/xgetcwd (Makefile.am): Likewise.
48328         * modules/xnanosleep (Makefile.am): Likewise.
48329         * modules/xreadlink (Makefile.am): Likewise.
48330         * modules/xstrtod (Makefile.am): Likewise.
48331         * modules/xstrtol (Makefile.am): Likewise.
48332         * modules/xstrtold (Makefile.am): Likewise.
48333         * modules/yesno (Makefile.am): Likewise.
48334         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48335
48336 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48337
48338         * modules/error (Makefile.am): Distribute files through
48339         EXTRA_DIST, not lib_SOURCES.
48340
48341 2006-10-12  Eric Blake  <ebb9@byu.net>
48342
48343         * modules/error (Makefile.am): Distribute files in /lib.
48344         * modules/obstack (Makefile.am): Likewise.
48345
48346 2006-10-12  Bruno Haible  <bruno@clisp.org>
48347
48348         * modules/acl (Makefile.am): Distribute all files in lib/ through
48349         EXTRA_DIST.
48350         * modules/arcfour (Makefile.am): Likewise.
48351         * modules/arctwo (Makefile.am): Likewise.
48352         * modules/argmatch (Makefile.am): Likewise.
48353         * modules/argz (Makefile.am): Likewise.
48354         * modules/atexit (Makefile.am): Likewise.
48355         * modules/backupfile (Makefile.am): Likewise.
48356         * modules/c-strtod (Makefile.am): Likewise.
48357         * modules/c-strtold (Makefile.am): Likewise.
48358         * modules/calloc (Makefile.am): Likewise.
48359         * modules/canon-host (Makefile.am): Likewise.
48360         * modules/canonicalize (Makefile.am): Likewise.
48361         * modules/chdir-long (Makefile.am): Likewise.
48362         * modules/chdir-safer (Makefile.am): Likewise.
48363         * modules/check-version (Makefile.am): Likewise.
48364         * modules/chown (Makefile.am): Likewise.
48365         * modules/cloexec (Makefile.am): Likewise.
48366         * modules/close-stream (Makefile.am): Likewise.
48367         * modules/closeout (Makefile.am): Likewise.
48368         * modules/crc (Makefile.am): Likewise.
48369         * modules/cycle-check (Makefile.am): Likewise.
48370         * modules/des (Makefile.am): Likewise.
48371         * modules/dirfd (Makefile.am): Likewise.
48372         * modules/dirname (Makefile.am): Likewise.
48373         * modules/dup2 (Makefile.am): Likewise.
48374         * modules/euidaccess (Makefile.am): Likewise.
48375         * modules/exclude (Makefile.am): Likewise.
48376         * modules/exitfail (Makefile.am): Likewise.
48377         * modules/fcntl-safer (Makefile.am): Likewise.
48378         * modules/file-type (Makefile.am): Likewise.
48379         * modules/fileblocks (Makefile.am): Likewise.
48380         * modules/filemode (Makefile.am): Likewise.
48381         * modules/filenamecat (Makefile.am): Likewise.
48382         * modules/fnmatch (Makefile.am): Likewise.
48383         * modules/fopen-safer (Makefile.am): Likewise.
48384         * modules/fpending (Makefile.am): Likewise.
48385         * modules/fprintftime (Makefile.am): Likewise.
48386         * modules/free (Makefile.am): Likewise.
48387         * modules/fsusage (Makefile.am): Likewise.
48388         * modules/ftruncate (Makefile.am): Likewise.
48389         * modules/fts (Makefile.am): Likewise.
48390         * modules/gc (Makefile.am): Likewise.
48391         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48392         * modules/getaddrinfo (Makefile.am): Likewise.
48393         * modules/getcwd (Makefile.am): Likewise.
48394         * modules/getdelim (Makefile.am): Likewise.
48395         * modules/getdomainname (Makefile.am): Likewise.
48396         * modules/getgroups (Makefile.am): Likewise.
48397         * modules/gethostname (Makefile.am): Likewise.
48398         * modules/gethrxtime (Makefile.am): Likewise.
48399         * modules/getline (Makefile.am): Likewise.
48400         * modules/getloadavg (Makefile.am): Likewise.
48401         * modules/getlogin_r (Makefile.am): Likewise.
48402         * modules/getopt (Makefile.am): Likewise.
48403         * modules/getpass (Makefile.am): Likewise.
48404         * modules/getpass-gnu (Makefile.am): Likewise.
48405         * modules/getsubopt (Makefile.am): Likewise.
48406         * modules/gettime (Makefile.am): Likewise.
48407         * modules/gettimeofday (Makefile.am): Likewise.
48408         * modules/getugroups (Makefile.am): Likewise.
48409         * modules/getusershell (Makefile.am): Likewise.
48410         * modules/glob (Makefile.am): Likewise.
48411         * modules/group-member (Makefile.am): Likewise.
48412         * modules/hard-locale (Makefile.am): Likewise.
48413         * modules/hash (Makefile.am): Likewise.
48414         * modules/hmac-md5 (Makefile.am): Likewise.
48415         * modules/hmac-sha1 (Makefile.am): Likewise.
48416         * modules/human (Makefile.am): Likewise.
48417         * modules/idcache (Makefile.am): Likewise.
48418         * modules/imaxabs (Makefile.am): Likewise.
48419         * modules/imaxdiv (Makefile.am): Likewise.
48420         * modules/inet_ntop (Makefile.am): Likewise.
48421         * modules/inet_pton (Makefile.am): Likewise.
48422         * modules/inttostr (Makefile.am): Likewise.
48423         * modules/isapipe (Makefile.am): Likewise.
48424         * modules/lchown (Makefile.am): Likewise.
48425         * modules/long-options (Makefile.am): Likewise.
48426         * modules/lstat (Makefile.am): Likewise.
48427         * modules/malloc (Makefile.am): Likewise.
48428         * modules/mathl (Makefile.am): Likewise.
48429         * modules/mbchar (Makefile.am): Likewise.
48430         * modules/md2 (Makefile.am): Likewise.
48431         * modules/md4 (Makefile.am): Likewise.
48432         * modules/md5 (Makefile.am): Likewise.
48433         * modules/memcasecmp (Makefile.am): Likewise.
48434         * modules/memchr (Makefile.am): Likewise.
48435         * modules/memcmp (Makefile.am): Likewise.
48436         * modules/memcoll (Makefile.am): Likewise.
48437         * modules/memcpy (Makefile.am): Likewise.
48438         * modules/memmem (Makefile.am): Likewise.
48439         * modules/memmove (Makefile.am): Likewise.
48440         * modules/mempcpy (Makefile.am): Likewise.
48441         * modules/memrchr (Makefile.am): Likewise.
48442         * modules/memset (Makefile.am): Likewise.
48443         * modules/memxor (Makefile.am): Likewise.
48444         * modules/mkancesdirs (Makefile.am): Likewise.
48445         * modules/mkdir (Makefile.am): Likewise.
48446         * modules/mkdir-p (Makefile.am): Likewise.
48447         * modules/mkdtemp (Makefile.am): Likewise.
48448         * modules/mkstemp (Makefile.am): Likewise.
48449         * modules/mktime (Makefile.am): Likewise.
48450         * modules/modechange (Makefile.am): Likewise.
48451         * modules/mountlist (Makefile.am): Likewise.
48452         * modules/nanosleep (Makefile.am): Likewise.
48453         * modules/openat (Makefile.am): Likewise.
48454         * modules/pagealign_alloc (Makefile.am): Likewise.
48455         * modules/physmem (Makefile.am): Likewise.
48456         * modules/poll (Makefile.am): Likewise.
48457         * modules/posixtm (Makefile.am): Likewise.
48458         * modules/posixver (Makefile.am): Likewise.
48459         * modules/putenv (Makefile.am): Likewise.
48460         * modules/quote (Makefile.am): Likewise.
48461         * modules/quotearg (Makefile.am): Likewise.
48462         * modules/raise (Makefile.am): Likewise.
48463         * modules/read-file (Makefile.am): Likewise.
48464         * modules/readline (Makefile.am): Likewise.
48465         * modules/readlink (Makefile.am): Likewise.
48466         * modules/readtokens (Makefile.am): Likewise.
48467         * modules/readutmp (Makefile.am): Likewise.
48468         * modules/realloc (Makefile.am): Likewise.
48469         * modules/regex (Makefile.am): Likewise.
48470         * modules/rename (Makefile.am): Likewise.
48471         * modules/rename-dest-slash (Makefile.am): Likewise.
48472         * modules/rijndael (Makefile.am): Likewise.
48473         * modules/rmdir (Makefile.am): Likewise.
48474         * modules/rpmatch (Makefile.am): Likewise.
48475         * modules/safe-read (Makefile.am): Likewise.
48476         * modules/safe-write (Makefile.am): Likewise.
48477         * modules/same (Makefile.am): Likewise.
48478         * modules/save-cwd (Makefile.am): Likewise.
48479         * modules/savedir (Makefile.am): Likewise.
48480         * modules/setenv (Makefile.am): Likewise.
48481         * modules/settime (Makefile.am): Likewise.
48482         * modules/sha1 (Makefile.am): Likewise.
48483         * modules/sig2str (Makefile.am): Likewise.
48484         * modules/snprintf (Makefile.am): Likewise.
48485         * modules/stdlib-safer (Makefile.am): Likewise.
48486         * modules/stpcpy (Makefile.am): Likewise.
48487         * modules/stpncpy (Makefile.am): Likewise.
48488         * modules/strcase (Makefile.am): Likewise.
48489         * modules/strcasestr (Makefile.am): Likewise.
48490         * modules/strchrnul (Makefile.am): Likewise.
48491         * modules/strcspn (Makefile.am): Likewise.
48492         * modules/strdup (Makefile.am): Likewise.
48493         * modules/strerror (Makefile.am): Likewise.
48494         * modules/strftime (Makefile.am): Likewise.
48495         * modules/strndup (Makefile.am): Likewise.
48496         * modules/strnlen (Makefile.am): Likewise.
48497         * modules/strpbrk (Makefile.am): Likewise.
48498         * modules/strsep (Makefile.am): Likewise.
48499         * modules/strstr (Makefile.am): Likewise.
48500         * modules/strtod (Makefile.am): Likewise.
48501         * modules/strtoimax (Makefile.am): Likewise.
48502         * modules/strtok_r (Makefile.am): Likewise.
48503         * modules/strtol (Makefile.am): Likewise.
48504         * modules/strtoll (Makefile.am): Likewise.
48505         * modules/strtoul (Makefile.am): Likewise.
48506         * modules/strtoull (Makefile.am): Likewise.
48507         * modules/strtoumax (Makefile.am): Likewise.
48508         * modules/strverscmp (Makefile.am): Likewise.
48509         * modules/time_r (Makefile.am): Likewise.
48510         * modules/timegm (Makefile.am): Likewise.
48511         * modules/tmpfile-safer (Makefile.am): Likewise.
48512         * modules/unistd-safer (Makefile.am): Likewise.
48513         * modules/unlinkdir (Makefile.am): Likewise.
48514         * modules/userspec (Makefile.am): Likewise.
48515         * modules/utime (Makefile.am): Likewise.
48516         * modules/utimecmp (Makefile.am): Likewise.
48517         * modules/utimens (Makefile.am): Likewise.
48518         * modules/vasnprintf (Makefile.am): Likewise.
48519         * modules/vasprintf (Makefile.am): Likewise.
48520         * modules/vsnprintf (Makefile.am): Likewise.
48521         * modules/xalloc (Makefile.am): Likewise.
48522         * modules/xgetcwd (Makefile.am): Likewise.
48523         * modules/xnanosleep (Makefile.am): Likewise.
48524         * modules/xreadlink (Makefile.am): Likewise.
48525         * modules/xstrtod (Makefile.am): Likewise.
48526         * modules/xstrtol (Makefile.am): Likewise.
48527         * modules/xstrtold (Makefile.am): Likewise.
48528         * modules/yesno (Makefile.am): Likewise.
48529
48530 2006-10-12  Jim Meyering  <jim@meyering.net>
48531
48532         * m4/getloadavg.m4: Revert the change below.
48533
48534         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
48535         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
48536         fail with a symlink, which is what coreutils' ./bootstrap now
48537         creates by default.
48538
48539 2006-10-12  Bruno Haible  <bruno@clisp.org>
48540
48541         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
48542         mingw.
48543         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
48544         MSVC and mingw explicitly.
48545
48546 2006-10-11  Simon Josefsson  <jas@extundo.com>
48547             Bruno Haible  <bruno@clisp.org>
48548
48549         Add support for multiple gnulib-tool invocations in the scope of a
48550         single configure.ac file.
48551         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
48552         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
48553         with the same contents as the _LIBADD variable.
48554         (func_emit_initmacro_start, func_emit_initmacro_end,
48555         func_emit_initmacro_done): New functions.
48556         (func_import, func_create_testdir): Invoke them. Allow the identifiers
48557         gl_LIBOBJS and gl_LTLIBOBJS.
48558
48559 2006-10-11  Bruno Haible  <bruno@clisp.org>
48560
48561         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
48562         (func_create_testdir): Don't create po/Makefile.am, don't invoke
48563         autoreconf. Instead, invoke autopoint explicitly but move back the
48564         *.m4 files from gnulib.
48565
48566 2006-10-11  Bruno Haible  <bruno@clisp.org>
48567
48568         * gnulib-tool (func_usage): Make module names after --create-testdir
48569         optional.
48570         (func_create_testdir): If no module was specified, use nearly all
48571         modules.
48572
48573 2006-10-12  Jim Meyering  <jim@meyering.net>
48574
48575         Big performance improvement for fts-based tools that use FTS_NOSTAT.
48576         Avoid spurious inode-mismatch problems on non-POSIX file systems.
48577         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
48578         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
48579         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
48580         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
48581         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
48582         (fts_set_stat_required): New function.
48583         (fts_open): Defer the calls to fts_stat, if possible or requested.
48584         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
48585         into fts_stat itself.
48586         (fts_read): Perform any required (deferred) fts_stat call.
48587         (fts_build): Likewise, for the directory we're about to open and read.
48588         In the readdir loop, carefully decide whether each entry will require
48589         an eventual call to fts_stat, using dirent.d_type info if available.
48590         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
48591         a command line argument into this function.  Update all callers.
48592         Map a return value of FTS_DOT to FTS_D for a command line argument.
48593         * modules/fts (Depends-on): Add d-type.  Alphabetize.
48594         Thanks to Miklos Szeredi for his tenacity and for the initial
48595         bug report about "find" failing on a FUSE-based file system.
48596
48597         * lib/fts.c (fts_open): Use consistent indentation.
48598
48599 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48600
48601         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
48602         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
48603         reported by Jim Meyering.  All uses of cache variables renamed
48604         to match Autoconf's.
48605         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
48606         the other one.
48607
48608         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
48609         Fix misspelling in diagnostic.
48610
48611 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48612
48613         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
48614         defined.  Problem reported by Matthew Woehlke.
48615
48616         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
48617         Add support for Tandem NonStop R series.
48618         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
48619         Use new macro.
48620
48621         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
48622         (has_trailing_slash): Omit size arg; all callers changed.
48623         Omit 'inline', since it doesn't help performance and we'd
48624         need to configure it.
48625         Don't count //, ///, etc. as having a trailing slash.
48626         As a side effect, this removes a C99ism reported by Matthew Woehlke.
48627         (rpl_rename_dest_slash): On failure, use rename's errno rather
48628         than (in some cases) an incorrect or junk errno.
48629         Simplify code by removing need to compute length; this does
48630         cause it to make two passes instead of one over the file name,
48631         but it's worth it.
48632
48633         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
48634         change, since Autoconf's version may no longer be appropriate now
48635         that we are using CVS Autoconf's version.  Add support for Tandem.
48636
48637 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48638             Bruno Haible  <bruno@clisp.org>
48639
48640         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
48641         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
48642         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
48643         gl_AC_TYPE_LONG_LONG.
48644
48645         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
48646         instead of HAVE_LONG_LONG.
48647         * lib/printf-args.c (printf_fetchargs): Likewise.
48648         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
48649         * lib/vasnprintf.c (VASNPRINTF): Likewise.
48650         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
48651         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
48652         gl_AC_TYPE_LONG_LONG.
48653
48654 2006-10-11  Bruno Haible  <bruno@clisp.org>
48655
48656         * m4/longlong.m4: Add comments.
48657         * m4/ulonglong.m4: Likewise.
48658
48659 2006-10-10  Bruno Haible  <bruno@clisp.org>
48660
48661         Make it possible to #define stpcpy, strdup to aliases.
48662         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
48663         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
48664
48665 2006-10-10  Bruno Haible  <bruno@clisp.org>
48666
48667         Make it possible to #define gcd to an alias.
48668         * lib/gcd.c: Include config.h.
48669
48670 2006-10-10  Bruno Haible  <bruno@clisp.org>
48671
48672         Make it possible to #define c_isascii to an alias.
48673         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
48674         defined. Undefine the macros before defining them, to avoid gcc
48675         warnings.
48676         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
48677         define NO_C_CTYPE_MACROS early.
48678
48679 2006-10-10  Bruno Haible  <bruno@clisp.org>
48680
48681         Make it possible to #define set_program_name to an alias.
48682         * lib/progname.c: Don't undefine set_program_name; instead, undefine
48683         ENABLE_RELOCATABLE early.
48684
48685 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48686
48687         Port to Tandem NSK OSS, which has 64-bit signed int but at most
48688         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
48689         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
48690         More generally, don't assume that 64-bit signed int is available
48691         if unsigned int is, and vice versa.
48692         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
48693         unsigned symbols, not on their signed counterparts.
48694         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
48695         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
48696         (UINT64_C, UINTMAX_C):
48697         Likewise.
48698         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
48699         unsigned counterparts.
48700         (Have_long_long, Unsigned): New macros.
48701         (Int): Renamed from INT.
48702         (strtoimax): Use the new macros.
48703         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
48704         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
48705         * modules/inttypes (inttypes.h): Substitute
48706         HAVE_UNSIGNED_LONG_LONG_INT.
48707         * modules/stdint (stdint.h): Likewise.
48708         (Files): Add m4/ulonglong.m4.
48709
48710 2006-10-10  Bruno Haible  <bruno@clisp.org>
48711
48712         Fix a gcc -Wshadow warning.
48713         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
48714         to 'bucket'.
48715         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
48716         gl_linked_indexof_from_to): Likewise.
48717         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
48718         Likewise.
48719         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
48720         Likewise.
48721         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
48722         Reported by Eric Blake.
48723
48724 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
48725
48726         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
48727         for NetBSD.  Problem reported by Bruno Haible.
48728
48729 2006-10-09  Jim Meyering  <jim@meyering.net>
48730
48731         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
48732         Patch from Bruno Haible.
48733
48734 2006-10-09  Jim Meyering  <jim@meyering.net>
48735
48736         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
48737         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
48738         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
48739
48740 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48741
48742         Don't include <config.h> twice; this doesn't work in some cases,
48743         e.g., when config.h has "#define intmax_t long long int" and
48744         we include <config.h>, <inttypes.h>, <config.h> in that order.
48745         Problem reported by Matthew Woehlke in:
48746         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
48747         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
48748         * lib/fts-cycle.c: Don't include config.h.
48749         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
48750         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
48751         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
48752         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
48753         inttypes.h.
48754         * lib/xstrtoumax.c: Likewise.
48755         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
48756         __strtol and the like, so that this module is more like its siblings.
48757         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
48758         Remove; no longer needed now that we assume gnulib inttypes.h.
48759
48760 2006-10-08  Bruno Haible  <bruno@clisp.org>
48761
48762         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
48763         option.
48764
48765 2006-10-07  Jim Meyering  <jim@meyering.net>
48766
48767         * modules/inttypes (inttypes.h): Revert what seems to have been
48768         an inadvertent part of today's change: use "|", not "/" in the
48769         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
48770
48771 2006-10-07  Bruno Haible  <bruno@clisp.org>
48772
48773         * modules/sublist: New file.
48774
48775 2006-10-07  Bruno Haible  <bruno@clisp.org>
48776
48777         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
48778         * modules/argz (argz.h): Likewise.
48779         * modules/arpa_inet (arpa/inet.h): Likewise.
48780         * modules/byteswap (byteswap.h): Likewise.
48781         * modules/configmake (configmake.h): Likewise.
48782         * modules/fcntl (fcntl.h): Likewise.
48783         * modules/fnmatch (fnmatch.h): Likewise.
48784         * modules/getopt (getopt.h): Likewise.
48785         * modules/glob (glob.h): Likewise.
48786         * modules/inttypes (inttypes.h): Likewise.
48787         * modules/netinet_in (netinet/in.h): Likewise.
48788         * modules/poll (poll.h): Likewise.
48789         * modules/stdbool (stdbool.h): Likewise.
48790         * modules/stdint (stdint.h): Likewise.
48791         * modules/sys_select (sys/select.h): Likewise.
48792         * modules/sys_socket (sys/socket.h): Likewise.
48793         * modules/sys_stat (sys/stat.h): Likewise.
48794         * modules/sysexits (sysexits.h): Likewise.
48795         * modules/unistd (unistd.h): Likewise.
48796         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48797         Add a "DO NOT EDIT" comment to the generated file.
48798         (func_import): Likewise for gnulib-comp.m4.
48799
48800 2006-10-07  Bruno Haible  <bruno@clisp.org>
48801
48802         * lib/gl_sublist.h: New file.
48803         * lib/gl_sublist.c: New file.
48804
48805 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48806
48807         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
48808         name (relative to the original working directory) and the file
48809         name component (relative to the temporary working directory).  All
48810         callers changed.
48811         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
48812         * lib/mkdir-p.c (make_dir_parents): Likewise.
48813         * lib/mkdir-p.h (make_dir_parents): Likewise.
48814
48815 2006-10-06  Eric Blake  <ebb9@byu.net>
48816
48817         Define several macros for use by the clean-temp module.
48818         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
48819         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
48820         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
48821
48822         * lib/clean-temp.h (close_stream_temp): New declaration.
48823         * lib/clean-temp.c (includes): Pull in headers according to what
48824         other modules are in use.
48825         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
48826
48827 2006-10-06  Bruno Haible  <bruno@clisp.org>
48828
48829         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
48830         instead of fopen, fwriteerror.
48831
48832 2006-10-06  Bruno Haible  <bruno@clisp.org>
48833
48834         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
48835         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
48836         int.
48837         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
48838         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
48839         Return an error indicator.
48840         Suggested by Eric Blake.
48841
48842 2006-10-06  Bruno Haible  <bruno@clisp.org>
48843
48844         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
48845         Reported by Eric Blake.
48846
48847 2006-10-06  Bruno Haible  <bruno@clisp.org>
48848
48849         * modules/closeout (Description): Mention stderr too.
48850
48851 2006-10-06  Bruno Haible  <bruno@clisp.org>
48852         and Paul Eggert  <eggert@cs.ucla.edu>
48853
48854         * lib/closeout.c (close_stdout): Also close stderr.
48855         * lib/closeout.h: Update comment.
48856
48857 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48858
48859         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
48860         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
48861         * lib/dirchownmod.c: Include lchown.h.
48862         * lib/lchown.c: Don't include files that lchown.h now includes.
48863         Don't declare chown, since lchown.h now does that.
48864         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
48865         (lchown): Define to rpl_chown if lchown is declared but
48866         does not exist.  Declare using a prototype if lchown is not
48867         declared.  Add a copyright notice.
48868         * lib/mkstemp.h: Include <unistd.h>.
48869         * lib/openat.c: Include lchown.h.
48870
48871         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
48872         we now test for that separately.
48873         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
48874         rather than O_NOFOLLOW, when testing whether it's possible to
48875         avoid a race condition reliably.
48876         * lib/savewd.c (savewd_chdir): Likewise.
48877
48878         Remove macros that are no longer needed now that stdint.h is
48879         reliable.
48880         * lib/fsusage.c (UINTMAX_MAX): Remove.
48881         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
48882         * lib/utimecmp.c (SIZE_MAX): Remove.
48883
48884         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
48885
48886         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
48887         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
48888         O_NOATIME works.
48889
48890 2006-10-05  Bruno Haible  <bruno@clisp.org>
48891
48892         * lib/gl_list.h (gl_sortedlist_search_from_to,
48893         gl_sortedlist_indexof_from_to): New declarations.
48894         (gl_list_implementation): New fields sortedlist_search_from_to,
48895         sortedlist_indexof_from_to.
48896         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
48897         inline functions.
48898         * lib/gl_list.c (gl_sortedlist_search_from_to,
48899         gl_sortedlist_indexof_from_to): New functions.
48900         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
48901         function.
48902         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
48903         (gl_array_sortedlist_search_from_to): New function.
48904         (gl_array_list_implementation): Update.
48905         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
48906         function.
48907         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
48908         (gl_carray_sortedlist_search_from_to): New function.
48909         (gl_carray_list_implementation): Update.
48910         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
48911         gl_linked_sortedlist_indexof_from_to): New functions.
48912         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48913         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48914         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
48915         gl_tree_sortedlist_indexof_from_to): New functions.
48916         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48917         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48918         Update.
48919         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48920         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
48921         Update.
48922
48923 2006-10-05  Bruno Haible  <bruno@clisp.org>
48924
48925         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
48926         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
48927         (struct gl_list_implementation): Add fields search_from_to,
48928         indexof_from_to. Remove fields search, indexof.
48929         (gl_list_search): Use the search_from_to method.
48930         (gl_list_search_from, gl_list_search_from_to): New functions.
48931         (gl_list_indexof): Use the indexof_from_to method.
48932         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
48933         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
48934         (gl_list_search_from, gl_list_search_from_to): New functions.
48935         (gl_list_indexof): Use the indexof_from_to method.
48936         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
48937         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
48938         gl_array_indexof. Add start_index, end_index arguments.
48939         (gl_array_search_from_to): Renamed from gl_array_search. Add
48940         start_index, end_index arguments.
48941         (gl_array_remove, gl_array_list_implementation): Update.
48942         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
48943         gl_carray_indexof. Add start_index, end_index arguments.
48944         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
48945         start_index, end_index arguments.
48946         (gl_carray_remove, gl_carray_list_implementation): Update.
48947         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
48948         gl_linked_search. Add start_index, end_index arguments.
48949         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
48950         start_index, end_index arguments.
48951         (gl_linked_remove): Update.
48952         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48953         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48954         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
48955         field to 'size_t'.
48956         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
48957         gl_tree_search. Add start_index, end_index arguments.
48958         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
48959         start_index, end_index arguments.
48960         (gl_tree_remove): Update.
48961         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48962         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48963         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
48964         function.
48965         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
48966         gl_tree_search. Add start_index, end_index arguments.
48967         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
48968         start_index, end_index arguments.
48969         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48970         Update.
48971         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48972
48973 2006-10-05  Bruno Haible  <bruno@clisp.org>
48974
48975         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
48976
48977         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
48978         fwriteerror_temp): New declarations.
48979         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
48980         (descriptors): New variable.
48981         (cleanup): First, close the descriptors.
48982         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
48983         fclose_temp, fwriteerror_temp): New functions.
48984
48985 2006-10-04  Jim Meyering  <jim@meyering.net>
48986
48987         * lib/fts.c (fts_open): Tiny comment change.
48988
48989 2006-10-04  Bruno Haible  <bruno@clisp.org>
48990
48991         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
48992         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
48993         gl_LOCK_BODY.
48994         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
48995         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
48996         gl_LOCK_EARLY_BODY.
48997         (gl_LOCK): Require gl_LOCK_BODY.
48998
48999 2006-10-04  Bruno Haible  <bruno@clisp.org>
49000
49001         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49002         (gl_oset_search_atleast): New declaration.
49003         (struct gl_oset_implementation): Add field 'search_atleast'.
49004         (gl_oset_search_atleast): New inline function.
49005         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49006         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49007         (gl_array_oset_implementation): Update.
49008         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49009         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49010         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49011
49012 2006-10-04  Bruno Haible  <bruno@clisp.org>
49013
49014         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49015
49016 2006-10-03  Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49019         from gl_avltreehash_list_implementation.
49020
49021 2006-10-03  Bruno Haible  <bruno@clisp.org>
49022
49023         * lib/gl_oset.c (gl_oset_add): Fix return type.
49024
49025 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49026
49027         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49028
49029 2006-10-02  Eric Blake  <ebb9@byu.net>
49030
49031         * modules/strnlen (Depends-on): Add extensions.
49032
49033 2006-10-02  Eric Blake  <ebb9@byu.net>
49034
49035         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49036         definition in 2.60+.
49037
49038 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49039
49040         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49041         checks.
49042
49043 2006-10-02  Bruno Haible  <bruno@clisp.org>
49044
49045         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49046         to the AUTOMAKE_OPTIONS.
49047         Reported by Jim Meyering.
49048
49049 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49050
49051         Work around bug in Solaris 10 /proc file system:
49052         /proc/self/fd/NNN/.. isn't the parent directory of
49053         the directory whose file descriptor is NNN.  This needs to
49054         be worked around at run time, not compile time, since a
49055         program might be built on Solaris 8, where things work, and
49056         run on Solaris 10.
49057         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49058         to use the following interface instead:
49059         (OPENAT_BUFFER_SIZE): New macro.
49060         (openat_proc_name): New function.
49061         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49062         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49063         Likewise.
49064         * lib/openat-proc.c: New file.
49065         * modules/openat (Files): Add lib/openat-proc.c.
49066         (Depends-on): Add same-inode, stdbool.
49067         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49068
49069 2006-09-29  Bruno Haible  <bruno@clisp.org>
49070
49071         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49072         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49073         argument. Set stdout_closed before testing for ferror, not after.
49074         (fwriteerror, fwriteerror_no_ebadf): New functions.
49075
49076 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49077
49078         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49079
49080 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49081
49082         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49083         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49084
49085 2006-09-28  Jim Meyering  <jim@meyering.net>
49086
49087         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49088         Include <unistd.h>.
49089
49090 2006-09-28  Bruno Haible  <bruno@clisp.org>
49091
49092         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49093         * modules/linkedhash-list (Depends-on): Likewise.
49094         * modules/rbtreehash-list (Depends-on): Likewise.
49095
49096 2006-09-28  Bruno Haible  <bruno@clisp.org>
49097
49098         * lib/strndup.h: Simplify the redefinition of strndup.
49099         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49100         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49101
49102 2006-09-28  Bruno Haible  <bruno@clisp.org>
49103
49104         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49105         * lib/gl_linkedhash_list.c: Likewise.
49106         * lib/gl_rbtreehash_list.c: Likewise.
49107
49108 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49109
49110         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49111         getaddrinfo.
49112
49113         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49114         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49115         it causes <stdio_ext.h> to cause a compile-time error.
49116         Problem reported by Nelson H. F. Beebe.
49117         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49118         of HAVE_DECL___PENDING.
49119
49120         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49121         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49122         declaration.
49123
49124 2006-09-27  Jim Meyering  <jim@meyering.net>
49125
49126         This file could end up with a definition for a function
49127         named __strndup, rather than rpl_strndup on a system with
49128         incomplete weak_alias support.
49129         * lib/strndup.c (strndup): Rename from __strndup.
49130         Remove #defines that used to map __strndup to strndup.
49131         Don't use K&R prototypes.
49132         Remove LIBC-related code, since this file is not sync'd with glibc.
49133         * lib/strndup.h: Revamp, accordingly.
49134         * m4/strndup.m4: Modernize.
49135
49136 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49137
49138         * modules/savewd (Depends-on): Add 'raise'.
49139         * lib/savewd.c: Include <signal.h>, for 'raise'.
49140
49141 2006-09-26  Jim Meyering  <jim@meyering.net>
49142
49143         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49144         when we detect Darwin 8.7.0's acl_get_file bug.
49145         Rearrange to perform the new (below) run-test while $LIBS
49146         contains any acl-related library.  Set USE_ACL at the end.
49147         (gl_ACL_GET_FILE): New function.
49148
49149 2006-09-26  Eric Blake  <ebb9@byu.net>
49150
49151         * lib/verror.c: Include <config.h> unconditionally.
49152
49153 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49154
49155         * modules/clock-time (Maintainer): Add self.
49156         * modules/getlogin_r (Depends-on): Add extensions.
49157
49158 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49159
49160         * modules/clock-time: New module.
49161         * modules/nanosleep (Depends-on): Add clock-time.
49162         * modules/gethrxtime (Depends-on): Likewise.
49163         * modules/gettime (Depends-on): Likewise.
49164         * modules/settime (Depends-on): Likewise.
49165
49166         * modules/fts-lgpl: Depend on openat.
49167         * modules/mkancesdirs: Depend on savewd.
49168         * modules/mkdir-p: Likewise.
49169
49170 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49171
49172         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49173
49174         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49175         `gl_have_arbitrary_file_name_length_limit' to
49176         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49177         actually works between configure runs.
49178
49179 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49180             Bruno Haible  <bruno@clisp.org>
49181
49182         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49183
49184 2006-09-25  Jim Meyering  <jim@meyering.net>
49185
49186         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49187         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49188
49189 2006-09-25  Eric Blake  <ebb9@byu.net>
49190
49191         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49192         exec's in 2006-09-18 patch when shuffling fds.
49193
49194 2006-09-25  Bruno Haible  <bruno@clisp.org>
49195
49196         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49197         Reported by Jim Meyering.
49198
49199 2006-09-24  Jim Meyering  <jim@meyering.net>
49200
49201         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49202         compare a pointer against a literal "0".  That caused failures with
49203         at least HP-UX's hpcc.
49204
49205 2006-09-22  Simon Josefsson  <jas@extundo.com>
49206
49207         * modules/gc-sha1:
49208         * modules/gc-md4:
49209         * modules/gc-hmac-sha1:
49210         * modules/gc-hmac-md5:
49211         * modules/gc-des:
49212         * modules/gc-arcfour: Distribute more files.
49213
49214 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49215
49216         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49217         (gl_linked_iterator_from_to): Initialize struct completely.
49218         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49219         (gl_tree_iterator_from_to): Likewise
49220         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49221         * lib/gl_array_list.c [lint] (gl_array_iterator)
49222         (gl_array_iterator_from_to): Likewise.
49223         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
49224         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
49225         (gl_carray_iterator_from_to): Likewise.
49226
49227         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
49228         * lib/md4.c (md4_process_block): Remove unused variable.
49229         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
49230         parentheses for clarity.
49231
49232 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49233
49234         * modules/bison-i18n (Depends-on): Add gettext.
49235
49236 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49237
49238         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
49239         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
49240         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
49241         also add missing comma that caused broken test.
49242         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
49243         stdlib.h, for `abort'.
49244         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
49245         variables.
49246         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
49247         include unistd.h if present, for `rmdir'.
49248         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
49249         variables.
49250         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
49251         in the process include standard headers for prototypes.
49252         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
49253         gets declared on GNU/Linux.
49254         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
49255         unistd.h, for `rmdir'.
49256         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
49257
49258         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
49259         always true.
49260         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
49261
49262         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49263
49264 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49265
49266         * gnulib-tool (func_version): Create output all at once.  This
49267         may help avoid triggering unnecessary SIGPIPEs, and at any
49268         rate it doesn't hurt.
49269
49270 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49271             Bruno Haible  <bruno@clisp.org>
49272
49273         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49274         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49275         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49276
49277         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49278         (gl_FUNC_VASPRINTF): Invoke it.
49279
49280 2006-09-22  Bruno Haible  <bruno@clisp.org>
49281
49282         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49283         getloadavg.c as first argument.
49284
49285 2006-09-22  Bruno Haible  <bruno@clisp.org>
49286
49287         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49288         at the beginning of the gl_INIT macro.
49289         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49290         gl_GETLOADAVG.
49291
49292 2006-09-22  Bruno Haible  <bruno@clisp.org>
49293
49294         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49295         module.
49296         Suggested by Ralf Wildenhues.
49297
49298 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49299
49300         Import this patch from libc:
49301
49302         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49303
49304         * lib/regex_internal.c (re_string_reconstruct): Handle
49305         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49306         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49307         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49308         re_string_context_at.
49309
49310         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49311         now requires it.
49312         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49313         gl_REGEX now does it for us.
49314         (gl_REGEX): Add test taken from
49315         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49316
49317         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49318         Check that large offsets work.  Modernize Autoconf usages.
49319         Prefer "yes" to mean a good thing rather than a bad.
49320         Don't put "#define mkstemp" in config.h, as this might interfere
49321         with standard system headers that "#define mkstemp mkstemp64".
49322
49323         * modules/mkstemp (Depends-on): Add extensions, so that
49324         mkstemp is visible on some platforms.
49325         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49326         (Include): Change to "mkstemp.h" from <stdlib.h>.
49327         (Files): Add mkstemp.h.
49328
49329         * lib/mkstemp.h: New file, since some standard headers
49330         #define mkstemp.
49331         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49332         Include "mkstemp.h".
49333         Make the _LIBC code resemble glibc original more,
49334         e.g., use K&R style.
49335         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49336         (mkstemp): Remove, since mkstemp.h does this for us.
49337         * lib/stdlib--.h: Include mkstemp.h.
49338
49339         Import this patch from libc:
49340
49341         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49342
49343         * lib/tempname.c (__gen_tempname): Change attempts_min
49344         into a macro.  Use preprocessor to decide how to initialize
49345         attempts [Coverity CID 67].
49346
49347 2006-09-20  Bruno Haible  <bruno@clisp.org>
49348
49349         * lib/mkdtemp.c: Import from libc.
49350         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49351                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49352                 attempts_min into a macro.  Use preprocessor to decide how to
49353                 initialize attempts [Coverity CID 67].
49354         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49355                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49356                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49357
49358 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49359
49360         * gnulib-tool (func_exit): New function, to allow to pass the
49361         exit status portably through the trap.  Use everywhere.
49362         (--help, --version): Signal a write error.
49363         (trap): catch SIGPIPE, for write errors.
49364         Exit at the end of the trap, with the correct exit status.
49365
49366 2006-09-19  Karl Berry  <karl@gnu.org>
49367
49368         * doc/gnulib.texi: note about the license texinfo files.
49369
49370 2006-09-19  Eric Blake  <ebb9@byu.net>
49371
49372         * gnulib-tool: Avoid space-tab.
49373
49374 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49375
49376         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49377         that prevented coreutils 6.1 from building.  Problem reported
49378         by Petter Reinholdtsen.
49379
49380 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49381
49382         * gnulib-tool (avoidlist): Fix typo that broke options like
49383         --avoid=lock that are used by coreutils bootstrap.
49384
49385 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49386
49387         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49388         more systematically.
49389
49390 2006-09-18  Jim Meyering  <jim@meyering.net>
49391
49392         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
49393
49394 2006-09-18  Bruno Haible  <bruno@clisp.org>
49395
49396         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
49397
49398 2006-09-18  Bruno Haible  <bruno@clisp.org>
49399
49400         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
49401         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
49402         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
49403         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
49404         * m4/gettext.m4: Require autoconf >= 2.52.
49405         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
49406         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
49407         of gl_cv_header_inttypes_h.
49408
49409 2006-09-18  Bruno Haible  <bruno@clisp.org>
49410
49411         * lib/javaversion.c: Include configmake.h.
49412
49413 2006-09-18  Bruno Haible  <bruno@clisp.org>
49414
49415         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
49416         avoid that the while loops be executed in a subshell.
49417
49418 2006-09-18  Bruno Haible  <bruno@clisp.org>
49419
49420         * MODULES.html.sh (func_module): Break long lines.
49421         Suggested by Bruce Korb <bkorb@gnu.org>.
49422
49423 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49424
49425         Speed up by a factor of 1.12.
49426         * gnulib-tool (nl): New variable.
49427         (func_import): Rewrite include directive extraction to only read each
49428         directive once.
49429
49430 2006-09-17  Bruno Haible  <bruno@clisp.org>
49431
49432         * modules/javaversion (Makefile.am): Remove DEFS setting.
49433         (Depends-on): Add configmake, for PKGDATADIR definition.
49434
49435 2006-09-17  Bruno Haible  <bruno@clisp.org>
49436
49437         * gnulib-tool (func_create_testdir): Rewrite all files at once.
49438
49439 2006-09-17  Bruno Haible  <bruno@clisp.org>
49440
49441         * gnulib-tool (func_append): New function, stolen from libtool.m4.
49442         (func_modules_transitive_closure, func_modules_add_dummy,
49443         func_modules_to_filelist, func_import, func_create_testdir,
49444         func_create_megatestdir, ...): Use it wherever possible.
49445         Suggested by Ralf Wildenhues.
49446
49447 2006-09-16  Karl Berry  <karl@gnu.org>
49448
49449         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
49450         to avoid sectioning errors.
49451         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
49452         [ifinfo]: blank line after @center-ed titles.
49453         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
49454         Spell FSF address consistently with others.
49455         (These changes approved by rms.)
49456
49457 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49458
49459         Speed up by a factor of 1.61.
49460         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
49461         already checked module names again.
49462
49463 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49464
49465         Speed up by a factor of 1.13.
49466         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
49467         for new_files, and the input to func_add_or_update.
49468
49469 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49470
49471         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
49472         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
49473
49474 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49475
49476         * modules/mkancesdirs (Depends-on): Add fcntl.
49477         * modules/savewd: New file.
49478         * MODULES.html.sh (File system functions): Add savewd.
49479
49480         * modules/configmake (Makefile.am): Add support for the
49481         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
49482
49483 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49484
49485         * m4/savewd.m4: New file.
49486
49487 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49488
49489         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
49490         (dirchownmod): New arg FD.  All callers changed.
49491         Use FD rather than opening the directory ourself, as opening is
49492         now the caller's responsibility.
49493         * lib/dirchownmod.h: Likewise.
49494         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
49495         hosts that require <sys/types.h> before <sys/stat.h>.  Include
49496         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
49497         (test_dir): Remove.
49498         (mkancesdirs): Return length of prefix of FILE that has already
49499         been made, or -2 if there is a child doing the work.  Redo
49500         algorithm so that it is O(N) rather than O(N**2).  Optimize away
49501         ".", and treat ".." specially since it might stray back into
49502         already-created areas.  Use a subprocess if necessary.  New arg
49503         WD; all users changed.  MAKE_DIR function should now return 1
49504         if it creates a directory that is not readable.  Return -2 if
49505         a child process is spun off.
49506         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
49507         Adjust signature to match code.
49508         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
49509         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
49510         all users changed.
49511         * lib/savewd.c, lib/savewd.h: New files.
49512
49513 2006-09-15  Jim Meyering  <jim@meyering.net>
49514
49515         * modules/rename-dest-slash: New module.
49516         * MODULES.html.sh (posix_compat): Add it here.
49517
49518         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
49519
49520 2006-09-15  Jim Meyering  <jim@meyering.net>
49521
49522         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
49523         file.
49524
49525         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
49526
49527 2006-09-15  Jim Meyering  <jim@meyering.net>
49528
49529         * lib/rename-dest-slash.c (has_trailing_slash): Use
49530         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
49531         (rpl_rename_dest_slash): Perform the cheaper trailing slash
49532         test before testing whether SRC is a directory.
49533         Suggestions from Bruno Haible.
49534
49535         Avoid a warning about an unused variable.
49536         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
49537         into the #ifdef block where it's used.
49538
49539         * lib/rename-dest-slash.c: New file.
49540
49541 2006-09-14  Bruno Haible  <bruno@clisp.org>
49542
49543         * lib/allocsa.c: Include <config.h> unconditionally.
49544         * lib/asnprintf.c: Likewise.
49545         * lib/asprintf.c: Likewise.
49546         * lib/c-strcasecmp.c: Likewise.
49547         * lib/c-strcasestr.c: Likewise.
49548         * lib/c-strncasecmp.c: Likewise.
49549         * lib/c-strstr.c: Likewise.
49550         * lib/classpath.c: Likewise.
49551         * lib/clean-temp.c: Likewise.
49552         * lib/concatpath.c: Likewise.
49553         * lib/copy-file.c: Likewise.
49554         * lib/csharpcomp.c: Likewise.
49555         * lib/csharpexec.c: Likewise.
49556         * lib/execute.c: Likewise.
49557         * lib/fatal-signal.c: Likewise.
49558         * lib/findprog.c: Likewise.
49559         * lib/fwriteerror.c: Likewise.
49560         * lib/gl_array_list.c: Likewise.
49561         * lib/gl_array_oset.c: Likewise.
49562         * lib/gl_avltree_list.c: Likewise.
49563         * lib/gl_avltree_oset.c: Likewise.
49564         * lib/gl_avltreehash_list.c: Likewise.
49565         * lib/gl_carray_list.c: Likewise.
49566         * lib/gl_linked_list.c: Likewise.
49567         * lib/gl_linkedhash_list.c: Likewise.
49568         * lib/gl_list.c: Likewise.
49569         * lib/gl_oset.c: Likewise.
49570         * lib/gl_rbtree_list.c: Likewise.
49571         * lib/gl_rbtree_oset.c: Likewise.
49572         * lib/gl_rbtreehash_list.c: Likewise.
49573         * lib/imaxabs.c: Likewise.
49574         * lib/imaxdiv.c: Likewise.
49575         * lib/javacomp.c: Likewise.
49576         * lib/javaexec.c: Likewise.
49577         * lib/javaversion.c: Likewise.
49578         * lib/linebreak.c: Likewise.
49579         * lib/localcharset.c: Likewise.
49580         * lib/lock.c: Likewise.
49581         * lib/mbchar.c: Likewise.
49582         * lib/mbswidth.c: Likewise.
49583         * lib/mkdtemp.c: Likewise.
49584         * lib/pipe.c: Likewise.
49585         * lib/printf-args.c: Likewise.
49586         * lib/printf-parse.c: Likewise.
49587         * lib/progname.c: Likewise.
49588         * lib/progreloc.c: Likewise.
49589         * lib/readlink.c: Likewise.
49590         * lib/sh-quote.c: Likewise.
49591         * lib/stpcpy.c: Likewise.
49592         * lib/stpncpy.c: Likewise.
49593         * lib/strcasecmp.c: Likewise.
49594         * lib/strcasestr.c: Likewise.
49595         * lib/strcspn.c: Likewise.
49596         * lib/striconv.c: Likewise.
49597         * lib/strncasecmp.c: Likewise.
49598         * lib/strnlen1.c: Likewise.
49599         * lib/strstr.c: Likewise.
49600         * lib/strtok_r.c: Likewise.
49601         * lib/tls.c: Likewise.
49602         * lib/tmpdir.c: Likewise.
49603         * lib/unicodeio.c: Likewise.
49604         * lib/unsetenv.c: Likewise.
49605         * lib/vasnprintf.c: Likewise.
49606         * lib/vasprintf.c: Likewise.
49607         * lib/wait-process.c: Likewise.
49608         * lib/xallocsa.c: Likewise.
49609         * lib/xsetenv.c: Likewise.
49610         * lib/xstriconv.c: Likewise.
49611
49612 2006-09-13  Simon Josefsson  <jas@extundo.com>
49613
49614         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
49615         that internally, suggested by Ralf Wildenhues
49616         <Ralf.Wildenhues@gmx.de>.
49617
49618 2006-09-13  Simon Josefsson  <jas@extundo.com>
49619
49620         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
49621         @LIBOBJS@.
49622         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49623
49624 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49625
49626         * lib/_fpending.c: Include <config.h> unconditionally, since we no
49627         longer worry about uses that don't define HAVE_CONFIG_H.
49628         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
49629         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
49630         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
49631         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
49632         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
49633         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
49634         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
49635         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
49636         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
49637         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
49638         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
49639         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
49640         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
49641         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
49642         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
49643         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
49644         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
49645         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
49646         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
49647         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
49648         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
49649         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
49650         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
49651         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
49652         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
49653         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
49654         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
49655         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
49656         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
49657         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
49658         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
49659         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
49660         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
49661         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
49662         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
49663         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
49664         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
49665         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
49666         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
49667         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
49668         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
49669         Likewise.
49670
49671 2006-09-13  Eric Blake  <ebb9@byu.net>
49672
49673         * lib/getopt.c: Fix typo in last commit.
49674
49675 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49676
49677         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
49678         dgettext.
49679
49680 2006-09-12  Jim Meyering  <jim@meyering.net>
49681
49682         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
49683         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
49684         Reported by Nelson H. F. Beebe.
49685
49686 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49687
49688         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
49689         program_invocation_name and program_invocation_short_name are
49690         initialized.
49691         * lib/argp-namefrob.h: Move declarations of program_invocation_name
49692         and program_invocation_short_name to argp.h, so they are visible
49693         to user programs.
49694         * lib/argp.h: Likewise
49695
49696 2006-09-10  Bruno Haible  <bruno@clisp.org>
49697
49698         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49699         m4/inttypes_h.m4, m4/uintmax_t.m4.
49700
49701 2006-09-10  Bruno Haible  <bruno@clisp.org>
49702
49703         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
49704         gl_AC_TYPE_UINTMAX_T.
49705
49706 2006-09-10  Bruno Haible  <bruno@clisp.org>
49707
49708         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
49709
49710 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49711
49712         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
49713         convention.  Text proposed by Bruno Haible.
49714         (struct argp_option): Document the use of N_() wrappers.
49715
49716         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
49717         '\v', and translate the two parts separately, instead of feeding
49718         the whole string to gettext.  This allows to exclude
49719         '\v' from the strings visible to the translator by writing doc
49720         strings as N_("..") "\v" N_("..").
49721
49722 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
49723
49724         * config/srclist.txt: Undo latest change; the bug was fixed.
49725
49726 2006-09-09  Bruno Haible  <bruno@clisp.org>
49727
49728         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
49729         assignments if building a library without libtool.
49730         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
49731         in func_emit_lib_Makefile_am.
49732         (func_import): When building a static library libfoo.a, arrange to
49733         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
49734         (func_create_testdir): Likewise.
49735         * modules/gc (configure.ac, Makefile.am): If building statically,
49736         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
49737         * modules/iconvme (configure.ac, Makefile.am): Likewise.
49738         * modules/striconv (configure.ac, Makefile.am): Likewise.
49739         Based on a suggestion by Ralf Wildenhues.
49740
49741 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49742
49743         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49744         Check for unistd.h too, since Autoconf doesn't assume POSIX.
49745         Also:
49746
49747         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49748         Add year_2050_test to catch glibc bug 2821
49749         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49750
49751         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49752         Prefer #ifdef to #if.
49753
49754         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
49755         Return from 'main' instead of calling 'exit'.
49756
49757 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49758
49759         * lib/mktime.c (guess_time_tm): Fix bug where mktime
49760         returned the maximum time_t value rather than (time_t) -1.
49761         Problem originally reported by William Bardwell
49762         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49763
49764         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49765         Moved to here ...
49766         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49767         ... from here.
49768
49769 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49770
49771         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
49772         2821 is fixed.
49773
49774 2006-09-08  Jim Meyering  <jim@meyering.net>
49775
49776         Don't make generated files read-only.  That would bother too many
49777         people.  However, do retain the ability to work when targets are
49778         read-only: remove the destination and temporary files before writing
49779         them (when generated via sed or echo), or by using the -f option for
49780         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
49781         * modules/alloca-opt, modules/argz, modules/arpa_inet:
49782         * modules/byteswap, modules/configmake, modules/fcntl:
49783         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
49784         * modules/localcharset, modules/netinet_in, modules/poll:
49785         * modules/stdbool, modules/stdint, modules/sys_select:
49786         * modules/sys_socket, modules/sys_stat, modules/sysexits:
49787
49788 2006-09-08  Jim Meyering  <jim@meyering.net>
49789
49790         Avoid new build failure on FreeBSD 6.0.
49791         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
49792         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
49793         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
49794
49795 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49796
49797         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
49798
49799 2006-09-07  Jim Meyering  <jim@meyering.net>
49800
49801         Fix global typo in last change: use chmod u-w, not chmod u-x.
49802         Spotted by Paul Eggert and Bruce Korb.
49803         * modules/alloca-opt, modules/argz, modules/arpa_inet:
49804         * modules/byteswap, modules/configmake, modules/fcntl:
49805         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
49806         * modules/localcharset, modules/netinet_in, modules/poll:
49807         * modules/stdbool, modules/stdint, modules/sys_select:
49808         * modules/sys_socket, modules/sys_stat, modules/sysexits:
49809
49810 2006-09-06  Jim Meyering  <jim@meyering.net>
49811
49812         Make generated files be read-only.
49813         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
49814         Ensure that each generated file is now read-only.
49815         * modules/argz: Likewise.
49816         * modules/arpa_inet: Likewise.
49817         * modules/byteswap: Likewise.
49818         * modules/configmake: Likewise.
49819         * modules/fcntl: Likewise.
49820         * modules/fnmatch: Likewise.
49821         * modules/getopt: Likewise.
49822         * modules/glob: Likewise.
49823         * modules/inttypes: Likewise.
49824         * modules/netinet_in: Likewise.
49825         * modules/poll: Likewise.
49826         * modules/stdbool: Likewise.
49827         * modules/stdint: Likewise.
49828         * modules/sys_select: Likewise.
49829         * modules/sys_socket: Likewise.
49830         * modules/sys_stat: Likewise.
49831         * modules/sysexits: Likewise.
49832         * modules/localcharset: Same as above, but continue using temporary
49833         file named "t-$@" (why different?) rather than the "$@-t" used
49834         everywhere else.
49835
49836         * modules/sysexits (Makefile.am): Replace literal occurrences
49837         of "sysexit.h" more readable, and more consistent, "$@".
49838
49839 2006-09-06  Bruno Haible  <bruno@clisp.org>
49840
49841         * modules/striconv: New file.
49842         * modules/xstriconv: New file.
49843         * MODULES.html.sh (Internationalization functions): Add striconv,
49844         xstriconv.
49845
49846 2006-09-06  Bruno Haible  <bruno@clisp.org>
49847
49848         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
49849         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
49850         not using libtool correctly.
49851
49852 2006-09-06  Bruno Haible  <bruno@clisp.org>
49853
49854         * lib/striconv.h: New file.
49855         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
49856         iconvstring.c.
49857         * lib/xstriconv.h: New file.
49858         * lib/xstriconv.c: New file.
49859
49860 2006-09-06  Bruno Haible  <bruno@clisp.org>
49861
49862         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49863         lib_..._LDFLAGS.
49864
49865 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49866
49867         * lib/argz_.h: Sync from Libtool.
49868
49869         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
49870                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49871
49872         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
49873
49874 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
49875
49876         * modules/trim: New file.
49877
49878 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
49879
49880         * lib/trim.h: New file.
49881         * lib/trim.c: New file.
49882
49883 2006-09-05  Bruno Haible  <bruno@clisp.org>
49884
49885         * MODULES.html.sh (String handling): Add trim.
49886
49887 2006-09-04  Karl Berry  <karl@gnu.org>
49888
49889         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
49890         until next release.
49891
49892 2006-09-03  Bruno Haible  <bruno@clisp.org>
49893
49894         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
49895         correctly.
49896
49897 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49898
49899         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
49900         not gl_GETLOADAVG.  Omit unneeded semicolons.
49901         Problems reported by Ralf Wildenhues in
49902         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
49903         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
49904         at the end, which is the usual gnulib style.
49905
49906         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
49907         of doing all the work ourselves.
49908         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
49909         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
49910
49911 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49912
49913         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
49914         Problem reported by Ralf Wildenhues in
49915         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
49916
49917         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
49918         HAVE_STRUCT_STATFS_F_FSTYPENAME.
49919
49920 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49921
49922         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
49923         yesterday's patch by changing test -n to test -z.
49924
49925 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49926
49927         * modules/getloadavg (Files): Add m4/getloadavg.m4.
49928         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
49929         the former is now obsolescent.
49930
49931         * modules/chdir-long (Depends-on): Add fcntl.
49932
49933 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49934
49935         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
49936         obsolescent, and programs should use gnulib instead.
49937         * m4/getloadavg.m4: New file, with contents taken from Autoconf
49938         but with prefixes changed.
49939
49940 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49941
49942         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
49943         or stdbool.h, because they might not exist while configuring.
49944
49945         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
49946         Don't include unistd.h or limits.h; not needed, since chdir-long.h
49947         does that for us.
49948         (O_DIRECTORY): Remove.
49949
49950 2006-08-31  Eric Blake  <ebb9@byu.net>
49951
49952         * gnulib-tool: Don't let emacs change spaces to TAB.
49953
49954 2006-08-31  Bruno Haible  <bruno@clisp.org>
49955
49956         * gnulib-tool: When calling func_import more than once, do it in a
49957         subshell.
49958         Reported by Eric Blake <ebb9@byu.net>.
49959
49960 2006-08-31  Bruno Haible  <bruno@clisp.org>
49961
49962         * gnulib-tool (nl): Remove variable.
49963         (sed_transform_lib_file): Use more robust test for config-h module.
49964         (func_import): Fix typo in 2006-08-25 patch.
49965
49966 2006-08-31  Bruno Haible  <bruno@clisp.org>
49967
49968         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
49969         specified, augment Makefile.am variables instead of assigning them.
49970
49971 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49972
49973         Work around a bug in both the Linux and SunOS 64-bit kernels:
49974         nanosleep mishandles sleeps for longer than 2**31 seconds.
49975         Problem reported by Frank v Waveren in
49976         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
49977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
49978         Check for nanosleep bug.
49979         (LIB_NANOSLEEP): Append clock_gettime library if needed.
49980
49981 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49982
49983         Work around a bug in both the Linux and SunOS 64-bit kernels:
49984         nanosleep mishandles sleeps for longer than 2**31 seconds.
49985         Problem reported by Frank v Waveren in
49986         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
49987         * lib/nanosleep.c (BILLION): New constant.
49988         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
49989         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
49990         implementation.
49991
49992 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49993
49994         * modules/nanosleep (Depends-on): Add gettime.
49995
49996 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49997         and Simon Josefsson  <jas@extundo.com>
49998         and Oskar Liljeblad  <oskar@osk.mine.nu>
49999
50000         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50001         * gnulib-tool (func_import): New license type 'unmodifiable license
50002         text'.
50003         * modules/fdl: Use it.  Longer description.
50004         * module/gpl, module/lgpl: New files.
50005
50006 2006-08-30  Jim Meyering  <jim@meyering.net>
50007
50008         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50009         shadowing the parameter.
50010
50011 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50012
50013         Sync from Libtool:
50014
50015         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50016
50017         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50018         sharing with gnulib.  Report by Eric Blake.
50019
50020 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50021
50022         * modules/isapipe: New file.
50023         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50024
50025 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50026
50027         * modules/configmake (Makefile.am): Add a comment, and omit
50028         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50029         by Bruno Haible.
50030
50031 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50032
50033         * m4/isapipe.m4: New file.
50034
50035 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50036
50037         * lib/isapipe.c, lib/isapipe.h: New files.
50038
50039 2006-08-29  Jim Meyering  <jim@meyering.net>
50040
50041         * modules/configmake (Makefile.am): Make configmake.h depend on
50042         Makefile.  Otherwise, a stale configmake.h could hang around.
50043
50044 2006-08-29  Eric Blake  <ebb9@byu.net>
50045
50046         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50047         resolution of upstream bug 3044.
50048
50049 2006-08-29  Bruno Haible  <bruno@clisp.org>
50050
50051         * modules/localcharset (Depends-on): Add configmake.
50052         (Makefile.am): Remove setting of LIBDIR through DEFS.
50053
50054 2006-08-29  Bruno Haible  <bruno@clisp.org>
50055
50056         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50057         defined.
50058
50059 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50060
50061         * modules/fcntl: New file.
50062         * modules/chdir-safer (Depends-on): Add fcntl.
50063         * modules/fts: Likewise.
50064         * modules/mkdir-p: Likewise.
50065
50066         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50067         This undoes the most recent change, since we're now addressing the
50068         problem in a different way.
50069
50070         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50071         into output, since the output might be called Makefile.am even
50072         if $makefile_name is something different.
50073         (func_import): Use $makefile_am rather than
50074         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50075         empty.
50076
50077         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50078
50079 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50080
50081         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50082         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50083         recent change to stdint.m4, since we're now addressing the problem in a
50084         different way.
50085
50086 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50087
50088         * m4/fcntl_h.m4: New file.
50089
50090 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50091
50092         * lib/fcntl_.h: New file.
50093         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50094         the fcntl module.
50095         * lib/dirchownmod.c: Likewise.
50096         * lib/fts.c: Likewise.
50097
50098         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50099         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50100         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50101         just before including <inttypes.h>, to avoid circular inclusion.
50102
50103 2006-08-28  Jim Meyering  <jim@meyering.net>
50104
50105         * doc/visibility.texi: Actually read and correct the grammar of the
50106         sentence affected by yesterday's change.
50107
50108 2006-08-28  Eric Blake  <ebb9@byu.net>
50109
50110         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50111         needs wrapper.
50112
50113 2006-08-28  Eric Blake  <ebb9@byu.net>
50114
50115         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50116
50117 2006-08-28  Eric Blake  <ebb9@byu.net>
50118
50119         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50120
50121 2006-08-28  Bruno Haible  <bruno@clisp.org>
50122
50123         * modules/c-strstr: New file, from GNU gettext.
50124         * MODULES.html.sh (String handling): Add c-strstr.
50125
50126 2006-08-28  Bruno Haible  <bruno@clisp.org>
50127
50128         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50129         macros.
50130         Reported by Eric Blake.
50131
50132 2006-08-28  Bruno Haible  <bruno@clisp.org>
50133
50134         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50135         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50136         * lib/vasprintf.c: Include errno.h, limits.h.
50137         (EOVERFLOW): New fallback definition.
50138         (vasprintf): Test here whether the string length is > INT_MAX.
50139         * lib/vsnprintf.c: Include errno.h, limits.h.
50140         (EOVERFLOW): New fallback definition.
50141         (vsnprintf): Fix bug when generated string was too long for the buffer.
50142         Test here whether the string length is > INT_MAX.
50143
50144 2006-08-28  Bruno Haible  <bruno@clisp.org>
50145
50146         * lib/inttypes_.h (SCNX*): Remove definitions.
50147         Reported by Eric Blake.
50148
50149 2006-08-28  Bruno Haible  <bruno@clisp.org>
50150
50151         * lib/c-strstr.h: New file, from GNU gettext.
50152         * lib/c-strstr.c: New file, from GNU gettext.
50153
50154 2006-08-28  Bruno Haible  <bruno@clisp.org>
50155
50156         * gnulib-tool: Reorder some statements.
50157
50158 2006-08-28  Bruno Haible  <bruno@clisp.org>
50159
50160         * gnulib-tool: New option --makefile-name.
50161         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50162         $makefile_name.
50163         (func_import): Write $makefile_name to the cache file, and read it from
50164         there unless explicitly specified. Use $makefile_name as file name
50165         instead of Makefile.am. Adjust the recommendations accordingly.
50166
50167 2006-08-28  Bruno Haible  <bruno@clisp.org>
50168
50169         * gnulib-tool (func_verify_module): Check against misapplying patch.
50170
50171 2006-08-28  Bruno Haible  <bruno@clisp.org>
50172
50173         * gnulib-tool (func_relativize, func_relconcat): New functions.
50174         Give an error if --local-dir is given with --update.
50175         Remove trailing slashes from $local_gnulib_dir.
50176         (func_import): Store the relativized $local_gnulib_dir in
50177         gnulib-cache.m4, and read it from there if not specified explicitly.
50178
50179 2006-08-28  Bruno Haible  <bruno@clisp.org>
50180
50181         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50182         is the current directory. Respect also $local_gnulib_dir.
50183
50184 2006-08-28  Bruno Haible  <bruno@clisp.org>
50185             Simon Josefsson  <jas@extundo.com>
50186
50187         BeOS portability.
50188         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50189
50190 2006-08-27  Jim Meyering  <jim@meyering.net>
50191
50192         * doc/visibility.texi: Remove duplicate word: "pointer".
50193
50194 2006-08-26  Bruno Haible  <bruno@clisp.org>
50195
50196         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50197         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50198         (Makefile.am): Create inttypes.h from inttypes_.h.
50199         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50200
50201         * modules/imaxabs: New file.
50202
50203         * modules/imaxdiv: New file.
50204
50205 2006-08-26  Bruno Haible  <bruno@clisp.org>
50206
50207         * m4/inttypes.m4: New file.
50208         * m4/_inttypes_h.m4: Remove file.
50209         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50210         PRI_MACROS_BROKEN.
50211         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50212
50213         * m4/imaxabs.m4: New file.
50214
50215         * m4/imaxdiv.m4: New file.
50216
50217 2006-08-26  Bruno Haible  <bruno@clisp.org>
50218
50219         * lib/inttypes_.h: New file.
50220         * lib/inttypes.h: Remove file.
50221         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50222
50223         * lib/imaxabs.c: New file.
50224
50225         * lib/imaxdiv.c: New file.
50226
50227 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50228
50229         New config-h module, so that "make" output needn't be cluttered
50230         by -DHAVE_CONFIG_H.
50231         * MODULES.html.sh (Support for building libraries and executables):
50232         Add config-h.
50233         * modules/config-h: New file.
50234         * gnulib-tool (nl, sed_transform_lib_file): New vars.
50235         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
50236         the config-h module is used.
50237
50238         New configmake module, so that "make" output needn't be cluttered
50239         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
50240         * MODULES.html.sh (Support for building libraries and executables):
50241         Add configmake.
50242         * modules/configmake: New file.
50243
50244 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50245
50246         * m4/config-h.m4: New file.
50247
50248 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50249
50250         * config/srclist.txt: Add elisp-comp.
50251
50252 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50253
50254         * MODULES.html.sh (Support for building libraries and executables):
50255         Add elisp-comp.
50256         * build-aux/elisp-comp: New file.
50257         * modules/elisp-comp: New file.
50258
50259 2006-08-24  Bruno Haible  <bruno@clisp.org>
50260
50261         * gnulib-tool (func_create_testdir): Use non-default values of
50262         sourcebase and m4base.
50263
50264 2006-08-24  Bruno Haible  <bruno@clisp.org>
50265
50266         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50267         HTML structure.
50268
50269 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50270
50271         * modules/openat (Depends-on): Add lchown.
50272
50273 2006-08-23  Bruno Haible  <bruno@clisp.org>
50274
50275         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50276         of gl_LOCK_EARLY instead of gl_LOCK.
50277
50278 2006-08-23  Bruno Haible  <bruno@clisp.org>
50279
50280         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50281         on OSF/1 to no.
50282         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50283
50284 2006-08-23  Bruno Haible  <bruno@clisp.org>
50285
50286         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50287         as unusable.
50288
50289         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50290         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50291         (gl_LOCK): New macro.
50292
50293 2006-08-22  Simon Josefsson  <jas@extundo.com>
50294
50295         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50296         to md5 module.
50297
50298 2006-08-22  Simon Josefsson  <jas@extundo.com>
50299
50300         * MODULES.html.sh: Add "Support for maintaining and release
50301         projects".
50302
50303         * build-aux/gnupload: New file, from coreutils.
50304
50305 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50306
50307         Avoid the need for AC_LIBSOURCES in m4 macros.
50308         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50309         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50310         * modules/check-version (EXTRA_DIST): Add check-version.h.
50311         * modules/crc (EXTRA_DIST): Add crc.h.
50312         * modules/des (EXTRA_DIST): Add des.h.
50313         * modules/gc (EXTRA_DIST): Add gc.h.
50314         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50315         * modules/getline (EXTRA_DIST): Add getline.h.
50316         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50317         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50318         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50319         * modules/md2 (EXTRA_DIST): Add md2.h.
50320         * modules/md4 (EXTRA_DIST): Add md4.h.
50321         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50322         * modules/read-file (EXTRA_DIST): Add read-file.h.
50323         * modules/readline (EXTRA_DIST): Add readline.h.
50324         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50325         rijndael-api-fst.h.
50326
50327 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50328
50329         * m4/rijndael.m4 (gl_ARCFOUR):
50330         * m4/arctwo.m4 (gl_ARCTWO):
50331         * m4/check-version.m4 (gl_CHECK_VERSION):
50332         * m4/crc.m4 (gl_CRC):
50333         * m4/des.m4 (gl_DES):
50334         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50335         * m4/gc.m4 (gl_GC):
50336         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50337         * m4/getline.m4 (gl_FUNC_GETLINE):
50338         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50339         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50340         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50341         * m4/md2.m4 (gl_MD2):
50342         * m4/md4.m4 (gl_MD4):
50343         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50344         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50345         * m4/readline.m4 (gl_FUNC_READLINE):
50346         * m4/rijndael.m4 (gl_RIJNDAEL):
50347         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50348         to get the necessary .h files and whatnot.
50349
50350 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50351
50352         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50353         gnulib rather than the other way around.
50354         * config/srclistvars.sh (COREUTILS): Remove.
50355
50356 2006-08-22  Jim Meyering  <jim@meyering.net>
50357
50358         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50359
50360         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50361
50362 2006-08-22  Eric Blake  <ebb9@byu.net>
50363
50364         * modules/regexprops-generic: New file.
50365         * MODULES.html.sh (Support for building documentation): List it.
50366
50367 2006-08-22  Eric Blake  <ebb9@byu.net>
50368
50369         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50370         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50371         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50372         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50373
50374 2006-08-22  Bruno Haible  <bruno@clisp.org>
50375
50376         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50377         and lib_LTLIBRARIES like the other lib_* variables.
50378
50379 2006-08-22  Bruno Haible  <bruno@clisp.org>
50380
50381         * build-aux/x-to-1.in: New file, from GNU gettext.
50382
50383 2006-08-22  Bruno Haible  <bruno@clisp.org>
50384
50385         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50386         <utmpx.h> exists.
50387
50388 2006-08-22  Bruno Haible  <bruno@clisp.org>
50389
50390         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
50391         <utmpx.h> exists.
50392
50393 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50394
50395         BeOS portability.
50396         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
50397         exist.
50398         Problem reported by Bruno Haible.
50399
50400 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50401
50402         Avoid the need for AC_LIBSOURCES in m4 macros.
50403         * modules/acl (EXTRA_DIST): Add acl.h.
50404         * modules/argmatch (Files): Add m4/argmatch.m4.
50405         (configure.ac): Add gl_ARGMATCH.
50406         (EXTRA_DIST): Renamed from lib_SOURCES, for
50407         consistency with the other modules.  Remove argmatch.c.
50408         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
50409         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
50410         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
50411         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
50412         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
50413         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
50414         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
50415         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
50416         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
50417         * modules/closeout (EXTRA_DIST): Add closeout.h.
50418         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
50419         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
50420         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
50421         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
50422         dirname.h; remove basename.c and stripslash.c.
50423         * modules/exclude (EXTRA_DIST): Add exclude.h.
50424         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
50425         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
50426         * modules/file-type (EXTRA_DIST): Add file-type.h.
50427         * modules/filemode (EXTRA_DIST): Add filemode.h.
50428         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
50429         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50430         * modules/fpending (EXTRA_DIST): Add __fpending.h.
50431         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
50432         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
50433         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
50434         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
50435         * modules/getdate (EXTRA_DIST): Add getdate.c.
50436         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
50437         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
50438         * modules/getpass (EXTRA_DIST): Add getpass.h.
50439         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
50440         * modules/group-member (EXTRA_DIST): Add group-member.h.
50441         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
50442         * modules/hash (EXTRA_DIST): Add hash.h.
50443         * modules/human (EXTRA_DIST): Add human.h.
50444         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
50445         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
50446         * modules/lchown (EXTRA_DIST): Add lchown.h.
50447         * modules/long-options (EXTRA_DIST): Add long-options.h.
50448         * modules/lstat (EXTRA_DIST): Add lstat.h.
50449         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
50450         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
50451         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
50452         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
50453         * modules/memxor (EXTRA_DIST): Add memxor.h.
50454         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
50455         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
50456         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
50457         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
50458         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
50459         * modules/physmem (EXTRA_DIST): Add physmem.h.
50460         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
50461         * modules/posixver (EXTRA_DIST): Add posixver.h.
50462         * modules/quote (EXTRA_DIST): Add quote.h.
50463         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
50464         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
50465         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
50466         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
50467         regex_internal.h regexec.c.
50468         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
50469         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
50470         * modules/same (EXTRA_DIST): Add same.h.
50471         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
50472         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
50473         * modules/savedir (EXTRA_DIST): Add savedir.h.
50474         * modules/sha1 (EXTRA_DIST): Add sha1.h.
50475         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
50476         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
50477         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
50478         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
50479         * modules/strdup (EXTRA_DIST): Add strdup.h.
50480         * modules/strftime (EXTRA_DIST): Add strftime.h.
50481         * modules/strndup (EXTRA_DIST): Add strndup.h.
50482         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
50483         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
50484         * modules/time_r (EXTRA_DIST): Add time_r.h.
50485         * modules/timespec (EXTRA_DIST): Add timespec.h.
50486         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50487         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
50488         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
50489         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
50490         * modules/userspec (EXTRA_DIST): Add userspec.h.
50491         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
50492         * modules/utimens (EXTRA_DIST): Add utimens.h.
50493         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
50494         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
50495         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
50496         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
50497         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
50498         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
50499         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
50500         * modules/yesno (EXTRA_DIST): Add yesno.h.
50501
50502 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50503
50504         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
50505
50506         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
50507         * m4/dev-ino.m4, same-inode.m4: Remove.
50508
50509         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
50510         * m4/acl.m4 (AC_FUNC_ACL):
50511         * m4/backupfile.m4 (gl_BACKUPFILE):
50512         * m4/c-strtod.m4 (gl_C99_STRTOLD):
50513         * m4/canon-host.m4 (gl_CANON_HOST):
50514         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50515         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
50516         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
50517         * m4/cloexec.m4 (gl_CLOEXEC):
50518         * m4/close-stream.m4 (gl_CLOSE_STREAM):
50519         * m4/closeout.m4 (gl_CLOSEOUT):
50520         * m4/dirfd.m4 (gl_FUNC_DIRFD):
50521         * m4/dirname.m4 (gl_DIRNAME):
50522         * m4/exclude.m4 (gl_EXCLUDE):
50523         * m4/exitfail.m4 (gl_EXITFAIL):
50524         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
50525         * m4/file-type.m4 (gl_FILE_TYPE):
50526         * m4/filemode.m4 (gl_FILEMODE):
50527         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
50528         * m4/fpending.m4 (gl_FUNC_FPENDING):
50529         * m4/fprintftime.m4 (gl_FPRINTFTIME):
50530         * m4/fts.m4 (gl_FUNC_FTS):
50531         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
50532         * m4/getdate.m4 (gl_GETDATE):
50533         * m4/gethrxtime.m4 (gl_GETHRXTIME):
50534         * m4/getpagesize.m4 (gl_GETPAGESIZE):
50535         * m4/getpass.m4 (gl_FUNC_GETPASS):
50536         * m4/gettime.m4 (gl_GETTIME):
50537         * m4/getugroups.m4 (gl_GETUGROUPS):
50538         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
50539         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
50540         * m4/hard-locale.m4 (gl_HARD_LOCALE):
50541         * m4/hash.m4 (gl_HASH):
50542         * m4/idcache.m4 (gl_IDCACHE):
50543         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
50544         * m4/lchown.m4 (gl_FUNC_LCHOWN):
50545         * m4/long-options.m4 (gl_LONG_OPTIONS):
50546         * m4/lstat.m4 (gl_FUNC_LSTAT):
50547         * m4/md5.m4 (gl_MD5):
50548         * m4/memcasecmp.m4 (gl_MEMCASECMP):
50549         * m4/memcoll.m4 (gl_MEMCOLL):
50550         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
50551         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
50552         * m4/memxor.m4 (gl_MEMXOR):
50553         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
50554         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
50555         * m4/modechange.m4 (gl_MODECHANGE):
50556         * m4/mountlist.m4 (gl_MOUNTLIST):
50557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50558         * m4/openat.m4 (gl_FUNC_OPENAT):
50559         * m4/pathmax.m4 (gl_PATHMAX):
50560         * m4/physmem.m4 (gl_PHYSMEM):
50561         * m4/posixtm.m4 (gl_POSIXTM):
50562         * m4/posixver.m4 (gl_POSIXVER):
50563         * m4/quote.m4 (gl_QUOTE):
50564         * m4/quotearg.m4 (gl_QUOTEARG):
50565         * m4/readtokens.m4 (gl_READTOKENS):
50566         * m4/readutmp.m4 (gl_READUTMP):
50567         * m4/regex.m4 (gl_REGEX):
50568         * m4/safe-read.m4 (gl_SAFE_READ):
50569         * m4/safe-write.m4 (gl_SAFE_WRITE):
50570         * m4/same.m4 (gl_SAME):
50571         * m4/save-cwd.m4 (gl_SAVE_CWD):
50572         * m4/savedir.m4 (gl_SAVEDIR):
50573         * m4/settime.m4 (gl_SETTIME):
50574         * m4/sha1.m4 (gl_SHA1):
50575         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
50576         * m4/stat-macros.m4 (gl_STAT_MACROS):
50577         * m4/stat-time.m4 (gl_STAT_TIME):
50578         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
50579         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
50580         * m4/strdup.m4 (gl_FUNC_STRDUP):
50581         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
50582         * m4/strndup.m4 (gl_FUNC_STRNDUP):
50583         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
50584         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
50585         * m4/time_r.m4 (gl_TIME_R):
50586         * m4/timespec.m4 (gl_TIMESPEC):
50587         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
50588         * m4/unlinkdir.m4 (gl_UNLINKDIR):
50589         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
50590         * m4/userspec.m4 (gl_USERSPEC):
50591         * m4/utimecmp.m4 (gl_UTIMECMP):
50592         * m4/utimens.m4 (gl_UTIMENS):
50593         * m4/xalloc.m4 (gl_XALLOC):
50594         * m4/xgetcwd.m4 (gl_XGETCWD):
50595         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
50596         * m4/xreadlink.m4 (gl_XREADLINK):
50597         * m4/xstrtod.m4 (gl_XSTRTOD):
50598         * m4/yesno.m4 (gl_YESNO):
50599         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50600         to get the necessary .h files and whatnot.
50601
50602 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
50603             Bruno Haible  <bruno@clisp.org>
50604
50605         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
50606         /bin/sh understanding of '!' conditional negation.
50607
50608 2006-08-21  Jim Meyering  <jim@meyering.net>
50609
50610         * modules/openat (Depends-on): Really alphabetize.
50611
50612         * modules/acl (Depends-on): Add error and quote.
50613
50614         * check-module (find_included_lib_files): Add at-func.c to the
50615         ok-to-include-more-than-once white list.
50616
50617         * modules/openat (Depends-on): Add lstat.  Alphabetize.
50618
50619 2006-08-21  Bruno Haible  <bruno@clisp.org>
50620
50621         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50622         Emit a pkgdata_DATA variable only if some snippets add contents to it.
50623         Reported by Martin Lambers <marlam@marlam.de>.
50624
50625 2006-08-21  Bruno Haible  <bruno@clisp.org>
50626
50627         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
50628         specify an installation location, don't emit a noinst_LIBRARIES or
50629         noinst_LTLIBRARIES assignment.
50630
50631 2006-08-21  Bruno Haible  <bruno@clisp.org>
50632
50633         BeOS portability.
50634         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
50635         BeOS has mbrtowc() but no <wctype.h>.
50636
50637 2006-08-21  Bruno Haible  <bruno@clisp.org>
50638
50639         BeOS portability.
50640         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
50641         exist.
50642
50643 2006-08-21  Bruno Haible  <bruno@clisp.org>
50644
50645         BeOS portability.
50646         * lib/mbchar.h: Include <wctype.h> only if it exists.
50647
50648 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50649
50650         Remove files that are no longer needed by their respective modules.
50651         * m4/obstack.m4: Remove.
50652         * m4/strerror_r.m4: Remove.
50653         * m4/uint32_t.m4: Remove.
50654         * m4/uintptr_t.m4: Remove.
50655         * m4/ullong_max.m4: Remove.
50656         * m4/xstrtoimax.m4: Remove.
50657         * m4/xstrtoumax.m4: Remove.
50658
50659         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
50660         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
50661         dependencies now capture this.
50662
50663         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
50664         Do not use AC_LIBSOURCES, since gnulib modules now do this.
50665         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
50666         * m4/human.m4 (gl_HUMAN): Likewise.
50667         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
50668         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
50669
50670         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
50671
50672         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
50673         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
50674         stdint.
50675         * m4/human.m4 (gl_HUMAN): Likewise.
50676         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
50677         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
50678         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50679         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50680         * m4/xstrtol (gl_XSTRTOL): Likewise.
50681
50682         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
50683         AC_TYPE_LONG_LONG_INT.
50684         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50685         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
50686         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
50687         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50688
50689         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
50690         on stdbool.
50691
50692         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
50693         (gl_PREREQ_XSTRTOUL): Remove.
50694
50695         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
50696
50697         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
50698         mode.
50699
50700 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50701
50702         Add and change modules to make it easier for coreutils to use
50703         gnulib-tool.
50704         * modules/backupfile (Files): Remove m4/d-ino.m4.
50705         (Depends-on): Add d-ino.
50706         * modules/cycle-check (Depends-on): Add stdint.
50707         (lib_SOURCES): Add cycle-check.h.
50708         * modules/d-ino: New module.
50709         * modules/d-type: New module.
50710         * modules/error (Files): Remove m4/strerror_r.m4.
50711         * modules/filemode (Files): Add m4/st_dm_mode.m4.
50712         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50713         m4/inttypes_h.m4, m4/uintmax_t.m4.
50714         (Depends-on): Add stdint.
50715         (lib_SOURCES): Add fsusage.h.
50716         * modules/getcwd (Files): Remove d-ino.m4.
50717         (Depends-on): Add d-ino.
50718         * modules/getndelim2 (Depends-on): Add stdint.
50719         * modules/glob (Files): Remove m4/d-type.m4.
50720         (Depends-on): Add d-type.
50721         * modules/host-os: New module.
50722         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
50723         m4/inttypes_h.m4, m4/uintmax_t.m4.
50724         * Depends-on: Add stdint.
50725         (lib_SOURCES): Add human.h.
50726         * modules/inttostr (Files): Remove m4/intmax_t.m4,
50727         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
50728         m4/uintmax_t.m4, m4/ulonglong.m4.
50729         (Depends-on): Add stdint.
50730         (EXTRA_DIST): Add inttostr.h.
50731         * modules/lchmod: New module.
50732         * modules/link-follow: New module.
50733         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
50734         (Depends-on): Add lchmod.
50735         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
50736         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
50737         (Depends-on): Add stdint.
50738         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
50739         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
50740         (Depends-on): Add stdint.
50741         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
50742         * modules/perl: New module.
50743         * modules/regex (Depends-on): Add stdint.
50744         * modules/rmdir-errno: New module.
50745         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50746         m4/intmax_t.m4.
50747         (Depends-on): Add stdint.
50748         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50749         m4/uintmax_t.m4.
50750         (Depends-on): Add stdint.
50751         * modules/unlink-busy: New module.
50752         * modules/utimecmp (Depends-on): Add stdint.
50753         * modules/uptime: New module.
50754         * modules/winsz-ioctl: New module.
50755         * modules/winsz-termios: New module.
50756         * modules/xnanosleep (Depends-on): Add nanosleep.
50757         * modules/ullong_max: Remove.
50758         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
50759         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
50760         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
50761         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
50762         (Depends-on): Add inttypes.
50763         (lib_SOURCES): Add xstrtol.h.
50764         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
50765         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
50766         * MODULES.html.sh: Move 'assert' into the assert section.
50767         Move 'dummy' into the linking section.
50768         Remove ullong_max.
50769         Add section for compatibility checks for POSIX:2001 functions,
50770         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
50771         winsz-ioctl, and winsz-termios into it.
50772         Add lchmod.
50773         Add top-level Misc section and put host-os, perl, and uptime
50774         into it.
50775
50776 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50777
50778         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
50779         now assume the stdint module.  Do not include inttypes.h.
50780         * lib/fsusage.h: Likewise.
50781         * lib/getndelim2.c: Likewise.
50782         * lib/human.h: Likewise.
50783         * lib/inttostr.h: Likewise.
50784         * lib/obstack.c: Likewise.
50785         * lib/regex_internal.h: Likewise.
50786         * lib/tempname.c: Likewise.
50787         * lib/utimecmp.c: Likewise.
50788         * lib/xstrtol.h: Likewise.
50789
50790         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
50791
50792         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
50793         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
50794         * lib/xtime.h: Likewise.
50795
50796 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50797
50798         * modules/openat (Files): Add lib/fchmodat.c.
50799         Fixes problem reported by Jay Youngman.
50800
50801 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50802
50803         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
50804         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
50805
50806 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50807             Bruno Haible  <bruno@clisp.org>
50808
50809         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
50810         and is a script that invokes bison. Tighten the code. Add comments.
50811
50812 2006-08-18  Jim Meyering  <jim@meyering.net>
50813
50814         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
50815         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
50816         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
50817         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
50818
50819 2006-08-18  Bruno Haible  <bruno@clisp.org>
50820
50821         * modules/bison-i18n: New file.
50822         * MODULES.html.sh (Internationalization functions): Add it.
50823
50824 2006-08-18  Bruno Haible  <bruno@clisp.org>
50825
50826         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
50827         sys/statvfs.h. When getmntinfo was found, check its declaration and
50828         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
50829
50830 2006-08-18  Bruno Haible  <bruno@clisp.org>
50831
50832         * m4/bison-i18n.m4: New file, from bison.
50833
50834 2006-08-18  Bruno Haible  <bruno@clisp.org>
50835
50836         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
50837         (ME_DUMMY): Treat "kernfs" as a dummy.
50838         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
50839
50840 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50841
50842         Update from coreutils.
50843
50844         2006-08-15  Jim Meyering  <jim@meyering.net>
50845
50846         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
50847
50848         2006-01-17  Jim Meyering  <jim@meyering.net>
50849
50850         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
50851
50852         2006-01-11  Jim Meyering  <jim@meyering.net>
50853
50854         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
50855         Check for the lchmod function.
50856
50857 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50858
50859         Update from coreutils.
50860
50861         * lib/__fpending.h: Add copyright notice.
50862         * lib/fprintftime.h: Likewise.
50863         * lib/savedir.c: Use (C) in copyright notice.
50864         * lib/savedir.h: Likewise.
50865
50866         2006-08-15  Jim Meyering  <jim@meyering.net>
50867
50868         * lib/at-func.c: New file, with the logic of all emulated at-functions.
50869         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
50870         in support of the EXPECTED_ERRNO macro.
50871         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
50872         definitions.  Instead, define the appropriate symbols and include
50873         "at-func.c".
50874         * lib/mkdirat.c (mkdirat): Likewise.
50875         * lib/fchmodat.c (fchmodat): Likewise.
50876         (ENOSYS): Remove definition.
50877         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
50878         it.  Don't include "unistd--.h" -- it wasn't ever used.
50879
50880         2006-01-17  Jim Meyering  <jim@meyering.net>
50881
50882         Rewrite fts.c not to change the current working directory,
50883         by using openat, fstatat, fdopendir, etc..
50884
50885         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
50886         (HAVE_OPENAT_SUPPORT): Define.
50887         [_LIBC] (fchdir): Don't undef or define; no longer used.
50888         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
50889         Now, this `function' always succeeds, and consumes its file descriptor
50890         parameter -- so callers must not close such FDs.  Update callers.
50891         (diropen_fd, opendirat, cwd_advance_fd): New functions.
50892         (diropen): Add parameter, SP.  Adjust all callers.
50893         Implement using diropen_fd, rather than open.
50894         (fts_open): Initialize new member, fts_cwd_fd.
50895         Remove fts_rft-setting code.
50896         (fts_close): Close fts_cwd_fd, if necessary.
50897         (__opendir2): Define in terms of opendir or opendirat,
50898         depending on whether the FST_NOCHDIR flag is set.
50899         (fts_build): Since fts_safe_changedir consumes its FD, and since
50900         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
50901         and close the dup'd file descriptor upon failure.
50902         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
50903         (fts_safe_changedir): Tweak semantics to reflect that this function
50904         now calls cwd_advance_fd and hence consumes its FD argument.
50905         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
50906         [struct FTS] (fts_rft): Remove now-unused member.
50907         [struct FTS] (fts_cycle.state): Improve comment.
50908
50909         * lib/openat.c (openat_needs_fchdir): New function.
50910         * lib/openat.h (openat_needs_fchdir): Declare it.
50911
50912 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50913
50914         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
50915         Problem and fix reported by Pádraig Brady in
50916         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
50917
50918 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50919
50920         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
50921
50922 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50923
50924         * lib/memcoll.c (memcoll): Optimize for the common case where the
50925         arguments are bytewise equal.
50926
50927 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50928
50929         * doc/regexprops-generic.texi: Add a copyright notice.
50930
50931 2006-08-15  Bruno Haible  <bruno@clisp.org>
50932
50933         * modules/tmpdir (License): Change to LGPL.
50934
50935 2006-08-15  Bruno Haible  <bruno@clisp.org>
50936
50937         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
50938         module.
50939
50940 2006-08-14  Simon Josefsson  <jas@extundo.com>
50941
50942         * config/srclist.txt: Add gnupload.
50943
50944 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50945
50946         Change copyright notice from LGPL 2 to GPL 2, since that's the
50947         standard form used in the gnulib repository.
50948         * tests/test-lock.c: Likewise.
50949         * tests/test-stdint.c: Likewise.
50950         * tests/test-tls.c: Likewise.
50951
50952         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
50953         prelude-manager.  User shorter URLs for GNU projects, without '?'.
50954         Add copyright notice.
50955
50956         * check-module: Add copyright notice.  Output a copyright
50957         notice if "--version" is specified.
50958         * modules/COPYING: New file.
50959         * tests/test-getaddrinfo.c: Add copyright notice.
50960         * tests/test-verify.c: Likewise.
50961
50962 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50963
50964         Change copyright notice from LGPL 2 to GPL 2, since that's the
50965         standard form used in the gnulib repository.
50966         * lib/lock.c: LGPL -> GPL.
50967         * lib/lock.h: Likewise.
50968         * lib/strnlen1.c: Likewise.
50969         * lib/strnlen1.h: Likewise.
50970         * lib/tls.c: Likewise.
50971         * lib/tls.h: Likewise.
50972         * lib/tmpdir.c: Likewise.
50973
50974         * lib/TODO: Remove; this belongs only in coreutils.
50975
50976 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50977
50978         Add copyright notices to long-enough files that lack them, since
50979         otherwise the files aren't clearly free.  Use the same notice that
50980         getdate.texi already uses.
50981         * doc/alloca-opt.texi: Add copyright notice.
50982         * doc/alloca.texi: Likewise.
50983         * doc/ctime.texi: Likewise.
50984         * doc/functions.texi: Likewise.
50985         * doc/gcd.texi: Likewise.
50986         * doc/gnulib-tool.texi: Likewise.
50987         * doc/inet_ntoa.texi: Likewise.
50988         * doc/visibility.texi: Likewise.
50989
50990         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
50991         * doc/quote.texi: Add copyright notice.
50992
50993         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
50994         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
50995         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
50996         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
50997         is now obsolete, and give a pointer to the Sun list.
50998         Add copyright notice.
50999
51000 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51001
51002         * config/srclistvars.sh: Add copyright notice.
51003
51004 2006-08-14  Eric Blake  <ebb9@byu.net>
51005
51006         Import the following change from libc:
51007
51008         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51009
51010         Upstream bug 2997.
51011         * lib/misc/error.c: Add space between program name and message if file
51012         name is missing.
51013
51014 2006-08-12  Karl Berry  <karl@gnu.org>
51015
51016         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51017         remove, these originate in gnulib now.
51018
51019 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51020
51021         * doc/Makefile (standards.info standards.html standards.dvi):
51022         Also depend on make-stds.texi.
51023
51024 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51025
51026         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51027         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51028
51029         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51030         in wchar_t.  Problem reported by Eric Blake.
51031
51032         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51033         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51034         Also, help the compiler to keep LEN in a register.
51035
51036 2006-08-11  Eric Blake  <ebb9@byu.net>
51037
51038         * users.txt: Sort.  Add tar.
51039
51040 2006-08-11  Bruno Haible  <bruno@clisp.org>
51041
51042         * users.txt: New file.
51043
51044 2006-08-11  Bruno Haible  <bruno@clisp.org>
51045
51046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51047         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51048
51049 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51050
51051         * modules/snprintf (Depends-on): Remove minmax.
51052         (Maintainer): Add self and Bruno.
51053
51054 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51055
51056         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51057         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51058         (EOVERFLOW): Define if the system does not.
51059         Do not include "minmax.h"; it wasn't used.
51060         (snprintf): Don't assume size_t promotes to an unsigned type.
51061         Fix bug when generated string was too long for the buffer: the
51062         buffer's contents are supposed to be the initial prefix of the
51063         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51064         exceeds INT_MAX; do the check ourselves.
51065
51066         Import the following changes from libc:
51067
51068         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51069
51070         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51071         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51072         set wc to the byte which couldn't be converted.
51073         (re_string_reconstruct): Don't clear valid_raw_len before calling
51074         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51075         tip_context using re_string_context_at.
51076
51077         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51078
51079         * lib/posix/regex.h: g++ still cannot handled [restrict].
51080
51081         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51082
51083         * lib/posix/regex.h: Remove special handling for VMS.
51084
51085 2006-08-10  Jim Meyering  <jim@meyering.net>
51086
51087         * modules/same-inode: New module.
51088         * modules/dev-ino: New module.
51089         * modules/cycle-check: Depend on these modules, rather than simply
51090         including their .h files.
51091         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51092         required via m4/cycle-check.m4.
51093         * modules/same: Depend on new same-inode module, rather than
51094         including same-inode.h.
51095         * modules/chdir-safer: New file.
51096
51097         * modules/chown (Depends-on): Add stat-macros.
51098
51099 2006-08-10  Jim Meyering  <jim@meyering.net>
51100
51101         * m4/cycle-check.m4: New file.
51102         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51103         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51104
51105 2006-08-10  Eric Blake  <ebb9@byu.net>
51106
51107         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51108         in from original proposal.
51109
51110 2006-08-10  Eric Blake  <ebb9@byu.net>
51111         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51112
51113         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51114         namespace.
51115
51116 2006-08-10  Bruno Haible  <bruno@clisp.org>
51117
51118         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51119         as well.
51120
51121 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51122
51123         Sync from coreutils.
51124
51125         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51126
51127         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51128         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51129
51130 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51131
51132         * modules/restrict: Remove; no longer needed now that we assume
51133         Autoconf 2.59 or later.
51134         * MODULES.html.sh: Remove 'restrict'.
51135         * modules/argp (Depends-on): Remove 'restrict'.
51136         * modules/base64 (Depends-on): Likewise.
51137         * modules/gc (Depends-on): Likewise.
51138         * modules/getaddrinfo (Depends-on): Likewise.
51139         * modules/glob (Depends-on): Likewise.
51140         * modules/inet_ntop (Depends-on): Likewise.
51141         * modules/inet_pton (Depends-on): Likewise.
51142         * modules/memxor (Depends-on): Likewise.
51143         * modules/regex (Depends-on): Likewise.
51144         * modules/strtok_r (Depends-on): Likewise.
51145         * modules/time_r (Depends-on): Likewise.
51146
51147 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51148
51149         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51150         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51151         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51152         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51153         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51154         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51155         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51156         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51157
51158         Merge from coreutils.
51159         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51160         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51161         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51162         * m4/time_r.m4 (gl_TIME_R): Likewise.
51163
51164 2006-08-09  Karl Berry  <karl@gnu.org>
51165
51166         * config/srclist.txt: no more gettext-tools, per Bruno.
51167
51168 2006-08-08  Eric Blake  <ebb9@byu.net>
51169
51170         * modules/verror: New module.
51171         * MODULES.html.sh: Document it.
51172
51173 2006-08-08  Eric Blake  <ebb9@byu.net>
51174
51175         * lib/verror.h, lib/verror.c: New files.
51176
51177 2006-08-08  Eric Blake  <ebb9@byu.net>
51178
51179         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51180         verror_at_line output complies with GNU Coding Standards even when
51181         file is NULL.
51182
51183 2006-08-07  Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51186         versions of AIX.
51187         Reported by Ralf Wildenhues.
51188
51189 2006-08-07  Bruno Haible  <bruno@clisp.org>
51190
51191         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51192         in an AC_DEFUN. Needed so that the autoconf snippets can use
51193         AC_REQUIRE.
51194
51195 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51196
51197         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51198         Initialize pkgdata_DATA.
51199         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51200         overriding it.
51201
51202 2006-08-06  Eric Blake  <ebb9@byu.net>
51203
51204         * lib/error.h: Fold in some upstream changes from glibc.
51205         * lib/error.c: Likewise.
51206
51207 2006-08-04  Bruno Haible  <bruno@clisp.org>
51208
51209         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51210         Make the mostlyclean-local rule depend on mostlyclean-generic.
51211         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51212
51213 2006-07-31  Bruno Haible  <bruno@clisp.org>
51214
51215         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51216         <stdlib.h>, <string.h>.
51217
51218 2006-07-30  Bruno Haible  <bruno@clisp.org>
51219
51220         * modules/readlink (License): Change to LGPL.
51221
51222 2006-07-30  Bruno Haible  <bruno@clisp.org>
51223
51224         * modules/javaversion (Makefile.am): Distribute javaversion.java and
51225         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
51226         set PKGDATADIR to point to it.
51227
51228 2006-07-30  Bruno Haible  <bruno@clisp.org>
51229
51230         * modules/csharpexec (configure.ac): Comment out macro invocation.
51231         * modules/javaexec (configure.ac): Likewise.
51232         * modules/javacomp-script (configure.ac): Likewise.
51233
51234         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
51235
51236 2006-07-30  Bruno Haible  <bruno@clisp.org>
51237
51238         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
51239         linked-list.
51240
51241 2006-07-30  Bruno Haible  <bruno@clisp.org>
51242
51243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
51244
51245 2006-07-30  Bruno Haible  <bruno@clisp.org>
51246
51247         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51248         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
51249         get removed.
51250
51251 2006-07-29  Bruno Haible  <bruno@clisp.org>
51252
51253         Make it possible for gnulib-tool to work with locally modified or
51254         augmented gnulib repositories.
51255         * gnulib-tool (func_usage): Document --local-dir option.
51256         (local_gnulib_dir): New variable.
51257         Handle --local-dir option.
51258         (func_lookup_file): New function.
51259         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
51260         (func_get_description, func_get_filelist, func_get_description,
51261         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
51262         func_get_automake_snippet, func_get_include_directive,
51263         func_get_license, func_get_maintainer): Use func_lookup_file.
51264         (func_import, func_create_testdir): Use func_lookup_file.
51265
51266 2006-07-29  Bruno Haible  <bruno@clisp.org>
51267
51268         * modules/setenv (Depends-on): Add unistd.
51269
51270 2006-07-29  Bruno Haible  <bruno@clisp.org>
51271
51272         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51273
51274 2006-07-29  Bruno Haible  <bruno@clisp.org>
51275
51276         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51277
51278 2006-07-29  Bruno Haible  <bruno@clisp.org>
51279
51280         * gnulib-tool (import, update): If there is no Makefile.am, look at
51281         aclocal.m4, instead of bailing out.
51282
51283 2006-07-29  Bruno Haible  <bruno@clisp.org>
51284
51285         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51286         Categorize the options by when they are useful.
51287
51288 2006-07-29  Bruno Haible  <bruno@clisp.org>
51289
51290         * gnulib-tool (func_usage): Document option --no-libtool.
51291         Handle option --no-libtool.
51292         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51293         for changed semantics of $libtool variable.
51294         (func_import): Likewise. If libtool is not used, show this through
51295         an option --no-libtool.
51296         (func_create_testdir): Update.
51297
51298 2006-07-29  Bruno Haible  <bruno@clisp.org>
51299
51300         * gnulib-tool (func_import): Extend error message about missing
51301         --doc-base.
51302
51303 2006-07-29  Bruno Haible  <bruno@clisp.org>
51304
51305         * gnulib-tool (func_import): Don't create the $docbase directory if
51306         there is no file to store there.
51307
51308 2006-07-29  Bruno Haible  <bruno@clisp.org>
51309
51310         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51311         relevant, look for configure.ac there, not in the current directory.
51312         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51313
51314 2006-07-29  Bruno Haible  <bruno@clisp.org>
51315
51316         * gnulib-tool (SORT): New variable.
51317         (func_usage): Undocument --assume-autoconf option.
51318         Remove --assume-autoconf option handling.
51319         (autoconf_minversion): Determine from the contents of configure.ac.
51320         (func_import): Remove autoconf_minversion handling.
51321         Suggested by Eric Blake.
51322
51323 2006-07-29  Bruno Haible  <bruno@clisp.org>
51324
51325         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51326
51327 2006-07-29  Bruno Haible  <bruno@clisp.org>
51328
51329         * config/srclist.txt (*setenv.[ch]): Remove rules.
51330
51331 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51332
51333         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51334
51335 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51336
51337         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51338         arpa/inet.h.
51339
51340 2006-07-28  Simon Josefsson  <jas@extundo.com>
51341
51342         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51343         * modules/inet_pton (Depends-on): Likewise.
51344
51345 2006-07-28  Simon Josefsson  <jas@extundo.com>
51346
51347         * m4/netinet_in_h.m4: New file.
51348
51349 2006-07-28  Simon Josefsson  <jas@extundo.com>
51350
51351         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51352         #include's.
51353
51354 2006-07-28  Simon Josefsson  <jas@extundo.com>
51355
51356         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51357         #include's.
51358
51359 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51360
51361         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51362         setgid on directories only if they set these bits.
51363         * lib/modechange.h: Remove obsolete comment about masks.
51364
51365 2006-07-28  Eric Blake  <ebb9@byu.net>
51366
51367         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51368         macro expansion.
51369
51370 2006-07-28  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51373
51374 2006-07-28  Bruno Haible  <bruno@clisp.org>
51375
51376         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51377
51378 2006-07-28  Bruno Haible  <bruno@clisp.org>
51379
51380         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51381         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51382         Define fallbacks.
51383         Avoids link error on FreeBSD 4.x.
51384         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51385
51386         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51387         encoding.
51388         * lib/mbswidth.c (iswcntrl): Likewise.
51389
51390 2006-07-27  Bruno Haible  <bruno@clisp.org>
51391
51392         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
51393         test.
51394
51395 2006-07-27  Bruno Haible  <bruno@clisp.org>
51396
51397         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
51398         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
51399         defined.
51400
51401 2006-07-26  Eric Blake  <ebb9@byu.net>
51402
51403         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
51404
51405 2006-07-26  Eric Blake  <ebb9@byu.net>
51406
51407         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
51408         like mingw that lack mkstemp.
51409         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
51410         avoid compilation warning on mingw.
51411
51412 2006-07-26  Bruno Haible  <bruno@clisp.org>
51413
51414         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
51415         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
51416         INT_FAST*_MIN, INTPTR_MIN.
51417
51418 2006-07-25  Bruno Haible  <bruno@clisp.org>
51419
51420         * modules/version-etc (Depends-on): Add stdarg.
51421
51422 2006-07-25  Bruno Haible  <bruno@clisp.org>
51423
51424         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
51425         complex commands.
51426
51427 2006-07-25  Bruno Haible  <bruno@clisp.org>
51428
51429         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
51430         defined in <stdarg.h> or config.h.
51431
51432 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51433
51434         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
51435         (gl_STDIO_SAFER): Remove.
51436
51437 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51438
51439         * MODULES.html.sh (File stream based Input/Output):
51440         Add fopen-safer, tmpfile-safer; remove stdio-safer.
51441         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
51442         * modules/fopen-safer, modules/tmpfile-safer: New files.
51443         * modules/stdio-safer: Remove.
51444
51445 2006-07-24  Bruno Haible  <bruno@clisp.org>
51446
51447         * modules/tmpdir: New file.
51448         * MODULES.html.sh (File system functions): Add it.
51449
51450 2006-07-24  Bruno Haible  <bruno@clisp.org>
51451
51452         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
51453         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
51454
51455 2006-07-24  Bruno Haible  <bruno@clisp.org>
51456
51457         * modules/clean-temp: New file.
51458
51459 2006-07-24  Bruno Haible  <bruno@clisp.org>
51460
51461         * m4/tmpdir.m4: New file, from GNU gettext.
51462
51463 2006-07-24  Bruno Haible  <bruno@clisp.org>
51464
51465         * lib/tmpdir.h: New file, from GNU gettext.
51466         * lib/tmpdir.c: New file, from GNU gettext.
51467
51468 2006-07-24  Bruno Haible  <bruno@clisp.org>
51469
51470         * lib/clean-temp.h: New file, from GNU gettext.
51471         * lib/clean-temp.c: New file, from GNU gettext.
51472
51473 2006-07-23  Eric Blake  <ebb9@byu.net>
51474
51475         * modules/stdio-safer (Files): Add tmpfile-safer.c.
51476         (Depends-on): Add binary-io.
51477
51478 2006-07-23  Eric Blake  <ebb9@byu.net>
51479
51480         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
51481
51482 2006-07-23  Eric Blake  <ebb9@byu.net>
51483
51484         * lib/tmpfile-safer.c: New file.
51485         * lib/stdio-safer.h (fopen_safer): Add prototype.
51486         * lib/stdio--.h (tmpfile): Make safer.
51487
51488 2006-07-23  Bruno Haible  <bruno@clisp.org>
51489
51490         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
51491         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
51492         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
51493         gl_linked_remove_at): Use it.
51494
51495 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51496         and Simon Josefsson <jas@extundo.com>
51497
51498         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
51499
51500         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
51501
51502 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51503
51504         * modules/close-stream: New file.
51505         * modules/closeout (Description): Make it clear that it exits
51506         with a diagnostic on error.
51507         (Depends-on): Add close-stream.  Remove fpending, stdbool.
51508         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
51509
51510 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51511
51512         * m4/close-stream.m4: New file.
51513
51514 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51515
51516         * lib/close-stream.c, lib/close-stream.h: New files.
51517
51518 2006-07-22  Bruno Haible  <bruno@clisp.org>
51519
51520         Merge from GNU gettext 0.15.
51521
51522         2006-05-01  Bruno Haible  <bruno@clisp.org>
51523
51524                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
51525
51526         2006-07-22  Bruno Haible  <bruno@clisp.org>
51527
51528                 * modules/javaversion: New file.
51529                 * MODULES.html.sh (Java): Add javaversion.
51530
51531         2006-03-12  Bruno Haible  <bruno@clisp.org>
51532
51533                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
51534
51535         2005-12-04  Bruno Haible  <bruno@clisp.org>
51536
51537                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
51538                 (untested).
51539
51540         2006-06-21  Bruno Haible  <bruno@clisp.org>
51541
51542                 Avoid warnings from recent versions of mcs.
51543                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
51544                 -o, -L, -r any more. Use options documented since mcs-1.0
51545                 instead. Similarly for -g.
51546
51547         2005-12-04  Bruno Haible  <bruno@clisp.org>
51548
51549                 * build-aux/csharpcomp.sh.in: Suffix for resources is
51550                 .resources, not .resource.
51551
51552         2005-07-09  Bruno Haible  <bruno@clisp.org>
51553
51554                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
51555                 add a .dll suffix.
51556                 Reported by Mark Junker <mjscod@gmx.de>.
51557
51558         2006-07-22  Bruno Haible  <bruno@clisp.org>
51559
51560                 * modules/gettext: Upgrade to gettext-0.15.
51561                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
51562                 m4/visibility.m4.
51563                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
51564
51565 2006-07-22  Bruno Haible  <bruno@clisp.org>
51566
51567         Merge from GNU gettext 0.15.
51568
51569         2006-03-25  Bruno Haible  <bruno@clisp.org>
51570
51571                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
51572
51573         2006-07-21  Bruno Haible  <bruno@clisp.org>
51574
51575                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
51576                 "1.1".
51577
51578         2006-05-09  Bruno Haible  <bruno@clisp.org>
51579
51580                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
51581                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
51582                 for the conftestver execution.
51583
51584         2006-05-01  Bruno Haible  <bruno@clisp.org>
51585
51586                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
51587                 optional target-version argument. Verify that the compiler
51588                 groks source of the specified source-version, or add -source
51589                 option as necessary. Verify that the compiler produces
51590                 bytecode in the specified target-version, or add -target and
51591                 -source options as necessary. Make the result of the test
51592                 available as variable CONF_JAVAC. Also log error output in
51593                 config.log.
51594
51595         2006-03-11  Bruno Haible  <bruno@clisp.org>
51596
51597                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
51598
51599         2006-05-09  Bruno Haible  <bruno@clisp.org>
51600
51601                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
51602                 CLASSPATH_SEPARATOR to a semicolon.
51603
51604         2006-03-12  Bruno Haible  <bruno@clisp.org>
51605
51606                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
51607                 available as variable CONF_JAVA, for subsequent autoconf
51608                 tests. Also log error output in config.log.
51609
51610         2006-07-19  Bruno Haible  <bruno@clisp.org>
51611
51612                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
51613                 that getline works on glibc2 systems. Needed to avoid trouble
51614                 in relocatable.c.
51615                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
51616
51617         2005-12-04  Bruno Haible  <bruno@clisp.org>
51618
51619                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
51620                 launcher (untested).
51621
51622         2005-12-04  Bruno Haible  <bruno@clisp.org>
51623
51624                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
51625
51626         2006-07-22  Bruno Haible  <bruno@clisp.org>
51627
51628                 * gettext.m4: Update from GNU gettext-0.15.
51629                 * nls.m4: Likewise.
51630                 * po.m4: Likewise.
51631                 * inttypes-pri.m4: Likewise.
51632                 * inttypes-h.m4: Renamed from inttypes.m4.
51633                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
51634
51635 2006-07-22  Bruno Haible  <bruno@clisp.org>
51636
51637         Merge from GNU gettext 0.15.
51638
51639         2005-07-05  Bruno Haible  <bruno@clisp.org>
51640
51641                 * printf-args.c (printf_fetchargs): Work around broken
51642                 definition of wint_t on mingw.
51643
51644         2005-02-12  Bruno Haible  <bruno@clisp.org>
51645
51646                 * xallocsa.h: Add extern "C" for C++.
51647
51648         2006-05-17  Bruno Haible  <bruno@clisp.org>
51649
51650                 Cygwin portability.
51651                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
51652
51653         2006-04-30  Bruno Haible  <bruno@clisp.org>
51654
51655                 * progreloc.c: Include <mach-o/dyld.h> if available.
51656                 (find_executable): Use _NSGetExecutablePath when possible.
51657
51658         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51659
51660                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
51661                 function.
51662
51663         2005-12-29  Bruno Haible  <bruno@clisp.org>
51664
51665                 * progreloc.c (set_program_name_and_installdir): Fix
51666                 compilation error.
51667
51668         2005-12-04  Bruno Haible  <bruno@clisp.org>
51669
51670                 Cygwin portability.
51671                 * progreloc.c: Include <windows.h> also on Cygwin.
51672                 (find_executable): Add support for Cygwin.
51673                 (set_program_name_and_installdir): Handle also platforms with
51674                 nonempty EXEEXT.
51675
51676         2006-07-11  Bruno Haible  <bruno@clisp.org>
51677
51678                 * javacomp.c: Fix a comment.
51679                 Reported by Jim Meyering.
51680
51681         2006-04-30  Bruno Haible  <bruno@clisp.org>
51682
51683                 * javacomp.h (compile_java_class): Add source_version,
51684                 target_version arguments.
51685                 * javacomp.c: Rewritten to choose only a compiler that
51686                 respects the specified source_version and target_version.
51687
51688         2006-06-27  Bruno Haible  <bruno@clisp.org>
51689
51690                 Assume correct S_ISDIR macro.
51691                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
51692
51693         2006-07-22  Bruno Haible  <bruno@clisp.org>
51694
51695                 * javaversion.h: New file, from GNU gettext.
51696                 * javaversion.c: New file, from GNU gettext.
51697                 * javaversion.java: New file, from GNU gettext.
51698                 * javaversion.class: New file, from GNU gettext.
51699
51700         2006-05-17  Bruno Haible  <bruno@clisp.org>
51701
51702                 Cygwin portability.
51703                 * javaexec.c (execute_java_class): Test for jview program
51704                 also on Cygwin.
51705
51706         2006-04-09  Bruno Haible  <bruno@clisp.org>
51707
51708                 * fatal-signal.c: Don't include string.h.
51709                 (at_fatal_signal): Use a copying loop instead of memcpy.
51710
51711         2005-12-04  Bruno Haible  <bruno@clisp.org>
51712
51713                 * csharpexec.c: Add support for 'clix' launcher (untested).
51714                 (execute_csharp_using_sscli): New function.
51715                 (execute_csharp_program): Call it.
51716
51717         2006-06-21  Bruno Haible  <bruno@clisp.org>
51718
51719                 Avoid warnings from recent versions of mcs.
51720                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
51721                 -o, -L, -r any more. Use options documented since mcs-1.0
51722                 instead. Similarly for -g.
51723
51724         2005-07-09  Bruno Haible  <bruno@clisp.org>
51725
51726                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
51727                 add a .dll suffix.
51728                 Reported by Mark Junker <mjscod@gmx.de>.
51729
51730         2006-06-17  Bruno Haible  <bruno@clisp.org>
51731
51732                 * config.charset: Update for NetBSD 3.0.
51733
51734         2006-05-17  Bruno Haible  <bruno@clisp.org>
51735
51736                 Cygwin portability.
51737                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
51738
51739         2006-05-16  Bruno Haible  <bruno@clisp.org>
51740
51741                 * localcharset.c [CYGWIN]: Include <windows.h>.
51742                 (get_charset_aliases): For Cygwin, return the same CPxxx
51743                 aliases list as under WIN32.
51744                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
51745                 the environment variables. Fall back to GetACP().
51746
51747         2006-04-05  Bruno Haible  <bruno@clisp.org>
51748
51749                 * config.charset: Update Juan Manuel Guerrero's address.
51750
51751         2005-02-12  Bruno Haible  <bruno@clisp.org>
51752
51753                 * allocsa.h: Add extern "C" for C++.
51754
51755         2005-02-10  Bruno Haible  <bruno@clisp.org>
51756
51757                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
51758                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
51759
51760         2006-07-22  Bruno Haible  <bruno@clisp.org>
51761
51762                 * gettext.h: Update to GNU gettext-0.15.
51763
51764 2006-07-22  Bruno Haible  <bruno@clisp.org>
51765
51766         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
51767         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
51768         lib-prefix.m4, longdouble.m4, ssize_t.m4.
51769
51770 2006-07-21  Eric Blake  <ebb9@byu.net>
51771
51772         * modules/stdlib-safer: New file.
51773         * MODULES.html.sh (File stream based Input/Output): Add
51774         stdlib-safer.
51775
51776 2006-07-21  Eric Blake  <ebb9@byu.net>
51777
51778         * lib/stdlib-safer.h: New file from coreutils, required by
51779         stdlib--.h.
51780
51781 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
51782
51783         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
51784
51785 2006-07-20  Bruno Haible  <bruno@clisp.org>
51786
51787         * gnulib-tool: Recognize new option --assume-autoconf.
51788         (autoconf_minversion): New variable.
51789         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
51790
51791 2006-07-20  Bruno Haible  <bruno@clisp.org>
51792
51793         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
51794
51795 2006-07-19  Derek R. Price  <derek@ximbiot.com>
51796
51797         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
51798         Reindent and repaginate.
51799
51800 2006-07-19  Derek Price  <derek@ximbiot.com>
51801
51802         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
51803         Correct grammar.
51804
51805 2006-07-17  Bruno Haible  <bruno@clisp.org>
51806
51807         * modules/list: New file.
51808         * modules/array-list: New file.
51809         * modules/carray-list, modules/carray-list-tests: New files.
51810         * modules/linked-list, modules/linked-list-tests: New files.
51811         * modules/avltree-list, modules/avltree-list-tests: New files.
51812         * modules/rbtree-list, modules/rbtree-list-tests: New files.
51813         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
51814         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
51815         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
51816         * modules/oset: New file.
51817         * modules/array-oset: New file.
51818         * modules/avltree-oset, modules/avltree-oset-tests: New files.
51819         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
51820         * tests/test-carray_list.c: New file.
51821         * tests/test-linked_list.c: New file.
51822         * tests/test-avltree_list.c: New file.
51823         * tests/test-rbtree_list.c: New file.
51824         * tests/test-linkedhash_list.c: New file.
51825         * tests/test-avltreehash_list.c: New file.
51826         * tests/test-rbtreehash_list.c: New file.
51827         * tests/test-avltree_oset.c: New file.
51828         * tests/test-rbtree_oset.c: New file.
51829         * MODULES.html.sh (Container data structures): New section.
51830
51831 2006-07-17  Bruno Haible  <bruno@clisp.org>
51832
51833         * m4/gl_list.m4: New file.
51834
51835 2006-07-17  Bruno Haible  <bruno@clisp.org>
51836
51837         * lib/gl_list.h: New file.
51838         * lib/gl_list.c: New file.
51839         * lib/gl_array_list.h: New file.
51840         * lib/gl_array_list.c: New file.
51841         * lib/gl_carray_list.h: New file.
51842         * lib/gl_carray_list.c: New file.
51843         * lib/gl_linked_list.h: New file.
51844         * lib/gl_linked_list.c: New file.
51845         * lib/gl_anylinked_list1.h: New file.
51846         * lib/gl_anylinked_list2.h: New file.
51847         * lib/gl_avltree_list.h: New file.
51848         * lib/gl_avltree_list.c: New file.
51849         * lib/gl_anyavltree_list1.h: New file.
51850         * lib/gl_anyavltree_list2.h: New file.
51851         * lib/gl_rbtree_list.h: New file.
51852         * lib/gl_rbtree_list.c: New file.
51853         * lib/gl_anyrbtree_list1.h: New file.
51854         * lib/gl_anyrbtree_list2.h: New file.
51855         * lib/gl_anytree_list1.h: New file.
51856         * lib/gl_anytree_list2.h: New file.
51857         * lib/gl_linkedhash_list.h: New file.
51858         * lib/gl_linkedhash_list.c: New file.
51859         * lib/gl_anyhash_list1.h: New file.
51860         * lib/gl_anyhash_list2.h: New file.
51861         * lib/gl_avltreehash_list.h: New file.
51862         * lib/gl_avltreehash_list.c: New file.
51863         * lib/gl_rbtreehash_list.h: New file.
51864         * lib/gl_rbtreehash_list.c: New file.
51865         * lib/gl_anytreehash_list1.h: New file.
51866         * lib/gl_anytreehash_list2.h: New file.
51867
51868         * lib/gl_oset.h: New file.
51869         * lib/gl_oset.c: New file.
51870         * lib/gl_array_oset.h: New file.
51871         * lib/gl_array_oset.c: New file.
51872         * lib/gl_avltree_oset.h: New file.
51873         * lib/gl_avltree_oset.c: New file.
51874         * lib/gl_rbtree_oset.h: New file.
51875         * lib/gl_rbtree_oset.c: New file.
51876         * lib/gl_anytree_oset.h: New file.
51877
51878 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51879
51880         * m4/mkancesdirs.m4: New file.
51881         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
51882         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
51883         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
51884         it.
51885
51886 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51887
51888         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
51889         * lib/mkancesdirs.h: New files.
51890         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
51891         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
51892         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
51893         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
51894         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
51895         callers changed.  Revamp internals significantly, by not
51896         attempting to create directories that are temporarily more
51897         permissive than the final results.  Do not attempt to use
51898         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
51899         This removes some race conditions, fixes some bugs, and simplifies
51900         things.  Use new dirchownmod function to do owner and mode changes.
51901         * lib/mkdir-p.h: Likewise.
51902         * lib/modechange.c (octal_to_mode): New function.
51903         (struct mode_change): New member mentioned.
51904         (make_node_op_equals): New arg mentioned.  All callers changed.
51905         (mode_compile): Keep track of which mode bits the user has explicitly
51906         mentioned.
51907         (mode_adjust): New arg DIR, so that we implement the X op correctly.
51908         New arg PMODE_BITS, to keep track of which mode bits the user
51909         mentioned; it treats S_ISUID and S_ISGID speciall.
51910         All callers changed.
51911         * lib/modechange.h: Likewise.
51912
51913 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51914
51915         * MODULES.html.sh: Add mkancestors.
51916         * modules/mkancesdirs: New module.
51917         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
51918         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
51919         The chdir-safer and afs files are now orphans; I'll remove them
51920         unless someone speaks up.
51921         Add lib/dirchownmod.c, lib/dirchownmod.h.
51922         (Depends-on): Remove alloca, chown, save-cwd, dirname.
51923         Add lchown, mkancesdirs.
51924         (Maintainer): Add self.
51925
51926 2006-07-15  Karl Berry  <karl@gnu.org>
51927
51928         * gnulib-tool: help message wording/arrangement.
51929
51930 2006-07-14  Simon Josefsson  <jas@extundo.com>
51931
51932         * doc/gnulib.texi (Libtool and Windows): New section.
51933
51934 2006-07-12  Simon Josefsson  <jas@extundo.com>
51935
51936         * modules/gendocs (License): Fix license, approved by Karl.
51937
51938 2006-07-12  Eric Blake  <ebb9@byu.net>
51939
51940         * MODULES.html.sh: Add gendocs.
51941
51942 2006-07-11  Eric Blake  <ebb9@byu.net>
51943
51944         * modules/fdl: New module, to install doc/fdl.texi.
51945         * MODULES.html.sh: Add new section for documentation modules.
51946         * gnulib-tool: Avoid space-tab.
51947         (--doc-base): New option, to manage files from doc.
51948
51949 2006-07-11  Eric Blake  <ebb9@byu.net>
51950
51951         * m4/absolute-header.m4: Fix comments to match recent change.
51952
51953 2006-07-11  Eric Blake  <ebb9@byu.net>
51954
51955         * gnulib-tool: List --doc-base before --tests-base.
51956
51957 2006-07-11  Derek R. Price  <derek@ximbiot.com>
51958
51959         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
51960
51961 2006-07-11  Bruno Haible  <bruno@clisp.org>
51962
51963         * README: Mention where to put documentation.
51964
51965 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51966
51967         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
51968
51969 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
51970
51971         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
51972         to stdint.m4.
51973
51974 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
51975
51976         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
51977         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
51978         "no/such/file/stdint.h" when there is no such file, so that
51979         the resulting C code can be parsed by dodgy compilers.
51980         Problems reported by Bob Proulx.
51981
51982 2006-07-10  Derek R. Price  <derek@ximbiot.com>
51983
51984         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
51985         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
51986         macros into the GNU _D_EXACT_NAMLEN.
51987         * lib/savedir.c:  Likewise.
51988         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
51989
51990 2006-07-10  Derek R. Price  <derek@ximbiot.com>
51991         and Paul Eggert  <eggert@cs.ucla.edu>
51992
51993         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
51994         * m4/savedir.m4:
51995         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
51996         macros into the GNU _D_EXACT_NAMLEN.
51997
51998 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51999
52000         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52001         around the absolute name, to work around a problem with the HP-UX
52002         11.23 native C compiler, reported by Bob Proulx.
52003
52004 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52005
52006         * doc/maintain.texi, make-stds.texi: Sync from
52007         <http://savannah.gnu.org/projects/gnustandards>.
52008
52009 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52010
52011         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52012
52013 2006-07-09  Jim Meyering  <jim@meyering.net>
52014
52015         * m4/glob.m4: Remove a doubled word in a comment.
52016
52017 2006-07-09  Jim Meyering  <jim@meyering.net>
52018
52019         * lib/argp-pv.c: Remove a doubled word in a comment.
52020         * lib/check-version.c (check_version): Likewise.
52021         * lib/javacomp.c (compile_java_class): Likewise.
52022
52023 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52024
52025         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52026         for the benefit of people using Autoconf 2.60.  If you want to
52027         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52028         (or m4/onceonly.m4, if pre-2.57) manually.
52029
52030 2006-07-08  Jim Meyering  <jim@meyering.net>
52031
52032         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52033         comment.
52034         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52035         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52036         comment.
52037
52038 2006-07-08  Jim Meyering  <jim@meyering.net>
52039
52040         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52041
52042 2006-07-07  Simon Josefsson  <jas@extundo.com>
52043
52044         * tests/test-crc.c: Change expected crc value, the test vector
52045         were probably computed using the old broken crc.c?
52046
52047 2006-07-06  Simon Josefsson  <jas@extundo.com>
52048
52049         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52050         now the canonical place for the M4 file).
52051
52052         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52053         from the sys_socket dependency now.
52054
52055         * modules/inet_pton (Files): Ditto.
52056
52057         * modules/inet_ntop (Files): Ditto.
52058
52059 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52060
52061         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52062         not gl_PREREQ_GETUSERSHELL.
52063
52064 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52065
52066         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52067         with only one argument, for Autoconf 2.60.
52068         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52069         expand to nothing, so add a shell command to avoid syntax error.
52070         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52071
52072 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52073
52074         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52075
52076 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52079         no longer needed.  Check for isblank decl.
52080         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52081         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52082         of existence.
52083
52084 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52085
52086         * lib/getloadavg.c: Use __VMS, not VMS.
52087         * lib/getopt.c: Likewise.
52088         * lib/getpagesize.h: Likewise.
52089         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52090         and probably does not work.
52091
52092 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52093
52094         * lib/.cppi-disable: Add wcwidth.
52095         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52096         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52097         (ISGRAPH): Remove.  All uses changed to isgraph.
52098         (FOLD) [!defined _LIBC]: Remove special case.
52099         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52100         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52101         HAVE_ISBLANK.
52102         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52103         case.
52104
52105 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52106
52107         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52108         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52109         brackets.  Other minor changes to suppress some compiler
52110         warnings.
52111
52112 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52113         and Paul Eggert  <eggert@cs.ucla.edu>
52114
52115         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52116         of invoking obsolescent AC_HEADER_DIRENT macro.
52117         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52118         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52119         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52121         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52122         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52123         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52124         * m4/readdir.m4: Remove; no longer needed.
52125
52126 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52127         and Paul Eggert  <eggert@cs.ucla.edu>
52128
52129         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52130         Don't worry about this obsolete case any more.
52131         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52132         directories.
52133         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52134         worry about this obsolete case any more.
52135         * lib/fts.c: Likewise.
52136         * lib/getcwd.c: Likewise.
52137         * lib/glob.h: Likewise.
52138         * lib/savedir.c: Likewise.
52139
52140 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52143         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52144         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52145         needed.
52146         All uses removed.
52147         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52148         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52149         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52150         needed.
52151         * m4/getdate.m4 (gl_GETDATE): Likewise.
52152         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52153         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52154         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52155         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52156         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52157         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52158         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52159         needed.
52160
52161 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52162
52163         * lib/memcasecmp.c: Include <limits.h>.
52164         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52165         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52166         Don't assume isdigit succeeds only on '0' through '9'.
52167
52168 2006-07-05  Eric Blake  <ebb9@byu.net>
52169
52170         * modules/getaddrinfo (Depends-on): Add snprintf.
52171
52172 2006-07-05  Eric Blake  <ebb9@byu.net>
52173
52174         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52175         to avoid 'header present but could not be compiled' on cygwin.
52176
52177 2006-07-05  Eric Blake  <ebb9@byu.net>
52178
52179         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52180         missing from netdb.h.
52181         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52182
52183 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52184
52185         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52186         no longer needed.
52187         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52188         * m4/getdate.m4 (gl_GETDATE): Likewise.
52189         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52190         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52191         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52192         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52193         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52194
52195 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52196
52197         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52198         All uses of is_space replaced by isspace.
52199         * lib/exit.h: Don't talk about STDC_HEADERS.
52200         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52201         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52202         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52203         replaced by isprint etc.
52204         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52205         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52206         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52207         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52208         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52209         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52210
52211 2006-07-05  Bruno Haible  <bruno@clisp.org>
52212
52213         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52214         the function exists, before testing against AIX.
52215         Reported by Martin Lambers <marlam@marlam.de>.
52216
52217 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52218
52219         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52220         From Mark D. Baushke.
52221
52222 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52223
52224         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
52225         to the absolute name, not just one, to bypass Sun C 5.8's
52226         "warning: #include of /usr/include/... may be non-portable".
52227
52228 2006-07-04  Eric Blake  <ebb9@byu.net>
52229
52230         * modules/dirname-tests: New test module.
52231         * tests/test-dirname.c: New file, replacing dirname.c
52232         TEST_DIRNAME section that was recently deleted.
52233
52234 2006-07-04  Bruno Haible  <bruno@clisp.org>
52235
52236         Assume ANSI C header files and <ctype.h> functions.
52237         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
52238         (mbsnwidth): Use isprint, iscntrl instead.
52239
52240 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52241
52242         Merge from coreutils.
52243         * MODULES.html.sh: Add xstrtold.
52244         * modules/xstrtold: New file.
52245         * modules/cycle-check (Files): Add lib/same-inode.h.
52246         * modules/dirname (Files): Add m4/double-slash-root.m4.
52247         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
52248         * modules/mkdir-p (Files): Add lib/same-inode.h.
52249         * modules/same (Files): Add lib/same-inode.h.
52250
52251 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52252
52253         * m4/absolute-header.m4: Renamed from full-header-path.m4.
52254         This is to keep the terminology clean; POSIX talks about
52255         "absolute pathnames", not "full pathnames", but the GNU
52256         Coding Standards say to use "path" for something else;
52257         so use "absolute" to keep both sides happy.
52258         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
52259         Set gl_absolute_header, not gl_full_header_path.
52260         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
52261         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
52262         All uses changed.
52263
52264         Merge from coreutils.
52265
52266         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52267
52268         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52269         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52270         want to require the building of c-strtod.o.
52271         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52272         needs -lm directly.
52273         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52274
52275         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52276
52277         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52278         --as-needed option if available.  Problem reported by Albert Chin in
52279         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52280         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52281         cc merely issues a bunch of annoying warnings for --as-needed
52282         (this problem was reported by Bob Proulx).  Also, try linking with
52283         -lm to detect a bug in binutils 2.16 (this problem was reported
52284         by Ralf Wildenhues).
52285
52286         2006-06-18  Jim Meyering  <jim@meyering.net>
52287
52288         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52289         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52290         macro.
52291         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52292         also check for glibc-2.4's abort-inducing bug.
52293
52294         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52295         Low-probability clean-up should be to use rmdir to get rid of
52296         the just-created directory, not unlink.
52297
52298         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52299         configure fail, and request a bug report to inform us about it.
52300         Add a comment that, barring reports to the contrary, in 2007 we'll
52301         assume ftruncate is universally available.
52302
52303         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52304
52305         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52306
52307         2006-03-12  Jim Meyering  <jim@meyering.net>
52308
52309         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52310         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52311         * m4/same.m4 (gl_SAME): Likewise.
52312         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52313
52314         2006-03-11  Eric Blake  <ebb9@byu.net>
52315
52316         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52317         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52318         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52319         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52320
52321 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52322
52323         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52324         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52325         reported by Mark D. Baushke, one in
52326         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52327
52328         Merge from coreutils.
52329
52330         * lib/.cppi-disable: Add stdint_.h.
52331         * lib/.cvsignore: Add stdint.h.
52332
52333         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52334
52335         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52336         both double and long double versions.
52337         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52338         * lib/xstrtold.c: New file.
52339         * lib/xstrtod.h (xstrtold): New decl.
52340
52341         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52342
52343         * lib/filemode.c (setst): Remove.
52344         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52345         (arguably) clearer, and the generated code is a bit smaller on my
52346         Debian GNU/Linux stable x86 host.
52347
52348         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52351         Assume that filemode.h includes sys/types.h and sys/stat.h.
52352         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52353         (ftypelet): Reorder to put common cases first, for efficiency.
52354         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52355         to do 'M'.
52356         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52357         of 10, for compatibility with FreeBSD.  All callers changed.
52358         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52359         types that can't be deduced solely from st_mode.  First arg is now a
52360         const pointer.
52361         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52362         (strmode): Renamed from mode_string.
52363         (filemodestring): New decl.
52364         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52365         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52366         needed.
52367         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52368
52369         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52370
52371         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52372         fsusage.h now does that.  Include fsusage.h first, to test interface.
52373         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52374         at most one method (the old code could have generated decls that
52375         didn't conform to C89, not that this was ever exercised).
52376         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52377
52378         2006-03-19  Jim Meyering  <jim@meyering.net>
52379
52380         Work even in a chroot where d_ino values for entries in "/"
52381         don't match the stat.st_ino values for the same names.
52382         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52383         number, iterate through all entries again, using lstat instead.
52384         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52385         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52386
52387         * lib/getcwd.c (__getcwd): Clarify a comment.
52388         Use memcpy in place of a call to strcpy.
52389
52390         2006-03-12  Jim Meyering  <jim@meyering.net>
52391
52392         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
52393         matches that of the current directory (which we're about to chdir ".."
52394         out of), then save the dev-ino of the parent, instead.
52395
52396         * lib/same-inode.h (SAME_INODE): New file/macro.
52397         * lib/chdir-safer.c (SAME_INODE): Remove definition.
52398         Include "same-inode.h", instead.
52399         * lib/same.c: Likewise.
52400         * lib/cycle-check.h: Include "same-inode.h".
52401         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
52402         * lib/cycle-check.c (SAME_INODE): Remove definition.
52403         * lib/root-dev-ino.h: Include "same-inode.h".
52404
52405         2006-03-11  Eric Blake  <ebb9@byu.net>
52406
52407         * lib/same.c (same_name): s/base_name/last_component/
52408         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
52409         * lib/filenamecat.c (file_name_concat): Likewise.
52410
52411         2006-03-11  Eric Blake  <ebb9@byu.net>,
52412                     Paul Eggert  <eggert@cs.ucla.edu>
52413
52414         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
52415         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
52416         drive prefix.
52417         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
52418         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
52419         (last_component): New method.
52420         * lib/dirname.c (dir_len): Determine when drive letters need a
52421         subsequent slash.  Preserve // when it is special.
52422         (dir_name): Don't append dot when drive letter is absolute.
52423         [TEST_DIRNAME]: Move into a full-blown gnulib test.
52424         * lib/basename.c (base_name): New semantics - malloc the result.
52425         Preserve // when it is special.  Preserve relative files that look
52426         like drive letters.
52427         (base_len): Preserve // when it is special.
52428         (last_component): New method, similar to old base_name semantics.
52429         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
52430         base_name.  Strip redundant slashes from ///.
52431
52432 2006-07-03  Jim Meyering  <jim@meyering.net>
52433
52434         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
52435         macro is used before the first cycle_check call.
52436
52437 2006-07-03  Eric Blake  <ebb9@byu.net>
52438
52439         * modules/dirname (Depends-on): Add xstrndup.
52440
52441 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52442
52443         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
52444         test cases, so that config.log is a bit easier to follow.
52445
52446 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52447
52448         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
52449         both are 64 bits, since this seems to be the tradition, and this
52450         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
52451         we ever run into a host that prefers long long to long in this
52452         case, we'll need another configure-time test.  Problem reported by
52453         Jim Meyering.
52454
52455 2006-07-02  Eric Blake  <ebb9@byu.net>
52456
52457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
52458
52459 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52460
52461         * modules/inttypes (Depends-on): No longer depends on stdint.
52462         * modules/stdint (Description): Say more about assumptions.
52463         Say that the fast types might differ.  Say macros are used.
52464         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
52465         (Makefile.am): Revise list of substituted symbols to match
52466         new stdint.m4.
52467         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
52468         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
52469         * tests/test-stdint.c (verify_same_types)
52470         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
52471         the code conforms to C99/C89.
52472         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
52473         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
52474
52475 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52476
52477         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
52478         but fix a bug, by requiring at least 64 bits.
52479         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52480         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
52481         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
52482         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
52483
52484         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
52485         changes.  Make 2.59 a prerequisite.  Check and substitute for
52486         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
52487         inttypes.h.  Do not use special include files; just use the
52488         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
52489         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
52490         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
52491         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
52492         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
52493         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
52494         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
52495         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
52496         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
52497         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
52498         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
52499         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
52500         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
52501         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
52502         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
52503         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
52504         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
52505         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
52506         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
52507         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
52508         WINT_MAX.  Check for C99 conformance more strictly, by detecting
52509         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
52510         not check for things that C99 does not require, e.g., int8_t.  If
52511         a test isn't needed unless <stdint.h> isn't working, and is
52512         unlikely to be needed for any other reason, then don't do it
52513         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
52514         size_t, since we assume C89 freestanding at least.  Do not check
52515         for sig_atomic_t, wchar_t, or wint_t, since the code now does
52516         the right thing even if the types are not defined.  Instead use:
52517         (gl_STDINT_TYPE_PROPERTIES): New macro.
52518         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
52519         testing whether <sys/types.h> clashes, as Autoconf does this for
52520         us now.  All uses removed.
52521         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
52522         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
52523         (gl_CHECK_TYPE_SAME):
52524         Remove; no longer needed.
52525         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
52526         exists, since we'll return 0 anyway in that case.
52527         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
52528
52529 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52530
52531         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
52532         possible collision with system files.
52533         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
52534         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
52535         WCHAR_MIN and WCHAR_MAX in this case.
52536         (<stddef.h>): Do not include; no longer needed.
52537         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
52538         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
52539         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
52540         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
52541         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
52542         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
52543         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
52544         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
52545         !defined(__c99))]: Include in this case too, since it's harmless
52546         now.
52547         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
52548         dangerous to do so.
52549         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
52550         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
52551         (_STDINT_MIN, _STDINT_MAX): New macros.
52552         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
52553         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
52554         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
52555         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
52556         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
52557         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
52558         macros, not typedefs; this simplifies things quite a bit.
52559         Use long int for all types narrower than int64_t.
52560         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
52561         Define in terms of long long int or int64_t or long int,
52562         not int64_t or int32_t.  This saves some compile-time testing.
52563         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
52564         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
52565         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
52566         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
52567         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
52568         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
52569         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
52570         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
52571         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
52572         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
52573         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52574         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52575         undef any previous version and define our own version, for
52576         simplicity and consistency with the new macros for types.
52577         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52578         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52579         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
52580         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
52581         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
52582         @WINT_T_SUFFIX@ to keep things simple here.
52583         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
52584         Simplify by assuming typical 8/16/32/64 host, since we're
52585         already doing that elsewhere anyway.
52586         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
52587         and assume long long int is 64 bits if available.  This
52588         speeds up 'configure'.
52589
52590 2006-07-01  Eric Blake  <ebb9@byu.net>
52591
52592         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
52593         Reported by Andreas Buening.
52594
52595 2006-07-01  Eric Blake  <ebb9@byu.net>
52596
52597         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
52598
52599 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52600
52601         * lib/getaddrinfo.c: fixed typo
52602
52603 2006-06-29  Jim Meyering  <jim@meyering.net>
52604
52605         * modules/strftime (Maintainer): Add my name, since with the
52606         FPRINTFTIME changes strftime.c has forked from glibc.
52607
52608 2006-06-29  Eric Blake  <ebb9@byu.net>
52609
52610         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
52611
52612 2006-06-29  Eric Blake  <ebb9@byu.net>
52613
52614         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
52615
52616 2006-06-29  Eric Blake  <ebb9@byu.net>
52617
52618         * lib/stat_.h: New file.
52619
52620 2006-06-29  Eric Blake  <ebb9@byu.net>
52621
52622         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
52623         unused static function.
52624
52625 2006-06-29  Eric Blake  <ebb9@byu.net>
52626
52627         * doc/functions.texi (Function Portability): Document missing lstat
52628         on mingw.
52629
52630 2006-06-29  Eric Blake  <ebb9@byu.net>
52631
52632         * MODULES.html.sh: Add sys_stat.
52633         * modules/sys_stat: New module.
52634         * modules/mkstemp (Depends-on): Add sys_stat.
52635
52636 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52637
52638         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
52639
52640 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52641
52642         * m4/c-bs-a.m4: Removed.
52643
52644 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52645
52646         * lib/strftime.c: Assume strftime() exists.
52647
52648 2006-06-29  Derek Price  <derek@ximbiot.com>
52649
52650         * modules/c-bs-a: Removed - \a is C89.
52651         * MODULES.html.sh: Remove c-bs-a.
52652
52653 2006-06-29  Bruno Haible  <bruno@clisp.org>
52654
52655         * modules/wcwidth (License): Change to LGPL.
52656
52657 2006-06-28  Simon Josefsson  <jas@extundo.com>
52658
52659         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
52660         on _WIN32.
52661
52662         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
52663         getnameinfo.
52664
52665 2006-06-28  Simon Josefsson  <jas@extundo.com>
52666
52667         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
52668
52669 2006-06-28  Simon Josefsson  <jas@extundo.com>
52670
52671         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
52672         functions there.  It will succeed on Windows XP, but on Windows
52673         2000 and (presumably) earlier, it will fail, and use the internal
52674         re-implementation.
52675         (use_win32_p): New function.
52676         (getaddrinfo): Use strtoul on servname, to support numeric ports.
52677         Support AI_NUMERICSERV to disable getservbyname.
52678         (getnameinfo): New function, only supports
52679         NI_NUMERICHOST|NI_NUMERICSERV for now.
52680
52681         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
52682         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
52683         getnameinfo.
52684
52685 2006-06-28  Eric Blake  <ebb9@byu.net>
52686
52687         * modules/wcwidth: New file.
52688         * modules/mbchar (Depends-on): Add wcwidth.
52689         * modules/mbswidth (Depends-on): Add wcwidth.
52690         * MODULES.html.sh: Add wcwidth.
52691
52692 2006-06-28  Eric Blake  <ebb9@byu.net>
52693
52694         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
52695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
52696
52697 2006-06-28  Eric Blake  <ebb9@byu.net>
52698
52699         * lib/xvasprintf.h: Fix comments.
52700
52701 2006-06-28  Eric Blake  <ebb9@byu.net>
52702
52703         * lib/mbchar.h (wcwidth): Include wcwidth.h.
52704         * lib/mbswidth.c (wcwidth): Move from here...
52705         * lib/wcwidth.h: ...to this new file.
52706
52707 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52708
52709         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
52710
52711         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
52712         it's obsolete.
52713         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
52714
52715 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52716
52717         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
52718         Autoconf 2.60 says this stuff was obsolete.
52719
52720 2006-06-28  Bruno Haible  <bruno@clisp.org>
52721
52722         * modules/wcwidth (Files): Add m4/wchar_t.m4.
52723
52724 2006-06-28  Bruno Haible  <bruno@clisp.org>
52725
52726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
52727         gt_TYPE_WCHAR_T.
52728
52729 2006-06-28  Bruno Haible  <bruno@clisp.org>
52730
52731         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
52732         declaration for wcwidth.
52733         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
52734
52735 2006-06-28  Bruno Haible  <bruno@clisp.org>
52736
52737         * lib/mkdtemp.c [MINGW]: Include <io.h>.
52738         (mkdir): Define using _mkdir.
52739
52740 2006-06-28  Bruno Haible  <bruno@clisp.org>
52741
52742         * lib/getaddrinfo.h: Fix POSIX URL.
52743         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
52744         _WIN32.
52745         (use_win32_p): Make static.
52746         (getaddrinfo): Reject service name if it is empty or does not consist
52747         solely of decimal digits, or if its value is > 65535.
52748         (getnameinfo): Remove useless casts.
52749
52750 2006-06-27  Simon Josefsson  <jas@extundo.com>
52751
52752         * modules/sys_select: New file, suggested by Bruno Haible, Paul
52753         Eggert and Martin Lambers.
52754
52755 2006-06-27  Simon Josefsson  <jas@extundo.com>
52756
52757         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
52758         Eggert and Martin Lambers.
52759
52760 2006-06-27  Bruno Haible  <bruno@clisp.org>
52761
52762         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
52763         result to 0, not to empty.
52764         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
52765
52766 2006-06-27  Bruno Haible  <bruno@clisp.org>
52767
52768         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
52769
52770 2006-06-26  Simon Josefsson  <jas@extundo.com>
52771
52772         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
52773         present.
52774
52775 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
52776
52777         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
52778         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
52779         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
52780
52781 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
52782
52783         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
52784
52785 2006-06-26  Bruno Haible  <bruno@clisp.org>
52786
52787         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
52788
52789 2006-06-26  Bruno Haible  <bruno@clisp.org>
52790
52791         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
52792
52793 2006-06-26  Bruno Haible  <bruno@clisp.org>
52794
52795         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
52796         SGI C compiler in pre-C99 mode.
52797         Suggested by Mark D. Baushke and Larry Jones.
52798
52799 2006-06-26  Bruno Haible  <bruno@clisp.org>
52800
52801         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
52802         WCHAR_MAX.
52803         Reported by Mark D. Baushke and Larry Jones.
52804
52805 2006-06-26  Bruno Haible  <bruno@clisp.org>
52806
52807         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
52808         in pre-C99 mode.
52809         Suggested by Mark D. Baushke and Larry Jones.
52810
52811 2006-06-23  Simon Josefsson  <jas@extundo.com>
52812             Bruno Haible  <bruno@clisp.org>
52813
52814         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
52815         Emit mostlyclean-local rule.
52816         (func_emit_tests_Makefile_am): Likewise.
52817         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
52818
52819 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
52820
52821         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
52822
52823 2006-06-23  Bruno Haible  <bruno@clisp.org>
52824
52825         * tests/test-stdint.c: Update to match ISO C 99 Technical
52826         Corrigendum 1.
52827
52828 2006-06-23  Bruno Haible  <bruno@clisp.org>
52829
52830         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
52831
52832 2006-06-23  Bruno Haible  <bruno@clisp.org>
52833
52834         * lib/stdint_.h: Treat IRIX like OpenBSD.
52835
52836 2006-06-23  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
52839         ISO C 99 Technical Corrigendum 1.
52840
52841 2006-06-22  Simon Josefsson  <jas@extundo.com>
52842
52843         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
52844         MinGW.
52845
52846 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52847
52848         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
52849         needed.  Some compiler complained about some of them.  Problem reported
52850         by Larry Jones in
52851         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
52852
52853 2006-06-21  Simon Josefsson  <jas@extundo.com>
52854
52855         * tests/test-getaddrinfo.c: New file.
52856
52857         * modules/getaddrinfo-tests: New file.
52858
52859         * MODULES.html.sh: Add inet_pton.
52860
52861         * modules/inet_pton: New file.
52862
52863 2006-06-21  Simon Josefsson  <jas@extundo.com>
52864
52865         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
52866         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
52867         of using the (limited) gnulib implementation on Windows XP.
52868
52869         * m4/inet_pton.m4: New file.
52870
52871 2006-06-21  Simon Josefsson  <jas@extundo.com>
52872
52873         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
52874         variable.
52875
52876         * lib/socket_.h: Don't define WINVER.
52877
52878         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
52879         slightly modified to work in gnulib.
52880
52881 2006-06-21  Simon Josefsson  <jas@extundo.com>
52882
52883         * doc/gnulib.texi (Windows sockets): Add.
52884
52885 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52886
52887         * lib/read-file.c (fread_file): Start with buffer allocation of
52888         0 bytes rather than 1 byte; this simplifies the code.
52889         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
52890         code to free buffer and save/restore errno.
52891         (internal_read_file): Remove unused local.
52892
52893 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52894
52895         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
52896         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
52897         Problem reported by Denis Excoffier in
52898         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
52899
52900 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52901
52902         * modules/sys_socket, modules/socklen: Include sys/types since
52903         FreeBSD 4.x's sys/socket.h needs it.
52904
52905 2006-06-19  Simon Josefsson  <jas@extundo.com>
52906
52907         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
52908
52909 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52910
52911         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
52912
52913 2006-06-19  Bruno Haible  <bruno@clisp.org>
52914
52915         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
52916         and FULL_PATH_INTTYPES_H in angle brackets.
52917         Reported by Mark D. Baushke <mdb@gnu.org>.
52918
52919 2006-06-17  Eric Blake  <ebb9@byu.net>
52920
52921         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
52922         errno.
52923
52924 2006-06-17  Bruno Haible  <bruno@clisp.org>
52925
52926         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
52927         <sys/inttypes.h>.
52928
52929 2006-06-17  Bruno Haible  <bruno@clisp.org>
52930
52931         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
52932         whether errno is declared. Assume <errno.h> declares errno.
52933
52934 2006-06-17  Bruno Haible  <bruno@clisp.org>
52935
52936         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
52937
52938 2006-06-17  Bruno Haible  <bruno@clisp.org>
52939
52940         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
52941         problem on Solaris 2.5.1.
52942
52943 2006-06-16  Eric Blake  <ebb9@byu.net>
52944
52945         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
52946         * lib/unicodeio.c [!defined errno]: Likewise.
52947         * lib/strtol.c [!defined errno]: Likewise.
52948         * lib/strtod.c [!defined errno]: Likewise.
52949
52950 2006-06-15  Eric Blake  <ebb9@byu.net>
52951
52952         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
52953
52954 2006-06-15  Eric Blake  <ebb9@byu.net>
52955
52956         * config/srclist.txt (ssize_t.m4): Lose sync.
52957
52958 2006-06-15  Bruno Haible  <bruno@clisp.org>
52959
52960         * modules/stdint (Files): Include m4/full-header-path.m4,
52961         m4/size_max.m4, m4/wchar_t.m4.
52962         (Makefile.am): Many more substitutions.
52963         * modules/stdint-tests: New file.
52964         * tests/test-stdint.c: New file.
52965
52966 2006-06-15  Bruno Haible  <bruno@clisp.org>
52967
52968         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
52969         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
52970         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
52971         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
52972         gl_CHECK_TYPE_SAME): New macros.
52973
52974 2006-06-15  Bruno Haible  <bruno@clisp.org>
52975
52976         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
52977
52978 2006-06-15  Bruno Haible  <bruno@clisp.org>
52979
52980         * lib/stdint_.h: Rewritten to be fully auto-configured.
52981         Fixes bug on HP-UX/IA64.
52982
52983 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
52984
52985         * lib/getdate.y (__attribute__): Don't define if already defined.
52986         Problem reported by Larry Jones.
52987         * lib/utimens.c (__attribute__): Likewise.
52988
52989 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
52990
52991         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
52992         reported by Andreas Schwab.
52993
52994 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52995             Bruno Haible  <bruno@clisp.org>
52996
52997         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
52998         check for the declaration of strnlen and a run test that exposes the
52999         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53000         rpl_strndup.
53001
53002 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53003             Bruno Haible  <bruno@clisp.org>
53004
53005         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53006
53007 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53008
53009         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53010         compile test, for Tru64 4.0D.
53011
53012 2006-05-28  Karl Berry  <karl@gnu.org>
53013
53014         * config/srclist.txt (printf-args.c): lose sync.
53015
53016 2006-05-26  Martin Lambers  <marlam@marlam.de>
53017
53018         * lib/getpass.c: Updates the test for the native W32 API, and adds
53019         missing includes, thus fixing compilation warnings.
53020
53021 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53022
53023         * lib/exclude.c (exclude_fnmatch): New function.
53024         (excluded_file_name): Call exclude_fnmatch.
53025         * lib/exclude.h (excluded_file_name): New prototype
53026
53027 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53028
53029         * lib/tempname.c (small_open, large_open): New macros.
53030         (__open, __open64) [!_LIBC]: Remove.
53031         (__gen_tempname): Use small_open and large_open instead of __open
53032         and __open64.  This fixes a portability bug on HP-UX 11.11i
53033         reported by Simon Wing-Tang in
53034         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53035
53036 2006-05-24  Bruno Haible  <bruno@clisp.org>
53037
53038         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53039         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53040         Reported by Thorsten Maerz <torte@netztorte.de> via
53041         Aaron Stone <aaron@serendipity.cx>.
53042
53043 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53044
53045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53046         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53047         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53048         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53049         not really conditional on the cache.
53050         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53051
53052 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53053
53054         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53055         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53056         (my_usleep): Don't mishandle maximum value.
53057
53058 2006-05-19  Jim Meyering  <jim@meyering.net>
53059
53060         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53061
53062 2006-05-17  Bruno Haible  <bruno@clisp.org>
53063
53064         Cygwin portability.
53065         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53066
53067 2006-05-17  Bruno Haible  <bruno@clisp.org>
53068
53069         * lib/stdint_.h: Fix recognition of Cygwin.
53070
53071 2006-05-15  Bruno Haible  <bruno@clisp.org>
53072
53073         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53074         on libtool patch by Ralf Wildenhues.
53075
53076 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53077
53078         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53079         test for C99 conformance; (bool) 0.5 is an integer constant
53080         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53081         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53082
53083 2006-05-11  Simon Josefsson  <jas@extundo.com>
53084
53085         * m4/xvasprintf.m4: Fix obvious typo.
53086
53087 2006-05-11  Jim Meyering  <jim@meyering.net>
53088
53089         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53090         James Lemley.
53091
53092 2006-05-10  Simon Josefsson  <jas@extundo.com>
53093
53094         * lib/md4.c: Typo fix, update copyright years.
53095         (K1, K2): Don't use L because it turn computations into 64-bit on
53096         64-bit platforms.
53097
53098 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53099
53100         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53101         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53102         unwanted sign propagation, e.g., on hosts with 64-bit int.
53103         There still are some problems with reeelly weird theoretical hosts
53104         (e.g., 33-bit int) but it's not worth worrying about now.
53105         * lib/sha1.c (rol): Likewise.
53106         (K1, K2, K3, K4): Remove unnecessary L suffix.
53107
53108 2006-05-10  Bruno Haible  <bruno@clisp.org>
53109
53110         * lib/des.c: Cast to avoid warnings.
53111
53112 2006-05-09  Bruno Haible  <bruno@clisp.org>
53113
53114         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53115         (Depends-on): Depend also on xsize, stdarg.
53116         (configure.ac): Add gl_XVASPRINTF.
53117
53118 2006-05-09  Bruno Haible  <bruno@clisp.org>
53119
53120         * m4/xvasprintf.m4: New file.
53121
53122 2006-05-09  Bruno Haible  <bruno@clisp.org>
53123
53124         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53125         (EOVERFLOW): Define fallback value.
53126         (xstrcat): New function.
53127         (xvasprintf): Recognize the special case of a string concatenation.
53128
53129 2006-05-08  Eric Blake  <ebb9@byu.net>
53130
53131         * gnulib-tool (func_version): Base copyright year on CVS date.
53132         (func_emit_copyright_notice): New function.
53133         (func_emit_lib_Makefile_am): Use it.
53134         (func_emit_tests_Makefile_am): Likewise.
53135         (func_import): Likewise.
53136
53137 2006-05-08  Bruno Haible  <bruno@clisp.org>
53138
53139         * modules/stdarg: New file.
53140         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53141
53142 2006-05-08  Bruno Haible  <bruno@clisp.org>
53143
53144         * m4/stdarg.m4: New file, from GNU gettext.
53145
53146 2006-05-08  Bruno Haible  <bruno@clisp.org>
53147
53148         * config/srclist.txt (build-aux/config.rpath): different from latest
53149         release.
53150
53151 2006-05-08  Bruno Haible  <bruno@clisp.org>
53152
53153         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53154
53155 2006-05-05  Jim Meyering  <jim@meyering.net>
53156
53157         * m4/warning.m4: New file, derived from bison's file by the same name.
53158
53159 2006-05-03  Bruno Haible  <bruno@clisp.org>
53160
53161         * lib/stdint_.h: Shorter URL.
53162         * lib/inttypes.h: Likewise.
53163
53164 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53165
53166         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53167
53168 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53169
53170         * lib/verify.h: Document the internals better.  Most of this change
53171         was written by Bruno Haible.
53172
53173 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53174
53175         * doc/verify.texi: New file, partly based on a proposal by
53176         Bruno Haible.
53177
53178 2006-05-02  Bruno Haible  <bruno@clisp.org>
53179
53180         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53181         test from here...
53182         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53183
53184 2006-04-29  Bruno Haible  <bruno@clisp.org>
53185
53186         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53187         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53188
53189 2006-04-29  Bruno Haible  <bruno@clisp.org>
53190
53191         * gnulib-tool: Make --update option actually work.
53192
53193 2006-04-29  Bruno Haible  <bruno@clisp.org>
53194
53195         * doc/gcd.texi: New file.
53196         * doc/gnulib.texi: Include it.
53197
53198 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53199
53200         * lib/getdate.y (get_date): When adding relative date, start with the
53201         initial time, not with the result of the first mktime call.
53202
53203 2006-04-25  Bruno Haible  <bruno@clisp.org>
53204
53205         * gnulib-tool (func_import): Output the include directives in three
53206         blocks, sorted separately.
53207         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53208
53209 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53210
53211         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53212         to define main with arguments, for C++.  Reported by Eric Blake.
53213         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53214         Prefer 'int main ()' to 'int main (void)', for C++.
53215         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53216         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53217         for 'main', for C99 and C++.
53218
53219 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53220
53221         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53222         Don't assume that exit status -1 is valid.
53223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53224         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53225         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
53226         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
53227         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
53228         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
53229         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
53230         functions can be used without declaring them, or that you can
53231         exit with status -1.
53232         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
53233
53234 2006-04-24  Karl Berry  <karl@gnu.org>
53235
53236         * config/srclist.txt (longdouble.m4): sync lost.
53237
53238 2006-04-24  Eric Blake  <ebb9@byu.net>
53239
53240         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
53241
53242 2006-04-24  Bruno Haible  <bruno@clisp.org>
53243
53244         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
53245         poll() implementation in AIX.
53246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53247
53248 2006-04-24  Bruno Haible  <bruno@clisp.org>
53249
53250         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
53251         assigned exactly once.
53252
53253 2006-04-23  Claudio Fontana  <claudio@gnu.org>
53254             Bruno Haible  <bruno@clisp.org>
53255
53256         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
53257         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
53258         for AM_CPPFLAGS.
53259
53260 2006-04-23  Bruno Haible  <bruno@clisp.org>
53261
53262         * modules/copy-file: Depend on unistd.
53263         * modules/execute: Likewise.
53264         * modules/fatal-signal: Likewise.
53265         * modules/findprog: Likewise.
53266         * modules/mkdtemp : Likewise.
53267         * modules/pipe: Likewise.
53268         * modules/wait-process: Likewise.
53269
53270 2006-04-23  Bruno Haible  <bruno@clisp.org>
53271
53272         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53273         condition was already detected.
53274         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53275
53276 2006-04-23  Bruno Haible  <bruno@clisp.org>
53277
53278         * lib/copy-file.c: Include <unistd.h> unconditionally.
53279         * lib/execute.c: Likewise.
53280         * lib/fatal-signal.c: Likewise.
53281         * lib/findprog.c: Likewise.
53282         * lib/mkdtemp.c: Likewise.
53283         * lib/pipe.h: Likewise.
53284         * lib/pipe.c: Likewise.
53285         * lib/wait-process.h: Likewise.
53286
53287 2006-04-23  Bruno Haible  <bruno@clisp.org>
53288
53289         * gnulib-tool (func_usage): Fix --import description. Document
53290         --update.
53291         (func_import): Create temporary file in a temporary directory, if
53292         --dry-run is specified. Silence errors from 'grep' when there are no
53293         m4 files in $m4dir.
53294         (func_create_testdir): Silence errors from 'grep' when there are no
53295         m4 files in $m4dir.
53296         Reported by Karl Berry <karl@freefriends.org>.
53297
53298 2006-04-20  Bruno Haible  <bruno@clisp.org>
53299
53300         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53301         one argument, so that the code will be portable to Autoconf 2.60.
53302         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53303         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53304         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53305
53306 2006-04-19  Derek Price  <derek@ximbiot.com>
53307             Eric Blake  <ebb9@byu.net>
53308
53309         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53310         rather than "/full/path.h".  Update comment to match.  Shorten &
53311         generalize m4_translit call via AS_TR_CPP.
53312
53313 2006-04-19  Derek Price  <derek@ximbiot.com>
53314             Eric Blake  <ebb9@byu.net>
53315
53316         * lib/inttypes.h: Correct grammar in comment.
53317
53318 2006-04-18  Derek Price  <derek@ximbiot.com>
53319             Paul Eggert  <eggert@cs.ucla.edu>
53320
53321         * modules/inttypes: New file.
53322         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53323
53324 2006-04-18  Derek Price  <derek@ximbiot.com>
53325             Paul Eggert  <eggert@cs.ucla.edu>
53326
53327         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53328         New files.
53329
53330 2006-04-18  Derek Price  <derek@ximbiot.com>
53331             Paul Eggert  <eggert@cs.ucla.edu>
53332
53333         * lib/inttypes.h: New file.
53334         * lib/strtoimax.c: Assume <inttypes.h>.
53335
53336 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53337
53338         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53339         isn't mounted.  Problem reported by Kir Kolyshkin.
53340
53341 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53342
53343         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53344         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53345         Derek R. Price.
53346         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53347         implementation.
53348
53349 2006-04-12  Eric Blake  <ebb9@byu.net>
53350
53351         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53352         is now done automatically by the corresponding Autoconf macro.
53353
53354 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53355
53356         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53357         time_r.h.
53358
53359 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53360
53361         Merge regex changes from libc, removing some of our
53362         POSIX-conformance changes that were rejected and redoing them in a
53363         less-intrusive way.
53364
53365         * lib/regcomp.c (re_compile_internal, init_dfa):
53366         Length arg is now size_t, not Idx.  All uses changed.
53367         (peek_token): Forward decl now says internal_function.
53368         (__re_error_msgid, __re_error_msgid_idx):
53369         Now static rather than extern with attribute_hidden.
53370         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53371         For some reason libc prefers K&R style defns for external functions.
53372         (regerror) [!defined _LIBC]: Likewise.
53373         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53374         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53375         (build_range_exp, build_collating_symbol):
53376         Use K&R-style defn.
53377         (re_compile_fastmap): Use '\0' to memset, not 0.
53378         (utf8_sb_map): Make the calculations more obvious.
53379         (init_dfa, parse_bracket_exp, build_charclass_op):
53380         Call calloc and cast result, as glibc does.
53381         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53382         (build_range_exp, build_collating_symbol):
53383         Now internal functions.
53384
53385         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53386
53387         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53388         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53389         Don't depend on VMS; depend on __VMS instead, for POSIX
53390         namespace cleanness.
53391         (regoff_t): Define to ssize_t, not long int.
53392
53393         Remove the REG_ macros named below.  Instead, make the old names
53394         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
53395         __USE_GNU_REGEX.
53396         (REG_BACKSLASH_ESCAPE_IN_LISTS):
53397         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
53398         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
53399         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
53400         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
53401         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
53402         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
53403         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
53404         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
53405         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
53406         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
53407         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
53408         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
53409         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
53410         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
53411         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
53412         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
53413         (REG_NREGS):
53414         Remove.  All uses replaced by the old RE_* names.
53415         (RE_BACKSLASH_ESCAPE_IN_LISTS):
53416         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
53417         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
53418         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
53419         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
53420         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
53421         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
53422         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
53423         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
53424         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
53425         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
53426         Don't bother having these macros be independent of each others'
53427         values, since they no longer exist in the POSIX name space.
53428
53429         Rename the following member names back to their old names,
53430         unless !__USE_GNU_REGEX.  All uses changed back.
53431         (buffer): Renamed from re_buffer.
53432         (allocated): Renamed from re_allocated.
53433         (used): Renamed from re_used.
53434         (syntax): Renamed from re_syntax.
53435         (fastmap): Renamed from re_fastmap.
53436         (translate): Renamed from re_translate.
53437         (can_be_null): Renamed from re_can_be_null.
53438         (regs_allocated): Renamed from re_regs_allocated.
53439         (fastmap_accurate): Renamed from re_fastmap_accurate.
53440         (no_sub): Renamed from re_no_sub.
53441         (not_bol): Renamed from re_not_bol.
53442         (not_eol): Renamed from re_not_eol.
53443         (newline_anchor): Renamed from re_newline_anchor.
53444         (num_regs): Renamed from rm_num_regs.
53445         (start): Renamed from rm_start.
53446         (end): Renamed from rm_end.
53447
53448         (free_state): Move up a bit.
53449
53450         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
53451         #define to be empty.
53452         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
53453         when that is what is intended.
53454         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
53455         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
53456         (MAX): New macro.
53457         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
53458         All uses changed back to re_malloc, etc.  It's now the caller's
53459         responsibility to check for overflow; all callers changed.
53460         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
53461         (re_x2nrealloc): Remove.
53462         (free_state): Remove decl.
53463
53464         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
53465         (re_set_registers, re_exec):
53466         Use K&R-style defn.
53467
53468         2006-01-31  Roland McGrath  <roland@redhat.com>
53469
53470         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
53471         Reported by Mike Frysinger <vapier@gentoo.org>.
53472
53473         2006-01-15  Andreas Jaeger  <aj@suse.de>
53474
53475         [BZ #1950]
53476         * lib/regex_internal.c (re_string_reconstruct): Adjust for
53477         build_wcs_upper_buffer change.
53478         (build_wcs_upper_buffer): Change return type.
53479
53480         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
53481
53482         * lib/regex_internal.h: Include <stdint.h> if available.
53483
53484         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
53485
53486         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
53487
53488         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53489
53490         * lib/regcomp.c: Adjust for changed secondary hash function.
53491
53492         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
53493
53494         * lib/regex.h: Pretty printing.
53495         Clean up namespace a bit.
53496
53497         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
53498
53499         * lib/regexec.c (update_cur_sifted_state, check_arrival,
53500         check_arrival_add_next_nodes): Avoid using uninitialized variable.
53501
53502         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53503                     Ulrich Drepper  <drepper@redhat.com>
53504
53505         [BZ #1302]
53506         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
53507         changed.
53508         (bitset_word_t): Renamed from bitset_word.  All uses changed.
53509
53510         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
53511
53512         [BZ #281]
53513         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
53514         * lib/regcomp.c: Remove unnecessary uses of
53515         unsigned RE_TRANSLATE_TYPE.
53516         * lib/regex_internal.h: Likewise.
53517         * lib/regex_internal.c: Likewise.
53518         * lib/regexec.c: Likewise.
53519         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
53520
53521         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
53522
53523         * lib/regexec.c (find_recover_state): Remove unnecessary
53524         initialization.
53525         (transit_state_bkref): Make DFA a const pointer.
53526         (get_subexp): Likewise.
53527         (check_arrival): Likewise.
53528         (update_cur_sifted_state): Likewise.
53529         (re_search_internal): Likewise.
53530         (prune_impossible_nodes): Likewise.
53531         (acquire_init_state_context): Likewise.
53532         (proceed_next_node): Likewise.
53533         (set_regs): Likewise.
53534         (free_fail_stack_return): Likewise.
53535         (check_arrival_expand_ecl): Mark DFA parameter as const.
53536         (check_arrival_expand_ecl_sub): Likewise.
53537         (check_subexp_limits): Likewise.
53538         (sub_epsilon_src_nodes):  Likewise.
53539         (add_epsilon_src_nodes):  Likewise.
53540         (merge_state_array): Likewise.
53541         (update_regs): Likewise.
53542         (build_trtable): Likewise.
53543         (sift_states_backward): Mark MCTX parameter as const.
53544         (build_sifted_states): Likewise.
53545         (update_cur_sifted_state): Likewise.
53546         (sift_states_mkref): Likewise.
53547         (check_arrival_expand_ecl): Mark eclosure as const.
53548         (check_dst_limits_calc_pos_1): Likewise.
53549         * lib/regex_internal.h (re_match_context_t): Make dfa a const
53550         pointer.
53551
53552         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
53553
53554         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
53555         (transit_state_sb): Likewise.
53556         (transit_state_mb): Likewise.
53557         (sift_states_iter_mb): Likewise.
53558         (check_arrival_add_next_nodes): Likewise.
53559         (check_node_accept_bytes): Change first parameter to pointer-to-const.
53560         [_LIBC] (re_search_2_stub): Use mempcpy.
53561
53562         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
53563         mbrtowc for very simple UTF-8 case.
53564
53565         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
53566         a pointer-to-const.
53567         (re_acquire_state_context): Likewise.
53568         * lib/regex_internal.h: Adjust prototypes.
53569
53570         * lib/regex.c: Prevent using C++ compilers.
53571
53572         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
53573         (re_acquire_state_context): Likewise.
53574
53575 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53576
53577         * modules/regex (Depends-on): Add ssize_t.
53578
53579 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53580
53581         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
53582         translation table.
53583
53584 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53585
53586         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
53587
53588 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
53589             Bruno Haible  <bruno@clisp.org>
53590
53591         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
53592         <sys/types.h> and <inttypes.h>.
53593
53594 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53595
53596         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
53597         `__error_t_defined', so argp.h will not typedef the former.
53598
53599 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
53600
53601         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
53602         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
53603         glibc names.  Even if glibc is changed to conform to POSIX, the
53604         traditional names will be available anyway, since regex depends on
53605         the extensions module.  Also, fix a longstanding typo in the
53606         implementation of Spencer ERE test #75 from grep 2.3.  Problems
53607         reported by Emanuele Giaquinta.  Also, change sense of cached
53608         variable, so that the message makes sense.
53609
53610 2006-03-24  Simon Josefsson  <jas@extundo.com>
53611
53612         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
53613         including some doc fixes.
53614         (base64_encode_alloc): Fix +1 bug on allocation failures.
53615
53616 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53617
53618         * lib/base64.c (base64_encode): Do not read past end of array with
53619         unsanitized input on systems with CHAR_BIT > 8.
53620
53621 2006-03-24  Eric Blake  <ebb9@byu.net>
53622
53623         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
53624
53625 2006-03-22  Karl Berry  <karl@gnu.org>
53626
53627         * config/srclist.txt (*setenv.[ch]): get from coreutils.
53628         * config/srclistvars.sh (COREUTILS): new var.
53629
53630 2006-03-17  Jim Meyering  <jim@meyering.net>
53631
53632         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
53633         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
53634
53635 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53636
53637         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
53638         no longer needs it.  Instead, check that regoff_t is as least
53639         as wide as ptrdiff_t.
53640
53641         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
53642         so that our regex.h stays compatible with the installed regex.
53643         This is helpful for installers who configure --without-included-regex.
53644         Problem reported by Emanuele Giaquinta.
53645
53646 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
53649         Typedef to long int, not to off_, as POSIX will likely change
53650         in that direction.
53651
53652 2006-03-15  Eric Blake  <ebb9@byu.net>
53653
53654         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
53655
53656 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53657
53658         * lib/argp-help.c (validate_uparams): Fix typo
53659         * lib/argp-parse.c (argp_default_options): Consistently begin help
53660         messages with a lowercase letter.
53661
53662 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
53665         overrun buffers and shouldn't be used (much as gets shouldn't be
53666         used).
53667         * lib/time_r.c (asctime_r, ctime_r): Likewise.
53668
53669 2006-03-08  Simon Josefsson  <jas@extundo.com>
53670
53671         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
53672         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53673
53674 2006-03-08  Simon Josefsson  <jas@extundo.com>
53675
53676         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
53677         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53678
53679 2006-03-08  Simon Josefsson  <jas@extundo.com>
53680
53681         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
53682         signal that configure disabled the device.
53683
53684 2006-03-08  Simon Josefsson  <jas@extundo.com>
53685
53686         * build-aux/maint.mk: Fix refresh-po, to handle no translated
53687         languages.
53688
53689 2006-03-07  Simon Josefsson  <jas@extundo.com>
53690
53691         * modules/getopt (Depends-on): Add unistd.
53692
53693         * modules/unistd: New file.
53694
53695 2006-03-07  Simon Josefsson  <jas@extundo.com>
53696
53697         * modules/gc-random: New file.
53698
53699 2006-03-07  Simon Josefsson  <jas@extundo.com>
53700
53701         * m4/unistd_h.m4: New file.
53702
53703 2006-03-07  Simon Josefsson  <jas@extundo.com>
53704
53705         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
53706         test to be side-effect free by storing the result in the cache
53707         variable gl_cv_lib_readline, and moving the assignment of
53708         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
53709         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53710
53711 2006-03-07  Simon Josefsson  <jas@extundo.com>
53712
53713         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
53714         error on missing devices (the functions will return an error).
53715
53716         * m4/gc.m4: Move random stuff to gc-random.m4
53717
53718 2006-03-07  Simon Josefsson  <jas@extundo.com>
53719
53720         * lib/unistd_.h: New file.
53721
53722 2006-03-07  Simon Josefsson  <jas@extundo.com>
53723
53724         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
53725
53726 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53727
53728         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
53729         Problem reported by Juan Manuel Guerrero.
53730
53731 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53732
53733         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
53734         the unistd module.
53735         * lib/getlogin_r.c: Likewise.
53736         * lib/getlogin_r.h: Likewise.
53737         * lib/glob.c: Likewise.
53738         * lib/pagealign_alloc.c: Likewise.
53739         * lib/unistd_.h: Remove; no longer needed.
53740
53741 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53742
53743         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53744         Add unistd.
53745         * modules/c-stack (Depends-on): Add unistd.
53746         * modules/getlogin_r: Likewise.
53747         * modules/glob: Likewise.
53748         * modules/pagealign_alloc: Likewise.
53749         * modules/unistd (Files): Remove lib/unistd_.h.
53750         (EXTRA_DIST): Remove.
53751         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
53752         need unistd_.h.
53753         (MOSTLYCLEANFILES): Remove unistd.h-t.
53754
53755 2006-03-03  Simon Josefsson  <jas@extundo.com>
53756
53757         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
53758
53759 2006-03-03  Simon Josefsson  <jas@extundo.com>
53760
53761         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
53762         libidn and bison.
53763
53764 2006-03-03  Simon Josefsson  <jas@extundo.com>
53765
53766         * build-aux/maint.mk: Add indent target.
53767
53768 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
53769
53770         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
53771         our replacement poll.h in any case, to avoid a differing
53772         declaration from a system header.  Seen on AIX.
53773
53774 2006-03-01  Simon Josefsson  <jas@extundo.com>
53775
53776         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
53777         <kasal@ucw.cz>.
53778
53779 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53780
53781         * modules/gettime (Depends-on): Add extensions module.
53782         * modules/nanosleep (Depends-on): Likewise.
53783         * modules/settime (Depends-on): Likewise.
53784
53785 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53786
53787         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
53788         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
53789         pedantically.
53790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53791         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
53792
53793         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
53794         not "==".  Reported by Ralf Wildenhues.
53795
53796 2006-03-01  Karl Berry  <karl@gnu.org>
53797
53798         * doc/Copyright/request-*: new files, synced from gnuorg.
53799
53800 2006-03-01  Karl Berry  <karl@gnu.org>
53801
53802         * config/srclist.txt (Copyright/*): new entries.
53803
53804 2006-02-28  Simon Josefsson  <jas@extundo.com>
53805
53806         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
53807
53808 2006-02-27  Simon Josefsson  <jas@extundo.com>
53809
53810         * lib/base64.h: Indent #define's.  From Jim Meyering
53811         <jim@meyering.net>.
53812
53813 2006-02-27  Jim Meyering  <jim@meyering.net>
53814
53815         Revert the change of 2006-02-24, so these files can continue
53816         to be sync'd from gettext.
53817         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
53818         of `config.h'.
53819
53820 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53821
53822         * modules/intprops: New file.
53823         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
53824         Add intprops.
53825         * modules/getloadavg (Files): Remove lib/intprops.h.
53826         (Depends-on): Add intprops.
53827         * modules/human: Likewise.
53828         * modules/inttostr: Likewise.
53829         * modules/openat: Likewise.
53830         * modules/sig2str: Likewise.
53831         * modules/userspec: Likewise.
53832         * modules/utimecmp: Likewise.
53833         * modules/xnanosleep: Likewise.
53834         * modules/xstrtol: Likewise.
53835
53836 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
53837
53838         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
53839         * modules/lock-tests (TESTS): Use $(EXEEXT).
53840         * modules/tls-tests: Likewise.
53841         * modules/argp-tests: Likewise.
53842         (check_PROGRAMS): New var, replacing...
53843         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
53844
53845 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53846
53847         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
53848         `config.h'.
53849
53850 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53851
53852         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
53853
53854 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53855
53856         Sync from coreutils.
53857         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
53858         gl_CHDIR_SAFER.
53859
53860 2006-02-22  Jim Meyering  <jim@meyering.net>
53861
53862         Sync from coreutils.
53863         * m4/chdir-safer.m4: New file.
53864
53865 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53866
53867         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
53868         AT_FDCWD exceeds INT_MAX.
53869         * lib/openat.h (AT_FDCWD): Likewise.
53870
53871 2006-02-17  Eric Blake  <address@hidden>
53872
53873         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
53874
53875 2006-02-16  Simon Josefsson  <jas@extundo.com>
53876
53877         * modules/getaddrinfo (Depends-on): Add sys_socket.
53878
53879 2006-02-15  Simon Josefsson  <jas@extundo.com>
53880
53881         * build-aux/maint.mk: Add dsyntax-check rule.
53882
53883 2006-02-15  Eric Blake  <ebb9@byu.net>
53884
53885         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
53886         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
53887         'present but cannot compile' warnings on cygwin.
53888         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
53889         use ws2tcpip.h if sys/socket.h works.
53890         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
53891         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
53892
53893 2006-02-14  Simon Josefsson  <jas@extundo.com>
53894
53895         * modules/maintainer-makefile (Files): Rename.
53896
53897         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
53898         and (the local) Makefile.cfg to maint-cfg.mk.
53899
53900         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
53901         to the latter.
53902
53903         * modules/maintainer-makefile: New module.
53904
53905         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
53906         severaly stripped to make it possible to build it up from scratch
53907         with reliable tests.
53908
53909         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
53910         fixes to permit overriding the default actions when configure and
53911         makefile are not available.
53912
53913 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53914
53915         Sync from coreutils.
53916         * modules/lstat (Depends-on): Don't depend on xalloc.
53917         (License): Change from GPL to LGPL, since this is now simply a
53918         replacement for a libc function.
53919
53920 2006-02-14  Jim Meyering  <jim@meyering.net>
53921
53922         Sync from coreutils.
53923
53924         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
53925         failure on deficient systems, and simplify gnulib lgpl dependencies.
53926         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
53927         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
53928
53929         * lib/xalloc-die.c: Remove unused definition of N_.
53930
53931 2006-02-14  Jim Meyering  <jim@meyering.net>
53932
53933         Sync from coreutils.
53934         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
53935         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
53936         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
53937         double-quote uses of that variable, to accommodate the rare case in
53938         which getmntent is available in none of the libraries checked.  This
53939         happens at least on FreeBSD 5.0.
53940
53941 2006-02-13  Simon Josefsson  <jas@extundo.com>
53942
53943         * gnulib-tool (Usage): Fix --import, from
53944         karl@freefriends.org (Karl Berry).
53945
53946 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53947
53948         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
53949
53950 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
53951
53952         * lib/argp-namefrob.h: Restore changes accidentally lost during the
53953         "autoupdate" on 2005-12-12.
53954
53955 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
53956
53957         * modules/closeout (Depends-on): Remove atexit.
53958
53959 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
53960
53961         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
53962         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
53963
53964 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53965
53966         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
53967         __EXTENSIONS__ if this causes compilation to fail.  Problem
53968         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
53969         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
53970
53971 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
53972
53973         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
53974         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
53975         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
53976         All uses changed.
53977
53978 2006-01-26  Simon Josefsson  <jas@extundo.com>
53979
53980         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
53981         prototype is visible on mingw32.
53982
53983         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
53984         for mingw32.
53985
53986         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
53987         mingw32).
53988
53989 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53990
53991         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
53992         attempt to open for write; this always fails, at least on POSIX
53993         hosts.  This reinstates the 2006-01-09 change, which was
53994         inadvertently removed.
53995
53996 2006-01-26  Bruno Haible  <bruno@clisp.org>
53997
53998         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
53999         Reported by Paul Eggert.
54000
54001 2006-01-26  Bruno Haible  <bruno@clisp.org>
54002             Paul Eggert  <eggert@cs.ucla.edu>
54003
54004         * lib/stdbool_.h (_Bool)
54005         [(! (defined __cplusplus || defined __BEOS__)
54006           && !defined __GNUC__
54007           && !(defined __HP_cc || defined __xlc__
54008                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54009                || defined __sgi))]:
54010         #define to signed char in these cases too; this simplifies
54011         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54012         etc., separately) and makes it more conservative.
54013
54014 2006-01-25  Simon Josefsson  <jas@extundo.com>
54015
54016         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54017         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54018         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54019
54020 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54021
54022         * lib/argp-namefrob.h: Bugfix. Remove stray #
54023
54024 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54025
54026         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54027         so that we test the test.
54028         Check for yet another HP-UX cc bug involving *bool |= bool.
54029
54030 2006-01-25  Karl Berry  <karl@gnu.org>
54031
54032         * config/srclist.txt (vasnprintf.c): sync lost.
54033
54034 2006-01-25  Jim Meyering  <jim@meyering.net>
54035
54036         Sync from the stable (b5) branch of coreutils:
54037
54038         * lib/fts.c (fts_children): Don't let close() clobber errno from
54039         failed fchdir().
54040
54041         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54042         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54043         a dangling symlink.  That can also happen at least for ELOOP.
54044         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54045         FYI, this bug predates the inclusion of fts.c in coreutils.
54046
54047         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54048         in their own block, so pre-c99 compilers don't object.
54049
54050         Avoid the double-free (first in fts_read, second in fts_close) that
54051         would occur when an `active' directory is made inaccessible (e.g.,
54052         via chmod a-x) during a traversal.
54053         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54054         before returning.  Reproduce this failure by
54055         mkdir -p a/b; cd a; chmod a-x . b
54056         Reported by Stavros Passas.
54057
54058 2006-01-25  Jim Meyering  <jim@meyering.net>
54059
54060         * lib/fileblocks.c: Remove more useless parentheses.
54061         * lib/readutmp.h: Likewise.
54062
54063 2006-01-25  Bruno Haible  <bruno@clisp.org>
54064
54065         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54066         warnings.
54067         Reported by Paul Eggert.
54068
54069 2006-01-25  Bruno Haible  <bruno@clisp.org>
54070
54071         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54072         rid of a trap command. For Solaris sh.
54073         Reported by Mark D. Baushke <mdb@gnu.org>.
54074
54075 2006-01-24  Simon Josefsson  <jas@extundo.com>
54076
54077         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54078         Bruno.
54079
54080 2006-01-24  Karl Berry  <karl@gnu.org>
54081
54082         * config/srclist.txt (argp-namefrob.h): sync lost.
54083
54084 2006-01-24  Jim Meyering  <jim@meyering.net>
54085
54086         * modules/openat (Files): Add lib/intprops.h.
54087         From Mark D. Baushke.
54088
54089 2006-01-24  Jim Meyering  <jim@meyering.net>
54090
54091         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54092         Reported by Mark D. Baushke.
54093
54094 2006-01-24  Jim Meyering  <jim@meyering.net>
54095
54096         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54097
54098 2006-01-24  Bruno Haible  <bruno@clisp.org>
54099
54100         * modules/strnlen (Maintainer): Change from glibc to all.
54101
54102 2006-01-24  Bruno Haible  <bruno@clisp.org>
54103
54104         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54105         Patch by Paul Eggert.
54106
54107 2006-01-24  Bruno Haible  <bruno@clisp.org>
54108
54109         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54110         already has it.
54111         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54112         2005-11-26.
54113
54114         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54115         'signed char' to avoid problems with the built-in _Bool type.
54116         Reported by Paul Eggert on 2005-11-26.
54117
54118 2006-01-24  Bruno Haible  <bruno@clisp.org>
54119
54120         * gnulib-tool (func_import): Avoid constructing complicated sed
54121         expressions inside backquote.
54122         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54123
54124 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54125
54126         These changes imported from libc.
54127         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54128         test and two separate function calls.
54129         * lib/strndup.c (__strndup): Add libc_hidden_def.
54130
54131 2006-01-23  Simon Josefsson  <jas@extundo.com>
54132
54133         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54134         Remove the test_*_SOURCES variable: automake infers it by default.
54135         * modules/tls-tests: Likewise.
54136
54137 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54138
54139         Work around porting bugs reported by Dieter in
54140         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54141         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54142         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54143         Include "getopt.h" first, to check interface.
54144         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54145         !HAVE_DECL_GETENV.
54146         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54147         (__strndup): Revert to K&R-style function dfns, the glibc style.
54148         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54149         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54150         Include strnlen.h first, to get prototype properly.
54151         (strnlen): Renamed from __strnlen.
54152         Remove weak alias.
54153
54154 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54155
54156         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54157
54158 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54159
54160         * config/srclist.txt: Adjust to reflect glibc reorganization.
54161         This affects only comments.
54162
54163 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54164
54165          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54166          Reported by Bruce Korb <bkorb@gnu.org>.
54167
54168 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54169
54170         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54171         to pacify gcc -Wswitch-default.
54172
54173 2006-01-22  Bruno Haible  <bruno@clisp.org>
54174
54175         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54176         temporary buffer for sprintf, take into account the precision also
54177         for 'd', 'i', 'u', 'o', 'x', 'X'.
54178
54179 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54180
54181         * modules/argp-tests: New module
54182         * tests/test-argp.c: New file
54183         * tests/test-argp-2.sh: New file
54184
54185 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54186
54187         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54188         (__argp_base_name): Removed
54189         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54190         typo.
54191         (__argp_base_name): Provide macro definition or extern declaration
54192         depending on the configuration
54193
54194 2006-01-20  Simon Josefsson  <jas@extundo.com>
54195
54196         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54197
54198 2006-01-20  Simon Josefsson  <jas@extundo.com>
54199
54200         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54201
54202 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54203
54204         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54205         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54206         Suggested by Bruno Haible.
54207
54208 2006-01-20  Karl Berry  <karl@gnu.org>
54209
54210         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54211         until changes propagate, I guess.
54212
54213 2006-01-19  Simon Josefsson  <jas@extundo.com>
54214
54215         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54216
54217 2006-01-19  Simon Josefsson  <jas@extundo.com>
54218
54219         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54220
54221 2006-01-19  Simon Josefsson  <jas@extundo.com>
54222
54223         * gnulib-tool: Set check_PROGRAMS.
54224
54225         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54226         modules/des-tests, modules/gc-arcfour-tests,
54227         modules/gc-arctwo-tests, modules/gc-des-tests,
54228         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54229         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54230         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54231         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54232         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54233         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
54234         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
54235         test_*_SOURCES.
54236
54237 2006-01-18  Simon Josefsson  <jas@extundo.com>
54238
54239         * modules/socklen (Depends-on): Depend on sys_socket.
54240
54241 2006-01-18  Simon Josefsson  <jas@extundo.com>
54242
54243         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54244         modules/des-tests, modules/gc-arcfour-tests,
54245         modules/gc-arctwo-tests, modules/gc-des-tests,
54246         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54247         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54248         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54249         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54250         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54251         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
54252         $(EXEEXT) to automake TESTS variable, for mingw32.
54253
54254 2006-01-17  Simon Josefsson  <jas@extundo.com>
54255
54256         * modules/socklen (Include): Need sys/socket.h.
54257
54258 2006-01-17  Bruno Haible  <bruno@clisp.org>
54259
54260         * modules/ssize_t (Include): Add <sys/types.h>.
54261
54262 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54263
54264         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54265         it's not portable and it doesn't work with cross-compiles.
54266         Problem reported by Bruno Haible.  Fix missing-$ typo in
54267         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54268         -zignore from being used with Sun's C compiler.
54269
54270 2006-01-12  Simon Josefsson  <jas@extundo.com>
54271
54272         * lib/base64.c: Fix warning, reported by Bruno Haible
54273         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54274
54275 2006-01-12  Bruno Haible  <bruno@clisp.org>
54276
54277         * modules/ldd: New file.
54278         * build-aux/ldd.sh.in: New file.
54279         * MODULES.html.sh (Support for building libraries and executables): Add
54280         ldd.
54281
54282 2006-01-12  Bruno Haible  <bruno@clisp.org>
54283
54284         * m4/ldd.m4: New file.
54285
54286 2006-01-12  Bruno Haible  <bruno@clisp.org>
54287
54288         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54289         endless loop while replacing $auxdir with build-aux.
54290
54291 2006-01-11  Simon Josefsson  <jas@extundo.com>
54292
54293         * lib/stdint_.h (SIZE_MAX): Add missing (.
54294
54295 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54296
54297         Sync from coreutils.
54298         * lib/md5.c: Fix commentary typos.
54299         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54300         * lib/md5.h (__attribute__): Remove; unused.
54301         * lib/sha1.c: Fix commentary to match md5 better.
54302         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54303         so that we don't need to worry about alignment.  All uses changed.
54304         This merges the 2005-10-28 md5 change into sha1.
54305
54306 2006-01-11  Jim Meyering  <jim@meyering.net>
54307
54308         Sync from coreutils.
54309         * lib/md5.c (OP): Fix spacing.
54310
54311 2006-01-11  Bruno Haible  <bruno@clisp.org>
54312
54313         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54314         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54315         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54316
54317 2006-01-11  Bruno Haible  <bruno@clisp.org>
54318
54319         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54320         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54321         the "early" section as well.
54322
54323 2006-01-11  Bruno Haible  <bruno@clisp.org>
54324
54325         Avoid "ar: no archive members specified" error on MacOS X.
54326         * gnulib-tool (func_modules_add_dummy): New function.
54327         (func_import, func_create_testdir): Invoke it.
54328
54329 2006-01-11  Bruno Haible  <bruno@clisp.org>
54330
54331         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54332         with $auxdir in AC_CONFIG_FILES statements.
54333
54334 2006-01-11  Bruno Haible  <bruno@clisp.org>
54335
54336         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54337         Initialize also noinst_HEADERS to empty.
54338
54339 2006-01-11  Bruno Haible  <bruno@clisp.org>
54340
54341         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54342         variables.
54343         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54344         autoreconf.
54345
54346 2006-01-11  Bruno Haible  <bruno@clisp.org>
54347
54348         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54349         overridable by the user.
54350         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54351
54352 2006-01-10  Simon Josefsson  <jas@extundo.com>
54353
54354         * modules/sys_socket: New file.
54355
54356 2006-01-10  Simon Josefsson  <jas@extundo.com>
54357
54358         * m4/sys_socket_h.m4: New file.
54359
54360 2006-01-10  Simon Josefsson  <jas@extundo.com>
54361
54362         * lib/socket_.h: New file.
54363
54364 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54365
54366         * modules/readutmp (Maintainer): Add myself.
54367
54368 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54369
54370         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54371         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54372         People who are still concerned with buggy memcmp implementations
54373         can invoke gl_FUNC_MEMCMP themselves.
54374
54375 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54376
54377         * lib/regex_internal.h (BITSET_WORD_BITS):
54378         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54379         preprocessor mishandles large unsigned values as if they were signed.
54380         Problem reported by Claudio Fontana in
54381         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54382
54383 2006-01-10  Jim Meyering  <jim@meyering.net>
54384
54385         Avoid the double-free (first in fts_read, second in fts_close) that
54386         would occur when an `active' directory is made inaccessible (e.g.,
54387         via chmod a-x) during a traversal.
54388         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54389         before returning.  Reproduce this failure by
54390         mkdir -p a/b; cd a; chmod a-x . b
54391         Reported by Stavros Passas.
54392
54393         Sync from coreutils.
54394         * lib/sha1.c: Tweak grammar in a comment.
54395
54396 2006-01-10  Jim Meyering  <jim@meyering.net>
54397
54398         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
54399         Patch by Joerg Sonnenberger.
54400
54401 2006-01-10  Bruno Haible  <bruno@clisp.org>
54402
54403         * modules/readutmp: Depend on module free.
54404         * modules/strtok_r: Depend on module restrict.
54405
54406 2006-01-10  Bruno Haible  <bruno@clisp.org>
54407
54408         * modules/gettext (configure.ac): Add an invocation of
54409         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
54410
54411 2006-01-10  Bruno Haible  <bruno@clisp.org>
54412
54413         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
54414         Reported by Werner Lemberg <wl@gnu.org>.
54415
54416 2006-01-10  Bruno Haible  <bruno@clisp.org>
54417
54418         * lib/localcharset.c: Update from GNU gettext.
54419
54420 2006-01-10  Bruno Haible  <bruno@clisp.org>
54421
54422         * lib/argp.h (__const): Remove macro. Use const instead.
54423         * lib/argp-fmtstream.h (__const): Likewise.
54424         * lib/glob_.h (__const): Remove macro.
54425         * lib/glob-libc.h: Use const instead of __const.
54426
54427 2006-01-10  Bruno Haible  <bruno@clisp.org>
54428
54429         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
54430         variable.
54431         Needed to avoid an automake error regarding the 'gettext' module.
54432
54433 2006-01-09  Simon Josefsson  <jas@extundo.com>
54434
54435         * modules/inet_ntop (Depends-on): Add restrict.
54436
54437 2006-01-09  Simon Josefsson  <jas@extundo.com>
54438
54439         * modules/gc-rijndael-tests (License): Put under LGPL.
54440
54441         * modules/gc-des-tests (License): Likewise.
54442
54443         * modules/gc-arcfour-tests (License): Likewise.
54444
54445         * modules/gc-arctwo-tests (License): Likewise.
54446
54447         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
54448
54449         * modules/gc-hmac-sha1-tests (Files): Likewise.
54450
54451         * modules/gc-hmac-md5-tests (License): Likewise.
54452
54453         * modules/gc-sha1-tests (License): Likewise.
54454
54455         * modules/gc-md5-tests (License): Likewise.
54456
54457         * modules/gc-md4-tests (License): Likewise.
54458
54459         * modules/gc-md2-tests (License): Likewise.
54460
54461         * modules/gc-tests (License): Likewise.
54462
54463         * modules/des-tests (License): Likewise.
54464
54465         * modules/md4-tests (License): Likewise.
54466
54467         * modules/md2-tests (License): Likewise.
54468
54469 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54470
54471         Sync from coreutils:
54472
54473         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
54474         * modules/lib-ignore: New file.
54475         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
54476         chdir-safer.m4, lchmod.m4.
54477         * modules/openat: Add mkdirat.c, openat-priv.h.
54478
54479 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54480
54481         Sync from coreutils.
54482         * m4/lib-ignore.m4: New file.
54483         * m4/lchmod.m4: New file.
54484
54485 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         Sync from coreutils.
54488         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
54489         for write access: POSIX says that must fail.
54490         * lib/fts.c (diropen): Likewise.
54491         * lib/save-cwd.c (save_cwd): Likewise.
54492         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
54493         well, for minor improvements on hosts that lack O_DIRECTORY.
54494         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
54495         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
54496         Fall back on chown if open failed with EACCES.
54497
54498         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
54499         Report an error at compile-time if only a 1-second nominal clock
54500         resolution is found.
54501
54502         * lib/lchmod.h: New file.
54503         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
54504         (make_dir_parents): Use lchown rather than chown, and
54505         lchmod rather than chmod.
54506
54507         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
54508         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
54509         "proc" reported by n0dalus.
54510
54511         * lib/mountlist.c: Include <limits.h>.
54512         (dev_from_mount_options)
54513         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
54514         New function.  It no longer assumes "dev=" has the System V meaning
54515         on Linux (since it doesn't).  It also parses "dev=" more carefully.
54516         (read_file_system_list)
54517         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
54518         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
54519         dev= in that case.
54520
54521         * lib/posixtm.h (PDS_PRE_2000): New macro.
54522         * lib/posixtm.c (year): Arg is now syntax_bits rather than
54523         allow_century.  All usages changed.  Reject dates outside the range
54524         1969-1999 if PDS_PRE_2000 is used.
54525
54526 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54527
54528         Sync from coreutils.
54529         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
54530         (Time of day items): Mention the possibility of leap seconds.
54531         Problem reported by Dr. David Alan Gilbert.
54532
54533 2006-01-09  Jim Meyering  <jim@meyering.net>
54534
54535         Sync from coreutils.
54536
54537         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
54538
54539         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
54540
54541         * lib/modechange.c (mode_compile): Reject an invalid mode string
54542         that starts with an octal digit.  From Andreas Gruenbacher.
54543
54544         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
54545         and dup to open_safer and dup_safer, respectively.
54546         (openat_permissive): Fix typo in comment.
54547
54548         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
54549         "gettext.h"; either no longer needed or are guaranteed by openat.h.
54550         (_): Remove; no longer needed.
54551         (openat): Renamed from rpl_openat; no need for rpl_openat
54552         since openat.h renames openat for us.
54553         Replace most of the body with a call to openat_permissive,
54554         to avoid duplicate code.
54555         Port to (probably hypothetical) environments were mode_t is
54556         wider than int.
54557         (openat_permissive): Require mode arg, so that we can check
54558         types better.  Put it just after flags.  Change cwd failure
54559         indicator from pointer-to-bool to pointer-to-errno-value.
54560         All callers changed.
54561         Invoke openat_save_fail and/or openat_restore_fail if
54562         cwd_errno is null, so that openat can call us.
54563         (openat_permissive, fdopendir, fstatat, unlinkat):
54564         Simplify errno handling to avoid some duplicate code,
54565         as it's OK to set errno on success.
54566         * lib/openat.h: Revamp code so that function macros depend on
54567         __OPENAT_PREFIX only, not also on AT_FDCWD.
54568         (openat_ro): Remove.  Caller changed to use openat_permissive.
54569         (openat_permissive): Now a macro, if not a function.
54570         (openat_restore_fail, openat_save_fail): Now always functions,
54571         since mkdirat needs them even if __OPENAT_PREFIX is defined.
54572
54573         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
54574         and openat.c.
54575         * lib/mkdirat.c: Include openat-priv.h.
54576         Remove definitions of macros defined therein.
54577         * lib/openat.c: Likewise.
54578
54579         * lib/mkdirat.c (mkdirat): New file and function.
54580         * lib/openat.h (mkdirat): Declare.
54581
54582         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
54583
54584         * lib/openat.h (openat_permissive): Declare.
54585         (openat_ro): Define.
54586
54587         * lib/openat.c (EXPECTED_ERRNO): New macro.
54588         (openat_permissive): New function -- used in remove.c rewrite.
54589         (all functions): Set errno just before returning, only if there
54590         was an actual failure.
54591         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
54592
54593         Emulate openat-family functions using Linux's procfs, if possible.
54594         Idea and some code based on Ulrich Drepper's glibc changes.
54595
54596         * lib/openat.c: (BUILD_PROC_NAME): New macro.
54597         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
54598         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
54599         before falling back on save_cwd and restore_cwd.
54600         (fdopendir, fstatat, unlinkat): Likewise.
54601
54602         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
54603         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
54604
54605         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
54606         as second argument to va_arg.  Otherwise, some versions of gcc
54607         warn that `if this code is reached, the program will abort'.
54608
54609 2006-01-09  Jim Meyering  <jim@meyering.net>
54610
54611         Sync from coreutils.
54612         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
54613         Require openat-priv.h.
54614
54615 2006-01-09  Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/strnlen (Include): Use strnlen.h.
54618
54619 2006-01-09  Bruno Haible  <bruno@clisp.org>
54620
54621         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
54622
54623 2006-01-09  Bruno Haible  <bruno@clisp.org>
54624
54625         * lib/sysexit_.h (EX_OK): New macro.
54626         Suggested by Martin Lambers <marlam@marlam.de>.
54627
54628 2006-01-09  Bruno Haible  <bruno@clisp.org>
54629
54630         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
54631         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
54632
54633 2006-01-09  Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
54636         numbers.
54637
54638 2006-01-09  Bruno Haible  <bruno@clisp.org>
54639
54640         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
54641         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
54642         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
54643         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
54644
54645 2006-01-09  Bruno Haible  <bruno@clisp.org>
54646
54647         * build-aux/javacomp.sh.in: New file, moved from lib/.
54648         * modules/javacomp-script (Files): Update.
54649         (configure.ac): Add AC_CONFIG_FILES invocation.
54650         (EXTRA_DIST): Remove variable.
54651
54652         * build-aux/javaexec.sh.in: New file, moved from lib/.
54653         * modules/javaexec (Files): Update.
54654         (configure.ac): Add AC_CONFIG_FILES invocation.
54655         (EXTRA_DIST): Remove javaexec.sh.in.
54656
54657         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
54658         * modules/csharpcomp-script (Files): Update.
54659         (configure.ac): Add AC_CONFIG_FILES invocation.
54660         (EXTRA_DIST): Remove variable.
54661
54662         * build-aux/csharpexec.sh.in: New file, moved from lib/.
54663         * modules/csharpexec (Files): Update.
54664         (configure.ac): Add AC_CONFIG_FILES invocation.
54665         (EXTRA_DIST): Remove csharpexec.sh.in.
54666
54667 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54668
54669         Sync from coreutils.
54670
54671         Add POSIX ACL support
54672         * lib/acl.h (copy_acl, set_acl): Add declarations.
54673         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
54674         systems other than Linux.
54675         (chmod_or_fchmod): New function: use fchmod when possible,
54676         and chmod otherwise.
54677         (file_has_acl): Add a POSIX ACL implementation, with a
54678         Linux-specific subcase.
54679         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
54680         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
54681         acls are unsupported.
54682         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
54683         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
54684         are unsupported.
54685
54686 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54687
54688         Sync from coreutils.
54689         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
54690
54691 2006-01-07  Bruno Haible  <bruno@clisp.org>
54692
54693         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
54694         gl_EARLY.
54695
54696 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54697
54698         * lib/strftime.c (tzname): Don't declare if it is already #defined.
54699         Problem reported for Mingw by Mark Junker.
54700
54701 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54702
54703         * README: Gnulib normally doesn't generate a tarball.
54704
54705 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
54706
54707         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
54708         long int, not int, for nanosecond counts, so that people who are
54709         used to POSIX struct timespec won't be surprised.  Reported by Jim
54710         Meyering.
54711
54712 2005-12-28  Bruno Haible  <bruno@clisp.org>
54713
54714         * build-aux/config.rpath: Update from GNU gettext.
54715
54716 2005-12-16  Jim Meyering  <jim@meyering.net>
54717
54718         * modules/fprintftime: New module.
54719         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
54720
54721 2005-12-16  Jim Meyering  <jim@meyering.net>
54722
54723         * m4/fprintftime.m4: New file.
54724
54725 2005-12-16  Jim Meyering  <jim@meyering.net>
54726
54727         * lib/fprintftime.c, lib/fprintftime.h: New files.
54728
54729 2005-12-15  Simon Josefsson  <jas@extundo.com>
54730
54731         * modules/socklen (configure.ac): Fix M4 macro name, to align with
54732         new m4/socklen.m4.
54733
54734 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54735
54736         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
54737         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
54738
54739 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54740
54741         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
54742         * lib/argp-help.c (fill_in_uparams): Check if the constructed
54743         struct uparams is valid. Fall back to the default values if it is
54744         not.
54745
54746 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54747
54748         * modules/argp (Files): Add argp-pin.c
54749         (Depends-on): dirname
54750         (lib_SOURCES): Add argp-pin.c
54751
54752 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54753
54754         * m4/argp.m4:  Check if program_invocation_name and
54755         program_invocation_short_name are declared and define appropriate
54756         macros if they are not.
54757
54758 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54759
54760         * lib/argp-help.c (__argp_base_name): New function
54761         (__argp_short_program_name): Rewrite using __argp_base_name
54762         * lib/argp-namefrob.h: Define program_invocation_name and
54763         program_invocation_short_name if requested
54764         (__argp_base_name): Add prototype
54765         * lib/argp-parse.c (argp_def): Use gettext wrappers
54766         (argp_default_parser): Use __argp_base_name
54767         * lib/argp-pin.c: New file. Defines program_invocation_name and
54768         program_invocation_short_name on systems that lack them.
54769
54770 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54771
54772         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
54773         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54774         porting problem reported by Georg Schwarz in
54775         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54776
54777 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54778
54779         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
54780         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54781         porting problem reported by Georg Schwarz in
54782         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54783
54784 2005-12-05  Bruno Haible  <bruno@clisp.org>
54785
54786         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
54787         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
54788         Reported by Mark Junker <mjscod@gmx.de>.
54789
54790 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
54791
54792         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
54793         Use implementation from Albert Chin, with some
54794         comments/corrections by Stepan Kasal and myself.
54795
54796 2005-12-02  Bruno Haible  <bruno@clisp.org>
54797
54798         * gnulib-tool (func_import): Accept GPLed build tool modules when
54799         --lgpl is given.
54800         * modules/csharpcomp-script: New file.
54801         * modules/csharpcomp: Depend on it.
54802         * modules/javacomp-script: New file.
54803         * modules/javacomp: Depend on it.
54804         Suggested by Simon Josefsson.
54805
54806 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
54807
54808         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
54809         statement, to work around an HP-UX 10.20 compiler bug reported by
54810         Peter O'Gorman.
54811
54812 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
54813
54814         * modules/savedir (Depends-on): Add openat.
54815
54816 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
54817
54818         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
54819         (uintmax_t) [defined uintmax_t]: Do not declare.
54820         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
54821         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
54822         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
54823         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
54824         sake of portability to weird hosts that C allows (though we don't
54825         know of any practical examples).
54826
54827         * lib/savedir.h (fdsavedir): New decl.
54828         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
54829         contains most of the former guts of savedir.
54830         (savedir): Use savedirstream.
54831         Include "openat.h".
54832
54833 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54834
54835         * modules/obstack (Files): Add m4/ulonglong.m4.
54836         Problem reported by Davide Angelocola.
54837
54838 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54839
54840         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
54841         coreutils no longer futzes with rounding modes.
54842
54843 2005-11-14  Jim Meyering  <jim@meyering.net>
54844
54845         * lib/mkstemp-safer.c: Include <config.h>, required for possible
54846         replacement of mkstemp.
54847
54848 2005-11-10  Simon Josefsson  <jas@extundo.com>
54849
54850         * lib/readline.c: Remove EOL.
54851
54852 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54853
54854         * modules/gethrxtime (Depends-on): Add gettime.
54855
54856 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54857
54858         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
54859         or gettimeofday; no longer needed.
54860
54861 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54862
54863         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
54864         time business.
54865         (gethrxtime) [! (HAVE_NANOUPTIME
54866         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
54867         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
54868         our own approximation.
54869
54870 2005-11-08  Eric Blake  <ebb9@byu.net>
54871
54872         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54873
54874 2005-11-08  Eric Blake  <ebb9@byu.net>
54875
54876         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54877
54878 2005-11-04  Bruno Haible  <bruno@clisp.org>
54879
54880         * gnulib-tool: Implement --update mode.
54881
54882 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54883
54884         Fix porting problem reported by Theodoros V. Kalamatianos.
54885         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
54886         Don't assume that futimes failing means we must fail.
54887
54888 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54889
54890         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
54891         variables to suggest the intended function of the PATH_MAX check.
54892
54893 2005-10-30  Kean Johnston  <jkj@sco.com>
54894
54895         Trivial changes to support SCO systems.
54896         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
54897         as PATH_MAX.
54898         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
54899         where __ptr is null when no I/O is pending.
54900
54901 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54902
54903         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
54904         leave errno alone.  Problem reported by Dmitry V. Levin.
54905
54906 2005-10-28  Simon Josefsson  <jas@extundo.com>
54907
54908         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
54909         Test more.
54910
54911         * tests/test-gc-md2.c, tests/test-md2.c: New files.
54912
54913         * modules/md2, modules/md2-tests: New files.
54914
54915 2005-10-28  Simon Josefsson  <jas@extundo.com>
54916
54917         * m4/inet_ntop.m4: More tests.
54918
54919         * m4/gc-md2.m4, md2.m4: New file.
54920
54921 2005-10-28  Simon Josefsson  <jas@extundo.com>
54922
54923         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
54924         "restrict" keywords, as per POSIX.  Protect the function
54925         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
54926         Don't use K&R prototypes.  Check the sprintf return values.
54927         Re-define EAFNOSUPPORT if not present.  Indent.
54928
54929         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
54930         suggested by Bruno Haible <bruno@clisp.org>.
54931
54932         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
54933
54934         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
54935
54936         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
54937         libgcrypt).
54938
54939         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
54940
54941         * lib/md2.h, lib/md2.c: New files.
54942
54943 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
54944
54945         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
54946         errno alone.  Problem reported by Frederic Jolliton.
54947
54948 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54949
54950         * modules/verify (License): Change from GPL to LGPL.  This is a
54951         tiny module and there are apparently near-equivalents that are
54952         under the BSD license.
54953
54954 2005-10-24  Simon Josefsson  <jas@extundo.com>
54955
54956         * modules/sha1: Relicense to LGPL.
54957
54958 2005-10-24  Simon Josefsson  <jas@extundo.com>
54959
54960         * lib/md4.h: Shrink buffer size, now that we changed the type.
54961
54962 2005-10-23  Simon Josefsson  <jas@extundo.com>
54963
54964         * gnulib-tool (func_import): Fix --tests-base.
54965
54966 2005-10-22  Simon Josefsson  <jas@extundo.com>
54967
54968         * modules/arcfour (Depends-on): Need stdint.
54969
54970 2005-10-22  Simon Josefsson  <jas@extundo.com>
54971
54972         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
54973         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
54974
54975 2005-10-22  Simon Josefsson  <jas@extundo.com>
54976
54977         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
54978         suggested by Bruno Haible <bruno@clisp.org>.
54979
54980 2005-10-22  Simon Josefsson  <jas@extundo.com>
54981
54982         * lib/crc.h: Include stddef.h, for size_t.
54983
54984 2005-10-22  Simon Josefsson  <jas@extundo.com>
54985
54986         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
54987         arcfour_context struct (simplify test vector testing in GNU
54988         Shishi).
54989
54990 2005-10-21  Simon Josefsson  <jas@extundo.com>
54991
54992         * modules/des, modules/des-tests: New files.
54993
54994         * modules/gc-des, modules/gc-des-tests: New files.
54995
54996         * tests/test-des.c, tests/test-gc-des.c: New file.
54997
54998 2005-10-21  Simon Josefsson  <jas@extundo.com>
54999
55000         * modules/arctwo, modules/arctwo-tests: New files.
55001
55002         * tests/test-arctwo.c: New file.
55003
55004         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55005
55006         * tests/test-gc-arctwo.c: New file.
55007
55008 2005-10-21  Simon Josefsson  <jas@extundo.com>
55009
55010         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55011         Bruno Haible <bruno@clisp.org>.
55012
55013         * m4/gc-des.m4: New file.
55014
55015 2005-10-21  Simon Josefsson  <jas@extundo.com>
55016
55017         * m4/arctwo.m4: New file.
55018
55019         * m4/gc-arctwo.m4: New file.
55020
55021 2005-10-21  Simon Josefsson  <jas@extundo.com>
55022
55023         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55024         block.
55025
55026 2005-10-21  Simon Josefsson  <jas@extundo.com>
55027
55028         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55029         <bruno@clisp.org>.
55030
55031         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55032
55033         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55034         Bruno Haible <bruno@clisp.org>.
55035
55036         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55037         <bruno@clisp.org>.
55038
55039 2005-10-21  Simon Josefsson  <jas@extundo.com>
55040
55041         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55042
55043 2005-10-21  Simon Josefsson  <jas@extundo.com>
55044
55045         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55046
55047 2005-10-21  Simon Josefsson  <jas@extundo.com>
55048
55049         * lib/des.h, lib/des.c: New files.
55050
55051         * lib/gc-gnulib.c: Support DES.c
55052
55053 2005-10-21  Simon Josefsson  <jas@extundo.com>
55054
55055         * lib/arctwo.h, lib/arctwo.c: New files.
55056
55057         * lib/gc-gnulib.c: Support ARCTWO.
55058
55059 2005-10-21  Simon Josefsson  <jas@extundo.com>
55060
55061         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55062         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55063
55064 2005-10-21  Simon Josefsson  <jas@extundo.com>
55065
55066         * gnulib-tool (func_import, func_create_testdir): Define automake
55067         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55068         Makefile.am snippet),
55069         suggested by Bruno Haible <bruno@clisp.org>.
55070
55071         * modules/gc (Makefile.am): Use it.
55072
55073 2005-10-21  Bruno Haible  <bruno@clisp.org>
55074
55075         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55076         patch.
55077
55078 2005-10-19  Simon Josefsson  <jas@extundo.com>
55079
55080         * tests/test-gc-rijndael.c: New file.
55081
55082         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55083
55084 2005-10-19  Simon Josefsson  <jas@extundo.com>
55085
55086         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55087         interface too.
55088
55089 2005-10-19  Simon Josefsson  <jas@extundo.com>
55090
55091         * tests/test-gc-arcfour.c: New file.
55092
55093         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55094
55095 2005-10-19  Simon Josefsson  <jas@extundo.com>
55096
55097         * modules/gc-md4, modules/gc-md4-tests: New file.
55098
55099         * tests/test-gc-md4.c: New file.
55100
55101 2005-10-19  Simon Josefsson  <jas@extundo.com>
55102
55103         * m4/gc-md4.m4: New file.
55104
55105 2005-10-19  Simon Josefsson  <jas@extundo.com>
55106
55107         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55108         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55109         <kasal@ucw.cz>.
55110
55111 2005-10-19  Simon Josefsson  <jas@extundo.com>
55112
55113         * m4/gc-arcfour.m4: New file.
55114
55115         * m4/gc-rijndael.m4: New file.
55116
55117 2005-10-19  Simon Josefsson  <jas@extundo.com>
55118
55119         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55120
55121 2005-10-19  Simon Josefsson  <jas@extundo.com>
55122
55123         * lib/gc-gnulib.c: Support ARCFOUR.
55124
55125 2005-10-19  Simon Josefsson  <jas@extundo.com>
55126
55127         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55128         support.
55129
55130         * lib/gc.h: Add ECB enum type.
55131
55132         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55133
55134 2005-10-18  Simon Josefsson  <jas@extundo.com>
55135
55136         * tests/test-md5.c: New file.
55137
55138         * modules/md5-tests: New file.
55139
55140 2005-10-18  Simon Josefsson  <jas@extundo.com>
55141
55142         * tests/test-md4.c: New file.
55143
55144         * modules/md4, modules/md4-tests: New files.
55145
55146 2005-10-18  Simon Josefsson  <jas@extundo.com>
55147
55148         * m4/md4.m4: New file.
55149
55150 2005-10-18  Simon Josefsson  <jas@extundo.com>
55151
55152         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55153
55154 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55155
55156         * gnulib-tool (func_create_testdir): Omit the second check whether
55157         BUILT_SOURCES in nonempty.
55158
55159 2005-10-17  Simon Josefsson  <jas@extundo.com>
55160
55161         * tests/test-rijndael.c: New file.
55162
55163 2005-10-17  Simon Josefsson  <jas@extundo.com>
55164
55165         * modules/sha1: Depend on stdint instead of md5.
55166
55167         * modules/md5: Depend on stdint, remove uint32_t.
55168
55169 2005-10-17  Simon Josefsson  <jas@extundo.com>
55170
55171         * modules/gc-sha1-tests: New file.
55172
55173         * tests/test-gc-sha1.c: New file.
55174
55175 2005-10-17  Simon Josefsson  <jas@extundo.com>
55176
55177         * m4/md5.m4: Remove call to uint32_t.m4.
55178
55179 2005-10-17  Simon Josefsson  <jas@extundo.com>
55180
55181         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55182
55183         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55184         md5.h.
55185
55186         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55187
55188         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55189
55190 2005-10-17  Simon Josefsson  <jas@extundo.com>
55191
55192         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55193
55194 2005-10-17  Simon Josefsson  <jas@extundo.com>
55195
55196         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55197
55198 2005-10-17  Simon Josefsson  <jas@extundo.com>
55199
55200         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55201
55202         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55203
55204 2005-10-17  Bruno Haible  <bruno@clisp.org>
55205
55206         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55207         that it can also be used in a test.
55208
55209 2005-10-16  Bruno Haible  <bruno@clisp.org>
55210
55211         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55212         TESTS_ENVIRONMENT, so that individual tests can augment it.
55213
55214         * gnulib-tool (func_create_testdir): Use an intermediate target for
55215         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55216         macros, like $(ALLOCA_H), which cannot be passed through the command
55217         line.
55218
55219 2005-10-15  Simon Josefsson  <jas@extundo.com>
55220
55221         * modules/rijndael-tests: New file.
55222
55223         * modules/rijndael: New file.
55224
55225 2005-10-15  Simon Josefsson  <jas@extundo.com>
55226
55227         * m4/rijndael.m4: New file.
55228
55229 2005-10-15  Simon Josefsson  <jas@extundo.com>
55230
55231         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
55232
55233         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
55234
55235 2005-10-14  Simon Josefsson  <jas@extundo.com>
55236
55237         * tests/test-arcfour.c: New file.
55238
55239         * modules/arcfour, modules/arcfour-tests: New files.
55240
55241 2005-10-14  Simon Josefsson  <jas@extundo.com>
55242
55243         * m4/arcfour.m4: New file.
55244
55245 2005-10-14  Simon Josefsson  <jas@extundo.com>
55246
55247         * lib/arcfour.h, lib/arcfour.c: New files.
55248
55249 2005-10-14  Roland McGrath  <roland@redhat.com>
55250
55251         Import from libc.  [BZ #1331]
55252         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
55253         macro argument.
55254         Reported by Matej Vela <vela@debian.org>.
55255
55256 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55257
55258         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
55259         include <wchar.h>; no longer needed.
55260
55261 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55262
55263         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55264
55265 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55266         and  Ulrich Drepper  <drepper@redhat.com>
55267
55268         Import from libc.
55269         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55270         instead of inline stream orientation test and two separate
55271         function calls.  Pay no attention to USE_IN_LIBIO.
55272
55273 2005-10-13  Simon Josefsson  <jas@extundo.com>
55274
55275         * modules/gc-hmac-md5-tests: New file.
55276
55277         * tests/test-gc-hmac-sha1.c: New file.
55278
55279         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55280
55281         * modules/gc-hmac-md5-tests: New file.
55282
55283         * tests/test-gc-md5.c: New file.
55284
55285         * modules/gc-md5-tests: New file.
55286
55287 2005-10-13  Simon Josefsson  <jas@extundo.com>
55288
55289         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55290         Move memory allocation outside of loop.
55291
55292 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55293
55294         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55295         intermediate directory is in a read-only file system.  Problem
55296         reported by Eric Blake.
55297
55298 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55299
55300         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55301
55302 2005-10-12  Simon Josefsson  <jas@extundo.com>
55303
55304         * tests/test-hmac-sha1.c: New file.
55305
55306         * modules/hmac-sha1-tests: New file.
55307
55308         * modules/hmac-sha1: New file.
55309
55310 2005-10-12  Simon Josefsson  <jas@extundo.com>
55311
55312         * modules/gc-sha1: New file.
55313
55314 2005-10-12  Simon Josefsson  <jas@extundo.com>
55315
55316         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55317
55318         * tests/test-gc-pbkdf2-sha1.c: New file.
55319
55320 2005-10-12  Simon Josefsson  <jas@extundo.com>
55321
55322         * modules/gc-md5, modules/gc-hmac-md5: New files.
55323
55324         * modules/gc (Files): Remove md5, memxor and hmac files.
55325
55326 2005-10-12  Simon Josefsson  <jas@extundo.com>
55327
55328         * m4/gc-pbkdf2-sha1.m4: New file.
55329
55330         * m4/gc-hmac-sha1.m4: New file.
55331
55332         * m4/gc-sha1: New file.
55333
55334         * m4/hmac-sha1.m4: New file.
55335
55336 2005-10-12  Simon Josefsson  <jas@extundo.com>
55337
55338         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55339
55340         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55341
55342 2005-10-12  Simon Josefsson  <jas@extundo.com>
55343
55344         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55345         suggested by Bruno Haible <bruno@clisp.org>.
55346
55347 2005-10-12  Simon Josefsson  <jas@extundo.com>
55348
55349         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55350
55351 2005-10-12  Simon Josefsson  <jas@extundo.com>
55352
55353         * lib/gc-pbkdf2-sha1.c: New file.
55354
55355         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55356
55357 2005-10-12  Simon Josefsson  <jas@extundo.com>
55358
55359         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55360
55361         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55362
55363 2005-10-12  Simon Josefsson  <jas@extundo.com>
55364
55365         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55366         GC_USE_HMAC_MD5, respectively.
55367
55368         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55369         (gc_md5): Fix typo.
55370
55371         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55372
55373         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55374
55375         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55376
55377 2005-10-12  Bruno Haible  <bruno@clisp.org>
55378
55379         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55380         Reported by Stepan Kasal <kasal@ucw.cz>.
55381
55382 2005-10-11  Simon Josefsson  <jas@extundo.com>
55383
55384         * tests/test-crc.c: New file.
55385
55386         * modules/crc, modules/crc-tests: New files.
55387
55388 2005-10-11  Simon Josefsson  <jas@extundo.com>
55389
55390         * m4/crc.m4: New file.
55391
55392 2005-10-11  Simon Josefsson  <jas@extundo.com>
55393
55394         * lib/gc.h: Add gc_hash and gc_hash_buffer.
55395
55396         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
55397
55398         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
55399
55400 2005-10-11  Simon Josefsson  <jas@extundo.com>
55401
55402         * lib/crc.h, lib/crc.c: New files.
55403
55404         * lib/gc.h (gc_hash_buffer): Add doc.
55405
55406 2005-10-11  Bruno Haible  <bruno@clisp.org>
55407
55408         * modules/c-strcasestr: New file.
55409         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
55410
55411 2005-10-11  Bruno Haible  <bruno@clisp.org>
55412
55413         * modules/c-strcase: New file.
55414         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
55415
55416 2005-10-11  Bruno Haible  <bruno@clisp.org>
55417
55418         * lib/strcasecmp.c: Include limits.h.
55419         (strcasecmp): Avoid integer overflow on exotic platforms.
55420         * lib/strncasecmp.c: Include limits.h.
55421         (strncasecmp): Avoid integer overflow on exotic platforms.
55422         Reported by Paul Eggert.
55423
55424 2005-10-11  Bruno Haible  <bruno@clisp.org>
55425
55426         * lib/c-strcasestr.h: New file, from GNU gettext.
55427         * lib/c-strcasestr.c: New file, from GNU gettext.
55428
55429 2005-10-11  Bruno Haible  <bruno@clisp.org>
55430
55431         * lib/c-strcase.h: New file, from GNU gettext.
55432         * lib/c-strcasecmp.c: New file, from GNU gettext.
55433         * lib/c-strncasecmp.c: New file, from GNU gettext.
55434
55435 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55436
55437         * modules/mempcpy (License): GPL -> LGPL.
55438         * modules/strchrnul (License): Likewise.
55439         * modules/sysexits (License): Likewise.
55440
55441 2005-10-08  Simon Josefsson  <jas@extundo.com>
55442
55443         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
55444
55445 2005-10-07  Simon Josefsson  <jas@extundo.com>
55446
55447         * m4/memxor.m4: Remove gl_C_RESTRICT call.
55448
55449 2005-10-06  Simon Josefsson  <jas@extundo.com>
55450
55451         * tests/test-hmac-md5.c: New file.
55452
55453         * modules/hmac-md5-tests: New file.
55454
55455         * modules/hmac-md5: New file.
55456
55457 2005-10-06  Simon Josefsson  <jas@extundo.com>
55458
55459         * m4/hmac-md5.m4: New file.
55460
55461         * m4/memxor.m4: Require gl_C_RESTRICT.
55462
55463 2005-10-06  Simon Josefsson  <jas@extundo.com>
55464
55465         * lib/memxor.c (memxor): Avoid casts and warnings.
55466
55467 2005-10-06  Simon Josefsson  <jas@extundo.com>
55468
55469         * lib/hmac-md5.c: New file.
55470
55471         * lib/hmac.h: New file.
55472
55473 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55474
55475         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
55476         promotes to int, not unsigned int, to catch the AIX 5.3
55477         compiler bug.
55478
55479 2005-10-05  Simon Josefsson  <jas@extundo.com>
55480
55481         * modules/memxor: New file.
55482
55483         * modules/iconv (Files): Move config.rpath to havelib, it is used
55484         there.
55485
55486         * modules/havelib (Files): Add config.rpath.
55487
55488 2005-10-05  Simon Josefsson  <jas@extundo.com>
55489
55490         * m4/memxor.m4: New file.
55491
55492 2005-10-05  Simon Josefsson  <jas@extundo.com>
55493
55494         * lib/memxor.c (memxor): Fix compiler error.
55495
55496         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
55497         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
55498
55499         * lib/memxor.h, lib/memxor.c: New files.
55500
55501         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
55502         we assume all systems have it, suggested by Jim Meyering
55503         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
55504         any systems lack sys/socket.h; mingw32 is known to lack it, but we
55505         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
55506         same reasons.
55507
55508 2005-10-05  Simon Josefsson  <jas@extundo.com>
55509
55510         * config/srclist.txt: Add glibc bug 1423 for md5.h.
55511
55512 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55513
55514         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
55515         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
55516         needed, since the source code now assumes these .h files.
55517
55518 2005-10-05  Derek Price  <derek@ximbiot.com>
55519
55520         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
55521
55522 2005-10-05  Bruno Haible  <bruno@clisp.org>
55523
55524         * modules/stdint (License): Change to LGPL.
55525
55526 2005-10-04  Simon Josefsson  <jas@extundo.com>
55527
55528         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
55529         D. Baushke" <mdb@gnu.org>.
55530
55531 2005-10-04  Bruno Haible  <bruno@clisp.org>
55532
55533         * lib/verify.h (verify_true): Provide alternative definition for C++.
55534
55535 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
55536
55537         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
55538         (SSIZE_MAX): New macro, if not already defined.
55539         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
55540         than 2 GiB.
55541
55542 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55543
55544         Sync from coreutils.
55545         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
55546         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
55547         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
55548         ULLONG_MAX doesn't work with 2.7.2.1.
55549
55550 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55551
55552         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
55553         From Ben Pfaff.
55554
55555         * modules/exclude (Depends-on): Depend on verify.
55556         * modules/strtoimax (Depends-on): Likewise.
55557         * modules/utimecmp (Depends-on): Likewise.
55558
55559 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55560
55561         * lib/exclude.c: Include verify.h.
55562         (verify): Remove.  All callers changed to use verify.h's version.
55563         * lib/strtoimax.c: Likewise.
55564         * lib/utimecmp.c: Likewis.e
55565
55566         Sync from coreutils.
55567         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
55568         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
55569         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
55570         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
55571         bother returning ENOSYS if settimeofday or stime fails; just let
55572         them return whatever errno they want to return.
55573         * lib/utimens.c: Include unistd.h, for dup2.
55574         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
55575         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
55576
55577 2005-10-02  Jim Meyering  <jim@meyering.net>
55578
55579         Sync from coreutils.
55580         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
55581         from glibc-2.2.5 that fails for read-only files.
55582
55583 2005-10-02  Jim Meyering  <jim@meyering.net>
55584
55585         Sync from coreutils.
55586         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
55587         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
55588         `#if HAVE_CONFIG_H'.
55589         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
55590         Remove AT_FDCWD test.
55591         Do not consume the fd unless successful.
55592         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
55593         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
55594         block, so that we don't even try to compile it if settimeofday is
55595         available.  This works around a compilation failure on OSF1 V5.1,
55596         due to stime requiring a `long int*' while tv_sec is `int'.
55597
55598 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
55599
55600         Sync from coreutils.
55601         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
55602         against `yes', rather than just testing for nonempty.
55603
55604 2005-10-01  Simon Josefsson  <jas@extundo.com>
55605
55606         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
55607         and Darwin.
55608
55609         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
55610         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
55611         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
55612         freeaddrinfo and gai_strerror are declared by the POSIX headers.
55613         Check if struct addrinfo is declared.
55614
55615 2005-10-01  Simon Josefsson  <jas@extundo.com>
55616
55617         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
55618         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
55619         AI_* and EAI_* definitions.  Protect function declarations.
55620
55621 2005-10-01  Jim Meyering  <jim@meyering.net>
55622
55623         Sync from coreutils.
55624
55625         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
55626         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
55627         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
55628         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55629         in the inet and nsl libraries.  Required on Solaris 5.7.
55630
55631 2005-10-01  Jim Meyering  <jim@meyering.net>
55632
55633         Sync from coreutils.
55634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55635         in the inet and nsl libraries.  Required on Solaris 5.7.
55636
55637 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
55638
55639         * lib/getdelim.c (getdelim): Remove unused variables.
55640
55641 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55642
55643         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
55644         so that the code works even with ancient cpp.  Portability problem
55645         with GCC 2.7.2.1 reported by Thomas M.Ott.
55646
55647 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55648
55649         * modules/regex (Depends-on): Add strcase.
55650
55651         * modules/gethostname (Licence): Change from GPL to LGPL, since
55652         gethostname.c is a trivial implementation of a standard library
55653         function.
55654         * modules/poll (License): Change from GPL to LGPL, since it's
55655         derived from LGPL code.
55656
55657 2005-09-27  Jim Meyering  <jim@meyering.net>
55658
55659         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
55660         HAVE_CONFIG_H.
55661
55662         * lib/intprops.h (signed_type_or_expr__): Define.
55663         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
55664         for unsigned types.
55665
55666 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55667
55668         * lib/verify.h (verify_expr): Remove, replacing with:
55669         (verify_true): New macro that returns true instead of void.
55670         (verify_type__): Remove.
55671         (verify): Use verify_true rather than verify_type__.
55672
55673 2005-09-26  Bruno Haible  <bruno@clisp.org>
55674
55675         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
55676         is necessary.
55677         (lib_SOURCES): Remove mbchar.c.
55678         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
55679         (Files): Add m4/mbrtowc.m4.
55680         * modules/mbiter: Likewise.
55681         * modules/mbuiter: Likewise.
55682
55683 2005-09-26  Bruno Haible  <bruno@clisp.org>
55684
55685         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
55686         compile mbchar.c if they are not both present.
55687         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
55688         * m4/mbiter.m4 (gl_MBITER): Likewise.
55689         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
55690         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
55691         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
55692
55693 2005-09-25  Jim Meyering  <jim@meyering.net>
55694
55695         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
55696         also uses socklen_t.
55697
55698 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
55699
55700         * lib/utimens.c (ENOSYS): Define if not already defined.
55701         (futimens): Support having a null PATH if the file descriptor
55702         is nonnegative.
55703
55704         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
55705         Remove.
55706         (__attribute): Define to empty unless GCC 3.1 or later.
55707         This works around a core dump on OpenBSD 3.4, which has GCC
55708         2.95.3, which dumps core when given __attribute__(()).  It also
55709         simplifies other tests, since we really don't want to bother with
55710         worrying about which ancient version of GCC supported what.
55711         Original problem reported by Yoann Vandoorselaere, with part of
55712         the fix suggested by Derek Price.
55713
55714 2005-09-24  Jim Meyering  <jim@meyering.net>
55715
55716         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
55717         so we can once again use a positive bitfield width of 1 -- now we
55718         don't have to explain why we were using a bitfield width of 2.
55719
55720 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55721
55722         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
55723         and similarly for the other external symbols.  Problem reported
55724         by James Gallager.
55725
55726         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
55727         bug reported by Jim Meyering.
55728
55729         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
55730         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
55731         not needed, since socklen is a prerequisite module.
55732
55733 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55734
55735         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
55736         Problem reported by Eric Blake.
55737         (getaddrinfo): Initialize se so that it's not garbage.
55738         Redo internal storage allocation so that it doesn't make unportable
55739         assumptions about alignment.
55740         Fix a memory leak.
55741
55742         * lib/utimens.c (futimens): Use futimesat if available.
55743         Prefer it to futimes since it doesn't have the futimes bug.
55744
55745         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
55746         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
55747         Instead, declare a function that returns a pointer to an array,
55748         and use verify_type__ to declare the size of the array.
55749         Problem and germ of a solution reported by Bruno Haible.
55750         (verify_type__): Use 2, not 1, for bitfield size, to avoid
55751         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
55752
55753 2005-09-23  Jim Meyering  <jim@meyering.net>
55754
55755         Sync from coreutils.
55756         Correct build failure (socklen_t not defined) on at least
55757         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
55758         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
55759
55760 2005-09-23  Jim Meyering  <jim@meyering.net>
55761
55762         * modules/getaddrinfo (Depends-on): Add socklen.
55763
55764 2005-09-23  Bruno Haible  <bruno@clisp.org>
55765
55766         * tests/test-verify.c: New file.
55767
55768 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55769
55770         Sync from coreutils.
55771
55772         * modules/argmatch (Depends-on): Add verify.
55773         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
55774         unistd-safer.
55775         * modules/save-cwd (Depends-on): Likewise.
55776
55777         * modules/openat (Files): Add lib/openat-die.c.
55778         (Depends-on): Remove error, exitfail.
55779         Add dirname.
55780
55781         * modules/verify: New file.
55782         * MODULES.html.sh (Diagnostics <assert.h>): New section,
55783         with "verify" module.
55784
55785 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55786
55787         Sync from coreutils.
55788
55789         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
55790         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
55791         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
55792         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
55793         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
55794         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
55795         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
55796         Don't bother checking for string.h, stdlib.h, unistd.h.
55797         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
55798         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
55799         module's job.
55800         * m4/jm-macros.m4 (gl_MACROS): Likewise.
55801         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
55802
55803         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
55804         (gl_GETDATE): Use it.
55805
55806         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
55807
55808 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55809
55810         Sync from coreutils.
55811
55812         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
55813         stat-time.h.
55814         * lib/argmatch.h: Include verify.h
55815         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
55816         (ARGMATCH_ASSERT): Remove; unused.
55817         * lib/canonicalize.c: Assume STDC_HEADERS.
55818         * lib/exclude.c: Include "strcase.h".
55819         * lib/regex_internal.h [!defined _LIBC]: Likewise.
55820         * lib/getusershell.c: Include stdio--.h rather than stdio.h
55821         and stdio-safer.h.
55822         (getusershell): Call fopen, not fopen_safer.
55823         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
55824         Do not include unistd-safer.h.
55825         (save_cwd): Don't call fd_safer; no longer needed
55826         now that we include fcntl--.h.
55827
55828         * lib/getdate.y (relative_time): New type.
55829         (RELATIVE_TIME_0): New constant.
55830         (parser_control): Use relative_time instead of doing it ourselves.
55831         (%union): Add new relative_time rel member.
55832         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
55833         Now typeless.
55834         (relunit, relunit_snumber): Now of type rel.
55835         (zone, rel, relunit, get_date): Adjust to above changes.
55836
55837         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
55838         Do not include unistd-safer.h.
55839         (getloadavg): Don't call fd_safer; no longer needed
55840         now that we include fcntl--.h.
55841
55842         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
55843         (make_dir_parents): Treat ENOSYS like EEXIST.
55844
55845         Improve quality of diagnostics on restore_cwd failure.
55846         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
55847         (make_dir_parents): Last arg is now int * (for errno), not bool *.
55848         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
55849         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
55850         each time through the loop.  Do not diagnose restore_cwd failure;
55851         that is the caller's job (and perhaps the caller does not care).
55852
55853         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
55854         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
55855         If the file already exists but is not a directory, don't bother
55856         to try to make its parents.
55857         Close potential file descriptor leak if we can't chdir("/") (!).
55858         Don't always return true if chdir($PWD) fails; return true only
55859         if the requested action was done successfully (except for the
55860         chdir($PWD)).
55861         Don't log final directory unless we actually made it.
55862         Refactor to avoid duplicate code to fix up permissions.
55863         Don't attempt to fix up parent permissions if chdir($PWD) fails.
55864
55865         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
55866         to make it a bit faster and (I hope) clearer.
55867         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
55868         Fix bug in formats like %2N.
55869
55870         * lib/verify.h: New file.
55871
55872 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55873
55874         Sync from coreutils.
55875         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
55876
55877 2005-09-22  Jim Meyering  <jim@meyering.net>
55878
55879         Sync from coreutils.
55880
55881         * m4/lstat.m4 (gl_FUNC_LSTAT):
55882         Use AC_LIBSOURCES to require lstat.c and lstat.h.
55883         Remove obsolete comment.
55884         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
55885         * m4/xstrtod.m4: Likewise.
55886
55887         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
55888
55889 2005-09-22  Jim Meyering  <jim@meyering.net>
55890
55891         Sync from coreutils.
55892
55893         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
55894
55895         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
55896         the .tm_year member, since otherwise gcc-4.0 would now warn about
55897         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
55898
55899         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
55900         order to avoid an unsuppressible warning from gcc on 64-bit systems.
55901
55902         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
55903         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
55904         when run in a time zone for which daylight savings time is in effect
55905         for the starting date.
55906
55907         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
55908         stop us from restricting permissions of just-created absolute-named
55909         directories.
55910         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
55911         to restore initial working directory.
55912         * lib/mkdir-p.c (make_dir_parents): New parameter:
55913         different_working_dir, to tell caller if/when we change the working
55914         directory and are unable to return to the initial one.
55915         * lib/mkdir-p.h (make_dir_parents): Update prototype.
55916         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
55917         `return false'.  This fixes a bug introduced on 2004-07-30.
55918
55919         * lib/openat.c (fdopendir): Be sure to close the supplied
55920         file descriptor before returning.  This makes our replacement
55921         implementation a little closer to Solaris's, where fdopendir
55922         ties the file descriptor to the returned DIR* pointer.
55923         * lib/openat.c (unlinkat): New function.
55924         * lib/openat.h (unlinkat): Add prototype.
55925         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
55926         (openat_restore_fail): Rename from openat_restore_die.
55927         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
55928
55929         Provide an alternative to exiting immediately upon save_cwd or
55930         restore_cwd failure.  Now, an application can arrange e.g.,
55931         to perform a longjump in that case.
55932         * lib/openat.c: Include dirname.h.
55933         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
55934         (rpl_openat, fdopendir, fstatat): Call openat_save_die
55935         and openat_restore_die rather than calling error directly.
55936         Don't include "error.h" or "exitfail.h"; they're no longer needed.
55937
55938         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
55939         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
55940         define.
55941
55942         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
55943         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
55944                             int utc, int nanoseconds);
55945         Background:
55946         date should not have to allocate a megabyte of virtual memory to
55947         handle a format argument like +%1048575T.  When implemented with
55948         strftime, it must allocate such a buffer, use strftime to fill it
55949         in, print it, then free it.
55950         With fprintftime, it simply prints everything and exits.
55951         With no need for memory allocation, that's one fewer way to fail.
55952         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
55953         optional field width, not before, so we accept %9:z, not %:9z.
55954         (my_strftime): Be sure to use L_('x') for literals.
55955
55956         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
55957         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
55958         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
55959         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
55960         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
55961         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
55962         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
55963         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
55964         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
55965         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
55966         * lib/xgethostname.c, lib/xreadlink.c:
55967         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
55968
55969         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
55970         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
55971         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
55972         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55973         and don't include <sys/file.h>).
55974
55975 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
55976
55977         Sync from coreutils.
55978
55979         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
55980         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
55981         [!LDAV_DONE]: Avoid unused variable warning.
55982
55983 2005-09-21  Bruno Haible  <bruno@clisp.org>
55984
55985         * lib/unicodeio.h (unicode_to_mb): New declaration.
55986
55987 2005-09-20  Derek Price  <derek@ximbiot.com>
55988
55989         * lib/getaddrinfo.c: Don't include <netdb.h> included from
55990         getaddrinfo.h.
55991
55992 2005-09-20  Bruno Haible  <bruno@clisp.org>
55993
55994         * gnulib-tool: Remove trailing slashes from the values specified for
55995         --source-base, --m4-base, --tests-base, --aux-dir.
55996         Suggested by Simon Josefsson <jas@extundo.com>.
55997
55998 2005-09-20  Bruno Haible  <bruno@clisp.org>
55999
56000         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56001         func_modules_to_filelist, func_import, func_create_testdir): Make all
56002         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56003         change when gnulib-tool is invoked in a different locale.
56004
56005 2005-09-19  Simon Josefsson  <jas@extundo.com>
56006
56007         * m4/socklen.m4: Fix typo.
56008
56009 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56010
56011         Use a consistent style for including <config.h>.
56012         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56013         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56014         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56015         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56016         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56017         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56018         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56019         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56020         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56021         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56022         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56023         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56024         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56025         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56026         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56027         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56028         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56029         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56030         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56031         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56032         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56033         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56034         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56035         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56036         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56037         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56038         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56039         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56040         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56041         lib/xstrtoumax.c, lib/yesno.c:
56042         Standardize inclusion of config.h.
56043         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56044         lib/inttostr.h:  Removed inclusion of config.h from header files.
56045         * lib/inttostr.c:  Adjusted in-tree users.
56046         * lib/timespec.h: Remove superfluous warning to include config.h.
56047         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56048         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56049         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56050         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56051         config.h with HAVE_CONFIG_H.
56052
56053 2005-09-19  Jim Meyering  <jim@meyering.net>
56054
56055         * modules/pathmax (License): Change to LGPL.
56056
56057 2005-09-19  Derek Price  <derek@ximbiot.com>
56058
56059         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56060
56061 2005-09-19  Bruno Haible  <bruno@clisp.org>
56062
56063         * gnulib-tool (import): Provide default for --tests-base.
56064
56065 2005-09-19  Bruno Haible  <bruno@clisp.org>
56066
56067         * doc/quote.texi: New file, extracted from gnulib.texi.
56068         * doc/ctime.texi: New file, extracted from gnulib.texi.
56069         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56070         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56071         * doc/gnulib.texi: Include them.
56072
56073 2005-09-18  Bruno Haible  <bruno@clisp.org>
56074
56075         Portability fix.
56076         * gnulib-tool (func_readlink): New function.
56077         (func_ln_if_changed): Use it.
56078
56079 2005-09-18  Bruno Haible  <bruno@clisp.org>
56080
56081         * gnulib-tool: Support --with-tests also with --import.
56082         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56083         (func_import): Use variables $testsbase and $inctests. Emit a
56084         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56085         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56086         SUBDIRS += $testsdir.
56087         (func_create_testdir): Update.
56088
56089 2005-09-18  Bruno Haible  <bruno@clisp.org>
56090
56091         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56092         instead of $dry_run.
56093         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56094         (func_ln_if_changed): Don't handle dry-run here.
56095         (func_import): In dry-run mode, detect more precisely which actions
56096         would be performed, and don't use "...ing" verbs.
56097
56098 2005-09-18  Bruno Haible  <bruno@clisp.org>
56099
56100         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56101         (func_import): Use join on two temporary files instead of three nested
56102         loops, in order to determine which files are new or old.
56103
56104 2005-09-18  Bruno Haible  <bruno@clisp.org>
56105
56106         * gnulib-tool (func_import): Comment out code that spits out the
56107         new files with --dry-run.
56108
56109 2005-09-18  Bruno Haible  <bruno@clisp.org>
56110
56111         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56112
56113 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56114
56115         * lib/stat-time.h: New file.
56116         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56117         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56118         in a different way.
56119         (timespec_cmp): New function.
56120         * lib/utimecmp.c: Include stat-time.h.
56121         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56122         members exist, not on the obsolescent ST_MTIM_NSEC.
56123         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56124
56125 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56126
56127         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56128
56129 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56130
56131         * MODULES.html.sh (File system functions): Add stat-time.
56132         * modules/stat-time: New file.
56133         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56134         is now done in a different way, by the stat-time module.
56135         * modules/utimecmp (Depends-on): Add stat-time.
56136
56137 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56138
56139         * m4/st_mtim.m4: Remove.  Superseded by...
56140         * m4/stat-time.m4: New file.
56141         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56142         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56143
56144 2005-09-15  Derek Price  <derek@ximbiot.com>
56145
56146         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56147
56148 2005-09-15  Derek Price  <derek@ximbiot.com>
56149
56150         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56151         * lib/regex_internal.c: Ditto, using this...
56152         (__GNUC_PREREQ): ...new macro.
56153         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56154         using...
56155         (__GNUC_PREREQ): ...this new macro.
56156
56157         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56158
56159 2005-09-15  Derek Price  <derek@ximbiot.com>
56160             Paul Eggert  <eggert@cs.ucla.edu>
56161
56162         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56163         changes, consolidating in...
56164         * lib/regex_internal.h: ...this file.
56165
56166 2005-09-13  Jim Meyering  <jim@meyering.net>
56167
56168         * lib/canon-host.c: Filter through gnu indent and reword comments
56169         slightly.
56170         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56171
56172 2005-09-13  Derek Price  <derek@ximbiot.com>
56173
56174         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56175         failure.
56176         Reported by Jim Meyering  <jim@meyering.net>.
56177
56178 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56179
56180         * lib/base64.c: Typo.
56181         (base64_encode): Put b64str in initialized data section.
56182
56183 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56184
56185         Merge glibc and coreutils changes into gnulib, plus a few
56186         extra fixes.
56187         * lib/md5.c: Use #error rather than a string.
56188         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56189         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56190         (__attribute__): Define to empty for non recent-GCC.
56191         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56192         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56193         Renamed from their non-__ counterparts, with new macros replacing
56194         them if not _LIBC.  Add __THROW attribute.
56195         (rol): Remove.
56196         (struct md5_ctx): Align buffer if using GCC.
56197         * lib/sha1.h (struct sha1_ctx): Likewise.
56198         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56199         The old name was backwards.
56200         (NOTSWAP): Remove; not used.
56201         (rol): New macro, moved here from md5.h.
56202         (sha1_process_block): Remove a FIXME that doesn't make sense.
56203
56204 2005-09-12  Derek Price  <derek@ximbiot.com>
56205
56206         Return usable errors from canon-host.
56207         * lib/canon-host.h: New file.
56208         * lib/canon-host.c (canon_host): Wrap...
56209         (canon_host_r): ...this new function, which now relies exclusively on
56210         getaddrinfo.
56211         (ch_strerror): New function.
56212         (last_cherror): New global.
56213         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56214         interface.
56215         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56216         void *.
56217         (freeaddrinfo): Free ai->ai_canonname when set.
56218
56219 2005-09-12  Derek Price  <derek@ximbiot.com>
56220
56221         Make canon-host require getaddrinfo.
56222         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
56223         AC_LIBSOURCE canon-host.h.  Call...
56224         (gl_PREREQ_CANON_HOST): ...this new function, which requires
56225         gl_GETADDRINFO.
56226         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
56227
56228 2005-09-12  Derek Price  <derek@ximbiot.com>
56229
56230         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
56231         LGPL.
56232         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
56233
56234 2005-09-12  Derek Price  <derek@ximbiot.com>
56235
56236         * lib/gai_strerror.c: Include config.h when available.  Include
56237         getaddrinfo.h before other headers to test interface.
56238         Reported by Larry Jones <lawrence.jones@ugs.com>.
56239
56240 2005-09-12  Derek Price  <derek@ximbiot.com>
56241             Paul Eggert  <eggert@cs.ucla.edu>
56242
56243         * modules/glob (Files): Add glob-libc.h.
56244
56245 2005-09-12  Derek Price  <derek@ximbiot.com>
56246             Paul Eggert  <eggert@cs.ucla.edu>
56247
56248         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
56249         glob_.h, glob-libc.h.
56250         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
56251
56252 2005-09-12  Derek Price  <derek@ximbiot.com>
56253             Paul Eggert  <eggert@cs.ucla.edu>
56254
56255         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
56256         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
56257         protecting things that should be done only in gnulib contexts.
56258         * lib/glob_.h: New file, containing only the glob things needed for
56259         gnulib.
56260         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
56261         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
56262         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56263         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56264         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56265         and to respect the namespace rules better.
56266
56267 2005-09-08  Simon Josefsson  <jas@extundo.com>
56268
56269         * modules/socklen: New file.
56270
56271 2005-09-08  Simon Josefsson  <jas@extundo.com>
56272
56273         * m4/socklen.m4: New file.
56274
56275 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56276
56277         * modules/utimens (Files): Add m4/utimbuf.m4, since
56278         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56279         Reported by Sergey Poznyakoff.
56280
56281 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56282
56283         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56284         definitions, since that's the preferred style in glibc.
56285         Fix a minor spacing issue, and update copyright notice to match
56286         glibc's.
56287
56288 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56289
56290         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56291
56292 2005-09-06  Simon Josefsson  <jas@extundo.com>
56293
56294         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56295         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56296
56297 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56298
56299         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56300         warning.
56301
56302 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56303
56304         * config/srclist.txt: Add glibc bug 1302.
56305
56306 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56307
56308         Change bitset word type from unsigned int to unsigned long int,
56309         as this has better performance on typical 64-bit hosts.
56310         Port bitset code to hosts with unusual word sizes.
56311         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56312         (build_collating_symbol):
56313         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56314         argument is a bitset.  This is merely a style issue, but it makes
56315         it clearer that an entire array is expected.
56316         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56317         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56318         Port to the case where bitset_word is not the same as unsigned int.
56319         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56320         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56321         Likewise.
56322         * lib/regexec.c (check_dst_limits_calc_pos_1,
56323         check_subexp_matching_top):
56324         (build_trtable, group_nodes_into_DFAstates):
56325         Likewise.
56326         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56327         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56328         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56329         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56330         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56331         * lib/regcomp.c (optimize_subexps, lower_subexp):
56332         Work even if bitset_word has holes in its bitwise representation.
56333         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56334         * lib/regexec.c (check_dst_limits_calc_pos_1,
56335         check_subexp_matching_top):
56336         Likewise.
56337         * lib/regex_internal.c (re_string_reconstruct):
56338         Don't assume UCHAR_MAX == 255.
56339         * lib/regex_internal.h (bitset_set_all): Likewise.
56340         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56341         All uses changed.
56342         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56343         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56344         All uses changed.
56345         (BITSET_WORD_MAX): New macro.
56346         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56347         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56348         (bitset_empty, bitset_copy):
56349         Prefer sizeof (bitset) to multiplying it out ourselves.
56350         (bitset_not_merge): Remove; unused.
56351         (bitset_contain): Return bool, not unsigned int with one bit on.
56352         All callers changed.
56353         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56354         alignment than re_node_set; do this by defining a new internal
56355         type struct dests_alloc and using it to allocate memory.
56356
56357 2005-09-05  Bruno Haible  <bruno@clisp.org>
56358
56359         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56360         links.
56361
56362 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56363
56364         * modules/size_max (Makefile.am): Add size_max.h
56365
56366 2005-09-04  Derek Price  <derek@ximbiot.com>
56367
56368         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56369
56370 2005-09-03  Simon Josefsson  <jas@extundo.com>
56371
56372         * gnulib-tool: Fix typo.
56373
56374 2005-09-03  Simon Josefsson  <jas@extundo.com>
56375
56376         * config/srclist.txt: Add glibc bug 1293.
56377
56378 2005-09-03  Derek Price  <derek@ximbiot.com>
56379
56380         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56381         From Larry Jones <lawrence.jones@ugs.com>.
56382
56383 2005-09-02  Simon Josefsson  <jas@extundo.com>
56384
56385         * modules/socklen: New file.
56386
56387 2005-09-02  Simon Josefsson  <jas@extundo.com>
56388
56389         * modules/havelib: New module.
56390
56391         * modules/gettext, modules/iconv, modules/lock, modules/readline:
56392         Use havelib.
56393
56394 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56395
56396         Check for arithmetic overflow when calculating sizes, to prevent
56397         some buffer-overflow issues.  These patches are conservative, in the
56398         sense that when I couldn't determine whether an overflow was possible,
56399         I inserted a run-time check.
56400         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
56401         macros.
56402         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
56403         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
56404         (re_xnrealloc, re_x2nrealloc): New inline functions.
56405         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
56406         parse_bracket_exp):
56407         (build_equiv_class, build_charclass): Check for arithmetic overflow
56408         in size expression calculations.
56409         * lib/regex_internal.c (re_string_realloc_buffers):
56410         (build_wcs_upper_buffer, re_node_set_add_intersect):
56411         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
56412         (re_dfa_add_node, register_state): Likewise.
56413         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
56414         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
56415         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
56416         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
56417
56418 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56419
56420         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56421         m4/ulonglong.m4.  Problem reported by Martin Lambers.
56422
56423 2005-09-02  Bruno Haible  <bruno@clisp.org>
56424
56425         Support for lib vs. lib64 distinction on biarch platforms.
56426         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
56427         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
56428         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
56429
56430 2005-09-02  Bruno Haible  <bruno@clisp.org>
56431
56432         * gnulib-tool (import): In the other first-use case, provide defaults
56433         as well.
56434
56435 2005-09-02  Bruno Haible  <bruno@clisp.org>
56436
56437         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
56438         patches not yet found in the latest gettext release.
56439
56440 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56441
56442         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
56443         to avoid a collision with bits/local_lim.h in glibc.
56444         All uses changed.  Problem reported by Dmitry V. Levin in
56445         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
56446
56447         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
56448         bugs in int versus size_t comparisons.
56449         (re_string_context_at): Fix bug where the code assumed that
56450         Idx is signed.
56451
56452         Use bool where appropriate.
56453         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
56454         All callers changed.
56455         (calc_eclosure_iter): Likewise, for ROOT arg.
56456         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
56457         (build_charclass_op): Likewise, for NON_MATCH arg.
56458         * lib/regex_internal.c (re_string_allocate, re_string_construct):
56459         (re_string_construct_common): Likewise, for ICASE arg.
56460         * lib/regexec.c (re_search_2_stub, re_search_stub):
56461         Likewise, for RET_LEN arg.
56462         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
56463         (set_regs): Likewise, for FL_BACKTRACK arg.
56464         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
56465         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
56466         (calc_eclosure_iter, parse_bracket_exp):
56467         Use bool for internal variables that are booleans.
56468         * lib/regexec.c (re_search_internal, check_matching,
56469         proceed_next_node):
56470         (set_regs, build_sifted_states, sift_states_bkref):
56471         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
56472         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56473         (find_collation_sequence_value):
56474         Likewise.
56475         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
56476         (re_node_set_compare):
56477         Return bool, not int. All callers changed.
56478         * lib/regexec.c (check_halt_node_context, check_dst_limits):
56479         (build_trtable, check_node_accept): Likewise.
56480         * lib/regex_internal.h: Include stdbool.h.
56481
56482         Fix bugs uncovered when converting to bool.
56483         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
56484         failure instead of charging ahead blindly.
56485         * lib/regex_internal.c (register_state): Likewise.
56486         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
56487         for freeing internal storage.
56488         (group_nodes_into_DFA_states): Use unsigned int, not int, for
56489         bitset pieces used as boolean, to avoid undefined behavior
56490         on hosts that do int overflow checking.
56491
56492 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56493
56494         * config/srclist.txt: Add glibc bugs 1285-1287.
56495
56496 2005-09-01  Jim Meyering  <jim@meyering.net>
56497
56498         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
56499         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
56500         Require gl_STAT_MACROS, too.
56501
56502 2005-09-01  Bruno Haible  <bruno@clisp.org>
56503
56504         * gnulib-tool (import): In the first-use case, provide defaults.
56505
56506 2005-09-01  Bruno Haible  <bruno@clisp.org>
56507
56508         * gnulib-tool (func_import): Remove the .tmp files.
56509
56510 2005-09-01  Bruno Haible  <bruno@clisp.org>
56511
56512         * gnulib-tool (func_import): Fix handling of symbolic links.
56513
56514 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56515
56516         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
56517         old glibc regex code mishandles strings longer than 2**31 bytes.
56518         This patch fixes this when the regex code is used in gnulib
56519         (i.e., outside glibc).
56520
56521         This patch should not affect the use of the regex code inside
56522         glibc.  No doubt this problem also needs to be handled for glibc
56523         as well, but the result will be an incompatible change to the
56524         glibc ABI, and the old ABI will have to be supported too.  That
56525         can be the the subject for another patch.
56526
56527         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
56528         governing whether the rest of this patch is active.  By default,
56529         the macro is disabled and the patch has no effect.
56530         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
56531         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
56532         (struct re_pattern_buffer, re_search, re_search_2, re_match):
56533         (re_match_2, re_set_registers): Use the new types.
56534         * lib/regex_internal.h (Idx, re_hashval_t): New types.
56535         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
56536         New macros.
56537         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
56538         (re_string_context_at, bin_tree_t, re_dfastate_t):
56539         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
56540         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
56541         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
56542         (re_string_char_size_at, re_string_wchar_at):
56543         (re_string_elem_size_at):
56544         Use the new types and macros to port to 64-bit hosts.
56545         Use unsigned types for internal values, so that the code
56546         mostly works even for arrays larger than SSIZE_MAX.
56547         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
56548         (search_duplicated_node, calc_eclosure_iter, fetch_number):
56549         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
56550         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
56551         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
56552         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
56553         (calc_inveclosure, parse_dup_op, build_range_exp):
56554         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
56555         (fetch_number, create_token_tree, mark_opt_subexp):
56556         Likewise.
56557         * lib/regex_internal.c (re_string_construct_common,
56558         create_ci_newstate):
56559         (create_cd_newstate, re_string_allocate, re_string_construct):
56560         (re_string_realloc_buffers, build_wcs_upper_buffer):
56561         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56562         (re_string_reconstruct, re_string_peek_byte_case):
56563         (re_string_fetch_byte_case, re_string_context_at):
56564         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56565         (re_node_set_init_copy, re_node_set_add_intersect):
56566         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56567         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56568         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56569         (re_acquire_state, re_acquire_state_context, register_state):
56570         Likewise.
56571         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
56572         search_cur_bkref_entry):
56573         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
56574         (re_search_internal, re_search_2_stub, re_search_stub)
56575         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
56576         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
56577         (update_cur_sifted_state, check_dst_limits):
56578         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56579         (check_subexp_limits, sift_states_bkref, merge_state_array):
56580         (check_subexp_matching_top, get_subexp, get_subexp_sub):
56581         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
56582         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56583         (expand_bkref_cache, check_node_accept_bytes):
56584         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
56585         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
56586         (acquire_init_state_context, check_halt_node_context):
56587         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
56588         (sift_states_backward, clean_state_log_if_needed):
56589         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
56590         (find_recover_state, transit_state_sb, transit_state_mb):
56591         (transit_state_bkref, build_trtable, match_ctx_clean):
56592         Likewise.
56593         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
56594         to work around an assumption that REG_MISSING is negative.
56595
56596         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
56597         (seek_collating_symbol_entry) [defined _LIBC]:
56598         (lookup_collation_sequence_value) [defined _LIBC]:
56599         (build_range_exp, build_collating_symbol) [defined _LIBC]:
56600         Use prototypes rather than old-style function definitions.
56601         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
56602         (transit_state_sb) [0]:
56603         (find_collation_sequence_value) [defined _LIBC]: Likewise.
56604
56605         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
56606         rm_eo.
56607
56608         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
56609         (optimize_subexps, lower_subexp):
56610         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
56611         since the signed shift might overflow.  Use 1u<<31 instead.
56612         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56613         Likewise.
56614         * lib/regexec.c (check_dst_limits_calc_pos_1,
56615         check_subexp_matching_top): Likewise.
56616
56617         * lib/regcomp.c (optimize_subexps, lower_subexp):
56618         Use CHAR_BIT rather than 8, for clarity.
56619         * lib/regexec.c (check_dst_limits_calc_pos_1):
56620         (check_subexp_matching_top): Likewise.
56621         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
56622         have to worry about portability issues when shifting it left.
56623         Remove no-longer-needed test for table_size > 0.
56624         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
56625         in a word, as the resulting behavior is undefined.
56626         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
56627         in one case, a <= should have been an <, and in another case the
56628         whole test was missing.
56629         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
56630         the standard name CHAR_BIT.
56631         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
56632         this is not true on one's complement and signed-magnitude hosts.
56633
56634         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
56635         next_last_offset.
56636         (struct re_dfa_t): Remove unused member states_alloc.
56637         * lib/regcomp.c (init_dfa): Don't initialize unused members.
56638
56639 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56640
56641         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
56642         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
56643         and large-file glibc and in 32-bit large-file Solaris.
56644
56645 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56646
56647         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
56648         lengths fit in regoff_t; this isn't true if regoff_t is the same
56649         width as size_t.
56650         * lib/regex.c (re_search_internal): 5th arg is LAST_START
56651         (= START + RANGE) instead of RANGE.  This avoids overflow
56652         problems when regoff_t is the same width as size_t.
56653         All callers changed.
56654         (re_search_2_stub): Check for overflow when adding the
56655         sizes of the two strings.
56656         (re_search_stub): Check for overflow when adding START
56657         to RANGE; if it occurs, substitute the extreme value.
56658
56659 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56660
56661         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
56662
56663 2005-08-31  Jim Meyering  <jim@meyering.net>
56664
56665         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
56666         a pointer-to-const.
56667         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
56668         (register_state): Likewise.
56669         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
56670         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56671         (group_nodes_into_DFAstates): Likewise.
56672
56673 2005-08-31  Jim Meyering  <jim@meyering.net>
56674
56675         * check-module: Add a FIXME comment.
56676
56677 2005-08-31  Eric Blake  <ebb9@byu.net>
56678
56679         * modules/unistd-safer (Files): Add unistd--.h.
56680         * modules/stdio-safer (Files): Add stdio--.h.
56681
56682 2005-08-31  Derek Price  <derek@ximbiot.com>
56683
56684         * lib/getdelim.c (getdelim): Return EOF on EOF.
56685         Reported by Larry Jones <lawrence.jones@ugs.com>.
56686
56687 2005-08-31  Bruno Haible  <bruno@clisp.org>
56688
56689         Avoid unnecessary diffs in the generated lib/Makefile.am.
56690         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
56691         the generated files.
56692         (func_import): Don't set cmd.
56693
56694 2005-08-31  Bruno Haible  <bruno@clisp.org>
56695
56696         * lib/strstr.c: Include <stddef.h>, for NULL.
56697         * lib/strcasestr.c: Likewise.
56698         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56699
56700 2005-08-31  Bruno Haible  <bruno@clisp.org>
56701
56702         * gnulib-tool: New option --macro-prefix.
56703         (func_import): Use macro_prefix.
56704         (import): Handle option --macro-prefix.
56705
56706 2005-08-31  Bruno Haible  <bruno@clisp.org>
56707
56708         * gnulib-tool (import): Rename most ac_* variables to cached_*.
56709         Also use new variables cached_lgpl, cached_libtool.
56710
56711 2005-08-31  Bruno Haible  <bruno@clisp.org>
56712
56713         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
56714         always instantiating them.
56715
56716 2005-08-31  Bruno Haible  <bruno@clisp.org>
56717
56718         * gnulib-tool (func_import): Read the previous cached settings
56719         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
56720         earlier added by gnulib but are now dropped. Warn when a gnulib file
56721         overwrites a non-gnulib file.
56722
56723 2005-08-31  Bruno Haible  <bruno@clisp.org>
56724
56725         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
56726         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
56727         projects that don't keep autogenerated files in CVS. Put into
56728         actioncmd only the specified modules, not the transitive closure.
56729
56730 2005-08-31  Bruno Haible  <bruno@clisp.org>
56731
56732         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
56733         Create directories that shall be filled.
56734         (import): Don't look for gl_* macros in configure.ac. Recurse across
56735         all directories containing a gnulib-cache.m4 files, if meaningful.
56736
56737 2005-08-31  Bruno Haible  <bruno@clisp.org>
56738
56739         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
56740         (import): Set seen_libtool when we see gl_LIBTOOL.
56741
56742 2005-08-31  Bruno Haible  <bruno@clisp.org>
56743
56744         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
56745         declaration macro definitions from generated gnulib.m4.
56746
56747 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
56748
56749         * lib/iconvme.h: Add prototype for iconv_alloc.
56750
56751 2005-08-29  Simon Josefsson  <jas@extundo.com>
56752
56753         * lib/iconvme.c: Fix errno.
56754
56755 2005-08-29  Bruno Haible  <bruno@clisp.org>
56756
56757         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
56758         that it works when the directory contains spaces.
56759
56760 2005-08-29  Bruno Haible  <bruno@clisp.org>
56761
56762         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
56763
56764 2005-08-29  Bruno Haible  <bruno@clisp.org>
56765
56766         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
56767         Emit more advice.
56768
56769 2005-08-29  Bruno Haible  <bruno@clisp.org>
56770         and Stepan Kasal  <kasal@ucw.cz>
56771
56772         * check-module: If more parameters are given, check each of them
56773         separately; add more exceptions, as noted by Jim Meyering.
56774         (check_module): New procedure.
56775         (%exempt_header): Now contains all exceptions.
56776
56777 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
56778
56779         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
56780
56781 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
56782
56783         * lib/iconvme.c: Split iconv_string into iconv_alloc.
56784
56785 2005-08-28  Bruno Haible  <bruno@clisp.org>
56786
56787         * m4/gnulib-tool.m4: New file.
56788
56789 2005-08-27  Jim Meyering  <jim@meyering.net>
56790
56791         * modules/unistd-safer (Files): Add pipe-safer.c.
56792         * modules/fcntl-safer (Files): Add creat-safer.c.
56793
56794 2005-08-27  Jim Meyering  <jim@meyering.net>
56795
56796         * m4/stdlib-safer.m4: New file.  From coreutils.
56797         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
56798         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
56799         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
56800         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
56801         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
56802
56803 2005-08-27  Jim Meyering  <jim@meyering.net>
56804
56805         * lib/fopen-safer.c: Merge minor changes from coreutils.
56806         * lib/dup-safer.c: Likewise.
56807         * lib/fd-safer.c: Likewise.
56808
56809         Merge from coreutils.
56810         * lib/stdio--.h: New file.
56811         * lib/stdlib--.h: New file.
56812         * lib/mkstemp-safer.c: New file.
56813
56814         GNU tar needs these.
56815         * lib/pipe-safer.c: New file.
56816         * lib/creat-safer.c: New file.
56817         * lib/fcntl--.h (creat): Define to creat_safer.
56818         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
56819         * lib/unistd--.h (pipe): Define to pipe_safer.
56820         * lib/unistd-safer.h: Declare pipe_safer.
56821
56822 2005-08-26  Simon Josefsson  <jas@extundo.com>
56823
56824         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
56825         Haible <bruno@clisp.org>.
56826
56827 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
56828
56829         * lib/regex_internal.h: Remove all references to
56830         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
56831         or better.
56832         (bitset_not, bitset_merge, bitset_not_merge):
56833         (bitset_mask, re_string_allocate, re_string_construct):
56834         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
56835         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
56836         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
56837         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
56838         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56839         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56840         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
56841         (re_acquire_state_context):
56842         Remove unnecessary forward decls.
56843         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
56844         Put __attribute at function definition,
56845         now that the function decl has been removed.
56846         * lib/regex_internal.c (re_string_peek_byte_case):
56847         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
56848         Likewise.
56849
56850 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
56851
56852         * m4/regex.m4: Add AC_PREREQ(2.50).
56853         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
56854
56855 2005-08-25  Simon Josefsson  <jas@extundo.com>
56856
56857         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
56858         __fsetlocking.
56859
56860 2005-08-25  Simon Josefsson  <jas@extundo.com>
56861
56862         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
56863         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
56864         GLIBC specific code.
56865
56866 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56867
56868         Make regex safe for g++.  This fixes one real bug (an "err"
56869         that should have been "*err").  g++ problem reported by
56870         Sam Steingold.
56871         * lib/regex_internal.h (re_calloc): New macro, consistent with
56872         re_malloc etc.  All callers of calloc changed to use re_calloc.
56873         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
56874         not int.  All callers changed.
56875         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
56876         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
56877         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
56878         (find_recover_state): Change "err" to "*err"; this fixes what
56879         appears to be a real bug.
56880         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
56881         versus int.
56882
56883 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56884
56885         * modules/regex (Depends-on): Add malloc, since the code
56886         assumes that !malloc(0) means failure.
56887
56888 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56889
56890         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
56891
56892         alloca modernization/simplification for regex.
56893         * lib/regex.c: Remove portability cruft for alloca.  This no longer
56894         needs to be at the start of the file, and can be moved into
56895         regex_internal.h and simplified.
56896         * lib/regex_internal.h: Include <alloca.h>.
56897         (__libc_use_alloca) [!defined _LIBC]: New macro.
56898         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
56899         now works outside glibc.
56900
56901 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56902
56903         * config/srclist.txt: Add glibc bugs 1241, 1245.
56904
56905 2005-08-25  Jim Meyering  <jim@meyering.net>
56906
56907         * lib/open-safer.c: Include <config.h>.
56908         Otherwise, we'd lose LARGEFILE support in any file using
56909         e.g. "fcntl--.h"
56910
56911 2005-08-25  Bruno Haible  <bruno@clisp.org>
56912
56913         * m4/minmax.m4: Require autoconf 2.52.
56914         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
56915         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
56916         alternatives of translit over the alphabet.
56917         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
56918
56919 2005-08-24  Simon Josefsson  <jas@extundo.com>
56920
56921         * tests/test-getpass.c: New file.
56922
56923 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56924
56925         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
56926         for GNU regex features.
56927
56928 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56929
56930         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
56931         * lib/regex.h (regerror): Likewise.
56932
56933         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
56934         requires this.  (The code never needed it.)
56935
56936         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
56937         All uses of recently-renamed identifiers changed to use the new,
56938         POSIX-compliant names.  The code will build and run just fine
56939         without these changes, but it's better to eat our own dog food
56940         and use the standard-conforming names.
56941
56942         * lib/regex.h: Fix a multitude of POSIX name space violations.
56943         These changes have an effect only for programs that define
56944         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
56945         do not change anything for programs compiled in the normal way.
56946         Also, there is no effect on the ABI.
56947
56948         (_REGEX_SOURCE): New macro.
56949         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
56950         defined and _GNU_SOURCE is not; this fixes a name space violation.
56951
56952         Rename the following macros to obey POSIX requirements.
56953         The old names are still visible as macros if _REGEX_SOURCE is defined.
56954         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
56955         RE_BACKSLASH_ESCAPE_IN_LISTS.
56956         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
56957         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
56958         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
56959         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
56960         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
56961         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
56962         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
56963         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
56964         (REG_INTERVALS): renamed from RE_INTERVALS.
56965         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
56966         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
56967         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
56968         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
56969         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
56970         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
56971         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
56972         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
56973         RE_UNMATCHED_RIGHT_PAREN_ORD.
56974         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
56975         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
56976         (REG_DEBUG): renamed from RE_DEBUG.
56977         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
56978         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
56979         unusual, since we can't clash with the POSIX REG_ICASE.
56980         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
56981         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
56982         (REG_NO_SUB): renamed from RE_NO_SUB.
56983         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
56984         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
56985         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
56986         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
56987         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
56988         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
56989         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
56990         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
56991         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
56992         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
56993         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
56994         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
56995         RE_SYNTAX_POSIX_MINIMAL_BASIC.
56996         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
56997         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
56998         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
56999         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57000         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57001         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57002         (REG_FIXED): Renamed from REGS_FIXED.
57003         (REG_NREGS): Renamed from RE_NREGS.
57004
57005         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57006         of other REG_* macros, since POSIX says the user is allowed to
57007         #undef these macros selectively.
57008
57009         (reg_errcode_t): Update comment stating what other tables need
57010         to be consistent.
57011
57012         Rename the following enum values to obey POSIX requirements.
57013         The old names are still visible as macros.
57014         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57015         is not defined, since GNU is supposed to be a superset of POSIX as
57016         much as possible, and since we want reg_errcode_t to be a signed
57017         type for implementation consistency.
57018         (_REG_NOERROR): Renamed from REG_NOERROR.
57019         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57020         (_REG_BADPAT): Renamed from REG_BADPAT.
57021         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57022         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57023         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57024         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57025         (_REG_EBRACK): Renamed from REG_EBRACK.
57026         (_REG_EPAREN): Renamed from REG_EPAREN.
57027         (_REG_EBRACE): Renamed from REG_EBRACE.
57028         (_REG_BADBR): Renamed from REG_BADBR.
57029         (_REG_ERANGE): Renamed from REG_ERANGE.
57030         (_REG_ESPACE): Renamed from REG_ESPACE.
57031         (_REG_BADRPT): Renamed from REG_BADRPT.
57032         (_REG_EEND): Renamed from REG_EEND.
57033         (_REG_ESIZE): Renamed from REG_ESIZE.
57034         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57035         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57036         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57037         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57038         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57039
57040         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57041         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57042         changed.  But support the old name if the new one is not defined
57043         and if _REGEX_SOURCE.
57044
57045         Change the following member names in struct re_pattern_buffer.
57046         The old names are still supported if !_REGEX_SOURCE.
57047         The new names are always supported, regardless of _REGEX_SOURCE.
57048         (re_buffer): Renamed from buffer.
57049         (re_allocated): Renamed from allocated.
57050         (re_used): Renamed from used.
57051         (re_syntax): Renamed from syntax.
57052         (re_fastmap): Renamed from fastmap.
57053         (re_translate): Renamed from translate.
57054         (re_can_be_null): Renamed from can_be_null.
57055         (re_regs_allocated): Renamed from regs_allocated.
57056         (re_fastmap_accurate): Renamed from fastmap_accurate.
57057         (re_no_sub): Renamed from no_sub.
57058         (re_not_bol): Renamed from not_bol.
57059         (re_not_eol): Renamed from not_eol.
57060         (re_newline_anchor): Renamed from newline_anchor.
57061
57062         Change the following member names in struct re_registers.
57063         The old names are still supported if !_REGEX_SOURCE.
57064         The new names are always supported, regardless of _REGEX_SOURCE.
57065         (rm_num_regs): Renamed from num_regs.
57066         (rm_start): Renamed from start.
57067         (rm_end): Renamed from end.
57068
57069         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57070         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57071         Prepend __ to parameter names.
57072
57073         Undo yesterday's changes.
57074
57075 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57078         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57079         lib/regex.c.
57080
57081 2005-08-24  Jim Meyering  <jim@meyering.net>
57082
57083         Sync from coreutils.
57084         * m4/fcntl-safer.m4: New file.
57085
57086         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57087         and object files for this module.
57088
57089 2005-08-24  Jim Meyering  <jim@meyering.net>
57090
57091         Sync from coreutils.
57092         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57093
57094 2005-08-24  Jim Meyering  <jim@meyering.net>
57095
57096         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57097         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57098
57099 2005-08-24  Jim Meyering  <jim@meyering.net>
57100
57101         * modules/fcntl-safer: New module.
57102         * modules/fts (Depends-on): Add fcntl-safer.
57103         * MODULES.html.sh (File descriptor based Input/Output):
57104         Add fcntl-safer.
57105
57106 2005-08-24  Bruno Haible  <bruno@clisp.org>
57107
57108         Support for unit test modules.
57109         * modules/README: Mention tests modules.
57110         * modules/TEMPLATE-TESTS: New file.
57111         * gnulib-tool: New options --extract-tests-module, --with-tests and
57112         --tests-base (unused for the moment).
57113         (testsbase, inctests): New variables.
57114         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57115         (func_verify_module): Exclude TEMPLATE-TESTS.
57116         (func_verify_nontests_module, func_verify_tests_module): New functions.
57117         (func_get_dependencies): Add implicit dependency for tests modules.
57118         (func_get_tests_module): New function.
57119         (func_modules_transitive_closure): When --with-tests was specified,
57120         include the unit tests as well, unless explicitly avoided.
57121         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57122         (func_emit_tests_Makefile_am): New function.
57123         (func_create_testdir): When --with-tests was specified, emit a
57124         tests/ directory.
57125         * MODULES.html.sh (Future developments): Update.
57126
57127 2005-08-24  Bruno Haible  <bruno@clisp.org>
57128
57129         * modules/tls-tests: New file.
57130         * tests/test-tls.c: New file, from GNU gettext.
57131
57132 2005-08-24  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/lock-tests: New file.
57135         * tests/test-lock.c: New file, from GNU gettext.
57136
57137 2005-08-24  Bruno Haible  <bruno@clisp.org>
57138
57139         * lib/lock.h: Add multiple inclusion guard.
57140         * lib/tls.h: Add multiple inclusion guard.
57141
57142 2005-08-24  Bruno Haible  <bruno@clisp.org>
57143
57144         * gnulib-tool: Add support for the --aux-dir option to
57145         --create-testdir, --create-megatestdir, --test, --megatest.
57146         (func_create_testdir, func_create_megatestdir): Optionally emit a
57147         AC_CONFIG_AUX_DIR directive.
57148         (create-testdir, create-megatestdir, test, megatest): Provide a
57149         default value for $auxdir.
57150
57151 2005-08-24  Bruno Haible  <bruno@clisp.org>
57152
57153         * gnulib-tool (import): Use compound statement instead of subshell
57154         where possible.
57155
57156 2005-08-24  Bruno Haible  <bruno@clisp.org>
57157
57158         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57159
57160 2005-08-24  Bruno Haible  <bruno@clisp.org>
57161
57162         * gnulib-tool (func_version): Update.
57163
57164 2005-08-24  Bruno Haible  <bruno@clisp.org>
57165
57166         * gnulib-tool (func_import, func_create_testdir,
57167         func_create_megatestdir): Quote all autoconf macro arguments.
57168
57169 2005-08-24  Bruno Haible  <bruno@clisp.org>
57170
57171         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57172         option --force, because --force causes the aclocal.m4 of each
57173         subdirectory to be newer than the corresponding config.h.in.
57174
57175 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57176
57177         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57178         All contents moved to gl_REGEX.
57179         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57180         assume that it does.
57181
57182 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57183
57184         * lib/regex.h (REG_NOSYS)
57185         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57186         Define, since POSIX requires it as of 2001.
57187         (_REG_ENOSYS)
57188         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57189         New private symbol, used to keep the enum signed in all cases.
57190         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57191         Youngman in
57192         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57193
57194         * lib/regex_internal.c (re_string_skip_chars, register_state):
57195         (calc_state_hash):
57196         Remove forward decls; no longer needed now that we use prototypes.
57197         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57198         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57199         (clean_state_log_if_needed): Likewise.
57200
57201 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57202
57203         * config/srclist.txt: Add glibc bugs 1231-1233.
57204
57205 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57206
57207         Fix problems reported by Sam Steingold in
57208         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57209         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57210         assumed that reg_errcode_t is a signed type, which is not
57211         necessarily true if _XOPEN_SOURCE is not defined.
57212         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57213         since some compilers warn about it otherwise.
57214
57215 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57216
57217         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57218         (init_word_char, create_initial_state, duplicate_node_closure):
57219         (fetch_token, peek_token_bracket, build_range_exp):
57220         (build_collating_symbol): Remove forward decls; no longer needed
57221         now that we use prototypes.
57222
57223         * lib/regcomp.c:
57224         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
57225         (re_compile_fastmap_iter, regcomp, regerror, regfree):
57226         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
57227         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
57228         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
57229         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
57230         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
57231         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
57232         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
57233         (build_range_exp, build_collating_symbol, parse_bracket_exp):
57234         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
57235         (build_charclass, build_charclass_op, fetch_number, create_tree):
57236         (create_token_tree, mark_opt_subexp, duplicate_tree):
57237         Use prototypes rather than old-style definitions.
57238
57239         * lib/regex_internal.c:
57240         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
57241         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
57242         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57243         (re_string_reconstruct, re_string_peek_byte_case):
57244         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
57245         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57246         (re_node_set_init_copy, re_node_set_add_intersect):
57247         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57248         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57249         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57250         (re_acquire_state, re_acquire_state_context, register_state):
57251         (create_ci_newstate, create_cd_newstate, free_state):
57252         Likewise.
57253         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
57254         re_search_2):
57255         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
57256         (re_search_internal, prune_impossible_nodes):
57257         (acquire_init_state_context, check_matching, static):
57258         (check_halt_node_context, check_halt_state_context, proceed_next_node):
57259         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
57260         (update_regs, sift_states_backward, build_sifted_states):
57261         (clean_state_log_if_needed, merge_state_array):
57262         (update_cur_sifted_state, add_epsilon_src_nodes):
57263         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57264         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57265         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57266         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57267         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57268         (check_arrival, check_arrival_add_next_nodes):
57269         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57270         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57271         (check_node_accept_bytes, check_node_accept, extend_buffers):
57272         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57273         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57274         (sift_ctx_init):
57275         Likewise.
57276
57277         * lib/regex_internal.h:
57278         (re_string_allocate, re_string_construct, re_string_reconstruct):
57279         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57280         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57281         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57282         (re_string_context_at, re_string_peek_byte_case):
57283         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57284         is defined, since we now use prototypes always.
57285
57286         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57287         C89 or better.  All uses removed.
57288
57289 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57290
57291         * config/srclist.txt: Add glibc bugs 1220-1227.
57292
57293 2005-08-20  Jim Meyering  <jim@meyering.net>
57294
57295         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57296         of unused local, dfa.
57297
57298 2005-08-20  Bruno Haible  <bruno@clisp.org>
57299
57300         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57301
57302 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57303
57304         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57305         (re_node_set_insert_last, re_dfa_add_node):
57306         Rename local variables to avoid GCC shadowing warnings.
57307
57308 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57309
57310         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57311         [defined lint]: Suppress bogus uninitialized-variable warnings.
57312
57313         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57314         and let the caller return REG_ESPACE if out of space.  This
57315         removes an uninitialied-variable warning with GCC 4.0.1, and also
57316         avoids taking the address of a local variable.  All callers
57317         changed.
57318
57319 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57320
57321         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57322         $LIBCSRC/posix/regexec.c.
57323         Add glibc bug 1217 for regcomp.c.
57324
57325 2005-08-19  Jim Meyering  <jim@meyering.net>
57326
57327         * lib/regexec.c (proceed_next_node): Redo local variables to
57328         avoid GCC shadowing warnings.
57329
57330 2005-08-18  Bruno Haible  <bruno@clisp.org>
57331
57332         * lib/strstr.c (strstr): Fix return value in multibyte case.
57333         * lib/strcasestr.c (strcasestr): Likewise.
57334
57335 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57336
57337         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57338
57339 2005-08-17  Jim Meyering  <jim@meyering.net>
57340
57341         Make the %s format (seconds since the epoch) work for a negative
57342         number and when used with a zero-padded field width, e.g. %015s.
57343
57344         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57345         label so that it precedes the code to set `digits'.  Otherwise,
57346         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57347         print `00-22'.  Now, it prints `-0022', as it should.
57348
57349 2005-08-17  Bruno Haible  <bruno@clisp.org>
57350
57351         * modules/strstr (Files): Add m4/mbrtowc.m4.
57352         (Depends-on): Add mbuiter.
57353
57354 2005-08-17  Bruno Haible  <bruno@clisp.org>
57355
57356         * modules/strcasestr: New file.
57357         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57358         strcasestr.
57359
57360 2005-08-17  Bruno Haible  <bruno@clisp.org>
57361
57362         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57363
57364 2005-08-17  Bruno Haible  <bruno@clisp.org>
57365
57366         * modules/mbuiter: New file.
57367         * MODULES.html.sh (Extended multibyte and wide character utilities):
57368         Add mbuiter.
57369
57370 2005-08-17  Bruno Haible  <bruno@clisp.org>
57371
57372         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57373         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57374
57375 2005-08-17  Bruno Haible  <bruno@clisp.org>
57376
57377         * m4/strcasestr.m4: New file.
57378
57379 2005-08-17  Bruno Haible  <bruno@clisp.org>
57380
57381         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57382         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57383
57384 2005-08-17  Bruno Haible  <bruno@clisp.org>
57385
57386         * lib/strcasestr.h: New file.
57387         * lib/strcasestr.c: New file.
57388
57389 2005-08-17  Bruno Haible  <bruno@clisp.org>
57390
57391         * lib/strcasecmp.c: Use mbuiter.h.
57392
57393 2005-08-17  Bruno Haible  <bruno@clisp.org>
57394
57395         * lib/mbuiter.h: New file.
57396
57397 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57398
57399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
57400         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
57401         and gl_GETOPT are both invoked via different paths (as happens
57402         with GNU tar CVS because it uses both argp and getopt), the former
57403         wins.
57404
57405 2005-08-16  Bruno Haible  <bruno@clisp.org>
57406
57407         * modules/tls: New file.
57408         * MODULES.html.sh (Multithreading): Add tls.
57409
57410 2005-08-16  Bruno Haible  <bruno@clisp.org>
57411
57412         * modules/strnlen1: New file.
57413         * MODULES.html.sh (String handling): Add strnlen1.
57414
57415 2005-08-16  Bruno Haible  <bruno@clisp.org>
57416
57417         * modules/strcase (Files): Add m4/mbrtowc.m4.
57418         (Depends-on): Add strnlen1, mbchar.
57419
57420 2005-08-16  Bruno Haible  <bruno@clisp.org>
57421
57422         * modules/mbiter: New file.
57423         * MODULES.html.sh (Extended multibyte and wide character utilities):
57424         Add mbiter.
57425
57426 2005-08-16  Bruno Haible  <bruno@clisp.org>
57427
57428         * modules/mbfile: New file.
57429         * MODULES.html.sh (Extended multibyte and wide character utilities):
57430         Add mbfile.
57431
57432 2005-08-16  Bruno Haible  <bruno@clisp.org>
57433
57434         * modules/mbchar: New file.
57435         * MODULES.html.sh (Extended multibyte and wide character utilities):
57436         New section.
57437
57438 2005-08-16  Bruno Haible  <bruno@clisp.org>
57439
57440         * m4/tls.m4: New file, from GNU gettext.
57441
57442 2005-08-16  Bruno Haible  <bruno@clisp.org>
57443
57444         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
57445         always.
57446         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
57447
57448 2005-08-16  Bruno Haible  <bruno@clisp.org>
57449
57450         * m4/mbiter.m4: New file.
57451
57452 2005-08-16  Bruno Haible  <bruno@clisp.org>
57453
57454         * m4/mbfile.m4: New file.
57455
57456 2005-08-16  Bruno Haible  <bruno@clisp.org>
57457
57458         * m4/mbchar.m4: New file.
57459
57460 2005-08-16  Bruno Haible  <bruno@clisp.org>
57461
57462         * lib/tls.h: New file, from GNU gettext.
57463         * lib/tls.c: New file, from GNU gettext.
57464
57465 2005-08-16  Bruno Haible  <bruno@clisp.org>
57466
57467         * lib/strnlen1.h: New file.
57468         * lib/strnlen1.c: New file.
57469
57470 2005-08-16  Bruno Haible  <bruno@clisp.org>
57471
57472         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
57473         (mbi_init): Update.
57474         (mbi_avail, mbi_advance): Let the iteration end before the terminating
57475         NUL byte, not after it.
57476
57477 2005-08-16  Bruno Haible  <bruno@clisp.org>
57478
57479         * lib/strcase.h (strcasecmp): Add note in comments.
57480         * lib/strncasecmp.c: Use code from strcasecmp.c.
57481         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
57482         (strcasecmp): Work correctly in multibyte locales.
57483
57484 2005-08-16  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/mbiter.h: New file.
57487
57488 2005-08-16  Bruno Haible  <bruno@clisp.org>
57489
57490         * lib/mbfile.h: New file.
57491
57492 2005-08-16  Bruno Haible  <bruno@clisp.org>
57493
57494         * lib/mbchar.h: New file.
57495         * lib/mbchar.c: New file.
57496
57497 2005-08-16  Bruno Haible  <bruno@clisp.org>
57498
57499         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
57500         the valid ones. Makes the comparison operations transitive:
57501         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
57502         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
57503
57504 2005-08-15  Simon Josefsson  <jas@extundo.com>
57505
57506         * modules/ssize_t (License): Change to 'unlimited'.
57507
57508         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
57509
57510 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57511
57512         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
57513         Add comments for each pending glibc patch.
57514
57515 2005-08-15  Bruno Haible  <bruno@clisp.org>
57516
57517         * lib/regex.h (__restrict_arr): Don't define to __restrict if
57518         __cplusplus is defined.
57519
57520 2005-08-14  Jim Meyering  <jim@meyering.net>
57521
57522         Sync from coreutils.
57523
57524         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
57525         Use the hash-table-based cycle-detection code not just when
57526         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
57527         Reported by James Youngman in
57528         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
57529         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
57530         FTS_TIGHT_CYCLE_CHECK.
57531         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
57532         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
57533         once again.
57534         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
57535         * lib/fts.c (fd_safer): Remove decl.
57536         Include fcntl--.h rather than unistd-safer.h
57537         (fts_safe_changedir): Don't call fd_safer; no longer needed
57538         now that we include fcntl--.h.
57539
57540 2005-08-12  Simon Josefsson  <jas@extundo.com>
57541
57542         * modules/getndelim2: Use ssize_t module.
57543         * modules/getnline: Likewise.
57544         * modules/safe-read: Likewise.
57545         * modules/xreadlink: Likewise.
57546
57547         * modules/ssize_t: New file.
57548
57549 2005-08-12  Simon Josefsson  <jas@extundo.com>
57550
57551         * m4/readline.m4: Look for termcap, curses or ncurses if required.
57552
57553 2005-08-12  Simon Josefsson  <jas@extundo.com>
57554
57555         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57556         ssize_t.
57557
57558 2005-08-12  Simon Josefsson  <jas@extundo.com>
57559
57560         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
57561         readline, getdelim and check_version.
57562         (Support for systems lacking ISO C 99: Sizes of integer types):
57563         Add size_max.
57564
57565 2005-08-12  Bruno Haible  <bruno@clisp.org>
57566
57567         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
57568
57569 2005-08-11  Simon Josefsson  <jas@extundo.com>
57570
57571         * modules/readline: New file.
57572
57573         * modules/strnlen (Files): Add strnlen.h.
57574
57575 2005-08-11  Simon Josefsson  <jas@extundo.com>
57576
57577         * m4/readline.m4: New file.
57578
57579 2005-08-11  Simon Josefsson  <jas@extundo.com>
57580
57581         * lib/readline.h, readline.c: New file.
57582
57583 2005-08-11  Simon Josefsson  <jas@extundo.com>
57584
57585         * doc/gnulib.texi (Initial import, Finishing touches): Mention
57586         gl_AVOID.
57587
57588 2005-08-11  Bruno Haible  <bruno@clisp.org>
57589
57590         * lib/strnlen.h (strnlen): Change parameter name to match comment.
57591
57592 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
57593
57594         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
57595
57596 2005-08-10  Simon Josefsson  <jas@extundo.com>
57597
57598         * tests/test-iconvme.c: New file.
57599
57600 2005-08-10  Simon Josefsson  <jas@extundo.com>
57601
57602         * m4/strnlen.m4: New file.
57603
57604         * m4/strndup.m4: Don't check for strnlen declaration, done in
57605         strnlen.m4.
57606
57607 2005-08-10  Simon Josefsson  <jas@extundo.com>
57608
57609         * lib/strndup.c: Use strnlen.h.
57610
57611         * lib/strnlen.h: New file.
57612
57613 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57614
57615         * README: Typos.
57616
57617 2005-08-02  Simon Josefsson  <jas@extundo.com>
57618
57619         * modules/readline: New file.
57620
57621 2005-08-02  Simon Josefsson  <jas@extundo.com>
57622
57623         * modules/getdelim: New file.
57624
57625         * modules/getline: Rewrite, don't use getndelim2.
57626
57627 2005-08-02  Simon Josefsson  <jas@extundo.com>
57628
57629         * m4/getline.m4: Separate out getdelim stuff into separate module.
57630
57631         * m4/getdelim.m4: New file.
57632
57633 2005-08-02  Simon Josefsson  <jas@extundo.com>
57634
57635         * lib/getline.h, getline.c: Rewrite.
57636
57637         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
57638
57639 2005-07-31  Bruno Haible  <bruno@clisp.org>
57640
57641         * lib/lock.h (gl_lock_initializer): New macro.
57642         (gl_lock_define_initialized): Use it.
57643         (gl_rwlock_initializer): New macro.
57644         (gl_rwlock_define_initialized): Use it.
57645         (gl_recursive_lock_initializer): New macro.
57646         (gl_recursive_lock_define_initialized): Use it.
57647
57648 2005-07-30  Karl Berry  <karl@gnu.org>
57649
57650         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
57651         Report from Ben Pfaff, regarding getopt.
57652
57653 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
57654
57655         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
57656         normal way.
57657         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
57658         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
57659         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
57660         (gl_GETOPT): Use the new macros.  Most of the implementation
57661         is moved to the new macros.  This is for programs like Emacs
57662         that don't want all the functionality of gl_GETOPT.
57663
57664 2005-07-26  Bruno Haible  <bruno@clisp.org>
57665
57666         * m4/lock.m4: Update from GNU gettext.
57667
57668 2005-07-26  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/lock.h: Update from GNU gettext.
57671         * lib/lock.c: Update from GNU gettext.
57672
57673 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
57674
57675         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
57676         obsolescent AC_TRY_RUN.  Include the default includes files, for
57677         'exit'.
57678
57679 2005-07-24  Bruno Haible  <bruno@clisp.org>
57680
57681         * modules/visibility: New file.
57682         * MODULES.html.sh (Misc): Add visibility.
57683
57684 2005-07-24  Bruno Haible  <bruno@clisp.org>
57685
57686         * m4/visibility.m4: New file.
57687
57688 2005-07-24  Bruno Haible  <bruno@clisp.org>
57689
57690         * doc/visibility.texi: New file.
57691
57692 2005-07-22  Bruno Haible  <bruno@clisp.org>
57693
57694         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
57695         $(ALLOCA_H), redundant through BUILT_SOURCES.
57696         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
57697         redundant through BUILT_SOURCES.
57698         * modules/byteswap (Makefile.am): Remove explicit dependency on
57699         $(BYTESWAP_H), redundant through BUILT_SOURCES.
57700         * modules/fnmatch (Makefile.am): Remove explicit dependency on
57701         $(FNMATCH_H), redundant through BUILT_SOURCES.
57702         * modules/getopt (Makefile.am): Remove explicit dependency on
57703         $(GETOPT_H), redundant through BUILT_SOURCES.
57704         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
57705         redundant through BUILT_SOURCES.
57706         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
57707         redundant through BUILT_SOURCES.
57708         * modules/stdbool (Makefile.am): Remove explicit dependency on
57709         $(STDBOOL_H), redundant through BUILT_SOURCES.
57710         * modules/stdint (Makefile.am): Remove explicit dependency on
57711         $(STDINT_H), redundant through BUILT_SOURCES.
57712         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
57713         Remove explicit dependency on $(SYSEXITS_H).
57714         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
57715
57716 2005-07-18  Simon Josefsson  <jas@extundo.com>
57717
57718         * lib/check-version.c (check_version): Accept identical versions too.
57719
57720 2005-07-18  Bruno Haible  <bruno@clisp.org>
57721
57722         * modules/lock: New file.
57723         * MODULES.html.sh (Multithreading): New section.
57724
57725 2005-07-18  Bruno Haible  <bruno@clisp.org>
57726
57727         * m4/lock.m4: New file, from GNU gettext.
57728
57729 2005-07-18  Bruno Haible  <bruno@clisp.org>
57730
57731         * lib/lock.h: New file, from GNU gettext.
57732         * lib/lock.c: New file, from GNU gettext.
57733
57734 2005-07-18  Bruno Haible  <bruno@clisp.org>
57735
57736         * lib/lock.h (gl_once_t): New type.
57737         (gl_once_define, gl_once): New macros.
57738         * lib/lock.c (fresh_once): New variable.
57739         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
57740         functions.
57741
57742 2005-07-16  Simon Josefsson  <jas@extundo.com>
57743
57744         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
57745         workaround, suggested by Bruno.
57746
57747 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57748
57749         * modules/xalloc (Depends-on): Add xalloc-die.
57750         * modules/xvasprintf (Depends-on): Add xalloc-die.
57751
57752 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57753
57754         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
57755         with a minor change.
57756
57757 2005-07-15  Bruno Haible  <bruno@clisp.org>
57758
57759         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
57760         When using lib/poll.c, define poll as rpl_poll.
57761
57762 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
57763
57764         * modules/argp (Depends-on): Remove unlocked-io.
57765
57766 2005-07-14  Derek Price  <derek@ximbiot.com>
57767
57768         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
57769         for glob symlink bug.
57770
57771 2005-07-14  Bruno Haible  <bruno@clisp.org>
57772
57773         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
57774         Instead, test for *_unlocked function declarations directly.
57775
57776 2005-07-11  Simon Josefsson  <jas@extundo.com>
57777
57778         * modules/size_max: New file.
57779
57780         * modules/xsize: Depend on size_max module for size_max.m4.
57781
57782 2005-07-11  Simon Josefsson  <jas@extundo.com>
57783
57784         * lib/size_max.h: New file.
57785
57786 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
57787
57788         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
57789         copyright symbol and the year.
57790         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
57791         (version_etc_va): Use parameterized copyright notice.
57792         Reword to conform to the current GNU coding standards.
57793
57794 2005-07-11  Karl Berry  <karl@gnu.org>
57795
57796         * doc/gnulib.texi (Quoting): new node.
57797         (Initial import): more info, from Patrice.
57798
57799 2005-07-11  Bruno Haible  <bruno@clisp.org>
57800
57801         * gnulib-tool (func_usage): Document option --avoid.
57802         (Command line options): Handle --avoid.
57803         (func_acceptable): New function.
57804         (func_modules_transitive_closure): Use it.
57805
57806 2005-07-11  Bruno Haible  <bruno@clisp.org>
57807
57808         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
57809         Reported by Jim Meyering.
57810
57811 2005-07-10  Bruno Haible  <bruno@clisp.org>
57812
57813         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
57814         Needed when size_t is smaller than 'unsigned int'.
57815         Reported by Paul Eggert.
57816
57817 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57818
57819         * modules/argp (Depends-on): Add unlocked-io
57820
57821 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57822
57823         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
57824         block of defines.
57825
57826 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
57827
57828         * config/srclist.txt: Comment out regcomp.c, since we have a porting
57829         fix now.
57830
57831 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
57832         and Paul Eggert  <eggert@cs.ucla.edu>
57833
57834         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
57835         in wint_t, not wchar_t.  Remove now-unnecessary cast.
57836
57837 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57838
57839         * modules/regex (Files): Add lib/regex_internal.c,
57840         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
57841         (Depends-on): Add extensions.
57842         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
57843
57844 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57845
57846         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
57847         pathconf.
57848         * m4/same.m4 (gl_SAME): Likewise.
57849         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
57850
57851         * m4/regex.m4: Adjust to new libc regex implementation.
57852         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
57853         all the .c and .h parts of (the new) regex.
57854         Quote the m4 stuff better.
57855         Check for RE_ICASE bug of old gnulib.
57856         Check for REG_STARTEND of recent libc.
57857         Rename local variables from jm_* to gl_*.
57858         Quote operand of "test -f".
57859         Say "recent enough" version of libc, not "version 2".
57860         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
57861         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
57862         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
57863         Remove check for btowc, isascii.
57864         Require AM_LANGINFO_CODESET.
57865
57866 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57867
57868         * lib/regex.c, regex.h: Sync from libc.
57869         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
57870         * lib/regexec.c:
57871         New files, synced from libc, except that regex_internal.h
57872         currently has a small porting fix.
57873
57874 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57875
57876         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
57877         regex_internal.c, regexec.c.
57878         Add regex_internal.h too, but as a comment, since the libc version
57879         is currently broken in gnulib mode.
57880
57881 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57882
57883         Support programs like Emacs that use gnulib but not gettext.
57884         * MODULES.html.sh (Internationalization functions): Add gettext-h.
57885         * modules/gettext-h: New file.
57886         * modules/gettext (Files): Remove lib/gettext.h.
57887         (Depends-on): Add gettext-h.
57888         (Makefile.am): Remove lib_SOURCES.
57889         * modules/argmatch, modules/c-stack, modules/closeout:
57890         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
57891         * modules/execute, modules/file-type, modules/getaddrinfo:
57892         * modules/getopt, modules/human, modules/javacomp:
57893         * modules/javaexec, modules/mkdir-p, modules/obstack:
57894         * modules/openat, modules/pagealign_alloc, modules/pipe:
57895         * modules/quotearg, modules/regex, modules/rpmatch:
57896         * modules/unicodeio, modules/userspec, modules/version-etc:
57897         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
57898         * modules/xsetenv:
57899         Depend on gettext-h, not gettext.
57900
57901 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57902
57903         * gnulib-tool (func_import): Add support for 'public domain' license.
57904         * modules/alloca, modules/atexit, modules/memmove:
57905         Now public domain, not GPL.
57906         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
57907         * modules/realloc, modules/strerror, modules/strtod:
57908         Now LGPL, not GPL.
57909
57910 2005-07-05  Bruno Haible  <bruno@clisp.org>
57911
57912         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
57913         autoconf CVS. Needed for mingw.
57914
57915 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         Remove the dependency of the strftime module on the tzset module.
57918         * modules/strftime (Depends-on): Remove dependency on tzset.
57919
57920 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57921
57922         Remove the dependency of the strftime module on the tzset module.
57923         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
57924         gl_FUNC_TZSET_CLOBBER.
57925
57926 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57927
57928         Remove the dependency of the strftime module on the tzset module.
57929         * lib/strftime.c (my_strftime)
57930         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
57931         Copy the input structure, to work around some of the bug with
57932         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
57933         Solaris releases, you should also use the tzset module, but we won't
57934         require it as a dependency any more since we don't want LGPLed code
57935         to depend on GPLed code.
57936
57937 2005-07-02  Jim Meyering  <jim@meyering.net>
57938
57939         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
57940         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
57941         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
57942         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
57943
57944 2005-07-02  Jim Meyering  <jim@meyering.net>
57945
57946         * lib/backupfile.c (backup_args): Change a `0' to NULL.
57947
57948 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57949
57950         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
57951         declares only 'struct timespec;' (!).
57952
57953 2005-07-01  Jim Meyering  <jim@meyering.net>
57954
57955         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
57956         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
57957         * lib/save-cwd.c, tempname.c:
57958         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57959         and don't include <sys/file.h>).
57960
57961 2005-06-29  Jim Meyering  <jim@meyering.net>
57962
57963         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
57964         type name.  Use the variable name instead.
57965         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
57966         Likewise.
57967
57968 2005-06-28  Simon Josefsson  <jas@extundo.com>
57969
57970         * modules/check-version (Files): Add check-version.m4.
57971
57972 2005-06-28  Simon Josefsson  <jas@extundo.com>
57973
57974         * m4/check-version.m4: New file, suggested by Jim Meyering
57975         <jim@meyering.net>.
57976
57977 2005-06-28  Simon Josefsson  <jas@extundo.com>
57978
57979         * lib/check-version.h, lib/check-version.c: New files.
57980
57981 2005-06-28  Simon Josefsson  <jas@extundo.com>
57982
57983         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
57984         collision with global variable.  Better indentation.  Don't
57985         increment buffer pointer beyond buffer end.  Based on comments
57986         from Paul Eggert <eggert@cs.ucla.edu>.
57987
57988         * lib/base64.h: Indent.
57989
57990 2005-06-28  Simon Josefsson  <jas@extundo.com>
57991
57992         * doc/gnulib.texi (Library version handling): New section.
57993
57994 2005-06-28  Jim Meyering  <jim@meyering.net>
57995
57996         * check-module (find_included_lib_files): Hard-code another
57997         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
57998         but modules/fts-lgpl (correctly) does not list those files.
57999
58000         * modules/canonicalize (Files): Add lib/pathmax.h.
58001
58002 2005-06-25  Simon Josefsson  <jas@extundo.com>
58003
58004         * modules/check-version: New file.
58005
58006 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58007
58008         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58009         initializer of struct addrinfo, as an indication that we don't
58010         care how many members the structure has.
58011
58012 2005-06-24  Derek Price  <derek@ximbiot.com>
58013         and Bruno Haible  <bruno@clisp.org>
58014
58015         Remove stat module & update lstat.
58016         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58017         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58018         * m4/stat.m4: Remove this file.
58019
58020 2005-06-24  Derek Price  <derek@ximbiot.com>
58021         and Bruno Haible  <bruno@clisp.org>
58022
58023         Remove stat module & update lstat.
58024         * lib/stat.c: Remove this file...
58025         (slash_aware_lstat): ...moving this content and its support...
58026         * lib/lstat.c (rpl_lstat): ...into here.
58027         * lib/lstat.h: New file.
58028
58029 2005-06-24  Derek Price  <derek@ximbiot.com>
58030         and Bruno Haible  <bruno@clisp.org>
58031
58032         Remove stat module & update lstat.
58033         * config/srclist.txt (libc sources): Remove stat.
58034
58035 2005-06-24  Derek Price  <derek@ximbiot.com>
58036         and Bruno Haible  <bruno@clisp.org>
58037
58038         Remove stat module & update lstat.
58039         * MODULES.html.sh (stat): Remove.
58040         * MODULES.html: Regenerated.
58041         * modules/lstat (Description): Correct function name.
58042         (Files): Add "lstat.h".
58043         (Depends-on): Remove stat, add xalloc, stat-macros.
58044         * modules/stat: Remove this file.
58045         (Include): Add "lstat.h", remove <sys/stat.h>.
58046
58047 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58048
58049         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58050         (ranged_convert): Don't save conversion in a temporary struct.
58051         This causes a warning with GCC 4.0.0, and anyway in the typical
58052         case it's not worth the extra 100 bytes or so of code.
58053         (ranged_convert, __mktime_internal): When calling a function via a
58054         pointer P, use P () rather than (*P) (), as we now assume C89 or
58055         better.
58056
58057 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58058
58059         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58060         "who -r" failed to give output.  Problem reported by Tim Waugh.
58061
58062         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58063         (xcalloc): Use it to avoid needless tests.
58064         Problem reported by Jim Meyering.
58065
58066 2005-06-20  Derek Price  <derek@ximbiot.com>
58067
58068         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58069         unnecessary for Autoconfs > 2.59c.
58070
58071 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58072
58073         * lib/argp.h (__option_is_short): Check upper limit of
58074         __key. Isprint() requires its argument to have the value
58075         of an unsigned char or EOF.
58076
58077 2005-06-16  Jim Meyering  <jim@meyering.net>
58078
58079         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58080         when either N or S is zero.
58081
58082 2005-06-16  Derek Price  <derek@ximbiot.com>
58083
58084         * m4/bison.m4: Declare YACC & YFLAGS precious.
58085
58086 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58089         multibyte string or pattern, fall back on unibyte matching.
58090         Problem reported by James Youngman.
58091
58092 2005-06-08  Bruno Haible  <bruno@clisp.org>
58093
58094         * modules/csharpcomp: New file.
58095         * MODULES.html.sh (C#): Add csharpcomp.
58096
58097 2005-06-08  Bruno Haible  <bruno@clisp.org>
58098
58099         * m4/csharpcomp.m4: New file, from GNU gettext.
58100
58101 2005-06-08  Bruno Haible  <bruno@clisp.org>
58102
58103         * lib/csharpcomp.h: New file, from GNU gettext.
58104         * lib/csharpcomp.c: New file, from GNU gettext.
58105         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58106
58107 2005-06-08  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58110         warning on mingw.
58111
58112 2005-06-07  Derek Price  <derek@ximbiot.com>
58113
58114         Sync from CVS.
58115         * lib/glob_.h: Indent nested #ifdef.
58116
58117 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58118
58119         Sync from coreutils.
58120         Use "file name" when talking about file names, instead of "filename"
58121         or "path", as per the GNU coding standards.
58122         * lib/mkdir-p.c: Renamed from makepath.c.
58123         (make_dir_parents): Renamed from make_path.  All callers changed.
58124         * lib/mkdir-p.h: Likewise.  All includers changed.
58125         * lib/filenamecat.c: Renamed from path-concat.c.
58126         (file_name_concat): Renamed from path_concat.  All callers changed.
58127         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58128         * lib/filenamecat.h: Likewise.  All includers changed.
58129         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58130         in comments or local variable names.
58131         * lib/basename.c: Likewise.
58132         * lib/canonicalize.c, canonicalize.h: Likewise.
58133         * lib/dirname.c, dirname.h: Likewise.
58134         * lib/euidaccess.c: Likewise.
58135         * lib/exclude.c: Likewise
58136         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58137         * lib/fsusage.c, fsuage.h: Likewise.
58138         * lib/fts.c, fts_.h: Likewise.
58139         * lib/getcwd.c: Likewise.
58140         * lib/getloadavg.c: Likewise.
58141         * lib/mkstemp.c: Likewise.
58142         * lib/mountlist.c, mountlist.h: Likewise.
58143         * lib/openat.c, openat.h: Likewise.
58144         * lib/readlink-stub.c: Likewise.
58145         * lib/readutmp.c, readutmp.h: Likewise.
58146         * lib/rename.c: Likewise.
58147         * lib/rmdir.c: Likewise.
58148         * lib/same.c: Likewise.
58149         * lib/savedir.c: Likewise.
58150         * lib/stripslash.c: Likewise.
58151         * lib/tempname.c: Likewise.
58152         * lib/xreadlink.c: Likewise.
58153         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58154         All uses changed.
58155         * lib/exclude.h: Likewise.
58156
58157         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58158         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58159         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58160         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58161         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58162         files have been getting away with it for years (MORE/BSD 4.3
58163         is extinct now).
58164         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58165         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58166
58167         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58168         Define to 256, not 255, as per modern POSIX.
58169
58170 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58171
58172         Sync from coreutils.
58173         Use "file name" when talking about file names, instead of "filename"
58174         or "path", as per the GNU coding standards.
58175         * MODULES.html.sh: mkdir-p renamed from makepath.
58176         filenamecat renamed from path-concat.
58177         * modules/filenamecat: Renamed from modules/path-concat.
58178         (Files): filenamecat.h and filenamecat.c renamed from
58179         path-concat.h and path-concat.c.
58180         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58181         (Include): filenamecat.h, not path-concat.h.
58182         * modules/mkdir-p: Renamed from modules/makepath.
58183         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58184         makepath.c.
58185         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58186         (Include): mkdir-p.h, not makepath.h.
58187
58188 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58189
58190         Sync from coreutils.
58191         * m4/mkdir-p.m4: Renamed from makepath.m4.
58192         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58193         Rename files from makepath.c to mkdir-p.c, and from
58194         makepath.h to mkdir-p.h.
58195         * m4/filenamecat.m4: Renamed from path-concat.m4.
58196         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58197         Rename files from path-concat.c to filenamecat.c,
58198         and from path-concat.h to filenamecat.h.
58199         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58200         "file name" in local variables or comments.
58201         * m4/rename.m4: Likewise.
58202
58203 2005-06-01  Bruno Haible  <bruno@clisp.org>
58204
58205         * modules/csharpexec: New file.
58206         * MODULES.html.sh (C#): New section.
58207
58208 2005-06-01  Bruno Haible  <bruno@clisp.org>
58209
58210         * m4/csharp.m4: New file, from GNU gettext.
58211         * m4/csharpexec.m4: New file, from GNU gettext.
58212
58213 2005-06-01  Bruno Haible  <bruno@clisp.org>
58214
58215         * lib/csharpexec.h: New file, from GNU gettext.
58216         * lib/csharpexec.c: New file, from GNU gettext.
58217         * lib/csharpexec.sh.in: New file, from GNU gettext.
58218
58219 2005-05-31  Derek Price  <derek@ximbiot.com>
58220             Paul Eggert  <eggert@cs.ucla.edu>
58221
58222         Sync from cvs.
58223         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58224
58225 2005-05-31  Derek Price  <derek@ximbiot.com>
58226             Paul Eggert  <eggert@cs.ucla.edu>
58227
58228         Sync from cvs.
58229         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58230
58231 2005-05-29  Derek Price  <derek@ximbiot.com>
58232
58233         * config/srclist.txt (glob_.h, glob.c): Add these files.
58234
58235 2005-05-29  Derek Price  <derek@ximbiot.com>
58236
58237         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
58238         * modules/glob: New file.
58239         * modules/getlogin_r: Add link to POSIX spec in description.
58240
58241 2005-05-29  Derek Price  <derek@ximbiot.com>
58242             Paul Eggert  <eggert@cs.ucla.edu>
58243
58244         * m4/glob.m4: New file.
58245
58246 2005-05-29  Derek Price  <derek@ximbiot.com>
58247             Paul Eggert  <eggert@cs.ucla.edu>
58248
58249         * lib/glob_.h, lib/glob.c: New files.
58250
58251 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58252
58253         * modules/fts (Files): Remove m4/inttypes-pri.m4.
58254         * modules/fts-lgpl (Depends-on): Remove gettext.
58255
58256 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58257
58258         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
58259         and don't require gt_INTTYPES_PRI.
58260
58261 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58262
58263         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58264
58265         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58266         the configuration hassle isn't worth it.
58267         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58268         (LONGEST_MODIFIER, PRIuMAX): Remove.
58269
58270 2005-05-27  Bruno Haible  <bruno@clisp.org>
58271
58272         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58273
58274 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58275
58276         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58277         _POSIX_PTHREAD_SEMANTICS for Solaris.
58278
58279 2005-05-25  Derek Price  <derek@ximbiot.com>
58280
58281         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58282
58283 2005-05-25  Derek Price  <derek@ximbiot.com>
58284             Paul Eggert  <eggert@cs.ucla.edu>
58285
58286         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58287         * lib/getlogin_r.c, getlogin_r.h: New files.
58288
58289 2005-05-25  Bruno Haible  <bruno@clisp.org>
58290             Derek Price  <derek@ximbiot.com>
58291
58292         * lib/getlogin_r.h: Simplify API documentation.
58293
58294 2005-05-23  Derek Price  <derek@ximbiot.com>
58295
58296         * modules/minmax (Files): Add m4/minmax.m4.
58297         (configure.ac): Add gl_MINMAX.
58298
58299 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58300
58301         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58302         so that unistd-safer.h (GPL'ed code) need not be included.
58303
58304 2005-05-22  Bruno Haible  <bruno@clisp.org>
58305
58306         * m4/minmax.m4: New file.
58307         Based on a patch by Derek Price <derek@ximbiot.com>.
58308
58309 2005-05-22  Bruno Haible  <bruno@clisp.org>
58310
58311         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58312         (INT64_MIN): Fix definition.
58313         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58314
58315         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58316         NEED_SIGNED_INT_TYPES.
58317
58318         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58319         HAVE_SYSTEM_INTTYPES.
58320
58321 2005-05-22  Bruno Haible  <bruno@clisp.org>
58322
58323         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58324         Also include <sys/param.h> if it defines MIN, MAX.
58325         Based on a patch by Derek Price <derek@ximbiot.com>.
58326
58327 2005-05-21  Jim Meyering  <jim@meyering.net>
58328
58329         * modules/fts (Files): Add m4/inttypes-pri.m4.
58330         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58331
58332 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58333
58334         New fts module.
58335         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58336         (setup_dir, free_dir): New functions.
58337         (enter_dir, leave_dir): Define trivial
58338         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58339         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58340         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58341         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58342         Move to fts-cycle.c.
58343         (fts_open): Use setup_dir.
58344         (fts_close): Use free_dir.
58345         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58346         This adds a label and some gotos, but the alternatives were messier.
58347         Check for memory allocation failure when entering a dir.
58348         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58349         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58350         (FTS): New member fts_cycle, that is a union that contains the
58351         old active_dir_ht and cycle_state.  All uses changed to mention
58352         fts_cycle.ht and fts_cycle.state.
58353         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58354         fts.c, with the following changes:
58355         (setup_dir, free_dir): New functions.
58356         (enter_dir): Now returns bool.  Return true if successful, false
58357         if memory exhausted.  All callers changed.
58358         Do not bother partly cleaning up on
58359         memory allocation failure; that is free_dir's job.
58360         However, free ad if hash_insert fails, to avoid memory leak.
58361         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58362         fts->fts_options to see which union member to use.
58363
58364 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58365
58366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58367         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58368
58369 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58370
58371         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58372
58373 2005-05-20  Jim Meyering  <jim@meyering.net>
58374
58375         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58376         Now a macro, to pacify GCC.
58377
58378 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58379
58380         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58381         of -1.
58382
58383 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58384
58385         * lib/chown.c (rpl_chown): Return -1 on failure.
58386
58387 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58390         Don't check for stddef.h.
58391         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
58392         don't use its results.
58393         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
58394         since we include them unconditionally.  Don't require
58395         AM_STDBOOL_H, since stdbool is a prerequisite.
58396         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
58397         since we assume C89 or better.
58398         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
58399         as we don't use their results.
58400         Don't check for fchdir, memmove, memset, strrchr, as we use
58401         them unconditionally.
58402         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
58403         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
58404
58405 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58406
58407         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
58408         Include <stddef.h> unconditionally, since we assume C89 now.
58409         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
58410         * lib/fts.c: Include fts_.h first, to check interface.
58411         Do not include intprops.h; no longer needed.
58412         Include cycle-check.h and hash.h, since fts_.h no longer does.
58413         Remove unnecessary casts of closedir to void.
58414         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
58415         decide whether to decrement nlinks.
58416         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
58417         (FTS): Use struct hash_table * instead of Hash_table, so that
58418         we no longer need to include hash.h here.
58419
58420 2005-05-18  Jim Meyering  <jim@meyering.net>
58421
58422         * modules/dirfd (License): Change to LGPL.  Most of the code
58423         is already in the public domain.
58424
58425 2005-05-18  Jim Meyering  <jim@meyering.net>
58426
58427         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
58428         Reported by Yoann Vandoorselaere.
58429
58430 2005-05-17  Jim Meyering  <jim@meyering.net>
58431
58432         * m4/fts.m4: New file, from coreutils.
58433
58434 2005-05-17  Jim Meyering  <jim@meyering.net>
58435
58436         * lib/fts.c, lib/fts_.h: New files, from coreutils.
58437
58438 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58439
58440         Sync from coreutils.
58441         * m4/unlinkdir.m4: New file.
58442
58443 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58444
58445         Sync from coreutils.
58446         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
58447         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
58448         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
58449         White space changes only.
58450         * lib/makepath.c (make_path): Port to hosts where leading "//" is
58451         special.
58452         * lib/yesno.c: Include getline.h, not ctype.h.
58453         (yesno): Don't remove leading white space; POSIX doesn't allow it.
58454         Use getline to remove arbitrary restriction on response length.
58455
58456 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         * config/srclist-update: Spell out "Street" in FSF postal
58459         mail address; this is the style the FSF seems to prefer.
58460
58461         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
58462         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
58463         this updates FSF postal mail address.
58464
58465         Sync from coreutils.
58466         * modules/unlinkdir: New file.
58467         * modules/yesno (Depends-on): Add getline.
58468         * MODULES.html.sh (File system functions): Add unlinkdir.
58469
58470 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58471
58472         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
58473         lib/strsep.h:
58474         Change the initial comment to refer to GPL, not LGPL.
58475         gnulib-tool will change it to LGPL as needed.
58476
58477         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
58478         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
58479         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
58480         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
58481         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
58482         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
58483         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
58484         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
58485         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
58486         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
58487         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
58488         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
58489         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
58490         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
58491         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
58492         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
58493         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
58494         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
58495         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
58496         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
58497         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
58498         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
58499         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
58500         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
58501         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
58502         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
58503         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
58504         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
58505         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
58506         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
58507         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
58508         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
58509         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
58510         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
58511         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
58512         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
58513         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
58514         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
58515         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
58516         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
58517         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
58518         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
58519         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
58520         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
58521         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
58522         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
58523         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
58524         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
58525         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
58526         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
58527         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58528         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
58529         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
58530         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
58531         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
58532         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
58533         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
58534         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
58535         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
58536         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
58537         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
58538         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
58539         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
58540         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
58541         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
58542         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
58543         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
58544         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
58545         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
58546         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
58547         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
58548         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
58549         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
58550         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
58551         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
58552         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
58553         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
58554         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
58555         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
58556         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
58557         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
58558         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
58559         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
58560         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
58561         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
58562         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
58563         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
58564         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
58565         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
58566         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
58567         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
58568         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
58569         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
58570         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
58571         lib/yesno.c, lib/yesno.h:
58572         Update FSF postal mail address.
58573
58574 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58575
58576         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
58577         tests/test-memmem.c, tests/test-stpncpy.c:
58578         Update FSF postal mail address.
58579
58580 2005-05-13  Bruno Haible  <bruno@clisp.org>
58581
58582         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
58583         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
58584         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
58585         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
58586         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
58587         Add support for 64-bit integers in the MSVC compiler.
58588
58589 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58590
58591         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
58592
58593 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
58594
58595         * gnulib-tool (func_import): Sort and uniquify recommended includes.
58596
58597 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
58598
58599         * doc/getdate.texi (General date syntax): Don't say that date
58600         date --iso-8601=ns generates acceptable dates; it doesn't yet.
58601         Problem reported by Nic Ferrier.
58602
58603 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58604
58605         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
58606         specified in ai_socktype. Fix invalid ai_protocol
58607         check. ai_protocol is usually set to 0 or depending on
58608         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
58609         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
58610         ai_socktype / ai_protocol in the returned addrinfo structure.
58611
58612 2005-05-10  Simon Josefsson  <jas@extundo.com>
58613
58614         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
58615         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58616
58617 2005-05-10  Karl Berry  <karl@gnu.org>
58618
58619         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
58620         (from http://www.gnu.org/licenses).
58621         * doc/COPYING.LIB: also rename to COPYING.LESSER.
58622         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
58623         fdl.texi suffices.
58624
58625 2005-05-10  Karl Berry  <karl@gnu.org>
58626
58627         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
58628         (COPYING.DOC): remove.
58629
58630         * config/srclist-update: new FSF address.
58631
58632 2005-05-10  Derek Price  <derek@ximbiot.com>
58633
58634         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
58635         possible.
58636
58637 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58638             Bruno Haible  <bruno@clisp.org>
58639
58640         * modules/inet_ntop: New file.
58641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58642         inet_ntop.
58643
58644 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58645             Bruno Haible  <bruno@clisp.org>
58646
58647         * m4/inet_ntop.m4: New file.
58648
58649 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58650             Bruno Haible  <bruno@clisp.org>
58651
58652         * lib/inet_ntop.h: New file.
58653         * lib/inet_ntop.c: New file, from glibc with modifications.
58654
58655 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
58656
58657         * modules/time_r (License): Change to LGPL.
58658         * modules/extensions (License): Change to LGPL.  Actually,
58659         the license is more permissive than that, but currently gnulib-tool
58660         doesn't know how to handle more-permissive licenses.
58661
58662         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
58663         Problem reported by Dave Love.
58664
58665 2005-05-08  Jim Meyering  <jim@meyering.net>
58666
58667         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
58668         blank.
58669
58670 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58671
58672         * modules/argmatch (Depends-on): Add stdbool.
58673         * modules/backupfile (Depends-on): Likewise.
58674         * modules/chdir-long (Depends-on): Likewise.
58675         * modules/closeout (Depends-on): Likewise.
58676         * modules/cycle-check (Depends-on): Likewise.
58677         * modules/dirname (Depends-on): Likewise.
58678         * modules/fnmatch (Depends-on): Likewise.
58679         * modules/fsusage (Depends-on): Likewise.
58680         * modules/fwriteerror (Depends-on): Likewise.
58681         * modules/getcwd (Depends-on): Likewise.
58682         * modules/getloadavg (Depends-on): Likewise.
58683         * modules/hard-locale (Depends-on): Likewise.
58684         * modules/makepath (Depends-on): Likewise.
58685         * modules/mountlist (Depends-on): Likewise.
58686         * modules/nanosleep (Depends-on): Likewise.
58687         * modules/posixtm (Depends-on): Likewise.
58688         * modules/quotearg (Depends-on): Likewise.
58689         * modules/readtokens (Depends-on): Likewise.
58690         * modules/readtokens0 (Depends-on): Likewise.
58691         * modules/readutmp (Depends-on): Likewise.
58692         * modules/save-cwd (Depends-on): Likewise.
58693         * modules/strftime (Depends-on): Likewise.
58694         * modules/userspec (Depends-on): Likewise.
58695         * modules/utimecmp (Depends-on): Likewise.
58696         * modules/xgetcwd (Depends-on): Likewise.
58697         * modules/xnanosleep (Depends-on): Likewise.
58698         * modules/xstrtod (Depends-on): Likewise.
58699         * modules/yesno (Depends-on): Likewise.
58700
58701 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
58702
58703         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
58704         needless checks.
58705
58706 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58707
58708         Merge from coreutils.  Among other things,
58709         add bulletproofing for cases where stdin, stdout, or stderr are closed.
58710         * lib/fd-safer.c: New file.
58711         * lib/fcntl-safer.h, open-safer.c: Remove.
58712         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
58713         * lib/dup-safer.c: Include unistd-safer.h first.
58714         Don't include errno.h.
58715         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
58716         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
58717         * lib/file-type.c: Rely on file-type.h change.
58718         * lib/getloadavg.c: Include unistd-safer.h.
58719         (getloadavg): Use safer open.
58720         * lib/getusershell.c: Include "stdio-safer.h".
58721         (getusershell): Use safer fopen.
58722         * lib/long-options.c (long_options): Use NULL rather than 0.
58723         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
58724         'free'.
58725         * lib/modechange.c: Likewise.
58726         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
58727         (MODE_DONE): New constant.
58728         (struct mode_change): Remove 'next' member.
58729         (make_node_op_equals): New function; like the old one of the
58730         same name, except it allocates an array.
58731         (mode_compile, mode_create_from_ref): Use it.
58732         (mode_compile): Allocate result as an array, not a linked list.
58733         Parse octal string ourself, so that we catch mistakes like "+0".
58734         (mode_adjust): Arg is an array, not a linked list.
58735         * lib/modechange.c: Include stat-macros.h, xalloc.h.
58736         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
58737         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
58738         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
58739         Remove.  This is now stat-macros.h's job.
58740         (talloc): Remove.  All callers replaced by xalloc, so that
58741         our invokers don't have to worry about reporting memory failures.
58742         (make_node_op_equals): Remove.
58743         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58744         New constants.
58745         (struct mode_change): Moved here from modechange.h.
58746         (mode_append_entry): Remove.
58747         (mode_compile): Remove MASKED_OPS arg, since it encouraged
58748         apps to have incorrect behavior.  Use simpler algorithm for head
58749         and tail.  Don't futz with umask; that's now the job of mode_adjust.
58750         Detect more invalid usages rather than having somewhat-random behavior.
58751         Don't insert an "a=" action, as that leads to incorrect behavior.
58752         (mode_compile, mode_create_from_ref): Return NULL on error instead
58753         of an enum, since now there's only one way to have an error.  All
58754         callers changed.
58755         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
58756         at the correct time.  Simplify calculation of "+u" and its ilk.
58757         Don't mishandle "+X".
58758         (mode_free): Remove "register" and localize decls.
58759         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58760         (struct mode_change): Move to modechange.c; callers don't
58761         need to see this stuff.
58762         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
58763         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
58764         (mode_change, mode_adjust): Reflect the new signatures noted above.
58765         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
58766         that might redefine system include files.
58767         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
58768         (my_usleep): Use NULL rather than (void *) 0.
58769         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
58770         Use siginterrupt to specify that system calls should be interrupted.
58771         (rpl_nanosleep): Move initialization of suspended closer to call of
58772         my_usleep.
58773         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
58774         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
58775         (desirable_utmp_entry): New function.
58776         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
58777         using x2nrealloc, to simplify logic.
58778         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
58779         size calculation.  Do not assume utmp file is a regular file.
58780         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
58781         (READ_UTMP_CHECK_PIDS): New constant.
58782         * lib/save-cwd.c: Include unistd-safer.h.
58783         (save_cwd): Use fd_safer.
58784         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
58785         [!_LIBC] Include "stat-macros.h" instead.
58786         * lib/unistd-safer.h (fd_safer): New decl.
58787
58788 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58789
58790         * modules/getloadavg (Depends-on): Add unistd-safer.
58791         * modules/getusershell (Depends-on): Add stdio-safer.
58792         * modules/lstat (Depends-on): Remove xalloc.
58793         * modules/mkstemp (Depends-on): Add stat-macros.
58794         * modules/modechange (Depends-on): Remove xstrtol.
58795         Add stat-macros, xalloc.
58796         * modules/save-cwd (Depends-on): Add unistd-safer.
58797         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
58798         * modules/unistd-safer (Files): Add lib/fd-safer.c
58799         (Makefile.am): Remove lib_SOURCES.
58800
58801         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
58802         Remove fcntl-safer; unistd-safer supersedes it.
58803
58804 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58805
58806         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
58807         AC_HEADER_STAT.
58808         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
58809         (gl_PREREQ_CHOWN): Remove.
58810         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
58811         it.  Don't require AC_HEADER_STAT.
58812         (gl_PREREQ_LSTAT): Remove.
58813         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
58814         Don't require AC_HEADER_STAT.
58815         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
58816         (gl_PREREQ_RMDIR): Remove.
58817         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
58818         mention stat-macros.h or AC_HEADER_STAT, since we'll make
58819         the stat-macros module a prerequisite.
58820         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
58821         * m4/filemode.m4 (gl_FILEMODE): Likewise.
58822         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
58823         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
58824         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
58825         variable names.
58826         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
58827         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
58828         variable prefixes.
58829         * m4/fcntl-safer.m4: Remove.
58830         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
58831         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
58832         Invoke gl_PREREQ_FD_SAFER.
58833         (gl_PREREQ_FD_SAFER): New macro.
58834         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
58835         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
58836         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
58837         Remove duplicate call to AC_LIBOBJ(readutmp).
58838         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
58839
58840         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
58841         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
58842
58843 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58844
58845         * MODULES.html.sh (Misc): Add byteswap.
58846
58847 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58848
58849         * modules/getcwd (Depends-on): Add extensions.
58850         * modules/openat (Depends-on): Likewise.
58851
58852 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58853
58854         * modules/byteswap: New file.
58855
58856 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58857
58858         * m4/byteswap.m4: New file.
58859
58860 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58861
58862         * lib/byteswap_.h: New file.
58863
58864 2005-04-25  Karl Berry  <karl@gnu.org>
58865
58866         * m4/gettext.m4: Update from GNU gettext 0.14.4.
58867
58868 2005-04-25  Albert Chin  <china@thewrittenword.com>
58869
58870         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
58871         Toolkit C bug.
58872
58873 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
58874
58875         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
58876         (func_ln_if_changed) Remove forcibly for no error message
58877         in case file does not exist.
58878
58879 2005-04-19  Simon Josefsson  <jas@extundo.com>
58880
58881         * gnulib-tool (Options): Make --symlink mean --symbolic.
58882
58883 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
58884
58885         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
58886
58887 2005-04-16  Simon Josefsson  <jas@extundo.com>
58888
58889         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
58890
58891 2005-04-15  Simon Josefsson  <jas@extundo.com>
58892
58893         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
58894
58895 2005-04-15  Simon Josefsson  <jas@extundo.com>
58896
58897         * gnulib-tool: Rename --symlink to --symbolic.
58898
58899 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
58900
58901         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
58902         symbolic links to files instead of copying/moving.  Add --aux-dir,
58903         specifying directory relative --dir where auxiliary build tools
58904         are placed.
58905
58906 2005-04-14  Bruno Haible  <bruno@clisp.org>
58907
58908         * modules/allocsa (License): Change to LGPL.
58909         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58910
58911 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58912
58913         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
58914         that "UTC +1 second" continues to work.  Problem reported
58915         by Dmitry V. Levin.
58916         (relunit_snumber): New rule.
58917         (relunit): Use it.
58918
58919 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58920
58921         * lib/getdate.y (universal_time_zone_table): New constant.
58922         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
58923         universal_time_zone_table.
58924         (lookup_zone): Prefer universal_time_zone_table to
58925         local_time_zone_table, so that "GMT" time stamps are allowed in
58926         London during the summer.  Problem reported by Ian Abbott.
58927
58928 2005-04-12  Jim Meyering  <jim@meyering.net>
58929
58930         * lib/human.c (humblock): Set *options even when returning due to
58931         xstrtoumax conversion failure.  Thanks to a used-uninitialized
58932         warning from gcc-4.
58933
58934 2005-04-09  Jim Meyering  <jim@meyering.net>
58935
58936         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
58937         -Wuninitialized: initialize tm0.tm_year.
58938
58939 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58940
58941         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
58942         count, since there's no maximum.  All uses changed.
58943         Add member dsts_seen.
58944         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
58945         not being INT_MAX.
58946         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
58947         Use pc_rels_seen to decide whther a date is absolute.
58948
58949         * lib/getdate.y (number): Don't overwrite year.
58950         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
58951         check.
58952
58953 2005-04-02  Simon Josefsson  <jas@extundo.com>
58954
58955         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
58956         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
58957
58958 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
58959
58960         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
58961         where no absolute path name can be longer than PATH_MAX.
58962
58963 2005-03-27  Jim Meyering  <jim@meyering.net>
58964
58965         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
58966
58967 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
58968
58969         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
58970         "one's complement" -> "ones' complement" in comment, as per Knuth.
58971         "value of type" -> "type or expression" in comment.
58972         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
58973
58974 2005-03-26  Jim Meyering  <jim@meyering.net>
58975
58976         Comment nits.
58977         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
58978         Correct typos: s/or/of/.
58979
58980 2005-03-26  Jim Meyering  <jim@meyering.net>
58981
58982         * modules/check-include-files: Move to ../ and rename to...
58983         * check-module: ...this.
58984
58985 2005-03-25  Jim Meyering  <jim@meyering.net>
58986
58987         * modules/xvasprintf (Files): Add xalloc.h.
58988
58989 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58990
58991         * modules/gettext (Files): config/config.rpath ->
58992         build-aux/config.rpath
58993         * modules/iconv (Files): Likewise.
58994         Problem reported by Oskar Liljeblad.
58995
58996 2005-03-23  Jim Meyering  <jim@meyering.net>
58997
58998         * modules/check-include-files: New script to check for
58999         missing dependencies, multiple includes, etc.
59000
59001         * modules/c-strtold (Depends-on): Add xalloc.
59002         * modules/c-strtod (Depends-on): Add xalloc.
59003         * modules/hash (Depends-on): Add xalloc.
59004         (Files): Remove lib/xalloc.h.
59005
59006         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59007         * modules/userspec (Files): Add lib/inttostr.h.
59008
59009 2005-03-23  Jim Meyering  <jim@meyering.net>
59010
59011         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59012
59013 2005-03-22  Jim Meyering  <jim@meyering.net>
59014
59015         * modules/stat-macros: New module.
59016         * modules/canonicalize, modules/euidaccess, modules/file-type,
59017         * modules/filemode, modules/lchown, modules/makepath,
59018         * modules/rmdir, modules/stat: Depend on new stat-macros module
59019         rather than listing lib/stat-macros.h manually.
59020         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59021
59022 2005-03-22  Jim Meyering  <jim@meyering.net>
59023
59024         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59025
59026 2005-03-22  Bruno Haible  <bruno@clisp.org>
59027
59028         * config/srclist.txt: Replace target directory 'config' with
59029         'build-aux'.
59030         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59031         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59032         ../build-aux/.
59033
59034 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59035
59036         * modules/chdir-long (Depends-on): Add mempcpy.
59037
59038         * modules/acl, modules/backupfile, modules/c-strtod,
59039         modules/c-strtold, modules/canon-host, modules/canonicalize,
59040         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59041         modules/exclude, modules/exitfail, modules/file-type,
59042         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59043         modules/getdate, modules/getline, modules/getpagesize,
59044         modules/getpass, modules/getugroups, modules/group-member,
59045         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59046         modules/inttostr, modules/long-options, modules/makepath,
59047         modules/md5, modules/memcasecmp, modules/memcoll,
59048         modules/modechange, modules/mountlist, modules/path-concat,
59049         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59050         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59051         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59052         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59053         modules/strftime, modules/strndup, modules/strverscmp,
59054         modules/timespec, modules/unlocked-io, modules/userspec,
59055         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59056         modules/yesno:
59057         Remove lib_SOURCES line from Makefile.am section, as this is now
59058         done automatically by the corresponding Autoconf macro.
59059
59060 2005-03-21  Jim Meyering  <jim@meyering.net>
59061
59062         Changes imported from coreutils.
59063
59064         * lib/cycle-check.c: Don't include xalloc.h.
59065
59066         * lib/path-concat.c: Don't include assert.h.
59067         (path_concat): Remove assertion that would have triggered
59068         for ABASE starting with more than one slash.
59069         Reported by Andreas Schwab.
59070
59071         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59072         properly when ABASE is an absolute file name.
59073         Correct the description of this function.
59074         Include <assert.h>.
59075         Add an assertion and a test driver.
59076         This fixes a bug introduced on 2004-07-02.
59077         Andreas Schwab reported the resulting failure of cp --parents:
59078         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59079
59080 2005-03-21  Jim Meyering  <jim@meyering.net>
59081
59082         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59083         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59084
59085 2005-03-21  Jim Meyering  <jim@meyering.net>
59086         and  Paul Eggert  <eggert@cs.ucla.edu>
59087
59088         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59089         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59090         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59091         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59092         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59093         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59094         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59095         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59096         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59097         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59098         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59099         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59100         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59101         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59102         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59103         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59104         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59105         for these modules.
59106
59107 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59108
59109         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59110         (which shouldn't happen), generate nothing instead of returning 0
59111         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59112
59113 2005-03-16  Bruno Haible  <bruno@clisp.org>
59114
59115         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59116         HAVE_LONGLONG_64BIT.
59117
59118 2005-03-16  Bruno Haible  <bruno@clisp.org>
59119
59120         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59121         HAVE_LONGLONG_64BIT.
59122
59123 2005-03-16  Bruno Haible  <bruno@clisp.org>
59124
59125         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59126         HAVE_LONGLONG_64BIT.
59127
59128 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59129
59130         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59131         reliably distinguish strftime failure from empty output on POSIX
59132         hosts.
59133
59134 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59135
59136         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59137         (iconv_string): Don't guess a size-zero buffer, as that might cause
59138         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59139         result would be 'too large', where 'too large' is (heuristically)
59140         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59141         overflow concerns.  This will prevent some unwanted malloc failures
59142         when the inputs are very large.
59143
59144 2005-03-15  Karl Berry  <karl@gnu.org>
59145
59146         * config/srclist.txt (config.rpath): from gettext.
59147         * config/config.rpath: update.
59148
59149 2005-03-15  Bruno Haible  <bruno@clisp.org>
59150
59151         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59152         to 'negate'.
59153
59154         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59155         variable.
59156
59157         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59158         results.
59159
59160 2005-03-14  Simon Josefsson  <jas@extundo.com>
59161
59162         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59163         <fx@gnu.org>.
59164
59165 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59166
59167         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59168         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59169         intprops.h.
59170         * lib/strtol.c: Likewise.
59171
59172 2005-03-14  Jim Meyering  <jim@meyering.net>
59173
59174         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59175         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59176         to be nonzero so that we (and caller) can detect the difference
59177         between a valid zero-length expansion and an error return, even
59178         when the underlying strftime fails before writing anything into
59179         that location.
59180
59181 2005-03-14  Bruno Haible  <bruno@clisp.org>
59182
59183         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59184         Update from GNU gettext 0.14.3.
59185
59186 2005-03-10  Jim Meyering  <jim@meyering.net>
59187
59188         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59189
59190 2005-03-10  Jim Meyering  <jim@meyering.net>
59191
59192         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59193         so that this module works on systems without fchdir.
59194
59195 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59196
59197         Factor int-properties macros into a single file, except for
59198         glibc-related files.
59199         * lib/intprops.h: New file.
59200         * lib/getloadavg.c: Include it instead of limits.h.
59201         (INT_STRLEN_BOUND): Remove.
59202         * lib/human.c: Include intprops.h.
59203         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59204         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59205         302/1000.
59206         * lib/inttostr.h: Include intprops.h instead of limits.h.
59207         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59208         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59209         for consistency with intprops.h.
59210         (time_t_is_integer, twos_complement_arithmetic): Use them.
59211         * lib/sig2str.h: Include <signal.h>, intprops.h.
59212         (INT_STRLEN_BOUND): Remove.
59213         * lib/strftime.c (TYPE_SIGNED): Remove.
59214         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59215         * lib/strtol.c: Adjust comments to match intprops.h.
59216         * lib/userspec.c: Include intprops.h.
59217         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59218         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59219         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59220         instead of rolling our own expressions.
59221         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59222
59223         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
59224         instead of int.
59225         (my_strftime): Do not mishandle years close to INT_MAX, by doing
59226         the right thing even if adding 1900 would overflow.  Similarly
59227         for tm_mon + 1 and tm_yday + 1.
59228         Make %Y always equivalent to %C%y, and similarly for %G and %g.
59229         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
59230         (DO_SIGNED_NUMBER): New macro.
59231         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
59232
59233 2005-03-07  Bruno Haible  <bruno@clisp.org>
59234
59235         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
59236
59237 2005-03-07  Bruno Haible  <bruno@clisp.org>
59238
59239         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
59240
59241 2005-03-04  Derek R. Price  <derek@ximbiot.com>
59242
59243         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
59244         (func_import): Only replace files via --import when they have actually
59245         changed.
59246
59247 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59248
59249         * m4/mmap-anon.m4: New file.
59250         * m4/pagealign_alloc.m4: New file.
59251
59252 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59253             Bruno Haible  <bruno@clisp.org>
59254
59255         * modules/pagealign_alloc: New file.
59256         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
59257
59258 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59259             Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/pagealign_alloc.h: New file.
59262         * lib/pagealign_alloc.c: New file.
59263
59264 2005-03-03  Bruno Haible  <bruno@clisp.org>
59265
59266         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59267         Use an all-permissive copyright notice, recommended by RMS.
59268
59269 2005-03-02  Bruno Haible  <bruno@clisp.org>
59270
59271         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59272         of AIX, the replacement has to be done only after <string.h> is
59273         included, therefore not in config.h. stpncpy.h does the replacement,
59274         and stpncpy.c uses it.
59275
59276 2005-03-02  Bruno Haible  <bruno@clisp.org>
59277
59278         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59279         stpncpy.c uses it.
59280
59281 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59284         The workaround isn't strictly needed for POSIX conformance, and
59285         it's too much of a pain to configure and maintain.  We'll ask
59286         people to fix their kernels instead.
59287         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59288         (NANOSLEEP_BUG_WORKAROUND): Remove.
59289         (xnanosleep): Remove the workaround.
59290
59291 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59292
59293         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59294         Reported by Derek Price.
59295         (Include): Add "timespec.h".
59296
59297         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59298
59299 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59300
59301         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59302         to detect nanosleep bug.
59303
59304 2005-03-01  Bruno Haible  <bruno@clisp.org>
59305
59306         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59307
59308 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59309
59310         * modules/gethrxtime: New file.
59311         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59312         (Depends-on): Add gethrxtime.
59313         (configure.ac): Add gl_XNANOSLEEP.
59314         (Makefile.am): Remove lib_SOURCES line.
59315
59316 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59317
59318         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59319         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59320
59321 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59322
59323         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59324         * lib/timespec.h (gettime): Return void, since it always
59325         succeeds now.  All uses changed.
59326         * lib/gettime.c (gettime) Likewise.
59327         [HAVE_NANOTIME]: Prefer nanotime.
59328         Assume gettimeofday succeeds, as POSIX requires.
59329         Assime time () succeeds, since other code already does.
59330         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59331         (timespec_subtract): Remove.
59332         (NANOSLEEP_BUG_WORKAROUND): New constant.
59333         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59334         things considerably.  Use it only on GNU/Linux hosts, since the
59335         workaround shouldn't be needed elsewhere.
59336
59337 2005-02-24  Bruno Haible  <bruno@clisp.org>
59338
59339         * modules/gettext (Files): Add m4/glibc2.m4.
59340
59341 2005-02-24  Bruno Haible  <bruno@clisp.org>
59342
59343         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59344         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59345         * m4/progtest.m4:
59346         Update from GNU gettext 0.14.2.
59347         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59348
59349 2005-02-24  Bruno Haible  <bruno@clisp.org>
59350
59351         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59352         * lib/config.charset: Update from GNU gettext 0.14.2.
59353
59354 2005-02-24  Bruno Haible  <bruno@clisp.org>
59355
59356         * lib/gettext.h: Update from GNU gettext 0.14.2.
59357
59358 2005-02-23  Simon Josefsson  <jas@extundo.com>
59359
59360         * m4/iconvme.m4: New file.
59361
59362 2005-02-23  Jim Meyering  <jim@meyering.net>
59363
59364         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59365         change.
59366         Thanks to Bruno Haible for catching it.
59367
59368 2005-02-22  Simon Josefsson  <jas@extundo.com>
59369
59370         * modules/iconvme: New file.
59371
59372         * MODULES.html.sh: Add iconvme.
59373
59374 2005-02-22  Simon Josefsson  <jas@extundo.com>
59375
59376         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59377
59378 2005-02-22  Simon Josefsson  <jas@extundo.com>
59379
59380         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59381
59382 2005-02-22  Jim Meyering  <jim@meyering.net>
59383
59384         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59385         s/ifndef/ifdef/.
59386
59387 2005-02-20  Neil Conway  <neilc@samurai.com>
59388
59389         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59390         returned by OSX/Darwin if the specified buffer is not large
59391         enough for the hostname.
59392
59393 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59394
59395         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
59396         pass it to _help, otherwise the latter coredumps trying to
59397         dereference state.root_argp.
59398
59399 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59400
59401         * modules/chdir-long (Depends-on): Add memrchr.
59402         * modules/memrchr (Files): Add lib/memrchr.h.
59403         (Include): "memrchr.h".
59404
59405 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59406
59407         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
59408
59409 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59410
59411         * lib/memrchr.h: New file.
59412         * lib/chdir-long.c: Include it.
59413         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
59414         Don't bother including stddef.h.
59415
59416 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59417
59418         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
59419         inclusion.
59420         Include <sys/types.h>, for dev_t.
59421         (ME_DUMMY, ME_REMOTE): Move from here....
59422         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
59423         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
59424         Dmitry V. Levin.
59425         Include mountlist.h first, to test the interface.
59426
59427 2005-01-29  Bruno Haible  <bruno@clisp.org>
59428
59429         * lib/progname.c (program_name): Initialize.
59430         Needed when linking statically on MacOS X.
59431
59432 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59433
59434         Sync from coreutils.
59435         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
59436         (Depends-on): Add c-strtod.
59437         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
59438
59439 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59440
59441         Sync from coreutils.
59442         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
59443
59444         Remove files that are specific to coreutils.
59445         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
59446
59447 2005-01-28  Bruno Haible  <bruno@clisp.org>
59448
59449         * modules/javacomp: New file.
59450         * MODULES.html.sh (Java): Add javacomp.
59451
59452 2005-01-28  Bruno Haible  <bruno@clisp.org>
59453
59454         * m4/javacomp.m4: New file, from GNU gettext.
59455
59456 2005-01-28  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/javacomp.sh.in: New file, from GNU gettext.
59459         * lib/javacomp.h: New file, from GNU gettext.
59460         * lib/javacomp.c: New file, from GNU gettext.
59461
59462 2005-01-26  Simon Josefsson  <jas@extundo.com>
59463
59464         * lib/gai_strerror.c: Use GPL in header.
59465
59466 2005-01-26  Bruno Haible  <bruno@clisp.org>
59467
59468         * modules/javaexec: New file.
59469         * MODULES.html.sh (Java): Add javaexec.
59470
59471 2005-01-26  Bruno Haible  <bruno@clisp.org>
59472
59473         * m4/javaexec.m4: New file, from GNU gettext.
59474
59475 2005-01-26  Bruno Haible  <bruno@clisp.org>
59476
59477         * lib/javaexec.sh.in: New file, from GNU gettext.
59478         * lib/javaexec.h: New file, from GNU gettext.
59479         * lib/javaexec.c: New file, from GNU gettext.
59480
59481 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59482
59483         * modules/lchown (Depends-on): Remove lchown.h
59484
59485 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59486
59487         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
59488         must be defined if the header file was not found, in order
59489         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
59490
59491 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59492
59493         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
59494         initializers for struct pentry_state.
59495         (__argp_error): Check return value of __asprintf
59496         (__argp_failure): Translate error message
59497
59498         * lib/argp-parse.c: Removed braces around the expansion of N_()
59499
59500 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59501
59502         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
59503         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
59504         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
59505         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
59506         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
59507         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
59508         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
59509         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
59510         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
59511         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
59512         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
59513         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
59514         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
59515         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
59516         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
59517         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
59518         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
59519         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
59520         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
59521         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
59522         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
59523         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
59524         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
59525         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
59526         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
59527         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
59528         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
59529         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
59530         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
59531         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
59532         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
59533         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
59534         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
59535         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
59536         xstrtol.m4, xstrtoumax.m4, yesno.m4:
59537         Use an all-permissive copyright notice, recommended by RMS.
59538
59539 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59540
59541         * modules/chdir-long (Depends-on): Remove mempcpy.
59542
59543 2005-01-21  Jim Meyering  <jim@meyering.net>
59544
59545         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
59546         same value as for Solaris 9.
59547
59548         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
59549         component length.  This included changing the parameter to be
59550         of type `char *' rather than `char const *'.
59551         * lib/chdir-long.h (chdir_long): Update prototype.
59552
59553         * lib/openat.c (fdopendir, fstatat): New functions.
59554         * lib/openat.h: Include headers required for use of DIR and struct
59555         stat.
59556         [AT_SYMLINK_NOFOLLOW]: Define.
59557         (fdopendir, fstatat): Add prototypes.
59558
59559 2005-01-21  Bruno Haible  <bruno@clisp.org>
59560
59561         * modules/classpath: New file.
59562         * MODULES.html.sh (Java): Add classpath.
59563
59564 2005-01-21  Bruno Haible  <bruno@clisp.org>
59565
59566         * lib/classpath.h: New file, from GNU gettext.
59567         * lib/classpath.c: New file, from GNU gettext.
59568
59569 2005-01-20  Simon Josefsson  <jas@extundo.com>
59570
59571         * modules/version-etc-fsf: New file.
59572
59573 2005-01-20  Simon Josefsson  <jas@extundo.com>
59574
59575         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
59576         * lib/version-etc.c: Remove version_etc_copyright.
59577         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
59578         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
59579
59580 2005-01-20  Simon Josefsson  <jas@extundo.com>
59581
59582         * lib/base64.h (isbase64): Add.
59583
59584         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
59585         using a unsigned prototype, don't inline.
59586         (base64_decode): Use it.
59587
59588 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59589
59590         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
59591         it.
59592
59593 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59594
59595         * lib/save-cwd.c (save_cwd): Remove code to support the case
59596         where fchdir is missing or flaky.
59597
59598 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59599
59600         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
59601
59602 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59603
59604         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
59605         AC_LIBSOURCES now does this.
59606         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
59607         with new ullong_max module.
59608
59609 2005-01-19  Bruno Haible  <bruno@clisp.org>
59610
59611         * modules/sh-quote: New file.
59612         * MODULES.html.sh (Executing programs): Add sh-quote.
59613
59614 2005-01-19  Bruno Haible  <bruno@clisp.org>
59615
59616         * lib/sh-quote.h: New file, from GNU gettext.
59617         * lib/sh-quote.c: New file, from GNU gettext.
59618
59619 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59620
59621         Merge from coreutils.
59622         * m4/ullong_max.m4: New file.
59623         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
59624         (gl_MACROS): Assume localeconv exists.
59625
59626 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59627
59628         Merge changes from coreutils, as described below in several
59629         changelogs dated today.
59630
59631         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
59632         (O_DIRECTORY): Remove; not needed here, since "." must be
59633         a directory.  All uses removed.
59634         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
59635         universal on Suns, and we also need to test for IRIX.
59636         Revamp code to use 'if' rather than '#if'.
59637         Avoid unnecessary comparison of cwd->desc to 0.
59638
59639         * lib/utimens.c (futimens): Robustify the previous patch, by checking
59640         for known valid error numbers rather than observed invalid ones.
59641
59642 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59643
59644         * modules/ullong_max: New file.
59645
59646         * modules/chdir-long, modules/openat: New files.
59647         * modules/save-cwd (Depends-on): Depend on chdir-long.
59648         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
59649
59650 2005-01-18  Jim Meyering  <jim@meyering.net>
59651
59652         Merge from coreutils.
59653         * m4/chdir-long.m4, m4/openat.m4: New files.
59654         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
59655         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
59656         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
59657         is sane and DOES follow symlinks.  Besides, testing 20 different
59658         systems found no broken chown implementations.
59659         Prompted by a change in rsync's copy of this macro.
59660         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
59661
59662         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
59663
59664         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
59665         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
59666         NULL-means-set-to-current-time semantics.
59667         Remove temporary file immediately, rather than waiting
59668         for configure's at-exit trap code to do it.
59669
59670 2005-01-18  Jim Meyering  <jim@meyering.net>
59671
59672         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59673
59674         * lib/utimens.c (futimens): Account for the fact that futimes
59675         can also fail with errno == ENOSYS or errno == ENOENT.
59676         Patch from Dmitry V. Levin.
59677
59678         Change the name of the robust chdir function from chdir to chdir_long.
59679         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
59680         (restore_cwd): Use chdir_long, not chdir.
59681         * lib/chdir-long.c: Renamed from chdir.c.
59682         * lib/chdir-long.h: Renamed from chdir.h.
59683         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
59684         Hurd.
59685
59686 2005-01-18  Bruno Haible  <bruno@clisp.org>
59687
59688         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
59689         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
59690         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
59691         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
59692         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
59693         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
59694         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
59695         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
59696         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
59697         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
59698         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
59699         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
59700         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
59701         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
59702         Use an all-permissive copyright notice, recommended by RMS.
59703
59704 2005-01-18  Bob Proulx  <bob@proulx.com>
59705
59706         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
59707         simplify offsetof() macro construct to avoid compile failure with
59708         native HP-UX 11.0 ANSI C compiler.
59709
59710 2005-01-17  Bruno Haible  <bruno@clisp.org>
59711
59712         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
59713         redundant because stpncpy.m4 takes care of it.
59714
59715 2005-01-17  Bruno Haible  <bruno@clisp.org>
59716
59717         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
59718
59719 2005-01-17  Bruno Haible  <bruno@clisp.org>
59720
59721         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
59722         used.
59723
59724 2005-01-17  Bruno Haible  <bruno@clisp.org>
59725
59726         * lib/fwriteerror.h (fwriteerror): Change specification to include
59727         fclose.
59728         * lib/fwriteerror.c: Include <stdbool.h>.
59729         (fwriteerror): At the end, close the file stream. Record whether
59730         stdout was already closed.
59731
59732 2005-01-17  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/execute.c (environ): Declare if needed.
59735         * lib/pipe.c (environ): Likewise.
59736         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
59737
59738 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59739
59740         * modules/argp: Depend on vsnprintf
59741
59742 2005-01-10  Jim Meyering  <jim@meyering.net>
59743
59744         * modules/closeout (Depends-on): Add atexit.
59745
59746 2005-01-06  Bruno Haible  <bruno@clisp.org>
59747
59748         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
59749
59750 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59751
59752         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
59753         definitions to be after all include files, to avoid collisions.
59754         Problem reported by Bob Proulx.
59755
59756 2005-01-04  Jim Meyering  <jim@meyering.net>
59757
59758         Changes imported from coreutils.
59759         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
59760         as the mkstemp template, use a temporary directory and an
59761         8.3-friendly template to avoid trouble on systems like DJGPP.
59762         Reported by Juan M. Guerrero via Stepan Kasal.
59763         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
59764         close. Remove the temporary directory right away, rather than waiting
59765         for configure's at-exit trap code to do it.
59766         Suggestion from Stepan Kasal.
59767
59768 2005-01-01  Simon Josefsson  <jas@extundo.com>
59769
59770         * gnulib-tool: Print #include directives when --import'ing.
59771
59772 2004-12-28  Simon Josefsson  <jas@extundo.com>
59773
59774         * tests/test-base64.c: Include required header files.  Remove
59775         unused variables.
59776
59777 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59778
59779         * modules/error (Depends-on): Remove gettext.
59780
59781 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59782
59783         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
59784         not needed.  This removes a dependency on the gettext module.
59785         [defined _LIBC]: Do not include <libintl.h>; not needed.
59786
59787 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59788
59789         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
59790         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
59791
59792 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59793
59794         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
59795         HAVE_DECL_STRTOLD.
59796
59797 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59798
59799         * modules/getdate (Depends-on): Remove alloca-opt.
59800
59801 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
59804
59805 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59806
59807         * lib/argp-parse.c: Include <stddef.h>.
59808         (alignof, alignto): New macros.
59809         (parser_init): Don't assume that void * is aligned sufficiently
59810         for struct option.
59811
59812         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
59813         need to extend the stack.
59814         (YYINITDEPTH): New macro, so that the initial stack isn't overly
59815         large.
59816
59817 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59818
59819         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
59820
59821 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59822
59823         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
59824         (2004-10-24) change.  Apparently this was a false alarm.
59825
59826         * modules/getdate: Depend on alloca-opt, not alloca.
59827
59828 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59829
59830         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
59831         Remove now-obsolete comment about AIX.
59832         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
59833         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
59834         (YYMAXDEPTH): New macro.
59835
59836 2004-12-18  Simon Josefsson  <jas@extundo.com>
59837
59838         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
59839
59840 2004-12-18  Bruno Haible  <bruno@clisp.org>
59841
59842         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
59843
59844 2004-12-18  Bruno Haible  <bruno@clisp.org>
59845
59846         * lib/fatal-signal.c (fatal_signals): Make non-const.
59847         (init_fatal_signals): New function.
59848         (uninstall_handlers, install_handlers): Ignore signals that were set to
59849         SIG_IGN.
59850         (at_fatal_signal): Call init_fatal_signals.
59851         (init_fatal_signal_set): Likewise. Ignore signals that were set to
59852         SIG_IGN.
59853         Reported by Paul Eggert.
59854
59855 2004-12-18  Bruno Haible  <bruno@clisp.org>
59856
59857         * doc/alloca.texi: New file.
59858         * doc/alloca-opt.texi: New file.
59859
59860 2004-12-17  Jim Meyering  <jim@meyering.net>
59861
59862         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
59863         Otherwise, install-sh could exit with improper exit status when
59864         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
59865
59866 2004-12-16  Simon Josefsson  <jas@extundo.com>
59867
59868         * tests/test-base64.c: Add license.
59869
59870 2004-12-15  Stepan Kasal  <address@hidden>
59871
59872         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
59873
59874 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
59875
59876         * modules/getcwd (Files): Add m4/d-ino.m4.
59877         Suggested by Mark D. Baushke.
59878
59879 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
59880
59881         * lib/getdate.y (textint): New member "negative".
59882         (time_zone_hhmm): New function.
59883         Expect 14 shift-reduce conflicts, not 13.
59884         (o_colon_minutes): New rule.
59885         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
59886         (yylex): Set the "negative" member of signed numbers.
59887
59888 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
59889
59890         * doc/getdate.texi (Time of day items, Time zone items):
59891         Describe new formats +00:00, UTC+00:00.
59892
59893 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59894
59895         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
59896         spurious "-l"s.  Problem reported by Stepan Kasal.
59897
59898 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
59899
59900         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
59901         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
59902
59903 2004-12-04  Simon Josefsson  <jas@extundo.com>
59904
59905         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
59906         Vandoorselaere <yoann@prelude-ids.org>.
59907
59908 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59909
59910         Changes imported from coreutils.
59911         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
59912         exist.
59913         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
59914
59915 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59916
59917         Changes imported from coreutils.
59918         * lib/hard-locale.c: Assume <locale.h> exists.
59919         Include "strdup.h".
59920         (GLIBC_VERSION): New macro.
59921         (hard_locale): Assume setlocale exists.
59922         Rewrite to avoid #ifdef.
59923         Use strdup rather than malloc + strcpy.
59924         * lib/human.c: Assume <locale.h> exists.
59925         (human_readable): Assume localeconv exists.
59926
59927 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59928
59929         * modules/hard-locale (Depends-on): Add strdup.
59930
59931 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59932
59933         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
59934         convert T2, not T.  (Imported from libc.)
59935
59936 2004-11-30  Simon Josefsson  <jas@extundo.com>
59937
59938         * modules/restrict (License): Change to LGPL.
59939
59940 2004-11-30  Simon Josefsson  <jas@extundo.com>
59941
59942         * m4/restrict.m4: Add copyright and copying conditions.
59943
59944 2004-11-30  Simon Josefsson  <jas@extundo.com>
59945
59946         * m4/base64.m4: New file.
59947
59948 2004-11-30  Simon Josefsson  <jas@extundo.com>
59949
59950         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
59951         base64.
59952
59953         * tests/test-base64.c: New file.
59954
59955         * modules/base64: New file.
59956
59957 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
59958
59959         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
59960         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
59961
59962         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
59963
59964 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
59965
59966         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
59967         (__getcwd.c): Don't restore errno; glibc doesn't.
59968         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
59969         first, falling back to our code only if its results look suspicious.
59970         Ensure that the resulting buffer is only as large as necessary.
59971
59972         * lib/readutmp.c: Include readutmp.h first.
59973         Include <errno.h>, since readutmp.h no longer does that.
59974         * lib/readutmp.h: Don't include <errno.h>,
59975         <sys/param.h>, <time.h>; not needed to establish interface.
59976         (errno): Remove decl.
59977         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
59978         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
59979         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
59980
59981 2004-11-28  Simon Josefsson  <jas@extundo.com>
59982
59983         * lib/base64.h, base64.c: New file.
59984
59985 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59986
59987         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
59988
59989 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59990
59991         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
59992         (Depends-on): Remove pathmax, same.  Add mempcpy.
59993         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
59994         (Makefile.am): Append getcwd.h to lib_SOURCES.
59995         (Include): Add getcwd.h.
59996         (Maintainer): Change from Jim Meyering to "all, glibc",
59997         since getdate now uses intended-for-glibc code.
59998         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
59999         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60000
60001 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60002
60003         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60004         HP's ANSI C compiler.
60005         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60006         Declaring int functions causes warnings on some modern systems and
60007         shouldn't be needed to compile on ancient ones.
60008         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60009         defined.
60010
60011         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60012         with the following changes.
60013         (__set_errno): Parenthesize properly.
60014         Include <stdbool.h>.
60015         (MIN, MAX, MATCHING_INO): New macros.
60016         (__getcwd): Define with prototype, not K&R form.
60017         Use heuristics to allocate default buffer on stack if possible.
60018         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60019         behavior, and to avoid the PATH_MAX limit when computing
60020         ../../../../...
60021         Use MATCHING_INO to compare inode number to file.
60022         Check for arithmetic overflow in size calculations.
60023         Fix bug in reallocation of dot array that caused getcwd to fail
60024         on directories nested deeper than 75.
60025         Be more careful about saving errno on error.
60026         Do not use realloc; use only free+malloc, as this is a bit
60027         more flexible and avoids a needless copy operation.
60028         Do not inspect st_dev and st_ino for symbolic links; POSIX
60029         doesn't specify the latter.
60030         Check for closedir errors.
60031         Avoid needless casts.
60032         Use "#ifdef weak_alias" around weak_alias, to be like other
60033         glibc code.
60034         The following changes to getcwd.c have effect only when used in
60035         gnulib; they have no effect inside glibc proper.
60036         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60037         as alloca isn't used.
60038         (alloca, __alloca): Likewise.
60039         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60040         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60041         unconditionally, as gnulib assumes C89 or better.
60042         Do not include <sys/param.h>.
60043         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60044         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60045         better.
60046         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60047         Include <dirent.h> in a way that is compatible with modern Autoconf.
60048         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60049         New macros, if not already defined.
60050         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60051         Use "_LIBC", not "defined _LIBC", for consistency.
60052         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60053         a mempcpy module.
60054         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60055         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60056         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60057         credit only to Jim Meyering and adjust the copyright dates.
60058         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60059         <stdlib.h>, <unistd.h>, "pathmax.h".
60060         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60061         (INITIAL_BUFFER_SIZE): Remove.
60062         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60063
60064 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60065
60066         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60067         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60068         Use the _ONCE methods, for efficiency.
60069         Check for fcntl.h.  In test program, include <errno.h>
60070         and <fcntl.h> if available.  Remove old K&R cruft from
60071         test program.  Check for common errors in GNU/Linux,
60072         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60073         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60074         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60075         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60076         name accordingly.
60077         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60078         accommodate new getcwd.c.
60079         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60080         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60081         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60082         that's all we need now.
60083
60084 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60085
60086         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60087         argp-parse.c depends on getopt internals, that means we should
60088         always use our getopt, to be on the safe side.
60089         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60090         order not to spoil the result of an eventual previous invocation
60091         of gl_GETOPT_SUBSTITUTE.
60092
60093 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60094
60095         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60096         redefinition warnings. To avoid them, include the defines
60097         in `#if !defined __need_getopt ... #endif'. The only place
60098         where __getopt_argv_const is used is in definitions
60099         of getopt_long and getopt_long_only below, which are as well
60100         protected by `#ifndef __need_getopt'.
60101         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60102         __need_getopt after including <stdio.h> and <unistd.h> These
60103         headers might have defined it.
60104
60105 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60106
60107         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60108
60109 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60110
60111         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60112         (futimens): New function, which uses futimes if available.
60113         (futimens, utimens): Support timespec==NULL, with same semantics
60114         as utime and utimens.
60115         * lib/utimens.h (futimens): New decl.
60116
60117 2004-11-23  Jim Meyering  <jim@meyering.net>
60118
60119         * lib/getopt_.h: Remove trailing blanks.
60120
60121 2004-11-23  Jim Meyering  <jim@meyering.net>
60122
60123         * lib/__fpending.c: Add comment.
60124
60125 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60126
60127         * modules/canonicalize (Depends-on): Add xreadlink.
60128         Problem reported by James Youngman.
60129
60130 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60131
60132         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60133         New macros.
60134         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60135         optopt): Use them instead of invoking ## directly; otherwise, the
60136         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60137
60138 2004-11-19  Bruno Haible  <bruno@clisp.org>
60139
60140         * lib/strtok_r.c: Move comments from here...
60141         * lib/strtok_r.h: ... to here.
60142
60143 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60144
60145         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60146         implementations that mishandle size_t overflow.
60147
60148 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60149
60150         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60151         might fail.  Problem reported by Yoann Vandoorselaere.
60152         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60153         implementations that mishandle size_t overflow.
60154
60155 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * modules/canon-host (Depends-on): Add strdup.
60158
60159 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60160
60161         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60162
60163 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60164
60165         * lib/canon-host.c: Include "strdup.h".
60166         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60167         Use strdup instead of malloc/strcpy to duplicate strings.
60168
60169         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60170         (human_space_before_unit): New constant.
60171         * lib/human.c (human_readable): Support it.
60172
60173         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60174         (xgetcwd): Set errno correctly when failing.
60175         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60176         the failure is actually due to a PATH_MAX problem.
60177
60178         Further getopt changes to make it more likely that glibc will
60179         buy the changes back.
60180         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60181         (getopt): Use it, so to preserve glibc semantic
60182         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60183         when compiling for libc.
60184         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60185         (getopt_long, getopt_long_only): Use it.
60186
60187         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60188         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60189         (getopt): Argv is now char * const *, as per standard.
60190         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60191         not char *__getopt_argv_const *.
60192         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60193         _getopt_long_only_r): Likewise.
60194         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60195         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60196         _getopt_long_r, _getopt_long_only_r): Likewise.
60197         * lib/getopt_.h (__getopt_argv_const): Remove.
60198         (getopt): Argv is now char * const *, as per standard.
60199
60200         * lib/getdate.y (tORDINAL): New token.
60201         (day, relunit): Allow it for relative times.
60202         (relative_time_table): Use tORDINAL for ordinals.
60203
60204 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60205
60206         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60207         Document that "second" isn't allowed as an ordinal number.
60208
60209 2004-11-16  Jim Meyering  <jim@meyering.net>
60210
60211         * modules/closeout (Depends-on): Add fpending.
60212
60213 2004-11-15  Jim Meyering  <jim@meyering.net>
60214
60215         * lib/closeout.c: Include "__fpending.h" once again.
60216         Include <stdbool.h>.
60217         (close_stdout): Don't fail just because stdout was closed initially,
60218         since some programs don't write to stdout in the normal course of
60219         operation (other than --version and --help), and we don't want this
60220         function to make e.g. `touch file >&-' fail.
60221         But do fail if it was closed and someone has tried to write to it.
60222         E.g., `printf foo >&-' must fail.
60223
60224 2004-11-13  Jim Meyering  <jim@meyering.net>
60225
60226         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
60227
60228 2004-11-12  Simon Josefsson  <jas@extundo.com>
60229
60230         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
60231         small doc fix is still pending.
60232
60233 2004-11-11  Simon Josefsson  <jas@extundo.com>
60234
60235         * modules/strtok_r: New file.
60236
60237         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60238         strtok_r.
60239
60240 2004-11-11  Simon Josefsson  <jas@extundo.com>
60241
60242         * m4/strtok_r.m4: New file.
60243
60244         * m4/getopt.m4: Replace opterr.
60245
60246 2004-11-11  Simon Josefsson  <jas@extundo.com>
60247
60248         * lib/strtok_r.h, strtok_r.c: New file.
60249
60250 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60251
60252         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
60253         of replacing opterr, getopt, etc.  This should handle the
60254         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
60255
60256 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60257
60258         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
60259         we can stop lying to compilers about the constness of argv when we
60260         are compiled outside glibc.
60261         (getopt, getopt_long, getopt_long_only): Use it.
60262         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60263         _getopt_internal, getopt): Likewise.
60264         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60265         _getopt_long_only_r): Likewise.
60266         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60267         _getopt_long_r, _getopt_long_only_r): Likewise.
60268
60269         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60270         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60271         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60272         the other external symbols.
60273         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60274         declaration, since the above renaming now works around collisions.
60275
60276 2004-11-11  Jim Meyering  <jim@meyering.net>
60277
60278         * lib/linebreak.c: Remove trailing blanks.
60279         * lib/alloca_.h: Likewise.
60280         * lib/acosl.c: Likewise.
60281         * lib/euidaccess.c: Likewise.
60282         * lib/allocsa.h: Likewise.
60283
60284 2004-11-10  Simon Josefsson  <jas@extundo.com>
60285
60286         * m4/getaddrinfo.m4: New file.
60287
60288 2004-11-10  Simon Josefsson  <jas@extundo.com>
60289
60290         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60291
60292 2004-11-10  Simon Josefsson  <jas@extundo.com>
60293
60294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60295         getaddrinfo.
60296
60297         * modules/getaddrinfo: New file.
60298
60299 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60302
60303 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60304
60305         * lib/mktime.c (SHR): New macro, which is a portable
60306         substitute for >> that should work even on Crays.
60307         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60308         Problem reported by Mark D. Baushke in
60309         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60310         * lib/getdate.y (SHR): Likewise.
60311         (tm_diff): Use it.
60312         * lib/strftime.c (SHR): Likewise.
60313         (tm_diff): Use it.
60314         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60315         quote_these_too, so that right shifts are well defined.  All uses
60316         changed.
60317
60318 2004-11-10  Jim Meyering  <jim@meyering.net>
60319
60320         Ensure that no close failure goes unreported.
60321         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60322         return early when it seems there's nothing to flush.
60323         Don't include __fpending.h.
60324
60325 2004-11-10  Jim Meyering  <jim@meyering.net>
60326
60327         * modules/closeout (Depends-on): Remove fpending.
60328
60329 2004-11-10  Jim Meyering  <jim@meyering.net>
60330
60331         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60332
60333 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60334
60335         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60336         gl_FUNC_STRFTIME.
60337         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60338         and AC_REQUIRE when possible, to avoid duplicate checks.
60339         Check for <wchar.h>.
60340
60341 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60342
60343         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60344
60345 2004-11-09  Bruno Haible  <bruno@clisp.org>
60346
60347         * m4/sockpfaf.m4: New file.
60348
60349 2004-11-05  Bruno Haible  <bruno@clisp.org>
60350
60351         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60352         Reported by Mark D. Baushke <mdb@cvshome.org>.
60353
60354 2004-11-04  Bruno Haible  <bruno@clisp.org>
60355
60356         2004-09-11  Bruno Haible  <bruno@clisp.org>
60357                 * allocsa.valgrind: New file.
60358         2004-02-06  Bruno Haible  <bruno@clisp.org>
60359                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60360                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60361                 Reported by Christopher Seip <chris.seip@hp.com>.
60362
60363 2004-11-04  Bruno Haible  <bruno@clisp.org>
60364
60365         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60366         (Makefile.am): Distribute it.
60367
60368 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60369
60370         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60371         with errno == ERANGE if the buffer is too small.
60372         Problem reported by Mark D. Baushke.
60373
60374 2004-11-03  Albert Chin  <china@thewrittenword.com>
60375             Paul Eggert  <eggert@cs.ucla.edu>
60376
60377         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60378         equivalent, substitute $ac_type for equivalent type rather than
60379         blindly using uint32_t *always* which won't work if uint32_t is not
60380         available.  Define _UINT32_T to work around typedef of uint32_t if
60381         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60382         2.5.1.
60383
60384 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60385
60386         * m4/jm-macros.m4: Sync from coreutils.
60387         (gl_MACROS): Check for mbrlen, for pathchk.
60388         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60389
60390 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * lib/xreadlink.c (MAXSIZE): New macro.
60393         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
60394         size does not exceed MAXSIZE.  Avoid cast.
60395         As suggested by Mark D. Baushke in
60396         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
60397         if readlink fails with buffer size just under MAXSIZE, try again
60398         with MAXSIZE.
60399
60400 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60401
60402         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
60403
60404 2004-11-02  Derek R. Price  <derek@ximbiot.com>
60405         and  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
60408         (get_date): Overparenthesize to avoid GCC warning.
60409
60410 2004-11-02  Bruno Haible  <bruno@clisp.org>
60411
60412         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
60413         returns void.
60414
60415 2004-11-02  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
60418         function returns void.
60419
60420 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60421
60422         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
60423         fflush_unlocked, flockfile, funlockfile, funlockfile,
60424         fputs_unlocked, putc_unlocked.
60425
60426 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60427
60428         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60429         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
60430         already declared.
60431
60432 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60433
60434         * modules/getdate (Files): Add doc/getdate.texi.
60435         (Depends-on): Add setenv, xalloc.
60436
60437 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60438
60439         * lib/getdate.y: Add support for TZ="foo" within a date string.
60440         Fix some bugs near time_t boundaries.  Reject dates with
60441         out-of-range components, e.g., "Sept 31".
60442         Include <stdlib.h>, "setenv.h", "xalloc.h".
60443         (ISDIGIT_LOCALE): Remove; unused.
60444         Note that the TZ and time functions used here are not reentrant.
60445         (mktime_ok, get_tz): New functions.
60446         (TZBUFSIZE): New constant.
60447         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
60448         This requires that we sometimes generate our own TZ="XXX..." setting.
60449
60450 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60451
60452         * doc/getdate.texi: New file, from coreutils with modifications for
60453         the new TZ parsing.
60454
60455 2004-10-27  Derek R. Price  <derek@ximbiot.com>
60456
60457         * lib/mktime.c (not_equal_tm): Remove redundant check.
60458
60459 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60460
60461         * modules/regex (lib_SOURCES): Add regex.c.
60462         Reported by James Youngman in
60463         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
60464
60465 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60466
60467         * lib/getdate.y: Use Bison 1.875 features, and some minor
60468         code cleanups.  This change does not affect semantics.
60469         Don't include <stdlib.h>; no longer needed.
60470         Don't include unlocked-io.h; only the "#if TEST" code uses
60471         stdio, and performance isn't crucial there.
60472         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
60473         Bison 1.875 features as described below.
60474         All uses of "PC." replaced by "pc->".
60475         (YYSTYPE): Add a forward declaration.
60476         (yylex, yyerror): Use full prototypes in forward decls.
60477         Use "%pure-parser" rather than obsolescent "%pure_parser".
60478         Use %parse-param and %lex-param instead of obsolescent
60479         YYPARSE_PARAM and YYLEX_PARAM.
60480         (meridian_table, month_and_day_table, time_units_table,
60481         relative_time_table, time_zone_table, military_table,
60482         lookup_zone, lookup_word, get_date):
60483         Use NULL instead of 0 where appropriate.
60484         (to_hour): Avoid abort (), to avoid a dependency on
60485         stdlib.h.
60486         (yyerror, yylex): Now accepts parser_control * arg.
60487         (main) [TEST]: Use '\0' rather than 0 for char.
60488
60489 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60490
60491         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
60492
60493 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60494
60495         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
60496         It's now the caller's responsibility to handle the case where
60497         !HAVE_GETPAGESIZE && !defined getpagesize.
60498
60499         * lib/mktime.c (leapyear): Arg is long int, not int.
60500
60501 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
60502
60503         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
60504
60505 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60506
60507         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
60508         missing.  Problem reported by James Youngman.
60509
60510 2004-10-16  Simon Josefsson  <jas@extundo.com>
60511
60512         * gnulib-tool: Fix comments.  Fix parse problem.
60513         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
60514
60515 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
60516
60517         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
60518         implementation of getopt_long.  Problem reported by Alexander Taler in:
60519         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
60520
60521 2004-10-15  Bruno Haible  <bruno@clisp.org>
60522
60523         * gnulib-tool: Untabify. Initialize supplied_libname.
60524         (func_usage): More homogenous output.
60525         (func_modules_transitive_closure, func_modules_to_filelist,
60526         func_emit_lib_Makefile_am): New functions.
60527         (func_import): New function, extracted from big case statement. Use
60528         func_get_license, func_modules_transitive_closure,
60529         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
60530         opt_lgpl. Don't use test -a, as it's not portable.
60531         (func_create_testdir): Use func_modules_transitive_closure,
60532         func_modules_to_filelist, func_emit_lib_Makefile_am.
60533
60534 2004-10-15  Bruno Haible  <bruno@clisp.org>
60535
60536         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
60537
60538 2004-10-15  Bruno Haible  <bruno@clisp.org>
60539
60540         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
60541         the portions belonging to each module.
60542         Suggested by Derek Robert Price <derek@ximbiot.com>.
60543
60544 2004-10-12  Simon Josefsson  <jas@extundo.com>
60545
60546         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60547         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
60548         to real functions.
60549
60550 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60551
60552         * modules/vsnprintf: New file.
60553
60554 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60555
60556         * m4/vsnprintf.m4: New file.
60557
60558 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60559
60560         * lib/vsnprintf.h: New file.
60561         * lib/vsnprintf.c: New file.
60562
60563 2004-10-11  Bruno Haible  <bruno@clisp.org>
60564
60565         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
60566         vsnprintf.
60567
60568 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60569
60570         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
60571
60572 2004-10-07  Bruno Haible  <bruno@clisp.org>
60573
60574         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
60575         fits into the provided buffer.
60576
60577 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60578
60579         * lib/diacrit.c, diacrit.h: Add GPL notice.
60580
60581         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
60582         notice.
60583         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
60584         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
60585         This avoids a potential constant-folding bug.
60586
60587 2004-10-05  Bruno Haible  <bruno@clisp.org>
60588
60589         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
60590         for the declaration of strsep.
60591
60592 2004-10-05  Bruno Haible  <bruno@clisp.org>
60593
60594         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
60595
60596 2004-10-04  Simon Josefsson  <jas@extundo.com>
60597
60598         * modules/memmem: New file.
60599         * tests/test-memmem.c: New file.
60600         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
60601
60602 2004-10-04  Simon Josefsson  <jas@extundo.com>
60603
60604         * m4/memmem.m4: New file.
60605
60606 2004-10-04  Simon Josefsson  <jas@extundo.com>
60607
60608         * lib/memmem.h: New file.
60609         * lib/memmem.c: New file, taken from glibc.
60610
60611 2004-10-04  Simon Josefsson  <jas@extundo.com>
60612
60613         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
60614         '#ifdef USE_UNLOCKED_IO'.
60615
60616 2004-10-04  Simon Josefsson  <jas@extundo.com>
60617
60618         * config/srclist.txt: Add memmem from glibc.
60619
60620 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60621
60622         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
60623
60624         * modules/argmatch, modules/argp, modules/closeout, modules/error,
60625         modules/exclude, modules/getdate, modules/getline,
60626         modules/getndelim2, modules/getpass, modules/getpass-gnu,
60627         modules/getusershell, modules/linebuffer, modules/md5,
60628         modules/mountlist, modules/posixtm, modules/readtokens,
60629         modules/readutmp, modules/regex, modules/sha1,
60630         modules/version-etc, modules/yesno:
60631         Remove dependency on unlocked-io.
60632
60633 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60634
60635         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
60636
60637         * m4/unlocked-io.m4: Add copyright notice.
60638         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
60639
60640 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60641
60642         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
60643         * lib/xmalloc.c (xmemdup): Likewise.
60644         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
60645         XFREE): Remove these long-obsolescent macros.
60646         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
60647         * lib/xstrdup.c: Remove.
60648
60649         * lib/regex.c (re_comp): Cast gettext return value to char *,
60650         Problem reported by Martin Neitzel via Mark D. Baushke.
60651
60652 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60653
60654         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
60655         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
60656         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
60657         regex.c, sha1.c, version-etc.c, yesno.c:
60658         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
60659         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
60660         the includer's responsibility.
60661
60662         Sync from coreutils.
60663
60664         * lib/modechange.c (mode_compile): Don't decrement a pointer that
60665         points to the start of a string, as the C Standard says the
60666         resulting behavior is undefined.
60667
60668         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
60669         simple -> simple_backups, numbered_existing ->
60670         numbered_existing_backups, numbered -> numbered_backups
60671         to avoid shadowing problems.  All uses changed.
60672         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
60673         * lib/backupfile.c (check_extension, numbered_backup):
60674         Rename locals to avoid shadowing 'basename'.
60675         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
60676         once.
60677
60678         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
60679         * lib/.cvsignore: Add getopt.h.
60680
60681 2004-10-04  Bruno Haible  <bruno@clisp.org>
60682
60683         * modules/README: New file.
60684         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
60685         not a module.
60686
60687 2004-10-02  Jim Meyering  <jim@meyering.net>
60688
60689         * lib/dirfd.h, getpagesize.h: Add copyright notice.
60690
60691 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60692
60693         * modules/strsep: New file.
60694
60695 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60696
60697         * m4/strsep.m4: New file.
60698
60699 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60700
60701         * lib/strsep.h: New file.
60702         * lib/strsep.c: New file.
60703
60704 2004-10-01  Simon Josefsson  <jas@extundo.com>
60705
60706         * lib/snprintf.c (snprintf): Handle size==0.
60707
60708 2004-10-01  Simon Josefsson  <jas@extundo.com>
60709             Bruno Haible  <bruno@clisp.org>
60710
60711         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
60712         (snprintf): Declare 'args'.
60713
60714 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
60715
60716         * lib/snprintf.c: Remove comments as to why each header is needed.
60717
60718 2004-10-01  Bruno Haible  <bruno@clisp.org>
60719
60720         * MODULES.html.sh: Add strsep.
60721
60722 2004-09-30  Simon Josefsson  <jas@extundo.com>
60723
60724         * modules/snprintf: New file.
60725
60726 2004-09-30  Simon Josefsson  <jas@extundo.com>
60727
60728         * m4/snprintf.m4: New file.
60729
60730 2004-09-30  Simon Josefsson  <jas@extundo.com>
60731
60732         * lib/snprintf.h, lib/snprintf.c: New files.
60733
60734 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60735
60736         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
60737         (hol_entry_help): Never translate an empty string.
60738         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
60739         * lib/argp.h (OPTION_NO_TRANS): New option.
60740
60741 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60742
60743         * modules/argp (Maintainer): Replace Simon Josefsson
60744         by Sergey Poznyakoff.
60745
60746 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60747
60748         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
60749         changes merged back into glibc.
60750
60751 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60752
60753         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
60754
60755 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60756
60757         * lib/xvasprintf.c: Include xalloc.h.
60758         (xvasprintf): Use xalloc_die, not xmalloc_die.
60759
60760 2004-09-29  Bruno Haible  <bruno@clisp.org>
60761
60762         * modules/alloca-opt: New file, derived from modules/alloca.
60763         * modules/allocsa: Depend on alloca-opt instead of alloca.
60764         * modules/setenv: Likewise.
60765         * modules/vasnprintf: Likewise.
60766         * MODULES.html.sh: Add alloca-opt.
60767
60768 2004-09-28  Simon Josefsson  <jas@extundo.com>
60769
60770         * gnulib-tool: New parameter --lgpl, to asseert that modules are
60771         LGPL, and to replace license template from GPL to LGPL.
60772
60773 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60774
60775         * modules/dummy: Change license to LGPL.
60776
60777 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60778
60779         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
60780
60781 2004-09-24  Simon Josefsson  <jas@extundo.com>
60782
60783         * modules/minmax (License): Change from GPL to LGPL.
60784
60785 2004-09-23  Simon Josefsson  <jas@extundo.com>
60786
60787         * gnulib-tool (--import): Typo.
60788
60789 2004-09-23  Simon Josefsson  <jas@extundo.com>
60790
60791         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
60792
60793 2004-09-22  Bruno Haible  <bruno@clisp.org>
60794
60795         * modules/*: Add 'License' field.
60796         * gnulib-tool: Accept --extract-license option.
60797         (func_get_license): New function.
60798
60799 2004-09-21  Bruno Haible  <bruno@clisp.org>
60800
60801         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
60802         Reported by Simon Josefsson.
60803
60804 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60805
60806         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
60807         gl_AC_TYPE_LONG_LONG.
60808
60809 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60810
60811         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
60812
60813 2004-09-18  Simon Josefsson  <jas@extundo.com>
60814         and  Paul Eggert  <eggert@cs.ucla.edu>
60815
60816         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
60817         calls with autoreconf.  Define GL_LIB.
60818
60819 2004-09-14  Karl Berry  <karl@gnu.org>
60820
60821         * config/srclist.txt: unsync setenv.c, sigh.
60822
60823 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60824
60825         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
60826         Problem reported by Bruno Haible in:
60827         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
60828
60829 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60830
60831         * config/srclist.txt: Comment out argp-pvh.c.
60832
60833 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
60834
60835         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
60836         in case some system header has #define'd it.  Problem reported by
60837         Soeren D. Schulze in
60838         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
60839
60840 2004-09-09  Karl Berry  <karl@gnu.org>
60841
60842         * regex.[ch]: delete from the root.  These were supposed to be
60843                 synced with emacs cvs, but this has not happened for about
60844                 a year, and anyway nothing else uses emacs regex.[ch].
60845                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
60846                 lib/regex[.ch] is untouched.
60847
60848 2004-09-09  Bruno Haible  <bruno@clisp.org>
60849
60850         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
60851
60852 2004-09-09  Bruno Haible  <bruno@clisp.org>
60853
60854         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
60855         modifications.
60856         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
60857
60858 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60859
60860         * modules/xvasprintf: New file.
60861         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
60862
60863 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60864
60865         * lib/xvasprintf.h: New file.
60866         * lib/xvasprintf.c: New file.
60867         * lib/xasprintf.c: New file.
60868
60869 2004-09-08  Bruno Haible  <bruno@clisp.org>
60870
60871         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
60872
60873 2004-09-08  Bruno Haible  <bruno@clisp.org>
60874
60875         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
60876         length is > INT_MAX.
60877         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
60878         more.
60879
60880 2004-09-08  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/stdint_.h: New file, taken from GNU clisp.
60883
60884 2004-09-08  Bruno Haible  <bruno@clisp.org>
60885             Oskar Liljeblad  <oskar@osk.mine.nu>
60886
60887         * modules/stdint: New file.
60888         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
60889
60890 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60891
60892         Import from coreutils.
60893         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
60894         strings on unbounded length.  alloca's performance benefits aren't
60895         that important here.
60896         (V_STRDUP): Remove.
60897         (parse_with_separator): New function, with most of the internals
60898         of the old parse_user_spec.  Allow user to omit both user and group,
60899         for compatibility with FreeBSD.
60900         Clone only the user name, not the entire spec.
60901         Do not set *uid, *gid unless entirely successful.
60902         Avoid memory leak in some failing cases.
60903         Fix regression for USER.GROUP reported by Dmitry V. Levin in
60904         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
60905         (parse_user_spec): Rewrite to use parse_with_separator.
60906
60907 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60908
60909         * modules/userspec: Don't depend on alloca.
60910
60911 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60912
60913         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
60914
60915 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60916
60917         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
60918         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
60919         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
60920
60921 2004-08-16  Simon Josefsson  <jas@extundo.com>
60922
60923         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
60924         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
60925         Add --dry-run for --import.
60926         Let user provided command line parameters override configure.ac
60927         settings.
60928
60929 2004-08-12  Simon Josefsson  <jas@extundo.com>
60930
60931         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
60932         as discussed with Paul Eggert in threads rooted at
60933         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
60934         and
60935         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
60936         Before, the test was empty, and relied on ELIDE_CODE in source
60937         code.)
60938         (gl_PREREQ_GETOPT): New macro.
60939         (gl_GETOPT): Use them.
60940
60941 2004-08-12  Simon Josefsson  <jas@extundo.com>
60942
60943         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
60944         * lib/getopt_.h: Renamed from getopt.h.
60945
60946 2004-08-12  Simon Josefsson  <jas@extundo.com>
60947
60948         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
60949         Change default library name from libfoo to libgnu.
60950         Now, if you have a configure.ac that says:
60951                 gl_SOURCE_BASE(gl)
60952                 gl_M4_BASE(gl/m4)
60953                 gl_MODULES(error getopt etcetera)
60954                 gl_INIT
60955         you can import all you need by running:
60956                 ../gnulib/gnulib-tool --import
60957
60958         * modules/getopt (Files): Rename getopt.h to getopt_.h.
60959         (Makefile.am): Rewrite, use logic from argz.
60960         (Include): Use <getopt.h> instead of "getopt.h".
60961
60962 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60963
60964         * modules/argp (Files): Add m4/unlocked-io.m4.
60965         (Depends-on): Add extensions.
60966
60967 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60968
60969         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
60970         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
60971         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
60972         Check for program_invocation_name, program_invocation_short_name,
60973         flockfile, funlockfile, features.h, _getopt_long_only_r.
60974
60975 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
60978         its complicated substitute.
60979         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
60980         and program_invocation_name.
60981         (__argp_basename) [!_LIBC]: Remove; the only use was
60982         replaced by its body.
60983         (__argp_short_program_name): Change condition from
60984         !defined __argp_short_program_name to
60985         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
60986         to match argp-namefrob.h.
60987         (__argp_failure): Don't assume strerror_r returns char *.
60988         * lib/argp-parse.c (N_): Define unconditionally.
60989         (argp_default_options): Fill out initializers with 0 to avoid
60990         gcc warnings.
60991
60992 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
60995         getopt1.c.
60996
60997 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60998
60999         Merge from coreutils.
61000
61001         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61002
61003         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61004         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61005
61006 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61007
61008         Merge from coreutils.
61009
61010         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61011         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61012         for Reliant Unix 5.43.
61013
61014         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61015         (union fooround): Use uintmax_t, not long int.
61016         The rest is a merge from libc:
61017         [defined _LIBC]: Include <shlib-compat.h>.
61018         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61019
61020         * lib/settime.c (settime): Recode to avoid warning with
61021         Sun Forte C 6U2.
61022
61023         * lib/strverscmp.c: Convert to UTF-8.
61024
61025 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61026
61027         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61028         m4/uintmax_t.m4.
61029
61030 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61031
61032         * modules/xalloc-die: New file.
61033         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61034
61035         * modules/md5 (Files): Add m4/uint32_t.m4.
61036         * modules/sha1: Renamed from modules/sha.
61037         (Files):
61038         Rename lib/sha.h to lib/sha1.h.
61039         Rename lib/sha.c to lib/sha1.c.
61040         Rename m4/sha.m4 to m4/sha1.m4.
61041         (lib_SOURCES): Likewise.
61042         (configure.ac): Rename gl_SHA to gl_SHA1.
61043         (Include): sha.h -> sha1.h.
61044
61045 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61046
61047         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61048         * m4/sha1.m4: Renamed from sha.m4.
61049         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61050
61051 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61052
61053         * lib/obstack.h (obstack_empty_p):
61054         Don't assume that chunk->contents is suitably aligned.
61055         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61056         Likewise. Problem reported by Benno in
61057         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61058
61059         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61060         readable.  This could be improved further but it'd take some work.
61061
61062 2004-08-08  Simon Josefsson  <jas@extundo.com>
61063
61064         * modules/xgethostname (Depends-on): Remove exit and error (not
61065         used).
61066
61067         * modules/getpass-gnu: Add getpass.h.
61068         (Depends-on): Add stdbool.
61069         * modules/getpass: Add getpass.h.
61070
61071 2004-08-08  Simon Josefsson  <jas@extundo.com>
61072
61073         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61074         Check getpass declaration.
61075
61076 2004-08-08  Simon Josefsson  <jas@extundo.com>
61077
61078         * lib/xgethostname.c: Don't include error.h (not used).
61079
61080         * lib/getpass.h: Add.
61081         * lib/getpass.c: Include getpass.h first.
61082
61083 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61084
61085         * lib/xalloc-die.c: New file.
61086         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61087         All uses removed.
61088         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61089         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61090         xalloc-die.c.
61091         (_, N_, xalloc_die): Move to xalloc-die.c.
61092         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61093         so that we needn't mess with xalloc_msg_memory_exhausted.
61094
61095         * lib/sha1.h: Renamed from sha.h.
61096         (SHA1_H): Renamed from _SHA_H.
61097         (sha1_ctx): Renamed from sha_ctx.
61098         (sha1_init_ctx): Renamed from sha_init_ctx.
61099         (sha1_process_block): Renamed from sha_process_block.
61100         (sha1_process_bytes): Renamed from sha_process_bytes.
61101         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61102         (sha1_read_ctx): Renamed from sha_read_ctx.
61103         (sha1_stream): Renamed from sha_stream.
61104         (sha1_buffer): Renamed from sha_buffer.
61105         * lib/sha1.c: Likewise; renamed from sha.c.
61106         Do not include <sys/types.h>.
61107         Include <stddef.h> rather than <stdlib.h>.
61108
61109 2004-08-08  Bruno Haible  <bruno@clisp.org>
61110
61111         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61112         FILESYSTEM_PREFIX_LEN.
61113         * lib/progreloc.c: Likewise.
61114         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61115
61116 2004-08-06  Simon Josefsson  <jas@extundo.com>
61117
61118         * modules/progname (Depends-on): Don't depend on stdbool.
61119
61120 2004-08-06  Simon Josefsson  <jas@extundo.com>
61121
61122         * modules/getsubopt: New file.
61123         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61124         getsubopt.
61125
61126 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61127
61128         More merge from coreutils.
61129
61130         * m4/utimens.m4, m4/utimecmp.m4: New files.
61131         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61132         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61133         prereq.m4, sha.m4: Import changes from coreutils.
61134
61135 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61136
61137         More merge from coreutils.
61138         * modules/raise, modules/readtokens0, modules/utimens:
61139         * modules/utimecmp, module/xnanosleep: New files.
61140         * modules/strftime: Add lib/strftime.h.
61141         Change include from <time.h> to "strftime.h".
61142         * modules/yesno: Add lib/yesno.h.
61143         * modules/backupfile: Remove lib/addext.c.
61144         * modules/euidaccess: Add stat-macros.h.
61145         * modules/canonicalize, modules/euidaccess,
61146         modules/filemode, modules/lchown, modules/makepath,
61147         modules/rmdir, modules/stat: Likewise.
61148
61149 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61150
61151         Merge from tar.
61152         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61153         SIZE_MAX is a valid preprocessor constant.
61154         (__argp_basename): Change from "#ifndef _LIBC"
61155         to "#ifndef __argp_short_program_name", so that
61156         we don't compile these functions for tar.
61157
61158         More merges from coreutils.
61159         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61160         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61161         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61162         * lib/addext.c: Remove; no longer needed.
61163         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61164         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61165         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61166         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61167         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61168         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61169         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61170         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61171         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61172         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61173         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61174         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61175         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61176         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61177         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61178         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61179         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61180         Import changes from coreutils.
61181
61182 2004-08-05  Simon Josefsson  <jas@extundo.com>
61183
61184         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61185
61186 2004-08-05  Simon Josefsson  <jas@extundo.com>
61187
61188         * m4/getsubopt.m4: New file.
61189
61190 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61191
61192         Merge from coreutils.
61193
61194         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61195         * m4/getcwd-path-max.m4: New files.
61196
61197         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61198         FILESYSTEM_PREFIX_LEN ->
61199         FILE_SYSTEM_PREFIX_LEN.
61200         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61201         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61202         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61203         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61204
61205         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61206         prerequisite modules now handle the DOS stuff.
61207         Don't check for unistd.h.
61208
61209 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61210
61211         Merge from coreutils.
61212
61213         * lib/.gdb-history: Remove; this doesn't belong here.
61214
61215         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61216         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61217         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61218         * lib/getcwd.c: New files.
61219
61220         * lib/dirname.h: Include <stdbool.h>.
61221         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61222         for consistency with POSIX terminology.  All uses changed.
61223         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
61224         (strip_trailing_slashes): Use bool for booleans.
61225         * lib/stripslash.c (strip_trailing_slashes): Likewise.
61226
61227         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
61228         sometimes returns a positive errno value even when it succeeds.
61229         (print_errno_message) [!LIBC]: Fall back on strerror if
61230         __strerror_r fails.
61231
61232         * lib/path-concat.c (mempcpy): Don't define if a system header defines
61233         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
61234         (longest_relative_suffix): New function.
61235         (path_concat): Use it.  Assume first argument is not NULL.
61236         Port to DOS.  Omit redundant separators.
61237         Report an error instead of returning NULL.
61238         Use mempcpy instead of memcpy.
61239         (xpath_concat): Remove: not declared or used.
61240
61241         * lib/same.h: Include <stdbool.h>
61242         (same_name): Return bool, not int.
61243         * lib/same.c (same_name): Likewise.
61244         (errno): Don't declare; we assume C89 or better now.
61245
61246         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
61247         if not already defined.
61248
61249         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
61250         * lib/dup-safer.c (errno): Likewise.
61251
61252 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61253
61254         Merge from coreutils.
61255         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
61256         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
61257         * modules/path-concat: Don't depend on strdup.
61258
61259 2004-08-03  Simon Josefsson  <jas@extundo.com>
61260
61261         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
61262         * lib/progname.h: Don't include stdbool.h.
61263
61264 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61265
61266         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61267         * MODULES.html.sh (func_all_modules): Remove fatal.
61268
61269 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61270
61271         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61272
61273 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61274
61275         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61276         working.
61277
61278 2004-08-02  Simon Josefsson  <jas@extundo.com>
61279
61280         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61281         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61282         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61283
61284 2004-08-01  Simon Josefsson  <jas@extundo.com>
61285
61286         * lib/xgetdomainname.c: Include stdlib.h, for free().
61287
61288 2004-07-19  Bruno Haible  <bruno@clisp.org>
61289
61290         * MODULES.html.sh (func_all_modules): Add dummy.
61291
61292 2004-07-16  Simon Josefsson  <jas@extundo.com>
61293
61294         * modules/dummy: New file.
61295
61296 2004-07-16  Simon Josefsson  <jas@extundo.com>
61297
61298         * lib/dummy.c: New file.
61299
61300 2004-07-16  Bruno Haible  <bruno@clisp.org>
61301
61302         * lib/backupfile.h: Add extern "C" for C++.
61303         * lib/closeout.h: Likewise.
61304         * lib/copy-file.h: Likewise.
61305         * lib/findprog.h: Likewise.
61306         * lib/full-write.h: Likewise.
61307         * lib/pathname.h: Likewise.
61308         * lib/progname.h: Likewise.
61309         * lib/stpcpy.h: Likewise.
61310         * lib/stpncpy.h: Likewise.
61311         * lib/strcase.h: Likewise.
61312         * lib/strstr.h: Likewise.
61313         * lib/xalloc.h: Likewise.
61314
61315         * lib/mbswidth.h: Add extern "C" for C++.
61316         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61317
61318 2004-07-13  Robert Millan  <robertmh@gnu.org>
61319
61320         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61321
61322 2004-07-09  Simon Josefsson  <jas@extundo.com>
61323
61324         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61325         failed without this.)
61326
61327 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61328
61329         * modules/chown (Files): Add lib/fchown-stub.c, since
61330         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61331
61332 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61333
61334         * lib/fchown-stub.c: New file.
61335
61336 2004-06-24  Jim Meyering  <jim@meyering.net>
61337
61338         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61339
61340 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61341
61342         * modules/argz: Omit "#include".
61343
61344         * MODULES.html.sh (func_all_modules): Add calloc, to match
61345         2004-06-01 addition of calloc module.
61346
61347 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61348
61349         * m4/argz.m4: New file, which is autoupdated from libtool.
61350
61351 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61352
61353         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61354         libtool.
61355
61356 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61357
61358         * config/srclist-update: Don't insist on "USA." before the
61359         close-comment, as libtool omits the period and puts the */ on a
61360         separate line.
61361         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61362         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61363
61364 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61365
61366         * modules/argz: New file.
61367         * MODULES.html.sh (func_all_modules): Add argz.
61368
61369 2004-06-12  Jim Meyering  <jim@meyering.net>
61370         and  Paul Eggert  <eggert@cs.ucla.edu>
61371
61372         * modules/hash (Files): Add lib/xalloc.h.
61373         * modules/pipe (Depends-on): Add wait-process.
61374         * modules/stat (Depends-on): Add xalloc.
61375         * modules/userspec (Files): Add lib/userspec.h.
61376         * modules/xstrto
61377
61378         Upgrade from gettext-0.13.
61379         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61380         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61381         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61382
61383 2004-06-10  Jim Meyering  <jim@meyering.net>
61384
61385         * lib/calloc.c: New file.
61386
61387 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61388
61389         * lib/getdate.y (yylex): Allow space between sign and number.
61390         Problem reported by Dan Jacobson.
61391
61392 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61393
61394         Merge from coreutils CVS.
61395
61396         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
61397         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
61398         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
61399         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
61400         xstrtol.m4: Fix copyright date and/or serial number.
61401
61402         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
61403         See if we need an fchown replacement.
61404         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
61405         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
61406         and use the replacement function if we detect either defect.
61407
61408         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
61409         gl_UTIMECMP.
61410
61411 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61412         and  Jim Meyering  <jim@meyering.net>
61413
61414         Merge from coreutils CVS.
61415
61416         * lib/stat-macros.h: New file, with contents from file-type.h
61417         and coreutils' system.h.
61418         * lib/file-type.c: Include "stat-macros.h".
61419         * lib/file-type.h (file_type): Move all macro definitions to new file,
61420         stat-macros.h.
61421
61422         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
61423         Wrap old code with this conditional.
61424         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
61425         function that does not dereference symlinks.
61426         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
61427
61428         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
61429         dependency problems.
61430         (xreadlink): Accept new arg SIZE, for efficiency.
61431         All decls and uses changed.
61432         * lib/xreadlink.h: Include <stddef.h>, for size_t.
61433
61434         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
61435         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
61436
61437         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
61438         sysexits.h.
61439
61440 2004-06-01  Jim Meyering  <jim@meyering.net>
61441
61442         * m4/calloc.m4: New file.
61443
61444 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
61445
61446         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
61447         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
61448         Also, fix a typo in a diagnostic.
61449
61450 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61451
61452         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
61453         or AC_FUNC_REALLOC.
61454
61455 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61456
61457         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
61458         macros to be defined.
61459         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
61460         the allocator returns NULL because the requested size is zero.
61461
61462 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61463
61464         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
61465         var.  Add comment explaining why libc still defines it.  This
61466         merges the following patch from glibc:
61467         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
61468
61469 2004-05-20  Andreas Schwab  <schwab@suse.de>
61470
61471         * m4/free.m4: Replace free if it not known to work, not the other
61472         way round.
61473
61474 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61475
61476         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
61477         present in glibc since revision 1.1 of this file.
61478         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
61479         obstack_alignment_mask, obstack_alloc, obstack_base,
61480         obstack_blank, obstack_blank_fast, obstack_chunk_size,
61481         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
61482         obstack_grow0, obstack_init, obstack_int_grow,
61483         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
61484         obstack_next_free, obstack_object_size, obstack_ptr_grow,
61485         obstack_ptr_grow_fast, obstack_room): Remove declarations of
61486         nonexistent functions.
61487
61488 2004-05-18  Karl Berry  <karl@gnu.org>
61489
61490         * config/srclist.txt: break link for vasnprintf.c.
61491
61492 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61493
61494         Port obstack to the AS/400, where pointers are 16 bytes wide and
61495         you cannot cast an integer to a valid pointer.  This patch is
61496         currently waiting to be integrated into glibc; see
61497         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
61498
61499         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
61500         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
61501         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
61502         (struct obstack): temp member is now a union of a pointer and
61503         an integer, instead of an integer.  All integer uses changed.
61504         This does not affect the physical layout of struct obstack,
61505         except on hosts (like the AS/400) where the size or alignment of
61506         void * is greater than that of ptrdiff_t.
61507         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
61508         __STDC__)]: Store temporary in pointer member of union, not
61509         integer member.
61510         * lib/obstack.c: Include <stddef.h>, for offsetof.
61511         (struct fooalign): Remove; it doesn't need a name.
61512         (union fooround): Change double to long double, and add void *.
61513         (DEFAULT_ALIGNMENT): Use offsetof to compute.
61514         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
61515         not a macro.  Hence the values are always int; so remove all
61516         casts-to-int in uses.
61517
61518 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61519
61520         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
61521         we can get this patch merged into glibc.
61522
61523 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61524             Paul Eggert  <eggert@cs.ucla.edu>
61525
61526         * m4/argp: Depend on alloca.
61527
61528 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61529             Paul Eggert  <eggert@cs.ucla.edu>
61530
61531         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
61532         freecoding.
61533
61534 2004-05-17  Bruno Haible  <bruno@clisp.org>
61535
61536         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
61537         precision that consists of a '.' followed by an empty digit string.
61538         Patch by Tor Lillqvist <tml@iki.fi>.
61539
61540 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61541
61542         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
61543         for backward compatibility with older code.  We need our own
61544         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
61545         it under some other name, and our alloca.h will define it.
61546
61547 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61548             Derek Price  <derek@ximbiot.com>
61549
61550         * lib/alloca.c: Include <alloca.h>, to get our interface.
61551         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
61552         include <alloca.h> first.  Use C89 prototype for alloca; this
61553         requires including <stddef.h> for size_t.  Use extern "C" if C++.
61554         Use #elif for simplicity, since we can assume C89 now.
61555         Don't try to source the system alloca.h since it will not be found
61556         and to prevent recursively including its replacement.
61557         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
61558         * lib/regex.c: Likewise.
61559
61560 2004-05-16  Derek Price  <derek@ximbiot.com>
61561             Paul Eggert  <eggert@cs.ucla.edu>
61562
61563         getline cleanup.  This changes the getndelim2 API: both order of
61564         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
61565         no delimiter).
61566
61567         * lib/getline.c: Don't include stddef.h or stdio.h, since our
61568         interface does that.
61569         (getline): Always use getdelim, so that we don't have two
61570         copies of this code.
61571         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
61572         if available.
61573         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
61574         (GETNDELIM2_MAXIMUM): New macro.
61575         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
61576         instead of the old practice of delim2==0.  All callers changed.
61577         Return -1 on overflow, instead of returning junk.
61578         Do not set *linesize unless allocation succeeds.
61579         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
61580         that we include sys/types.h.
61581         * lib/getnline.h: Likewise.
61582         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
61583         (getndelim2): Reorder arguments.
61584         * lib/getnline.c (getnline, getndelim):
61585         Don't discard the NMAX argument.
61586         (getnline): Invoke getndelim, to avoid code duplication.
61587         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
61588         of (size_t) -1 by callers of the getnline family.
61589
61590 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61591
61592         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
61593         Check for gettimeofday.
61594         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
61595         Check for settimeofday, stime.
61596
61597 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61598
61599         * lib/nanosleep.c (suspended): Change its type from int to
61600         sig_atomic_t volatile.
61601         (first_call): Make it private to rpl_nanosleep, and have it
61602         be zero initially as that's a bit faster.
61603         (my_usleep): Round up fractional times instead of truncating them,
61604         as this is the usual meaning for 'sleep'.
61605
61606         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
61607         doesn't work.
61608         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
61609         (ENOSYS): Define if not defined.
61610         (settime): Fall back on stime if it exists and settimeofday fails.
61611         But don't bother with fallbacks if a method fails with errno == EPERM.
61612
61613 2004-05-11  Jim Meyering  <jim@meyering.net>
61614
61615         Prior to this change, the save_cwd caller required read access to the
61616         current directory on most systems (ones with the fchdir function).
61617
61618         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
61619         fails, try write-only, and finally, resort to using xgetcwd.
61620
61621 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61622
61623         * lib/obstack.c, obstack.h: Import changes from libc.
61624
61625 2004-04-28  Bruno Haible  <bruno@clisp.org>
61626
61627         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
61628         also implicitly appends .exe to executables.
61629         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
61630         accepts Windows pathnames.
61631         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61632         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61633         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61634         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61635         Reported by Derek Robert Price <derek@ximbiot.com>.
61636
61637 2004-04-21  Karl Berry  <karl@gnu.org>
61638
61639         * config/srclist.txt (localcharset.c): break sync.
61640
61641 2004-04-20  Paul Eggert  <eggert@twinsun.com>
61642
61643         * m4/host-os.m4: Add a copyright notice.
61644
61645 2004-04-20  Jim Meyering  <jim@meyering.net>
61646
61647         Change UTILS_ to gl_ in AC_DEFINE'd names.
61648         Change utils_- and jm_-prefixed variables, too.
61649         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
61650         UTILS_FUNC_MKDIR_TRAILING_SLASH.
61651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
61652
61653         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
61654         Don't emit trailing blanks.
61655         Also rename jm_-prefixed variables to have gl_ prefix.
61656
61657         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
61658         Also rename jm_-prefixed variables to have gl_ prefix.
61659
61660         * m4/jm-macros.m4: Reflect the renamings.
61661         * m4/prereq.m4: Likewise.
61662
61663 2004-04-20  Jim Meyering  <jim@meyering.net>
61664
61665         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
61666         memory.
61667
61668 2004-04-20  Jim Meyering  <jim@meyering.net>
61669             Bruno Haible  <bruno@clisp.org>
61670
61671         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
61672         memory when realloc fails.
61673
61674 2004-04-19  Jim Meyering  <jim@meyering.net>
61675
61676         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
61677         now that readutmp.c may call `free (0)'.
61678
61679 2004-04-19  Bruno Haible  <bruno@clisp.org>
61680
61681         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
61682         * m4/inttypes_h.m4: Likewise.
61683         * m4/stdint_h.m4: Likewise.
61684         * m4/intmax_t.m4: Likewise.
61685         * m4/uintmax_t.m4: Likewise.
61686
61687 2004-04-18  Jim Meyering  <jim@meyering.net>
61688
61689         * m4/prereq.m4: Don't forbid jm_ prefix.
61690
61691         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
61692         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
61693         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
61694         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
61695         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
61696         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
61697         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
61698         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
61699         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
61700         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
61701         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
61702         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
61703         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
61704         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
61705         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
61706         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
61707         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
61708         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
61709         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
61710
61711 2004-04-18  Jim Meyering  <jim@meyering.net>
61712
61713         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
61714         failure, don't leak memory and do call END_UTMP_ENT.
61715
61716 2004-04-16  Jim Meyering  <jim@meyering.net>
61717
61718         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
61719         coreutils' stat program.
61720         (gl_PREREQ): Don't require jm_PREREQ_STAT.
61721
61722 2004-04-11  Paul Eggert  <eggert@twinsun.com>
61723
61724         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
61725         C89.
61726         (CHAR_BIT): Remove, since we assume C89.
61727         Include <stdint.h> if available, as per current Autoconf CVS advice.
61728
61729 2004-03-31  Jim Meyering  <jim@meyering.net>
61730
61731         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
61732         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
61733         * m4/xalloc.m4: Likewise.
61734
61735 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61736
61737         Merge from coreutils.
61738
61739         * m4/inttostr.m4: New file.
61740         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
61741         Require AM_STDBOOL_H and gl_TIMESPEC instead.
61742         Require gl_CLOCK_TIME.
61743         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
61744
61745 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61746
61747         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
61748         not bool, to be more consistent with Unix conventions.
61749         Suggested by Bruno Haible.
61750
61751         Merge from coreutils.
61752
61753         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
61754         * lib/umaxtostr.c: New files.
61755
61756         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
61757         the usual <time.h> dance.
61758         (get_date): Change signature to support fractional time stamps.
61759         All callers changed.
61760         * lib/getdate.y: Include "getdate.h" first, as we can now
61761         assume C89 and don't need to worry about 'const'.
61762         Similarly, include "unlocked-io.h" near start, not in middle.
61763         Include <limits.h>.
61764         (textint.value): Use long int rather than int.
61765         (textint.digits): Use size_t rather than int.
61766         (BILLION, LOG10_BILLION): New constants.
61767         (parser_control): New member rel_ns.  Members day_ordinal,
61768         time_zone, month, day, hour, minutes, rel_year, rel_month,
61769         rel_day, rel_hour, rel_minutes, rel_seconds
61770         are now long int, not int.  Member seconds is now struct timespec,
61771         not int.  New member timespec_seen.  Members dates_seen, days_seen,
61772         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
61773         not int.
61774         (%union.intval): Now long int, not int.
61775         New member timespec.
61776         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
61777         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
61778         (spec): Now is a timespec or an item list.
61779         (timespec, items): New nonterminals.
61780         (time, rel, relunit, number, get_date):
61781         Add support for fractional seconds.
61782         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
61783         (gmtime, localtime, mktime): Remove decls; not needed with C89.
61784         (to_hour): First arg is now long int, not int.
61785         (to_year): Returns long int, not int.
61786         Don't treat year -70 like 70.
61787         (tm_diff): Returns long int, not int.
61788         (lookup_word): Use bool instead of int when appropriate.
61789         (yylex): Use size_t for count, not int.
61790         Detect overflow when parsing large integer constants.
61791         Add support for fractions.
61792         (get_date): Make pointers 'const' if possible.
61793         Use more-portable code to detect integer overflow.
61794         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
61795         Don't use ctime; it's not reliable if the year has >4 digits.
61796
61797         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
61798         This is for compatibility with BSD.
61799
61800         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
61801         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
61802         From coreutils' system.h.
61803
61804         * lib/userspec.c: Don't include "posixver.h".
61805         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
61806         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
61807         compatible extension.  Simplify code by removing a boolean int
61808         that was always nonzero if a string was nonnull.
61809
61810 2004-03-30  Jim Meyering  <jim@meyering.net>
61811
61812         Merge from coreutils.
61813
61814         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
61815         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
61816         on some systems one must include <grp.h> before it.
61817         Reported by Christian Krackowizer.
61818
61819 2004-03-30  Jim Meyering  <jim@meyering.net>
61820
61821         Merge from coreutils.
61822
61823         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
61824
61825         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
61826         an empty input stream.
61827
61828         * lib/readtokens.c: Include <stdbool.h>.
61829         (readtoken): Use `size_t' rather than int/long.
61830         All callers adjusted.
61831         Use `bool' rather than `int' where appropriate.
61832         Use memset rather than an explicit loop.
61833         Use x2nrealloc rather than xrealloc.
61834         Allow the use of `\0' as a delimiter.
61835         (readtokens): Likewise.
61836         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
61837
61838 2004-03-30  Jim Meyering  <jim@meyering.net>
61839
61840         * m4/realloc.m4: Remove file, since now it does no more than
61841         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
61842         the `configure.ac' section of module/realloc.
61843         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
61844
61845 2004-03-30  Bruno Haible  <bruno@clisp.org>
61846
61847         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
61848         nonnull.
61849
61850 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61851
61852         Merge changes to getloadavg.c from coreutils and Emacs.
61853
61854         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
61855         Define to an expression, not to the empty string.
61856         Include cloexec.h and xalloc.h.
61857         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
61858         Use set_cloexec_flag rather than rolling our own.
61859         * lib/cloexec.c, lib/cloexec.h: New files.
61860
61861 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61862
61863         * m4/cloexec.m4: New file.
61864
61865 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61866
61867         * lib/getopt.h: Sync with libc CVS.
61868
61869 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61870             Bruno Haible  <bruno@clisp.org>
61871
61872         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
61873         mbswidth.
61874
61875 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61876             Bruno Haible  <bruno@clisp.org>
61877
61878         * lib/mbswidth.h: Include <wchar.h> only if
61879         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
61880         <wchar.h>.
61881         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
61882
61883 2004-03-09  Paul Eggert  <eggert@twinsun.com>
61884
61885         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
61886         Sync with libc CVS.
61887         * lib/getopt_int.h: New file, also synced from libc.
61888
61889 2004-03-09  Paul Eggert  <eggert@twinsun.com>
61890
61891         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
61892         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
61893         Bring back getopt.c, getopt.h, getopt1.c.
61894
61895 2004-03-07  Paul Eggert  <eggert@twinsun.com>
61896
61897         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
61898         All uses changed.  Check for sa_sigaction member; this fixes
61899         a bug first reported by Jason Andrade in
61900         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
61901
61902 2004-03-07  Paul Eggert  <eggert@twinsun.com>
61903
61904         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
61905         '#if' expressions.  Unlike the code it replaces, it does not
61906         depend on (defined _SC_PAGESIZE).  However, it does depend on
61907         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
61908         first reported by Jason Andrade in
61909         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
61910
61911 2004-02-25  Simon Josefsson  <jas@extundo.com>
61912
61913         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
61914
61915 2004-02-25  Simon Josefsson  <jas@extundo.com>
61916
61917         * lib/strdup.h: New file.
61918         * lib/strdup.c: Include it.
61919         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
61920         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
61921
61922 2004-02-23  Karl Berry  <karl@gnu.org>
61923
61924         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
61925         (from fencepost.gnu.org:/gd/gnuorg).
61926
61927 2004-02-23  Karl Berry  <karl@gnu.org>
61928
61929         * config/srclistvars.sh (GNUORG) [karl]: redefine.
61930         * config/srclist.txt: add maintain/standards documents.
61931
61932 2004-02-18  Bruno Haible  <bruno@clisp.org>
61933
61934         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
61935         Reported by Derek Robert Price <derek@ximbiot.com>.
61936
61937 2004-02-16  Karl Berry  <karl@gnu.org>
61938
61939         * config/mkinstalldirs, install-sh: update from automake.
61940
61941 2004-02-06  Karl Berry  <karl@gnu.org>
61942
61943         * m4/po.m4: update from gettext 0.14.1.
61944
61945 2004-02-06  Karl Berry  <karl@gnu.org>
61946
61947         * lib/config.charset: update from gettext 0.14.1.
61948
61949 2004-02-05  Paul Eggert  <eggert@twinsun.com>
61950
61951         Add comments and code, prompted by suggestions from Bruno Haible
61952         for sh-quote.
61953         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
61954         describing the enum quoting_style values.
61955         * lib/quotearg.c (quotearg_alloc): New function.
61956         (quotearg_buffer_restyled): Treat lone { and } as special.
61957         Treat = as special.  Work around bug with older shells
61958         that "see" a '\' that is really the 2nd byte of a multibyte char.
61959         Quote empty string with shell_quoting_style.
61960
61961 2004-02-03  Bruno Haible  <bruno@clisp.org>
61962
61963         * m4/pipe.m4: New file, from GNU gettext.
61964
61965 2004-02-03  Bruno Haible  <bruno@clisp.org>
61966
61967         * lib/pipe.h: New file, from GNU gettext.
61968         * lib/pipe.c: New file, from GNU gettext.
61969
61970 2004-01-27  Bruno Haible  <bruno@clisp.org>
61971
61972         * m4/execute.m4: New file, from GNU gettext.
61973
61974 2004-01-27  Bruno Haible  <bruno@clisp.org>
61975
61976         * lib/execute.h: New file, from GNU gettext.
61977         * lib/execute.c: New file, from GNU gettext.
61978         * lib/w32spawn.h: New file, from GNU gettext.
61979
61980 2004-01-24  Paul Eggert  <eggert@twinsun.com>
61981
61982         Merge from diffutils.
61983
61984         * lib/file-type.c (file_type): Add typed memory objects.
61985         * lib/file-type.h (S_TYPEISTMO): New macro.
61986
61987         * lib/c-stack.h (c_stack_action): Remove argv argument.
61988         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
61989         (die): Don't calculate message unless segv_action returns.
61990         (get_stack_location, min_address_from_argv, max_address_from_argv,
61991         volatile stack_base, volatile_stack_size): Remove.
61992         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
61993         that every segmentation violation is a stack overflow.  (Ouch!)
61994         See Debian bug 136249 (still outstanding) for more info about why
61995         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
61996
61997 2004-01-24  Paul Eggert  <eggert@twinsun.com>
61998
61999         Exit-status fix from coreutils.
62000
62001         Use exit_failure consistently in place of EXIT_FAILURE,
62002         so that program exit statuses are consistent on failure.
62003
62004         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62005         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62006         * lib/argmatch.h: Comment fix to match the above.
62007         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62008         Now a macro referring to exit_failure, instead of a separate
62009         variable.  Include "exitfail.h" to get it.
62010         * lib/xstrtol.h: Include "exitfail.h".
62011         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62012
62013         * lib/long-options.c (parse_long_options): Use prototype
62014         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62015         for clarity.
62016
62017 2004-01-21  Jim Meyering  <jim@meyering.net>
62018
62019         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62020         so as not to conflict with a different-sized __mktime_internal
62021         function in GNU libc.
62022         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62023         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62024
62025 2004-01-20  Karl Berry  <karl@gnu.org>
62026
62027         * config/config.guess: update from config.
62028
62029         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62030
62031 2004-01-20  Bruno Haible  <bruno@clisp.org>
62032
62033         Safer stack allocation.
62034         * lib/setenv.c: Include allocsa.h.
62035         (alloca): Remove fallback definition.
62036         (freea): Remove macro.
62037         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62038         instead of freea.
62039
62040 2004-01-20  Bruno Haible  <bruno@clisp.org>
62041
62042         * m4/eealloc.m4: New file, from GNU gettext.
62043
62044 2004-01-20  Bruno Haible  <bruno@clisp.org>
62045
62046         * m4/allocsa.m4: New file, from GNU gettext.
62047
62048 2004-01-20  Bruno Haible  <bruno@clisp.org>
62049
62050         * lib/xallocsa.h: New file, from GNU gettext.
62051         * lib/xallocsa.c: New file, from GNU gettext.
62052
62053 2004-01-20  Bruno Haible  <bruno@clisp.org>
62054
62055         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62056
62057 2004-01-20  Bruno Haible  <bruno@clisp.org>
62058
62059         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62060         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62061         specially.
62062
62063 2004-01-20  Bruno Haible  <bruno@clisp.org>
62064
62065         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62066         patch.
62067
62068 2004-01-20  Bruno Haible  <bruno@clisp.org>
62069
62070         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62071
62072 2004-01-20  Bruno Haible  <bruno@clisp.org>
62073
62074         * lib/eealloc.h: New file.
62075
62076 2004-01-20  Bruno Haible  <bruno@clisp.org>
62077
62078         * lib/binary-io.h: Avoid warnings on Cygwin.
62079
62080 2004-01-20  Bruno Haible  <bruno@clisp.org>
62081
62082         * lib/allocsa.h: New file, from GNU gettext.
62083         * lib/allocsa.c: New file, from GNU gettext.
62084
62085 2004-01-18  Karl Berry  <karl@gnu.org>
62086
62087         * doc/gpl.texi, doc/lgpl.texi: new files.
62088
62089 2004-01-18  Karl Berry  <karl@gnu.org>
62090
62091         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62092         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62093
62094 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62095
62096         Merge from coreutils.
62097
62098         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62099         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62100         (gl_DEFAULT_POSIX2_VERSION): Move
62101         the documentation from 'configure' into 'config.hin',
62102         so that 'configure --help' isn't burdened by it and
62103         we don't have to worry about its formatting there.
62104         Reword the documentation so that it's more succinct
62105         and can be run together into a single paragraph.
62106         * m4/same.m4 (gl_SAME): Check for pathconf.
62107
62108 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62109
62110         Merge from coreutils.
62111
62112         * lib/posixver.c: Include posixver.h.
62113
62114         * lib/same.c: Include <stdbool.h>, <limits.h>.
62115         (_POSIX_NAME_MAX): Define if not defined.
62116         (MIN): New macro.
62117         (same_name): If file names are silently truncated, report
62118         that the file names are the same if they are the same after
62119         the silent truncation.
62120
62121         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62122         conversion function.
62123         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62124         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62125         longer needed.
62126
62127 2004-01-15  Jim Meyering  <jim@meyering.net>
62128
62129         Merge from coreutils.
62130
62131         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62132         if no library is required.
62133         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62134         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62135         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62136         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62137         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62138         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62139         value, $ac_cv_search_crypt, if it's "none required".
62140         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62141         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62142         not gl_FUNC_GETLOADAVG.
62143         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62144         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62145
62146 2004-01-15  Jim Meyering  <jim@meyering.net>
62147
62148         Merge from coreutils.
62149
62150         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62151         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62152         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62153
62154         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62155         optional configure-time default.
62156
62157         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62158
62159         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62160
62161 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62162
62163         Merge from coreutils.
62164
62165         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62166         value, $ac_cv_search_nanosleep, if it's "none required".
62167
62168 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62169
62170         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62171         with like-named macro in fnmatch.c.
62172         (EXT): Use an internal constant instead.
62173
62174         Merge fnmatch patches from glibc.
62175         * lib/fnmatch.c (mbsinit): Remove define.
62176         Add libc_hidden_ver (__fnmatch, fnmatch).
62177         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62178         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62179
62180 2004-01-14  Karl Berry  <karl@gnu.org>
62181
62182         * config/install-sh: update from automake.
62183
62184 2004-01-13  Karl Berry  <karl@gnu.org>
62185
62186         * config/install-sh: update from automake.
62187
62188 2004-01-09  Karl Berry  <karl@gnu.org>
62189
62190         * config/install-sh: update from automake.
62191
62192 2004-01-05  Karl Berry  <karl@gnu.org>
62193
62194         * config/config.{sub,guess}: update from config.
62195
62196 2003-12-31  Karl Berry  <karl@gnu.org>
62197
62198         * config/depcomp: update from automake.
62199
62200 2003-12-14  Karl Berry  <karl@gnu.org>
62201
62202         * lib/config.charset: update from gettext-runtime.
62203
62204 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62205
62206         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62207         Bug reported by Alfred M. Szmidt.
62208
62209 2003-12-03  Bruno Haible  <bruno@clisp.org>
62210
62211         * m4/gettext.m4: Upgrade from gettext-0.13.
62212         * m4/po.m4: Upgrade from gettext-0.13.
62213         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62214         * m4/intmax.m4: New file, from gettext-0.13.
62215         * m4/printf-posix.m4: New file, from gettext-0.13.
62216
62217 2003-11-29  Karl Berry  <karl@gnu.org>
62218
62219         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62220
62221 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62222             Bruno Haible  <bruno@clisp.org>
62223
62224         * lib/printf-parse.h: Don't include sys/types.h.
62225         (ARG_NONE): New macro.
62226         (char_directive): Change type of *arg_index fields to size_t.
62227         * lib/printf-parse.c: Don't include sys/types.h.
62228         (SSIZE_MAX): Remove macro.
62229         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
62230         Remove unnecessary overflow check.
62231         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
62232         fields.
62233
62234 2003-11-25  Bruno Haible  <bruno@clisp.org>
62235
62236         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
62237
62238 2003-11-25  Bruno Haible  <bruno@clisp.org>
62239
62240         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
62241         gt_TYPE_SSIZE_T.
62242
62243 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62244
62245         * modules/alloca: Remove dependency on xalloc.
62246
62247 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62248
62249         * lib/alloca.c: Remove dependency on xalloc module.
62250         (xalloc_die): Remove.
62251         (memory_full) [!defined emacs]: New macro.
62252         [!defined emacs]: Don't include xalloc.h.
62253         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
62254         address arithmetic overflows.  Change datatypes a bit to avoid
62255         unnecessary casts.
62256
62257 2003-11-22  Jim Meyering  <jim@meyering.net>
62258
62259         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
62260         s/size/size_t/.
62261
62262 2003-11-21  Karl Berry  <karl@gnu.org>
62263
62264         * config/config.{sub,guess}: update from config.
62265
62266 2003-11-18  Karl Berry  <karl@gnu.org>
62267
62268         * config/config.{sub,guess}: update from config.
62269
62270         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62271
62272 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62273
62274         * README: Mention that S+T cannot overflow if S is the size of
62275         an existing object and T is sufficiently small.
62276
62277 2003-11-17  Jim Meyering  <jim@meyering.net>
62278
62279         On systems without utime and without a utimes function capable of
62280         dealing with a NULL struct utimbuf* argument, this utime replacement
62281         could -- in unusual circumstances -- leak a file descriptor.
62282         * lib/utime.c: Include <unistd.h> and <errno.h>.
62283         (utime_null): Be sure to close `fd' and to preserve errno.
62284         Reported by Geoff Collyer via Arnold Robbins.
62285
62286 2003-11-17  Bruno Haible  <bruno@clisp.org>
62287
62288         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62289         (Depends-on): Add xsize.
62290
62291 2003-11-17  Bruno Haible  <bruno@clisp.org>
62292
62293         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62294
62295 2003-11-17  Bruno Haible  <bruno@clisp.org>
62296
62297         * lib/vasnprintf.c (alloca): Remove fallback definition.
62298         (freea): Remove definition.
62299         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62300         Reported by Paul Eggert.
62301
62302 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62303             Bruno Haible  <bruno@clisp.org>
62304
62305         Protect against address arithmetic overflow.
62306         * lib/printf-args.h: Include stddef.h.
62307         (arguments): Change type of field 'count' to size_t.
62308         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62309         'unsigned int' where appropriate.
62310         * lib/printf-parse.h: Include sys/types.h.
62311         (char_directive): Change type of *arg_index fields to ssize_t.
62312         (char_directives): Change type of fields 'count', max_*_length to
62313         size_t.
62314         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62315         (SSIZE_MAX): Define fallback value.
62316         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62317         instead of 'int' where appropriate. Check a_allocated, d_allocated
62318         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62319         * lib/vasnprintf.c: Include xsize.h.
62320         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62321         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62322         overflow. Avoid wraparound when converting a width or precision from
62323         decimal to binary.
62324
62325 2003-11-16  Bruno Haible  <bruno@clisp.org>
62326
62327         Update from GNU gettext.
62328         * lib/printf-parse.c: Generalize to it can be compiled for wide
62329         strings.
62330         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62331         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62332         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62333         SNPRINTF): New macros.
62334         Don't include <alloca.h> if the file is used inside libintl.
62335         (local_wcslen): New function, for Solaris 2.5.1.
62336         (VASNPRINTF): Use it instead of wcslen.
62337
62338 2003-11-16  Bruno Haible  <bruno@clisp.org>
62339
62340         * lib/xsize.h (xmax): New function.
62341         (xsum, xsum3, xsum4): Declare as "pure" functions.
62342
62343 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62344
62345         * modules/xalloc (Files): Undo latest change, since xalloc.h
62346         no longer needs SIZE_MAX or PTRDIFF_MAX.
62347
62348 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62349
62350         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62351         gl_PTRDIFF_MAX.
62352
62353 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62354
62355         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62356         "return", to pacify some unknown compiler.  Problem reported
62357         by Joerg Schilling.
62358
62359 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62360
62361         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62362         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62363         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62364         heuristic is just as accurate as far as we know, and it removes a
62365         dependency on size_max.m4 and ptrdiff_max.m4.
62366
62367 2003-11-11  Bruno Haible  <bruno@clisp.org>
62368
62369         * modules/xsize (Files): Add m4/size_max.m4.
62370         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62371
62372 2003-11-11  Bruno Haible  <bruno@clisp.org>
62373
62374         * m4/size_max.m4: New file.
62375         * m4/ptrdiff_max.m4: New file.
62376         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62377         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62378         (gl_XALLOC): Invoke it.
62379
62380 2003-11-11  Bruno Haible  <bruno@clisp.org>
62381
62382         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62383         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62384         defined.
62385
62386 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62387
62388         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62389         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62390         rejected some allocations of exactly SIZE_MAX - 2 bytes.
62391         From Bruno Haible.
62392         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
62393         not (size_t) -1, since it's defined here.
62394
62395 2003-11-09  Karl Berry  <karl@gnu.org>
62396
62397         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
62398
62399 2003-11-06  Paul Eggert  <eggert@twinsun.com>
62400
62401         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
62402         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
62403         Reject sizes of exactly SIZE_MAX bytes.
62404         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
62405         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
62406
62407 2003-11-05  Bruno Haible  <bruno@clisp.org>
62408
62409         * lib/xsize.h: Include limits.h, to avoid a possible collision with
62410         SIZE_MAX defined in <limits.h> on Solaris.
62411
62412 2003-11-04  Jim Meyering  <jim@meyering.net>
62413
62414         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
62415         variable names, rather than @VAR@.
62416         * modules/poll: Likewise.
62417
62418 2003-11-04  Bruno Haible  <bruno@clisp.org>
62419
62420         * modules/xsize: New file.
62421         * modules/linebreak: Depend on xsize.
62422         * MODULES.html.sh (func_all_modules): Add xsize.
62423
62424 2003-11-04  Bruno Haible  <bruno@clisp.org>
62425
62426         * m4/xsize.m4: New file.
62427
62428 2003-11-04  Bruno Haible  <bruno@clisp.org>
62429
62430         * lib/xsize.h: New file.
62431         * lib/linebreak.c: Include xsize.h.
62432         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
62433         argument for overflow.
62434         Suggested by Paul Eggert.
62435
62436 2003-11-03  Karl Berry  <karl@gnu.org>
62437
62438         * config/config.{guess,sub}: update from config.
62439
62440 2003-11-03  Jim Meyering  <jim@meyering.net>
62441
62442         * modules/userspec (lib_SOURCES): Add userspec.h.
62443         (Include): Add "userspec.h".
62444         Improve description.
62445
62446 2003-11-03  Jim Meyering  <jim@meyering.net>
62447
62448         * lib/userspec.c: Include "userspec.h".
62449         * lib/userspec.h: New file.
62450
62451 2003-11-03  Bruno Haible  <bruno@clisp.org>
62452
62453         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
62454
62455 2003-11-03  Bruno Haible  <bruno@clisp.org>
62456
62457         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
62458         available, to avoid (extremely rare) race condition.
62459         Suggested by Paul Eggert.
62460
62461 2003-11-02  Karl Berry  <karl@gnu.org>
62462
62463         * config/srclist.txt (vasprintf.c): sync broken, sigh.
62464
62465 2003-10-31  Paul Eggert  <eggert@twinsun.com>
62466
62467         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
62468         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
62469         (read_filesystem_list): Set and use me_type_malloced.
62470         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
62471         whatever the type happens to be), for brevity and consistency.
62472         Check for size calculation overflow on Alphas running OSF/1.
62473
62474 2003-10-31  Jim Meyering  <jim@meyering.net>
62475
62476         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
62477
62478         * lib/linebuffer.c: Include <string.h> for declaration of memset.
62479
62480 2003-10-30  Paul Eggert  <eggert@twinsun.com>
62481             Bruno Haible  <bruno@clisp.org>
62482
62483         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
62484         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
62485
62486 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
62489         netbsd*-gnu*.  Suggested by Robert Millan.
62490
62491 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62492
62493         * modules/group-member: Depend on stdbool.
62494
62495 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62496
62497         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
62498
62499 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62500
62501         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
62502         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
62503         after the 'gnu' in these cases.  This fixes some bugs in the
62504         previous change, and is based on suggestions by Robert Millan.
62505
62506 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62507
62508         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
62509         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
62510         no longer needed.
62511         * lib/quotearg.c (quotearg_n_options): Use it.
62512         * lib/group-member.c: Include <stdbool.h>.
62513         (free_group_info): Arg is now const *; don't free arg.
62514         (get_group_info): Now returns bool and accepts struct group_info *,
62515         rather than returning a malloc'ed struct group_info *.
62516         All uses changed.  Check for overflow in internal size calculation.
62517
62518         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
62519         rather than xmalloc/xrealloc.
62520         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
62521         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
62522         conformance bug: the old code used a pointer after freeing the
62523         storage that it addressed.
62524         * lib/hash.c (hash_initialize): Simplify the code by using
62525         xalloc_oversized rather than doing it by hand.
62526         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
62527         the buffer preserved.  Use free and xmalloc instead.
62528         * lib/quotearg.c (quotearg_n_options): Likewise.
62529         Use a simpler test for size overflow.  Don't use xalloc_oversized
62530         because unsigned int might be wider than size_t (!); this suggests
62531         that we should switch from unsigned int to size_t for slot numbers.
62532
62533 2003-10-28  Paul Eggert  <eggert@twinsun.com>
62534
62535         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
62536         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
62537         NetBSD kernels.  Requested by Richard Stallman.
62538
62539 2003-10-27  Paul Eggert  <eggert@twinsun.com>
62540
62541         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
62542         to allocate the returned structure.  Do not allocate a subarray,
62543         as x2nrealloc will do that.
62544         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
62545         instead of xnrealloc.
62546         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
62547
62548 2003-10-27  Bruno Haible  <bruno@clisp.org>
62549
62550         * lib/stdbool_.h: Better support for BeOS.
62551
62552 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62553
62554         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
62555         now uses inline.
62556
62557 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62558
62559         * lib/xalloc.h (xalloc_oversized): New static inline function, for
62560         callers that want to do their own size-overflow checking.  Include
62561         <stdbool.h>, since xalloc_oversized returns bool.
62562         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
62563         to use xalloc_oversized.
62564
62565         Add two functions x2realloc, x2nrealloc, for programs that grow
62566         arrays dynamically by doubling their sizes.
62567         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
62568         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
62569         New functions.
62570
62571         Port to C99 semantics for 'inline' of external functions.
62572         Bug reported by Bruno Haible.
62573         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
62574         with the old contents of xnmalloc.
62575         (xnmalloc, xmalloc): Use it.
62576         (xnrealloc_inline): New static inline function,
62577         with the old contents of xnrealloc.
62578         (xnrealloc, xrealloc): Use it.
62579
62580         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
62581         that.
62582
62583 2003-10-26  Karl Berry  <karl@gnu.org>
62584
62585         * config/srclist.txt (COPYING.DOC): no longer available from
62586         /gd/gnuorg; don't know where the ultimate source is.
62587
62588 2003-10-25  Paul Eggert  <eggert@twinsun.com>
62589
62590         Fix several address-calculation bugs in the hash modules,
62591         plus some minor code cleanup.
62592
62593         * lib/hash.h: Include <stdbool.h>, for bool.
62594         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
62595         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
62596         hash_get_n_entries, hash_get_max_bucket_length,
62597         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
62598         hash_rehash): Use size_t rather than unsigned.
62599         * lib/hash.c (struct hash_table, hash_get_n_buckets,
62600         hash_get_n_buckets_used, hash_get_n_entries,
62601         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
62602         hash_get_entries, hash_do_for_each, hash_string, is_prime,
62603         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
62604         Likewise.
62605         (SIZE_MAX): Define if not defined.
62606         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
62607         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
62608         hash_print):
62609         Use const * when possible.
62610         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
62611         (check_tuning): Fix bug: if tuning parameters were very close to
62612         0 or 1, rounding errors could have caused subscript violations.
62613         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
62614         (hash_initialize): Add 'fail:' label
62615         to free table and return NULL, and use it to simplify code.
62616         Use calloc rather than clearing the storage ourself.
62617         (hash_initialize, hash_rehash): Check for arithmetic overflow in
62618         buffer size calculations.
62619         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
62620         Include <stddef.h>, for size_t.
62621         * lib/hash-pjw.c (hash_pjw): Likewise.
62622         Switch to method described by Bruno Haible.
62623         Include <limits.h>, for CHAR_BIT.
62624         (SIZE_BITS): New macro.
62625
62626 2003-10-23  Paul Eggert  <eggert@twinsun.com>
62627
62628         * m4/getline.m4 (AM_FUNC_GETLINE):
62629         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
62630         hosts.  Problem reported by Derek Robert Price in
62631         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
62632         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
62633         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
62634
62635 2003-10-21  Paul Eggert  <eggert@twinsun.com>
62636
62637         * lib/getndelim2.c (getndelim2): When size calculation overflows,
62638         ceiling the allocation at NMAX bytes rather than silently
62639         discarding input bytes before NMAX is reached.  This makes
62640         a difference only if NMAX exceeds SIZE_MAX / 2.
62641
62642         * lib/obstack.c: Merge from glibc.
62643         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
62644         Add libc_hidden_def (_obstack_newchunk).
62645         (_obstack_free) [! defined _LIBC]: Remove.
62646         [defined _LIBC]: Make a strong alias from obstack_free, rather than
62647         a clone of the function body.
62648         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
62649         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
62650
62651         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
62652         glibc.
62653         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
62654         arg to memcpy.
62655
62656         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
62657         (obstack_ptr_grow_fast, obstack_int_grow_fast):
62658         Don't use lvalue casts, as GCC plans to remove support for them
62659         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
62660         was also present in the non-GCC version, indicating that this
62661         code had always been buggy and had never been widely used.
62662         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
62663         Use the fast variant of each macro, rather than copying the
62664         definiens of the fast variant; that way, we'll be more likely to
62665         catch future bugs in the fast variants.
62666
62667 2003-10-20  Bruno Haible  <bruno@clisp.org>
62668
62669         * modules/wait-process: New file.
62670         * MODULES.html.sh (func_all_modules): Add wait-process.
62671
62672 2003-10-20  Bruno Haible  <bruno@clisp.org>
62673
62674         * m4/wait-process.m4: New file.
62675
62676 2003-10-20  Bruno Haible  <bruno@clisp.org>
62677
62678         * lib/wait-process.h: New file, from GNU gettext.
62679         * lib/wait-process.c: New file, from GNU gettext.
62680
62681 2003-10-19  Jim Meyering  <jim@meyering.net>
62682
62683         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
62684         HPUX 10.20.
62685
62686 2003-10-18  Karl Berry  <karl@gnu.org>
62687
62688         * config/config.guess: update from config.
62689
62690 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62691
62692         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
62693         (getgroups): First arg is int, not size_t.
62694         Don't let 'free' mangle errno.
62695
62696 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62697
62698         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
62699
62700 2003-10-16  Karl Berry  <karl@gnu.org>
62701
62702         * config/config.{guess,sub}: update from config.
62703
62704 2003-10-16  Jim Meyering  <jim@meyering.net>
62705
62706         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
62707         memcpy.
62708
62709 2003-10-15  Paul Eggert  <eggert@twinsun.com>
62710
62711         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
62712         (SIZE_MAX): Remove.
62713         (new_exclude, add_exclude_file): Initial size no longer needs to
62714         be a power of 2.
62715         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
62716         our own address arithmetic overflow checking.
62717
62718         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
62719         (fnmatch): Do not alloca more than 2000 wide characters;
62720         instead, use malloc for large buffers.
62721         Check for address arithmetic overflow, and return -1
62722         with errno set to ENOMEM in that case.
62723         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
62724         (NEW_PATTERN): Do not alloca more than 8000 bytes;
62725         instead, return -1.  Check for address arithmetic overflow.
62726
62727 2003-10-14  Paul Eggert  <eggert@twinsun.com>
62728
62729         Handle invalid suffixes and overflow independently, so that
62730         callers can treat them independently as needed.  Fix some bugs in
62731         suffix handling, e.g., "100k@" was not diagnosed as an invalid
62732         suffix for a human-readable blocksize.  The major caller-visible
62733         change is the addition of a new
62734         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
62735         that both overflow and suffix chars were found.
62736
62737         * lib/human.c (humblock): Don't check separately for invalid suffix
62738         char; that is xstrtoumax's job (now that its bug is fixed).
62739         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
62740         INTMAX_MAX]: New macros.
62741         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
62742         TYPE_MAXIMUM): New macros.
62743         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
62744         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
62745         if overflow occurs, as it's what __strtol does and it's more useful
62746         in practice.
62747         (__xstrtol): If __strtol reports some error other than ERANGE,
62748         reflect it to the caller as LONGINT_INVALID.  If it reports
62749         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
62750         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
62751         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
62752         value.
62753         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
62754         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
62755         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
62756         [defined UINTMAX_MAX]: New macros.
62757
62758 2003-10-14  Bruno Haible  <bruno@clisp.org>
62759
62760         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
62761
62762 2003-10-14  Bruno Haible  <bruno@clisp.org>
62763
62764         * m4/sig_atomic_t: New file, from GNU gettext.
62765         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
62766
62767 2003-10-14  Bruno Haible  <bruno@clisp.org>
62768
62769         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
62770         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
62771         Also use volatile where needed.
62772
62773 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62774
62775         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
62776         Change maintainer from Bruno Haible to 'all'.
62777
62778 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62779
62780         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
62781
62782 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62783
62784         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
62785         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
62786         and define in terms of the other primitives.
62787         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
62788         (SIZE_MAX): Define if not already defined.
62789         (array_size_overflow): New function.
62790         (xalloc_die): Abort instead of exiting if 'error' returns.
62791         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
62792         (xmalloc, xrealloc): Use them.
62793         (xcalloc): Check for address arithmetic overflow.
62794         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
62795         a bit faster than strcpy.
62796
62797 2003-10-10  Simon Josefsson  <jas@extundo.com>
62798
62799         * modules/argp (Depends-on): Add restrict and strcase.
62800
62801 2003-10-10  Simon Josefsson  <jas@extundo.com>
62802
62803         * m4/argp.m4: Add AC_C_INLINE.
62804
62805 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62806
62807         Merge getpass from libc, plus a few fixes.
62808
62809         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
62810         Include <stdbool.h>.
62811         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
62812         __fsetlocking to empty.
62813         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
62814         do include <bits/libc-lock.h>.
62815         Do not include <fcntl.h>; not needed.
62816         [_LIBC]: Include <wchar.h>.
62817         (NOTCANCEL_MODE): New macro.
62818         (flockfile, funlockfile) [_LIBC]: New macros.
62819         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
62820         [!_LIBC]: New macros.
62821         (call_fclose): New function.
62822         (getpass): Use it.  Save tty stream separately; this simplifies the
62823         code and makes it more reliable if stdin happens to equal stdout.
62824         Invoke __fsetlocking on tty.
62825         Handle thread cancellation if needed.
62826         Namespace cleanup (use __tcgetattr, __getline).
62827         Use bool for Booleans.
62828         [USE_IN_LIBIO]: Handle wide streams.
62829         [!_LIBC]: Unconditionally do the fseek, since we don't know what
62830         stream might go where.
62831
62832         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
62833         doesn't have to include <stdio.h> before us.
62834         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
62835         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
62836         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
62837         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
62838         if not declared, so that we can use getpass.c code from libc without
62839         rewriting it.
62840         (flockfile, ftrylockfile, funlockfile): New macros.
62841
62842 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62843
62844         * modules/getpass: Depend on stdbool.
62845
62846 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62847
62848         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
62849
62850 2003-10-07  Karl Berry  <karl@gnu.org>
62851
62852         * config/config.{guess,sub}: update from config.
62853
62854 2003-10-06  Jim Meyering  <jim@meyering.net>
62855             Bruno Haible  <bruno@clisp.org>
62856
62857         This lets translators provide better translations for the
62858         "Written by ..." part of --version output.
62859         * lib/version-etc.h: Include stdarg.h.
62860         (version_etc_copyright): Declare as readonly.
62861         (version_etc): Make this function variadic with a NULL-terminated list
62862         of author name strings.
62863         (version_etc_va): New declaration.
62864         * lib/version-etc.c: Include stdarg.h, stdlib.h.
62865         (version_etc_copyright): Declare as readonly.
62866         (version_etc_va): New function. Provide a different translatable string
62867         for each possible number of authors < 10. Abbreviate when there are 10
62868         authors or more.
62869         (version_etc): Make this function variadic. Call version_etc_va.
62870         Suggestion from Gary V. Vaughan.
62871
62872         * lib/long-options.h (parse_long_options): Change prototype: the
62873         authors string is moved to the end and becomes variadic.
62874         * lib/long-options.c: Include stdarg.h.
62875         (parse_long_options): Make this function variadic, too.
62876         Call version_etc_va, not version_etc.
62877
62878 2003-10-06  Bruno Haible  <bruno@clisp.org>
62879
62880         * modules/version-etc-2: Remove file.
62881         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
62882
62883 2003-10-06  Bruno Haible  <bruno@clisp.org>
62884
62885         * modules/fatal-signal: New file.
62886         * MODULES.html.sh (func_all_modules): Add fatal-signal.
62887
62888 2003-10-06  Bruno Haible  <bruno@clisp.org>
62889
62890         * m4/fatal-signal.m4: New file.
62891         * m4/signalblocking.m4: New file, from GNU gettext.
62892
62893 2003-10-06  Bruno Haible  <bruno@clisp.org>
62894
62895         * lib/version-etc-2.h: Remove file.
62896         * lib/version-etc-2.c: Remove file.
62897
62898 2003-10-06  Bruno Haible  <bruno@clisp.org>
62899
62900         * lib/fatal-signal.h: New file, from GNU gettext.
62901         * lib/fatal-signal.c: New file, from GNU gettext.
62902
62903 2003-10-05  Paul Eggert  <eggert@twinsun.com>
62904
62905         * README: Rework advice for preventing empty .o files.
62906         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
62907         not <sys/types.h>.
62908
62909 2003-10-04  Karl Berry  <karl@gnu.org>
62910
62911         * lib/argp*: update from libc.
62912
62913 2003-10-04  Karl Berry  <karl@gnu.org>
62914
62915         * config/config.{guess,sub}: update from config.
62916
62917 2003-10-02  Bruno Haible  <bruno@clisp.org>
62918
62919         * modules/lchown (Include): Add lchown.h.
62920         * modules/time_r (Include): Use "..." syntax.
62921         * modules/xgetdomainname (Include): Add xgetdomainname.h.
62922
62923 2003-10-01  Simon Josefsson  <jas@extundo.com>
62924
62925         * MODULES.html.sh (func_all_modules): Move gethostname from section
62926         'based on' to section 'lacking' POSIX:2001.
62927
62928 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
62929
62930         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
62931         to output mode on the same stream.
62932
62933 2003-09-29  Paul Eggert  <eggert@twinsun.com>
62934
62935         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
62936         Fix arg typo in previous patch.
62937
62938 2003-09-28  Jim Meyering  <jim@meyering.net>
62939
62940         * lib/error.c: Correct cpp indentation.
62941
62942 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62943
62944         * modules/free: New file.
62945
62946 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62947
62948         * m4/free.m4: New file.
62949
62950 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62951
62952         * lib/minmax.h (MIN, MAX)
62953         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
62954         Omit the special code that used __typeof__, since we worry that
62955         it could be more trouble than it's worth.  See:
62956         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
62957         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
62958
62959         * lib/free.c: New file.
62960
62961 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
62962
62963         Trivial fixes to Makefile.am parts of module listings.
62964         * modules/strstr: Append strstr.h to lib_SOURCES.
62965         * modules/strcase: Likewise, for strcase.h.
62966
62967 2003-09-27  Karl Berry  <karl@gnu.org>
62968
62969         * config/mkinstalldirs: update from automake.
62970
62971 2003-09-26  Paul Eggert  <eggert@twinsun.com>
62972
62973         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
62974         (error_tail): Do not loop, reallocating temporary buffer, since
62975         the output cannot contain more wide characters than the input
62976         contains bytes, the size must be big enough already.  This avoids
62977         one potential size overflow calculation.  Check for size overflow
62978         when calculating temporary buffer size.  Free temporary buffer
62979         when done, if it was allocated with malloc; this plugs a memory
62980         leak.  Remove casts from void * to pointers, that are no longer
62981         needed now that we're assuming C89 or better.
62982
62983         Merge error changes from glibc.
62984
62985         * lib/error.c, error.h: Update copyright notice header to match glibc.
62986         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
62987         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
62988         Disable cancellation while printing error.
62989         * lib/error.h: Prepend __ to parameter names.
62990
62991 2003-09-26  Jim Meyering  <jim@meyering.net>
62992
62993         * lib/error.c (error_tail): Move some declarations
62994         into inner scope where the local variables are used.
62995
62996 2003-09-26  Bruno Haible  <bruno@clisp.org>
62997
62998         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
62999         stpncpy().
63000         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63001
63002 2003-09-26  Bruno Haible  <bruno@clisp.org>
63003
63004         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63005         (stpncpy): Define as alias for gnu_stpncpy.
63006         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63007
63008 2003-09-25  Simon Josefsson  <jas@extundo.com>
63009
63010         * lib/xgetdomainname.h: New file.
63011         * lib/xgetdomainname.c: New file.
63012
63013 2003-09-25  Simon Josefsson  <jas@extundo.com>
63014             Bruno Haible  <bruno@clisp.org>
63015
63016         * modules/getdomainname: New file.
63017         * modules/xgetdomainname: New file.
63018         * MODULES.html.sh (func_all_modules): Add getdomainname,
63019         xgetdomainname.
63020
63021 2003-09-25  Simon Josefsson  <jas@extundo.com>
63022             Bruno Haible  <bruno@clisp.org>
63023
63024         * m4/getdomainname.m4: New file.
63025
63026 2003-09-25  Simon Josefsson  <jas@extundo.com>
63027             Bruno Haible  <bruno@clisp.org>
63028
63029         * lib/getdomainname.h: New file.
63030         * lib/getdomainname.c: New file.
63031
63032 2003-09-25  Karl Berry  <karl@gnu.org>
63033
63034         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63035
63036 2003-09-25  Karl Berry  <karl@gnu.org>
63037
63038         * config/install-sh: update from automake.
63039
63040 2003-09-25  Bruno Haible  <bruno@clisp.org>
63041
63042         * modules/version-etc-2: New file, from modules/version-etc with
63043         modifications.
63044         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63045
63046 2003-09-25  Bruno Haible  <bruno@clisp.org>
63047
63048         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63049         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63050
63051 2003-09-24  Simon Josefsson  <jas@extundo.com>
63052
63053         * modules/xgethostname: Add xgethostname.h.
63054
63055 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63056
63057         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63058         the buffer associated with the argument.  Bug reported by
63059         Simon Josefsson.
63060
63061 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63062
63063         * README: Document assumptions that 'int' is at least 32 bits
63064         wide, that integer arithmetic is 2's complement without overflow,
63065         that there are no holes in integer values, that adding sizes of
63066         two nonoverlapping objects can't overflow, and that all-bits-zero
63067         yields scalar zero.  Fix spelling and capitalization typos.
63068
63069 2003-09-19  Karl Berry  <karl@gnu.org>
63070
63071         * lib/argp.h: update from libc.
63072
63073 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63074
63075         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63076         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63077         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63078
63079 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63080
63081         * gnulib-tool: Use "test -h", not "test -L", for portability
63082         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63083         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63084         (sed_extract_prog): Issue s commands one-by-one, rather than
63085         using \| in one s command.
63086
63087 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63088
63089         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63090         input error, instead of returning NULL the next time we are called
63091         (and therefore losing track of errno).
63092
63093 2003-09-16  Bruno Haible  <bruno@clisp.org>
63094
63095         * gnulib-tool (func_create_testdir): Warn about duplicated
63096         dependencies.
63097
63098 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63099
63100         * modules/argmatch, modules/fatal, modules/obstack,
63101         modules/xalloc, modules/xgethostname: Sort dependencies by
63102         importance, not alphabetically.
63103
63104 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63105
63106         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63107         fails, so that the caller gets the proper errno.
63108
63109         * lib/readutmp.c (read_utmp): Likewise.
63110         Check for fstat error.  Close stream and free storage
63111         when failing.
63112
63113 2003-09-14  Karl Berry  <karl@gnu.org>
63114
63115         * config/srclist.txt (strdup.c): disable for c89 changes.
63116
63117 2003-09-14  Jim Meyering  <jim@meyering.net>
63118
63119         * lib/getloadavg.c: Correct cpp indentation.
63120         * lib/strdup.c: Likewise.
63121         * lib/vasnprintf.c: Likewise.
63122
63123 2003-09-14  Bruno Haible  <bruno@clisp.org>
63124
63125         * modules/fwriteerror: New file.
63126         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63127
63128 2003-09-14  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/fwriteerror.h: New file.
63131         * lib/fwriteerror.c: New file.
63132
63133 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63134
63135         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63136         modules/xgethostname, modules/xalloc: Depend on exit.
63137
63138 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63139
63140         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63141
63142         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63143         and AC_MINIX, too, so that their extensions are available.
63144
63145         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63146         This macro has been superseded by gl_BACKUPFILE.
63147
63148         More patches to assume C89 or better.
63149
63150         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63151
63152         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63153         unconditionally.
63154         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63155         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63156         Include <string.h>, <stdlib.h> unconditionally.
63157         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63158         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63159         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63160         headers or for string.h.
63161         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63162         or strtoul.
63163
63164         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63165         headers.
63166         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63167         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63168         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63169         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63170         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63171         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63172         memcpy, memset.
63173         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63174         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63175         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63176         strtol.
63177         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63178         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63179         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63180         strtoul.
63181
63182 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63183
63184         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63185         * lib/obstack.c [!defined _LIBC]: Likewise.
63186         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63187         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63188         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63189
63190         More changes to assume C89 or better.
63191
63192         * lib/error.c (error_tail): Assume vprintf.
63193
63194         * lib/argmatch.c (getenv): Remove decl.
63195         * lib/progreloc.c (get_full_program_name): Define via prototype.
63196         * lib/setenv.c (clearenv): Likewise.
63197         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63198         needed.
63199         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63200         (malloc, memcpy): Remove decls.
63201         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63202         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63203         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63204         (memcpy): Remove macro.
63205         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63206         (__P): Remove.  All uses removed.
63207         (PTR): Remove.  All uses changed to void *.
63208         (CHAR_BIT, NULL): Remove.
63209         (spaces, zeros, memset_space, memset_zero)
63210         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63211         Remove.
63212         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63213         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63214         Define with prototype.
63215         Remove now-unnecessary prototype decl.
63216         (extra_args_spec): Assume ANSI C.  All uses changed.
63217         (extra_args_spec_iso): Remove.
63218         (my_strftime, emacs_strftimeu): Define via prototype.
63219         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63220         unconditionally.
63221         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63222         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
63223         (strtoul, strtol): Remove decls.
63224         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
63225         LONG_MAX): Remove.
63226         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63227         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
63228         (LOCALE_PARAM_PROTO): New macro.
63229         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
63230         (INTERNAL (strtol), strtol): Define with a prototype.
63231         (PARAMS): Remove.  All uses removed.
63232         * lib/tempname.c: Include <string.h> unconditionally.
63233         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
63234         * lib/xgethostname.c (main): Define with a prototype.
63235         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
63236         Include <stdlib.h> unconditionally.
63237         (calloc, malloc, realloc, free): Remove decls.
63238         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
63239         Include <stdlib.h> unconditionally.  Sort include file names.
63240         (strtod): Remove.
63241         (xstrtod): Define with a prototype.
63242         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
63243         (strtol, strtoul): Remove decls.
63244
63245 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63246
63247         More patches to assume C89 or better.
63248         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
63249         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
63250         string.h, memchr, STDC_HEADERS.
63251
63252 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63253
63254         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
63255         Include <stdlib.h>, <string.h> unconditionally.
63256         Remove now-unnecessary cast to char *.
63257         * lib/strnlen.c: Include <string.h> unconditionally.
63258         * lib/yesno.c (yesno): Define with a prototype.
63259
63260 2003-09-11  Bruno Haible  <bruno@clisp.org>
63261
63262         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63263
63264 2003-09-10  Jim Meyering  <jim@meyering.net>
63265
63266         * lib/error.c: Correct indentation of cpp directives.
63267
63268 2003-09-10  Bruno Haible  <bruno@clisp.org>
63269
63270         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63271         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63272         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63273         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63274         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63275         <stdlib.h> and <string.h> checks.
63276         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63277         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63278
63279 2003-09-10  Bruno Haible  <bruno@clisp.org>
63280
63281         * lib/strcspn.c: Include <string.h> unconditionally.
63282         * lib/strpbrk.c: Include <string.h> unconditionally.
63283         * lib/strstr.c: Include <string.h> unconditionally.
63284         * lib/unicodeio.c: Include <string.h> unconditionally.
63285         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63286         * lib/unsetenv.c: Likewise.
63287         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63288         * lib/yesno.c: Include <stdlib.h> unconditionally.
63289         (rpmatch): Add prototype.
63290
63291 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63292
63293         More patches to assume C89 or better.
63294         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63295         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63296         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63297         or for string.h.
63298         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63299         stdlib.h.
63300         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63301         C headers.
63302         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63303         string.h.
63304         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63305         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63306         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63307         or for string.h.
63308         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63309         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63310         C headers.
63311         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63312         memcpy.
63313         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63314         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63315         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63316         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63317         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63318         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63319         string.h, free.
63320         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63321         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63322         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63323         C headers, or for string.h.
63324         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63325         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63326         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63327         headers, memory.h, stdlib.h, string.h, strings.h.
63328         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63329         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63330         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63331         strchr.
63332         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63333         headers, memory.h, string.h.
63334         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63335         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63336         free.
63337         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63338         headers.
63339         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63340         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63341         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63342         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63343         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63344
63345 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63346
63347         More K&R removal.
63348
63349         * lib/acosl.c (main): Use a prototype.
63350         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63351         tanl.c: Likewise.
63352
63353         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63354
63355         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63356         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63357         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63358         with a prototype.
63359         * lib/getopt.c (const): Remove macro.
63360         Include <string.h> unconditionally.
63361         (my_index): Remove; all uses changed to strchr.
63362         (strlen): Remove decl.
63363         (exchange): Remove forward decl; no longer needed.
63364         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63365         Define with prototype.
63366         * lib/getopt1.c (const): Remove macro.
63367         (getopt_long, getopt_long_only, main): Define with prototype.
63368
63369         * lib/getugroups.c: Include <string.h> unconditionally.
63370
63371         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63372         (getusershell, setusershell, endusershell, readname, main):
63373         Define with prototypes.
63374
63375         * lib/group-member.c: Include group-member.h first.
63376         Include <stdlib.h> unconditionally.
63377
63378         * lib/hard-locale.c: Include hard-locale.h first.
63379         Include <stdlib.h>, <string.h> unconditionally.
63380
63381         * lib/hash.c (free, malloc): Remove decls.
63382         Include <stdlib.h> unconditionally.
63383
63384         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63385         (getenv): Do not declare.
63386
63387         * lib/idcache.c: Include <string.h> unconditionally.
63388
63389         * lib/long-options.c: Include long-options.h first, to test interface.
63390         Include <stdlib.h> unconditionally.
63391
63392         * lib/makepath.c: Include makepath.h first, to test interface.
63393         Include <stdlib.h> and <string.h> unconditionally.
63394
63395         * lib/linebuffer.c: Include <stdlib.h>.
63396         (free): Remove decl.
63397
63398         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
63399         stddef.h. rpl_malloc returns void *, not char *.
63400         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
63401         prototype.
63402
63403         * lib/md5.h: Include <limits.h> unconditionally.
63404         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
63405         (__P): Remove; all uses removed.
63406         * lib/md5.c: Include "md5.h" first.
63407         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63408         md5_buffer, md5_process_bytes, md5_process_block):
63409         Define with prototypes.
63410         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
63411         * lib/sha.c: Include "sha.h" first.
63412         Include <stdlib.h>, <string.h> unconditionally.
63413
63414         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
63415         * lib/memcmp.c (__ptr_t): Likewise.
63416         * lib/memrchr.c (__ptr_t): Likewise.
63417         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
63418         Include <string.h> unconditionally.
63419         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
63420         * lib/memchr.c: Include <stdlib.h> unconditionally.
63421         * lib/memchr.c (LONG_MAX): Remove.
63422         * lib/memrchr.c (LONG_MAX): Likewise.
63423         * lib/memchr.c (__memchr): Define via a prototype.
63424         * lib/memrchr.c (__memrchr): Likewise.
63425         * lib/memcmp.c (__P): Remove, and remove all uses.
63426         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
63427         Remove forward decls; no longer needed.
63428         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
63429         Use types required by C89 in prototype.
63430
63431         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
63432         * lib/savedir.c: Likewise.
63433         * lib/mkdir.c (free): Remove decl.
63434         * lib/rmdir.c (rmdir): Define with a prototype.
63435         * lib/savedir.c: Include savedir.h first, to test interface.
63436
63437         * lib/mktime.c (STDC_HEADERS): Remove.
63438         Include <stdlib.h>, <string.h> unconditionally.
63439
63440         * lib/modechange.c: Include <stdlib.h> unconditionally.
63441         (malloc): Remove decl.
63442
63443         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
63444         (free): Remove decl.
63445
63446         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
63447         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
63448         (This type really should be intptr_t, but that's a C99ism.)
63449         (_obstack_memcpy): Remove: all uses changed to memcpy.
63450         Include <string.h> unconditionally.
63451         (struct obstack): Assume __STDC__ for types of members
63452         chunkfun, freefun, extra_arg.
63453         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
63454         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
63455         obstack_begin, obstack_specify_allocation,
63456         obstack_specify_allocation_with_arg, obstack_chunkfun,
63457         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
63458         Remove unprototyped decls and the macros that use them.
63459         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
63460         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
63461         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
63462         (defined __STDC__ && __STDC__)]:
63463         Remove nonprototyped code.
63464         Include <stdlib.h> unconditionally.
63465         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
63466         _obstack_allocated_p, _obstack_free, obstack_free,
63467         _obstack_memory_used, print_and_abort):
63468         Define using prototypes.
63469         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
63470         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
63471         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
63472         obstack_next_free, obstack_object_size, obstack_room) [0]:
63473         Remove unused, unprototyped code.
63474
63475         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
63476
63477         * lib/physmem.c (physmem_total, physmem_available, main): Define
63478         with prototypes.
63479
63480         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
63481         (main): Define with a prototype.
63482
63483         * lib/posixver.c (getenv): Remove decl.
63484
63485         * lib/putenv.c (malloc): Returns void *, not char *.
63486         Include <string.h> unconditionally.
63487         (strchr, memcpy, NULL): Do not define.
63488
63489         * lib/readtokens.c: Include readtokens.h first, to test interface.
63490         Include <stdlib.h>, <string.h> unconditionally.
63491         (init_tokenbuffer): Define with a prototype.
63492
63493         * lib/regex.c (PARAMS): Remove.  All uses removed.
63494         All uses of _RE_ARGS removed, too.
63495         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63496         unconditionally.
63497         (bzero): Assume memset exists.
63498         (memcmp, memcpy, NULL): Remove.
63499         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
63500         char, or assignments to local vars of type signed char.
63501         (init_syntax_once, PREFIX(extract_number_and_incr),
63502         PREFIX(print_partial_compiled_pattern),
63503         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
63504         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
63505         PREFIX(regex_grow_registers), PREFIX(regex_compile),
63506         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
63507         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
63508         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
63509         wcs_compile_range, byte_compile_range, truncate_wchar,
63510         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
63511         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
63512         count_mbs_length, wcs_re_match_2_internal,
63513         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
63514         PREFIX(alt_match_null_string_p),
63515         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
63516         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
63517         regfree, PREFIX(extract_number)): Define with prototype.  Remove
63518         now-unnecessary declaration, if any.
63519         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
63520         regcomp, regexec):
63521         Remove now-unnecessary casts among pointer types.
63522         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
63523
63524         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
63525         (free): Remove decl.
63526
63527         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
63528
63529         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
63530         (free): Remove decl.
63531
63532         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
63533         * lib/xgetcwd.c: Likewise.
63534
63535         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
63536         (free): Remove decl.
63537
63538         * lib/strchrnul.c (strchrnul): Define with a prototype.
63539         Fix bug: c_in was not converted to char before searching.
63540
63541         The following changes are not K&R related:
63542
63543         * lib/group-member.h: Include <sys/types.h>, so that this file is
63544         self-contained.
63545         * lib/makepath.h: Likewise.
63546
63547         * lib/getusershell.c (readname, default_index, line_size, readname):
63548         Use size_t, not int, for sizes.
63549         (readname): If the size overflows, report an error instead of
63550         looping forever.
63551
63552 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63553
63554         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
63555         libc.
63556
63557 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63558
63559         * README: New section: portability guidelines.
63560
63561 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63562
63563         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
63564         C89 spec.
63565
63566 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63567
63568         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
63569
63570 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63571
63572         Assume C89 or better; remove K&R cruft.
63573         A few of these changes were first proposed by Derek Robert Price
63574         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
63575
63576         * lib/addext.c: Include <string.h> unconditionally.
63577         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
63578         Don't declare getenv or malloc.
63579
63580         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
63581         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
63582         (NULL): Remove.
63583         (find_stack_direction, alloca): Use prototypes.
63584
63585         * lib/atexit.c (atexit): Define using a prototype.
63586
63587         * lib/basename.c, dirname.c, stripslash.c:
63588         Include <string.h> unconditionally.
63589
63590         * lib/bcopy.c: Include <stddef.h>.
63591         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
63592
63593         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
63594
63595         * lib/error.h (error, error_at_line, error_print_progname)
63596         [! (defined (__STDC__) && __STDC__)]: Remove decls.
63597         * lib/error.c: Include error.h first, to check interface.
63598         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63599         (VA_START): Remove; all uses changeed to va_start.
63600         (exit, strerror): Remove decls.
63601         (error_print_progname): Prototype uncondionally.
63602         Don't include <errno.h>; no longer needed.
63603         (private_strerror): Remove.
63604         (error_tail): Always define.
63605         (error, error_at_line): Assume C89 or better; always use prototypes.
63606         * lib/fatal.c: Include "fatal.h" first, to test interface.
63607         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63608         (VA_START): Remove; all uses changed to va_start.
63609         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
63610         this case.
63611         (exit): Remove decl.
63612         (fatal): Prototype unconditionally.  Assume va_start works.
63613         Abort at end, to pacify gcc.
63614
63615         * lib/euidaccess.c (main): Define with a prototype.
63616
63617         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
63618
63619         * lib/exitfail.c: Include <stdlib.h> unconditionally.
63620
63621         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
63622         prototypes.
63623         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
63624         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
63625         (getenv): Remove decl.
63626         (fnmatch): Define using a prototype.
63627         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
63628         (FCT): Define using a prototype.
63629
63630         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
63631
63632         * lib/gethostname.c: Include <stddef.h>.
63633         (gethostname): Define with prototype.  Length is size_t, not int.
63634
63635 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63636
63637         Assume C89 or better; remove K&R cruft.
63638         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
63639         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
63640         string.h, getenv, malloc.
63641         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
63642         headers.
63643         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
63644         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
63645         do not check for strerror.
63646         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
63647         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
63648         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
63649         do not check for doprnt or vprintf.
63650         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
63651         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
63652
63653 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63654
63655         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
63656         getversion.c should have been removed then, but was accidentally
63657         preserved.
63658
63659         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
63660         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
63661
63662 2003-09-08  Karl Berry  <karl@gnu.org>
63663
63664         * config/config.sub, config.guess, srclistvars.sh: update from savannah
63665                 config, forget about prep.
63666
63667         * config/depcomp, missing: update from automake.
63668
63669 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63670
63671         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
63672         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63673
63674 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63675
63676         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
63677         copy_tm_result.  Bug reported by Simon Josefsson in
63678         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63679
63680 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63681
63682         * m4/time_r.m4: New file.
63683         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
63684         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
63685         is. Check for timegm declaration.
63686         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
63687         Do not check for gmtime_r.
63688         Replace mktime if __mktime_internal does not exist and if mktime
63689         hasn't been replaced already.
63690
63691 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63692
63693         * lib/time_r.c, lib/time_r.h: New files.
63694
63695         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
63696         __localtime_r.
63697         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
63698         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
63699
63700         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
63701         __gmtime_r.
63702         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
63703         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
63704         Include <time_r.h>.
63705
63706         * lib/timegm.c: Switch to glibc implementation, with the following
63707         changes:
63708         [defined HAVE_CONFIG_H]: Include <config.h>.
63709         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
63710         (__mktime_internal) [!defined _LIBC]: New decl.
63711         (__gmtime_r) [!defined _LIBC]: New macro and function.
63712         (timegm): Use a prototype, since gnulib assumes C89.
63713         Do not bother declaring tmp to be const, as it's not really usefu.
63714         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
63715         (timegm): Declare only if HAVE_DECL_TIMEGM.
63716
63717 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63718
63719         * MODULES.html.sh (func_all_modules): Add time_r.
63720         * modules/time_r: New file.
63721         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
63722         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
63723
63724 2003-09-03  Paul Eggert  <eggert@twinsun.com>
63725
63726         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
63727         Bug reported by Lute Kamstra in
63728         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
63729
63730         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
63731         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
63732         course with correspondingly smaller numbers for tomorrow and
63733         yesterday.  From Tadayoshi Funaba.  Originally installed into
63734         sh-utils on 1999-08-07, but the patch got lost (I guess during the
63735         coreutils merge?).
63736
63737 2003-08-31  Simon Josefsson  <jas@extundo.com>
63738
63739         * modules/timegm: New file.
63740         * MODULES.html.sh (func_all_modules): Add timegm.
63741
63742 2003-08-31  Simon Josefsson  <jas@extundo.com>
63743
63744         * m4/timegm.m4: New file.
63745
63746 2003-08-31  Simon Josefsson  <jas@extundo.com>
63747
63748         * lib/timegm.h: New file.
63749         * lib/timegm.c: New file.  Based on
63750         wget-1.8.2/src/http.c:mktime_from_utc.
63751
63752 2003-08-31  Karl Berry  <karl@gnu.org>
63753
63754         * lib/argp.h: update from libc.
63755
63756 2003-08-28  Bruno Haible  <bruno@clisp.org>
63757
63758         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
63759         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
63760         followed by '#define fnmatch fnmatch_posix' gives an error.
63761
63762 2003-08-28  Bruno Haible  <bruno@clisp.org>
63763
63764         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
63765         warning on QNX, which defines O_BINARY to 000000.
63766
63767 2003-08-27  Jim Meyering  <jim@meyering.net>
63768
63769         * m4/mkstemp.m4: Require that the system mkstemp be able to create
63770         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
63771         would fail after 32.  Reported by Danny Levinson.  Details here:
63772         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
63773
63774 2003-08-24  Bruno Haible  <bruno@clisp.org>
63775
63776         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
63777         MSVC7 <stdio.h> is included later.
63778
63779 2003-08-22  Simon Josefsson  <jas@extundo.com>
63780
63781         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
63782
63783 2003-08-20  Karl Berry  <karl@gnu.org>
63784
63785         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
63786
63787 2003-08-20  Bruno Haible  <bruno@clisp.org>
63788
63789         * modules/progname: New file.
63790         * MODULES.html.sh (func_all_modules): Add progname.
63791
63792 2003-08-20  Bruno Haible  <bruno@clisp.org>
63793
63794         * lib/progname.h: New file, from GNU gettext.
63795         * lib/progname.c: New file, from GNU gettext.
63796         * lib/progreloc.c: New file, from GNU gettext.
63797
63798 2003-08-19  Jim Meyering  <jim@meyering.net>
63799
63800         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
63801         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
63802
63803 2003-08-19  Bruno Haible  <bruno@clisp.org>
63804
63805         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
63806         more.
63807
63808 2003-08-19  Bruno Haible  <bruno@clisp.org>
63809
63810         * lib/xstrdup.c: Assume <string.h> exists.
63811
63812 2003-08-18  Paul Eggert  <eggert@twinsun.com>
63813
63814         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
63815         in makefile rules.
63816
63817 2003-08-18  Jim Meyering  <jim@meyering.net>
63818
63819         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
63820         * m4/lib-ld.m4: Likewise.
63821
63822 2003-08-18  Jim Meyering  <jim@meyering.net>
63823
63824         * lib/setenv.h: Indent nested cpp directive.
63825         * lib/vasnprintf.c: Remove trailing blanks.
63826
63827 2003-08-17  Simon Josefsson  <jas@extundo.com>
63828
63829         * modules/xstrndup: New file.
63830         * MODULES.html.sh (func_all_modules): Add xstrndup.
63831
63832 2003-08-17  Simon Josefsson  <jas@extundo.com>
63833
63834         * modules/argp: Fix autoconf macro name. Add more dependencies.
63835
63836 2003-08-17  Simon Josefsson  <jas@extundo.com>
63837
63838         * m4/xstrndup.m4: New file.
63839
63840 2003-08-17  Simon Josefsson  <jas@extundo.com>
63841
63842         * m4/argp.m4: New file.
63843
63844 2003-08-17  Simon Josefsson  <jas@extundo.com>
63845             Bruno Haible  <bruno@clisp.org>
63846
63847         * lib/xstrndup.h: New file.
63848         * lib/xstrndup.c: New file.
63849
63850 2003-08-17  Bruno Haible  <bruno@clisp.org>
63851
63852         * modules/strndup (Files, Include): Add lib/strndup.h.
63853
63854 2003-08-17  Bruno Haible  <bruno@clisp.org>
63855
63856         * modules/euidaccess (Files): Add lib/euidaccess.h.
63857
63858 2003-08-17  Bruno Haible  <bruno@clisp.org>
63859
63860         * lib/strndup.h: New file.
63861
63862 2003-08-17  Bruno Haible  <bruno@clisp.org>
63863
63864         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
63865         like AC_GNU_SOURCE.
63866         * modules/extensions (configure.ac): Comment out the invocation of
63867         gl_USE_SYSTEM_EXTENSIONS.
63868
63869 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63870
63871         Merges from coreutils, etc.
63872         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
63873         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
63874         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
63875         fixing a typo.
63876         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
63877         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
63878
63879 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63880
63881         Document merge from coreutils.
63882         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
63883         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
63884         * modules/utime: Add m4/utimes-null.m4.
63885
63886 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63887
63888         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
63889         space, undoing this 2003-08-12 change:
63890         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
63891
63892 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63893
63894         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
63895         strtoul.c from libc, undoing this 2003-08-12 change:
63896         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
63897
63898 2003-08-16  Jim Meyering  <jim@meyering.net>
63899
63900         Merges from coreutils.
63901         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
63902         prefix.  Adjust cache variables similarly.  Create 500 rather than
63903         just 300 files, to exercise bug on Darwin6.5, too.
63904         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
63905         $missing_dir.
63906         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
63907         AM_SYS_POSIX_TERMIOS.
63908         Reported by mkc@mathdogs.com.
63909         Also change use of $am_cv_sys_posix_termios
63910         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
63911         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
63912         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
63913         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
63914         in /proc/mounts until it finds one with matching device number.  This
63915         is unnecessary when the FILE argument *is* a mount point.  No stat call
63916         is necessary in that case.  So, disable the statvfs-testing code on
63917         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
63918         as RedHat bug# 84846.
63919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
63920         to 1MB, so as not to render systems with no stack size limit (e.g.,
63921         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
63922         Include <unistd.h>.  On some systems,
63923         it is required for the definition of _SC_PAGESIZE.
63924
63925 2003-08-16  Jim Meyering  <jim@meyering.net>
63926
63927         Merge from coreutils.
63928         * lib/xstrtoimax.c: #else #if -> #elif.
63929         * lib/xstrtoumax.c: Likewise.
63930
63931 2003-08-16  Jim Meyering  <jim@meyering.net>
63932
63933         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
63934         * m4/utimes.m4: Removed.
63935         * m4/utimes-null.m4: Renamed from utimes.m4.
63936
63937         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
63938         to 1MB, so as not to render systems with no stack size limit (e.g.,
63939         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
63940         Include <unistd.h>.  On some systems,
63941         it is required for the definition of _SC_PAGESIZE.
63942
63943 2003-08-16  Jim Meyering  <jim@meyering.net>
63944         and Paul Eggert  <eggert@cs.ucla.edu>
63945
63946         Merges from coreutils, etc.
63947
63948         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
63949         using the latest version from cvs.  This avoids problems with #line
63950         directives using a vendor (Sun) compiler.
63951         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
63952         Don't set GETGROUPS_LIB here; now it's
63953         done via getgroups.m4's wrapper function.
63954         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
63955         rather than just in sh-util/configure.in, so that the
63956         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
63957         same.
63958         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
63959         AC_FUNC_GETLOADAVG where to find getloadavg.c.
63960         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
63961         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
63962         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
63963         Remove code that is now done by the newly-required macros.
63964         Append $(EXEEXT) to DF_PROG.
63965         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
63966         Do not invoke or require the following here,
63967         since prereq.m4 or some gnulib .m4 now does this for us:
63968         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
63969         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
63970         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
63971         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
63972         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
63973         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
63974         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
63975         AC_FUNC_OBSTACK.
63976         Do not replace the following functions, as this is now the job
63977         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
63978         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
63979         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
63980         atexit getpass, strdup, getpagesize.
63981         Replace 'raise'.
63982         Do not check for the following functions, as this is now the job
63983         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
63984         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
63985         setregid.
63986         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
63987         Check for sys/sysctl.h.
63988         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
63989         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
63990         of checking for ssize_t ourselves.
63991
63992         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
63993         Require every macro that gnulib/modules/* suggests for us.
63994         (jm_PREREQ_ADDEXT): New macro.
63995         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
63996         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
63997
63998         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
63999         (gl_PHYSMEM): Use it.
64000         Also check for `table' function.
64001         Check for new headers and functions.
64002         Add check for sys/sysmp.h.
64003         With suggestions from Kaveh Ghazi.
64004         Ignore headers that are present but cannot be compiled.  This
64005         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64006         C 5.4.
64007
64008 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64009
64010         Document merge from coreutils.
64011         * modules/userspec: Depend on posixver.
64012         * modules/strftime: Depend on tzset.
64013
64014 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64015
64016         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64017         rather than tab, after '#' in shell-script copyright notices.
64018         Suggested by Bruno Haible.
64019
64020 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64021
64022         * config/srclist-update: Use three spaces, rather than tab, after '#'
64023         in shell-script copyright notices.  Suggested by Bruno Haible.
64024         Remove unnecessary parenthesization in regular expression.
64025
64026 2003-08-15  Jim Meyering  <jim@meyering.net>
64027
64028         Merge from coreutils.
64029         * lib/xgethostname.c: Include <stdlib.h>.
64030         (xghostname): Don't exit for anything other than memory-related
64031         failure; just return NULL.
64032         * lib/userspec.c: Include "posixver.h".
64033         (parse_user_spec): Accept `.' as a separator only
64034         in pre-POSIX-200112 mode.
64035         * lib/strtoimax.c: Use #elif rather than #else #if.
64036         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64037         Remove function, now that we can rely on a working tzset function.
64038         [!_LIBC]: Ensure that the required autoconf test has been run.
64039         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64040         Use underlying_strftime for %r.
64041         * lib/sha.c: Merge in some clean-up and optimization changes from
64042         glibc.
64043         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64044         Ensure that it is a multiple of 64.
64045         Rearrange loop exit tests so as to avoid performing an
64046         additional fread after encountering an error or EOF.
64047         * lib/realloc.c: Update copyright date.
64048
64049 2003-08-15  Jim Meyering  <jim@meyering.net>
64050         and Paul Eggert  <eggert@twinsun.com>
64051
64052         Merge from coreutils.
64053         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64054         member but strut utmpx does not.  Needed for AIX 4.3.3.
64055         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64056
64057 2003-08-15  Jim Meyering  <jim@meyering.net>
64058         and Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         Merges from coreutils, etc.
64061         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64062         Require gl_FUNC_TZSET_CLOBBER.
64063         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64064         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64065         members.
64066
64067 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64068
64069         Help the merge from coreutils.
64070         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64071         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64072         * m4/tzset.m4: Use it too.
64073
64074 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64075
64076         * modules/tzset: New file.
64077
64078 2003-08-14  Jim Meyering  <jim@meyering.net>
64079
64080         Merges from coreutils.
64081         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64082         variable names, rather than @FNMATCH_H@.
64083         * modules/alloca: Likewise for $(ALLOCA_H).
64084
64085         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64086         the three copies of the literal target, `fnmatch.h'.
64087         * modules/alloca (alloca.h): Likewise.
64088
64089 2003-08-14  Jim Meyering  <jim@meyering.net>
64090
64091         Merge from coreutils.
64092         * m4/tzset.m4: New file.
64093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64094         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64095         otherwise, AIX 5.1 systems would end up using the latter.
64096         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64097         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64098         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64099         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64100
64101 2003-08-14  Jim Meyering  <jim@meyering.net>
64102
64103         Merge from coreutils.
64104         * lib/obstack.h: Whitespace changes.
64105         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64106         and xcalloc return values.
64107         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64108         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64109         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64110         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64111         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64112         error from mntctl.
64113         Use mntctl's return value to drive the entry-processing loop, since
64114         we can't rely on the value of the vmt_length member in the last
64115         entry.  On some systems doing so could result in exhausting
64116         virtual memory.  Based in part on a patch from Mike Jetzer.
64117
64118 2003-08-14  Jim Meyering  <jim@meyering.net>
64119         and Paul Eggert  <eggert@twinsun.com>
64120
64121         Merges from coreutils, plus other fixes.
64122         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64123         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64124         for credits and details.  Thanks to Kaveh Ghazi for helping
64125         to keep these files in sync.
64126         (ARRAY_SIZE): Define it.
64127         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64128         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64129         (memcasecmp): Don't assume size_t fits in unsigned int.
64130         Remove casts and duplicate code.
64131         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64132         (memcpy): Remove definition.
64133         Merge in some clean-up and optimization changes from glibc.
64134         [BLOCKSIZE]: Move definition to top of file.
64135         Ensure that it is a multiple of 64.
64136         Rearrange loop exit tests so as to avoid performing an
64137         additional fread after encountering an error or EOF.
64138         * lib/md5.h (md5_uintptr): Define.
64139         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64140         return to the initial working directory.  Preserve errno
64141         for caller.
64142         * lib/idcache.c: Include "xalloc.h".
64143         (xmalloc, xrealloc): Remove decls.
64144         (getuser): Remove casts no longer required in C89.
64145         * lib/human.c: Include stdio.h, for sprintf.
64146         * lib/group-member.c: Include "xalloc.h".
64147         (xmalloc, xrealloc): Remove decls.
64148         (get_group_info): Remove casts no longer required in C89.
64149         * lib/getusershell.c (readname): Remove casts no longer required in
64150         C89.
64151         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64152         * lib/getline.c: Whitespace fix, from coreutils.
64153
64154 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64155
64156         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64157         Check for isascii.
64158
64159         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64160         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64161         Undo previous (whitespace-only) change.
64162
64163 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64164
64165         * lib/exclude.c: Include <ctype.h>
64166         (IN_CTYPE_DOMAIN): New macro.
64167         (is_space): New fn.
64168         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64169         and empty lines.
64170
64171         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64172         Undo previous (whitespace-only) change.
64173
64174 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64175
64176         * config/srclist-update: Change update back to the old behavior,
64177         leaving whitespace alone.  Use one 'sed' command rather than a
64178         pipeline.
64179         (fixlicense): Now a variable, not a function.
64180         (remove_trailing_blanks): Remove.
64181         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64182         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64183         Undo previous (whitespace-only) change.
64184
64185 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64186
64187         Merge from coreutils.
64188         * modules/euidaccess: Add lib_SOURCES, include for new
64189         file euidaccess.h
64190
64191 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64192
64193         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64194         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64195         Normalize leading white space and remove trailing white space.
64196
64197         Merge from coreutils
64198         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64199
64200         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64201         0.12.1.  These files are now being upgraded automatically by
64202         ../config/srclist-update.
64203
64204 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64205
64206         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64207         Normalize leading white space and remove trailing white space.
64208         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64209         notice, as per ../config/srclist-update.
64210
64211         Merge from coreutils.
64212         * lib/euidaccess.h: New file.
64213         * lib/euidaccess.c: Include it.
64214         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64215         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64216         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64217
64218 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64219
64220         * config/srclist-update: Add copyright notice.
64221         (remove_id_lines, remove_trailing_blanks): New constants.
64222         (fixfile): Use them to normalize spacing a bit in copied files.
64223         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64224         Normalize leading white space and remove trailing white space.
64225
64226         * config/texinfo.tex: Sync with texinfo.
64227
64228         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
64229         strtoul.c from libc, to merge coreutils whitespace changes.
64230
64231         * config/srclist.txt: Get the following m4 files from gettext:
64232         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
64233         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
64234         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
64235         wint_t.m4.
64236
64237 2003-08-12  Karl Berry  <karl@gnu.org>
64238
64239         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
64240         been made.
64241
64242 2003-08-11  Paul Eggert  <eggert@twinsun.com>
64243
64244         * modules/gnu-source, m4/gnu-source.m4:
64245         Remove; we're assuming Autoconf 2.54 or later now.
64246         Suggested by Bruno Haible.
64247         * MODULES.html.sh (func_all_modules): Remove gnu-source.
64248
64249 2003-08-11  Bruno Haible  <bruno@clisp.org>
64250
64251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
64252
64253 2003-08-11  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
64256         (vasnprintf): Use it instead of wcslen.
64257
64258 2003-08-11  Bruno Haible  <bruno@clisp.org>
64259
64260         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
64261         value to ensure that _Bool promotes to int. Use #define for _Bool when
64262         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64263
64264 2003-08-10  Karl Berry  <karl@gnu.org>
64265
64266         * lib/regex.h: update from libc (whitespace fix).
64267
64268 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64269
64270         Merge some files from coreutils.  These changes were
64271         originally made by Jim Meyering.
64272         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64273         many older Unixes require this.
64274         * lib/alloca.c (alloca): Remove cast to argument of free;
64275         no longer needed in C89.
64276         * lib/alloca_.h, regex.h: Fix white space to match
64277         what GNU indent does.
64278
64279 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64280
64281         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64282         apparently Emacs's Unicode mode got confused before my 2003-08-05
64283         checkin.
64284
64285 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64286
64287         * m4/extensions.m4: New file.
64288         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64289         Require gl_USE_SYSTEM_EXTENSIONS.
64290         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64291         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64292
64293 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64294
64295         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64296         * modules/extensions, modules/gnu-source: New files.
64297         * modules/timespec, modules/unlocked-io: Depend on extensions.
64298
64299 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64300
64301         * modules/restrict: New file.
64302         * MODULES.html.sh (func_all_modules): Add restrict.
64303         * modules/regex: Depend on restrict.
64304
64305 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64306
64307         * m4/restrict.m4: New file.
64308         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64309
64310 2003-08-07  Bruno Haible  <bruno@clisp.org>
64311
64312         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64313         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64314
64315 2003-08-07  Bruno Haible  <bruno@clisp.org>
64316
64317         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64318         makes the module 'getndelim2' compatible with the module 'getline'.
64319
64320 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64321
64322         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64323         byte with "\201" to avoid glitches when editing that source file
64324         with multi-gnome-terminal.
64325
64326 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64327
64328         * lib/bumpalloc.h: Remove.
64329
64330 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64331
64332         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64333         * modules/bumpalloc: Remove.
64334
64335 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64336
64337         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64338         GNU coding style.
64339
64340         Merge from coreutils.
64341         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64342         1. From glibc.
64343         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64344         from Karl Berry, implemented by Jim Meyering.
64345         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64346         from Dmitry V. Levin.
64347         Remove anachronistic cast of xrealloc.
64348         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64349         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64350         type. Otherwise, it wouldn't compile with at least /bin/cc on
64351         ymp-cray-unicos9.0.2.X.
64352         Combine two mostly-identical uses of alloca into one.
64353         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64354
64355 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64356
64357         [From Emacs.]
64358
64359         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64360         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64361         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64362         obsolete NLIST_NAME_UNION.
64363         [__GNU__]: Undef BSD and FSCALE.
64364         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64365
64366 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64367
64368         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64369         an enum type, so that it's guaranteed to promote to int.  See:
64370         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64371
64372 2003-08-03  Karl Berry  <karl@gnu.org>
64373
64374         * config/depcomp: update from automake.
64375
64376 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64377
64378         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64379         (strerror): Don't assume that a printable int fits in 14 bytes.
64380
64381 2003-07-31  Bruno Haible  <bruno@clisp.org>
64382
64383         * modules/getpass-gnu: New file.
64384         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64385
64386 2003-07-31  Bruno Haible  <bruno@clisp.org>
64387
64388         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64389
64390 2003-07-24  Karl Berry  <karl@gnu.org>
64391
64392         * config/missing: update from automake.
64393
64394 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
64395             Bruno Haible  <bruno@clisp.org>
64396
64397         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
64398         * lib/getline.c (getline, getdelim): Likewise.
64399         Remove _GNU_SOURCE define; now it's defined in config.h through
64400         m4/getline.m4.
64401
64402 2003-07-23  Karl Berry  <karl@gnu.org>
64403
64404         * config/config.sub: update from prep.
64405
64406 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64407
64408         * modules/xalloc (Depends-on): Add exitfail.
64409         * modules/xmemcoll: Likewise.
64410
64411 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64412
64413         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
64414         over-parenthesization in macros.
64415
64416         Sync with coreutils.
64417
64418         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
64419         required by C99.
64420
64421         Use `exit_failure' for xalloc and xmemcoll instead of their own
64422         private exit-failure variables.
64423         * lib/xalloc.h (xalloc_exit_failure): Remove.
64424         * lib/xmalloc.c: Likewise.  Include exitfail.h.
64425         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
64426         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
64427         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
64428         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
64429
64430 2003-07-20  Jim Meyering  <jim@meyering.net>
64431
64432         * modules/closeout (Depends-on): Add exitfail.
64433         Suggestion from Bruno Haible.
64434
64435 2003-07-19  Karl Berry  <karl@gnu.org>
64436
64437         * config/config.sub: update from prep.
64438
64439 2003-07-18  Paul Eggert  <eggert@twinsun.com>
64440
64441         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
64442         Remove.
64443         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
64444         to test that it can stand by itself.  Include "exitfail.h".
64445         Clients should set exit_failure instead.
64446         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
64447
64448 2003-07-18  Bruno Haible  <bruno@clisp.org>
64449
64450         * modules/getndelim2: New file.
64451         * modules/getline: Share files with module getndelim2.
64452         * modules/getnline: Depend on getndelim2 instead of sharing files with
64453         it. Add getnline.c to lib_SOURCES.
64454         * MODULES.html.sh (func_all_modules): Add getndelim2.
64455
64456 2003-07-18  Bruno Haible  <bruno@clisp.org>
64457
64458         * m4/getndelim2.m4: New file.
64459         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
64460         invoke gl_PREREQ_GETNDELIM2.
64461         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
64462         gl_PREREQ_GETNDELIM2.
64463         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
64464         gl_GETNDELIM2.
64465
64466 2003-07-18  Bruno Haible  <bruno@clisp.org>
64467
64468         * lib/getndelim2.h: New file.
64469         * lib/getndelim2.c: Make into a module of its own. Include config.h,
64470         getndelim2.h.
64471         (getndelim2): Make non-static. Change return type to ssize_t.
64472         * lib/getline.h: Change argument names.
64473         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
64474         * lib/getnline.c: Include getndelim2.h.
64475
64476 2003-07-18  Andreas Schwab  <schwab@suse.de>
64477
64478         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
64479
64480 2003-07-17  Karl Berry  <karl@gnu.org>
64481
64482         * config/config.sub: update from prep.
64483
64484 2003-07-17  Bruno Haible  <bruno@clisp.org>
64485
64486         * modules/getnline: New file.
64487         * modules/getline: Add lib/getndelim2.c to source file list.
64488         * MODULES.html.sh (func_all_modules): Add getnline.
64489
64490 2003-07-17  Bruno Haible  <bruno@clisp.org>
64491
64492         * m4/getnline.m4: New file.
64493
64494 2003-07-17  Bruno Haible  <bruno@clisp.org>
64495
64496         * m4/Makefile.am.in: Remove file.
64497         * m4/Makefile.am: Remove file.
64498         * m4/Makefile.in: Remove file.
64499
64500 2003-07-17  Bruno Haible  <bruno@clisp.org>
64501
64502         * lib/getnline.h: New file.
64503         * lib/getnline.c: New file.
64504         * lib/getndelim2.c: New file, extracted from getline.c.
64505         (getndelim2): Renamed from getdelim2, with added nmax argument.
64506         * lib/getline.c: Include getndelim2.c.
64507         (getdelim2): Moved out to getndelim2.c.
64508         (getline, getdelim): Update.
64509
64510 2003-07-17  Bruno Haible  <bruno@clisp.org>
64511
64512         * lib/Makefile.am: Remove file.
64513         * lib/Makefile.in: Remove file.
64514
64515 2003-07-17  Bruno Haible  <bruno@clisp.org>
64516
64517         * configure.in: Remove file.
64518         * Makefile.in: Remove file.
64519
64520 2003-07-17  Bruno Haible  <bruno@clisp.org>
64521
64522         * MODULES.html.sh: Put the </BODY> right before </HTML>.
64523
64524 2003-07-16  Karl Berry  <karl@gnu.org>
64525
64526         * config/srclist-update: was running fixlicense twice, which caused
64527                 texinfo.tex to be nullified for some reason.  Simplify,
64528                 $gplsrc is no longer needed as far as I can see?
64529
64530 2003-07-16  Jim Meyering  <jim@meyering.net>
64531
64532         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
64533
64534 2003-07-15  Paul Eggert  <eggert@twinsun.com>
64535
64536         * config/srclist.txt: Get the following files from gettext-runtime/intl
64537         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
64538         ref-del.sin.  From Bruno Haible.
64539         * config/srclist-update (fixfile): Change grep pattern again, since the
64540         previous fix didn't work (there was another trailing $).  Use
64541         '[$]' to escape the $s.
64542
64543 2003-07-15  Karl Berry  <karl@gnu.org>
64544
64545         * lib/vasnprintf.c: update from gettext.
64546
64547 2003-07-15  Karl Berry  <karl@gnu.org>
64548
64549         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
64550         gets expanded when surrounded by '$'.
64551
64552 2003-07-15  Jim Meyering  <jim@meyering.net>
64553
64554         * modules/save-cwd: Don't depend on error.  From Derek Price.
64555
64556 2003-07-15  Jim Meyering  <jim@meyering.net>
64557
64558         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
64559
64560 2003-07-14  Simon Josefsson  <jas@extundo.com>
64561
64562         * modules/mempcpy: New file.
64563         * MODULES.html.sh (func_all_modules): Add mempcpy.
64564
64565 2003-07-14  Simon Josefsson  <jas@extundo.com>
64566
64567         * m4/mempcpy.m4: New file.
64568
64569 2003-07-14  Simon Josefsson  <jas@extundo.com>
64570
64571         * lib/mempcpy.h: New file.
64572         * lib/mempcpy.c: New file.
64573
64574 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64575
64576         * modules/getdate, modules/posixtm: Depend on mktime.
64577
64578 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64579
64580         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
64581         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
64582         unicodeio.c, unicodeio.h, unlocked-io.h:
64583         Switch from LGPL to GPL.
64584
64585 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64586
64587         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
64588         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
64589         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
64590         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
64591         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
64592         updated automatically by ../config/srclist-update.  This changes
64593         their license from LPGL to GPL.
64594
64595 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64596
64597         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
64598         assumed to refer to the root of the most recent stable gettext version.
64599         * config/srclistvars.sh: Add defaults for eggert.
64600         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
64601         Match "This program" as well as "The program".  This is needed
64602         for gettext.
64603
64604 2003-07-14  Jim Meyering  <jim@meyering.net>
64605
64606         Don't emit diagnostics.  Let callers do that.
64607         * lib/save-cwd.c: Don't include "error.h".
64608         (save_cwd): Don't call error.  Ensure that errno is valid
64609         when returning nonzero.
64610
64611         * lib/save-cwd.h (restore_cwd): Update prototype.
64612         * lib/save-cwd.c (restore_cwd): Remove two parameters.
64613         Simplify.  Don't call error upon failure.  Let callers do that.
64614         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
64615         when auditing is enabled.  But don't bother updating the #if.
64616
64617 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
64618
64619         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
64620         it breaks C++ compilation.
64621         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
64622
64623 2003-07-10  Simon Josefsson  <jas@extundo.com>
64624
64625         * modules/strchrnul (Makefile.am): Add strchrnul.h.
64626
64627 2003-07-10  Jim Meyering  <jim@meyering.net>
64628
64629         * m4/clock_time.m4: Remove trailing blank.
64630         * m4/intmax_t.m4: Likewise.
64631
64632 2003-07-10  Jim Meyering  <jim@meyering.net>
64633
64634         * lib/vasnprintf.c: Remove trailing blanks.
64635         Make cpp indentation consistent.
64636
64637 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64638
64639         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
64640         posixver.c, strftime.c, strnlen.c, strverscmp.c:
64641         Switch from LGPL to GPL.
64642
64643 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64644
64645         * config/srclist.txt: Sort sublists.  Add
64646         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
64647         that differ from gnulib for one reason or another; we'd like this list
64648         to be smaller but for now let's document what we have.
64649
64650 2003-07-08  Paul Eggert  <eggert@twinsun.com>
64651
64652         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
64653         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
64654         and sweeter "eval x=$x".
64655         * config/srclist.txt: Get lib/argp* from glibc.
64656
64657 2003-07-07  Paul Eggert  <eggert@twinsun.com>
64658
64659         * lib/mktime.c: Fix some boundary cases and remove need for floating
64660         point.
64661
64662         Issue a compile-time diagnostic if time_t is floating point, or if
64663         two's complement arithmetic is not in effect, or if arithmetic
64664         right shift does not propagate the sign.  These assumptions were
64665         all in the original code but they weren't checked.
64666
64667         (TIME_T_MIDPOINT, verify): New macros.
64668         (__isleap): Remove; it has integer overflow problems.
64669         (leapyear): New function, without those problems.
64670         (ydhms_tm_diff): Remove; splitting into two parts.
64671         (ydhms_diff): New function, containing the arithmetic part of
64672         the old ydhms_tm_diff function.  Issue a compile-time
64673         diagnostic if we are not using C99 integer division.
64674         Avoid casts when possible.
64675         (guess_time_tm): New function, containing the checking part of
64676         the old ydhms_tm_diff function.  Return the new value, rather than
64677         the difference between it and the old.  Accept a new argument T
64678         so that *T specifies the old value.  Check for overflow in the result.
64679
64680         (__mktime_internal): Use a time_t offset, not a long int offset.
64681         This undoes the 2003-06-04 change, which is no longer needed now
64682         that we have better overflow checking.
64683         (localtime_offset): Likewise.
64684
64685         (__mktime_internal): Avoid harmful overflow on hosts where time_t
64686         and long are 64-bit but int is only 32-bit.
64687         (ydhms_diff): Use long int to store year1 and yday1.
64688         Issue a compile-time diagnostic if long int is not wide enough.
64689
64690         (__mktime_internal): Use long int to store adjusted year and yday.
64691         Use plain C rather than preprocessor commands, if that doesn't
64692         affect efficiency.
64693         Check for overflow (and try to repair) after each probe
64694         rather than checking only at the very end.  This avoids some bugs
64695         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
64696         does not equal GMT offset at maximum time).
64697         Use integer to check for overflow rather than floating point; this
64698         is more portable to non-IEEE hosts, and is a tad faster.
64699         When we detect that we are oscillating between two values,
64700         don't check whether tm_isdst has the requested value, since
64701         we already know the answer.  When tm_isdst has the wrong value,
64702         use a different heuristic to find the right one, based on the
64703         extreme values actually observed in practice in tz2003a,
64704         rather than the (overly optimistic) "previous 3 calendar quarters".
64705
64706         (not_equal_tm, print_tm, check_result): Use "const T" rather than
64707         "T const" to accommodate glibc style.
64708         (check_result): Use less-confusing report format.  "long" -> "long int.
64709         (main): Likewise.
64710         Don't loop if the iteration overflows time_t.
64711         Allow a negative step in the iteration.
64712
64713 2003-07-06  Karl Berry  <karl@gnu.org>
64714
64715         * config/depcomp: update from automake.
64716         * config/config.sub: update from prep.
64717
64718 2003-07-03  Karl Berry  <karl@gnu.org>
64719
64720         * config/config.guess: update from prep.
64721
64722 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64723
64724         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
64725         xreadlink.c now includes it unconditionally.
64726
64727 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64728
64729         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
64730         having it depend on HAVE_SYS_TYPES_H.
64731
64732 2003-07-01  Bruno Haible  <bruno@clisp.org>
64733
64734         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
64735         <sys/types.h> should be sufficient.
64736         Reported by Paul Eggert.
64737
64738 2003-06-26  Karl Berry  <karl@gnu.org>
64739
64740         * config/depcomp: update from automake.
64741
64742 2003-06-26  Bruno Haible  <bruno@clisp.org>
64743
64744         * modules/human: Depend on module stdbool.
64745
64746 2003-06-25  Bruno Haible  <bruno@clisp.org>
64747
64748         * modules/readlink: New file.
64749         * modules/xreadlink: Depend on it.
64750         * MODULES.html.sh (func_all_modules): Add readlink.
64751
64752 2003-06-25  Bruno Haible  <bruno@clisp.org>
64753
64754         * m4/readlink.m4: New file.
64755
64756 2003-06-25  Bruno Haible  <bruno@clisp.org>
64757
64758         * lib/readlink.c: New file.
64759
64760 2003-06-22  Karl Berry  <karl@gnu.org>
64761
64762         * config/srclist.txt: update mkinstalldirs from automake.
64763         * config/mkinstalldirs: update.
64764
64765 2003-06-22  Bruno Haible  <bruno@clisp.org>
64766
64767         Portability to mingw32.
64768         * m4/ssize_t.m4: New file, from GNU gettext.
64769         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
64770         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
64771
64772 2003-06-22  Bruno Haible  <bruno@clisp.org>
64773
64774         * modules/safe-read: Add m4/ssize_t.m4.
64775         * modules/xreadlink: Add m4/ssize_t.m4.
64776
64777 2003-06-20  Bruno Haible  <bruno@clisp.org>
64778
64779         Assume C89, so PARAMS isn't needed.
64780         * lib/unicodeio.h (PARAMS): Remove.
64781         * lib/unicodeio.c: Don't use PARAMS.
64782
64783 2003-06-18  Karl Berry  <karl@gnu.org>
64784
64785         * config/config.{guess,sub}: update from prep.
64786
64787 2003-06-18  Jim Meyering  <jim@meyering.net>
64788
64789         Merge changes from coreutils.
64790         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
64791         Remove explicit declarations of xmalloc and realloc.
64792         Include xalloc.h.
64793         (read_utmp): Remove anachronistic cast of xmalloc.
64794
64795 2003-06-17  Paul Eggert  <eggert@twinsun.com>
64796
64797         Assume C89, so PARAMS isn't needed.
64798         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
64799         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
64800         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
64801         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
64802         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
64803         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
64804         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
64805         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
64806         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
64807         lib/xstrtod.h, lib/xstrtol.h: Likewise.
64808         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
64809         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
64810         no longer needed. Anyway, config.h should always be included before any
64811         other file.
64812
64813 2003-06-11  Simon Josefsson  <jas@extundo.com>
64814
64815         * modules/sysexits: New file.
64816         * MODULES.html.sh (func_all_modules): Add sysexits.
64817
64818 2003-06-11  Simon Josefsson  <jas@extundo.com>
64819
64820         * lib/sysexit_.h: New file.
64821
64822 2003-06-11  Derek Price  <derek@ximbiot.com>
64823
64824         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
64825         necessary.
64826
64827 2003-06-11  Bruno Haible  <bruno@clisp.org>
64828
64829         * m4/sysexits.m4: New file.
64830
64831 2003-06-10  Simon Josefsson  <jas@extundo.com>
64832
64833         * lib/argp.h: New file, from glibc.
64834         * lib/argp-ba.c: New file, from glibc.
64835         * lib/argp-eexst.c: New file, from glibc.
64836         * lib/argp-fmtstream.c: New file, from glibc.
64837         * lib/argp-fmtstream.h: New file, from glibc.
64838         * lib/argp-fs-xinl.c: New file, from glibc.
64839         * lib/argp-help.c: New file, from glibc.
64840         * lib/argp-namefrob.h: New file, from glibc.
64841         * lib/argp-parse.c: New file, from glibc.
64842         * lib/argp-pv.c: New file, from glibc.
64843         * lib/argp-pvh.c: New file, from glibc.
64844         * lib/argp-xinl.c: New file, from glibc.
64845
64846 2003-06-10  Simon Josefsson  <jas@extundo.com>
64847
64848         * modules/strchrnul: New file.
64849
64850 2003-06-10  Simon Josefsson  <jas@extundo.com>
64851
64852         * modules/argp: New file.
64853
64854 2003-06-10  Simon Josefsson  <jas@extundo.com>
64855
64856         * m4/strchrnul.m4: New file.
64857
64858 2003-06-10  Simon Josefsson  <jas@extundo.com>
64859
64860         * lib/strchrnul.h: New file.
64861         * lib/strchrnul.c: New file.
64862
64863 2003-06-10  Bruno Haible  <bruno@clisp.org>
64864
64865         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
64866
64867 2003-06-07  Karl Berry  <karl@gnu.org>
64868
64869         * config/config.{guess,sub}: update from prep.
64870
64871 2003-06-07  Jim Meyering  <jim@meyering.net>
64872
64873         * modules/strtod: Use $(...) notation, not @...@ for
64874         AC_REPLACE'd variables.
64875         * modules/localcharset: Likewise.
64876
64877 2003-06-07  Jim Meyering  <jim@meyering.net>
64878
64879         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
64880         in place of my name in the copyright comment.
64881         Remove definition and uses of __P.
64882
64883         From coreutils.
64884         * lib/stat.c: Don't declare xmalloc explicitly.
64885         Instead, include "xalloc.h".
64886         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
64887         xrealloc, and xcalloc return values.
64888         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
64889         Improve comment.
64890         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
64891
64892 2003-06-07  Bruno Haible  <bruno@clisp.org>
64893
64894         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
64895         avoid AC_CONFIG_LINKS.
64896         * modules/fnmatch (Makefile.am): Use explicit creation rule for
64897         fnmatch.h, to avoid AC_CONFIG_LINKS.
64898         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
64899
64900 2003-06-07  Bruno Haible  <bruno@clisp.org>
64901
64902         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
64903         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
64904         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
64905         directory.
64906         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
64907         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
64908         directory.
64909
64910 2003-06-06  Jim Meyering  <jim@meyering.net>
64911
64912         Merge from coreutils.
64913         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
64914         Consolidate declarations and initializations of *_base* locals.
64915
64916         Merge from coreutils.
64917         This avoids a core dump on systems without GNU putenv,
64918         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
64919         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
64920         (unsetenv): New static function, from GNU libc.
64921         (rpl_putenv): Use it.
64922
64923         * lib/modechange.c: Remove trailing blanks.
64924
64925         Merge from coreutils.
64926         * lib/fsusage.c: Remove declaration of statfs.
64927         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
64928
64929         * lib/posixtm.c: Include <stdbool.h> unconditionally.
64930
64931 2003-06-06  Jim Meyering  <jim@meyering.net>
64932
64933         * lib/stdbool_.h: Renamed from stdbool.h.in.
64934
64935 2003-06-06  Jim Meyering  <jim@meyering.net>
64936             Bruno Haible  <bruno@clisp.org>
64937
64938         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
64939         Adjust Makefile.am snippet not to redirect directly to target.
64940         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
64941
64942 2003-06-05  Paul Eggert  <eggert@twinsun.com>
64943
64944         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
64945         mismatch, look in future quarters as well as past.  This fixes a
64946         bug when processing fall-backwards gaps immediately after a long
64947         period of daylight-saving time.
64948
64949         * lib/mktime.c: Assume freestanding C89 or better.
64950         (HAVE_LIMITS_H): Remove.  Assume it's 1.
64951         (__P): Remove; not used.
64952         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
64953         (mktime, not_equal_tm, print_tm, check_result,
64954         main): Use prototypes.  Use const * where appropriate.
64955         (main): Fix typo in testing code that uncovered by above changes.
64956         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
64957
64958 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64959
64960         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
64961         locale.h, localeconv.  This merges changes from coreutils.
64962
64963         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
64964         It can be removed after the next Autoconf is released.
64965         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
64966         needed.
64967
64968 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64969
64970         * lib/mktime.c: Fix Debian bug 177940
64971         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
64972         (localtime_offset): Now long int, not time_t, because we want it
64973         to be guaranteed to be signed.  All uses changed.
64974         (__mktime_internal): If overflow would occur when adding offset,
64975         don't add it.
64976
64977         Merge 'human' changes from coreutils.  Rewrite to support
64978         locale-specific notations like thousands separators.
64979         * lib/human.c: Simplify authorship notice.
64980         Include human.h immediately after config.h.
64981         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
64982         <limits.h>: Do not include, since human.h does.
64983         (SIZE_MAX, UINTMAX_MAX): New macros.
64984         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
64985         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
64986         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
64987         (power_letter): Renamed from suffixes.
64988         (generate_suffix_backwards): Remove.
64989         (adjust_value): Now takes int style (because of human.h changes)
64990         and long double value (for greater precision on some platforms).
64991         (group_number): New function.
64992         (human_readable): Use it.  Use integer options, not enum.
64993         Put the options before the sizes in the arg list.
64994         Support all the new options.
64995         The old human_readable function has been removed;
64996         use inttostr.h instead.
64997         (human_readable, default_block_size, humblock):
64998         Use uintmax_t, not int, for block sizes.
64999         (human_readable_inexact, block_size_types): Remove.
65000         (block_size_opts): New constant.
65001         (human_options): Renamed from human_block_size, with new signature
65002         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65003         * lib/human.h: Add copyright and authorship notice.
65004         Include <limits.h> and <stdbool.h> unconditionally.
65005         (PARAMS): Remove.  All uses removed.
65006         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65007         (enum human_inexact_style): Remove tag; now a nameless enum.
65008         (human_floor, human_ceiling, human_round_to_even): Now have
65009         values 2, 0, 1 rather than -1, 1, 0.
65010         (human_group_digits, human_suppress_point_zero, human_autoscale,
65011         human_base_1024, human_SI, human_B): New constants.
65012         (human_readable_inexact, human_block_size): Remove.
65013         (human_readable): Size args are now uintmax_t, not int.
65014         (human_options): New decl.
65015
65016         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65017         unnecessary now that we assume C89 or better.  This change
65018         imported from coreutils.
65019
65020         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65021         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65022         in the 2003-05-30 sync from glibc.
65023
65024         .h files should stand alone, but we shouldn't include <sys/types.h>
65025         if we can get away with just <stddef.h>.
65026
65027         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65028         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65029         rather than <sys/types.h>, as we merely need size_t.
65030         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65031         to get size_t.
65032         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65033         Include <stdio.h>, to get FILE.
65034         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65035         memcasecmp.h has included <stddef.h> and all we need is size_t.
65036         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65037         our interface, instead of including <sys/types.h>
65038
65039 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65040
65041         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65042         now, as glibc mktime is buggy on non-glibc systems.
65043
65044 2003-06-03  Karl Berry  <karl@gnu.org>
65045
65046         * config/config.sub: update from prep.
65047
65048 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65049
65050         [from coreutils]
65051         Fix some minor time-related bugs with POSIX time arguments.
65052         Some valid time stamps were being rejected (notably -1, and
65053         time stamps before 1900 on 64-bit hosts).  And some invalid
65054         time stamps were being accepted, e.g. September 31.
65055
65056         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65057         that we can return (time_t) -1 successfully.
65058         * lib/posixtm.c: Likewise.
65059         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65060         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65061         (t): Remove static var.
65062         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65063         of static var.  All uses changed.
65064         (year): Do not reject years before 1900; they can occur with
65065         64-bit time_t.
65066         (posix_time_parse): Do not check for out-of-range components;
65067         that is now the caller's responsibility, since our checks were
65068         only approximations.
65069         (posixtime): Use mktime to check for out-of-range components,
65070         since it knows them exactly.
65071         If mktime returns (time_t) -1, check whether an error actually occurred
65072         by invoking localtime on -1.
65073         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65074         posixtime failures better.
65075         Improve the test data (in comments only).
65076
65077 2003-06-02  Karl Berry  <karl@gnu.org>
65078
65079         * config/mkinstalldirs (version): new variable.
65080         (--version): new option.
65081         (usage): improve message.
65082
65083 2003-05-30  Karl Berry  <karl@gnu.org>
65084
65085         * lib/mktime.c: update from libc.
65086
65087 2003-05-30  Bruno Haible  <bruno@clisp.org>
65088
65089         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65090         * config/config.rpath: Upgrade to gettext-0.12.1.
65091
65092 2003-05-30  Bruno Haible  <bruno@clisp.org>
65093
65094         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65095         * m4/nls.m4: New file, from gettext-0.12.1.
65096         * m4/po.m4: New file, from gettext-0.12.1.
65097         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65098
65099 2003-05-30  Bruno Haible  <bruno@clisp.org>
65100
65101         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65102         * lib/localcharset.h: Likewise.
65103         * lib/localcharset.c: Likewise.
65104
65105 2003-05-29  Karl Berry  <karl@gnu.org>
65106
65107         * config/config.rpath: update from gettext.
65108
65109 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65110
65111         Assume the headers required for C89 freestanding compilers.
65112         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65113         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65114         * m4/human.m4 (gl_HUMAN): Likewise.
65115         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65116         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65117         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65118         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65119         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65120         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65121
65122 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65123
65124         Assume the headers required for C89 freestanding compilers.
65125         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65126         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65127         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65128         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65129         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65130         define, since <limits.h> is guaranteed to do that.
65131         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65132         * lib/exclude.c: Include <stdbool.h> unconditionally.
65133         * lib/tempname.c: Include <stddef.h> unconditionally.
65134         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65135         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65136         <stddef.h> does that.
65137         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65138         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65139         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65140         needed.
65141         * lib/xstrtol.c: Likewise.
65142         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65143         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65144
65145         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65146         warnings on some platforms.
65147
65148         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65149         arbitrarily.
65150
65151 2003-05-26  Jim Meyering  <jim@meyering.net>
65152
65153         Merge in a change from coreutils:
65154         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65155         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65156         that condition, rather than `-1' which is slightly misleading.
65157         Change the name of the cache variable to have the gl_ prefix.
65158         Prompted by a patch from Richard Dawe for DJGPP.
65159
65160 2003-05-24  Karl Berry  <karl@gnu.org>
65161
65162         * config/config.guess: update from prep.
65163
65164 2003-05-22  Karl Berry  <karl@gnu.org>
65165
65166         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65167
65168 2003-05-20  Karl Berry  <karl@gnu.org>
65169
65170         * config/config.guess: update from prep.
65171
65172 2003-05-18  Karl Berry  <karl@gnu.org>
65173
65174         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65175         might actually be set by the user.
65176
65177         * config/depcomp, install-sh, mdate-sh: update from automake.
65178
65179 2003-05-17  Bruno Haible  <bruno@clisp.org>
65180
65181         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65182         invalid expansion for AC_EGREP_CPP.
65183         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65184         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65185         Suggested by Akim Demaille <akim@epita.fr> in
65186         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65187
65188 2003-05-12  Jim Meyering  <jim@meyering.net>
65189
65190         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65191         the space-padded-by-default conversion specifiers, %e, %k, %l.
65192
65193 2003-05-12  Bruno Haible  <bruno@clisp.org>
65194
65195         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65196         the string is longer than 4 KB.
65197
65198 2003-05-11  Karl Berry  <karl@gnu.org>
65199
65200         * config/config.{guess,sub}: update from prep.
65201
65202 2003-05-09  Bruno Haible  <bruno@clisp.org>
65203
65204         * modules/error: Add m4/strerror_r.m4 to file list.
65205
65206 2003-05-03  Bruno Haible  <bruno@clisp.org>
65207
65208         Upgrade to Unicode-4.0.
65209         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65210         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65211         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65212         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65213         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65214         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65215         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65216         Change width of U+E0100..U+E01EF from 1 to 0.
65217
65218 2003-04-25  Jim Meyering  <jim@meyering.net>
65219
65220         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65221         of type size_t, not int.
65222
65223 2003-04-25  Bruno Haible  <bruno@clisp.org>
65224
65225         * lib/copy-file.c: Include <stddef.h>, for size_t.
65226
65227 2003-04-21  Paul Eggert  <eggert@twinsun.com>
65228
65229         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
65230         code which expansion is under static control.  Patch imported from
65231         Akim Demaille's patch to Bison; see
65232         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
65233
65234 2003-04-14  Bruno Haible  <bruno@clisp.org>
65235
65236         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
65237
65238 2003-04-11  Jim Meyering  <jim@meyering.net>
65239
65240         Merge changes from Coreutils.
65241
65242         2003-03-22  Jim Meyering  <jim@meyering.net>
65243
65244         * lib/strftime.c (widen): Cast alloca return value to proper type.
65245
65246         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
65247
65248         From GNU libc.
65249         * lib/strftime.c (my_strftime): Handle very large width
65250         specifications for numeric values correctly.  Improve checks for
65251         overflow.
65252
65253         2003-01-19  Jim Meyering  <jim@meyering.net>
65254
65255         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
65256         definitions.
65257         (nl_get_alt_digit) [! defined my_strftime]: Define.
65258         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
65259         _nl_get_alt_digit and _nl_get_walt_digit.
65260
65261         * lib/strftime.c (my_strftime): Merge in locale-related changes from
65262         libc. These changes have no effect outside of _LIBC.
65263
65264 2003-04-10  Bruno Haible  <bruno@clisp.org>
65265
65266         * modules/findprog: New file.
65267         * MODULES.html.sh (func_all_modules): Add it.
65268
65269 2003-04-10  Bruno Haible  <bruno@clisp.org>
65270
65271         * m4/findprog.m4: New file.
65272         * m4/eaccess.m4: New file.
65273
65274 2003-04-10  Bruno Haible  <bruno@clisp.org>
65275
65276         * lib/findprog.h: New file, from GNU gettext.
65277         * lib/findprog.c: New file, from GNU gettext.
65278
65279 2003-04-05  Jim Meyering  <jim@meyering.net>
65280
65281         Merge changes from Coreutils.
65282
65283         * lib/exclude.h (PARAMS): Remove definition and uses.
65284         * lib/exclude.c: Remove uses of `PARAMS'.
65285
65286         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65287         Add test-cases for DOS filenames. Declare program_name.
65288         (main): Set up program_name.  Patch by Rich Dawe.
65289
65290         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65291         error from mntctl.
65292         Use mntctl's return value to drive the entry-processing loop, since
65293         we can't rely on the value of the vmt_length member in the last
65294         entry.  On some systems doing so could result in exhausting
65295         virtual memory.  Based in part on a patch from Mike Jetzer.
65296
65297 2003-04-04  Bruno Haible  <bruno@clisp.org>
65298
65299         * modules/linebreak: New file.
65300         * MODULES.html.sh (func_all_modules): Add it.
65301
65302 2003-04-04  Bruno Haible  <bruno@clisp.org>
65303
65304         * m4/linebreak.m4: New file.
65305
65306 2003-04-04  Bruno Haible  <bruno@clisp.org>
65307
65308         * lib/linebreak.h: New file, from GNU gettext.
65309         * lib/linebreak.c: New file, from GNU gettext with slight
65310         modifications.
65311         * lib/lbrkprop.h: New file, from GNU gettext.
65312
65313 2003-04-03  Bruno Haible  <bruno@clisp.org>
65314
65315         * modules/utf8-ucs4: New file.
65316         * modules/utf16-ucs4: New file.
65317         * modules/ucs4-utf8: New file.
65318         * modules/ucs4-utf16: New file.
65319         * MODULES.html.sh (func_all_modules): Add them.
65320
65321 2003-04-03  Bruno Haible  <bruno@clisp.org>
65322
65323         * m4/utf-ucs4.m4: New file.
65324         * m4/ucs4-utf.m4: New file.
65325
65326 2003-04-03  Bruno Haible  <bruno@clisp.org>
65327
65328         * lib/utf8-ucs4.h: New file, from GNU gettext.
65329         * lib/utf16-ucs4.h: New file, from GNU gettext.
65330         * lib/ucs4-utf8.h: New file, from GNU gettext.
65331         * lib/ucs4-utf16.h: New file, from GNU gettext.
65332
65333 2003-04-02  Bruno Haible  <bruno@clisp.org>
65334
65335         * modules/binary-io: New file.
65336         * MODULES.html.sh (func_all_modules): Add it.
65337
65338 2003-04-02  Bruno Haible  <bruno@clisp.org>
65339
65340         * lib/binary-io.h: New file, from GNU gettext.
65341
65342 2003-04-01  Bruno Haible  <bruno@clisp.org>
65343
65344         * modules/pathname: New file.
65345         * MODULES.html.sh (func_all_modules): Add it.
65346
65347 2003-04-01  Bruno Haible  <bruno@clisp.org>
65348
65349         * lib/pathname.h: New file, from GNU gettext.
65350         * lib/concatpath.c: New file, from GNU gettext.
65351
65352 2003-03-30  Bruno Haible  <bruno@clisp.org>
65353
65354         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65355
65356 2003-03-30  Bruno Haible  <bruno@clisp.org>
65357
65358         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65359         function chown() doesn't exist.
65360
65361 2003-03-28  Bruno Haible  <bruno@clisp.org>
65362
65363         * modules/copy-file: New file.
65364         * MODULES.html.sh (func_all_modules): Add it.
65365
65366 2003-03-28  Bruno Haible  <bruno@clisp.org>
65367
65368         * m4/copy-file.m4: New file.
65369
65370 2003-03-28  Bruno Haible  <bruno@clisp.org>
65371
65372         * lib/copy-file.h: New file, from GNU gettext.
65373         * lib/copy-file.c: New file, from GNU gettext.
65374
65375 2003-03-18  Jim Meyering  <jim@meyering.net>
65376
65377         * lib/quote.c (quote_n): Fix typo in comment.
65378
65379 2003-03-18  Bruno Haible  <bruno@clisp.org>
65380
65381         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65382         checking.
65383         * m4/onceonly_2_57.m4: Likewise.
65384
65385 2003-03-17  Bruno Haible  <bruno@clisp.org>
65386
65387         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65388         (m4_quote): Remove macro.
65389         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65390
65391 2003-03-14  Jim Meyering  <jim@meyering.net>
65392
65393         Merge changes from Coreutils.
65394         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
65395         to be const, in order to avoid warnings.
65396         (obstack_room): Likewise.
65397         (obstack_empty_p): Likewise.
65398
65399 2003-03-14  Bruno Haible  <bruno@clisp.org>
65400
65401         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
65402         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
65403
65404 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65405
65406         Merge changes from Bison.
65407         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
65408         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
65409         when compiling Bison 1.875's `bitset bset = obstack_alloc
65410         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
65411         * lib/hash.c: Include <stdbool.h> unconditionally.
65412
65413 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65414
65415         * m4/onceonly.m4 (m4_quote): New macro.
65416         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
65417         Quote AC_FOREACH variable-expansions properly.
65418
65419 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65420
65421         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
65422
65423 2003-03-09  Paul Eggert  <eggert@twinsun.com>
65424
65425         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
65426         Reported by Bruce Becker; see:
65427         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
65428
65429 2003-03-03  Paul Eggert  <eggert@twinsun.com>
65430             Bruno Haible  <bruno@clisp.org>
65431
65432         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
65433         Reported by John Hughes, see
65434         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
65435
65436 2003-02-20  Bruno Haible  <bruno@clisp.org>
65437
65438         * MODULES.html.sh (func_all_modules): Add poll.
65439
65440 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65441
65442         * modules/poll: New file.
65443
65444 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65445
65446         * lib/poll_.h: New file.
65447         * lib/poll.c: New file.
65448
65449 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65450
65451         * m4/poll.m4: New file.
65452
65453 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65454
65455         * modules/mathl: New file.
65456
65457 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65458
65459         * lib/mathl.h: New file.
65460         * lib/acosl.c: New file.
65461         * lib/asinl.c: New file.
65462         * lib/atanl.c: New file.
65463         * lib/ceill.c: New file.
65464         * lib/cosl.c: New file.
65465         * lib/expl.c: New file.
65466         * lib/floorl.c: New file.
65467         * lib/frexpl.c: New file.
65468         * lib/ldexpl.c: New file.
65469         * lib/logl.c: New file.
65470         * lib/sincosl.c: New file.
65471         * lib/sinl.c: New file.
65472         * lib/sqrtl.c: New file.
65473         * lib/tanl.c: New file.
65474         * lib/trigl.c: New file.
65475         * lib/trigl.h: New file.
65476
65477 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65478
65479         * m4/mathl.m4: New file.
65480
65481 2003-02-18  Bruno Haible  <bruno@clisp.org>
65482
65483         * MODULES.html.sh (func_all_modules): Add mathl.
65484
65485 2003-02-17  Bruno Haible  <bruno@clisp.org>
65486
65487         * modules/mkdtemp: New module.
65488         * MODULES.html.sh (func_all_modules): Add it.
65489
65490 2003-02-17  Bruno Haible  <bruno@clisp.org>
65491
65492         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
65493
65494 2003-02-17  Bruno Haible  <bruno@clisp.org>
65495
65496         * lib/mkdtemp.h: New file, from GNU gettext.
65497         * lib/mkdtemp.c: New file, from GNU gettext.
65498
65499 2003-02-02  Jim Meyering  <jim@meyering.net>
65500
65501         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
65502         e.g. glibc-2.2.93.
65503
65504 2003-01-31  Bruno Haible  <bruno@clisp.org>
65505
65506         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
65507         'rpl_rename'.
65508         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
65509         'rpl_strnlen'.
65510         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
65511         'rpl_strtod'.
65512         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
65513         'rpl_utime'.
65514
65515 2003-01-31  Bruno Haible  <bruno@clisp.org>
65516
65517         * lib/rename.c: #undef rename before defining rpl_rename.
65518         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
65519
65520 2003-01-30  Bruno Haible  <bruno@clisp.org>
65521
65522         * modules/vasnprintf, modules/vasprintf: New modules.
65523         * MODULES.html.sh (func_all_modules): Add them.
65524
65525 2003-01-30  Bruno Haible  <bruno@clisp.org>
65526
65527         * m4/signed.m4: New file, from GNU gettext.
65528         * m4/longdouble.m4: New file, from GNU gettext.
65529         * m4/wchar_t.m4: New file, from GNU gettext.
65530         * m4/wint_t.m4: New file, from GNU gettext.
65531         * m4/vasnprintf.m4: New file.
65532         * m4/vasprintf.m4: New file.
65533
65534 2003-01-30  Bruno Haible  <bruno@clisp.org>
65535
65536         * lib/printf-args.h: New file, from GNU gettext.
65537         * lib/printf-args.c: New file, from GNU gettext.
65538         * lib/printf-parse.h: New file, from GNU gettext.
65539         * lib/printf-parse.c: New file, from GNU gettext.
65540         * lib/vasnprintf.h: New file, from GNU gettext.
65541         * lib/vasnprintf.c: New file, from GNU gettext.
65542         * lib/asnprintf.c: New file, from GNU gettext.
65543         * lib/vasprintf.h: New file, from GNU gettext with modifications.
65544         * lib/vasprintf.c: New file, from GNU gettext.
65545         * lib/asprintf.c: New file, from GNU gettext.
65546
65547 2003-01-29  Bruno Haible  <bruno@clisp.org>
65548
65549         * modules/stpncpy: New module.
65550         * MODULES.html.sh (func_all_modules): Add it.
65551
65552 2003-01-29  Bruno Haible  <bruno@clisp.org>
65553
65554         * m4/stpncpy.m4: New file.
65555
65556 2003-01-29  Bruno Haible  <bruno@clisp.org>
65557
65558         * lib/stpncpy.h: New file, from GNU gettext with modifications.
65559         * lib/stpncpy.c: New file, from GNU gettext with modifications.
65560
65561 2003-01-28  Bruno Haible  <bruno@clisp.org>
65562
65563         * modules/c-ctype: New module.
65564         * MODULES.html.sh (func_all_modules): Add it.
65565
65566 2003-01-28  Bruno Haible  <bruno@clisp.org>
65567
65568         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
65569         Paul Eggert.
65570         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
65571         Paul Eggert.
65572
65573 2003-01-27  Bruno Haible  <bruno@clisp.org>
65574
65575         * modules/xsetenv: New module.
65576         * MODULES.html.sh (func_all_modules): Add it.
65577
65578 2003-01-27  Bruno Haible  <bruno@clisp.org>
65579
65580         * lib/xsetenv.h: New file, from GNU gettext.
65581         * lib/xsetenv.c: New file, from GNU gettext.
65582
65583 2003-01-23  Jim Meyering  <jim@meyering.net>
65584
65585         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
65586         from working on systems without dirfd (at least Irix and OSF1/Tru64).
65587
65588 2003-01-23  Bruno Haible  <bruno@clisp.org>
65589
65590         * modules/minmax: New module.
65591         * MODULES.html.sh (func_all_modules): Add it.
65592
65593 2003-01-23  Bruno Haible  <bruno@clisp.org>
65594
65595         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
65596         Eggert.
65597
65598 2003-01-22  Bruno Haible  <bruno@clisp.org>
65599
65600         * modules/exit: New module.
65601         * MODULES.html.sh (func_all_modules): Add it.
65602
65603 2003-01-22  Bruno Haible  <bruno@clisp.org>
65604
65605         * lib/exit.h: New file, from GNU gettext.
65606
65607 2003-01-19  Bruno Haible  <bruno@clisp.org>
65608
65609         * gnulib-tool: Recognize option --extract-maintainer.
65610         (func_get_maintainer): New function.
65611         * modules/*: Add Maintainer entry.
65612
65613 2003-01-16  Jim Meyering  <jim@meyering.net>
65614
65615         * m4/regex.m4: The `regex' struct is both input and output.
65616         Initialize it before each use.  Patch by Tim Waugh.
65617
65618 2003-01-16  Bruno Haible  <bruno@clisp.org>
65619
65620         * MODULES.html.sh: Add a table of contents. Add the module name as
65621         leftmost column. Add hyperlinks.
65622
65623 2003-01-15  Bruno Haible  <bruno@clisp.org>
65624
65625         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
65626
65627 2003-01-15  Bruno Haible  <bruno@clisp.org>
65628
65629         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
65630         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
65631         suffix.
65632
65633 2003-01-15  Bruno Haible  <bruno@clisp.org>
65634
65635         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
65636
65637 2003-01-15  Bruno Haible  <bruno@clisp.org>
65638
65639         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
65640         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
65641
65642 2003-01-14  Jim Meyering  <jim@meyering.net>
65643
65644         * lib/same.c (same_name): Tweak a comment.
65645
65646 2003-01-14  Bruno Haible  <bruno@clisp.org>
65647
65648         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
65649         when a string comparison is sufficient.
65650
65651 2003-01-14  Bruno Haible  <bruno@clisp.org>
65652
65653         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
65654         'unsigned int'.
65655
65656 2003-01-14  Bruno Haible  <bruno@clisp.org>
65657
65658         * lib/hash-pjw.c: Add comment about low quality of this function.
65659
65660 2003-01-13  Bruno Haible  <bruno@clisp.org>
65661
65662         * modules/stpcpy: Distribute lib/stpcpy.h.
65663         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
65664
65665 2003-01-13  Bruno Haible  <bruno@clisp.org>
65666
65667         * modules/*: Add a description.
65668         * modules/strpbrk: Fix Makefile.am snippet.
65669         * modules/strtoimax: Fix dependencies.
65670         * modules/strtoumax: Likewise.
65671
65672 2003-01-13  Bruno Haible  <bruno@clisp.org>
65673
65674         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
65675         * modules/alloca (Makefile.am): All object files depend on alloca.h.
65676         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
65677
65678 2003-01-13  Bruno Haible  <bruno@clisp.org>
65679
65680         * gnulib-tool (func_create_testdir): Store config/* files in the main
65681         directory.
65682         * config.rpath: Move to ...
65683         * config/config.rpath: ... here.
65684         * modules/gettext: Contains config/config.rpath, not config.rpath.
65685         * modules/iconv: Likewise.
65686
65687 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65688
65689         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65690         to avoid collisions with libcurses and libreadline.
65691
65692         * m4/getstr.m4: Remove.
65693         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
65694
65695 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65696
65697         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65698         to avoid collisions with libcurses and libreadline.
65699
65700         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
65701         * lib/getstr.h, getstr.c: Remove.
65702         * lib/getline.c: Include "getline.h", to check interface.
65703         Move body of old getstr.c here: this defines MIN_CHUNK and
65704         declares getdelim2, which is renamed from getstr.
65705         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
65706
65707         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
65708         All uses changed.
65709         * lib/linebuffer.h: Likewise.
65710         (readline): Remove backward-compatibility macro.
65711
65712 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65713
65714         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65715         to avoid collisions with libcurses and libreadline.
65716         * getstr: Remove.
65717         * MODULES.html.sh: Remove getstr.
65718         * modules/getline: Depend on unlocked-io, not getstr.
65719
65720 2003-01-12  Jim Meyering  <jim@meyering.net>
65721
65722         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
65723
65724 2003-01-10  Bruno Haible  <bruno@clisp.org>
65725
65726         * modules/alloca: Change Makefile.am requirements. Simplify Include
65727         requirements. Add lib/alloca_.h to file list.
65728
65729 2003-01-10  Bruno Haible  <bruno@clisp.org>
65730
65731         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
65732
65733 2003-01-10  Bruno Haible  <bruno@clisp.org>
65734
65735         * lib/alloca_.h: New file.
65736         * lib/getdate.y: Unconditionally include alloca.h.
65737         * lib/makepath.c: Likewise.
65738         * lib/setenv.c: Likewise.
65739         * lib/userspec.c: Likewise.
65740
65741 2003-01-09  Karl Berry  <karl@gnu.org>
65742
65743         * MODULES.html.sh: include `dirname $0` in PATH, to find
65744         gnulib-tool.
65745
65746 2003-01-09  Bruno Haible  <bruno@clisp.org>
65747
65748         * modules/stdbool: Change configure.ac, Makefile.am requirements.
65749         Simplify Include requirements. Add lib/stdbool.h.in to file list.
65750
65751 2003-01-09  Bruno Haible  <bruno@clisp.org>
65752
65753         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
65754
65755 2003-01-09  Bruno Haible  <bruno@clisp.org>
65756
65757         * lib/stdbool.h.in: New file.
65758
65759 2003-01-09  Bruno Haible  <bruno@clisp.org>
65760
65761         * gnulib-tool (func_all_modules): Ignore files ending in ~.
65762         * MODULES.html.sh: Likewise.
65763
65764 2003-01-08  Jim Meyering  <jim@meyering.net>
65765
65766         * lib/full-write.c: Undefine and define-away `const' after inclusion
65767         of errno.h, not before.  Suggestion from Bruno Haible.
65768
65769 2003-01-08  Bruno Haible  <bruno@clisp.org>
65770
65771         * modules/full-read: Depend on full-write.
65772
65773 2003-01-08  Bruno Haible  <bruno@clisp.org>
65774
65775         * lib/safe-read.c: Include specification header first, to ensure its
65776         selfcontainedness.
65777         * lib/full-write.c: Likewise.
65778
65779 2003-01-07  Jim Meyering  <jim@meyering.net>
65780
65781         * lib/full-write.c: Rework so that it may serve to define full_read,
65782         too.
65783         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
65784
65785 2003-01-07  Bruno Haible  <bruno@clisp.org>
65786
65787         * lib/strtoimax.c: Include <stdint.h> as an alternative to
65788         <inttypes.h>.
65789         * lib/xstrtol.h: Likewise.
65790         * lib/xstrtoimax.c: Likewise.
65791         * lib/xstrtoumax.c: Likewise.
65792         * lib/human.h: Likewise.
65793
65794         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
65795         on systems that have <inttypes.h> but not <stdint.h>.
65796
65797 2003-01-07  Bruno Haible  <bruno@clisp.org>
65798
65799         * MODULES.html.sh: Add copyright notice.
65800         (missed_files): Omit CVS directory entries.
65801         (func_module): Make it work with sed-3.02.
65802         * MODULES.txt: Remove file.
65803
65804 2003-01-06  Jim Meyering  <jim@meyering.net>
65805
65806         * lib/version-etc.c: Update year in translatable copyright string.
65807
65808 2003-01-03  Karl Berry  <karl@gnu.org>
65809
65810         * config/config.{guess,sub}: update from prep.
65811
65812 2003-01-02  Karl Berry  <karl@gnu.org>
65813
65814         * doc/COPYING.DOC: belatedly updated to 1.2.
65815
65816 2003-01-01  Karl Berry  <karl@gnu.org>
65817
65818         * gnulib-tool (func_verify_module): report module name $module in
65819         error message, not $1.
65820         * gnulib-tool (create-testdir): don't complain if destdir couldn't
65821         be created, only if it doesn't exist.
65822         * gnulib-tool (last_checkin_date): don't expand the $Date here.
65823
65824 2002-12-31  Paul Eggert  <eggert@twinsun.com>
65825
65826         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
65827
65828 2002-12-31  Paul Eggert  <eggert@twinsun.com>
65829
65830         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
65831         memcmp if strcoll doesn't work.
65832
65833 2002-12-31  Bruno Haible  <bruno@clisp.org>
65834
65835         * lib/utime.c (utime_null): No need to call ftruncate if the file was
65836         nonempty.
65837
65838 2002-12-31  Bruno Haible  <bruno@clisp.org>
65839
65840         * lib/memcoll.c (STRCOLL): New macro.
65841         (memcoll): Use it.
65842
65843 2002-12-31  Bruno Haible  <bruno@clisp.org>
65844
65845         * lib/localcharset.h: New file.
65846         * lib/localcharset.c: Include it.
65847         * lib/unicodeio.c: Likewise.
65848
65849 2002-12-31  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
65852         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
65853
65854 2002-12-31  Bruno Haible  <bruno@clisp.org>
65855
65856         * lib/getline.h: Include <stddef.h>, for size_t.
65857
65858         * lib/unicodeio.h: Include <stddef.h>, for size_t.
65859         * lib/unicodeio.c: Don't include <stddef.h>.
65860
65861 2002-12-31  Bruno Haible  <bruno@clisp.org>
65862
65863         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
65864         HAVE_TM_ZONE.
65865
65866 2002-12-24  Karl Berry  <karl@gnu.org>
65867
65868         * config/config.guess: update from prep.
65869
65870 2002-12-24  Bruno Haible  <bruno@clisp.org>
65871
65872         General infrasructure.
65873         * m4/README: Rewritten.
65874         * m4/onceonly.m4: New file.
65875         * m4/onceonly_2_57.m4: New file.
65876
65877         Module atexit.
65878         * m4/atexit.m4: New file.
65879
65880         Module strtod.
65881         * m4/strtod.m4: New file.
65882
65883         Module strtol.
65884         * m4/strtol.m4: New file.
65885
65886         Module strtoul.
65887         * m4/strtoul.m4: New file.
65888
65889         Module memchr.
65890         * m4/memchr.m4: New file.
65891
65892         Module memcmp.
65893         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
65894         (jm_FUNC_MEMCMP): Invoke it.
65895
65896         Module memcpy.
65897         * m4/memcpy.m4: New file.
65898
65899         Module memmove.
65900         * m4/memmove.m4: New file.
65901
65902         Module memset.
65903         * m4/memset.m4: New file.
65904
65905         Module strcspn.
65906         * m4/strcspn.m4: New file.
65907
65908         Module strpbrk.
65909         * m4/strpbrk.m4: New file.
65910
65911         Module strstr.
65912         * m4/strstr.m4: New file.
65913
65914         Module strerror.
65915         * m4/strerror.m4: New file.
65916
65917         Module mktime.
65918         * m4/mktime.m4: Renamed from jm-mktime.m4.
65919         (gl_PREREQ_MKTIME): New macro.
65920         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
65921
65922         Module malloc.
65923         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
65924         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
65925         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
65926
65927         Module realloc.
65928         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
65929         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
65930         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
65931
65932         Module strftime.
65933         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
65934         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
65935         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
65936         gl_TM_GMTOFF.
65937         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
65938
65939         Module xalloc.
65940         * m4/xalloc.m4: New file.
65941
65942         Module alloca.
65943         * m4/alloca.m4: New file.
65944
65945         Module putenv.
65946         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
65947         (jm_FUNC_PUTENV): Invoke it.
65948
65949         Module setenv.
65950         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
65951         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
65952         when invoked twice.
65953         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
65954         gt_FUNC_SETENV.
65955
65956         Module memrchr.
65957         * m4/memrchr.m4: New file.
65958
65959         Module stpcpy.
65960         * m4/stpcpy.m4: New file.
65961
65962         Module strcase.
65963         * m4/strcase.m4: New file.
65964
65965         Module strdup.
65966         * m4/strdup.m4: New file.
65967
65968         Module strnlen.
65969         * m4/strnlen.m4: New file.
65970
65971         Module strndup.
65972         * m4/strndup.m4: New file.
65973
65974         Module xstrtod.
65975         * m4/xstrtod.m4: New file.
65976
65977         Module xstrtol.
65978         * m4/xstrtol.m4: New file.
65979
65980         Module getdate.
65981         * m4/getdate.m4: New file.
65982
65983         Module unlocked-io.
65984         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
65985         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
65986         * m4/jm-glibc-io.m4n: Remove file.
65987
65988         Module long-options.
65989         * m4/long-options.m4: New file.
65990
65991         Module md5.
65992         * m4/md5.m4: New file.
65993
65994         Module sha.
65995         * m4/sha.m4: New file.
65996
65997         Module getstr.
65998         * m4/getstr.m4: New file.
65999
66000         Module getline.
66001         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66002         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66003         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66004         simply getline. Infoke gl_PREREQ_GETLINE.
66005
66006         Module obstack.
66007         * m4/obstack.m4: New file.
66008
66009         Module hash.
66010         * m4/hash.m4: New file.
66011
66012         Module readtokens.
66013         * m4/readtokens.m4: New file.
66014
66015         Module strverscmp.
66016         * m4/strverscmp.m4: New file.
66017
66018         Module stdbool.
66019         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66020         OSF/1.
66021
66022         Module strtoll.
66023         * m4/strtoll.m4: New file.
66024
66025         Module strtoull.
66026         * m4/strtoull.m4: New file.
66027
66028         Module strtoimax.
66029         * m4/strtoimax.m4: New file.
66030
66031         Module strtoumax.
66032         * m4/strtoumax.m4: New file.
66033
66034         Module xstrtoimax.
66035         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66036         jm_AC_PREREQ_XSTRTOIMAX.
66037         Moved the strtol prerequisites to strtol.m4.
66038         Moved the strtoll prerequisites to strtoll.m4.
66039         Moved the strtoimax prerequisites to strtoimax.m4.
66040
66041         Module xstrtoumax.
66042         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66043         jm_AC_PREREQ_XSTRTOUMAX.
66044         Moved the strtoul prerequisites to strtoul.m4.
66045         Moved the strtoull prerequisites to strtoull.m4.
66046         Moved the strtoumax prerequisites to strtoumax.m4.
66047
66048         Module chown.
66049         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66050         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66051
66052         Module dup2.
66053         * m4/dup2.m4: New file.
66054
66055         Module ftruncate.
66056         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66057         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66058
66059         Module getgroups.
66060         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66061         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66062
66063         Module gettimeofday.
66064         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66065         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66066         gl_PREREQ_GETTIMEOFDAY.
66067
66068         Module mkdir.
66069         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66070         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66071
66072         Module mkstemp.
66073         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66074         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66075         jm_AC_TYPE_UINTMAX_T.
66076         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66077
66078         Module stat.
66079         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66080         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66081
66082         Module lstat.
66083         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66084         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66085
66086         Module timespec.
66087         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66088         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66089         * m4/st_mtim.m4: Indentation.
66090
66091         Module nanosleep.
66092         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66093         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66094         gl_PREREQ_NANOSLEEP.
66095
66096         Module regex.
66097         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66098         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66099         (gl_REGEX): New macro.
66100
66101         Module rename.
66102         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66103         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66104
66105         Module rmdir.
66106         * m4/rmdir.m4: New file.
66107
66108         Module utime.
66109         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66110         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66111         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66112
66113         Module dirname.
66114         * m4/dirname.m4: New file.
66115
66116         Module getopt.
66117         * m4/getopt.m4: New file.
66118
66119         Module unistd-safer.
66120         * m4/unistd-safer.m4: New file.
66121
66122         Module fnmatch.
66123         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66124         declaration.
66125         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66126         (gl_FUNC_FNMATCH_POSIX): New macro.
66127         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66128         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66129         simply fnmatch.
66130
66131         Module exclude.
66132         * m4/exclude.m4: New file.
66133
66134         Module human.
66135         * m4/human.m4: New file.
66136
66137         Module acl.
66138         * m4/acl.m4: Nop.
66139
66140         Module backupfile.
66141         * m4/backupfile.m4: New file.
66142         * m4/d-ino.m4: Indentation.
66143
66144         Module fsusage.
66145         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66146         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66147         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66148
66149         Module dirfd.
66150         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66151         requirements.
66152
66153         Module euidaccess.
66154         * m4/euidaccess.m4: New file.
66155
66156         Module file-type.
66157         * m4/file-type.m4: New file.
66158
66159         Module fileblocks.
66160         * m4/fileblocks.m4: New file.
66161
66162         Module filemode.
66163         * m4/filemode.m4: New file.
66164
66165         Module isdir.
66166         * m4/isdir.m4: New file.
66167
66168         Module lchown.
66169         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66170         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66171
66172         Module makepath.
66173         * m4/makepath.m4: New file.
66174
66175         Module modechange.
66176         * m4/modechange.m4: New file.
66177
66178         Module mountlist.
66179         * m4/mountlist.m4: New file.
66180         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66181         Indentation.
66182
66183         Module path-concat.
66184         * m4/path-concat.m4: New file.
66185
66186         Module pathmax.
66187         * m4/pathmax.m4: New file.
66188
66189         Module same.
66190         * m4/same.m4: New file.
66191
66192         Module save-cwd.
66193         * m4/save-cwd.m4: New file.
66194
66195         Module savedir.
66196         * m4/savedir.m4: New file.
66197
66198         Module xgetcwd.
66199         * m4/xgetcwd.m4: New file.
66200         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66201
66202         Module xreadlink.
66203         * m4/xreadlink.m4: New file.
66204
66205         Module safe-read.
66206         * m4/safe-read.m4: New file.
66207
66208         Module safe-write.
66209         * m4/safe-write.m4: New file.
66210
66211         Module closeout.
66212         * m4/closeout.m4: New file.
66213
66214         Module stdio-safer.
66215         * m4/stdio-safer.m4: New file.
66216
66217         Module getpass.
66218         * m4/getpass.m4: New file.
66219
66220         Module getugroups.
66221         * m4/getugroups.m4: New file.
66222
66223         Module group-member.
66224         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
66225         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
66226
66227         Module idcache.
66228         * m4/idcache.m4: New file.
66229
66230         Module userspec.
66231         * m4/userspec.m4: New file.
66232
66233         Module gettime.
66234         * m4/clock_time.m4: New file.
66235         * m4/gettime.m4: New file.
66236
66237         Module settime.
66238         * m4/settime.m4: New file.
66239
66240         Module posixtm.
66241         * m4/posixtm.m4: New file.
66242
66243         Module gethostname.
66244         * m4/gethostname.m4: New file.
66245
66246         Module canon-host.
66247         * m4/canon-host.m4: New file.
66248
66249         Module gettext.
66250         * m4/codeset.m4: New file, from gettext-0.11.5.
66251         * m4/gettext.m4: New file, from gettext-0.11.5.
66252         * m4/glibc21.m4: New file, from gettext-0.11.5.
66253         * m4/iconv.m4: New file, from gettext-0.11.5.
66254         * m4/intdiv0.m4: New file, from gettext-0.11.5.
66255         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
66256         * m4/inttypes.m4: New file, from gettext-0.11.5.
66257         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
66258         * m4/isc-posix.m4: New file, from gettext-0.11.5.
66259         * m4/lcmessage.m4: New file, from gettext-0.11.5.
66260         * m4/lib-ld.m4: New file, from gettext-0.11.5.
66261         * m4/lib-link.m4: New file, from gettext-0.11.5.
66262         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66263         * m4/progtest.m4: New file, from gettext-0.11.5.
66264         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66265         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66266         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66267
66268         Module localcharset.
66269         * m4/localcharset.m4: New file.
66270
66271         Module hard-locale.
66272         * m4/hard-locale.m4: New file.
66273
66274         Module mbswidth.
66275         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66276         onceonly macros.
66277         * m4/mbrtowc.m4: Add comment.
66278
66279         Module memcasecmp.
66280         * m4/memcasecmp.m4: New file.
66281
66282         Module memcoll.
66283         * m4/memcoll.m4: New file.
66284
66285         Module unicodeio.
66286         * m4/unicodeio.m4: New file.
66287
66288         Module rpmatch.
66289         * m4/rpmatch.m4: New file.
66290
66291         Module yesno.
66292         * m4/yesno.m4: New file.
66293
66294         Module exitfail.
66295         * m4/exitfail.m4: New file.
66296
66297         Module c-stack.
66298         * m4/c-stack.m4 (gl_C_STACK): New macro.
66299         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66300
66301         Module error.
66302         * m4/error.m4 (gl_ERROR): New macro.
66303         (jm_PREREQ_ERROR): Use onceonly macros.
66304
66305         Module fatal.
66306         * m4/fatal.m4: New file.
66307
66308         Module getloadavg.
66309         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66310         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66311
66312         Module getpagesize.
66313         * m4/getpagesize.m4: New file.
66314
66315         Module getusershell.
66316         * m4/getusershell.m4: New file.
66317
66318         Module physmem.
66319         * m4/physmem.m4: New file.
66320
66321         Module posixver.
66322         * m4/posixver.m4: New file.
66323
66324         Module quotearg.
66325         * m4/quotearg.m4: New file.
66326
66327         Module quote.
66328         * m4/quote.m4: New file.
66329
66330         Module readutmp.
66331         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66332
66333         Module sig2str.
66334         * m4/sig2str.m4: New file.
66335
66336         Other.
66337         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66338         ulonglong.m4.
66339         * m4/intmax_t.m4: New file.
66340         * m4/d-type.m4: Indentation.
66341         * m4/jm-macros.m4: Update.
66342         * m4/prereq.m4 (jm_PREREQ): Update.
66343         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66344         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66345         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66346         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66347         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66348         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66349         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66350         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66351         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66352         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66353         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66354         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66355         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66356         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66357         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66358         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66359         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66360         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66361         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66362
66363 2002-12-24  Bruno Haible  <bruno@clisp.org>
66364
66365         * MODULES.txt: Update according to m4/ changes.
66366
66367         Module gettext.
66368         * config.rpath: New file, from gettext-0.11.5.
66369
66370         * modules/*: New module descriptions.
66371         * gnulib-tool: New file.
66372         * MODULES.html.sh: New file.
66373
66374 2002-12-21  Karl Berry  <karl@gnu.org>
66375
66376         * doc/fdl.texi: update to version 1.2.
66377
66378 2002-12-19  Karl Berry  <karl@gnu.org>
66379
66380         * config/config.guess: update from prep.
66381
66382 2002-12-18  Bruno Haible  <bruno@clisp.org>
66383
66384         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66385         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66386
66387 2002-12-17  Bruno Haible  <bruno@clisp.org>
66388
66389         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66390         stdlib.h, string.h.
66391
66392 2002-12-17  Bruno Haible  <bruno@clisp.org>
66393
66394         * lib/canon-host.c (strdup): Remove unused declaration.
66395
66396         * lib/fsusage.c: Include full_read.h.
66397         (get_fs_usage): Use full_read instead of safe_read.
66398
66399         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
66400
66401 2002-12-12  Karl Berry  <karl@gnu.org>
66402
66403         * config/config.guess: update from prep.
66404
66405 2002-12-11  Bruno Haible  <bruno@clisp.org>
66406
66407         * m4/setenv.m4: New file, from gettext-0.11.5.
66408
66409 2002-12-11  Bruno Haible  <bruno@clisp.org>
66410
66411         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
66412         not unsetenv().
66413         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
66414         modifications:
66415
66416         2002-12-11  Bruno Haible  <bruno@clisp.org>
66417
66418                 * setenv.c (alloca): Fall back to malloc.
66419                 (freea): New macro.
66420                 (setenv): Use freea() to free memory allocated with alloca().
66421
66422         2002-11-13  Bruno Haible  <bruno@clisp.org>
66423
66424                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
66425                 function declarations.
66426                 * unsetenv.c (unsetenv): Likewise.
66427
66428         2002-03-04  Bruno Haible  <bruno@clisp.org>
66429
66430                 Portability to AIX 4.3.3.
66431                 * unsetenv.c: New file, extracted from setenv.c.
66432                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66433
66434         2001-12-20  Bruno Haible  <bruno@clisp.org>
66435
66436                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
66437                 use malloc instead. For SunOS 4.
66438
66439         2001-12-11  Bruno Haible  <bruno@clisp.org>
66440
66441                 * setenv.c: Declare alloca.
66442                 (compar_fn_t): New typedef.
66443                 (KNOWN_VALUE, STORE_VALUE): Use it.
66444
66445         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
66446         setenv.h.
66447
66448 2002-12-10  Paul Eggert  <eggert@twinsun.com>
66449
66450         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
66451         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
66452         Choose values that are less likely to collide with system fnmatch
66453         options.
66454         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
66455         defined (e.g., a pure POSIX system).
66456         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
66457         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
66458
66459 2002-12-06  Paul Eggert  <eggert@twinsun.com>
66460
66461         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
66462         a pain in practice to deal with generated m4 files.  This change
66463         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
66464
66465         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
66466         and jm-glibc-io.m4, as they are no longer a special case.
66467         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
66468         kludge and the auto-generation stuff.  Check only whether the
66469         functions are declared, not whether they exist, since older hosts
66470         that don't declare the functions can't use the optimization anyway.
66471
66472 2002-12-06  Jim Meyering  <jim@meyering.net>
66473
66474         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
66475
66476         Merge in changes from libc's misc/error.c, in preparation
66477         for the merge of gnulib's changes back into libc.
66478
66479         * lib/error.c (_): Define only if not already defined.
66480         Move definition to follow all #include directives.
66481         Include unlocked-io.h only if !_LIBC.
66482         [_LIBC]: Include <libio/libioP.h>.
66483         [USE_IN_LIBIO]: Include <libio/iolibio.h>
66484         (fflush): Tweak definition to use INTUSE.
66485         (putc): Define.
66486
66487 2002-12-05  Paul Eggert  <eggert@twinsun.com>
66488
66489         * lib/alloca.c [defined emacs]: Include "lisp.h".
66490         (xalloc_die) [defined emacs]: New macro.
66491         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
66492         [! defined emacs]: Include <xalloc.h>.
66493         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
66494         (pointer): Typedef to POINTER_TYPE *.
66495         (malloc): Remove decl; we now always use xmalloc.
66496         (alloca): Use old-style definition, since Emacs needs this.
66497         Check for arithmetic overflow when computing combined size.
66498
66499 2002-12-04  Paul Eggert  <eggert@twinsun.com>
66500
66501         Do not generate unlocked-io.h automatically, since it's easier to
66502         maintain it by hand.
66503
66504         * lib/unlocked-io.h: New file, from GNU diffutils,
66505         but with proper copyright notice and attribution.
66506         * lib/gen-uio: Remove.
66507         * lib/Makefile.am: Add copyright notice.
66508         (libfetish_a_SOURCES): Add unlocked-io.h.
66509         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
66510         (DISTCLEANFILES, io_functions): Remove macros.
66511         (EXTRA_DIST): Remove gen_uio.
66512         (unlocked-io.h): Remove rule.
66513
66514 2002-12-04  Jim Meyering  <jim@meyering.net>
66515
66516         Reflect the fact that stat.c and lstat.c are no longer generated.
66517         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
66518         (DISTCLEANFILES): Likewise.
66519         (EXTRA_DIST): Likewise.
66520         (all_local): Don't depend on stat.c or lstat.c.
66521         (stat.c, lstat.c): Remove rules.
66522         (EXTRA_DIST): Remove xstat.in.
66523
66524         * lib/xstat.in: Remove file.  Contents moved into stat.c.
66525         * lib/stat.c: New file.  Contents mostly from xstat.in.
66526         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
66527         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
66528
66529         * lib/safe-read.c: Rework so that it may serve to define safe_write,
66530         too.
66531         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
66532
66533 2002-12-03  Jim Meyering  <jim@meyering.net>
66534
66535         * lib/safe-read.c, safe-write.c: Change variable names and comments,
66536         but not semantics, to minimize the differences between these two files.
66537         (safe_read): Change comment to mention SAFE_READ_ERROR.
66538
66539         * lib/safe-read.c (IS_EINTR): Define.
66540         (safe_read): Use IS_EINTR in place of in-function cpp directives.
66541
66542 2002-12-02  Jim Meyering  <jim@meyering.net>
66543
66544         * lib/safe-read.c (EINTR): Define.
66545         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66546         (INT_MAX): Provide fallback.
66547         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
66548
66549         * lib/safe-read.h (SAFE_READ_ERROR): Define.
66550
66551 2002-12-02  Bruno Haible  <bruno@clisp.org>
66552
66553         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
66554         Define, taken from safe-read.c.
66555         (INT_MAX): Provide fallback.
66556         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
66557         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
66558
66559         * lib/safe-read.c (EINTR): Remove definition.
66560         (safe_read): Don't use EINTR if it is absent.
66561
66562 2002-12-01  Jim Meyering  <jim@meyering.net>
66563
66564         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
66565         zero.
66566         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
66567
66568 2002-11-27  Paul Eggert  <eggert@twinsun.com>
66569
66570         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
66571         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
66572         with `if (! (value < limit)) abort ();', for readability.
66573
66574 2002-11-26  Karl Berry  <karl@gnu.org>
66575
66576         * lib/strdup.c: copy from libc again, with jim's ok.
66577         * lib/.cppi-disable: re-add strdup.c
66578
66579 2002-11-25  Karl Berry  <karl@gnu.org>
66580
66581         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
66582         instead of "strtol.c".
66583
66584 2002-11-25  Karl Berry  <karl@gnu.org>
66585
66586         * config/install-sh: update from automake for variable quoting, $0 in
66587         error msgs, etc.
66588
66589         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
66590         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
66591         entry.
66592
66593 2002-11-25  Jim Meyering  <jim@meyering.net>
66594
66595         * lib/mktime.c: Sync from libc, now that it has the latest fix.
66596
66597 2002-11-24  Karl Berry  <karl@gnu.org>
66598
66599         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
66600         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
66601
66602 2002-11-24  Jim Meyering  <jim@meyering.net>
66603
66604         Update from coreutils:
66605
66606         * lib/mktime.c: Merge in changes from libc.
66607
66608         Avoid a link-time failure on some Linux systems.
66609         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
66610         (otherwise).
66611         (__mon_yday): Declare with the STATIC attribute.
66612         (__mktime_internal): Likewise.
66613         Based on a report from Greg Schafer.
66614
66615 2002-11-23  Jim Meyering  <jim@meyering.net>
66616
66617         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
66618         Use `unsigned', not `int', as type of index.
66619
66620         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
66621
66622         * lib/fsusage.c: Remove unneeded parentheses around operands of
66623         `defined'.
66624
66625 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66626
66627         * lib/quotearg.h: Allow multiple inclusion by surrounding with
66628         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
66629         so that we can be included first.
66630         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
66631         * lib/quotearg.c: Include quotearg.h immediately after config.h.
66632         No need to include stddef.h or sys/types.h any more.
66633         Surround local include files with "", not "<>".
66634         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
66635         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
66636         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
66637         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
66638         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
66639         (ISPRINT): Remove; no longer needed now that we assume C89.
66640
66641         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
66642         Preserve errno.
66643
66644         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
66645         quotearg_char): Use SIZE_MAX rather than
66646         (size_t) -1 when we are talking about "infinity".
66647
66648         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
66649
66650 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66651
66652         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
66653         hint that one should use `if (! x) abort ();' rather than `assert
66654         (x);', and anyway it's one less thing to worry about configuring.
66655         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
66656         hash_rehash, hash_insert): Use abort rather than assert.
66657
66658 2002-11-22  Bruno Haible  <bruno@clisp.org>
66659
66660         * lib/safe-read.h: Assume C89. Add comments.
66661         (safe_read): Change return type to size_t.
66662         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
66663         byte counts > SSIZE_MAX correctly.
66664         * lib/safe-write.h: New file.
66665         * lib/safe-write.c: New file.
66666         * lib/full-read.h: New file.
66667         * lib/full-read.c: New file.
66668         * lib/full-write.h: Assume C89. Add comments.
66669         * lib/full-write.c: Include safe-write.h.
66670         (full_write): Rewritten to use safe_write.
66671         Suggested by Jim Meyering and Paul Eggert.
66672
66673 2002-11-21  Jim Meyering  <jim@meyering.net>
66674
66675         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
66676
66677         Merge in changes from the coreutils.
66678
66679         2002-09-25  Paul Eggert  <eggert@twinsun.com>
66680         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
66681         <stdint.h>.
66682         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
66683         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
66684         int.  Work more efficiently if X is the same width as uintmax_t.
66685         Do not compare X to -1, to avoid bogus compiler warning.
66686         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
66687         Don't assume that f_frsize and f_bsize are the same type.
66688
66689         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
66690         warning on FreeBSD.
66691
66692         * lib/makepath.c (make_path): Restore umask *before* creating the final
66693         component.
66694         (make_path): Minor reformatting.
66695
66696         * lib/xmalloc.c: Adjust to work with new autoconf macros,
66697         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
66698         HAVE_MALLOC/HAVE_REALLOC.
66699
66700         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
66701         dummy ones.  At least on GNU/Linux systems, `auto' means something
66702         else.
66703         From Michael Stone.
66704
66705 2002-11-21  Bruno Haible  <bruno@clisp.org>
66706
66707         Remove case insensitive option matching.
66708         * lib/argmatch.h (argcasematch): Remove declaration.
66709         (ARGCASEMATCH): Remove macro.
66710         (__xargmatch_internal): Remove case_sensitive argument.
66711         (XARGMATCH): Update.
66712         (XARGCASEMATCH): Remove macro.
66713         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
66714         case_sensitive argument.
66715         (argcasematch): Remove function.
66716         (__xargmatch_internal): Remove case_sensitive argument.
66717         (main): Use XARGMATCH instead of XARGCASEMATCH.
66718
66719         * lib/xmalloc.c: Change compile-time error message. Add comment about
66720         required autoconf version.
66721
66722 2002-11-20  Paul Eggert  <eggert@twinsun.com>
66723
66724         Merge argmatch cleanups from Bison.  Assume C89.
66725
66726         * lib/argmatch.c: Include config.h here, not in argmatch.h.
66727         Include stdlib.h, for EXIT_FAILURE.
66728         Always include <string.h>, since we assume C89.
66729         (EXIT_FAILURE): Remove pre-C89 bug workaround.
66730         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
66731         Include <stddef.h> instead, since it's all we need for size_t.
66732         (PARAMS): Remove.  All uses removed.
66733         (ARRAY_CARDINALITY): Do not bother to #undef.
66734         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
66735         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66736         Remove unnecessary parentheses.
66737         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66738         Insert necessary parentheses.
66739         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
66740         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
66741
66742 2002-11-19  Bruno Haible  <bruno@clisp.org>
66743
66744         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
66745         * lib/mbswidth.h: Include <stddef.h>, for size_t.
66746
66747         * lib/mbswidth.h (PARAMS): Remove macro.
66748         (mbswidth, mbsnwidth): Use ANSI C function declarations.
66749         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
66750
66751         * lib/gcd.h (PARAMS): Remove macro.
66752         (gcd): Use ANSI C function declarations.
66753         * lib/gcd.c (gcd): Likewise.
66754
66755 2002-11-15  Bruno Haible  <bruno@clisp.org>
66756
66757         * lib/strcspn.c: Include <stddef.h>.
66758         (strcspn): Use ANSI C function declaration. Change return type to
66759         size_t. Use NULL.
66760         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
66761         (strpbrk): Use NULL.
66762         * lib/strpbrk.h (PARAMS): Remove macro.
66763         (strpbrk): Use ANSI C function declaration.
66764         * lib/strstr.c: Don't include <sys/types.h>.
66765         * lib/strstr.h (PARAMS): Remove macro.
66766         (strstr): Use ANSI C function declarations.
66767
66768 2002-11-14  Karl Berry  <karl@gnu.org>
66769
66770         * config/mkinstalldirs: `do' on separate line, instead of
66771         `for var; do'.
66772
66773 2002-11-06  Bruno Haible  <bruno@clisp.org>
66774
66775         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
66776         * lib/gcd.c (gcd): Likewise.
66777
66778 2002-11-05  Bruno Haible  <bruno@clisp.org>
66779
66780         * lib/gcd.h: New file, from gettext-0.11.5.
66781         * lib/gcd.c: New file, from gettext-0.11.5.
66782
66783 2002-11-05  Bruno Haible  <bruno@clisp.org>
66784
66785         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66786         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66787         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66788         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66789
66790         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
66791         <libintl.h>.
66792         * lib/makepath.c: Include gettext.h instead of <locale.h> and
66793         <libintl.h>.
66794
66795         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
66796         * lib/human.c: Include gettext.h instead of <libintl.h>.
66797         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
66798         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
66799         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
66800         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
66801         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
66802         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
66803         (textdomain): Remove definition.
66804         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
66805
66806         * lib/long-options.c: Remove include of <libintl.h> and definition of
66807         _.
66808         * lib/same.c: Remove include of <libintl.h> and definition of _.
66809
66810 2002-11-04  Owen Taylor  <otaylor@redhat.com>
66811
66812         * lib/config.charset: A few additions for Solaris.
66813
66814 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
66815
66816         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
66817         * lib/localcharset.c (locale_charset): Declare as extern "C".
66818
66819 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
66820
66821         * lib/config.charset: msdos in uk_UA uses CP1125.
66822
66823 2002-11-04  Bruno Haible  <bruno@clisp.org>
66824
66825         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
66826         * lib/strcase.h: New file, from GNU gettext-0.11.5.
66827         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
66828         * lib/strstr.h: New file, from GNU gettext-0.11.5.
66829         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
66830
66831 2002-11-04  Bruno Haible  <bruno@clisp.org>
66832
66833         * lib/localcharset.c (locale_charset): Don't return an empty string.
66834
66835 2002-11-04  Bruno Haible  <bruno@clisp.org>
66836
66837         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
66838         aliases.
66839
66840 2002-11-04  Bruno Haible  <bruno@clisp.org>
66841
66842         * lib/config.charset: Update for newest glibc. Add canonical names
66843         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
66844
66845 2002-11-04  Bruno Haible  <bruno@clisp.org>
66846
66847         * lib/config.charset: Add support for NetBSD.
66848
66849 2002-11-04  Bruno Haible  <bruno@clisp.org>
66850
66851         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
66852
66853 2002-11-01  Bruno Haible  <bruno@clisp.org>
66854
66855         * configure.in: Add AC_CONFIG_AUX_DIR call.
66856         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
66857         test/Makefile.
66858         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
66859
66860 2002-09-28  Karl Berry  <karl@gnu.org>
66861
66862         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
66863         installed automake until the next release, since changes have been
66864         made.
66865
66866 2002-09-25  Karl Berry  <karl@gnu.org>
66867
66868         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
66869         * lib/getopt*: copy from libc/posix.
66870         * lib/gettext.h: copy from gettext.
66871         * lib/.cppi-disable: add strdup.c, gettext.h.
66872
66873 2002-09-25  Karl Berry  <karl@gnu.org>
66874
66875         * config/srclist.txt: enable gettext.h check.
66876         * config/config.{guess,sub}: update from prep.
66877         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
66878                 from automake 1.6.3.
66879         See srclist*.
66880
66881 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
66882
66883         * regex.c (PATFETCH): Remove the translating fetch.
66884         (PATFETCH_RAW): Rename to PATFETCH.
66885         (set_image_of_range): New fun.
66886         (SET_RANGE_TABLE_WORK_AREA): Use it.
66887         (regex_compile): Don't translate the pattern chars so eagerly.
66888         Only do it when inserting an `exactn' bytecode or when handling
66889         a char-range.
66890         (mutually_exclusive_p): Avoid empty statement.
66891
66892 2002-07-06  Jim Meyering  <meyering@lucent.com>
66893
66894         * m4/README: Don't mention Makefile.am.in.
66895         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
66896
66897 2002-07-01  Jim Meyering  <meyering@lucent.com>
66898
66899         * lib/c-stack.c: Include sys/time.h.
66900         From Volker Borchert.
66901
66902 2002-06-26  Paul Eggert  <eggert@twinsun.com>
66903
66904         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
66905
66906 2002-06-26  Paul Eggert  <eggert@twinsun.com>
66907
66908         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
66909         New macro.  Use it uniformly instead of
66910         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
66911         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
66912         reported by Vin Shelton.
66913
66914 2002-06-22  Paul Eggert  <eggert@twinsun.com>
66915
66916         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
66917         Do not assume SA_SIGINFO behavior.
66918         Bug reported by Jim Meyering on NetBSD 1.5.2.
66919
66920 2002-06-22  Jim Meyering  <meyering@lucent.com>
66921
66922         * m4/c-stack.m4: New file, from diffutils-2.8.2.
66923         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
66924
66925         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
66926         now that configure.ac uses AC_GNU_SOURCE.
66927         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
66928         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
66929
66930         Update to latest tools.  Suggestions from Paul Eggert.
66931         * m4/stdbool.m4: New file, from diffutils-2.8.2.
66932         * m4/gnu-source.m4: Update from diffutils-2.8.2.
66933         * m4/fnmatch.m4: Likewise.
66934         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
66935         to AC_HEADER_STDBOOL
66936
66937 2002-06-22  Jim Meyering  <meyering@lucent.com>
66938
66939         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
66940         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
66941
66942 2002-06-22  Jim Meyering  <meyering@lucent.com>
66943
66944         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
66945
66946         * lib/exitfail.c, exitfail.h: Likewise.
66947         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
66948
66949         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
66950         of fnmatch.h.
66951         (EXTRA_DIST): Add fnmatch_loop.c.
66952         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
66953
66954         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
66955         * lib/fnmatch.c: Update from diffutils-2.8.2.
66956         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
66957         * lib/fnmatch.h: Remove file.
66958
66959 2002-06-21  Jim Meyering  <meyering@lucent.com>
66960
66961         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
66962         * m4/mbrtowc.m4: Likewise.
66963
66964         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
66965         * m4/mbswidth.m4: Reflect name change:
66966         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
66967         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66968
66969         * m4/lib-link.m4: Update from gettext-0.11.2.
66970         * m4/gettext.m4: Likewise.
66971
66972         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
66973         From Alfred M. Szmidt.
66974
66975 2002-06-18  Paul Eggert  <eggert@twinsun.com>
66976
66977         * lib/file-type.h: Report an error if neither S_ISREG nor
66978         S_IFREG is defined, instead of using a test specific to glibc
66979         2.2.  This should be safe, since POSIX requires S_ISREG and
66980         Unix Version 7 had S_IFREG.  We don't need to check for
66981         <sys/types.h> since we don't use any symbols that it defines.
66982
66983 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
66984
66985         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
66986         $@-t, so that each temporary file name is unique and valid in the first
66987         8 characters, for operation under DOS.
66988
66989 2002-06-15  Paul Eggert  <eggert@twinsun.com>
66990
66991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
66992
66993 2002-06-15  Jim Meyering  <meyering@lucent.com>
66994
66995         Work even with DJGPP 2.03, which lacks support for symlinks.
66996         From Richard Dawe.
66997         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
66998         is defined.
66999         * lib/lchown.c (S_ISLNK): Likewise.
67000
67001 2002-06-15  Jim Meyering  <meyering@lucent.com>
67002
67003         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67004         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67005         have been included before this file.
67006
67007 2002-06-14  Jim Meyering  <meyering@lucent.com>
67008
67009         * lib/file-type.h: Use the version from diffutils-2.8.2.
67010         * lib/file-type.c: Likewise.
67011
67012 2002-06-07  Jim Meyering  <meyering@lucent.com>
67013
67014         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67015         They're needed at least for NetBSD 1.5.2.
67016         ($statxfs_includes): Include those same headers.
67017         ($statxfs_includes): Include sys/vfs.h if available.
67018         ($statxfs_includes): Likewise for sys/statvfs.h.
67019         Check for the following members in both structs statfs and statvfs:
67020         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67021
67022 2002-06-01  Jim Meyering  <meyering@lucent.com>
67023
67024         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67025         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67026
67027 2002-05-28  Jim Meyering  <meyering@lucent.com>
67028
67029         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67030         Reported by Volker Borchert.
67031
67032 2002-05-27  Jim Meyering  <meyering@lucent.com>
67033
67034         Fix a problem seen only on nonconforming systems whereby ls.c's
67035         use of localtime, and then of gettimeofday would cause trouble:
67036         the localtime call used to initialize rpl_gettimeofday's save
67037         mechanism would clobber ls's current local time information so
67038         that in any long listing the first file would always be listed
67039         with date 1970-01-01.  Analysis by Volker Borchert.
67040
67041         * lib/gettimeofday.c (localtime): Undefine.
67042         (rpl_localtime): New function.
67043
67044 2002-05-27  Jim Meyering  <meyering@lucent.com>
67045
67046         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67047         localtime.
67048
67049         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67050         use the replacement function; it wouldn't resolve at link time.
67051         Reported by Volker Borchert.
67052
67053 2002-05-22  Jim Meyering  <meyering@lucent.com>
67054
67055         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67056         file-type.h.
67057         * lib/file-type.h: New file.
67058         * lib/file-type.c (file_type): New file/function.  Extracted from
67059         diffutils.
67060
67061 2002-04-30  Jim Meyering  <meyering@lucent.com>
67062
67063         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67064
67065 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67066
67067         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67068
67069 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67070
67071         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67072         Do not check for alloca.h (no longer used) or stdbool.h (was never
67073         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67074
67075 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67076
67077         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67078
67079 2002-04-29  Jim Meyering  <meyering@lucent.com>
67080
67081         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67082         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67083         Use AC_FUNC_STRNLEN here instead.
67084
67085         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67086         With autoconf-2.53a, it's part of AC_PROG_CC.
67087
67088 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67089
67090         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67091         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67092
67093 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67094
67095         * lib/sig2str.h, lib/sig2str.c: New files.
67096         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67097
67098 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67099
67100         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67101         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67102         of 127, since 64 is the largest conceivable number for ancient
67103         nonstandard hosts.
67104         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67105
67106 2002-04-28  Jim Meyering  <meyering@lucent.com>
67107
67108         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67109
67110 2002-04-24  Jim Meyering  <meyering@lucent.com>
67111
67112         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67113         (jm_PREREQ): Use it.
67114
67115         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67116         mach/mach.h fcntl.h.
67117         Check for this function: setlocale.
67118
67119 2002-04-24  Jim Meyering  <meyering@lucent.com>
67120
67121         * lib/gettext.h: New file, from Gettext.
67122         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67123         (libfetish_a_SOURCES): Add gettext.h.
67124
67125 2002-04-16  Jim Meyering  <meyering@lucent.com>
67126
67127         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67128         ut_pid, ut_id, ut_exit.
67129
67130 2002-04-16  Jim Meyering  <meyering@lucent.com>
67131
67132         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67133         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67134         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67135
67136 2002-04-12  Jim Meyering  <meyering@lucent.com>
67137
67138         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67139         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67140         existence of the getmntinfo function.  Needed for Darwin 5.3.
67141
67142         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67143         This is necessary at least on Darwin 5.3.
67144
67145         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67146         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67147         strnlen.o in the library, and that makes some versions of ranlib
67148         object.
67149
67150 2002-04-12  Jim Meyering  <meyering@lucent.com>
67151
67152         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67153
67154 2002-04-09  Jim Meyering  <meyering@lucent.com>
67155
67156         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67157         to be more precise.  Rather than saying we're checking whether the
67158         function `works', say what we're testing.
67159         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67160         Reported by Bruno Haible.
67161
67162 2002-03-10  Jim Meyering  <meyering@lucent.com>
67163
67164         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67165         Suggestion from Santiago Vila.
67166
67167 2002-03-08  Jim Meyering  <meyering@lucent.com>
67168
67169         * lib/rename.c: Mention that this wrapper is needed also on
67170         mips-dec-ultrix4.4 systems.
67171
67172 2002-03-02  Jim Meyering  <meyering@lucent.com>
67173
67174         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67175         not HAVE_CLOCK_SETTIME.
67176
67177 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67178
67179         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67180         Check for clock_settime.
67181
67182 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67183
67184         * lib/nanosleep.h: Rename to....
67185         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67186
67187         * lib/gettime.c: New file.
67188         * lib/settime.c: New file.
67189         * lib/stime.c: Remove.
67190
67191         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67192         timespec.h.  Remove nanosleep.h.
67193
67194 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67195
67196         * m4/acl.m4: New file.
67197         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67198         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67199
67200 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67201
67202         * lib/acl.c, lib/acl.h: New files.
67203         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67204
67205 2002-02-24  Jim Meyering  <meyering@lucent.com>
67206
67207         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67208         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67209         cause trouble.  Reported by Nelson Beebe.
67210
67211 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67212
67213         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67214         compilers that don't know that xalloc_die never returns.
67215
67216 2002-02-20  Jim Meyering  <meyering@lucent.com>
67217
67218         * lib/getdate.c: Regenerate using bison-1.33.
67219
67220 2002-02-17  Jim Meyering  <meyering@lucent.com>
67221
67222         * config/config.guess (main): Don't use `head -1'; it's no longer
67223         portable. Use `sed 1q' instead.
67224
67225 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
67226
67227         * m4/codeset.m4: Upgrade to gettext-0.11.
67228         * m4/gettext.m4: Upgrade to gettext-0.11.
67229         * m4/glibc21.m4: Upgrade to gettext-0.11.
67230         * m4/iconv.m4: Upgrade to gettext-0.11.
67231         * m4/isc-posix.m4: Upgrade to gettext-0.11.
67232         * m4/lcmessage.m4: Upgrade to gettext-0.11.
67233         * m4/lib-ld.m4: New file, from gettext-0.11.
67234         * m4/lib-link.m4: New file, from gettext-0.11.
67235         * m4/lib-prefix.m4: New file, from gettext-0.11.
67236         * m4/progtest.m4: Upgrade to gettext-0.11.
67237
67238 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67239
67240         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
67241         (jm_PREREQ): Use it.
67242
67243 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67244
67245         * lib/posixver.c, lib/posixver.h: New files.
67246         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67247
67248 2002-02-02  Paul Eggert  <eggert@twinsun.com>
67249             Bruno Haible  <bruno@clisp.org>
67250
67251         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
67252         (fwrite_success_callback): New declaration.
67253         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
67254         print_unicode_char. Call failure callback instead of error.
67255         (fwrite_success_callback): New function.
67256         (exit_failure_callback): New function.
67257         (fallback_failure_callback): New function.
67258         (print_unicode_char): Call unicode_to_mb.
67259
67260 2002-01-26  Jim Meyering  <meyering@lucent.com>
67261
67262         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67263         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67264
67265 2002-01-26  Jim Meyering  <meyering@lucent.com>
67266
67267         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67268
67269 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67270
67271         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67272
67273 2002-01-22  Jim Meyering  <meyering@lucent.com>
67274
67275         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67276         Otherwise, some versions of automake would omit the rule that makes
67277         Makefile from Makefile.in.
67278
67279 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67280
67281         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67282         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67283         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67284         (memcoll): Set errno to zero if there is no error.
67285
67286         * lib/quotearg.c (quotearg_buffer_restyled):
67287         Fix bug with quoting buffers containing NUL when backslashing escapes.
67288         This bug was exposed by the other changes in this patch.
67289         (quotearg_n_options): New arg ARGSIZE.
67290         All callers changed.
67291         (quoting_options_from_style): New function.
67292         (quotearg_n_style): Use it.
67293         (quotearg_n_style_mem): New function.
67294
67295         * lib/quotearg.h (quotearg_n_style_mem): New function.
67296
67297 2002-01-19  Jim Meyering  <meyering@lucent.com>
67298
67299         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67300         Remove useless quotes: DF_PROG="df".
67301         * m4/strnlen.m4: New file.
67302
67303 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67304
67305         * lib/backupfile.c (ISDIGIT): Comment fix.
67306         * lib/getdate.y (ISDIGIT): Likewise.
67307         * lib/posixtm.c (ISDIGIT, year): Likewise.
67308         * lib/strverscmp.c (ISDIGIT): Likewise.
67309         * lib/userspec.c (ISDIGIT): Likewise.
67310
67311 2002-01-16  Jim Meyering  <meyering@lucent.com>
67312
67313         * lib/getdate.y: Add three semicolons, each just before a closing
67314         brace. Bison (as of version 1.31) no longer papers over that mistake.
67315
67316 2002-01-05  Jim Meyering  <meyering@lucent.com>
67317
67318         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67319
67320 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67321
67322         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67323         not silently exit merely because the output buffer happens to
67324         have nothing pending.
67325
67326 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67327
67328         See the big note in ../ChangeLog.
67329         * lib/human.c (suffixes): Prefer K to k for 1024.
67330         (generate_suffix_backwards): New function.
67331         (human_readable_inexact): Use it.
67332         * lib/xstrtol.c (__xstrtol): If there is no number but there
67333         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67334         Accept 'K' as well as 'k'.
67335
67336 2001-12-15  Jim Meyering  <meyering@lucent.com>
67337
67338         * lib/regex.h (__restrict_arr): Update from libc.
67339
67340         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67341         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67342         (STREQ): Define.
67343
67344 2001-12-14  Jim Meyering  <meyering@lucent.com>
67345
67346         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67347         Suggestion from Bruno Haible.
67348
67349 2001-12-10  Jim Meyering  <meyering@lucent.com>
67350
67351         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67352         xrealloc, Instead, include "xalloc.h".
67353         (initbuffer): Don't cast xmalloc return value to char*.
67354         (readline): Reword comment.
67355         Don't cast xrealloc return value to char*
67356         Return NULL, not 0.
67357
67358 2001-12-09  Jim Meyering  <meyering@lucent.com>
67359
67360         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67361         about `signed and unsigned type in conditional expression'.
67362         * lib/posixtm.c (posix_time_parse): Likewise.
67363
67364         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67365
67366         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67367         to avoid a pedantic warning.
67368
67369         * lib/getstr.c: Don't include assert.h.
67370         (getstr): Remove warning-evoking assertions.
67371         Return -1 if offset parameter is out of bounds.
67372         Change the type of a local from int to size_t.
67373
67374         * lib/strftime.c (my_strftime_localtime_r): Include this function
67375         definition in the `#if ! HAVE_TM_GMTOFF' block.
67376
67377         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67378         Include xalloc.h instead.
67379
67380 2001-12-02  Jim Meyering  <meyering@lucent.com>
67381
67382         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67383         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67384         included.
67385
67386         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67387         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67388
67389 2001-11-30  Akim Demaille  <akim@epita.fr>
67390
67391         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
67392         before being defined.
67393
67394 2001-11-27  Paul Eggert  <eggert@twinsun.com>
67395
67396         * lib/quotearg.h (quotearg_n, quotearg_n_style):
67397         First arg is int, not unsigned.
67398         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
67399         (SIZE_MAX, UINT_MAX): New macros.
67400         (quotearg_n_options): Abort if N is negative.
67401         Avoid overflow check on hosts where size_t is 64 bits and int
67402         is 32 bits, as overflow is impossible there.
67403         Fix off-by-one typo that caused unnecessary reallocation.
67404
67405 2001-11-27  Jim Meyering  <meyering@lucent.com>
67406
67407         * lib/tempname.c: Merge with version from libc.
67408         * lib/regex.c: Likewise.
67409
67410         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
67411         systems for which STDC_HEADERS is 0, it was not included, resulting in
67412         a warning about an integer-to-pointer conversion problem with getenv.
67413         Reported by Volker Borchert.
67414
67415 2001-11-26  Jim Meyering  <meyering@lucent.com>
67416
67417         * lib/gtod.h: Remove file.
67418         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
67419         * lib/gettimeofday.c: Don't include gtod.h.
67420         (GTOD_init): Remove function.
67421         (rpl_gettimeofday): Do its job here instead, rather than aborting.
67422         Suggestion from Volker Borchert.
67423
67424 2001-11-23  Jim Meyering  <meyering@lucent.com>
67425
67426         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
67427         it.
67428         * lib/hash.c (struct hash_table): Define it here instead.
67429
67430 2001-11-22  Jim Meyering  <meyering@lucent.com>
67431
67432         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
67433
67434 2001-11-20  Jim Meyering  <meyering@lucent.com>
67435
67436         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
67437         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
67438
67439 2001-11-19  Jim Meyering  <meyering@lucent.com>
67440
67441         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
67442         directory.  Use "conftestXXXXXX" as the template.
67443         Suggestion from Paul Eggert.
67444
67445         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
67446         immediately, so the test doesn't mistakenly hit the max-open-files
67447         limit.
67448
67449 2001-11-18  Paul Eggert  <eggert@twinsun.com>
67450
67451         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
67452         (TEMPORARIES): New macro.
67453         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
67454         removes an artificial limitation (e.g. HP-UX 10.20, where
67455         TMP_MAX is 17576).
67456
67457 2001-11-18  Jim Meyering  <meyering@lucent.com>
67458
67459         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
67460
67461 2001-11-18  Jim Meyering  <meyering@lucent.com>
67462
67463         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
67464         on SunOS 4.
67465
67466         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
67467         files will be created before anything else.
67468
67469 2001-11-17  Paul Eggert  <eggert@twinsun.com>
67470
67471         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
67472         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
67473
67474 2001-11-17  Jim Meyering  <meyering@lucent.com>
67475
67476         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
67477         Prompted by a report from Bob Proulx.
67478
67479         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
67480         Instead, require UTILS_FUNC_MKSTEMP.
67481
67482 2001-11-17  Jim Meyering  <meyering@lucent.com>
67483
67484         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
67485         Now, that's done as part of AC_FUNC_STRTOD.
67486
67487 2001-11-17  Jim Meyering  <meyering@lucent.com>
67488
67489         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
67490         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
67491         rather than group writable.  Patch by Juan F. Codagnone.
67492
67493         * lib/readtokens.c: Remove explicit declarations of xmalloc and
67494         xrealloc, Instead, include "xalloc.h".
67495
67496         * lib/mountlist.c: Include unlocked-io.h after all system headers.
67497         Remove explicit declarations of xmalloc, xrealloc,
67498         and xstrdup.  Instead, include "xalloc.h".
67499
67500         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
67501         unlocked-io.h.
67502         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
67503         Likewise.
67504         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
67505
67506         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
67507         Reported by Padraig Brady.
67508
67509         * lib/mkstemp.c: #undef mkstemp.
67510         Include config.h.
67511         (rpl_mkstemp): Rename from mkstemp.
67512         Protoize.
67513
67514 2001-11-16  Jim Meyering  <meyering@lucent.com>
67515
67516         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
67517         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
67518         determine the amount of total physical memory, use pstat_getstatic.
67519         HPUX-11 doesn't define _SC_PHYS_PAGES.
67520         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
67521         If sysconf couldn't be used to determine the amount of available
67522         physical memory, use both pstat_getstatic and pstat_getdynamic.
67523         Based on a patch from Bob Proulx.
67524
67525 2001-11-10  Jim Meyering  <meyering@lucent.com>
67526
67527         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
67528         (jm_PREREQ): Use it.
67529
67530 2001-11-09  Jim Meyering  <meyering@lucent.com>
67531
67532         * m4/jm-macros.m4: Require autoconf-2.52f.
67533         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
67534         Use these AC_-prefixed names, not the AM_-prefixed ones.
67535
67536         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
67537
67538 2001-11-05  Jim Meyering  <meyering@lucent.com>
67539
67540         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
67541
67542 2001-11-04  Jim Meyering  <meyering@lucent.com>
67543
67544         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
67545         $DEFS.
67546
67547 2001-11-03  Jim Meyering  <meyering@lucent.com>
67548
67549         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
67550         of AC_DEFUN.
67551
67552         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
67553         know the name of the variable in the macro definition.
67554
67555 2001-11-03  Jim Meyering  <meyering@lucent.com>
67556
67557         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
67558         in argmatch_to_argument call.
67559
67560         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
67561         argument.
67562
67563         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
67564         e.g., a fault due to an attempt to free a NULL pointer.
67565
67566 2001-11-01  Jim Meyering  <meyering@lucent.com>
67567
67568         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
67569         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
67570
67571 2001-11-01  Jim Meyering  <meyering@lucent.com>
67572
67573         * lib/dirfd.c, lib/dirfd.h: New files.
67574         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
67575
67576         * lib/hash.c (hash_print) [TESTING]: Clean up.
67577
67578 2001-10-22  Paul Eggert  <eggert@twinsun.com>
67579
67580         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
67581         to avoid a warning if -Wall.
67582
67583 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
67584
67585         * README: New file
67586         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
67587         (per RMS's instructions, this is now the canonical source)
67588         * lgpl/, gpl/: New directories.
67589
67590 2001-10-21  Paul Eggert  <eggert@twinsun.com>
67591
67592         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
67593
67594 2001-10-21  Jim Meyering  <meyering@lucent.com>
67595
67596         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
67597         this code would end up calling gettext even in packages built
67598         with --disable-nls.
67599         * lib/getopt.c (_): Likewise.
67600         * lib/regex.c (_): Likewise.
67601
67602 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67603
67604         * m4/error.m4 (jm_PREREQ_ERROR):
67605         Do not invoke AC_CHECK_FUNCS with strerror_r, as
67606         AC_FUNC_STRERROR_R does that.
67607         Check for strerror declaration.
67608
67609         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
67610         are supposed to have them these days.
67611         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
67612         Merge changes from latest Autoconf CVS.
67613         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
67614         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
67615         POSIX decided to standardize on the int flavor of strerror_r.
67616
67617 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67618
67619         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
67620         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
67621         Use strerror_r that is only a macro, even if it is not a function.
67622         (strerror): Check for HAVE_DECL_STRERROR before declaring.
67623         (private_strerror): Use prototypes, not old-style function definition.
67624         (print_errno_message): New function.
67625         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
67626         char*-flavored one.
67627         (error_tail, error, error_at_line): Use it.
67628
67629 2001-10-11  Jim Meyering  <meyering@lucent.com>
67630
67631         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
67632         and quote_n (1, ... to avoid clobbering a buffer.
67633
67634 2001-10-05  Jim Meyering  <meyering@lucent.com>
67635
67636         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
67637         hash-pjw.h.
67638         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
67639         * lib/hash-pjw.h: New file.
67640
67641 2001-09-30  Jim Meyering  <meyering@lucent.com>
67642
67643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
67644         `struct fsstat' has the `f_fstypename' member.
67645         Use that to define FS_TYPE, which is now used to make
67646         the getfsstat link test tighter.
67647
67648 2001-09-30  Jim Meyering  <meyering@lucent.com>
67649
67650         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
67651         Include <sys/ucred.h>, for Apple Darwin.
67652         Include sys/mount.h and sys/fs_types.h only if available.
67653         (FS_TYPE): Define.
67654         (read_filesystem_list): Use FS_TYPE.
67655
67656 2001-09-29  Paul Eggert  <eggert@twinsun.com>
67657
67658         * lib/exclude.c (excluded_filename): 0 -> false, since it's
67659         a boolean context.
67660
67661 2001-09-29  Jim Meyering  <meyering@lucent.com>
67662
67663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67664         [one-argument getmntent function]): Include stdio.h before mntent.h.
67665         SunOS 4.1.x needs it for the declaration of `FILE'.
67666         Patch by Volker Borchert.
67667
67668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67669         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
67670         sys/fs_types.h, and make the link-test for getfsstat guard #include
67671         directives with appropriate #if HAVE_*_H tests so that we can
67672         detect getfsstat on Apple Darwin1.3.7 systems.
67673         Reported by Nelson Beebe.
67674         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
67675
67676 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67677
67678         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67679         #defines strtoimax.  Also treat the other strto* functions
67680         like strtoimax.
67681
67682         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67683         Check for strtoul and strtoumax,
67684         as those declarations are made even in the signed case.
67685         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
67686         Likewise, for strtol and strtoimax.
67687
67688 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67689
67690         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67691         #defines strtoimax.  Also treat the other strto* functions
67692         like strtoimax.
67693
67694         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
67695         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
67696         (strtoimax, strtoumax): Do not declare if already defined as a macro.
67697
67698 2001-09-26  Jim Meyering  <meyering@lucent.com>
67699
67700         Most macros in unlocked-io.h had the wrong number of arguments.
67701         * lib/gen-uio: New script.
67702         (USE_UNLOCKED_IO): Define to 1 if not already defined.
67703         * lib/unlocked-io.hin: Remove file.
67704         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
67705         rather than trying to embed it here.
67706         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
67707         Reported by Padraig Brady.
67708
67709 2001-09-25  Volker Borchert  <bt@teknon.de>
67710
67711         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
67712         `result'.
67713
67714 2001-09-24  Jim Meyering  <meyering@lucent.com>
67715
67716         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
67717
67718 2001-09-23  Jim Meyering  <meyering@lucent.com>
67719
67720         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
67721         instead of the mere test for existence of mntent.h.  The latter
67722         would get a false-positive on AIX 3.4 systems.
67723         In the outer getmntent if-block, don't die if neither of the getmntent
67724         tests succeeds.  Instead, just fall through and continue with the
67725         remaining tests.
67726
67727 2001-09-23  Jim Meyering  <meyering@lucent.com>
67728
67729         * lib/mountlist.c: Remove useless parentheses in #if directives.
67730         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
67731         the deprecated MOUNTED symbol is no longer defined in mntent.h.
67732
67733 2001-09-22  Jim Meyering  <meyering@lucent.com>
67734
67735         * m4/gettext.m4: New file.  From gettext.
67736         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
67737         * m4/progtest.m4: Likewise
67738         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
67739         * m4/glibc21.m4: Likewise.
67740
67741         * m4/libintl.m4: Remove.  No longer used.
67742
67743 2001-09-22  Jim Meyering  <meyering@lucent.com>
67744
67745         * lib/localcharset.c: Update from latest gettext.
67746         * lib/config.charset: Likewise.
67747
67748 2001-09-20  Jim Meyering  <meyering@lucent.com>
67749
67750         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
67751         strtoimax.
67752         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
67753         strtoumax.
67754
67755 2001-09-20  Jim Meyering  <meyering@lucent.com>
67756
67757         * lib/xstrtol.c (strtoimax): Guard declaration with
67758         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
67759         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
67760         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
67761         (strtoumax): Likewise, for completeness (it wasn't necessary).
67762
67763 2001-09-17  Paul Eggert  <eggert@twinsun.com>
67764
67765         * lib/strtoimax.c (HAVE_LONG_LONG):
67766         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
67767         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
67768         to work around bug in IBM C compiler.
67769
67770 2001-09-17  Jim Meyering  <meyering@lucent.com>
67771
67772         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
67773         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
67774         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
67775         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
67776         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
67777         whenever the right hand side need not be expanded by the shell.
67778
67779 2001-09-16  Paul Eggert  <eggert@twinsun.com>
67780
67781         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
67782         library.  It's not correct, as some older glibcs are buggy.
67783         fnmatch wasn't fixed until glibc 2.2.
67784
67785         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
67786         special shell magic here.
67787
67788 2001-09-16  Jim Meyering  <meyering@lucent.com>
67789
67790         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
67791         * m4/jm-macros.m4: Require it.
67792
67793 2001-09-16  Jim Meyering  <meyering@lucent.com>
67794
67795         * lib/mkdir.c: New file.
67796
67797 2001-09-15  Jim Meyering  <meyering@lucent.com>
67798
67799         * m4/jm-macros.m4: Check for help2man.
67800
67801 2001-09-11  Jim Meyering  <meyering@lucent.com>
67802
67803         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
67804         The body, by Paul Eggert, was moved here from configure.in.
67805         * m4/jm-macros.m4: Require UTILS_HOST_OS.
67806
67807 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67808
67809         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
67810         (jm_PREREQ): Use it.
67811
67812 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67813
67814         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
67815         Use ssize_t, not int, to store result of readlink.
67816         Check for ssize_t overflow as well as size_t overflow,
67817         as POSIX says the result of readlink is implementation-defined
67818         when ssize_t overflows.
67819         Remove unnecessary cast to char*.
67820         Use free+malloc instead of realloc, as the storage doesn't need
67821         to be preserved and it's clearer and can be more efficient that way.
67822         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
67823         * lib/xreadlink.h (xreadlink): Update prototype.
67824
67825 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67826
67827         * lib/xgetcwd.c: Revert some of the previous change; intead,
67828         fix the HAVE_GETCWD_NULL code to behave more like the
67829         !HAVE_GETCWD_NULL code used to.
67830
67831         Include "xalloc.h".
67832         (xgetcwd): Do not return NULL when memory is exhausted; instead,
67833         invoke xalloc_die.
67834
67835 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67836
67837         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
67838         sys/param.h, as pathmax.h includes them.
67839
67840 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67841
67842         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
67843         (jm_PREREQ_XGETCWD): New macro.
67844
67845         * m4/getcwd.m4: New file.
67846
67847 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67848
67849         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
67850         like the HAVE_GETCWD_NULL code.
67851         Include pathmax.h if not HAVE_GETCWD.
67852         Do not include xalloc.h.
67853         (INITIAL_BUFFER_SIZE): New symbol.
67854         Do not use xmalloc / xrealloc, since the caller is responsible for
67855         handling errors.  Preserve errno around `free' during failure.
67856         Do not overrun buffer when using getwd.
67857
67858 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67859
67860         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
67861         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
67862         getcwd (NULL, 0).
67863
67864 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67865
67866         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
67867         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
67868         spotted by Jim Meyering.
67869
67870 2001-09-03  Jim Meyering  <meyering@lucent.com>
67871
67872         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
67873         failure.
67874
67875 2001-09-02  Jim Meyering  <meyering@lucent.com>
67876
67877         * lib/error.c: Update from GNU libc.
67878
67879 2001-09-01  Jim Meyering  <meyering@lucent.com>
67880
67881         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
67882         Used by df.
67883
67884 2001-09-01  Jim Meyering  <meyering@lucent.com>
67885
67886         * lib/xreadlink.c: New file.
67887         * lib/xreadlink.h: New file.
67888         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
67889         xreadlink.h.
67890
67891         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
67892         doesn't conflict with sparc Solaris 7's definition in
67893         /usr/include/sys/int_types.h.
67894
67895         * lib/exclude.c: Use `""', not `<>' to #include non-system header
67896         files.
67897         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
67898         and strncasecmp as r-values.  Unixware didn't have declarations.
67899
67900 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67901
67902         * lib/xstrtol.h: Add copyright notice.
67903         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
67904         LONGINT_INVALID_SUFFIX_CHAR.
67905
67906 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67907
67908         * lib/xstrtol.c (strtoimax): New decl.
67909
67910 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67911
67912         * lib/xgetcwd.c: Don't include pathmax.h.
67913         Include stdlib.h and unistd.h if available.
67914         Include xalloc.h.
67915         (xmalloc, xstrdup, free): Remove decls.
67916         (xgetcwd): Don't assume sizes fit in unsigned.
67917         Check for overflow when computing sizes.
67918         Simplify reallocation code.
67919
67920 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67921
67922         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
67923         a directory's st_size can have an arbitrary value, so the old
67924         usage could waste an arbitrary amount of memory.  All uses
67925         changed.
67926         * lib/savedir.h: Update prototype.
67927
67928 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67929
67930         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
67931
67932         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
67933         old strtoimax.c.
67934
67935         Also, make the following further changes to make this file's
67936         configuration more similar to that of strtol.c:
67937         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
67938         (strtoumax, uintmax_t, strtoull, strtol): Remove.
67939         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
67940         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
67941         changed to signed values.
67942
67943         And make the following changes as well:
67944         Fix copyright notice, as 1999 was missing.
67945         (verify): New macro.
67946         (strtoimax): Check sizes at compile-time, not run-time.
67947         Prefer strtol to strtoll if both work.
67948         (main): Remove; it was not that useful and was a pain to maintain.
67949
67950         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
67951
67952 2001-08-31  Jim Meyering  <meyering@lucent.com>
67953
67954         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
67955         Use an initial, malloc'd, buffer of length 128 rather than
67956         a statically allocated one of length 1024.
67957
67958 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67959
67960         Simplify code, partly by assuming autoconf 2.52 semantics.
67961
67962         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
67963
67964         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
67965         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
67966         All uses removed.
67967         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
67968         Move AC_REQUIRE to next-to-top level, to avoid confusion.
67969         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
67970         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
67971         jm_AC_HEADER_INTTYPES_H.
67972         * m4/jm-macros.m4 (jm_MACROS): Likewise.
67973
67974         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
67975
67976         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67977         Quote first arg of AC_DEFUN.
67978         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
67979         since they are needed to parse the include file even if we need
67980         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
67981         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
67982         but with opposite signedness.
67983
67984 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67985
67986         Merge 'exclude' changes from tar 1.13.22.
67987         This fixes one or two unlikely storage allocation overflow bugs,
67988         but doesn't change user-visible behavior otherwise.
67989
67990 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67991
67992         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
67993         (jm_PREREQ_EXCLUDE): New macro.
67994
67995 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67996
67997         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
67998         tm to be declared.
67999
68000 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68001
68002         * lib/hash.c: Remove '2001' from copyright notice.
68003
68004 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68005
68006         * lib/full-write.h: New file.
68007         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68008         * lib/full-write.c: Correct credits, as cccp.c no longer
68009         exists and anyway it was so heavily changed from the old cccp
68010         code as to be unrecognizable.  Include full-write.h.
68011         (full_write) Return size_t, with short writes meaning failure.
68012         All callers changed.  This fixes a bug with large buffers
68013         on 64-bit hosts.
68014         * lib/utime.c: Include full-write.h.
68015
68016 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68017
68018         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68019         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68020         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68021         Include if available.
68022         (<xalloc.h>): Include
68023         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68024         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68025         collide with FNM macros.
68026         (struct patopts): New struct.
68027         (struct exclude): Use it, as exclude patterns now come with options.
68028         (new_exclude): Support above changes.
68029         (new_exclude, add_exclude_file):
68030         Initial size must now be a power of two to simplify overflow checking.
68031         (free_exclude, fnmatch_no_wildcards): New function.
68032         (excluded_filename): No longer requires options arg, as the options
68033         are determined by add_exclude.  Now returns bool, not int.
68034         (excluded_filename, add_exclude):
68035         Add support for the fancy new exclusion options.
68036         (add_exclude, add_exclude_file): Now takes int options arg.
68037         Check for arithmetic overflow when computing sizes.
68038         (add_exclude_file): xrealloc might modify errno, so don't
68039         realloc until after errno might be used.
68040
68041         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68042         New macros.
68043         (free_exclude): New decl.
68044         (add_exclude, add_exclude_file): Now takes int options arg.
68045         (excluded_filename): No longer requires options arg, as the options
68046         are determined by add_exclude.  Now returns bool, not int.
68047
68048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68049
68050         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68051
68052 2001-08-27  Jim Meyering  <meyering@lucent.com>
68053
68054         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68055
68056         * lib/version-etc.c (N_): Remove definition.
68057         Revert most of last change.
68058         Instead, simply don't mark the `Copyright...' string for translation.
68059         Based on advice from Paul Eggert.
68060
68061         * lib/strtoxmax.c: Tweak comment.
68062
68063 2001-08-26  Jim Meyering  <meyering@lucent.com>
68064
68065         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68066
68067         * m4/xstrtoimax.m4: New file.
68068         * m4/xstrtoumax.m4: Add comments explaining why we
68069         AC_REPLACE_FUNCS(strtol).
68070
68071 2001-08-26  Jim Meyering  <meyering@lucent.com>
68072
68073         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68074         of copyright with `%s' so translators don't get an untranslated
68075         message in 2002.
68076         (COPYRIGHT_YEAR): Define.
68077         (version_etc): Use fprintf rather than fputs.
68078         Suggestion from Ulrich Drepper.
68079
68080         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68081
68082         * lib/strtoll.c: New file, from GNU libc.
68083         * lib/xstrtoimax.c: New file.
68084
68085         * lib/xstrtol.h: Add xstrtoimax.
68086         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68087         * lib/strtoimax.c: New file.  Likewise, but first define
68088         STRTOUXMAX_SIGNED.
68089
68090         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68091         ...
68092         * lib/strtoxmax.c: ... then renamed to this.
68093
68094 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68095
68096         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68097         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68098         (jm_AC_TYPE_INTMAX_T): New macro.
68099         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68100
68101         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68102
68103         * m4/longlong.m4: Renamed from ulonglong.m4.
68104         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68105         * m4/uintmax_t.m4: Removed.
68106
68107 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68108
68109         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68110         Port to Solaris 8, where 'sed' requires a space after the 'r'
68111         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68112         Redirect output to $tmp just once.
68113
68114 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68115
68116         * lib/addext.c (<errno.h>): Include.
68117         (errno): Declare if not defined.
68118         (addext): Work correctly when pathconf returns -1 and leaves
68119         errno alone because there is no limit.  Also, work even if
68120         pathconf returns a value greater than SIZE_MAX.
68121
68122 2001-08-12  Jim Meyering  <meyering@lucent.com>
68123
68124         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68125         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68126         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68127         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68128         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68129         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68130         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68131         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68132         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68133         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68134         utime.m4, utimes.m4, xstrtoumax.m4:
68135         Quote the first argument in each use of AC_DEFUN.
68136
68137 2001-08-12  Jim Meyering  <meyering@lucent.com>
68138
68139         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68140         Simply `return getcwd (NULL, 0);'.
68141         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68142         Use 1300 as initial value for length, not PATH_MAX.
68143
68144         * lib/pathmax.h: Clean up cpp syntax.
68145
68146 2001-08-12  Jim Meyering  <meyering@lucent.com>
68147
68148         * lib/gettimeofday.c: New file.
68149         * lib/gtod.h: New file.
68150         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68151
68152 2001-08-05  Jim Meyering  <meyering@lucent.com>
68153
68154         * m4/jm-macros.m4: Require autoconf-2.52.
68155
68156 2001-08-04  Jim Meyering  <meyering@lucent.com>
68157
68158         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68159         stmt, to get in sync with glibc.
68160
68161 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68162
68163         The following changes are from gettext 0.10.39 as maintained by
68164         Bruno Haible.
68165
68166         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68167         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68168         with inverted sense.  All uses changed.
68169
68170         * lib/mbswidth.c: Don't include <limits.h>.
68171         Include <stdlib.h> and <string.h> unconditionally.
68172         (iswcntrl, mbsinit, ISCNTRL): New macros.
68173         (mbsnwidth): Use K&R style function declarations.
68174         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68175         can optimize it when MB_CUR_MAX == 1.
68176         The width of control characters is zero, not 1.
68177
68178 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68179
68180         The following changes are from gettext 0.10.39 as maintained by
68181         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68182
68183         * m4/codeset.m4: Upgrade to serial AM1.
68184         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68185         all uses changed.  Quote first arg of AC_DEFUN.
68186         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68187
68188         * m4/iconv.m4: Upgrade to serial AM2.
68189         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68190         Add --with-libconv-prefix.
68191         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68192         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68193         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68194         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68195         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68196
68197         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68198         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68199         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68200         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68201         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68202         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68203         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68204         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68205         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68206
68207         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68208         string.h any more.
68209
68210         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68211         not the default value.
68212
68213         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68214         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68215         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68216         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68217         Also check for iswcntrl, used for wcwidth fallback.
68218         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68219         to Autoconf 2.13.
68220
68221 2001-08-03  Jim Meyering  <meyering@lucent.com>
68222
68223         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
68224         as it was in the original.  Reported by Paul Eggert.
68225
68226 2001-07-16  Jim Meyering  <meyering@lucent.com>
68227
68228         * m4/gettimeofday.m4: New file.
68229         Prompted by a report from Bernhard Baehr.
68230
68231 2001-07-15  Jim Meyering  <meyering@lucent.com>
68232
68233         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
68234         stuff. Now it's in ../Makefile.cfg.
68235
68236 2001-07-15  Jim Meyering  <meyering@lucent.com>
68237
68238         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
68239         (BUILT_SOURCES): Add unlocked-io.h.
68240         (io_functions): Define.
68241         (unlocked-io.h): New rule.
68242         (DISTCLEANFILES): Add unlocked-io.h.
68243         (all-local): Depend on unlocked-io.h, to ensure it is created.
68244
68245         * lib/unlocked-io.hin: New file
68246
68247         * lib/regex.c: Update from glibc.
68248
68249 2001-07-05  Jim Meyering  <meyering@lucent.com>
68250
68251         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
68252         recommendation.
68253         (libfetish_a_SOURCES): Put all .h files here instead.
68254         Remove a thus-exposed (better checks in automake) duplicate and
68255         two unnecessary .h files.
68256
68257 2001-07-04  Jim Meyering  <meyering@lucent.com>
68258
68259         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
68260         that generates jm-glibc-io.m4 so that it doesn't trigger any make
68261         distcheck failure.
68262
68263 2001-07-02  Jim Meyering  <meyering@lucent.com>
68264
68265         The following changes were prompted by suggestions from Bruno Haible.
68266
68267         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68268         is now generated.
68269         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68270         definition of EXTRA_DIST.
68271         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68272         ensure that the generated file is created/updated whenever the list
68273         of $(unlocked_functions) is changed.
68274         (jm-glibc-io.m4): New rule.
68275         (unlocked-io.h): New rule -- currently unused.
68276
68277 2001-06-24  Jim Meyering  <meyering@lucent.com>
68278
68279         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68280         unmatched right bracket, rather than kludging it with an extra,
68281         falsely-matching quote in a comment.  Patch by Akim Demaille.
68282
68283 2001-06-11  Jim Meyering  <meyering@lucent.com>
68284
68285         * lib/regex.c: Update from GNU libc.
68286
68287 2001-05-27  Jim Meyering  <meyering@lucent.com>
68288
68289         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68290         Check for ut_type in struct utmp.
68291
68292 2001-05-27  Jim Meyering  <meyering@lucent.com>
68293
68294         * lib/readutmp.h (UT_TYPE): Define.
68295
68296 2001-05-24  Jim Meyering  <meyering@lucent.com>
68297
68298         * lib/argmatch.c: Include "quote.h".
68299         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68300         quote function.  Reported by Göran Uddeborg.
68301
68302 2001-05-22  Jim Meyering  <meyering@lucent.com>
68303
68304         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68305         now that we use the package-supplied version unconditionally.
68306         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68307
68308 2001-05-21  Jim Meyering  <meyering@lucent.com>
68309
68310         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68311         shell syntax errors.
68312
68313 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68314
68315         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68316
68317 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68318
68319         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68320         Don't bother to check library strftime, since
68321         we'll be using our own my_strftime function anyway.
68322         Define my_strftime instead of strftime.
68323
68324 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68325
68326         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68327         which is not yet declared.
68328
68329 2001-05-15  Jim Meyering  <meyering@lucent.com>
68330
68331         * m4/regex.m4: Use proper quoting so brackets appear in the test
68332         program.
68333         Reported by, and with help from, Bruno Haible.
68334
68335 2001-05-13  Jim Meyering  <meyering@lucent.com>
68336
68337         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68338         undefined.
68339
68340 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68341
68342         dirname code cleanup.  base_name now behaves more compatibly
68343         with POSIX basename when given file names that have trailing
68344         slashes, and similarly for dir_name.  Add new primitives
68345         base_len and dir_len.  Put the directory-name-related decls
68346         into dirname.h.
68347
68348         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68349         * lib/backupfile.c (base_name): Likewise.
68350         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68351         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68352         * lib/makepath.c (strip_trailing_slashes): Likewise.
68353         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68354         ISSLASH): Likewise.
68355         * lib/rename.c (strip_trailing_slashes): Likewise.
68356         * lib/same.c (base_name): Likewise.
68357         * lib/stripslash.c (ISSLASH): Likewise.
68358
68359         * lib/addext.c: Include <dirname.h> after size_t is defined.
68360         * lib/backupfile.c: Likewise.
68361
68362         * lib/addext.c (addext): Use base_len to trim redundant
68363         trailing slashes instead of doing it ourselves.
68364         But do not trim the last slash if it is not redundant.
68365
68366         * lib/backupfile.c (find_backup_file_name,
68367         max_backup_version): Use base_len instead of rolling it ourselves.
68368         Handle the case of "" and (on DOS) "C:" correctly.
68369
68370         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68371         needed. Include <string.h>, <dirname.h>.
68372         (base_name): Allow file names ending in slashes, other than names
68373         that are all slashes.  In this case, return the basename followed
68374         by the slashes.  This is more general, and can be used in places
68375         where the original base_name purposely had an assertion failure.
68376         (base_len): New function.
68377
68378         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68379         Do not include <assert.h>; no longer needed.
68380         Include xalloc.h.
68381         (memrchr): Remove decl.
68382         (dir_name_r): Remove.
68383         (dir_len): Renamed from dirlen.  All callers changed.
68384         Rewrite in terms of base_name, for simplicity and consistency.
68385         (dir_name): Never return NULL.  All callers changed.
68386         Do not include <stdlib.h> in test program; no longer needed.
68387         return 0; is fine for test program.
68388
68389         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68390         New macros.
68391         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
68392
68393         * lib/path-concat.c (path_concat): Use base_len to compute
68394         base length, not strlen; this means we cannot rely on memcpy
68395         to null-terminate.
68396
68397         * lib/same.c (STREQ): Remove.
68398         (same_name): Handle the case where the basename ends in trailing '/'.
68399
68400         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
68401         a slash was stripped.  Do not strip the last slash after a
68402         file system prefix.
68403
68404 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68405
68406         * lib/Makefile.am (libfetish_a_SOURCES):
68407         Add strftime.c, since we now compile it on all hosts.
68408
68409         * lib/strftime.c (my_strftime):
68410         Define to nstrftime if emacs, but only if my_strftime is not defined.
68411         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
68412         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
68413         Add one more extra argument: a nanoseconds value.
68414         All uses changed.
68415         (ns): New macro.
68416         (my_strftime function): Add %N format.
68417         (emacs_strftimeu): Renamed from emacs_strftime,
68418         with extra ut argument.
68419
68420 2001-05-09  Paul Eggert  <eggert@twinsun.com>
68421
68422         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
68423
68424 2001-04-21  Jim Meyering  <meyering@lucent.com>
68425
68426         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
68427         doesn't interfere.
68428
68429 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68430
68431         * m4/ftruncate.m4: Check for chsize.
68432         Link with ftruncate.o unconditionally if ftruncate is missing.
68433         This was required when cross-compiling to i586-mingw32msvc.
68434
68435 2001-04-08  Jim Meyering  <meyering@lucent.com>
68436
68437         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
68438         recomputed; that's necessary when the offset spans a DST transition.
68439         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
68440
68441 2001-04-02  Jim Meyering  <meyering@lucent.com>
68442
68443         * lib/regex.h, regex.c: Update from GNU libc.
68444
68445 2001-03-24  Jim Meyering  <meyering@lucent.com>
68446
68447         * m4/jm-macros.m4: Require autoconf-2.49d.
68448
68449 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
68450
68451         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
68452
68453 2001-03-19  Paul Eggert  <eggert@twinsun.com>
68454
68455         * lib/version-etc.c (version_etc_copyright): Update to 2001.
68456
68457 2001-03-17  Jim Meyering  <meyering@lucent.com>
68458
68459         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
68460         now that the version in autoconf is equivalent.
68461         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
68462
68463         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
68464         Suggestion from Akim Demaille.
68465
68466         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
68467         (jm_PREREQ_TEMPNAME): New function.
68468
68469 2001-03-16  Paul Eggert  <eggert@twinsun.com>
68470
68471         * lib/tempname.c (uint64_t): Define to uintmax_t if
68472         not defined, and if UINT64_MAX is not defined.
68473         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
68474         Reported by John David Anglin.
68475
68476 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
68477
68478         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
68479         resolve alias if codeset is empty.
68480         * lib/config.charset (BeOS): Use wildcard syntax.
68481
68482 2001-03-13  Jim Meyering  <meyering@lucent.com>
68483
68484         * lib/path-concat.c (path_concat)
68485         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
68486         concatenating e.g., `C:' and `foo'.
68487         From Bruno Haible.
68488
68489 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68490
68491         * lib/localcharset.c (locale_charset): Don't use
68492         setlocale(LC_CTYPE,NULL). Don't return NULL.
68493         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
68494
68495 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68496
68497         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
68498         support for DOS/DJGPP.
68499
68500 2001-03-01  Paul Eggert  <eggert@twinsun.com>
68501
68502         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
68503         lacks mkstemp.  Compile our own tempname.c if we compile our own
68504         mkstemp.c, as mkstemp relies on tempname.
68505
68506 2001-03-01  Jim Meyering  <meyering@lucent.com>
68507
68508         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
68509         AH_VERBATIM really does output its argument verbatim.
68510
68511 2001-02-28  Paul Eggert  <eggert@twinsun.com>
68512
68513         * lib/Makefile.am (libfetish_a_SOURCES):
68514         Add dup-safer.c, fopen-safer.c.
68515         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
68516
68517         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
68518         * lib/unistd-safer.h: New files.
68519
68520 2001-02-25  Paul Eggert  <eggert@twinsun.com>
68521
68522         The mkstemp replacement is taken from glibc 2.2.2, with some
68523         portability fixes for use outside glibc, as follows:
68524
68525         * lib/tempname.c (struct_stat64): New macro.
68526         (direxists, __gen_tempname): Use it.
68527         This avoids a portability problem with Solaris 8.
68528
68529         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
68530         (<stddef.h>, <stdint.h>, <string.h>):
68531         Include only if STDC_HEADERS || _LIBC.
68532         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
68533         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
68534         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
68535         (__set_errno): Define this macro if <errno.h> doesn't.
68536         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
68537         Define these macros if <stdio.h> doesn't.
68538         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
68539         Define these macros if <sys/stat.h>
68540         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
68541         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
68542         __xstat64): Define if not _LIBC.
68543         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
68544         (__gen_tempname): Invoke gettimeofday only if
68545         HAVE_GETTIMEOFDAY || _LIBC;
68546         otherwise, fall back on plain "time".
68547         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
68548
68549         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
68550
68551         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
68552
68553 2001-02-18  Paul Eggert  <eggert@twinsun.com>
68554
68555         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
68556
68557 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68558
68559         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
68560         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
68561         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
68562         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68563
68564 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68565
68566         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
68567         Remove workaround macros for hosts that have mbrtowc but not
68568         mbstate_t, as we now insist on proper declarations for both
68569         before using mbrtowc.
68570
68571 2001-02-17  Jim Meyering  <meyering@lucent.com>
68572
68573         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
68574         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
68575         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
68576         UnixWare 7.1.1.
68577
68578         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
68579         rather than AC_CACHE_VAL.
68580
68581 2001-02-17  Jim Meyering  <meyering@lucent.com>
68582
68583         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
68584         around included file name.
68585
68586         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
68587
68588         * lib/strftime.c: Update from GNU libc (the only changes were to
68589         comments).
68590
68591 2001-02-17  Jim Meyering  <meyering@lucent.com>
68592
68593         * lib/regex.c: Update from libc.
68594
68595 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
68596
68597         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
68598         clash.
68599
68600 2001-02-16  Paul Eggert  <eggert@twinsun.com>
68601
68602         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
68603         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
68604         Reported by Mark Hounschell via Paul Eggert.
68605
68606 2001-02-07  Jim Meyering  <meyering@lucent.com>
68607
68608         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
68609
68610 2001-02-05  Jim Meyering  <meyering@lucent.com>
68611
68612         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
68613         it includes the patch required for `large file' support with at least
68614         HP-UX's 10.20 /bin/cc.
68615
68616 2001-02-03  Jim Meyering  <meyering@lucent.com>
68617
68618         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
68619         AS_IF, now that it works once again (mysteriously).
68620         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68621
68622 2001-01-30  Jim Meyering  <meyering@lucent.com>
68623
68624         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
68625         * m4/chown.m4: Rename conftestchown to conftest.chown.
68626         * m4/rename.m4: s/conftestdir/conftest.d1/ and
68627         s/conftestdir2/conftest.d2/.
68628         * m4/utimes.m4: s/conftestdata/conftest.data/
68629         Inspired by Pavel Roskin's change in autoconf.
68630
68631 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
68632
68633         * lib/config.charset: Update for FreeBSD 4.2.
68634
68635 2001-01-27  Jim Meyering  <meyering@lucent.com>
68636
68637         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
68638         a use of AS_IF.
68639         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68640
68641 2001-01-26  Jim Meyering  <meyering@lucent.com>
68642
68643         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
68644         quotearg.c includes it.
68645
68646 2001-01-26  Jim Meyering  <meyering@lucent.com>
68647
68648         * lib/quotearg.c: Include stddef.h.
68649         * lib/quote.c: Include stddef.h.
68650         Reported by Axel Kittenberger.
68651
68652         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
68653         line in double quotes so that it evokes a better diagnostic.
68654         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
68655         Reported by Axel Kittenberger.
68656
68657 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
68658
68659         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
68660         as if it was a `charset'.
68661
68662 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68663
68664         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
68665         has const.
68666
68667 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68668
68669         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
68670         to avoid a warning.  Add back 'const' to inptr.
68671
68672 2001-01-20  Jim Meyering  <meyering@lucent.com>
68673
68674         Be sure that headers are checked before used in code compiled
68675         for the type checks.
68676         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
68677         In place of that, invoke jm_CHECK_ALL_TYPES.
68678         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
68679         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
68680         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
68681         The check for ssize_t was mistakenly run before the test for unistd.h.
68682
68683         The configure-time check for stdbool.h was missing.
68684         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
68685         (jm_PREREQ_HASH): New function.
68686
68687 2001-01-17  Jim Meyering  <meyering@lucent.com>
68688
68689         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
68690         for autoconf-2.49c.
68691         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
68692
68693 2001-01-16  Jim Meyering  <meyering@lucent.com>
68694
68695         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
68696         From Bruno Haible.
68697
68698 2001-01-14  Jim Meyering  <meyering@lucent.com>
68699
68700         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
68701         foo and bar.  Create conftestdir/ in the script, not in the C code.
68702         Remove directories in the script, not in the C code.
68703         Remove conftestdir{,2} before trying to create the directory.
68704         Make the entire configure script fail if the mkdir fails.
68705
68706 2001-01-14  Jim Meyering  <meyering@lucent.com>
68707
68708         * lib/rename.c: New file.  From Volker Borchert.
68709         Include stdlib.h, string.h or strings.h, and xalloc.h.
68710         Use strip_trailing_slashes rather than open-coding it.
68711
68712 2001-01-03  Paul Eggert  <eggert@twinsun.com>
68713
68714         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
68715
68716 2001-01-03  Jim Meyering  <meyering@lucent.com>
68717
68718         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
68719         of local `inptr' to avoid warning with some system declarations of
68720         iconv.
68721
68722 2001-01-02  Volker Borchert  <bt@teknon.de>
68723
68724         * m4/rename.m4: New file.
68725         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
68726
68727 2001-01-01  Jim Meyering  <meyering@lucent.com>
68728
68729         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
68730         even on systems with utmpx.h.  It's necessary for the declaration of
68731         utmp's ut_user member.  Reported by Andreas Jaeger.
68732
68733         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
68734         available. They are required for the declarations of getgrgid and
68735         getpwuid resp.
68736         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
68737         Reported by Andreas Jaeger.
68738
68739 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
68740
68741         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
68742         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
68743         so `make install' also works in VPATH builds.
68744
68745 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
68746
68747         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
68748         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
68749         can be used in subdirectories.
68750
68751 2000-12-29  Paul Eggert  <eggert@twinsun.com>
68752
68753         * lib/modechange.c: Do not assume that mode_t uses the
68754         traditional octal encoding.  E.g. "chmod 1 FOO" should set
68755         the other-execute bit of FOO even if S_IXOTH != 1.
68756
68757         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
68758         WOTH, XOTH, ALLM): New macros.
68759         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
68760          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
68761         Use them.
68762         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
68763         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
68764         (mode_compile):
68765         No need to use uintmax_t; unsigned long is long enough.
68766         Don't bother to get suffix since we don't use it.
68767
68768 2000-12-26  Jim Meyering  <meyering@lucent.com>
68769
68770         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
68771         better with autoheader.
68772
68773 2000-12-24  Jim Meyering  <meyering@lucent.com>
68774
68775         * lib/hash.c (is_prime): Return explicit boolean values.
68776         (hash_get_first): Return NULL to appease Irix5.6's 89.
68777         Reported by Nelson Beebe.
68778
68779 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
68780
68781         * lib/localcharset.c (locale_charset): Add support for Win32.
68782
68783 2000-12-18  Paul Eggert  <eggert@twinsun.com>
68784
68785         * lib/physmem.h, lib/physmem.c: New files.
68786
68787         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
68788         (noinst_HEADERS): Add physmem.h.
68789
68790         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
68791         't' for compatibility with Solaris 8 sort.
68792
68793 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
68794
68795         * lib/config.charset: Add support for BeOS.
68796
68797 2000-12-17  Jim Meyering  <meyering@lucent.com>
68798
68799         * m4/dos.m4 (jm_AC_DOS): New file and macro.
68800         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
68801
68802 2000-12-16  Jim Meyering  <meyering@lucent.com>
68803
68804         This bug had a serious impact on chown: `chown N:M FILE' (for integer
68805         N and M) would have treated it like `chown N:N FILE'.
68806
68807         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
68808
68809 2000-12-16  Jim Meyering  <meyering@lucent.com>
68810
68811         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
68812         SHELLS_FILE to a file name that's useful on djgpp systems.
68813         Include stdlib.h.
68814         (ADDITIONAL_DEFAULT_SHELLS): Define.
68815         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
68816         Based mostly on a patch from Prashant TR.
68817
68818 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
68819
68820         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
68821         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
68822         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
68823
68824 2000-12-08  Andreas Schwab  <schwab@suse.de>
68825
68826         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
68827         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
68828
68829 2000-12-07  Jim Meyering  <meyering@lucent.com>
68830
68831         * lib/stripslash.c (ISSLASH): Define.
68832         (strip_trailing_slashes): Use ISSLASH rather than comparing against
68833         `/'.
68834         From Prashant TR.
68835
68836         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
68837         (dir_name_r): Declare this function as static.
68838         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
68839         manifest itself on a name containing a mix of slashes and
68840         backslashes.
68841         Make this function work with names starting with a DOS-style
68842         drive letter and colon prefix.
68843         (dir_name): Append `.' if necessary.
68844         Based mostly on patches from Prashant TR and Eli Zaretskii.
68845
68846         * lib/dirname.h (dir_name_r): Remove prototype.
68847
68848 2000-12-06  Paul Eggert  <eggert@twinsun.com>
68849
68850         * m4/off_t-format.m4: Remove this file.
68851         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
68852
68853 2000-12-06  Jim Meyering  <meyering@lucent.com>
68854
68855         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
68856         replacement strtoull, we may well need the replacement strtoul, too.
68857         Check for declarations of strtoul and strtoull.
68858         Check for strtol.  Mainly as a cue to cause automake to include
68859         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
68860         Check for limits.h -- strtol.c needs it.
68861
68862 2000-12-05  Jim Meyering  <meyering@lucent.com>
68863
68864         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
68865
68866 2000-12-04  Jim Meyering  <meyering@lucent.com>
68867
68868         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
68869         Also include memory.h, stdlib.h, unistd.h if appropriate.
68870         Reported by Andreas Jaeger (conflicting declaration of malloc).
68871
68872 2000-12-02  Jim Meyering  <meyering@lucent.com>
68873
68874         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
68875         * m4/jm-macros.m4 (jm_MACROS): require it.
68876
68877 2000-12-02  Jim Meyering  <meyering@lucent.com>
68878
68879         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
68880
68881 2000-12-01  Paul Eggert  <eggert@twinsun.com>
68882
68883         * lib/memrchr.c: Include <config.h> before any system include file.
68884
68885 2000-11-30  Jim Meyering  <meyering@lucent.com>
68886
68887         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
68888
68889 2000-11-30  Jim Meyering  <meyering@lucent.com>
68890
68891         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
68892
68893 2000-11-29  Paul Eggert  <eggert@twinsun.com>
68894
68895         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
68896
68897 2000-11-26  Jim Meyering  <meyering@lucent.com>
68898
68899         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
68900
68901 2000-11-22  Paul Eggert  <eggert@twinsun.com>
68902
68903         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
68904         size of (size_t) -1; it's not portable.
68905
68906 2000-11-17  Jim Meyering  <meyering@lucent.com>
68907
68908         * lib/strstr.c: Update from GNU libc.
68909
68910 2000-11-17  Akim Demaille  <akim@epita.fr>
68911
68912         * lib/obstack.h: Formatting changes.
68913         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
68914         prevent type checking.
68915         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
68916         cast the value to (void *): assigning a `foo *' to a `void *'
68917         variable is valid.
68918         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
68919
68920 2000-11-16  Jim Meyering  <meyering@lucent.com>
68921
68922         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
68923
68924 2000-11-11  Jim Meyering  <meyering@lucent.com>
68925
68926         * lib/error.c: Add a couple #includes, merging from GNU libc version.
68927
68928 2000-11-10  Jim Meyering  <meyering@lucent.com>
68929
68930         * lib/obstack.h: Update from GNU libc.
68931         * lib/obstack.c: Likewise.
68932
68933 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
68934
68935         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
68936
68937 2000-11-06  Paul Eggert  <eggert@twinsun.com>
68938
68939         * lib/getusershell.c (setusershell): Use rewind rather than
68940         fseek/fseeko, to avoid configuration hassles with fseeko.
68941         Don't bother opening SHELLS_FILE if shellstream is NULL;
68942         it's not necessary.
68943
68944 2000-11-05  Jim Meyering  <meyering@lucent.com>
68945
68946         * lib/makepath.h (make_dir): Declare.
68947         * lib/makepath.c (make_dir): Remove `static' attribute.
68948         Tweak a comment.
68949
68950 2000-11-04  Jim Meyering  <meyering@lucent.com>
68951
68952         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
68953
68954 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
68955
68956         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
68957         last one in a bucket, advance to the next bucket.
68958
68959 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
68960
68961         * lib/fnmatch.c: Do not comment out all the code if we are using
68962         the GNU C library, because in some cases we are replacing buggy
68963         code in the GNU C library itself.
68964
68965 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
68966
68967         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
68968         (regex_compile): Catch bogus \(\1\).
68969
68970 2000-10-30  Paul Eggert  <eggert@twinsun.com>
68971
68972         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
68973         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
68974         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
68975
68976 2000-10-30  Paul Eggert  <eggert@twinsun.com>
68977
68978         * lib/error.h, getline.h, modechange.h:
68979         Remove "2000" from Copyright line, as the file hasn't been
68980         changed this year other than in the copyright notice.
68981
68982         * lib/xalloc.h: Add "2000" to Copyright line, as this file
68983         was changed this year.
68984
68985 2000-10-29  Jim Meyering  <meyering@lucent.com>
68986
68987         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
68988         renaming.
68989         * m4/ls-mntd-fs.m4: Likewise
68990
68991 2000-10-29  Jim Meyering  <meyering@lucent.com>
68992
68993         * lib/xstat.in: Fix grammar in comment.
68994
68995 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
68996
68997         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
68998         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
68999         doesn't define __restrict_arr.
69000
69001 2000-10-28  Jim Meyering  <meyering@lucent.com>
69002
69003         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69004         (jm_PREREQ_MEMCHR): New function.
69005
69006 2000-10-28  Jim Meyering  <meyering@lucent.com>
69007
69008         * lib/memchr.c: Update from libc.
69009         Adjust for portability:
69010         [HAVE_STDLIB_H]: Include stdlib.h.
69011         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69012         Undef __memchr, too.
69013         [!weak_alias]: Define __memchr to memchr.
69014
69015         * lib/regex.c: Update from libc.
69016         * lib/regex.h: Likewise.
69017         * lib/getopt1.c: Likewise.
69018         * lib/memcmp.c: Likewise.
69019
69020         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69021         Avoid using fseek, when possible -- it's broken by design.
69022         Patch by Ulrich Drepper.
69023
69024 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69025
69026         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69027         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69028         Giving in to popular pressure to shut up the compiler with casts.
69029
69030 2000-10-26  Jim Meyering  <meyering@lucent.com>
69031
69032         * lib/strftime.c: Update from libc.
69033
69034 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69035
69036         * regex.c: More `unsigned char' -> `re_char' changes.
69037         Also change several `int' into `re_wchar_t'.
69038         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69039         (PUSH_FAILURE_POINTER): Don't cast any more.
69040         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69041         We want GCC to complain, since this piece of code makes
69042         re_match non-reentrant, which *should* be fixed.
69043         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69044         (EXTEND_BUFFER): Use RETALLOC.
69045         (SET_LIST_BIT): Don't cast.
69046         (re_wchar_t): New type.
69047         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69048         that those two functions will always properly return.
69049         (IMMEDIATE_QUIT_CHECK): Cast to void.
69050         (analyse_first): Use recursion rather than an explicit stack.
69051         (re_compile_fastmap): Can't fail anymore.
69052         (re_search_2): Don't check re_compile_fastmap for failure.
69053         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69054         Now also sets the new value (passed in a new argument).
69055         (re_match_2_internal): Use it.
69056         Also, use a new var `reg' of type size_t when looping through regs
69057         rather than reuse the inappropriate `mcnt'.
69058
69059 2000-10-25  Jim Meyering  <meyering@lucent.com>
69060
69061         * lib/obstack.c: Update from libc.
69062
69063 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69064
69065         * regex.c (regex_compile): Change the way of handling a range from
69066         a char less than 256 to a char not less than 256.
69067
69068 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69069
69070         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69071         NT-Emacs only.
69072         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69073         so that re_search functions only quit when callers expect them to.
69074
69075 2000-10-23  Jim Meyering  <meyering@lucent.com>
69076
69077         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69078         wrong.  That set_locale call must not have any side effects.
69079         From Paul Eggert.
69080
69081 2000-10-22  Jim Meyering  <meyering@lucent.com>
69082
69083         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69084         [CYCLIC]: Remove now-unused definition.
69085
69086         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69087         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69088         Suggestion from Ulrich Drepper.
69089
69090 2000-10-21  Jim Meyering  <meyering@lucent.com>
69091
69092         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69093         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69094         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69095
69096 2000-10-21  Jim Meyering  <meyering@lucent.com>
69097
69098         * lib/dirname.c (memrchr): Declare if necessary.
69099         (dir_name): Remove the restriction that there be no
69100         trailing slashes.  Now, this code skips past them, effectively
69101         ignoring them.
69102         [TEST_DIRNAME] (main): New unit tests.
69103
69104         * lib/memrchr.c: New file from GNU libc.
69105         Undef __memrchr, too.
69106         [!weak_alias]: Define __memrchr to memrchr.
69107         Guard weak_alias use with `#ifdef weak_alias'.
69108
69109 2000-10-21  Jim Meyering  <meyering@lucent.com>
69110
69111         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69112         (dir_name): Use dir_name_r.
69113         * lib/dirname.h (dir_name_r): Declare it.
69114
69115 2000-10-17  Jim Meyering  <meyering@lucent.com>
69116
69117         * lib/quote.h (PARAMS): Define and use.
69118         Reported by Akim Demaille.
69119
69120         * lib/getopt.c: Update from libc.
69121
69122 2000-10-16  Jim Meyering  <meyering@lucent.com>
69123
69124         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69125         setlocale.
69126         From Jan Fedak.
69127
69128 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69129
69130         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69131
69132 2000-09-25  Jim Meyering  <meyering@lucent.com>
69133
69134         * lib/md5.h (rol): Define (from GnuPG).
69135
69136         * lib/sha.c: Give credit (GnuPG) where due.
69137         (M): Use rol rather than open-coding it.
69138         Add a FIXME comment.
69139
69140 2000-09-21  Jim Meyering  <meyering@lucent.com>
69141
69142         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69143         Reported by Michael Stone.
69144
69145 2000-09-20  Jim Meyering  <meyering@lucent.com>
69146
69147         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69148         (noinst_HEADERS): Add sha.h.
69149         Based on code from Scott G. Miller and from GnuPG.
69150
69151 2000-09-18  Jim Meyering  <meyering@lucent.com>
69152
69153         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69154         LIBS. Otherwise, everyone ends up linking with -lelf for some
69155         configurations.
69156         Reported by Mike Stone.
69157
69158 2000-09-15  Jim Meyering  <meyering@lucent.com>
69159
69160         * lib/regex.c: Update from libc.
69161
69162 2000-09-10  Jim Meyering  <meyering@lucent.com>
69163
69164         * lib/getopt.c (_getopt_internal): Update from glibc.
69165
69166 2000-09-09  Jim Meyering  <meyering@lucent.com>
69167
69168         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69169         think it should be used as a general replacement for isascii.
69170         * lib/fnmatch.c: Likewise.
69171         * lib/mbswidth.c: Likewise
69172         * lib/regex.c: Likewise.
69173
69174         Don't use atoi.
69175         * lib/userspec.c: Include sys/param.h and limits.h.
69176         Include xstrtol.h.
69177         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69178         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69179         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69180         UID, GID.  Check range.
69181
69182 2000-09-06  Jim Meyering  <meyering@lucent.com>
69183
69184         * lib/getopt.c (_getopt_internal): Update from glibc.
69185
69186 2000-08-30  Jim Meyering  <meyering@lucent.com>
69187
69188         * lib/strftime.c: Merge in changes from GNU libc.
69189
69190 2000-08-26  Jim Meyering  <meyering@lucent.com>
69191
69192         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69193         * m4/fpending.m4: New file.
69194
69195 2000-08-26  Jim Meyering  <meyering@lucent.com>
69196
69197         * lib/closeout.c: Include "__fpending.h".
69198         (close_stdout_status): Return right away if there's nothing to flush.
69199
69200         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69201         * lib/__fpending.c: New file.
69202         * lib/__fpending.h: New file.
69203
69204 2000-08-20  Jim Meyering  <meyering@lucent.com>
69205
69206         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69207         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69208         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69209
69210 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69211
69212         Improve fileutils installation on systems where running
69213         programs (like install) can't be unlinked.
69214         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69215         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69216
69217 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69218
69219         Standardize on "memory exhausted" instead of "Memory exhausted"
69220         or "virtual memory exhausted".
69221         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69222         "virtual memory exhausted".
69223         * lib/same.c (same_name): Invoke xalloc_die instead of printing
69224         our own message.
69225         * lib/userspec.c (parse_user_spec): Likewise.
69226         * lib/bumpalloc.h: comment fix
69227         * lib/same.c, userspec.c: Include xalloc.h.
69228
69229         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
69230         not char *const and pointing to a constant array.
69231         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
69232         (xrealloc): Comment fix.
69233
69234         * lib/userspec.c (parse_user_spec):
69235         Don't translate a message until just before returning,
69236         to avoid unnecessary translation.
69237
69238 2000-08-07  Jim Meyering  <meyering@lucent.com>
69239
69240         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
69241         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
69242         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
69243         getgroups.c, gethostname.c, getopt.h, group-member.c,
69244         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
69245         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
69246         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
69247         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
69248         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
69249         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
69250         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
69251         yesno.c: Back out Copyright date changes for each file with no change
69252         this year.  This eases coordination with other programs using the same
69253         source code modules.  From Paul Eggert.
69254
69255 2000-08-06  Paul Eggert  <eggert@twinsun.com>
69256
69257         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
69258         not char, for compatibility with glibc 2.1.3 strftime.c.
69259
69260 2000-08-03  Greg McGary  <greg@mcgary.org>
69261
69262         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69263         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69264         (EXTEND_BUFFER): Use them.
69265
69266 2000-08-01  Jim Meyering  <meyering@lucent.com>
69267
69268         * lib/dirname.c (ISSLASH): Define.
69269         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69270         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69271         both `\' and `/' may be use as path separators.
69272         Based on a patch from Prashant TR.
69273
69274 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69275
69276         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69277         slot vector a constant, since it might get modified.
69278
69279 2000-07-31  Jim Meyering  <meyering@lucent.com>
69280
69281         * lib/xmalloc.c: Use `virtual memory exhausted', not
69282         `Memory exhausted'.
69283         * lib/obstack.c (print_and_abort): Likewise.
69284
69285 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69286
69287         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69288         buffer, so that the caller can always quote one small
69289         component of a "memory exhausted" message in slot 0.
69290         From a suggestion by Jim Meyering.
69291
69292 2000-07-30  Jim Meyering  <meyering@lucent.com>
69293
69294         * lib/makepath.c (make_path): Quote the other instance, too.
69295
69296         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69297         (STATIC_BUF_SIZE): Define.
69298         (quotearg_n_options): Use only statically allocated storage when
69299         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69300         than STATIC_BUF_SIZE.
69301
69302 2000-07-29  Jim Meyering  <meyering@lucent.com>
69303
69304         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69305         * lib/dirname.c (dir_name): Likewise.
69306
69307         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69308         `/'.
69309
69310         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69311         (dir_name): Assert that there are no trailing slashes.
69312
69313 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69314
69315         * lib/mbswidth.h (mbswidth): Add a flags argument.
69316         (mbswidth): New declaration.
69317         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69318         * lib/mbswidth.c (mbswidth): Add a flags argument.
69319         (mbsnwidth): New function.
69320
69321 2000-07-24  Jim Meyering  <meyering@lucent.com>
69322
69323         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69324
69325 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69326
69327         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69328
69329 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69330
69331         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69332         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69333         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69334         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69335         invoke multibyte primitives.
69336
69337 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69338
69339         * lib/quotearg.c:
69340         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69341         so that mbstate_t is always defined.
69342
69343         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69344         be 1 in at least one GCC installation, and this configuration
69345         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69346         performance on hosts that have mbrtowc but have only unibyte
69347         locales, but I assume these hosts are rare.
69348
69349 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69350
69351         * lib/mbswidth.c (_XOPEN_SOURCE):
69352         Don't define; this causes problems on Solaris 7.
69353         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69354
69355 2000-07-23  Jim Meyering  <meyering@lucent.com>
69356
69357         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69358         too: getgrgid, getpwuid, getuid.
69359
69360 2000-07-23  Jim Meyering  <meyering@lucent.com>
69361
69362         * lib/basename.c (base_name): Add an assertion.
69363
69364 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69365
69366         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69367         shadow its mbsinit function.
69368
69369 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69370
69371         * lib/mbswidth.h: New file.
69372         * lib/mbswidth.c: New file.
69373         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69374         (noinst_HEADERS): Add mbswidth.h.
69375
69376 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69377
69378         * lib/config.charset: Add support for FreeBSD. Improve support for
69379         HP-UX and IRIX 6.
69380
69381 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69382
69383         * m4/mbswidth.m4: New file.
69384         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69385
69386 2000-07-15  Jim Meyering  <meyering@lucent.com>
69387
69388         * lib/makepath.c: Include quote.h.
69389         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69390         corresponding argument in a `quote (...)' call.
69391         Give better diagnostics.
69392
69393         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
69394         (noinst_HEADERS): Add quote.h.
69395
69396         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
69397         from tar's src/misc.c.
69398         * lib/quote.h: New file.  Prototypes for same.
69399
69400 2000-07-14  Paul Eggert  <eggert@twinsun.com>
69401
69402         From a suggestion by Bruno Haible.
69403         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
69404         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
69405         to decide whether to define the BeOS workaround macro;
69406         this adjusts to the change to AC_MBSTATE_T.
69407
69408 2000-07-14  Jim Meyering  <meyering@lucent.com>
69409
69410         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
69411         jm_AC_TYPE_UINTMAX_T.
69412
69413 2000-07-13  Paul Eggert  <eggert@twinsun.com>
69414
69415         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
69416
69417         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
69418         quotearg_buffer_restyled): Add support for
69419         clocale_quoting_style.  Undo previous change to
69420         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
69421         and "{RIGHT QUOTATION MARK}" msgids.
69422
69423 2000-07-10  Paul Eggert  <eggert@twinsun.com>
69424
69425         From a suggestion by Bruno Haible.
69426         * m4/mbstate_t.m4 (AC_MBSTATE_T):
69427         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
69428         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
69429         and mbstate_t, to a single-part test that simply defines mbstate_t.
69430         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
69431         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
69432
69433 2000-07-10  Jim Meyering  <meyering@lucent.com>
69434
69435         * m4/strerror_r.m4: Mirror the correction made in autoconf.
69436
69437         * m4/gnu-source.m4: Output to confdefs.h directly.
69438         Suggestion from Akim Demaille.
69439
69440 2000-07-09  Paul Eggert  <eggert@twinsun.com>
69441
69442         The old behavior of quoting `like this' doesn't look good with
69443         newer, ISO-style fonts.  See:
69444         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
69445
69446         Instead, quote "like this" by default.  Let the translator
69447         tailor the locale-specific quoting behavior by providing
69448         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
69449
69450         * lib/quotearg.c (N_): New macro.
69451         (gettext_default): New function.
69452         (quotearg_buffer_restyled): Use
69453         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
69454         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
69455
69456 2000-07-09  Jim Meyering  <meyering@lucent.com>
69457
69458         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
69459         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
69460
69461         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
69462         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
69463
69464 2000-07-09  Jim Meyering  <meyering@lucent.com>
69465
69466         * lib/Most files: Update copyright dates to include 2000.
69467
69468 2000-07-08  Jim Meyering  <meyering@lucent.com>
69469
69470         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
69471         if not defined.
69472         (xgethostname): Remove now-unnecessary #ifdef.
69473         Move declaration of `err' into loop where it's used.
69474
69475 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69476         and Bruno Haible  <haible@clisp.cons.org>
69477
69478         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
69479         only if the test for an object-type mbstate_t fails.  This
69480         prevents us from mistakenly reporting that mbstate_t is a
69481         system object type after we "#define mbstate_t int" to work
69482         around its lack.
69483
69484 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69485         and Bruno Haible  <haible@clisp.cons.org>
69486
69487         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
69488
69489 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69490
69491         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
69492         to strerror_r.
69493         Include <ctype.h> for use of isalpha.
69494
69495 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69496
69497         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
69498         by allocating a larger buffer. Test the gethostname return value for
69499         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
69500         returns an error and ENAMETOOLONG isn't defined.
69501
69502 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69503
69504         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
69505         dimension.
69506
69507 2000-07-04  Jim Meyering  <meyering@lucent.com>
69508
69509         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
69510         of the deprecated AC_CHECKING.
69511
69512 2000-07-04  Jim Meyering  <meyering@lucent.com>
69513
69514         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
69515         Reported by Bruno Haible.
69516
69517 2000-07-04  Jim Meyering  <meyering@lucent.com>
69518
69519         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
69520         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
69521         lacks mbrtowc.
69522
69523 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69524
69525         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
69526         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
69527
69528 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69529         and Bruno Haible  <haible@clisp.cons.org>
69530
69531         * lib/quotearg.c (mbrtowc):
69532         Assign to *pwc, and return 1 only if result is nonzero.
69533         (iswprint): Use ISPRINT when substituting our own mbrtowc.
69534
69535 2000-07-03  Jim Meyering  <meyering@lucent.com>
69536
69537         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
69538
69539 2000-07-03  Jim Meyering  <meyering@lucent.com>
69540
69541         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
69542         This is necessary to get a definition of e.g., UTMP_FILE on
69543         HP-UX 10.20.
69544         From Bob Proulx.
69545
69546 2000-07-02  Jim Meyering  <meyering@lucent.com>
69547
69548         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
69549
69550         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
69551         AC_LIBOBJ(function_name).
69552         * m4/chown.m4: Likewise.
69553         * m4/fnmatch.m4: Likewise.
69554         * m4/ftruncate.m4: Likewise.
69555         * m4/getgroups.m4: Likewise.
69556         * m4/getline.m4: Likewise.
69557         * m4/group-member.m4: Likewise.
69558         * m4/jm-macros.m4: Likewise.
69559         * m4/lstat.m4: Likewise.
69560         * m4/malloc.m4: Likewise.
69561         * m4/memcmp.m4: Likewise.
69562         * m4/nanosleep.m4: Likewise.
69563         * m4/putenv.m4: Likewise.
69564         * m4/realloc.m4: Likewise.
69565         * m4/regex.m4: Likewise.
69566         * m4/stat.m4: Likewise.
69567         * m4/strftime.m4: Likewise.
69568
69569 2000-07-02  Jim Meyering  <meyering@lucent.com>
69570
69571         * lib/quotearg.c (mbstate_t): Don't define here.
69572
69573 2000-07-02  Jim Meyering  <meyering@lucent.com>
69574
69575         * lib/nanosleep.c (SIGCONT): Define if not already defined.
69576
69577 2000-07-01  Jim Meyering  <meyering@lucent.com>
69578
69579         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
69580
69581 2000-07-01  Jim Meyering  <meyering@lucent.com>
69582
69583         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
69584         problem.
69585
69586 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69587
69588         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
69589         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
69590
69591 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69592
69593         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
69594         per change in ../m4/ls-mntd-fs.m4.
69595         (read_filesystem_list): Ignore symbolic links.
69596
69597 2000-06-29  Jim Meyering  <meyering@lucent.com>
69598
69599         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
69600         for declaration of strcmp.
69601
69602         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
69603
69604         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
69605         Avoid warning by casting result to `char *' to remove `const'.
69606
69607 2000-06-28  Jim Meyering  <meyering@lucent.com>
69608
69609         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
69610         included by quotearg.c, for which we perform this test.  From
69611         Bruno Haible.
69612
69613 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69614
69615         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
69616         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
69617         <utmpx.h> exists, put readutmp.o into LIBOBJS.
69618
69619 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69620
69621         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
69622
69623 2000-06-26  Paul Eggert  <eggert@twinsun.com>
69624
69625         savedir now sets errno on failure and invokes xmalloc to get memory.
69626         Fix a couple of other minor bugs while we're at it.
69627
69628         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
69629         (NAMLEN): Remove macro.
69630         (malloc, realloc): Remove decls.
69631         (stpcpy): Likewise.
69632         ("xalloc.h"): Include.
69633         (NAME_SIZE_DEFAULT): New macro.
69634         (savedir): Use xmalloc / xrealloc to allocate memory.
69635         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
69636         Skip "" directory entries.
69637         Use strlen to calculate directory entry length, since the old method
69638         is rarely used these days and isn't worth supporting.
69639         Don't use a pointer after freeing it.
69640         Check for integer overflow when calculating allocation size.
69641         Use memcpy to copy entries, instead of stpcpy.
69642         Set errno properly when returning NULL.
69643         Check for readdir error.
69644
69645 2000-06-26  Jim Meyering  <meyering@lucent.com>
69646
69647         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
69648
69649 2000-06-25  Jim Meyering  <meyering@lucent.com>
69650
69651         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
69652         Linux header bug when _XOPEN_SOURCE is defined to 500.
69653
69654 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69655
69656         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
69657         deficiency.
69658
69659 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69660
69661         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
69662         Include xalloc.h.
69663         Don't include <stdlib.h>.  Don't declare malloc, realloc.
69664
69665 2000-06-24  Jim Meyering  <meyering@lucent.com>
69666
69667         * m4/strerror_r.m4: Revive this file -- to try out an experimental
69668         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
69669         for which strerror does return char*, but which lacks a conveniently
69670         accessible declaration of the function.  If the compile-test says
69671         strerror_r doesn't work, then resort to a `run'-test that works on
69672         BeOS and segfaults on DEC Unix.
69673
69674 2000-06-24  Jim Meyering  <meyering@lucent.com>
69675
69676         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
69677
69678 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69679
69680         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
69681         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
69682
69683 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69684
69685         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
69686         (mbrtowc, mbstate_t): Define substitutes if
69687         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
69688         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
69689         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
69690
69691 2000-06-23  Jim Meyering  <meyering@lucent.com>
69692
69693         * m4/afs.m4: Add missing AC_MSG_RESULT.
69694         Reported by Bruno Haible.
69695
69696         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
69697         Suggestion from Bruno Haible.
69698
69699 2000-06-23  Jim Meyering  <meyering@lucent.com>
69700
69701         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
69702
69703 2000-06-21  Jim Meyering  <meyering@lucent.com>
69704
69705         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
69706
69707 2000-06-21  Jim Meyering  <meyering@lucent.com>
69708
69709         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
69710         (noinst_HEADERS): Add getstr.h.
69711
69712         * lib/getline.c (getstr): Move into a separate file.
69713         * lib/getstr.c (getstr): New file, extracted from getline.c, with
69714         the following changes: new parameter, delim2; both delim[12]
69715         parameters have type `int', not `char'.  The latter would lose
69716         with 8-bit delimiters.
69717         * lib/getstr.h: New file.
69718
69719 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69720
69721         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
69722         than 1024, return a memory chunk of least possible size, instead
69723         of size PATH_MAX + 2. In the loop, increment the size proportionally.
69724         Use free/xmalloc instead of xrealloc to avoid copying for very long
69725         paths.
69726
69727 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69728
69729         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
69730         the empty string.
69731
69732 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69733
69734         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
69735         address, not strdup.  Include <stdlib.h> and don't declare free().
69736
69737 2000-06-19  Jim Meyering  <meyering@lucent.com>
69738
69739         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
69740
69741 2000-06-18  Jim Meyering  <meyering@lucent.com>
69742
69743         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
69744
69745         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
69746         `checking whether...' message to be consistent with that of the
69747         lstat test.
69748
69749 2000-06-18  Jim Meyering  <meyering@lucent.com>
69750
69751         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
69752         Besides, these days every porting target provides a mkdir function.
69753
69754         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
69755         needed. (this snippet comes from src/system.h).
69756
69757 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
69758
69759         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
69760
69761 2000-06-15  Paul Eggert  <eggert@twinsun.com>
69762
69763         * lib/human.c (adjust_value): New function.
69764         (human_readable_inexact): Apply rounding style even when
69765         printing approximate values.
69766
69767 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69768
69769         * lib/human.c (human_readable_inexact): Allow an input block
69770         size that is not a multiple of the output block size, and vice versa.
69771         Reported by Piergiorgio Sartor.
69772
69773 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69774
69775         * lib/getdate.y (get_date): Apply relative times after time
69776         zone indicator, not before.  Reported by Todd A. Jacobs.
69777
69778 2000-06-13  Jim Meyering  <meyering@lucent.com>
69779
69780         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
69781
69782         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
69783
69784 2000-06-12  Paul Eggert  <eggert@twinsun.com>
69785
69786         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
69787
69788 2000-06-12  Jim Meyering  <meyering@lucent.com>
69789
69790         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
69791         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
69792         optional argument.
69793         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
69794         the optional argument, `lib'.
69795
69796 2000-06-08  Jim Meyering  <meyering@lucent.com>
69797
69798         * m4/largefile.m4: Remove file (now that it's part of autoconf).
69799
69800 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69801
69802         Rewrite largefile configuration so that we don't need to run
69803         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
69804         AC_CANONICAL_HOST in configure.in -- jmm]
69805
69806         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
69807         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
69808         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
69809         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
69810         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
69811         All uses changed.
69812         Instead of inspecting the output of getconf, try to compile the
69813         test program without and with the macro definition.
69814         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
69815         for getconf.  Instead, check for the needed flags by compiling
69816         test programs.
69817
69818 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69819
69820         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
69821
69822 2000-06-04  Jim Meyering  <meyering@lucent.com>
69823
69824         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
69825         SunOS 4.1.4 for which gid_t is an unsigned type.
69826
69827 2000-06-03  Jim Meyering  <meyering@lucent.com>
69828
69829         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
69830         now that autoconf requires that.
69831
69832         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
69833         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
69834         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
69835
69836 2000-06-03  Jim Meyering  <meyering@lucent.com>
69837
69838         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
69839
69840 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
69841
69842         * m4/glibc21.m4: New file.
69843         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
69844
69845 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
69846
69847         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
69848         newer, don't install charset.alias.
69849         * lib/config.charset: Change the Linux/glibc rules so they become empty
69850         on glibc-2.1 or newer.
69851
69852 2000-06-02  Jim Meyering  <meyering@lucent.com>
69853
69854         * lib/mountlist.c: Back out last change.  Instead, do this...
69855         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
69856         me_dummy member using the same `ignore'-testing code.
69857         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
69858         fs_type strings.
69859         From Mark D. Roth.
69860
69861 2000-05-29  Jim Meyering  <meyering@lucent.com>
69862
69863         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
69864         mounts with the `ignore' attribute.  Based on a patch from
69865         Mark D. Roth.
69866
69867 2000-05-28  Jim Meyering  <meyering@lucent.com>
69868
69869         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
69870         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69871         * m4/stat.m4: Likewise.
69872         * m4/lstat.m4: Likewise.
69873         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
69874
69875         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
69876         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
69877
69878 2000-05-26  Jim Meyering  <meyering@lucent.com>
69879
69880         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
69881
69882 2000-05-24  Jim Meyering  <meyering@lucent.com>
69883
69884         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
69885         autoconf requires that.
69886         * m4/lib-check.m4: Likewise.
69887         * m4/jm-macros.m4: Likewise.
69888         * m4/strftime.m4: Likewise.
69889
69890         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
69891         AC_CHECK_DECLS, now that autoconf requires that.
69892
69893 2000-05-22  Jim Meyering  <meyering@lucent.com>
69894
69895         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69896         * m4/lstat.m4: Likewise.
69897
69898 2000-05-22  Jim Meyering  <meyering@lucent.com>
69899
69900         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
69901
69902 2000-05-20  Jim Meyering  <meyering@lucent.com>
69903
69904         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
69905         (jm_PREREQ): Use it.
69906
69907 2000-05-18  Jim Meyering  <meyering@lucent.com>
69908
69909         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
69910         back, too, since it may have been modified by allocate_entry.
69911         (hash_delete): Rewrite to use neither the assignment operator
69912         nor the comma operator in an if-expression.
69913
69914 2000-05-15  Paul Eggert  <eggert@twinsun.com>
69915
69916         * lib/closeout.c:
69917         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
69918         Remove; no longer needed.
69919         "quotearg.h": Add include.
69920         (file_name): Do not bother to explicitly initialize to NULL; it's less
69921         efficient on some hosts.
69922         (close_stdout_status): Remove test as to whether stdout was already
69923         closed; it breaks for the case "echo x | sort >&-".
69924         Quote file name colons.
69925         Do not assume that _("write error") lacks format strings.
69926
69927 2000-05-15  Jim Meyering  <meyering@lucent.com>
69928
69929         * lib/version-etc.c (version_etc_copyright): Update the copyright
69930         string used in all --version output.
69931
69932 2000-05-14  Jim Meyering  <meyering@lucent.com>
69933
69934         * lib/closeout.c (close_stdout_set_file_name): New function.
69935         (close_stdout_status): Use new file-scoped global.
69936         Return right away if fstat says the stdout file descriptor is invalid.
69937         * lib/closeout.h (close_stdout_set_file_name): Declare.
69938
69939 2000-05-10  Jim Meyering  <meyering@lucent.com>
69940
69941         * lib/closeout.c [default_exit_status]: New file-scoped variable.
69942         (close_stdout_set_status): New function.
69943         * lib/closeout.h (close_stdout_set_status): Declare.
69944
69945 2000-05-09  Jim Meyering  <meyering@lucent.com>
69946
69947         * m4/gettext.m4: Rename this...
69948         * m4/libintl.m4: ...to this.
69949
69950 2000-05-08  Jim Meyering  <meyering@lucent.com>
69951
69952         * lib/long-options.c: Don't include closeout.h.
69953         (parse_long_options): Don't call close_stdout for --version.
69954
69955 2000-05-06  Paul Eggert  <eggert@twinsun.com>
69956
69957         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
69958         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
69959         2.1.3 bug.  This avoids a clash when files like regex.c define
69960         _GNU_SOURCE.
69961
69962 2000-05-06  Jim Meyering  <meyering@lucent.com>
69963
69964         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
69965         (AC_REPLACE_FUNCS): Add strnlen.
69966
69967         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
69968         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
69969
69970         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
69971         AC_SEARCH_LIBS call for nanosleep.
69972         (LIB_NANOSLEEP): Set and AC_SUBST.
69973
69974 2000-05-06  Jim Meyering  <meyering@lucent.com>
69975
69976         * lib/strnlen.c: Undefine __strnlen and strnlen.
69977         [!weak_alias]: Define __strnlen to strnlen.
69978
69979         * lib/atexit.c: New file, from libiberty.
69980
69981 2000-05-06  Jim Meyering  <meyering@lucent.com>
69982
69983         * lib/closeout.c (close_stdout_status): Also check for errors on the
69984         stderr stream.
69985
69986 2000-05-05  Jim Meyering  <meyering@lucent.com>
69987
69988         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
69989         AC_SEARCH_LIBS call for clock_gettime.
69990         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
69991
69992         * m4/search-libs.m4: Update from autoconf.
69993
69994         su doesn't work on Solaris 2.6.
69995         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
69996         <shadow.h>.  Reported by Dragos Harabor.
69997
69998 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
69999
70000         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70001         memcpy instead of xmalloc, xrealloc, path_concat.
70002         (locale_charset): Treat empty environment variables as absent.
70003         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70004
70005 2000-05-04  Jim Meyering  <meyering@lucent.com>
70006
70007         * lib/getopt.c: Update from glibc.
70008         * lib/obstack.c: Likewise.
70009         * lib/obstack.h: Likewise.
70010         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70011         file
70012
70013         * lib/regex.h: Likewise.
70014         * lib/strndup.c: Likewise.
70015         * lib/strnlen.c: New file, from glibc.
70016
70017 2000-05-03  Jim Meyering  <meyering@lucent.com>
70018
70019         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70020
70021 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70022
70023         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70024         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70025         compile-time test, rather than inspecting host and OS, to
70026         decide whether to define _LARGEFILE_SOURCE.
70027
70028 2000-05-01  Jim Meyering  <meyering@lucent.com>
70029
70030         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70031
70032         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70033         Based on a patch from Bruno Haible.
70034
70035 2000-05-01  Jim Meyering  <meyering@lucent.com>
70036
70037         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70038
70039 2000-04-29  Jim Meyering  <meyering@lucent.com>
70040
70041         * lib/path-concat.c: Declare strdup only if it's not defined.
70042         * lib/canon-host.c: Likewise.
70043
70044 2000-04-28  Jim Meyering  <meyering@lucent.com>
70045
70046         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70047         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70048         is included first, then limits.h is included by locale.h by libintl.h.
70049         From John David Anglin.
70050
70051 2000-04-25  Jim Meyering  <meyering@lucent.com>
70052
70053         * lib/makepath.c (S_IRWXUGO): Define.
70054         (make_path): Always perform explicit chmod if MODE specifies any
70055         of the `special' permission bits.  Prompted by a bug report against
70056         install from Mate Wierdl and Joost van Baal.
70057
70058 2000-04-18  Jim Meyering  <meyering@lucent.com>
70059
70060         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70061         (jm_PREREQ): Use it.
70062
70063 2000-04-18  Jim Meyering  <meyering@lucent.com>
70064
70065         * lib/README: New file.
70066
70067         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70068         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70069
70070 2000-04-17  Jim Meyering  <meyering@lucent.com>
70071
70072         Get it right :-)
70073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70074         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70075         Suggestion from Akim Demaille.
70076
70077 2000-04-17  Jim Meyering  <meyering@lucent.com>
70078
70079         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70080         the definition of it to rpl_strftime also defined-away the system's
70081         declaration.
70082
70083 2000-04-15  Jim Meyering  <meyering@lucent.com>
70084
70085         Use `C' to denote so-called `contiguous' files, the same way
70086         that tar does.
70087         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70088         (ftypelet): Use S_ISCTG.
70089         From Michael Deutschmann.
70090
70091 2000-04-14  Jim Meyering  <meyering@lucent.com>
70092
70093         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70094         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70095         clobbered.
70096
70097 2000-04-14  Jim Meyering  <meyering@lucent.com>
70098
70099         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70100
70101 2000-04-13  Jim Meyering  <meyering@lucent.com>
70102
70103         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70104         AH_VERBATIM to insert required #ifndef into config.h.in.
70105         Suggestion from Akim Demaille.
70106
70107 2000-04-12  Jim Meyering  <meyering@lucent.com>
70108
70109         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70110         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70111         Christian Krackowizer.
70112
70113         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70114         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70115         (AC_SYS_LARGEFILE): Require.
70116         (AM_C_PROTOTYPES): Require.
70117
70118 2000-04-08  Jim Meyering  <meyering@lucent.com>
70119
70120         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70121         names don't conflict.  Reported by Eli Zaretskii.
70122
70123 2000-04-07  Jim Meyering  <meyering@lucent.com>
70124
70125         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70126         sys/types.h, to work around system header problems on AIX 3.2.5.
70127         From Bruno Haible.
70128
70129 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70130
70131         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70132         bug.  Deal with the different error behavior of Irix iconv.
70133
70134 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70135
70136         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70137         IRIX if the installer said otherwise.
70138
70139 2000-04-05  Jim Meyering  <meyering@lucent.com>
70140
70141         Portability tweaks required for ultrix4.3.
70142         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70143         (jm_CHECK_DECLS): Add getutent to the list of functions.
70144         (_jm_DECL_HEADERS): Add utmpx.h.
70145         From John David Anglin.
70146
70147         * m4/strftime.m4: Back out the 2000-04-02 change.
70148         Instead of that change, simply undefine putenv in the test program.
70149
70150 2000-04-05  Jim Meyering  <meyering@lucent.com>
70151
70152         Portability tweaks required for ultrix4.3.
70153         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70154         getutent.
70155         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70156         * lib/canon-host.c: Declare strdup.
70157         * lib/path-concat.c: Likewise.
70158         From John David Anglin.
70159
70160 2000-04-04  Jim Meyering  <meyering@lucent.com>
70161
70162         Be more DOS 8.3-friendly.
70163         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70164         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70165         * lib/Makefile.am: Reflect renaming.
70166         Reported by Eli Zaretskii.
70167
70168         Use a temporary file name that won't clash with `charset.alias'
70169         in the DOS 8.3 name space.
70170         * lib/Makefile.am (charset_tmp): Define.
70171         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70172         (uninstall-local): Likewise.
70173         Reported by Eli Zaretskii.
70174
70175 2000-04-03  Jim Meyering  <meyering@lucent.com>
70176
70177         * m4/gettext.m4: Fix typo in comment.
70178
70179         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70180         textutils/configure.in).  Suggestion from Paul Eggert.
70181         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70182
70183 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70184
70185         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70186         variable in the shell rather than using putenv, which isn't
70187         portable.  This avoids the configure-time inter-test dependency
70188         on the potentially-renamed putenv function.
70189
70190 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70191
70192         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70193         before checking struct stat.st_blksize, so that
70194         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70195
70196 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70197
70198         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70199         since strftime.c uses HAVE_STRFTIME to decide whether to use
70200         the underlying strftime.
70201
70202 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70203
70204         * lib/time/strftime.c (my_strftime): Make sure we call the system
70205         strftime, not ourselves, when invoking the underlying strftime.
70206
70207 2000-03-24  Jim Meyering  <meyering@lucent.com>
70208
70209         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70210         (charset_alias): Define.
70211         (install-exec-local): Factor out common code.
70212         (uninstall-local): Split lines longer than 80.
70213         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70214         (SUFFIXES): Define.
70215         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70216         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70217
70218 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70219
70220         * lib/config.charset: Output a line containing "Packages using this
70221         file".
70222         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
70223         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
70224         ref-del.sed): New rules.
70225
70226 2000-03-17  Jim Meyering  <meyering@lucent.com>
70227
70228         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
70229         Otherwise, include <strings.h>
70230
70231 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
70232
70233         * lib/unicodeio.c (utf8_wctomb): New function.
70234         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
70235         format instead of in UCS-4 with platform dependent endianness.
70236
70237 2000-03-10  Jim Meyering  <meyering@lucent.com>
70238
70239         * m4/lib-check.m4: Look for getspnam in -lgen, too.
70240         From Marco Franzen.
70241
70242 2000-03-07  Paul Eggert  <eggert@twinsun.com>
70243
70244         * lib/savedir.c (savedir): Work even if directory size is
70245         negative; this can happen with some screwy NFS configurations.
70246
70247 2000-03-06  Jim Meyering  <meyering@lucent.com>
70248
70249         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
70250         if it's NULL (because we ran out of memory).  From Bruno Haible.
70251
70252 2000-03-05  Jim Meyering  <meyering@lucent.com>
70253
70254         * lib/localcharset.c ("path-concat.h"): Include.
70255         (get_charset_aliases): Use path_concat instead of ANSI string
70256         concatenation.
70257
70258         * lib/unicodeio.h (PARAMS): Define.
70259         Use it to guard prototype.
70260
70261 2000-03-04  Jim Meyering  <meyering@lucent.com>
70262
70263         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70264         for lib/localcharset.c.
70265
70266 2000-03-04  Jim Meyering  <meyering@lucent.com>
70267
70268         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70269         installing into it.
70270         (uninstall-local): Uncomment this rule so `make distcheck' works
70271         once again.
70272
70273         * lib/unicodeio.c (<errno.h>): Include it.
70274         (errno): Declare if not defined.
70275
70276         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70277
70278         * lib/config.charset: New version, incorporating remarks from a linux
70279         i18n mailing list.  From Bruno Haible.
70280
70281 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70282
70283         * m4/codeset.m4: New file.
70284         * m4/iconv.m4: New file.
70285         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70286
70287 2000-03-03  Jim Meyering  <meyering@lucent.com>
70288
70289         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70290
70291 2000-03-02  Jim Meyering  <meyering@lucent.com>
70292
70293         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70294         the messages come out on separate lines.
70295
70296         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70297         rather than jm_CHECK_DECLARATIONS.
70298         * m4/decl.m4: Remove now-unused file.
70299
70300         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70301         geteuid.
70302
70303 2000-03-02  Jim Meyering  <meyering@lucent.com>
70304
70305         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70306
70307 2000-03-01  Jim Meyering  <meyering@lucent.com>
70308
70309         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70310         * lib/unicodeio.c: Likewise.
70311
70312 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70313
70314         * lib/config.charset: New file.
70315         * lib/localcharset.c: New file.
70316         * lib/unicodeio.h, lib/unicodeio.c: New files.
70317         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70318         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70319         (noinst_HEADERS): Add unicodeio.h.
70320         (all-local, install-exec-local, charset.alias): New targets.
70321
70322 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70323
70324         * lib/quotearg.c (ALERT_CHAR): New macro.
70325         (quotearg_buffer_restyled): Use it.
70326
70327 2000-02-27  Jim Meyering  <meyering@lucent.com>
70328
70329         * m4/check-decl.m4: Add getenv to the list.
70330
70331 2000-02-27  Jim Meyering  <meyering@lucent.com>
70332
70333         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70334         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70335
70336         * lib/backupfile.c: Guard inclusion of stdlib.h with
70337         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70338         Declare malloc if needed.
70339
70340         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70341         `#ifndef HAVE_DECL..'
70342         now that autoconf always defines the HAVE_DECL_ symbols.
70343         * lib/human.c: Likewise.
70344         * lib/same.c: Likewise.
70345         * lib/strtoumax.c: Likewise.
70346
70347         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70348         declaration check was not run.
70349         * lib/hash.c: Likewise.
70350         * lib/human.c: Likewise.
70351         * lib/same.c: Likewise.
70352         * lib/strtoumax.c: Likewise.
70353
70354         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70355         `.', then first look up the entire `.'-containing string as a login
70356         name.
70357
70358 2000-02-23  Jim Meyering  <meyering@lucent.com>
70359
70360         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70361         in place of my hack.
70362
70363 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70364
70365         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70366         (textint): New typedef.
70367         (parser_control): Member year changed from int to textint.
70368         All uses changed.
70369         (YYSTYPE): Removed; replaced by %union with int and textint members.
70370         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70371         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70372         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70373         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70374         (date, number, to_year): Use width of number in digits, not its value,
70375         to determine whether it's a 2-digit year, or a 2-digit time.
70376         (yylex): Store number of digits of numeric tokens.
70377         Reported by John Kendall.
70378
70379         (parser_control): Changed from struct parser_control to typedef (for
70380         consistency).  All uses changed.
70381
70382         (tID): Removed; not used.
70383         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70384
70385 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70386
70387         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70388         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70389
70390 2000-02-12  Jim Meyering  <meyering@lucent.com>
70391
70392         * lib/userspec.c (ISDIGIT): Define it.
70393         (isdigit): Remove definition.
70394         (is_number): Use ISDIGIT, not isdigit.
70395         <libintl.h>: Include.
70396         (_ and N_): Define.
70397         (parse_user_spec): Mark translatable strings.
70398
70399 2000-02-10  Jim Meyering  <meyering@lucent.com>
70400
70401         With these changes, nanosleep.[ch] are finally enough like the other
70402         lib/* replacement files to compile on a few more losing systems.
70403
70404         * lib/nanosleep.h: Don't include config.h.
70405         Remove prototype from declaration of nanosleep.
70406         (PARAMS): Remove now-unneeded definition.
70407         * lib/nanosleep.c: #undef nanosleep.
70408         (rpl_nanosleep): Rename from nanosleep.
70409
70410 2000-02-10  Jim Meyering  <meyering@lucent.com>
70411
70412         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
70413         gnu_nanosleep to rpl_nanosleep.
70414
70415 2000-02-09  Jim Meyering  <meyering@lucent.com>
70416
70417         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
70418         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
70419
70420 2000-02-08  Akim Demaille  <akim@epita.fr>
70421
70422         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
70423         `[' and `]' and remove uses of `changequote'.
70424         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
70425         (AC_SYS_LARGEFILE): Likewise.
70426         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70427         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
70428         of changequote.
70429         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
70430         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
70431         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
70432         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
70433
70434 2000-02-05  Jim Meyering  <meyering@lucent.com>
70435
70436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
70437         Remove explicit use of AC_HEADER_TIME.  It is required by
70438         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
70439         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
70440         in autoconf whereby the expansion of the latter ended up preceding
70441         the expansion of its prerequisite, AC_HEADER_TIME.
70442         Reported by Volker Borchert.
70443
70444 2000-02-03  Jim Meyering  <meyering@lucent.com>
70445
70446         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
70447
70448 2000-02-03  Jim Meyering  <meyering@lucent.com>
70449
70450         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
70451         rather than with `#if HAVE_UTMPNAME'.
70452
70453 2000-02-02  Jim Meyering  <meyering@lucent.com>
70454
70455         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
70456         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
70457         Reported by Eli Zaretskii.
70458
70459 2000-02-01  Jim Meyering  <meyering@lucent.com>
70460
70461         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
70462
70463 2000-01-31  Jim Meyering  <meyering@lucent.com>
70464
70465         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
70466         functions.  Add the time.h and sys/time.h headers along with the
70467         AC_REQUIRE'ment of AC_HEADER_TIME.
70468
70469 2000-01-31  Jim Meyering  <meyering@lucent.com>
70470
70471         * lib/nanosleep.h (nanosleep): Guard declaration with
70472         `#if ! HAVE_DECL_NANOSLEEP'.
70473         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
70474         the declaration in that vendor's sys/timers.h.
70475         Reported by Christian Krackowizer.
70476
70477         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
70478         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
70479         (ISPRINT): Likewise.
70480         Reported by Tom Tromey.
70481
70482 2000-01-30  Jim Meyering  <meyering@lucent.com>
70483
70484         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
70485
70486         * m4/prereq.m4 (utmp_includes): Define.
70487         Check for ut_user and ut_name members in both struct utmpx
70488         and struct utmp.
70489
70490 2000-01-30  Jim Meyering  <meyering@lucent.com>
70491
70492         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
70493         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
70494         header files where only utmpx.ut_user is declared.
70495
70496         * lib/readutmp.h (UT_USER): Define.
70497
70498 2000-01-29  Jim Meyering  <meyering@lucent.com>
70499
70500         * m4/lib-check.m4: New file containing library-related checks from
70501         fileutils and sh-utils (textutils had none).
70502
70503 2000-01-28  Jim Meyering  <meyering@lucent.com>
70504
70505         * m4/perl.m4: Change format of warning message to look more like that
70506         from the missing script.  Suggestion from François Pinard.
70507
70508 2000-01-25  Jim Meyering  <meyering@lucent.com>
70509
70510         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
70511         well as time.h in the compile check.
70512         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
70513         Fix typo in cross-compiling case: s/yes/no/.
70514
70515 2000-01-23  Jim Meyering  <meyering@lucent.com>
70516
70517         * m4/jm-macros.m4: Move df-related tests here from
70518         fileutils/configure.in
70519
70520         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
70521         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
70522
70523         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
70524         s/space/ac_fsusage_space/.
70525         (jm_FILE_SYSTEM_USAGE): Take two parameters.
70526
70527         * m4/ftruncate.m4: New file (derived from part of
70528         fileutils/configure.in).
70529         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
70530         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
70531
70532         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
70533         AC_SUBST these here, rather than just in sh-util/configure.in, so
70534         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
70535         all the same.
70536         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
70537         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
70538         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
70539         (AC_SUBST(POW_LIBM)): Likewise.
70540         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
70541
70542 2000-01-23  Jim Meyering  <meyering@lucent.com>
70543
70544         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
70545         obstack.c.
70546
70547 2000-01-22  Jim Meyering  <meyering@lucent.com>
70548
70549         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
70550
70551         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
70552
70553         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
70554         configure.in
70555         (AC_CHECK_HEADERS): Likewise for sh-utils.
70556         (AC_CHECK_HEADERS): Likewise for textutils.
70557         Merge the three lists of headers.
70558
70559         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
70560         from fileutils' configure.in.
70561
70562         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
70563         code. Moved tests into their own function (_jm_DECL_HEADERS) in
70564         check-decl.m4.
70565
70566         * m4/check-decl.m4: Use #if rather than #ifdef.
70567         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
70568         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
70569         (_jm_DECL_HEADERS): Define new function.
70570         (jm_CHECK_DECLARATIONS): Require it.
70571
70572 2000-01-22  Jim Meyering  <meyering@lucent.com>
70573
70574         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
70575         [! HAVE_DECL_STRTOULL]: Declare strtoull.
70576         Required for some AIX systems.  Reported by Christian Krackowizer.
70577         [TESTING] (main): New function.
70578
70579         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
70580         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
70581         letters.
70582
70583         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
70584         iswprint.
70585
70586         * lib/strverscmp.c (ISDIGIT): Define.
70587         (strverscmp): Use ISDIGIT, not isdigit.
70588
70589 2000-01-19  Jim Meyering  <meyering@lucent.com>
70590
70591         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
70592         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
70593         defines `struct timespec' in <sys/time.h>
70594
70595         * m4/c-bs-a.m4: Remove uses of changequote altogether.
70596         Thanks to Akim for explaining.
70597
70598 2000-01-17  Paul Eggert  <eggert@twinsun.com>
70599
70600         * lib/nanosleep.c (nanosleep):
70601         Don't use SA_INTERRUPT to decide whether to call sigaction, as
70602         POSIX.1 doesn't require SA_INTERRUPT and some systems
70603         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
70604         it's been part of POSIX.1 since day 1 (in 1988).
70605
70606 2000-01-17  Jim Meyering  <meyering@lucent.com>
70607
70608         * lib/interlock: Remove unused file.  Reported by François Pinard.
70609
70610 2000-01-16  Paul Eggert  <eggert@twinsun.com>
70611
70612         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
70613         alert, backslash, formfeed, and vertical tab unnecessarily in
70614         shell quoting style.
70615
70616 2000-01-16  Jim Meyering  <meyering@lucent.com>
70617
70618         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
70619         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
70620         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
70621         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
70622
70623 2000-01-16  Jim Meyering  <meyering@lucent.com>
70624
70625         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
70626         because the latter didn't work.
70627
70628 2000-01-15  Jim Meyering  <meyering@lucent.com>
70629
70630         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
70631         (AC_REPLACE_FUNCS): Add memcpy and memset.
70632         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
70633         Add strpbrk.
70634         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
70635
70636 2000-01-12  Jim Meyering  <meyering@lucent.com>
70637
70638         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
70639         (jm_PREREQ): Use it.
70640         (jm_PREREQ_READUTMP): New macro.
70641         (jm_PREREQ): Use it.
70642
70643 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70644
70645         Quote multibyte characters correctly.
70646         * m4/c-bs-a.m4: New file.
70647         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
70648         (jm_PREREQ): Use it.
70649
70650 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70651
70652         * m4/uintmax_t.m4: Port to autoconf 2.13.
70653
70654 2000-01-08  Jim Meyering  <meyering@ascend.com>
70655
70656         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
70657         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
70658
70659 2000-01-04  Jim Meyering  <meyering@ascend.com>
70660
70661         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
70662         jm_STRUCT_DIRENT_D_TYPE.
70663         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
70664         jm_STRUCT_DIRENT_D_INO.
70665         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
70666         jm_STRUCT_UTIMBUF.
70667         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
70668         renamings.
70669         * m4/utime.m4: Likewise.
70670
70671         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
70672         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
70673
70674 2000-01-03  Paul Eggert  <eggert@twinsun.com>
70675
70676         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
70677         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
70678
70679 2000-01-02  Jim Meyering  <meyering@ascend.com>
70680
70681         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
70682         remember if this is necessary.
70683
70684 1999-12-26  Jim Meyering  <meyering@ascend.com>
70685
70686         * m4/jm-macros.m4: Use it here.
70687         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
70688
70689 1999-12-23  Jim Meyering  <meyering@ascend.com>
70690
70691         * m4/jm-macros.m4: Check for clock_gettime (moved from
70692         fileutils/configure.in)
70693         Check for gettimeofday.
70694
70695 1999-12-20  Jim Meyering  <meyering@ascend.com>
70696
70697         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
70698         autoconf-2.14a-1999-12-20.
70699
70700 1999-12-19  Jim Meyering  <meyering@ascend.com>
70701
70702         * m4/lstat-slash.m4: New file.
70703         * m4/jm-macros.m4: Use the new macro:
70704         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70705
70706 1999-12-07  Jim Meyering  <meyering@ascend.com>
70707
70708         * m4/perl.m4: Require that File::Compare be available, too.
70709         Too many systems seem to lack it.
70710
70711         * m4/strftime.m4: Add checks for most of the cpp macros tested in
70712         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
70713
70714 1999-11-18  Paul Eggert  <eggert@twinsun.com>
70715
70716         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
70717         problem with the QNX 4.25 shell, which doesn't propagate exit
70718         status of failed commands inside shell assignments.
70719
70720 1999-11-17  Jim Meyering  <meyering@ascend.com>
70721
70722         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
70723
70724 1999-11-07  Jim Meyering  <meyering@ascend.com>
70725
70726         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
70727
70728 1999-11-06  Jim Meyering  <meyering@ascend.com>
70729
70730         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
70731         * m4/jm-macros.m4 (jm_MACROS): Use it here.
70732
70733 1999-11-05  Jim Meyering  <meyering@ascend.com>
70734
70735         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
70736         configure.in of textutils, fileutils, and sh-utils into this one
70737         (shared between those packages) file.
70738         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
70739         AC_STRUCT_ST_BLKSIZE.
70740
70741 1999-11-03  Jim Meyering  <meyering@ascend.com>
70742
70743         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
70744         of AC_CHECK_TYPE checks includes unistd.h.
70745         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
70746         Suggestion from Akim Demaille.
70747
70748 1999-10-30  Jim Meyering  <meyering@ascend.com>
70749
70750         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
70751         m4-quoted string.
70752         * m4/ls-mntd-fs.m4: Likewise.
70753         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
70754         * m4/jm-winsz1.m4: Likewise.
70755
70756         * m4/const.m4: Remove file, since the fix made it into the experimental
70757         version of autoconf.
70758         * m4/mktime.m4: Likewise.
70759
70760         * m4/check-type.m4: Remove file, now that the latest version of
70761         AC_CHECK_TYPE takes a third arg to specify additional #includes.
70762
70763         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
70764         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
70765         AC_CHECK_TYPE.
70766
70767 1999-10-04  Jim Meyering  <meyering@ascend.com>
70768
70769         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
70770
70771 1999-09-22  Paul Eggert  <eggert@twinsun.com>
70772
70773         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
70774         2.95.1 bug with HP-UX 10.20.
70775
70776 1999-09-17  Jim Meyering  <meyering@ascend.com>
70777
70778         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
70779         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
70780         due to missing strdup (against sh-utils-2.0).
70781
70782 1999-08-29  Jim Meyering  <meyering@ascend.com>
70783
70784         * m4/jm-macros.m4: Require jm_BISON.
70785         * m4/bison.m4: New file.
70786
70787 1999-08-17  Paul Eggert  <eggert@twinsun.com>
70788
70789         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
70790         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
70791
70792 1999-08-05  Jim Meyering  <meyering@ascend.com>
70793
70794         * m4/getline.m4: Rename test file from conftestdata to conftest.data
70795         to avoid conflicts with `conftest' on 8+3 filesystems.
70796         Suggestion from Eli Zaretskii.
70797
70798 1999-08-04  Jim Meyering  <meyering@ascend.com>
70799
70800         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
70801         fileutils and sh-utils (textutils's getline test was inadequate).
70802         (AM_FUNC_GETLINE): Run this test.
70803         (AC_CHECK_FUNCS): Check for getdelim.
70804         Reported by Bob Proulx.
70805
70806 1999-08-02  Jim Meyering  <meyering@ascend.com>
70807
70808         * m4/jm-macros.m4: Add a comment.
70809
70810 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70811
70812         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
70813         <inttypes.h> defines strtoumax as a macro (and not as a
70814         function).
70815
70816 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70817
70818         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
70819         that we can shift, multiply and divide unsigned long long
70820         values; Ultrix cc can't do it.
70821
70822 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70823
70824         * m4/mktime.m4: New file, which is a preview of what should appear
70825         in the next public autoconf release.
70826
70827 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70828
70829         * m4/lfs.m4: Remove this file.
70830         * m4/largefile.m4: New file.  It contains the old contents of
70831         lfs.m4, except that all names with prefix AC_LFS have been
70832         changed to use the prefix AC_SYS_LARGEFILE instead, to be
70833         compatible with future autoconf versions.  Also, some minor m4
70834         quoting problems have been fixed.
70835
70836 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70837
70838         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
70839         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
70840         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
70841         and simplify the shell code.
70842
70843 1999-08-01  Jim Meyering  <meyering@ascend.com>
70844
70845         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
70846         m4.
70847
70848 1999-07-20  Jim Meyering  <meyering@ascend.com>
70849
70850         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
70851
70852 1999-07-15  Jim Meyering  <meyering@ascend.com>
70853
70854         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
70855
70856 1999-05-22  Jim Meyering  <meyering@ascend.com>
70857
70858         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
70859
70860 1999-05-20  Jim Meyering  <meyering@ascend.com>
70861
70862         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
70863         Add a colon after each `then' in case $4 is empty.
70864
70865 1999-05-16  Jim Meyering  <meyering@ascend.com>
70866
70867         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
70868
70869 1999-05-10  Jim Meyering  <meyering@ascend.com>
70870
70871         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
70872
70873         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
70874         AC_FUNC_MKTIME.
70875
70876 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
70877
70878         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
70879
70880 1999-05-04  Paul Eggert  <eggert@twinsun.com>
70881
70882         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
70883         not CPPFLAGS, so that linking works correctly in IRIX.
70884
70885 1999-04-30  Paul Eggert  <eggert@twinsun.com>
70886
70887         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
70888
70889 1999-04-20  Paul Eggert  <eggert@twinsun.com>
70890
70891         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
70892         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
70893         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
70894         jm_AC_TYPE_UNSIGNED_LONG_LONG.
70895         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
70896
70897         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
70898
70899 1999-04-20  Jim Meyering  <meyering@ascend.com>
70900
70901         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
70902         AC_REPLACE xstroull if necessary.  From Paul Eggert.
70903         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
70904
70905 1999-04-18  Jim Meyering  <meyering@ascend.com>
70906
70907         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
70908         * m4/jm-macros.m4: Use it.
70909
70910 1999-04-06  Jim Meyering  <meyering@ascend.com>
70911
70912         * m4/strftime.m4: Remove test for %f.
70913
70914 1999-03-29  Jim Meyering  <meyering@ascend.com>
70915
70916         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
70917         superset of the AC_TYPE_* checks in the textutils, fileutils,
70918         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
70919         AC_TYPE_PID_T.
70920
70921 1999-03-28  Jim Meyering  <meyering@ascend.com>
70922
70923         * m4/jm-macros.m4: Define GNU_PACKAGE here.
70924         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
70925         replaced e.g., in the *.sh files of the sh-utils.
70926
70927 1999-03-20  Jim Meyering  <meyering@ascend.com>
70928
70929         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
70930         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
70931         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
70932
70933 1999-03-19  Jim Meyering  <meyering@ascend.com>
70934
70935         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
70936
70937 1999-03-12  Jim Meyering  <meyering@ascend.com>
70938
70939         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
70940
70941 1999-03-07  Jim Meyering  <meyering@ascend.com>
70942
70943         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
70944         declared.
70945
70946 1999-02-17  Jim Meyering  <meyering@ascend.com>
70947
70948         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
70949         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
70950
70951 1999-02-07  Jim Meyering  <meyering@ascend.com>
70952
70953         * m4/group-member.m4: New file -- extracted from sh-utils'
70954         configure.in.
70955
70956         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
70957         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
70958
70959 1999-02-06  Jim Meyering  <meyering@ascend.com>
70960
70961         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
70962         * m4/fnmatch.m4: Likewise.
70963         * m4/getgroups.m4: Likewise.
70964         * m4/lstat.m4: Likewise.
70965         * m4/malloc.m4: Likewise.
70966         * m4/putenv.m4: Likewise.
70967         * m4/realloc.m4: Likewise.
70968         * m4/regex.m4: Likewise.
70969         * m4/stat.m4: Likewise.
70970         * m4/strftime.m4: Likewise.
70971         Suggestion from Alain Magloire.
70972
70973         * m4/chown.m4: Use `.$ac_objext', not `.o'.
70974         * m4/fnmatch.m4: Likewise.
70975         * m4/getgroups.m4: Likewise.
70976         * m4/getline.m4: Likewise.
70977         * m4/lstat.m4: Likewise.
70978         * m4/malloc.m4: Likewise.
70979         * m4/memcmp.m4: Likewise.
70980         * m4/putenv.m4: Likewise.
70981         * m4/realloc.m4: Likewise.
70982         * m4/regex.m4: Likewise.
70983         * m4/stat.m4: Likewise.
70984         * m4/strftime.m4: Likewise.
70985         Suggestion from Alain Magloire.
70986
70987         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
70988         an argument.
70989
70990         * m4/regex.m4: Add a run-time Test for proper operation of
70991         re_compile_pattern.
70992
70993 1999-01-31  Jim Meyering  <meyering@ascend.com>
70994
70995         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
70996
70997 1999-01-30  Jim Meyering  <meyering@ascend.com>
70998
70999         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71000
71001         * m4/jm-mktime.m4: Make this a wrapper around the official
71002         AM_FUNC_MKTIME rather than my private copy, now that the official one
71003         is up to date.
71004         * m4/mktime.m4: Remove file.
71005
71006         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71007         * m4/uptime.m4: Likewise.
71008         * m4/uintmax_t.m4: Likewise.
71009
71010 1999-01-28  Jim Meyering  <meyering@ascend.com>
71011
71012         * m4/jm-macros.m4: Use jm_AFS.
71013         * m4/afs.m4: New file (from fileutils' configure.in).
71014
71015         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71016         * m4/chown.m4: Likewise.
71017         * m4/d-ino.m4: Likewise.
71018         * m4/d-type.m4: Likewise.
71019         * m4/fnmatch.m4: Likewise.
71020         * m4/getgroups.m4: Likewise.
71021         * m4/gettext.m4: Likewise.
71022         * m4/jm-mktime.m4: Likewise.
71023         * m4/jm-winsz2.m4: Likewise.
71024         * m4/lcmessage.m4: Likewise.
71025         * m4/ls-mntd-fs.m4: Likewise.
71026         * m4/malloc.m4: Likewise.
71027         * m4/memcmp.m4: Likewise.
71028         * m4/putenv.m4: Likewise.
71029         * m4/realloc.m4: Likewise.
71030         * m4/st_mtim.m4: Likewise.
71031         * m4/strftime.m4: Likewise.
71032
71033 1999-01-16  Jim Meyering  <meyering@ascend.com>
71034
71035         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71036         (ARGMATCH_DIE_DECL): Define.
71037
71038 1999-01-12  Jim Meyering  <meyering@ascend.com>
71039
71040         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71041         Reported by Lars Hecking.
71042
71043 1999-01-10  Jim Meyering  <meyering@ascend.com>
71044
71045         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71046         gross kludge.
71047         * m4/inttypes_h.m4: Likewise.
71048         * m4/lstat.m4: Likewise.
71049         * m4/malloc.m4: Likewise.
71050         * m4/readdir.m4: Likewise.
71051         * m4/realloc.m4: Likewise.
71052         * m4/st_dm_mode.m4: Likewise.
71053         * m4/stat.m4: Likewise.
71054         * m4/utimbuf.m4: Likewise.
71055         * m4/utimes.m4: Likewise.
71056
71057         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71058         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71059         comments in config.h.in are meaningful.
71060
71061         * m4/jm-macros.m4: Require autoconf-2.13 here.
71062
71063         * m4/regex.m4: By default, don't use the included regex.c on systems
71064         with glibc 2.  Suggestion from Uli Drepper.
71065
71066 1999-01-02  Jim Meyering  <meyering@ascend.com>
71067
71068         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71069
71070 1998-12-18  Jim Meyering  <meyering@ascend.com>
71071
71072         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71073         Based on a suggestion from Lars Hecking.
71074
71075 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71076
71077         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71078
71079 1998-11-16  Jim Meyering  <meyering@ascend.com>
71080
71081         * m4/lfs.m4: Double-quote the `uname...` expression.
71082
71083 1998-11-14  Jim Meyering  <meyering@ascend.com>
71084
71085         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71086         * m4/stat.m4: Likewise.
71087
71088 1998-11-03  Jim Meyering  <meyering@ascend.com>
71089
71090         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71091         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71092
71093 1998-10-18  Jim Meyering  <meyering@ascend.com>
71094
71095         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71096
71097 1998-10-17  Jim Meyering  <meyering@ascend.com>
71098
71099         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71100         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71101         calls for those previously hard-coded headers.  Instead, take a new
71102         parameter.
71103         (jm_CHECK_DECLARATIONS): Reflect interface change.
71104         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71105         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71106
71107         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71108
71109 1998-10-14  Jim Meyering  <meyering@ascend.com>
71110
71111         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71112         instead of "TZ=America/Vancouver".  From Paul Eggert.
71113
71114 1998-10-11  Jim Meyering  <meyering@ascend.com>
71115
71116         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71117         This adds a test for a recently added compatibility fix for mktime.c.
71118         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71119
71120 1998-09-27  Jim Meyering  <meyering@ascend.com>
71121
71122         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71123
71124         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71125         ../configure.in, including a change from Gordon Matzigkeit to allow
71126         cross-compiling for the Hurd.
71127
71128         * m4/glibc.m4: New file/macro to test for the GNU C Library
71129         versions 1 and 2.  From Gordon Matzigkeit.
71130         Indent.
71131
71132 1998-09-21  Jim Meyering  <meyering@ascend.com>
71133
71134         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71135
71136 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71137
71138         Port nanosecond-resolution times to UnixWare 2.1.2 and
71139         pedantic Solaris 2.6.
71140
71141         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71142         AC_STRUCT_ST_MTIM.
71143         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71144         Generate name of ns member, instead of just 1 or undef.
71145         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71146
71147 1998-08-15  Jim Meyering  <meyering@ascend.com>
71148
71149         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71150         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71151         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71152         instead of jm_TYPE_SSIZE_T.
71153
71154 1998-08-12  Jim Meyering  <meyering@ascend.com>
71155
71156         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71157
71158 1998-08-02  Jim Meyering  <meyering@ascend.com>
71159
71160         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71161         in acconfig.h manually.
71162
71163 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71164
71165         * m4/st_mtim.m4: New file.
71166
71167 1998-07-28  Jim Meyering  <meyering@ascend.com>
71168
71169         * m4/utimes.m4: Undef stat.
71170
71171 1998-07-25  Jim Meyering  <meyering@ascend.com>
71172
71173         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71174         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71175
71176 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71177
71178         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71179         uid and gid actually remain unchanged.
71180
71181 1998-07-07  Jim Meyering  <meyering@ascend.com>
71182
71183         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71184
71185 1998-07-04  Jim Meyering  <meyering@ascend.com>
71186
71187         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71188         to prove that this macro can be used in packages without regex.c.
71189
71190 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71191
71192         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71193         is to be used.
71194
71195 1998-07-03  Jim Meyering  <meyering@ascend.com>
71196
71197         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71198
71199         * m4/gettext.m4: New file -- from gettext-0.10.35.
71200         * m4/lcmessage.m4: Likewise.
71201         * m4/progtest.m4: Likewise.
71202
71203         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71204         * m4/jm-macros.m4: Require the new macro.
71205
71206 1998-06-29  Jim Meyering  <meyering@ascend.com>
71207
71208         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71209         for the definition of NGROUPS (used in a system header included
71210         by sys/mount.h).
71211
71212 1998-06-28  Jim Meyering  <meyering@ascend.com>
71213
71214         * m4/ls-mntd-fs.m4: New file.
71215         * m4/fstypename.m4: New file.
71216
71217         * m4/jm-macros.m4: Require the new macro.
71218         * m4/jm-glibc-io.m4: New file.
71219
71220 1998-05-19  Jim Meyering  <meyering@ascend.com>
71221
71222         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
71223         * m4/lchown.m4: New file.
71224
71225         * m4/Makefile.am.in: New file.
71226         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
71227
71228 1998-05-14  Jim Meyering  <meyering@ascend.com>
71229
71230         * m4/Makefile.am (EXTRA_DIST): Add them.
71231         * m4/jm-macros.m4: New file.
71232         * m4/utimbuf.m4: New file.
71233
71234 1998-05-12  Jim Meyering  <meyering@ascend.com>
71235
71236         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
71237
71238 1998-05-11  Jim Meyering  <meyering@ascend.com>
71239
71240         * m4/isc-posix.m4: New file.
71241
71242 1998-05-10  Jim Meyering  <meyering@ascend.com>
71243
71244         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
71245
71246 1998-05-09  Jim Meyering  <meyering@ascend.com>
71247
71248         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
71249         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
71250         with automake.
71251
71252         * m4/ssize_t.m4: New file.
71253         * m4/mktime.m4: Remove file -- the new automake has this now.
71254
71255 1998-04-26  Jim Meyering  <meyering@ascend.com>
71256
71257         * m4/assert.m4: New file.
71258         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
71259
71260 1998-04-05  Jim Meyering  <meyering@ascend.com>
71261
71262         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71263         (jm_PREREQ): Use it here.
71264
71265 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71266
71267         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71268         in acconfig.h.
71269
71270 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71271
71272         * m4/prereq.m4: New file.
71273         * m4/error.m4: New file.
71274         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71275
71276 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71277
71278         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71279         cache-check for the same variable -- that defeated the purpose of
71280         the test; the test program was never run.  This was a problem only
71281         on systems with losing getline functions -- HP-UX 10.20 is one.
71282         Reported by Bjorn Helgaas.
71283
71284 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71285
71286         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71287
71288 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71289
71290         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71291
71292         * m4/const.m4: New file.  Use an initializer in this declaration
71293         typedef int charset[2]; const charset x;
71294         Reported by Bob Glickstein.
71295
71296 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71297
71298         * m4/chown.m4: Fix reversed types on -1 args to chown.
71299         From Kaveh Ghazi.
71300
71301 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71302
71303         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71304         Add lseek and memchr.
71305
71306         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71307         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71308         have a 20-character limit on names.
71309
71310 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71311
71312         * m4/inttypes_h.m4: New file.
71313         * m4/uintmax_t.m4: New file.
71314         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71315
71316
71317         -----
71318
71319         Local Variables:
71320         coding: utf-8
71321         End:
71322
71323         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71324
71325         Copying and distribution of this file, with or without
71326         modification, are permitted provided the copyright notice
71327         and this notice are preserved.