8a6814379308b18c461f909f80d2770bedb0b6fa
[gnulib.git] / ChangeLog
1 2010-11-09  Bruno Haible  <bruno@clisp.org>
2
3         * doc/posix-functions/strerror.texi: Add a comment.
4
5 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6
7         fdopendir: fix bug on MacOS X when low on file descriptors
8
9         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11         All callers changed.
12         (fdopendir): Invoke save_cwd at the top level, not after using
13         multiple dup() calls to use up file descriptors.  Then retry
14         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15         less than the maximum number of open file descriptors, because
16         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17         on Mac OS X 10.6.4 for tar 1.24
18         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20         and for tar 1.25
21         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
22
23 2010-11-07  Bruno Haible  <bruno@clisp.org>
24
25         vasnprintf: Support I flag on glibc systems.
26         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29         snprintf function.
30         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
31         glibc systems.
32         * tests/test-vasnprintf-posix3.c: New file.
33         * modules/vasnprintf-posix-tests (Files): Add it.
34         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
35
36 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37
38         [html] Fix copy/paste bug: Use unique name for compiler warnings.
39         * MODULES.html.sh: For compiler warnings, use name
40         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
41
42 2010-11-05  Eric Blake  <eblake@redhat.com>
43
44         ceil, floor: avoid spurious failure with icc
45         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
46         [denormals-as-zero] when optimizing without -mieee-fp option.
47         * tests/test-floorf2.c (floorf_reference): Likewise.
48         * tests/test-ceilf1.c (dummy): New function.
49         (main): Use it to outsmart icc's optimization.
50         * tests/test-floorf1.c (dummy, main): Likewise.
51
52         tests: require working signbit
53         * modules/ceilf-tests (Depends-on): Add signbit.
54         * modules/ceill-tests (Depends-on): Likewise.
55         * modules/floorf-tests (Depends-on): Likewise.
56         * modules/floorl-tests (Depends-on): Likewise.
57         * modules/round-tests (Depends-on): Likewise.
58         * modules/roundf-tests (Depends-on): Likewise.
59         * modules/roundl-tests (Depends-on): Likewise.
60         * modules/trunc-tests (Depends-on): Likewise.
61         * modules/truncf-tests (Depends-on): Likewise.
62         * modules/truncl-tests (Depends-on): Likewise.
63
64         strtod: work around icc bug
65         * lib/strtod.c (minus_zero): Define to working value.
66         (strtod): Use it to avoid icc bug.
67
68         copysign: enhance tests
69         * modules/copysign-tests (Files): Add minus-zero.h.
70         * tests/test-copysign.c (main): Also test zeros.
71
72 2010-11-04  Eric Blake  <eblake@redhat.com>
73
74         ceil, floor, round, trunc: enhance tests of -0
75         * tests/test-ceilf1.c (main): Ensure correct sign of result.
76         * tests/test-ceill.c (main): Likewise.
77         * tests/test-floorf1.c (main): Likewise.
78         * tests/test-floorl.c (main): Likewise.
79         * tests/test-round1.c (main): Likewise.
80         * tests/test-roundf1.c (main): Likewise.
81         * tests/test-roundl.c (main): Likewise.
82         * tests/test-trunc1.c (main): Likewise.
83         * tests/test-truncf1.c (main): Likewise.
84         * tests/test-truncl.c (main): Likewise.
85
86 2010-11-04  Eric Blake  <eblake@redhat.com>
87
88         frexp, tests: work around ICC bug with -zero
89         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
90         works with more compilers.
91         * tests/minus-zero.h: New file.
92         * modules/ceilf-tests (Files): Include it.
93         * modules/ceill-tests (Files): Likewise.
94         * modules/floorf-tests (Files): Likewise.
95         * modules/floorl-tests (Files): Likewise.
96         * modules/frexp-nolibm-tests (Files): Likewise.
97         * modules/frexp-tests (Files): Likewise.
98         * modules/frexpl-nolibm-tests (Files): Likewise.
99         * modules/frexpl-tests (Files): Likewise.
100         * modules/isnan-tests (Files): Likewise.
101         * modules/isnand-nolibm-tests (Files): Likewise.
102         * modules/isnand-tests (Files): Likewise.
103         * modules/isnanf-nolibm-tests (Files): Likewise.
104         * modules/isnanf-tests (Files): Likewise.
105         * modules/isnanl-nolibm-tests (Files): Likewise.
106         * modules/isnanl-tests (Files): Likewise.
107         * modules/round-tests (Files): Likewise.
108         * modules/roundf-tests (Files): Likewise.
109         * modules/roundl-tests (Files): Likewise.
110         * modules/ldexpl-tests (Files): Likewise.
111         * modules/signbit-tests (Files): Likewise.
112         * modules/snprintf-posix-tests (Files): Likewise.
113         * modules/sprintf-posix-tests (Files): Likewise.
114         * modules/strtod-tests (Files): Likewise.
115         * modules/trunc-tests (Files): Likewise.
116         * modules/truncf-tests (Files): Likewise.
117         * modules/truncl-tests (Files): Likewise.
118         * modules/vsnprintf-posix-tests (Files): Likewise.
119         * modules/vsprintf-posix-tests (Files): Likewise.
120         * modules/vasnprintf-posix-tests (Files): Likewise.
121         * modules/vasprintf-posix-tests (Files): Likewise.
122         * tests/test-ceilf1.c (main): Use it.
123         * tests/test-ceill.c (main): Likewise.
124         * tests/test-floorf1.c (main): Likewise.
125         * tests/test-floorl.c (main): Likewise.
126         * tests/test-frexp.c (main): Likewise.
127         * tests/test-frexpl.c (main): Likewise.
128         * tests/test-isnan.c (main): Likewise.
129         * tests/test-isnand.h (main): Likewise.
130         * tests/test-isnanf.h (main): Likewise.
131         * tests/test-isnanl.h (main): Likewise.
132         * tests/test-ldexpl.c (main): Likewise.
133         * tests/test-round.c (main): Likewise.
134         * tests/test-roundf.c (main): Likewise.
135         * tests/test-roundl.c (main): Likewise.
136         * tests/test-signbit.c (test_signbitf, test_signbitd)
137         (test_signbitl): Likewise.
138         * tests/test-snprintf-posix.h (test_function): Likewise.
139         * tests/test-sprintf-posix.h (test_function): Likewise.
140         * tests/test-strtod.c (main): Likewise.
141         * tests/test-trunc1.c (main): Likewise.
142         * tests/test-truncf1.c (main): Likewise.
143         * tests/test-truncl.c (main): Likewise.
144
145         isnanl: work around icc bug
146         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
147
148 2010-11-03  Eric Blake  <eblake@redhat.com>
149
150         tests: fix compiler warnings
151         * tests/test-getopt.h (test_getopt): Fix condition.
152         * tests/test-getopt_long.h (test_getopt_long): Likewise.
153         * tests/test-pipe2.c (main): Likewise.
154         * tests/test-quotearg-simple.c (main): Avoid icc warning.
155
156         utimens: fix broken m4 test
157         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
158
159 2010-10-28  Bruno Haible  <bruno@clisp.org>
160
161         posix_spawn*, getdtablesize: Relax license.
162         * modules/posix_spawn (License): Change to LGPLv2+.
163         * modules/posix_spawnp (License): Likewise.
164         * modules/posix_spawn-internal (License): Likewise.
165         * modules/posix_spawnattr_init (License): Likewise.
166         * modules/posix_spawnattr_getflags (License): Likewise.
167         * modules/posix_spawnattr_setflags (License): Likewise.
168         * modules/posix_spawnattr_getpgroup (License): Likewise.
169         * modules/posix_spawnattr_setpgroup (License): Likewise.
170         * modules/posix_spawnattr_getschedparam (License): Likewise.
171         * modules/posix_spawnattr_setschedparam (License): Likewise.
172         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
173         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
174         * modules/posix_spawnattr_getsigdefault (License): Likewise.
175         * modules/posix_spawnattr_setsigdefault (License): Likewise.
176         * modules/posix_spawnattr_getsigmask (License): Likewise.
177         * modules/posix_spawnattr_setsigmask (License): Likewise.
178         * modules/posix_spawnattr_destroy (License): Likewise.
179         * modules/posix_spawn_file_actions_init (License): Likewise.
180         * modules/posix_spawn_file_actions_addclose (License): Likewise.
181         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
182         * modules/posix_spawn_file_actions_addopen (License): Likewise.
183         * modules/posix_spawn_file_actions_destroy (License): Likewise.
184         * modules/getdtablesize (License): Likewise.
185         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
186
187 2010-10-26  Bruno Haible  <bruno@clisp.org>
188
189         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
190         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
191         Cygwin and mingw.
192         Suggested by Eric Blake.
193
194 2010-10-26  Bruno Haible  <bruno@clisp.org>
195
196         stdio: Work around compilation error due to renameat() on Solaris 10.
197         * lib/stdio.in.h: Include <unistd.h> on Solaris.
198         * lib/renameat.c: Don't include <unistd.h> here.
199         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
200         Reported by Paul Eggert and Eric Blake.
201
202 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
203
204         renameat: port to Solaris 10, which declares renameat in unistd.h
205
206         * lib/renameat.c: Include unistd.h before stdio.h, because
207         Solaris 10 declares renameat in unistd.h.  Problem encountered
208         when building GNU tar 1.24 on Solaris 10.
209
210 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
211
212         fdopendir: fix C89 compilation
213         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
214         compilers.
215
216 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
217
218         inttostr: simplify by removing unnecessary redundancy
219         * lib/anytostr.c: Don't include verify.h.
220         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
221         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
222         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
223         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
224         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
225         Likewise.
226         * modules/inttostr (Depends-on): Remove 'verify'.
227
228 2010-10-23  Bruno Haible  <bruno@clisp.org>
229
230         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
231         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
232         Reported by Eric Blake.
233
234 2010-10-23  Bruno Haible  <bruno@clisp.org>
235
236         Tests: Fix LOCALE_JA on MirBSD 10.
237         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
238         to an UTF-8 locale.
239         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
240         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
241         Reported by Eric Blake.
242
243 2010-10-21  Bruno Haible  <bruno@clisp.org>
244
245         nl_langinfo test: Avoid test failure on NetBSD 5.
246         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
247         Reported by Eric Blake.
248
249 2010-10-21  Eric Blake  <eblake@redhat.com>
250
251         c-stack: work around libsigsegv 2.8 bug
252         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
253         overflow on at least PowerPC64.
254
255 2010-10-17  Bruno Haible  <bruno@clisp.org>
256
257         userspec: Drop redundant file.
258         * modules/userspec (Files): Remove lib/inttostr.h.
259
260 2010-10-17  Bruno Haible  <bruno@clisp.org>
261
262         nl_langinfo tests: Silence some warnings.
263         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
264         Reported by Jim Meyering.
265
266 2010-10-17  Bruno Haible  <bruno@clisp.org>
267
268         Make use of GCC's attribute __alloc_size__.
269         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
270         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
271         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
272         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
273         __alloc_size__.
274         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
275         Suggested by Jim Meyering.
276
277 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
278
279         bootstrap: anchor .gitignore entries.
280         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
281         with...
282         (insert_vc_ignore): ... this new function, which prepends `/' to
283         all .gitignore entries before passing them to
284         insert_sorted_if_absent.
285
286 2010-10-16  Bruno Haible  <bruno@clisp.org>
287
288         nextafter: Fix configure check.
289         * modules/nextafter (configure.ac): Correct expected prototype.
290
291 2010-10-16  Bruno Haible  <bruno@clisp.org>
292
293         termios: Update documentation.
294         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
295
296 2010-10-16  Bruno Haible  <bruno@clisp.org>
297
298         tests: Make them compile with TinyCC.
299         * tests/test-strstr.c (main): Remove parentheses around array
300         initializer.
301
302 2010-10-15  Eric Blake  <eblake@redhat.com>
303
304         ignore-value: make header idempotent
305         * lib/ignore-value.h: Add double-inclusion guards.
306         Reported by Stefan Berger.
307
308 2010-10-15  Jim Meyering  <meyering@redhat.com>
309
310         GNUmakefile: handle "stable" target, not "major"
311         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
312         lists in maint.mk and announce-gen.  Without this, "make stable"
313         would fail to ensure that $(VERSION) is up to date.
314
315 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
316
317         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
318         & co.
319
320 2010-10-14  Bruno Haible  <bruno@clisp.org>
321
322         vasnprintf: Don't set errno to 0.
323         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
324         block that sets it to 0.
325         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
326
327 2010-10-14  Bruno Haible  <bruno@clisp.org>
328
329         socketlib: Fix.
330         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
331         gl_PREREQ_SYS_H_WINSOCK2.
332         Reported by Ian Beckwith <ianb@erislabs.net>.
333
334 2010-10-13  Jim Meyering  <meyering@redhat.com>
335
336         test-select-stdin.c: avoid warn_unused_result warnings
337         * tests/test-select-stdin.c: Include "macros.h".
338         ASSERT that read and fflush succeed.
339
340 2010-10-13  Jim Meyering  <meyering@redhat.com>
341
342         git-version-gen: do require git-VC'd files in cwd
343         * build-aux/git-version-gen: Reject a git version string
344         if there are no commits associated with the current directory.
345         This avoids an unlikely false-positive (unrelated dir whose parent
346         repository also contains a tag matching v*), as pointed out
347         by Giuseppe Scrivano in
348         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
349
350 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
351
352         argv-iter: omit nonconforming declaration
353         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
354         enum arg_iter_err declaration, which doesn't conform to C99.
355         Solaris 10 cc warns about this.
356
357 2010-10-13  Eric Blake  <eblake@redhat.com>
358
359         termios: fix compilation on mingw
360         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
361         (gl_TERMIOS_H): Adjust it on mingw.
362         * modules/termios (Makefile.am): Substitute new key.
363         * lib/termios.in.h (includes): Make include_next conditional.
364         * doc/posix-headers/termios.texi (termios.h): Update
365         documentation.
366         Reported by Daniel P. Berrange.
367
368 2010-10-13  Jim Meyering  <meyering@redhat.com>
369
370         git-version-gen: don't require that .git/ be in the current dir
371         * build-aux/git-version-gen: Adjust this script so that it works
372         when run from any working directory beneath the top-level .git/-
373         containing directory.  Inspired by a patch from Giuseppe Scrivano,
374         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
375
376         test-select: avoid warn_unused_result warnings
377         * tests/test-select.c: Include "macros.h".
378         ASSERT that each call to read, write, and pipe succeeds.
379         While not technically required, also check each "close".
380         * modules/select-tests (Files): Add tests/macros.h.
381
382         test-symlinkat: remove declaration of unused local
383         * tests/test-symlinkat.c (main): Remove unused local, "buf".
384
385         test-inttostr: avoid shadowing warnings
386         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
387         and use malloc rather than the stack for the same reason as
388         mentioned in the comment justifying the other allocation.
389
390 2010-10-11  Bruno Haible  <bruno@clisp.org>
391
392         stdlib: Allow multiple gnulib generated replacements to coexist.
393         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
394         Reported by Sam Steingold <sds@gnu.org>.
395
396 2010-10-11  Jim Meyering  <meyering@redhat.com>
397
398         fix a documentation typo
399         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
400
401 2010-10-11  Eric Blake  <eblake@redhat.com>
402
403         futimens: work around Solaris 11 bug
404         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
405         * tests/test-futimens.h (test_futimens): Enhance, rather than
406         weaken test.
407         * doc/posix-functions/futimens.texi (futimens): Document the bug.
408
409 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
410
411         Indentation.
412         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
413         higher-level operators more to the left.
414
415 2010-10-11  Jim Meyering  <meyering@redhat.com>
416
417         test-futimens: avoid unwarranted test failure on Solaris 5.11
418         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
419         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
420         because it tries to dereference the NULL name argument.
421
422 2010-10-11  Bruno Haible  <bruno@clisp.org>
423
424         Indentation.
425         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
426         indentation.
427
428 2010-10-11  Jim Meyering  <meyering@redhat.com>
429
430         spawn.in.h: make indentation consistent with parentheses
431         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
432         Make indentation consistent with parentheses.
433
434 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
435
436         Fix mismatched parens in previous commit
437         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
438         parens.
439
440 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
441
442         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
443
444         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
445         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
446         * lib/malloca.c: Include "verify.h".
447         (verify1): Remove, replacing with a verify call.
448         * lib/relocwrapper.c (verify1): Likewise.
449         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
450         Likewise.
451         * modules/malloca (Depends-on): Add 'verify'.
452         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
453         * modules/vasnprintf (Depends-on): Add 'verify'.
454         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
455         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
456         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
457         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
458         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
459         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
460         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
461
462         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
463
464         Formerly the style was sometimes 2*X - 1, because the C standard
465         was wrongly thought to disallow ?: in integral constant expressions.
466         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
467         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
468         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
469         * lib/stdint.in.h (_verify_intmax_size): Likewise.
470         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
471         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
472         verify that time_t cannot be floating.
473
474 2010-10-08  Eric Blake  <eblake@redhat.com>
475
476         time: enforce recent POSIX ruling that time_t is integral
477         * lib/time.in.h (__time_t_must_be_integral): Detect any
478         problematic systems, allowing the rest of gnulib to assume POSIX.
479
480 2010-10-08  Jim Meyering  <meyering@redhat.com>
481
482         fdopendir: fix a bug on systems lacking openat and /proc support
483         OpenBSD 4.7 is one such system.  The most noticeable effect was
484         failure of any application making nontrivial use of fts: rm, du,
485         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
486           ./rm: traversal failed: `a': Bad file descriptor
487         Debugging that, you see that even though FD 6 was closed just
488         prior to the opendir call in fd_clone_opendir, its resulting
489         dir->dd_fd was 8, rather than the expected value of 6:
490
491         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
492         93                close (fd);
493         (gdb) n
494         94                dir = fd_clone_opendir (dupfd);
495         (gdb) n
496         95                saved_errno = errno;
497         (gdb) p dir->dd_fd
498         $11 = 8
499
500         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
501         The problem is that on OpenBSD, fd_clone_opendir has to resort
502         to using the old-style save/restore CWD mechanism, due to its
503         lack of openat/proc support, and *that* would steal the FD (6)
504         that opendir was supposed to use.
505
506         The fix is to squirrel away the desired FD so that save_cwd uses a
507         different one, and then free the dest FD right before calling opendir.
508         That guarantees opendir will use the required file descriptor.
509
510         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
511
512 2010-10-08  Bruno Haible  <bruno@clisp.org>
513
514         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
515         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
516
517 2010-10-08  Bruno Haible  <bruno@clisp.org>
518
519         nanosleep: Make replacement POSIX compliant.
520         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
521         is out of range.
522         Reported by Jim Meyering.
523
524 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
525
526         bootstrap: add hook for altering gnulib.mk, for Bison
527         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
528         the Bison bootstrapping process can rewrite file names and variables
529         in this file before later parts of 'bootstrap' use the file.
530         Bison wants to include lib/gnulib.mk from the top-level makefile,
531         so it needs the file names in this file to be relative to the top
532         level, not relative to lib; plus it needs variable names to be
533         rewritten.
534         (slurp): Use the new function.
535
536         bootstrap: reformat for readability
537         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
538
539 2010-10-08  Eric Blake  <eblake@redhat.com>
540
541         docs: update cygwin progress
542         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
543         1.7.7.
544         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
545         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
546         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
547         * doc/posix-functions/carg.texi (carg): Likewise.
548         * doc/posix-functions/cargf.texi (cargf): Likewise.
549         * doc/posix-functions/casin.texi (casin): Likewise.
550         * doc/posix-functions/casinf.texi (casinf): Likewise.
551         * doc/posix-functions/casinh.texi (casinh): Likewise.
552         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
553         * doc/posix-functions/catan.texi (catan): Likewise.
554         * doc/posix-functions/catanf.texi (catanf): Likewise.
555         * doc/posix-functions/catanh.texi (catanh): Likewise.
556         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
557         * doc/posix-functions/ccos.texi (ccos): Likewise.
558         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
559         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
560         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
561         * doc/posix-functions/cexp.texi (cexp): Likewise.
562         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
563         * doc/posix-functions/cimag.texi (cimag): Likewise.
564         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
565         * doc/posix-functions/clog.texi (clog): Likewise.
566         * doc/posix-functions/clogf.texi (clogf): Likewise.
567         * doc/posix-functions/conj.texi (conj): Likewise.
568         * doc/posix-functions/conjf.texi (conjf): Likewise.
569         * doc/posix-functions/cpow.texi (cpow): Likewise.
570         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
571         * doc/posix-functions/cproj.texi (cproj): Likewise.
572         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
573         * doc/posix-functions/creal.texi (creal): Likewise.
574         * doc/posix-functions/crealf.texi (crealf): Likewise.
575         * doc/posix-functions/csin.texi (csin): Likewise.
576         * doc/posix-functions/csinf.texi (csinf): Likewise.
577         * doc/posix-functions/csinh.texi (csinh): Likewise.
578         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
579         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
580         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
581         * doc/posix-functions/ctan.texi (ctan): Likewise.
582         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
583         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
584         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
585         * doc/posix-headers/complex.texi (complex.h): Likewise.
586
587 2010-10-07  Jim Meyering  <meyering@redhat.com>
588
589         parse-datetime: avoid compilation failure on OpenBSD 4.7
590         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
591         This works around a compilation failure on OpenBSD 4.7:
592         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
593
594 2010-10-07  Eric Blake  <eblake@redhat.com>
595
596         docs: update cygwin progress
597         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
598         1.7.6.
599         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
600         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
601         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
602         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
603         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
604         Likewise.
605         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
606         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
607         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
608         Likewise.
609         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
610         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
611         Likewise.
612         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
613         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
614         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
615         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
616         Likewise.
617         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
618         Likewise.
619         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
620
621         docs: update parse-datetime history
622         * doc/parse-datetime.texi (Authors of parse_datetime): Better
623         documentation of this function's history and alternatives.
624
625         cygwin: use more robust version check
626         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
627         exclude an eventual cygwin 1.9.1.
628         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
630         (gl_FUNC_STRCASESTR): Likewise.
631         Reported by Bruno Haible.
632
633 2010-10-06  Bruno Haible  <bruno@clisp.org>
634
635         string, sys_select: Avoid #including large headers unless necessary.
636         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
637         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
638         OSF/1, BeOS, Haiku.
639         Reported by Jim Meyering.
640
641 2010-10-05  Eric Blake  <eblake@redhat.com>
642
643         memmem, strstr, strcasestr: fix bug with long periodic needle
644         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
645         periodic needle having false positive.
646         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
647         and cygwin 1.7.7.
648         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
650         (gl_FUNC_STRCASESTR): Likewise.
651         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
652         * tests/test-memmem.c (main): Expose the bug.
653         * tests/test-strcasestr.c (main): Likewise.
654         * tests/test-strstr.c (main): Likewise.
655         * tests/test-c-strcasestr.c (main): Likewise.
656         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
657         * doc/posix-functions/strstr.texi (strstr): Likewise.
658         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
659         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
660
661 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
662
663         parse-datetime: do some more renaming
664         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
665         parse_datetime, not get_date.  Mention the renaming.
666         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
667         in comments.
668         * m4/bison.m4: Likewise.
669
670 2010-10-05  Eric Blake  <eblake@redhat.com>
671
672         parse-datetime: better name than get_date
673         * NEWS: Reword the deprecation notice.
674         * modules/get_date: Rename to modules/parse-datetime.
675         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
676         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
677         * lib/get_date.y: Rename to lib/parse-datetime.y.
678         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
679         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
680         * doc/getdate.texi: Provide fallback wrapper.
681         * lib/getdate.h: Move guts, and wrap...
682         * lib/parse-datetime.h: ...new file.
683         * lib/parse-datetime.y (get_date): Rename...
684         (parse_datetime): ...to this.
685         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
686         (gl_PARSE_DATETIME): ...to this.
687         * doc/posix-functions/getdate.texi (get_date): Provide fallback
688         documentation.
689         * modules/getdate (Files): Provide fallback docs and header.
690         (Notice, Depends-on): Update references.
691         * tests/test-parse-datetime.c: Likewise.
692         * DEPENDENCIES: Likewise.
693         * MODULES.html.sh (Date and time <time.h>): Likewise.
694         * doc/parse-datetime.texi (Date input formats)
695         (Authors of parse_datetime): Likewise.
696         * modules/parse-datetime (Files, configure.ac, Makefile.am)
697         (Include): Likewise.
698         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
699         * gnulib-tool: Likewise.
700         * m4/bison.m4 (gl_BISON): Likewise.
701         Suggested by Bruno Haible.
702
703 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
704
705         more ports to Solaris tr, which needs [] around ranges
706         * gnulib-tool: Solaris tr needs [] around ranges.
707         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
708         * tests/test-pipe-filter-gi1.c (main): Likewise.
709         * tests/test-pipe-filter-ii1.c (main): Likewise.
710
711 2010-10-05  Eric Blake  <eblake@redhat.com>
712
713         bootstrap: fix Solaris regression
714         * build-aux/bootstrap (check_versions): Solaris tr still needs []
715         around ranges.
716         Reported by Pádraig Brady.
717
718         bootstrap: work with pkg-config
719         * build-aux/bootstrap (check_versions): Also transliterate - in
720         prerequisite name.
721         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
722         prerequisites that were already found, to avoid confusion.
723         Reported by Justin Clift.
724
725         faccessat: remove unused wrappers
726         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
727         presence of these wrappers dragged in -lgen on Solaris.
728         Reported by Clemens Brogi; fix suggested by Paul Eggert.
729
730 2010-10-05  Jim Meyering  <meyering@redhat.com>
731
732         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
733         * Makefile (sc_pragma_columns): New syntax-check rule.
734
735 2010-10-04  Bruno Haible  <bruno@clisp.org>
736
737         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
738         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
739         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
740         Reported by Bruce Korb and Eric Blake.
741
742 2010-10-04  Bruno Haible  <bruno@clisp.org>
743
744         threadlib: Make option --with-libpth-prefix work.
745         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
746         use $LIBPTH, not just -lpth.
747
748 2010-10-04  Bruno Haible  <bruno@clisp.org>
749
750         Avoid line length limitation from HP NonStop system header files.
751         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
752         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
753         * lib/ctype.in.h: Likewise.
754         * lib/dirent.in.h: Likewise.
755         * lib/errno.in.h: Likewise.
756         * lib/fcntl.in.h: Likewise.
757         * lib/float.in.h: Likewise.
758         * lib/getopt.in.h: Likewise.
759         * lib/iconv.in.h: Likewise.
760         * lib/inttypes.in.h: Likewise.
761         * lib/langinfo.in.h: Likewise.
762         * lib/locale.in.h: Likewise.
763         * lib/math.in.h: Likewise.
764         * lib/netdb.in.h: Likewise.
765         * lib/netinet_in.in.h: Likewise.
766         * lib/poll.in.h: Likewise.
767         * lib/pthread.in.h: Likewise.
768         * lib/pty.in.h: Likewise.
769         * lib/sched.in.h: Likewise.
770         * lib/se-selinux.in.h: Likewise.
771         * lib/search.in.h: Likewise.
772         * lib/signal.in.h: Likewise.
773         * lib/spawn.in.h: Likewise.
774         * lib/stdarg.in.h: Likewise.
775         * lib/stddef.in.h: Likewise.
776         * lib/stdint.in.h: Likewise.
777         * lib/stdio.in.h: Likewise.
778         * lib/stdlib.in.h: Likewise.
779         * lib/string.in.h: Likewise.
780         * lib/strings.in.h: Likewise.
781         * lib/sys_file.in.h: Likewise.
782         * lib/sys_ioctl.in.h: Likewise.
783         * lib/sys_select.in.h: Likewise.
784         * lib/sys_socket.in.h: Likewise.
785         * lib/sys_stat.in.h: Likewise.
786         * lib/sys_time.in.h: Likewise.
787         * lib/sys_times.in.h: Likewise.
788         * lib/sys_utsname.in.h: Likewise.
789         * lib/sys_wait.in.h: Likewise.
790         * lib/sysexits.in.h: Likewise.
791         * lib/termios.in.h: Likewise.
792         * lib/time.in.h: Likewise.
793         * lib/unistd.in.h: Likewise.
794         * lib/wchar.in.h: Likewise.
795         * lib/wctype.in.h: Likewise.
796         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
797         * modules/ctype (Makefile.am): Likewise.
798         * modules/dirent (Makefile.am): Likewise.
799         * modules/errno (Makefile.am): Likewise.
800         * modules/fcntl-h (Makefile.am): Likewise.
801         * modules/float (Makefile.am): Likewise.
802         * modules/getopt-posix (Makefile.am): Likewise.
803         * modules/iconv-h (Makefile.am): Likewise.
804         * modules/inttypes (Makefile.am): Likewise.
805         * modules/langinfo (Makefile.am): Likewise.
806         * modules/locale (Makefile.am): Likewise.
807         * modules/math (Makefile.am): Likewise.
808         * modules/netdb (Makefile.am): Likewise.
809         * modules/netinet_in (Makefile.am): Likewise.
810         * modules/poll-h (Makefile.am): Likewise.
811         * modules/pthread (Makefile.am): Likewise.
812         * modules/pty (Makefile.am): Likewise.
813         * modules/sched (Makefile.am): Likewise.
814         * modules/search (Makefile.am): Likewise.
815         * modules/selinux-h (Makefile.am): Likewise.
816         * modules/signal (Makefile.am): Likewise.
817         * modules/spawn (Makefile.am): Likewise.
818         * modules/stdarg (Makefile.am): Likewise.
819         * modules/stddef (Makefile.am): Likewise.
820         * modules/stdint (Makefile.am): Likewise.
821         * modules/stdio (Makefile.am): Likewise.
822         * modules/stdlib (Makefile.am): Likewise.
823         * modules/string (Makefile.am): Likewise.
824         * modules/strings (Makefile.am): Likewise.
825         * modules/sys_file (Makefile.am): Likewise.
826         * modules/sys_ioctl (Makefile.am): Likewise.
827         * modules/sys_select (Makefile.am): Likewise.
828         * modules/sys_socket (Makefile.am): Likewise.
829         * modules/sys_stat (Makefile.am): Likewise.
830         * modules/sys_time (Makefile.am): Likewise.
831         * modules/sys_times (Makefile.am): Likewise.
832         * modules/sys_utsname (Makefile.am): Likewise.
833         * modules/sys_wait (Makefile.am): Likewise.
834         * modules/sysexits (Makefile.am): Likewise.
835         * modules/termios (Makefile.am): Likewise.
836         * modules/time (Makefile.am): Likewise.
837         * modules/unistd (Makefile.am): Likewise.
838         * modules/wchar (Makefile.am): Likewise.
839         * modules/wctype (Makefile.am): Likewise.
840
841 2010-10-04  Bruno Haible  <bruno@clisp.org>
842
843         read-file tests: Avoid a test failure on NonStop Kernel.
844         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
845         a regular file.
846         Reported by Joachim Schmitz <schmitz@hp.com>.
847
848 2010-10-03  Bruno Haible  <bruno@clisp.org>
849
850         gnulib-tool: Fixes for --create-testdir with --libtool.
851         * gnulib-tool (func_get_automake_snippet): Don't augment
852         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
853         an executable.
854         (func_create_testdir): Handle module 'alloca' like func_import.
855         Reported by Bruce Korb <bruce.korb@gmail.com>.
856
857 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
858
859         Avoid some lines longer than 80 characters.
860         * lib/stdint.in.h: Break long comment lines.
861         * lib/math.in.h: Likewise.
862         (_GL_NUM_UINT_WORDS): New macro, for readability.
863         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
864         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
865         * lib/stdlib.in.h: Likewise.
866         * lib/spawn.in.h: Likewise.
867         * lib/sys_socket.in.h: Update an URL.
868         * lib/sys_stat.in.h: Break long line.
869
870 2010-10-03  Bruno Haible  <bruno@clisp.org>
871             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
872
873         acl: Add support for ACLs on NonStop Kernel.
874         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
875         Check whether the function aclsort() exists.
876         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
877         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
878         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
879         (acl_nontrivial [HAVE_ACLSORT]: New function.
880         (file_has_acl): Implement for NonStop Kernel.
881         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
882         (qset_acl): Implement for NonStop Kernel.
883         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
884         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
885         (main): Implement for NonStop Kernel.
886         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
887         Kernel. Handle this flavor.
888         * tests/test-set-mode-acl.sh: Likewise.
889         * tests/test-copy-acl.sh: Likewise.
890         * tests/test-copy-file.sh: Likewise.
891
892 2010-10-03  Bruno Haible  <bruno@clisp.org>
893
894         Info about ACLs on NonStop Kernel.
895         * doc/acl-resources.txt: Add info about NonStop Kernel.
896         References by Joachim Schmitz <schmitz@hp.com>.
897
898 2010-10-02  Bruno Haible  <bruno@clisp.org>
899
900         Define missing EDQUOT on NonStop Kernel.
901         * lib/errno.in.h (EDQUOT): Assign a value if missing.
902         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
903         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
904         missing.
905         * doc/posix-headers/errno.texi: Mention the NSK bug.
906         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
907         Reported by Joachim Schmitz <schmitz@hp.com>.
908
909 2010-10-02  Bruno Haible  <bruno@clisp.org>
910
911         Update doc for POSIX:2008.
912         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
913         Update URL of POSIX specification.
914
915 2010-10-02  Bruno Haible  <bruno@clisp.org>
916
917         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
918         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
919         from gnulib, not from Automake.
920
921 2010-10-02  Bruno Haible  <bruno@clisp.org>
922
923         New module 'system-posix'.
924         * modules/system-posix: New file.
925         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
926         module is present.
927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
928         GNULIB_SYSTEM_POSIX.
929         * modules/stdlib (Depends-on): Remove sys_wait.
930         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
931         * doc/posix-functions/system.texi: Mention the new module.
932         * doc/posix-headers/stdlib.texi: Likewise.
933         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
934         define test_sys_wait_macros to a no-op.
935         Reported by Sam Steingold <sds@gnu.org>.
936
937 2010-09-30  Bruno Haible  <bruno@clisp.org>
938
939         More renaming from 'getdate' to 'get_date'.
940         * doc/get_date.texi: Renamed from doc/getdate.texi.
941         * modules/get_date (Files): Update.
942         * MODULES.html.sh (Date and time <time.h>): Update.
943         * DEPENDENCIES: Update.
944         * gnulib-tool: Update comment.
945         * m4/bison.m4 (gl_BISON): Likewise.
946         * m4/get_date.m4 (gl_GET_DATE): Likewise.
947
948 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
949
950         bootstrap: support ACLOCAL_FLAGS during aclocal
951         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
952         can add additional -I dir for third-party .m4 files.
953
954 2010-09-30  Eric Blake  <eblake@redhat.com>
955
956         bootstrap: use glibtoolize on MacOS
957         * build-aux/bootstrap (check_versions): Convert libtool into
958         libtoolize.
959         (tool search): Move libtool check earlier, and look for
960         glibtoolize for MacOS.
961         (gnulib_tool_options): Auto-add --libtool when appropriate.
962         Reported by Justin Clift.
963
964         poll: fix typo that broke test on MacOS
965         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
966         Reported by Justin Clift.
967
968         getdate: rename to get_date
969         Note: getdate.h is not renamed, to minimize client impact.
970         * modules/getdate: Mark obsolete.  Move old contents...
971         * modules/get_date: ...to new module name.
972         * modules/getdate-tests: Move...
973         * modules/get_date-tests: ...here.
974         * m4/getdate.m4: Move...
975         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
976         * lib/getdate.y: Move...
977         * lib/get_date.y: ...here.
978         * tests/test-getdate.c: Move...
979         * tests/test-get_date.c: ...here.
980         * doc/posix-functions/getdate.texi (getdate): Update name.
981         * NEWS: Mention the change.
982
983 2010-09-29  Bruno Haible  <bruno@clisp.org>
984
985         Separate the module 'waitpid' from the module 'sys_wait'.
986         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
987         present.
988         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
989         gl_MODULE_INDICATOR_FOR_TESTS.
990         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
991         * modules/sys_wait (Depends-on): Remove waitpid.
992         (Makefile.am): Substitute GNULIB_WAITPID.
993         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
994         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
995         signature only if the 'waitpid' module is present.
996         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
997         * NEWS: Mention the change.
998         * modules/grantpt (Depends-on): Add waitpid.
999         * modules/wait-process (Depends-on): Likewise.
1000
1001 2010-09-29  Bruno Haible  <bruno@clisp.org>
1002
1003         More tests for module 'sys_wait'.
1004         * modules/sys_wait-c++-tests: New file.
1005         * tests/test-sys_wait-c++.cc: New file.
1006         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1007         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1008
1009 2010-09-29  Bruno Haible  <bruno@clisp.org>
1010
1011         New module 'waitpid'.
1012         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1013         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1014         Don't include <process.h>.
1015         (waitpid): Declare only, using modern idiom.
1016         * m4/waitpid.m4: New file.
1017         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1018         * modules/waitpid: New file.
1019         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1020         (Makefile.am): Update.
1021         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1022
1023 2010-09-28  Bruno Haible  <bruno@clisp.org>
1024
1025         poll: Assume ANSI C.
1026         * lib/poll.c (poll): Use an ANSI C declaration.
1027
1028 2010-09-28  Bruno Haible  <bruno@clisp.org>
1029
1030         poll-h: Create poll.h on all platforms.
1031         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1032         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1033         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1034         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1035         (gl_REPLACE_POLL_H): Don't set POLL_H.
1036         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1037         * modules/poll-h (Depends-on): Add include_next.
1038         (Makefile.am): Create poll.h unconditionally. Substitute also
1039         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1040
1041 2010-09-28  Bruno Haible  <bruno@clisp.org>
1042
1043         Tests for module 'poll-h'.
1044         * modules/poll-h-c++-tests: New file.
1045         * tests/test-poll-h-c++.cc: New file.
1046
1047         Tests for module 'poll-h'.
1048         * modules/poll-h-tests: New file.
1049         * tests/test-poll-h.c: New file.
1050
1051 2010-09-28  Bruno Haible  <bruno@clisp.org>
1052
1053         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1054         * modules/poll-h (Depends-on): Add 'extensions'.
1055
1056 2010-09-28  Bruno Haible  <bruno@clisp.org>
1057
1058         New module 'poll-h'.
1059         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1060         (poll): Use modern idiom.
1061         * modules/poll-h: New file.
1062         * modules/poll (Files): Remove lib/poll.in.h.
1063         (Depends-on): Add poll-h.
1064         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1065         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1066         * m4/poll_h.m4: New file.
1067         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1068         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1069         and invoke gl_REPLACE_POLL_H.
1070         * lib/poll.c: Use common idiom.
1071         * tests/test-poll.c: Likewise.
1072         * doc/posix-headers/poll.texi: Mention the poll-h module.
1073         Suggested by Eric Blake.
1074
1075 2010-09-26  Bruno Haible  <bruno@clisp.org>
1076
1077         sys_wait: Implement WSTOPSIG.
1078         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1079         Reported by Simon Josefsson.
1080
1081 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1082
1083         stdlib, sys_wait: Avoid compilation error on mingw.
1084         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1085
1086 2010-09-26  Bruno Haible  <bruno@clisp.org>
1087
1088         stdlib tests: Avoid code duplication.
1089         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1090         * modules/sys_wait-tests (Files): Likewise.
1091         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1092         * tests/test-stdlib.c: Include test-sys_wait.h.
1093         (main): Invoke test_sys_wait_macros.
1094         * tests/test-sys_wait.c: Include test-sys_wait.h.
1095         (main): Invoke test_sys_wait_macros.
1096
1097 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1098
1099         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1100         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1101         sure Windows sockets are working before calling getaddrinfo.
1102         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1103         * doc/gnulib.texi (Windows sockets): Fix typo.
1104
1105 2010-09-25  Bruno Haible  <bruno@clisp.org>
1106
1107         Tests for module 'regex-quote'.
1108         * modules/regex-quote-tests: New file.
1109         * tests/test-regex-quote.c: New file.
1110
1111         New module 'regex-quote'.
1112         * lib/regex-quote.h: New file.
1113         * lib/regex-quote.c: New file.
1114         * modules/regex-quote: New file.
1115         Suggested by Reuben Thomas <rrt@sc3d.org>.
1116
1117 2010-09-24  Bruno Haible  <bruno@clisp.org>
1118
1119         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1120         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1121
1122 2010-09-23  Bruno Haible  <bruno@clisp.org>
1123
1124         setenv: Relax license.
1125         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1126         Blake.
1127         Requested by Eric Blake.
1128
1129 2010-09-22  Bruno Haible  <bruno@clisp.org>
1130
1131         termios: Relax license.
1132         * modules/termios (License): Change to LGPLv2+.
1133         Requested by Eric Blake.
1134
1135 2010-09-22  Bruno Haible  <bruno@clisp.org>
1136
1137         threadlib: Allow the package to change the default to 'no'.
1138         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1139         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1140         Reported by Paul Eggert.
1141
1142 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1143             Bruno Haible  <bruno@clisp.org>
1144
1145         Fix endless loop in mbmemcasecoll.
1146         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1147         byte.
1148         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1149
1150 2010-09-22  Bruno Haible  <bruno@clisp.org>
1151
1152         Tests for module 'memcoll'.
1153         * modules/memcoll-tests: New file.
1154         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1155
1156         memcoll, xmemcoll: Clarify size vs. length.
1157         * modules/memcoll.c (memcoll0): Clarify specification.
1158         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1159         passed to collate_error.
1160
1161 2010-09-22  Bruno Haible  <bruno@clisp.org>
1162
1163         Tests for module 'memcasecmp'.
1164         * modules/memcasecmp-tests: New file.
1165         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1166
1167 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1168
1169         * lib/pthread.in.h: Add split double-inclusion guard, and include
1170         system <pthread.h> if there is one.  Use @@-style as in other
1171         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1172         pthread.h doesn't.
1173         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1174         (pthread_mutexattr_settype, pthread_mutex_trylock):
1175         New static inline functions, if there's no system <pthread.h>.
1176         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1177         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1178         Approximate with mutexes if the system lacks spinlocks, as in
1179         MacOS.
1180         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1181         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1182         @@-style.  Check for spinlocks separately.
1183         (gl_PTHREAD_DEFAULTS): New macro.
1184         * modules/pthread: Redo to use a more typical style for in.h files.
1185
1186 2010-09-21  Eric Blake  <eblake@redhat.com>
1187
1188         net_if: enhance tests
1189         * tests/test-net_if.c (main): Move signature checks earlier.
1190         Print failures to stderr.
1191         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1192         Document the bug that we do not yet fix.
1193
1194 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1195
1196         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1197         about gnulib, not GSS.
1198
1199 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1200
1201         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1202         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1203         for Emacs.
1204         * build-aux/pmccabe2html: Make Makefile.am example code more
1205         cut-and-paste friendly.
1206
1207 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1208
1209         * tests/test-net_if.c: New file.
1210         * modules/net_if-tests: New file.
1211
1212 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1213
1214         pthread: add pthread_spin_destroy
1215         * lib/pthread.in.h (pthread_spin_destroy): New function.
1216
1217 2010-09-19  Bruno Haible  <bruno@clisp.org>
1218
1219         gnulib-tool: Fix --help output.
1220         * gnulib-tool (func_usage): Fix help message.
1221         Reported by Reuben Thomas <rrt@sc3d.org>.
1222
1223 2010-09-18  Jim Meyering  <meyering@redhat.com>
1224
1225         maint.mk: avoid unexpanded \n in two diagnostics
1226         * top/maint.mk (sc_prohibit_always_true_header_tests):
1227         Don't use a literal \n in a halt=... assignment.  It would not be
1228         expanded, and the two \n bytes would appear in the diagnostic output
1229         rather than the desired newline.  Use halt=$$(printf ... instead.
1230         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1231
1232 2010-09-18  Bruno Haible  <bruno@clisp.org>
1233
1234         netinet_in: Doc tweak.
1235         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1236         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1237
1238 2010-09-18  Jim Meyering  <meyering@redhat.com>
1239
1240         init.sh: correct an outdated comment
1241         * tests/init.sh (create_exe_shims_):  s/function/alias/
1242
1243         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1244         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
1245         a file named "*.exe" is removed between the glob expansion and the
1246         processing of that oddly named file.
1247
1248 2010-09-17  Eric Blake  <eblake@redhat.com>
1249
1250         mirbsd: add some more support
1251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
1252         in BSD family.
1253         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
1254         devices as OpenBSD.
1255         * m4/host-os.m4 (mirbsd): Add MirBSD.
1256
1257         tests: fix unportable assumption on sys/wait.h
1258         * tests/test-sys_wait.c (main): Relax test.
1259         * tests/test-stdlib.c (main): Likewise.
1260
1261         init.sh: accomodate directory with no .exes
1262         * tests/init.sh: Accomodate directory containing only scripts.
1263
1264         tests: avoid compiler warning
1265         * tests/test-stdlib.c (main): Use the variable.
1266
1267         fdutimens, fdutimensat: update signature, again
1268         * lib/utimens.h (gl_futimens): Delete, and move signature...
1269         (fdutimens): ...here.
1270         (fdutimensat): Rearrange signature.
1271         (lutimensat): Rename variable for clarity.
1272         * lib/fdutimensat.c (fdutimensat): Update signature.
1273         * lib/utimens.c (fdutimens): Likewise.
1274         (gl_futimens): Delete.
1275         (utimens, lutimens): Update callers.
1276         * lib/futimens.c (futimens): Likewise.
1277         * tests/test-fdutimensat.c: Likewise.
1278         * tests/test-utimens.c: Likewise.
1279         * tests/test-futimens.h: Update comment.
1280         * NEWS: Mention this.
1281         Suggested by Paul Eggert.
1282
1283 2010-09-17  Bruno Haible  <bruno@clisp.org>
1284
1285         Take over the maintenance of some older macros from Autoconf.
1286         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1287         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1288         GNU Autoconf.
1289         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1290         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1291
1292 2010-09-17  Eric Blake  <eblake@redhat.com>
1293
1294         fdutimensat: drop atflag validation
1295         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1296         with valid fd, to close a race scenario where futimens is
1297         unsupported and FILE was replaced by a symlink.
1298         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1299         accordingly.
1300         Suggested by Paul Eggert.
1301
1302 2010-09-16  Bruno Haible  <bruno@clisp.org>
1303
1304         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1305         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1306
1307 2010-09-16  Bruno Haible  <bruno@clisp.org>
1308
1309         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1310         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1311         login_tty exists.
1312         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1313
1314 2010-09-16  Bruno Haible  <bruno@clisp.org>
1315
1316         login_tty: Make the replacement code work on BSD systems.
1317         * lib/login_tty.c: Include <sys/ioctl.h>.
1318         (login_tty): Use ioctl TIOCSCTTY when available.
1319         * modules/login_tty (Depends-on): Add sys_ioctl.
1320         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1321
1322 2010-09-16  Bruno Haible  <bruno@clisp.org>
1323
1324         login_tty: Stricter unit test.
1325         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1326         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1327         and tcgetsid() after login_tty.
1328         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1329
1330 2010-09-16  Bruno Haible  <bruno@clisp.org>
1331
1332         New module 'tcgetsid'.
1333         * lib/tcgetsid.c: New file.
1334         * m4/tcgetsid.m4: New file.
1335         * modules/tcgetsid: New file.
1336         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1337         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1338         GNULIB_TCGETSID, HAVE_TCGETSID.
1339         * lib/termios.in.h: Include <sys/types.h>.
1340         (tcgetsid): New declaration.
1341         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1342         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1343         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1344         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1345
1346 2010-09-16  Bruno Haible  <bruno@clisp.org>
1347
1348         Tests for module 'termios'.
1349         * modules/termios-c++-tests: New file.
1350         * modules/termios-tests: New file.
1351         * tests/test-termios-c++.cc: New file.
1352         * tests/test-termios.c: New file.
1353
1354         New module 'termios'.
1355         * modules/termios: New file.
1356         * lib/termios.in.h: New file.
1357         * m4/termios_h.m4: New file.
1358         * doc/posix-headers/termios.texi: Mention the new module.
1359
1360 2010-09-16  Eric Blake  <eblake@redhat.com>
1361
1362         fdutimensat: add an atflag parameter
1363         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1364         * lib/utimens.h (fdutimensat): Update prototype.
1365         * tests/test-fdutimensat.c: Adjust test to match.
1366         * NEWS: Document the change.
1367         Suggested by Paul Eggert.
1368
1369 2010-09-16  Bruno Haible  <bruno@clisp.org>
1370
1371         Fix typos in comments.
1372         * lib/striconveh.h: Fix typo in comment.
1373         * lib/login_tty.c (login_tty): Likewise.
1374
1375 2010-09-15  Bruno Haible  <bruno@clisp.org>
1376
1377         stdlib: clarify MirBSD WEXITSTATUS bug
1378         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1379         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1380
1381 2010-09-15  Eric Blake  <eblake@redhat.com>
1382
1383         stdlib: work around MirBSD WEXITSTATUS bug
1384         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1385         * modules/stdlib (Depends-on): Add sys_wait.
1386         * tests/test-sys_wait.c (main): Enhance test.
1387         * tests/test-stdlib.c (main): Likewise.
1388         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1389
1390         docs: mention MacOS issue with WEXITSTATUS(constant)
1391         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1392         issue.
1393         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1394
1395         strnlen: add tests
1396         * modules/strnlen-tests: New file.
1397         * tests/test-strnlen.c: Likewise.
1398
1399 2010-09-14  Bruno Haible  <bruno@clisp.org>
1400
1401         unistr/base: Avoid link errors when module 'libunistring' is also used.
1402         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1403         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1404         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1405         Declare also when HAVE_LIBUNISTRING is set.
1406         Reported by Pádraig Brady <P@draigbrady.com>.
1407
1408 2010-09-14  Eric Blake  <eblake@redhat.com>
1409
1410         test-rawmemchr: make more robust
1411         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1412         (Depends-on, configure.ac): Add needed prerequisites to use it.
1413         * modules/memchr-tests (Files, Depends-on, configure.ac):
1414         Likewise, to avoid implicit reliance on memchr module prereqs.
1415         * tests/test-memchr.c (main): Ensure proper masking.
1416         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
1417         reads.
1418
1419         memchr: detect glibc Alpha bug
1420         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
1421         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
1422         Alpha.
1423         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
1424         * tests/test-memchr.c (main): Enhance test.
1425         Reported by Nelson H. F. Beebe.
1426
1427 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1428
1429         fts, getcwd, glob: audit for dirfd returning -1
1430         * lib/fts.c (opendir): Remove #define; no longer used.
1431         (opendirat): New arg PDIR_FD.  All callers changed.
1432         (fts_build, _opendir2): Use new opendirat to avoid the need for
1433         dirfd, or for checking whether dirfd returns a negative value.
1434         Don't use opendir; always use openat followed by fdopendir.
1435         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
1436         it.
1437         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
1438         returns -1 here.
1439         * modules/fts (Depends-on): Remove dirfd.
1440         * modules/getcwd (Depends-on): Likewise.
1441
1442 2010-09-13  Eric Blake  <eblake@redhat.com>
1443
1444         float: fix broken MirBSD header
1445         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
1446         * doc/posix-headers/float.texi (float.h): Document it.
1447
1448 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1449
1450         fts: use O_NOFOLLOW to avoid race condition when opening a directory
1451         * lib/fts.c (opendirat): New arg extra_flags.
1452         (__opendir2): Use it to avoid following symlinks when opening
1453         a directory, if symlinks are not supposed to be followed.  See
1454         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
1455
1456         fdopendir: preserve argument fd before returning
1457         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
1458         (fdopendir_with_dup, fd_clone_opendir): New static functions.
1459         (fdopendir): Use them, arranging for FD to be open to the same
1460         directory that it was when it started.  (It might be temporarily
1461         closed while fdopendir is running, so this not thread- or
1462         signal-safe.)  Be careful to do the right thing even when file
1463         descriptors are scarce and dup fails with errno == EMFILE.  See
1464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
1465
1466 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
1467
1468         regex: Pass the system regex if its only problem is 32-bit regoff_t.
1469         * NEWS: Document change.
1470         * m4/regex.m4: Disable test for regoff_t size.
1471
1472 2010-09-13  Jim Meyering  <meyering@redhat.com>
1473
1474         fts: don't operate on an invalid file descriptor after failed dup
1475         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
1476         negative file descriptor.
1477
1478 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1479
1480         savedir: add streamsavedir, deprecate fdsavedir
1481         * NEWS: Mention deprecation of fdsavedir.
1482         * lib/savedir.c (streamsavedir): New extern function, whose name
1483         ends in "savedir" to be consistent with the others.  This differs
1484         from savedirstream in that it doesn't close its argument.  The
1485         next version of GNU tar will use this instead of fdsavedir, to
1486         avoid some race conditions and conserve file descriptors.
1487         (savedirstream): Reimplement as a wrapper around streamsavedir.
1488         (fdsavedir): Add a comment deprecating this function.  As far as
1489         I know, only GNU tar used it, and GNU tar doesn't need it any more.
1490         * lib/savedir.h (streamsavedir): New decl.
1491         (fdsavedir): Add a comment deprecating this.
1492
1493 2010-09-10  Bruno Haible  <bruno@clisp.org>
1494
1495         langinfo: Fix last commit.
1496         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
1497         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
1498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1499
1500 2010-09-10  Bruno Haible  <bruno@clisp.org>
1501
1502         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
1503         * lib/progreloc.c (O_EXEC): Define fallback.
1504
1505 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1506
1507         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
1508         * NEWS: Document recent changes to fcntl-h.
1509         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
1510         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
1511         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
1512         Similarly for O_SEARCH; this last was already true, but not documented.
1513         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
1514         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
1515         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
1516         Likewise.
1517         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
1518         is zero, not whether it is defined.
1519         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
1520         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
1521         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
1522
1523 2010-09-10  Bruno Haible  <bruno@clisp.org>
1524
1525         langinfo, nl_langinfo: Fix for IRIX 5.3.
1526         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
1527         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
1528         HAVE_LANGINFO_YESEXPR.
1529         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
1530         HAVE_LANGINFO_YESEXPR.
1531         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
1532         HAVE_LANGINFO_T_FMT_AMPM is 0.
1533         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
1534         HAVE_LANGINFO_YESEXPR is 0.
1535         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
1536         NOEXPR.
1537         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
1538         * doc/posix-functions/nl_langinfo.texi: Likewise.
1539         Reported by Eric Blake.
1540
1541 2010-09-10  Bruno Haible  <bruno@clisp.org>
1542
1543         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
1544         * doc/glibc-functions/login_tty.texi: Mention the include file problem
1545         on FreeBSD 8.0 and OpenBSD 4.6.
1546         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
1547         * m4/pty_h.m4 (gl_PTY_H): Likewise.
1548         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
1549         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
1550         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
1551         ac_includes_default.
1552         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1553
1554 2010-09-09  Eric Blake  <eblake@redhat.com>
1555
1556         strsignal: work around NetBSD bug
1557         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
1558         * lib/string.in.h (includes): Likewise.
1559         * doc/posix-functions/strsignal.texi (strsignal): Document the
1560         bug.
1561         Reported by Nelson H. F. Beebe.
1562
1563         gnulib-tool: work with NetBSD /bin/sh
1564         * gnulib-tool (func_cache_var, func_cache_lookup_module)
1565         (func_get_description, func_get_comment, func_get_status)
1566         (func_get_notice, func_get_applicability, func_get_filelist)
1567         (func_get_dependencies, func_get_autoconf_early_snippet)
1568         (func_get_autoconf_snippet, func_get_automake_snippet)
1569         (func_get_include_directive, func_get_link_directive)
1570         (func_get_license, func_get_maintainer, func_import): Avoid
1571         shell syntax errors from parsing syntax extensions.
1572
1573 2010-09-09  Bruno Haible  <bruno@clisp.org>
1574
1575         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1576         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
1577         a reliable way to determine whether the 'alias' command works.
1578
1579 2010-09-08  Jim Meyering  <meyering@redhat.com>
1580
1581         init.sh: penalize a set-x-impaired shell; don't disqualify it
1582         * tests/init.sh: Too many shells corrupt application stderr when
1583         you set -x, so we can't afford to disqualify them, since at least
1584         on Irix-6.5, that would disqualify all bourne shells.
1585         Instead, use a two-pass approach.
1586         On the first pass, try to find a shell that meets the stricter
1587         condition that set -x does not corrupt stderr.
1588         If no shell meets the stricter condition, retest each candidate
1589         shell, but without that extra condition.  Finally, when
1590         VERBOSE=yes is requested and set -x might cause trouble, simply
1591         issue a warning and refrain from enabling debug output.
1592
1593 2010-09-08  Eric Blake  <eblake@redhat.com>
1594
1595         unsetenv: fix OpenBSD bug
1596         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
1597         * doc/posix-functions/unsetenv.texi (unsetenv): Update
1598         documentation.
1599         Reported by Jim Meyering.
1600
1601         strtod: work around IRIX 6.5 bug
1602         * lib/strtod.c (strtod): Reparse number on shorter string if
1603         exponent parse was invalid.
1604         * tests/test-strtod.c (main): Add check for "0x1p 2".
1605         Reported by Tom G. Christensen.
1606
1607         getopt: optimize previous patch
1608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
1609         empty variable.  Speed up awk script.
1610         Reported by Paolo Bonzini.
1611
1612 2010-09-08  Jim Meyering  <meyering@redhat.com>
1613
1614         test.sh: disqualify shells for which set -x corrupts stderr
1615         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
1616         and OpenBSD 4.7.  They make it so with "set -x", environment settings
1617         appear in stderr output.  For example, this command:
1618             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
1619         prints "P=1" on those two systems:
1620
1621 2010-09-08  Bruno Haible  <bruno@clisp.org>
1622
1623         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1624         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
1625         commands, because some shells ignore redirections when there is an
1626         error in the command lookup.
1627         Reported by Eric Blake.
1628
1629 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
1630
1631         * lib/regex.h: Fix a mention of `regex_compile' (should be
1632         `re_compile_pattern').
1633         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
1634         (re_set_registers): Correct name of parameter in comment.
1635
1636         * doc/regex.texi: Add documentation for missing syntax flags.
1637         Remove commented-out documentation of defunct syntax option
1638         RE_NO_EMPTY_ALTS.
1639         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
1640         Add documentation of re_set_registers.
1641         Document trick to re-use a pattern buffer by setting fastmap manually.
1642         Update documentation of struct re_pattern_buffer per public members.
1643         Uncomment documentation of equivalence class operators and
1644         collating symbol operators, since they are now implemented,
1645         Explain leftmost-longest matching in relation to alternatives.
1646         Tidy documentation of substring matching.
1647         Remove POSIX documentation, which is done better in
1648         glibc, and refer the reader there. Keep BSD API documentation, as
1649         that is not readily available elsewhere.
1650
1651 2010-09-07  Eric Blake  <eblake@redhat.com>
1652
1653         getopt: handle POSIXLY_CORRECT set but not exported
1654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
1655         export state of POSIXLY_CORRECT, due to bash set -o posix.
1656         Reported by Dustin J. Mitchell.
1657
1658 2010-09-05  Bruno Haible  <bruno@clisp.org>
1659
1660         gnulib-tool: Highlight the changed options.
1661         * gnulib-tool (func_usage): Display the --import, --add-import,
1662         --remove-import explanations in bold font.
1663
1664 2010-09-06  Karl Berry  <karl@gnu.org>
1665
1666         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
1667
1668 2010-09-05  Bruno Haible  <bruno@clisp.org>
1669
1670         uniwidth/width: Update comment.
1671         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
1672         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
1673
1674 2010-09-05  Bruno Haible  <bruno@clisp.org>
1675
1676         isinf, isnan: Relax license.
1677         * modules/isinf (License): Change from GPL to LGPL, with consent from
1678         Ben Pfaff.
1679         * modules/isnan (License): Likewise.
1680         Requested by Ludovic Courtès.
1681
1682 2010-09-04  Bruno Haible  <bruno@clisp.org>
1683
1684         gnulib-tool: Help migration from --import to --add-import or --update.
1685         * gnulib-tool: Emit a verbose error message when --import is used
1686         without any module name.
1687
1688 2010-09-04  Bruno Haible  <bruno@clisp.org>
1689
1690         Update doc about gnulib-tool.
1691         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
1692         'gnulib-tool --update' in more detail.
1693         Reported by Eric Blake.
1694
1695 2010-09-04  Bruno Haible  <bruno@clisp.org>
1696
1697         gnulib-tool: Change --import. New options --add/remove-import.
1698         * gnulib-tool: New options --add-import, --remove-import.
1699         (func_usage): Document them.
1700         (have_associative): Define always.
1701         (func_import): In import mode, don't merge the specified settings with
1702         the cached settings. Implement remove-import mode.
1703         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
1704         Explain when to use them versus --import.
1705         (Simple update): Use --add-import instead of --import.
1706         * NEWS: Mention the change.
1707
1708 2010-09-04  Bruno Haible  <bruno@clisp.org>
1709
1710         * doc/gnulib-tool.texi (Initial import): Update paragraph about
1711         separate gnulib.mk.
1712
1713 2010-09-04  Bruno Haible  <bruno@clisp.org>
1714
1715         gnulib-tool: Don't talk about CVS any more.
1716         * gnulib-tool (func_usage, func_import): Write "version control"
1717         instead of CVS.
1718
1719 2010-09-04  Jim Meyering  <meyering@redhat.com>
1720
1721         maint.mk: avoid obscure sc_copyright_check failure in coreutils
1722         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
1723         false positives (whose names may be ill-chosen) when searching
1724         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
1725         would cause a false-positive.
1726
1727         avoid coreutils "make distcheck" failure
1728         Coreutils tests with an absolute build directory name that contains
1729         a space.  Not quoting this directory name caused a failure.
1730         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
1731         * tests/test-vc-list-files-cvs.sh: Likewise.
1732
1733 2010-09-04  Bruno Haible  <bruno@clisp.org>
1734
1735         gnulib-tool: Avoid error when run in a package without Makefile.am.
1736         * gnulib-tool: When collecting the m4dirs in a package that does not
1737         have a Makefile.am, eliminate those directories that contain no
1738         gnulib-cache.m4. Fix expression that counts these directories.
1739
1740 2010-09-04  Bruno Haible  <bruno@clisp.org>
1741
1742         update-copyright test: Improve output when perl is missing or too old.
1743         * tests/test-update-copyright.sh: Move test of Perl version down after
1744         the test whether Perl exists. Provide an explanation relating Perl's
1745         error message to Automake's SKIP: message.
1746
1747 2010-09-04  Bruno Haible  <bruno@clisp.org>
1748
1749         Don't augment PATH in TESTS_ENVIRONMENT.
1750         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
1751         set abs_aux_dir instead of augmenting PATH.
1752         * modules/vc-list-files-tests (Makefile.am): Likewise.
1753         * tests/test-update-copyright.sh: Augment PATH here.
1754         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
1755         path_prepend_.
1756         * tests/test-vc-list-files-git.sh: Likewise.
1757
1758 2010-09-04  Jim Meyering  <meyering@redhat.com>
1759
1760         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
1761         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
1762
1763 2010-09-04  Bruno Haible  <bruno@clisp.org>
1764
1765         strdup: Fix compilation error in C++ mode.
1766         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
1767         the macro.
1768
1769 2010-09-04  Bruno Haible  <bruno@clisp.org>
1770
1771         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
1772         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
1773         macro into a function.
1774         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1775
1776 2010-09-04  Bruno Haible  <bruno@clisp.org>
1777
1778         Set PATH_SEPARATOR the same way autoconf does.
1779         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
1780         the value of PATH_SEPARATOR the same way autoconf-generated configure
1781         scripts do.
1782         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
1783         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
1784
1785 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1786
1787         Set PATH_SEPARATOR the same way autoconf does.
1788         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
1789         the same way autoconf-generated configure scripts do.
1790         * posix-modules: Likewise.
1791
1792 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1793
1794         hash: fix safe_hasher const typo
1795         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
1796         const; otherwise, there is a type error later.
1797
1798 2010-09-02  Jim Meyering  <meyering@redhat.com>
1799
1800         test-update-copyright.sh: require perl 5.8.0
1801         * tests/test-update-copyright.sh: Require 5.8.0,
1802         which Tom G. Christensen has confirmed is adequate,
1803         while 5.6.1 is not.
1804
1805 2010-09-02  Eric Blake  <eblake@redhat.com>
1806
1807         tests: init.sh improvements for re-exec'ing with zsh
1808         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
1809         -vx through shell re-exec.
1810         Reported by Tom G. Christensen.
1811
1812         wctype: fix typo in previous commit
1813         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
1814         Reported by Ludovic Courtès.
1815
1816 2010-09-02  Jim Meyering  <meyering@redhat.com>
1817
1818         test-update-copyright.sh: skip test if Perl is too old
1819         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
1820         Reported by Tom G. Christensen.
1821
1822 2010-09-02  Bruno Haible  <bruno@clisp.org>
1823
1824         wctype: Avoid compilation error on IRIX 6.5.30.
1825         * lib/wctype.in.h (iswblank): Declare with a replacement if
1826         REPLACE_ISWBLANK is set.
1827         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
1828         declared. Set REPLACE_ISWBLANK.
1829         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
1830         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
1831         * doc/posix-headers/wctype.texi: Likewise.
1832         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1833
1834 2010-09-01  Bruno Haible  <bruno@clisp.org>
1835
1836         New module 'socketlib'.
1837         * modules/socketlib: New file.
1838         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
1839         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
1840         * modules/sockets (Depends-on): Add socketlib.
1841         Suggested by Sam Steingold <sds@gnu.org>.
1842
1843 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1844
1845         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
1846
1847         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
1848         when one needs search access to a directory but not read access.
1849         On systems where it is available, it works in some cases where
1850         O_RDONLY does not, namely on directories that are searchable but
1851         not readable, and which need only to be searchable.  If O_SEARCH
1852         is not available, fall back to the traditional method of using
1853         O_RDONLY.
1854
1855         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
1856         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
1857         when opening a directory that needs only to be searchable.
1858         * lib/chdir-safer.c (chdir_no_follow): Likewise.
1859         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
1860         * lib/openat-proc.c (openat_proc_name): Likewise.
1861         * lib/openat.c (openat_needs_fchdir): Likewise.
1862         * lib/save-cwd.c (save_cwd): Likewise.
1863         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
1864
1865 2010-08-28  Bruno Haible  <bruno@clisp.org>
1866
1867         New module 'host-cpu-c-abi'.
1868         * modules/host-cpu-c-abi: New file.
1869         * m4/host-cpu-c-abi.m4: New file, based on part of
1870         clisp/src/m4/general.m4.
1871         Requested by Sam Steingold <sds@gnu.org>.
1872
1873 2010-08-31  Eric Blake  <eblake@redhat.com>
1874         and Jim Meyering  <meyering@redhat.com>
1875
1876         hash: factor, and guard against misbehaving hasher function
1877         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
1878         of table->hasher's return value.  Also protect against a hash value
1879         so large that adding it to table->bucket results in a NULL pointer.
1880         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
1881         Use it in place of open-coded check-and-abort.
1882
1883 2010-08-30  Bruno Haible  <bruno@clisp.org>
1884
1885         hash: silence spurious clang warning
1886         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
1887         Reported by Eric Blake.
1888
1889 2010-08-30  Eric Blake  <eblake@redhat.com>
1890
1891         strstr, memmem, strcasestr: avoid leaked shell message
1892         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
1893         FreeBSD.
1894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1895         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1896
1897         tests: silence clang warning
1898         * tests/test-malloca.c (do_allocation): Avoid dead store.
1899
1900 2010-08-29  Bruno Haible  <bruno@clisp.org>
1901
1902         gettext: Fix recent mistake.
1903         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
1904
1905 2010-08-29  Bruno Haible  <bruno@clisp.org>
1906
1907         selinux-h: Offer a --without-selinux option.
1908         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
1909         --without-selinux was specified, skip all tests and define
1910         HAVE_SELINUX_SELINUX_H to 0.
1911         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
1912         set LIB_SELINUX to empty.
1913         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
1914         gl_LIBSELINUX. If --without-selinux was specified, replace
1915         selinux/context.h.
1916         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
1917
1918 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1919             Bruno Haible  <bruno@clisp.org>
1920
1921         Make the module 'realloc-gnu' work again on AIX and OSF/1.
1922         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
1923         of HAVE_REALLOC.
1924         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
1925         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
1926         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
1927         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
1928
1929 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1930             Bruno Haible  <bruno@clisp.org>
1931
1932         Make the module 'calloc-gnu' work again on AIX and OSF/1.
1933         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
1934         HAVE_CALLOC.
1935         * lib/xmalloc.c: Update accordingly.
1936         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
1937         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
1938         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
1939
1940 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1941             Bruno Haible  <bruno@clisp.org>
1942
1943         Make the module 'malloc-gnu' work again on AIX and OSF/1.
1944         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
1945         HAVE_MALLOC.
1946         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
1947         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
1948         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
1949
1950 2010-08-29  Bruno Haible  <bruno@clisp.org>
1951
1952         Update modules list.
1953         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1954         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
1955         (String handling <string.h>): Add astrxfrm.
1956         (File system functions): Add readlinkat.
1957
1958 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1959
1960         Tests for module 'realloc-gnu'.
1961         * modules/realloc-gnu-tests: New file.
1962         * tests/test-realloc-gnu.c: New file.
1963
1964         Tests for module 'calloc-gnu'.
1965         * modules/calloc-gnu-tests: New file.
1966         * tests/test-calloc-gnu.c: New file.
1967
1968         Tests for module 'malloc-gnu'.
1969         * modules/malloc-gnu-tests: New file.
1970         * tests/test-malloc-gnu.c: New file.
1971
1972 2010-08-28  Bruno Haible  <bruno@clisp.org>
1973
1974         Rename module 'realloc' -> 'realloc-gnu'.
1975         * modules/realloc-gnu: New file, copied from modules/realloc.
1976         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
1977         obsolete.
1978         * modules/mgetgroups (Depends-on): Update.
1979         * doc/posix-functions/realloc.texi: Update.
1980         * NEWS: Mention the change.
1981
1982         Rename module 'calloc' -> 'calloc-gnu'.
1983         * modules/calloc-gnu: New file, copied from modules/calloc.
1984         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
1985         obsolete.
1986         * doc/posix-functions/calloc.texi: Update.
1987         * NEWS: Mention the change.
1988
1989         Rename module 'malloc' -> 'malloc-gnu'.
1990         * modules/malloc-gnu: New file, copied from modules/malloc.
1991         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
1992         obsolete.
1993         * modules/argp (Depends-on): Update.
1994         * modules/regex (Depends-on): Update.
1995         * doc/posix-functions/malloc.texi: Update.
1996         * NEWS: Mention the change.
1997
1998 2010-08-28  Eric Blake  <eblake@redhat.com>
1999
2000         pread, pwrite: add missing dependency
2001         * modules/pread (Depends-on): Add extensions.
2002         * modules/pwrite (Depends-on): Likewise.
2003
2004 2010-08-28  Bruno Haible  <bruno@clisp.org>
2005
2006         unistr/u*-strchr: Fix tests dependencies.
2007         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2008         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2009         Reported by Ian Beckwith <ianb@erislabs.net>.
2010
2011 2010-08-28  Bruno Haible  <bruno@clisp.org>
2012
2013         read-file: Don't occupy too much unused memory.
2014         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2015
2016 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2017             Eric Blake  <eblake@redhat.com>
2018             Bruno Haible  <bruno@clisp.org>
2019
2020         read-file: Avoid memory reallocations with regular files.
2021         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2022         (fread_file): With regular files, use the remaining length as the
2023         initial buffer size.  Check against overflow.
2024         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2025         sys_stat.
2026
2027 2010-08-28  Bruno Haible  <bruno@clisp.org>
2028
2029         ftello: Relax license.
2030         * modules/ftello (License): Relax to LGPLv2+.
2031         Reported by Eric Blake.
2032
2033 2010-08-28  Bruno Haible  <bruno@clisp.org>
2034
2035         Avoid relocwrapper link errors due to gnulib replacement functions.
2036         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2037         function.
2038         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2039
2040 2010-08-28  Bruno Haible  <bruno@clisp.org>
2041
2042         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2043         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2044         defined.
2045         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2046         Suggested by Eric Blake.
2047
2048 2010-08-28  Bruno Haible  <bruno@clisp.org>
2049
2050         sys_socket, netdb: Ensure socklen_t gets defined.
2051         * modules/sys_socket (Depends-on): Add socklen.
2052         * modules/netdb (Depends-on): Likewise.
2053         * modules/getaddrinfo (Depends-on): Remove socklen.
2054         * modules/getsockopt (Depends-on): Likewise.
2055         * modules/setsockopt (Depends-on): Likewise.
2056         * tests/test-sys_socket.c: Check that socklen_t is defined.
2057         * tests/test-netdb.c: Likewise.
2058         * m4/socklen.m4: Update comments.
2059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2060
2061 2010-08-27  Eric Blake  <eblake@redhat.com>
2062
2063         login_tty: add missing dependency
2064         * modules/login_tty (Depends-on): Add pty.
2065
2066 2010-08-26  Eric Blake  <eblake@redhat.com>
2067
2068         lib-symbol-versions: fix m4 quoting
2069         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2070         format for AC_LINK_IFELSE.
2071
2072         glob: fix compile test
2073         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2074
2075         btowc: fix missing file
2076         * modules/btowc (Files): Also ship locale-fr.m4.
2077
2078         lseek: fix link test
2079         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2080         AC_LINK_IFELSE.
2081
2082         include_next: silence autoconf 2.68 warning
2083         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2084         AC_COMPILE_IFELSE as special.
2085         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2086         autoconf < 2.68.
2087
2088         acl: fix compilation test
2089         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2090         AC_COMPILE_IFELSE.
2091
2092 2010-08-26  Bruno Haible  <bruno@clisp.org>
2093
2094         Modernize AC_TRY_RUN invocations.
2095         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2096         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2097         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2098         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2099         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2100         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2102         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2103         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2104         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2105         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2106         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2107         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2108         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2109         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2110         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2111         gl_MBRLEN_NUL_RETVAL): Likewise.
2112         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2113         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2114         Likewise.
2115         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2116         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2117         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2118         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2119         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2120         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2121         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2122         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2123         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2124         Likewise.
2125         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2126         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2127         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2128         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2129         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2130         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2131         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2132         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2133         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2134         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2135
2136 2010-08-26  Bruno Haible  <bruno@clisp.org>
2137
2138         Modernize AC_TRY_LINK invocations.
2139         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2140         AC_TRY_LINK.
2141         * m4/argp.m4 (gl_ARGP): Likewise.
2142         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2143         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2144         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2145         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2146         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2147         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2148         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2149         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2150         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2151         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2152         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2153         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2154         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2155         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2156         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2157         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2158         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2159         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2160         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2161         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2162         Likewise.
2163         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2164         Likewise.
2165         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2166         Likewise.
2167         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2168         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2169         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2170         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2171         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2172         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2173         * m4/servent.m4 (gl_SERVENT): Likewise.
2174         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2175         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2176         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2177         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2178         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2179         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2180         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2181         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2182         * modules/tsearch-tests (configure.ac): Likewise.
2183
2184 2010-08-26  Bruno Haible  <bruno@clisp.org>
2185
2186         Modernize AC_TRY_COMPILE invocations.
2187         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2188         AC_TRY_COMPILE.
2189         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2190         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2191         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2192         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2193         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2194         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2195         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2196         * m4/lock.m4 (gl_LOCK): Likewise.
2197         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2198         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2199         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2200         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2201         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2202         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2203         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2204         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2205         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2206         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2207         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2208         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2209         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2210         extraneous semicolon.
2211
2212 2010-08-26  Jim Meyering  <meyering@redhat.com>
2213
2214         stat-time: relax license LGPL
2215         * modules/stat-time (License): Change from GPL to LGPL,
2216         with consent from all contributors, for use in libguile.
2217         Requested by Ludovic Courtès.
2218
2219 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2220
2221         poll: return immediately on POLLHUP.
2222         * lib/poll.c (poll): Always set timeout before wait_timeout is
2223         computed.
2224
2225 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2226
2227         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2228         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2229         rmdir ("dir/.//"), unlinkat.
2230
2231 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2232
2233         stdbool: avoid spurious failure with modern xlc
2234         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2235
2236 2010-08-24  Bruno Haible  <bruno@clisp.org>
2237
2238         getloadavg: simplify code
2239         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2240         gl_have_func. Update comments.
2241
2242 2010-08-24  Eric Blake  <eblake@redhat.com>
2243
2244         getloadavg: don't define SVR4 on cygwin
2245         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
2246         only define SVR4 when -lkvm is required.
2247         Reported by Yaakov Selkowitz.
2248
2249 2010-08-24  Bruno Haible  <bruno@clisp.org>
2250
2251         priv-set: fix comment
2252         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
2253
2254 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2255
2256         priv-set: fix comments
2257         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
2258         to match code, as suggested by David Bartley in:
2259         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
2260
2261 2010-08-23  Eric Blake  <eblake@redhat.com>
2262
2263         stdbool: avoid rejecting clang
2264         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2265         * tests/test-stdbool.c: Enable more tests if using the system
2266         <stdbool.h> instead of the gnulib replacement.
2267         (main): Move xlc bug test to a runtime test for all compilers.
2268         Reported by Anders Kaseorg.
2269
2270         argz: fix shell quoting issue
2271         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
2272         Reported by Charles Wilson.
2273
2274 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
2275             Erik Faye-Lund <kusmabite@gmail.com>
2276
2277         poll, select: handle ERROR_BROKEN_PIPE.
2278         * lib/poll.c (win32_compute_revents): Return POLLHUP when
2279         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2280         * lib/select.c (win32_compute_revents): Do not mark a pipe
2281         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2282
2283 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
2284
2285         fts: allow compilation with C++
2286         * lib/fts_.h: Specify extern "C" linkage with C++.
2287
2288 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2289
2290         Fix gnulib-tool sed script de-commentation for AIX sed.
2291         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2292         sed.
2293
2294 2010-08-17  Eric Blake  <eblake@redhat.com>
2295
2296         test-stddef: test for (some) offsetof bugs
2297         * tests/test-stddef.c: Enhance test to ensure correct type of
2298         offsetof.
2299         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2300         that we are not fixing at this time.
2301
2302 2010-08-15  Bruno Haible  <bruno@clisp.org>
2303
2304         stpncpy: Allow stpncpy to be defined as a macro.
2305         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2306         if it's already correctly declared.
2307         * lib/string.in.h (stpncpy): Undefine before redefining.
2308         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2309
2310 2010-08-14  Bruno Haible  <bruno@clisp.org>
2311
2312         Rename module 'memxfrm' to 'amemxfrm'.
2313         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2314         (amemxfrm): Renamed from memxfrm.
2315         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2316         (amemxfrm): Renamed from memxfrm.
2317         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2318         * NEWS: Mention the change.
2319         * MODULES.html.sh (String handling <string.h>): Update.
2320         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2321         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2322         * lib/unicase/u16-casexfrm.c: Likewise.
2323         * lib/unicase/u32-casexfrm.c: Likewise.
2324         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2325         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2326         * lib/uninorm/u16-normxfrm.c: Likewise.
2327         * lib/uninorm/u32-normxfrm.c: Likewise.
2328         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2329         memxfrm.
2330         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2331         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2332         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2333         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2334         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2335         Suggested by Paul Eggert.
2336
2337 2010-08-14  Bruno Haible  <bruno@clisp.org>
2338
2339         Tests for module 'astrxfrm'.
2340         * modules/astrxfrm-tests: New file.
2341         * tests/test-astrxfrm.c: New file.
2342
2343         New module 'astrxfrm'.
2344         * lib/astrxfrm.h: New file.
2345         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2346         * modules/astrxfrm: New file.
2347
2348 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2349
2350         regex: Tweak doc.
2351         * doc/regex.texi (Overview): Don't mention regex.c.
2352         (GNU Regular Expression Compiling): Likewise.
2353         (Match-end-of-line Operator): Mention 'not_eol'.
2354
2355 2010-08-14  Brian Gough  <bjg@gnu.org>
2356             Bruno Haible  <bruno@clisp.org>
2357
2358         git-merge-changelog: add doc relating to use with bzr and hg.
2359         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2360
2361 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2362
2363         pthread: fix pthread.h creation for srcdir != builddir
2364         * modules/pthread (Makefile.am): Fix the rule to work also in a
2365         non-srcdir build.
2366
2367 2010-08-13  Karl Berry  <karl@gnu.org>
2368
2369         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2370         * doc/posix-*/*: force line break before @url of POSIX
2371         specifications.
2372         Suggested by Werner Lemberg.
2373
2374 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2375
2376         strtod: fix const diagnostic
2377         * lib/strtod.c (strtod): Don't assign const char * to char *,
2378         as this elicits a warning from GCC when warnings are enabled.
2379
2380 2010-08-10  Pádraig Brady <P@draigbrady.com>
2381         and Eric Blake  <eblake@redhat.com>
2382
2383         copy-acl: ignore ENOTSUP on HP-UX
2384         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2385         so that it is available for HP-UX.
2386         * lib/copy-acl.c (qcopy_acl): Use it.
2387         Reported by Patrick M. Callahan.
2388
2389 2010-08-10  Eric Blake  <eblake@redhat.com>
2390
2391         open, chown: relax license
2392         * modules/open (License): Change to LGPLv2+, with consent by all
2393         authors, for use in augeas.
2394         * modules/chown (License): Likewise.
2395         * modules/lchown (Likewise): Likewise.
2396         Requested by Adam Stokes.
2397
2398 2010-08-09  Karl Berry  <karl@gnu.org>
2399
2400         * build-aux/ar-lib: new file, import from Automake.
2401         * config/srclist.txt: autocheck for updates.
2402
2403 2010-08-09  Eric Blake  <eblake@redhat.com>
2404
2405         readlinkat: adjust client modules
2406         * modules/areadlinkat (Depends-on): Use readlinkat, not
2407         symlinkat.
2408         * modules/areadlinkat-with-size (Depends-on): Likewise.
2409
2410         mknod: be more vocal about danger of running tests as root
2411         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2412         root, since that is just asking for problems.
2413         Suggested by Bruno Haible, based on a report by Rainer Tammer.
2414
2415         readlinkat: split into its own module
2416         * modules/symlinkat: Split readlinkat...
2417         * modules/readlinkat: ...into separate module.
2418         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
2419         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
2420         * lib/symlinkat.c (readlinkat): Move...
2421         * lib/readlinkat.c: ...into new file.
2422         * modules/symlinkat-tests: Split readlinkat test...
2423         * modules/readlinkat-tests: ...into separate module.
2424         * tests/test-symlinkat.c: Split...
2425         * tests/test-readlinkat.c: ...into new file.
2426         * NEWS: Document the split.
2427         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2428         * lib/unistd.in.h (readlinkat): Likewise.
2429         Suggested by Bruno Haible.
2430
2431 2010-08-08  Bruno Haible  <bruno@clisp.org>
2432
2433         memxfrm: Speed up.
2434         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
2435         that usually only one call to strxfrm is necessary for each string
2436         part.
2437         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2438
2439 2010-08-07  Karl Berry  <karl@gnu.org>
2440
2441         * doc/posix-headers/limits.texi,
2442         * doc/posix-functions/malloc.texi,
2443         * doc/posix-functions/strsignal.texi: missing @item.
2444         * doc/ld-version-script.texi: spurious leading i.
2445         * doc/regex.texi (Interval Operators): no commas inside @var.
2446
2447 2010-08-01  Bruno Haible  <bruno@clisp.org>
2448
2449         Integrate the regex documentation.
2450         * doc/gnulib.texi: Define 'cn' index.
2451         (Regular expressions): New a chapter that includes regex.texi and
2452         regexprops-generic.texi.
2453         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
2454         syntax.
2455
2456         Whitespace cleanup.
2457         * doc/regex.texi: Remove trailing spaces.
2458
2459         Add regex documentation.
2460         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
2461         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
2462         Written by Kathy A. Hargreaves and Karl Berry.
2463
2464 2010-08-01  Bruno Haible  <bruno@clisp.org>
2465
2466         link: Update documentation.
2467         * doc/posix-functions/link.texi: Update regarding Solaris.
2468
2469 2010-07-31  Bruno Haible  <bruno@clisp.org>
2470
2471         Update modules list.
2472         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
2473         (String handling <string.h>): Add memcmp2, memxfrm.
2474         (Container data structures): Add xlist, xsublist, xoset.
2475         (Core language properties): Add alignof, unused-parameter.
2476         (Process control, Numeric conversion functions <stdlib.h>): Renamed
2477         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
2478         (Unibyte characters <ctype.h>): New section.
2479         (String handling <string.h>): New section.
2480         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
2481         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
2482         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
2483         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
2484         tan, tanh, tanl, y0, y1, yn.
2485         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
2486         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
2487         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
2488         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
2489         unlockpt, vdprintf, vdprintf-posix.
2490         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
2491         (File system functions): Add concat-filename, sys_file, sys_ioctl,
2492         xconcat-filename.
2493         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
2494         getdtablesize, pipe2, pipe2-safer.
2495         (Security): New section.
2496         (Networking functions): Add accept4.
2497         (Signal handling): Add sigpipe.
2498         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
2499         mbmemcasecoll.
2500         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
2501         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
2502         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
2503         pipe-filter-ii.
2504         (Misc): Add argp-version-etc, login_tty, parse-duration.
2505
2506 2010-07-31  Bruno Haible  <bruno@clisp.org>
2507
2508         Improve doc in MODULES.html.
2509         * modules/linkat (Description): Add the word "function".
2510         * modules/mkfifo (Description): Likewise.
2511         * modules/mknod (Description): Likewise.
2512         * modules/remove (Description): Likewise.
2513         * modules/renameat (Description): Likewise.
2514         * modules/stat (Description): Likewise.
2515         * modules/symlink (Description): Likewise.
2516         * modules/unlink (Description): Likewise.
2517
2518 2010-07-31  Bruno Haible  <bruno@clisp.org>
2519
2520         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
2521         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
2522         option --enable/disable-c++ instead of --enable/disable-cxx.
2523         * NEWS: Mention the change.
2524
2525 2010-07-31  Bruno Haible  <bruno@clisp.org>
2526
2527         readlink, areadlink: Relax test a bit.
2528         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
2529         alternative to ENOTDIR.
2530         * tests/test-areadlink.h (test_areadlink): Likewise.
2531         Reported by Rainer Tammer.
2532
2533 2010-07-31  Bruno Haible  <bruno@clisp.org>
2534
2535         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
2536         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
2537         character, perform the search using U_STRCHR.
2538         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
2539         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
2540         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
2541         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
2542         Suggested by Paolo Bonzini.
2543
2544 2010-07-31  Bruno Haible  <bruno@clisp.org>
2545
2546         unistr/u*-strstr: Fix dependencies.
2547         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
2548         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
2549         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
2550
2551 2010-07-31  Bruno Haible  <bruno@clisp.org>
2552
2553         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
2554         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
2555         the beginning of the loop.
2556         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
2557         cases in 'switch' statement.
2558
2559         unistr/u8-strchr: Fix several bugs.
2560         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
2561         the string. When not found, return NULL, not a pointer near the end.
2562
2563         More tests for unistr/u8-strchr.
2564         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
2565         that the function does not read past the first occurrence of the byte
2566         being searched.
2567         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
2568         * tests/unistr/test-u16-strchr.c (main): New function.
2569         * tests/unistr/test-u32-strchr.c (main): New function.
2570
2571 2010-07-31  Bruno Haible  <bruno@clisp.org>
2572
2573         posix-modules: Ignore backup files of documentation files.
2574         * posix-modules: grep only through files named *.texi.
2575
2576 2010-07-31  Bruno Haible  <bruno@clisp.org>
2577
2578         symlinkat: Fix documentation.
2579         * doc/posix-functions/readlinkat.texi: Fix module name.
2580
2581 2010-07-31  Bruno Haible  <bruno@clisp.org>
2582
2583         fchownat: Replace also when chown has the trailing slash bug.
2584         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
2585         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
2586         introduced on 2010-04-10.
2587         Reported by Rainer Tammer.
2588
2589 2010-07-31  Bruno Haible  <bruno@clisp.org>
2590
2591         linkat: Work around AIX 7.1 bug.
2592         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
2593         whether linkat handles trailing slash correctly. If not, replace linkat
2594         and define LINKAT_TRAILING_SLASH_BUG.
2595         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
2596         check whether (fd1,file1) points to a directory if file1 or file2 ends
2597         in a slash. Code taken from lib/link.c.
2598         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
2599         Reported by Rainer Tammer.
2600
2601 2010-07-31  Bruno Haible  <bruno@clisp.org>
2602
2603         Correctly determine whether pow is available in libc on AIX 7 with xlc.
2604         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
2605         This disables an xlc optimization that was causing wrong test results.
2606         Reported by Rainer Tammer.
2607
2608 2010-07-31  Bruno Haible  <bruno@clisp.org>
2609
2610         iconv: Work around AIX 6.1..7.1 bug.
2611         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
2612         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
2613         cross-compiling, guess no on all versions of AIX.
2614         Reported by Rainer Tammer.
2615
2616 2010-07-31  Bruno Haible  <bruno@clisp.org>
2617
2618         readlink: Relax test a bit.
2619         * tests/test-readlink.h (test_readlink): Allow different errno value
2620         when readlink is called with a file name that ends in / and refers to
2621         a file.
2622         Suggested by Eric Blake.
2623         Reported by Rainer Tammer.
2624
2625 2010-07-31  Bruno Haible  <bruno@clisp.org>
2626
2627         copysign: Does not require -lm on glibc systems.
2628         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
2629         gl_COMMON_DOUBLE_MATHFUNC.
2630         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
2631
2632 2010-07-31  Bruno Haible  <bruno@clisp.org>
2633
2634         duplocale: Work around AIX 7.1 bug.
2635         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
2636         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
2637         * lib/duplocale.c (rpl_duplocale): Update comment.
2638         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
2639         Reported by Rainer Tammer.
2640
2641 2010-07-30  Bruno Haible  <bruno@clisp.org>
2642
2643         dirfd: Avoid link error on AIX 7.1.
2644         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
2645         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
2646         exist, set REPLACE_DIRFD.
2647         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
2648         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
2649         * doc/posix-functions/dirfd.texi: Update.
2650         Reported by Rainer Tammer.
2651
2652 2010-07-30  Eric Blake  <eblake@redhat.com>
2653
2654         strtod: next round of AIX fixes
2655         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
2656         exponent.
2657         * tests/test-strtod.c (main): Enhance tests.
2658         * doc/posix-functions/strtod.texi (strtod): Document next bug.
2659         Reported by Rainer Tammer.
2660
2661         futimens: fix configure check
2662         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
2663         Reported by Bruno Haible.
2664
2665 2010-07-30  Bruno Haible  <bruno@clisp.org>
2666
2667         getline: Update regarding AIX.
2668         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
2669         Reported by Rainer Tammer.
2670
2671 2010-07-30  Bruno Haible  <bruno@clisp.org>
2672
2673         wcwidth: Drop replacement on AIX 7.
2674         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
2675         AIX 7.
2676         Reported by Rainer Tammer.
2677
2678 2010-07-30  Bruno Haible  <bruno@clisp.org>
2679
2680         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
2681         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
2682         a 'char *'.
2683         Reported by Rainer Tammer.
2684
2685 2010-07-30  Bruno Haible  <bruno@clisp.org>
2686
2687         unlink: Update regarding AIX.
2688         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
2689         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
2690         Reported by Rainer Tammer.
2691
2692 2010-07-30  Bruno Haible  <bruno@clisp.org>
2693
2694         symlink: Update regarding AIX.
2695         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
2696         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
2697         Reported by Rainer Tammer.
2698
2699 2010-07-30  Bruno Haible  <bruno@clisp.org>
2700
2701         strndup: Update regarding AIX.
2702         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
2703         AIX 7.
2704         Reported by Rainer Tammer.
2705
2706 2010-07-30  Bruno Haible  <bruno@clisp.org>
2707
2708         stat: Update regarding AIX.
2709         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
2710         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
2711         Reported by Rainer Tammer.
2712
2713 2010-07-30  Bruno Haible  <bruno@clisp.org>
2714
2715         truncl: Fix autoconf test.
2716         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
2717         whether truncl works.
2718         Reported by Rainer Tammer.
2719
2720 2010-07-30  Bruno Haible  <bruno@clisp.org>
2721
2722         round: Update regarding AIX.
2723         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
2724         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
2725         Reported by Rainer Tammer.
2726
2727 2010-07-30  Bruno Haible  <bruno@clisp.org>
2728
2729         rename: Update regarding AIX.
2730         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
2731         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
2732         Reported by Rainer Tammer.
2733
2734 2010-07-30  Bruno Haible  <bruno@clisp.org>
2735
2736         printf.m4: Update regarding AIX.
2737         * m4/printf.m4: Update comments regarding AIX.
2738         Reported by Rainer Tammer.
2739
2740 2010-07-30  Bruno Haible  <bruno@clisp.org>
2741
2742         iconv: Update regarding AIX.
2743         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
2744         AIX 7.
2745         Reported by Rainer Tammer.
2746
2747 2010-07-30  Bruno Haible  <bruno@clisp.org>
2748
2749         getopt: Update regarding AIX.
2750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
2751         no on AIX.
2752         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
2753         Reported by Rainer Tammer.
2754
2755 2010-07-30  Bruno Haible  <bruno@clisp.org>
2756
2757         ldexpl; Update regarding AIX.
2758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
2759         on AIX 7.
2760         Reported by Rainer Tammer.
2761
2762 2010-07-30  Bruno Haible  <bruno@clisp.org>
2763
2764         frexpl: Update regarding AIX.
2765         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
2766         on AIX 7.
2767         Reported by Rainer Tammer.
2768
2769 2010-07-30  Bruno Haible  <bruno@clisp.org>
2770
2771         open, fopen: Update regarding AIX.
2772         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
2773         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2774         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
2775         * doc/posix-functions/fopen.texi: Likewise.
2776         Reported by Rainer Tammer.
2777
2778 2010-07-30  Bruno Haible  <bruno@clisp.org>
2779
2780         chown: Update doc regarding AIX.
2781         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
2782         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
2783         Reported by Rainer Tammer.
2784
2785 2010-07-30  Eric Blake  <eblake@redhat.com>
2786
2787         strtod: fix bug in replacement function on AIX
2788         * lib/strtod.c (strtod): Special case broken "0x" parse in
2789         underlying strtod.
2790         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
2791         * doc/posix-functions/strtod.texi (strtod): Likewise.
2792         Reported by Rainer Tammer.
2793
2794 2010-07-30  Bruno Haible  <bruno@clisp.org>
2795
2796         mbrlen: Fix cross-compilation guess for AIX.
2797         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
2798         guess. Leftover from 2008-12-22.
2799
2800 2010-07-30  Bruno Haible  <bruno@clisp.org>
2801
2802         mbrtowc: Fix cross-compilation guess for AIX.
2803         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
2804         guess. Leftover from 2008-12-21.
2805
2806 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
2807
2808         init.sh: work around trap limitation of some shells
2809         * tests/init.sh (setup_): Move exit trap outside of shell function.
2810
2811 2010-07-29  Eric Blake  <eblake@redhat.com>
2812
2813         strtod: aid debugging
2814         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
2815         understanding why strtod is rejected.
2816
2817 2010-07-28  Bruno Haible  <bruno@clisp.org>
2818
2819         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
2820         * lib/unistr/u8-chr.c: Include <string.h>.
2821         * tests/unistr/test-u8-chr.c: Likewise.
2822         * tests/unistr/test-u16-chr.c: Likewise.
2823         * tests/unistr/test-u32-chr.c: Likewise.
2824         * tests/unistr/test-u8-strchr.c: Likewise.
2825         * tests/unistr/test-u16-strchr.c: Likewise.
2826         * tests/unistr/test-u32-strchr.c: Likewise.
2827         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
2828         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2829         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
2830         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
2831
2832 2010-07-28  Bruno Haible  <bruno@clisp.org>
2833
2834         Use spaces for indentation, not tabs.
2835         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
2836
2837 2010-07-27  Bruno Haible  <bruno@clisp.org>
2838
2839         mbspcasecmp: Fix function specification.
2840         * lib/string.in.h (mbspcasecmp): Fix specification comment.
2841         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
2842         Reported by Eric Blake <eblake@redhat.com>.
2843
2844 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
2845
2846         timespec: use cast and not conditional, as truncation isn't possible
2847         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
2848         instead of a conditional.  Comment about the situation in more detail.
2849         This undoes most of the 2009-10-29 patch.
2850
2851 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
2852
2853         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
2854         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
2855         * lib/unistr/u8-strchr.c: Likewise.
2856         * modules/unistr/u8-chr: Depend on memchr.
2857
2858         unistr/u*-strchr: add tests
2859         * modules/unistr/u8-strchr-tests: New file.
2860         * modules/unistr/u16-strchr-tests: New file.
2861         * modules/unistr/u32-strchr-tests: New file.
2862         * tests/unistr/test-strchr.h: New file.
2863         * tests/unistr/test-u8-strchr.c: New file.
2864         * tests/unistr/test-u16-strchr.c: New file.
2865         * tests/unistr/test-u32-strchr.c: New file.
2866
2867         unistr/u*-chr: test multibyte sequences more
2868         * tests/unistr/test-chr.h: Do complete testing of the characters in the
2869         test vector.
2870         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
2871         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
2872         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
2873
2874         unistr/u*-chr: test multibyte sequences
2875         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
2876
2877         unistr/u*-chr: prepare for multibyte tests
2878         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
2879         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
2880         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
2881         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
2882         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
2883         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
2884
2885 2010-07-18  Bruno Haible  <bruno@clisp.org>
2886
2887         unistr/u8-strchr: Optimize non-ASCII argument case.
2888         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
2889         because the first byte often matches anyway.
2890         Reported by Pádraig Brady <P@draigbrady.com>.
2891
2892 2010-07-15  Karl Berry  <karl@gnu.org>
2893
2894         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
2895
2896 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
2897
2898         getcwd: on Solaris, work better if ancestors are inaccessible
2899         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
2900         buffer and size, try again with a large buffer.  This works better
2901         on Solaris, since its getcwd succeeds even if the path to the root
2902         is inaccessible, and this is helpful in common cases such as .zfs
2903         hidden directories.  Problem reported by J Chapman Flack in
2904         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
2905         Use system getcwd if it's declared, not merely if it's partly
2906         working; use the partly-working test only to avoid needless effort
2907         if the system getcwd fails.
2908         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
2909         comment that was already obsolete and is now even more obsolete.
2910         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
2911         now might call strdup.
2912
2913 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
2914
2915         pthread: Add enough so that coreutils/src/sort.c compiles.
2916         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
2917         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
2918         gnulib. Include <sched.h> and <time.h>, as per POSIX.
2919         Include <sys/types.h>, in case it defines pthread_t.
2920         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
2921         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
2922         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
2923         (pthread_rwlockattr_t, pthread_spinlock_t):
2924         New typedefs, if HAVE_PTHREAD_T is not defined.
2925         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
2926         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
2927         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
2928         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
2929         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
2930         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
2931         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
2932         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
2933         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
2934         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
2935         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
2936         New macros.
2937         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
2938         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
2939         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
2940         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
2941         (pthread_spin_unlock): New dummy functions.
2942         (pthread_create): Return EAGAIN; don't set errno.
2943         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
2944         require AC_C_INLINE.
2945         * modules/pthread (Depends-on): Add sched, time.
2946         (pthread.h): Use AM_V_GEN.
2947
2948 2010-07-13  Bruno Haible  <bruno@clisp.org>
2949
2950         striconveh: Don't malloc memory if the result buffer is sufficient.
2951         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
2952         buffer if its size is sufficient.
2953         Reported by Ludovic Courtès <ludo@gnu.org>.
2954
2955 2010-07-13  Bruno Haible  <bruno@clisp.org>
2956
2957         strtod: Add safety check.
2958         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
2959
2960 2010-07-12  Bruno Haible  <bruno@clisp.org>
2961
2962         Unify tests that set gl_cv_func_ldexpl_no_libm.
2963         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
2964         gl_FUNC_LDEXPL.
2965         (gl_FUNC_LDEXPL): Invoke it.
2966         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2967
2968 2010-07-12  Bruno Haible  <bruno@clisp.org>
2969
2970         Unify tests that set gl_cv_func_ldexp_no_libm.
2971         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
2972         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
2973         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
2974         (configure.ac): Simply invoke gl_FUNC_LDEXP.
2975         * modules/strtod (Files): Add m4/ldexp.m4.
2976
2977 2010-07-12  Bruno Haible  <bruno@clisp.org>
2978
2979         Unify tests that set gl_cv_func_frexpl_no_libm.
2980         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
2981         gl_FUNC_FREXPL_NO_LIBM.
2982         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
2983         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2984
2985 2010-07-12  Bruno Haible  <bruno@clisp.org>
2986
2987         Unify tests that set gl_cv_func_frexp_no_libm.
2988         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
2989         gl_FUNC_FREXP_NO_LIBM.
2990         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
2991         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2992
2993 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
2994
2995         memcoll: clarify sizes versus lengths, document better, and tweak perf
2996         * lib/memcoll.c (strcoll_loop, memcoll0):
2997         Improve quality of descriptive comments.  Name variables
2998         consistently as to whether they are lengths (which do not include
2999         terminating null) versus sizes (which do).
3000         * lib/xmemcoll.c (xmemcoll0): Likewise.
3001         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3002         returned when s1size == 0; this is easier to compile and saves
3003         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3004
3005 2010-07-12  Bruno Haible  <bruno@clisp.org>
3006
3007         Tests for module '_Exit'.
3008         * modules/_Exit-tests: New file.
3009         * tests/test-_Exit.sh: New file.
3010         * tests/test-_Exit.c: New file.
3011
3012         New module '_Exit'.
3013         * lib/stdlib.in.h (__attribute__): New macro.
3014         (_Exit): New declaration.
3015         * lib/_Exit.c: New file.
3016         * m4/_Exit.m4: New file.
3017         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3018         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3019         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3020         * modules/_Exit: New file.
3021         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3022         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3023
3024 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3025
3026         strtod: make it more-accurate typically, and don't require libm
3027         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3028         Include limits.h.  Don't include string.h.
3029         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3030         (locale_isspace): New function, so that no casts are needed to
3031         check whether *s is a space.
3032         (ldexp): Provide an unused dummy if not available.
3033         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3034         (strtod): Use them.  This implementation prefers to use the
3035         underlying strtod if available, falling back on our own code
3036         only to fix known bugs.  This is more likely to produce an
3037         accurate result.  Also, it avoids the use of libm functions.
3038         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3039         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3040         was absent, but it caused a test failure with coreutils.
3041         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3042         with libm.
3043         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3044         * modules/strtod-tests (Makefile.am): Likewise.
3045
3046 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3047             Bruno Haible  <bruno@clisp.org>
3048
3049         unistr/u8-strchr: Optimize ASCII argument case.
3050         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3051
3052 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3053
3054         (x)memcoll: minor tweaks
3055         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3056         is after the type that it qualifies.
3057         (memcoll0): Likewise.
3058         * lib/memcoll.h (memcoll0): Likewise.
3059         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3060         * lib/xmemcoll.h (xmemcoll0): Likewise.
3061         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3062         differs from memcoll in that the NUL byte is part of the argument.
3063         Omit the abort-checks, as performance is a real issue here.  Plus,
3064         the checks were wrong anyway (an off-by-one error).  Omit local
3065         variable 'diff', as it's a bit clearer that way.
3066         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3067         no longer needed.
3068
3069 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3070
3071         (x)memcoll: speedup when input is known to be NUL delimited
3072         * lib/memcoll.c: Include stdlib.
3073         (memcoll0) New function.
3074         (strcoll_loop) New function, refactored for use in both memcoll
3075         and memcoll0.
3076         * lib/memcoll.h: Add prototype for memcoll0.
3077         * lib/xmemcoll.c: (xmemcoll0) New function.
3078         (collate_error) New function, refactored for use in both xmemcoll
3079         and xmemcoll0.
3080         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3081         * m4/memcoll.m4: add inline invocation.
3082
3083 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3084
3085         * build-aux/bootstrap: Remove any local translations
3086         from the translation project synchronization directory,
3087         so that local only translations are not distributed.
3088
3089 2010-07-04  Bruno Haible  <bruno@clisp.org>
3090
3091         fsusage: Clarify which code applies to which platforms.
3092         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3093         platform.
3094         * lib/fsusage.c (get_fs_usage): Likewise.
3095
3096 2010-07-04  Bruno Haible  <bruno@clisp.org>
3097
3098         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3099         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3100         Reported by Martin Lambers <marlam@marlam.de>.
3101
3102 2010-07-04  Jim Meyering  <meyering@redhat.com>
3103
3104         hash: once again explicitly disallow insertion of NULL
3105         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3106         inserting a NULL pointer cannot work with these functions.
3107         Add a comment with details.
3108         This reverts part of the 2010-07-01 commit, 5bef1a35
3109         "hash: extend module to deal with non-pointer keys".
3110
3111 2010-07-01  Bruno Haible  <bruno@clisp.org>
3112
3113         stdbool: Update doc.
3114         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3115         Info from Christian Weisgerber <naddy@mips.inka.de>.
3116
3117 2010-07-01  Jim Meyering  <meyering@redhat.com>
3118
3119         hash: extend module to deal with non-pointer keys
3120         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3121         but that allows insertion of non-pointer entries.
3122         Do not disallow an ENTRY value of NULL.
3123         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3124         * lib/hash.h (hash_insert0): Declare.
3125
3126 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3127
3128         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3129         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3130         not present (i.e. with autoconf 2.59 and when using gettextize, not
3131         gnulib), require AC_GNU_SOURCE instead.
3132
3133 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3134
3135         idpriv-drop: Fix tests.
3136         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3137         not to the test-idpriv-droptemp program.
3138
3139 2010-06-29  Bruno Haible  <bruno@clisp.org>
3140
3141         string: Fix syntax error with g++ 2.96.
3142         * lib/string.in.h (__pure__): Remove definition.
3143         (_GL_ATTRIBUTE_PURE): New macro.
3144         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3145         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3146         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3147
3148 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3149
3150         unitypes: Fix bug introduced on 2010-05-18.
3151         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3152
3153 2010-06-22  Eric Blake  <eblake@redhat.com>
3154
3155         memmem: slight optimization
3156         * lib/str-two-way.h (critical_factorization): Update comments.
3157         Reduce work during factorization phase.
3158         Reported by Carlos Bueno <carlos@bueno.org>.
3159
3160 2010-06-21  Bruno Haible  <bruno@clisp.org>
3161
3162         Fix HAVE_CALLOC_POSIX misnomer.
3163         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3164         !HAVE_CALLOC_POSIX.
3165         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3166         HAVE_CALLOC_POSIX.
3167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3168         instead of HAVE_CALLOC_POSIX.
3169         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3170         HAVE_CALLOC_POSIX.
3171
3172         Use modern idiom for calloc() replacement.
3173         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3174         AC_FUNC_CALLOC.
3175         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3176         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3177         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3178         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3179         (gl_REPLACE_CALLOC): New macro.
3180
3181 2010-06-21  Bruno Haible  <bruno@clisp.org>
3182
3183         Fix HAVE_REALLOC_POSIX misnomer.
3184         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3185         !HAVE_REALLOC_POSIX.
3186         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3187         HAVE_REALLOC_POSIX.
3188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3189         instead of HAVE_REALLOC_POSIX.
3190         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3191         HAVE_REALLOC_POSIX.
3192
3193         Use modern idiom for realloc() replacement.
3194         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3195         AC_FUNC_REALLOC.
3196         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3197         Autoconf's AC_FUNC_REALLOC.
3198         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3199         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3200         (gl_REPLACE_REALLOC): New macro.
3201         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3202
3203 2010-06-21  Bruno Haible  <bruno@clisp.org>
3204
3205         Fix HAVE_MALLOC_POSIX misnomer.
3206         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3207         !HAVE_MALLOC_POSIX.
3208         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3209         HAVE_MALLOC_POSIX.
3210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3211         instead of HAVE_MALLOC_POSIX.
3212         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3213         HAVE_MALLOC_POSIX.
3214
3215         Use modern idiom for malloc() replacement.
3216         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3217         AC_FUNC_MALLOC.
3218         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3219         Autoconf's AC_FUNC_MALLOC.
3220         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3221         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3222         (gl_REPLACE_MALLOC): New macro.
3223         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3224
3225 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3226
3227         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3228         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3229         This macro takes 3 arguments, not 4.
3230
3231 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3232
3233         ipv6: fix detection under mingw
3234         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3235         in6_addr.
3236
3237 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3238
3239         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3240         that strtod() works when cross-compiling to a glibc version known
3241         to work.
3242
3243 2010-06-15  Bruno Haible  <bruno@clisp.org>
3244
3245         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
3246
3247 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
3248
3249         select: Correct timeout.
3250         * lib/select.c (rpl_select): Compute wait_timeout correctly.
3251
3252 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3253
3254         git-version-gen: init shell var to avoid env var influence
3255         * build-aux/git-version-gen (v): Init shell var to empty.
3256
3257 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3258
3259         priv-set: Don't assume that priv.h exists merely because getppriv does.
3260         See Jan Andersen's bug report about AIX 5L in
3261         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
3262         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
3263         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
3264         * lib/priv-set.h: Likewise.
3265         * tests/test-priv-set.c: Likewise.
3266
3267 2010-06-13  Bruno Haible  <bruno@clisp.org>
3268
3269         relocatable: Make it easier to test whether to install wrappers.
3270         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
3271         RELOCATABLE_VIA_WRAPPER.
3272
3273 2010-06-13  Bruno Haible  <bruno@clisp.org>
3274
3275         gnulib-tool: Display specified modules and dependencies differently.
3276         * gnulib-tool (func_show_module_list): New function.
3277         (func_import, func_create_testdir): Invoke it.
3278         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3279
3280 2010-06-13  Bruno Haible  <bruno@clisp.org>
3281
3282         gnulib-tool: Align code of func_import and func_create_testdir.
3283         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
3284         specified_modules.
3285
3286 2010-06-12  Jim Meyering  <meyering@redhat.com>
3287
3288         test-inttostr: avoid spurious failure on Solaris 9
3289         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3290         to accept "%ju".  Reported by Bruno Haible.
3291
3292 2010-06-11  Jim Meyering  <meyering@redhat.com>
3293
3294         test-sys_socket: mark variables as used more readably
3295         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3296         as "used" explicitly via (void) statement casts.  This is more
3297         readable than using them in an artificial return expression.
3298         Suggestion from Bruno Haible.
3299
3300 2010-06-11  Bruno Haible  <bruno@clisp.org>
3301
3302         Avoid some more warnings from "gcc -Wwrite-strings".
3303         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3304         to 'const char *'.
3305         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3306         * tests/test-c-strcasestr.c (main): Likewise.
3307         * tests/test-mbscasestr1.c (main): Likewise.
3308         * tests/test-mbscasestr2.c (main): Likewise.
3309         * tests/test-memmem.c (main): Likewise.
3310         * tests/test-strstr.c (main): Likewise.
3311         * tests/test-strcasestr.c (main): Likewise.
3312
3313 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3314
3315         init.sh: change framework_failure_ to fail with status 99, not 1
3316         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3317         automake's parallel-tests rule that this is an unexpected failure,
3318         even if the test is listed in XFAIL_TESTS.
3319
3320 2010-06-11  Jim Meyering  <meyering@redhat.com>
3321
3322         test-inttostr: avoid warnings about 4-6KB literal strings
3323         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3324         Include "macros.h", for its definition of ASSERT.
3325         (CK): s/assert/ASSERT/
3326         * modules/inttostr-tests (Files): Add macros.h.
3327
3328         init.sh: don't use $ME_ or skip_ before they are defined
3329         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3330         their first uses.  Also hoist their companions: warn_, fail_,
3331         framework_failure_, $stderr_fileno.  Prompted by a patch from
3332         Stefano Lattarini.
3333
3334         test-sys_socket: avoid set-but-not-used warnings from gcc
3335         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3336         avoid warning about set-but-not-used variables.
3337
3338         test-xvasprintf: avoid 'const' discard warnings
3339         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3340         "const" when assigning from literal strings.
3341         (test_xasprintf): Add "void" in function argument list to placate
3342         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3343
3344         tests: avoid compilation warnings in argmatch and exclude tests...
3345         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3346         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3347         Since it always exits, declare with the "noreturn" attribute.
3348         * tests/test-argmatch.c: Likewise.
3349
3350         tests: avoid 'const' discard warnings in mbsstr tests
3351         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3352         * tests/test-mbsstr2.c (main): Likewise.
3353
3354         test-verify: avoid warning from gcc's -Wmissing-declarations
3355         * tests/test-verify.c (function): Declare to be static.
3356
3357         test-inttostr.c: include <string.h> for use of strcmp
3358         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3359
3360         test-linkat: avoid failed assertion on "other" architectures
3361         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3362         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3363         sparc: https://bugs.launchpad.net/bugs/591968
3364
3365 2010-06-11  Jim Meyering  <meyering@redhat.com>
3366
3367         printf.m4: avoid autoconf's "Expanded Before Required" warning
3368         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3369         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3370         autoconf warning.
3371
3372 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3373
3374         Replacement header templates are now named with ".in", not "_".
3375         * doc/gnulib-intro.texi: Correct.
3376
3377 2010-06-10  Jim Meyering  <meyering@redhat.com>
3378
3379         inttostr-tests: depend on snprintf, not snprintf-posix
3380         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3381         snprintf-posix, to avoid this aclocal failure:
3382           missing file gnulib-tests/vasnprintf.c
3383           configure.ac:45: error: expected source file, required through \
3384           AC_LIBSOURCES, not found
3385
3386 2010-06-10  Jim Meyering  <meyering@redhat.com>
3387
3388         inttostr: add a new function, inttostr, and tests
3389         The namesake function was not available.  The existence of the
3390         template file, inttostr.c makes its addition nontrivial.
3391         * lib/anytostr.c: Rename from inttostr.c.
3392         (anytostr): Rename from inttostr.
3393         * lib/inttostr.c: New file.
3394         * modules/inttostr (Files): Add anytostr.c.
3395         (Makefile.am): Set lib_SOURCES instead of ...
3396         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3397         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3398         * lib/offtostr.c: Likewise.
3399         * lib/uinttostr.c: Likewise.
3400         * lib/umaxtostr.c: Likewise.
3401         * modules/inttostr-tests: New file.
3402         * tests/test-inttostr.c: New file.  Test these functions.
3403
3404 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3405             Bruno Haible  <bruno@clisp.org>
3406
3407         Add "Extending Gnulib" chapter to manual.
3408         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3409         chapter.
3410         (Extending Gnulib): New chapter.
3411         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3412         chapter.
3413
3414 2010-06-09  Bruno Haible  <bruno@clisp.org>
3415
3416         Avoid relocwrapper link errors due to gnulib replacement functions.
3417         * lib/areadlink.c: Use the system's malloc, realloc functions.
3418         (areadlink): Set errno to ENOMEM explicitly.
3419         * modules/areadlink (Depends-on): Remove malloc-posix.
3420         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3421
3422 2010-06-09  Bruno Haible  <bruno@clisp.org>
3423
3424         Avoid relocwrapper link errors due to gnulib replacement functions.
3425         * lib/canonicalize-lgpl.c: Use the system's malloc function.
3426         * lib/malloca.c: Likewise.
3427         * lib/relocatable.c: Likewise.
3428         * lib/progreloc.c: Use the system's malloc, sprintf functions.
3429         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
3430         * lib/setenv.c: Use the system's malloc, realloc functions.
3431         * lib/strerror.c: Use the system's sprintf function.
3432         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3433
3434 2010-06-04  Bruno Haible  <bruno@clisp.org>
3435
3436         Prefer documented low-level autoconf macro names.
3437         * m4/lib-link.m4: Use m4_translit instead of translit.
3438         * m4/environ.m4: Likewise.
3439         * m4/mathfunc.m4: Likewise.
3440         * m4/onceonly.m4: Likewise.
3441         * m4/stdint.m4: Likewise.
3442         Suggested by Eric Blake.
3443
3444 2010-06-04  Martin Lambers  <marlam@marlam.de>
3445             Bruno Haible  <bruno@clisp.org>
3446
3447         havelib: Allow library names with '+' characters.
3448         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3449         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
3450
3451 2010-06-09  Bruno Haible  <bruno@clisp.org>
3452
3453         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
3454         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
3455         realloc failed.
3456
3457 2010-06-08  Peter Simons  <simons@cryp.to>
3458
3459         maint.mk: make the news-check rule more configurable
3460         * top/maint.mk (news-check-lines-spec) New variable.
3461         (news-check): Use "sed -n 1,10p" in place of "head".
3462
3463 2010-06-07  Jim Meyering  <meyering@redhat.com>
3464
3465         do-release-commit-and-tag: fix typo in --help
3466         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
3467
3468         regex: avoid new dead-code warning with gcc-4.6.0
3469         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
3470         if-block containing a while-loop.  It's been unused for at least
3471         5 years.
3472
3473 2010-06-05  Bruno Haible  <bruno@clisp.org>
3474
3475         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
3476         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
3477
3478 2010-06-04  Bruno Haible  <bruno@clisp.org>
3479
3480         Update to GNU gettext 0.18.1.
3481         * modules/gettext (configure.ac): Require gettext infrastructure from
3482         version 0.18.1.
3483
3484 2010-06-03  Bruno Haible  <bruno@clisp.org>
3485
3486         Don't use AC_LIBOBJ with file names in subdirectories.
3487         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
3488         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
3489         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
3490         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
3491         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
3492         gl_LIBUNISTRING_LIBSOURCE.
3493         (Makefile.am): Augment lib_SOURCES here, conditionally.
3494         * NEWS: Drop requirement for Automake option 'subdir-objects'.
3495
3496 2010-06-03  Bruno Haible  <bruno@clisp.org>
3497
3498         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
3499         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
3500         expansion does not end with a newline.
3501         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
3502         unnecessary newline.
3503
3504 2010-06-03  Bruno Haible  <bruno@clisp.org>
3505
3506         Reduce dependencies.
3507         * tests/test-quotearg.h: New file, extracted from
3508         tests/test-quotearg.c.
3509         * tests/test-quotearg-simple.c: New file, extracted from
3510         tests/test-quotearg.c.
3511         * tests/test-quotearg.c: Don't include <ctype.h>.
3512         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
3513         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
3514         use_quote_double_quotes, use_quotearg_colon): Moved to
3515         tests/test-quotearg.h.
3516         (results_g, flag_results, custom_quotes, custom_results): Moved
3517         to tests/test-quotearg-simple.c.
3518         (main): Moved the part that does not depend on gettext to
3519         tests/test-quotearg-simple.c. Return 77 if the test cannot be
3520         performed.
3521         * modules/quotearg-simple: New file.
3522         * modules/quotearg-simple-tests: New file.
3523         * modules/quotearg (Depends-on): Add quotearg-simple.
3524         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
3525         (Files): Add tests/test-quotearg.h.
3526         Reported by Paolo Bonzini.
3527
3528 2010-06-03  Bruno Haible  <bruno@clisp.org>
3529
3530         Reduce dependencies.
3531         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
3532
3533 2010-06-03  Bruno Haible  <bruno@clisp.org>
3534
3535         time: Undefine more broken macros.
3536         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
3537         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
3538         Reported by Eric Blake.
3539
3540 2010-06-03  Bruno Haible  <bruno@clisp.org>
3541
3542         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
3543         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
3544         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
3545         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
3546         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
3547         Reported by Ludovic Courtès <ludo@gnu.org>.
3548
3549 2010-06-02  Eric Blake  <eblake@redhat.com>
3550
3551         time: work with mingw + pthreads-win32 library
3552         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
3553         if timespec is defined only in pthread.h.
3554         * modules/time (Makefile.am): Substitute it.
3555         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
3556         <pthread.h>, when needed.
3557         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
3558         from the library.
3559
3560 2010-05-31  Bruno Haible  <bruno@clisp.org>
3561
3562         Avoid expanding two macros in the wrong order.
3563         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
3564         gl_LIBUNISTRING if it is defined.
3565         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
3566         autoconf >= 2.64.
3567         Reported by Ludovic Courtès <ludo@gnu.org>.
3568
3569 2010-05-27  Jim Meyering  <meyering@redhat.com>
3570
3571         maint.mk: also prohibit "#undef" of always-defined symbols
3572         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
3573         Allow more than one space before the symbol name.
3574         (sc_prohibit_always-defined_macros): Use grep's -E, now that
3575         the regexp uses alternation.
3576
3577 2010-05-26  Eric Blake  <eblake@redhat.com>
3578
3579         maint.mk: avoid echo -e
3580         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
3581         Convert all uses of echo -* to printf.
3582         Reported by Matthias Bolte.
3583
3584 2010-05-25  Bruno Haible  <bruno@clisp.org>
3585
3586         Update to GNU gettext 0.18, part 2.
3587         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
3588         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
3589
3590 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3591
3592         Add missing include in test-pwrite.c.
3593         * tests/test-pwrite.c: Include string.h, for strcmp.
3594
3595 2010-05-24  Bruno Haible  <bruno@clisp.org>
3596
3597         * NEWS: Mention requirement for Automake option 'subdir-objects'.
3598
3599 2010-05-24  Bruno Haible  <bruno@clisp.org>
3600
3601         Don't use conversion with transliteration in u{8,16,32}_strcoll.
3602         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
3603         iconveh_error argument.
3604         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
3605         U_STRCONV_TO_LOCALE.
3606         * lib/unistr/u16-strcoll.c: Likewise.
3607         * lib/unistr/u32-strcoll.c: Likewise.
3608         * modules/unistr/u8-strcoll (Depends-on): Add
3609         uniconv/u8-strconv-to-enc, localcharset. Remove
3610         uniconv/u8-strconv-to-locale.
3611         (configure.ac): Bump version number.
3612         * modules/unistr/u16-strcoll (Depends-on): Add
3613         uniconv/u16-strconv-to-enc, localcharset. Remove
3614         uniconv/u16-strconv-to-locale.
3615         (configure.ac): Bump version number.
3616         * modules/unistr/u32-strcoll (Depends-on): Add
3617         uniconv/u32-strconv-to-enc, localcharset. Remove
3618         uniconv/u32-strconv-to-locale.
3619         (configure.ac): Bump version number.
3620
3621 2010-05-24  Bruno Haible  <bruno@clisp.org>
3622
3623         Avoid a test failure on NetBSD 5.0.
3624         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
3625         an iconv() bug.
3626
3627 2010-05-24  Bruno Haible  <bruno@clisp.org>
3628
3629         Adjust #include directive style.
3630         * modules/regex (Includes): Recommend to write <regex.h>.
3631
3632 2010-05-24  Bruno Haible  <bruno@clisp.org>
3633
3634         regex: Don't require alloca.
3635         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
3636         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
3637         only inside if (0).
3638
3639 2010-05-23  Jim Meyering  <meyering@redhat.com>
3640
3641         test-renameat.c: include <sys/stat.h>
3642         * tests/test-renameat.c: Include <sys/stat.h>; required for
3643         definition of S_IS* macros.
3644
3645 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
3646
3647         Update maintainer documentation for 'relocatable-prog' module.
3648         * doc/relocatable-maint.texi: Update.
3649         Comments by Bruno Haible.
3650
3651 2010-05-23  Bruno Haible  <bruno@clisp.org>
3652
3653         git-merge-changelog: Enable --split-merged-entry by default.
3654         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
3655         (usage): Don't mention this option any more.
3656         Reported by Ralf Wildenhues.
3657
3658 2010-05-23  Jim Meyering  <meyering@redhat.com>
3659
3660         test-pwrite: do not leave behind a test file named "out"
3661         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
3662         The trivial-looking use of init.sh is really necessary.
3663         It ensures that the temporary file, "out", is created in
3664         a temporary directory, and removed upon termination.
3665         * tests/test-pwrite.sh: Re-add file.
3666         * modules/pwrite-tests: Reference it.
3667
3668 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3669
3670         Fix output redirection buglet in init.sh.
3671         * tests/init.sh: Fix redirection of stderr.
3672
3673 2010-05-20  Simon Josefsson  <simon@josefsson.org>
3674
3675         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
3676
3677 2010-05-17  Simon Josefsson  <simon@josefsson.org>
3678
3679         * modules/valgrind-tests: New file.
3680         * m4/valgrind-tests.m4: New file.
3681         * doc/valgrind-tests.texi: New file.
3682         * doc/gnulib.texi (Running self-tests under valgrind): New
3683         section.
3684
3685 2010-05-19  Bruno Haible  <bruno@clisp.org>
3686
3687         Clean up dead code in recent commit.
3688         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
3689         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
3690         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
3691         Suggested by Paolo Bonzini.
3692
3693 2010-05-19  Bruno Haible  <bruno@clisp.org>
3694
3695         Avoid valgrind error reports from libunistring.
3696         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
3697         * modules/libunistring (Files): Add it.
3698         * modules/libunistring-optional (Files): Likewise.
3699
3700 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
3701             Bruno Haible  <bruno@clisp.org>
3702
3703         New module 'libunistring-optional'.
3704         * modules/libunistring-optional: New file.
3705         * m4/libunistring-base.m4: New file.
3706         * m4/libunistring-optional.m4: New file.
3707         * lib/unicase.in.h: Renamed from lib/unicase.h.
3708         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
3709         * lib/unictype.in.h: Renamed from lib/unictype.h.
3710         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
3711         * lib/uniname.in.h: Renamed from lib/uniname.h.
3712         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
3713         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
3714         * lib/unistr.in.h: Renamed from lib/unistr.h.
3715         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
3716         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
3717         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
3718         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
3719         gl_LIBUNISTRING. If the library was found, determine the installed
3720         version and set LIBUNISTRING_VERSION.
3721         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
3722         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
3723         handle a configuration option --with-included-libunistring.
3724         * modules/libunistring (Files): Add m4/absolute-header.m4.
3725         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
3726         Add m4/libunistring-base.m4.
3727         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3728         (Makefile.am): Build unicase.h from unicase.in.h.
3729         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
3730         Add m4/libunistring-base.m4.
3731         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3732         (Makefile.am): Build uniconv.h from uniconv.in.h.
3733         * modules/unictype/base (Files): Use unictype.in.h instead of
3734         unictype.h. Add m4/libunistring-base.m4.
3735         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3736         (Makefile.am): Build unictype.h from unictype.in.h.
3737         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
3738         Add m4/libunistring-base.m4.
3739         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3740         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
3741         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
3742         Add m4/libunistring-base.m4.
3743         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3744         (Makefile.am): Build uniname.h from uniname.in.h.
3745         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
3746         Add m4/libunistring-base.m4.
3747         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3748         (Makefile.am): Build uninorm.h from uninorm.in.h.
3749         * modules/unistdio/base (Files): Use unistdio.in.h instead of
3750         unistdio.h. Add m4/libunistring-base.m4.
3751         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3752         (Makefile.am): Build unistdio.h from unistdio.in.h.
3753         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
3754         Add m4/libunistring-base.m4.
3755         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3756         (Makefile.am): Build unistr.h from unistr.in.h.
3757         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
3758         Add m4/libunistring-base.m4.
3759         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3760         (Makefile.am): Build unitypes.h from unitypes.in.h.
3761         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
3762         Add m4/libunistring-base.m4.
3763         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3764         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
3765         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
3766         uniwidth.h. Add m4/libunistring-base.m4.
3767         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3768         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
3769         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
3770         instead of augmenting lib_SOURCES.
3771         * modules/unicase/empty-suffix-context: Likewise.
3772         * modules/unicase/locale-language: Likewise.
3773         * modules/unicase/tolower: Likewise.
3774         * modules/unicase/totitle: Likewise.
3775         * modules/unicase/toupper: Likewise.
3776         * modules/unicase/u8-casecmp: Likewise.
3777         * modules/unicase/u8-casecoll: Likewise.
3778         * modules/unicase/u8-casefold: Likewise.
3779         * modules/unicase/u8-casexfrm: Likewise.
3780         * modules/unicase/u8-ct-casefold: Likewise.
3781         * modules/unicase/u8-ct-tolower: Likewise.
3782         * modules/unicase/u8-ct-totitle: Likewise.
3783         * modules/unicase/u8-ct-toupper: Likewise.
3784         * modules/unicase/u8-is-cased: Likewise.
3785         * modules/unicase/u8-is-casefolded: Likewise.
3786         * modules/unicase/u8-is-lowercase: Likewise.
3787         * modules/unicase/u8-is-titlecase: Likewise.
3788         * modules/unicase/u8-is-uppercase: Likewise.
3789         * modules/unicase/u8-prefix-context: Likewise.
3790         * modules/unicase/u8-suffix-context: Likewise.
3791         * modules/unicase/u8-tolower: Likewise.
3792         * modules/unicase/u8-totitle: Likewise.
3793         * modules/unicase/u8-toupper: Likewise.
3794         * modules/unicase/u16-casecmp: Likewise.
3795         * modules/unicase/u16-casecoll: Likewise.
3796         * modules/unicase/u16-casefold: Likewise.
3797         * modules/unicase/u16-casexfrm: Likewise.
3798         * modules/unicase/u16-ct-casefold: Likewise.
3799         * modules/unicase/u16-ct-tolower: Likewise.
3800         * modules/unicase/u16-ct-totitle: Likewise.
3801         * modules/unicase/u16-ct-toupper: Likewise.
3802         * modules/unicase/u16-is-cased: Likewise.
3803         * modules/unicase/u16-is-casefolded: Likewise.
3804         * modules/unicase/u16-is-lowercase: Likewise.
3805         * modules/unicase/u16-is-titlecase: Likewise.
3806         * modules/unicase/u16-is-uppercase: Likewise.
3807         * modules/unicase/u16-prefix-context: Likewise.
3808         * modules/unicase/u16-suffix-context: Likewise.
3809         * modules/unicase/u16-tolower: Likewise.
3810         * modules/unicase/u16-totitle: Likewise.
3811         * modules/unicase/u16-toupper: Likewise.
3812         * modules/unicase/u32-casecmp: Likewise.
3813         * modules/unicase/u32-casecoll: Likewise.
3814         * modules/unicase/u32-casefold: Likewise.
3815         * modules/unicase/u32-casexfrm: Likewise.
3816         * modules/unicase/u32-ct-casefold: Likewise.
3817         * modules/unicase/u32-ct-tolower: Likewise.
3818         * modules/unicase/u32-ct-totitle: Likewise.
3819         * modules/unicase/u32-ct-toupper: Likewise.
3820         * modules/unicase/u32-is-cased: Likewise.
3821         * modules/unicase/u32-is-casefolded: Likewise.
3822         * modules/unicase/u32-is-lowercase: Likewise.
3823         * modules/unicase/u32-is-titlecase: Likewise.
3824         * modules/unicase/u32-is-uppercase: Likewise.
3825         * modules/unicase/u32-prefix-context: Likewise.
3826         * modules/unicase/u32-suffix-context: Likewise.
3827         * modules/unicase/u32-tolower: Likewise.
3828         * modules/unicase/u32-totitle: Likewise.
3829         * modules/unicase/u32-toupper: Likewise.
3830         * modules/unicase/ulc-casecmp: Likewise.
3831         * modules/unicase/ulc-casecoll: Likewise.
3832         * modules/unicase/ulc-casexfrm: Likewise.
3833         * modules/uniconv/u8-conv-from-enc: Likewise.
3834         * modules/uniconv/u8-conv-to-enc: Likewise.
3835         * modules/uniconv/u8-strconv-from-enc: Likewise.
3836         * modules/uniconv/u8-strconv-from-locale: Likewise.
3837         * modules/uniconv/u8-strconv-to-enc: Likewise.
3838         * modules/uniconv/u8-strconv-to-locale: Likewise.
3839         * modules/uniconv/u16-conv-from-enc: Likewise.
3840         * modules/uniconv/u16-conv-to-enc: Likewise.
3841         * modules/uniconv/u16-strconv-from-enc: Likewise.
3842         * modules/uniconv/u16-strconv-from-locale: Likewise.
3843         * modules/uniconv/u16-strconv-to-enc: Likewise.
3844         * modules/uniconv/u16-strconv-to-locale: Likewise.
3845         * modules/uniconv/u32-conv-from-enc: Likewise.
3846         * modules/uniconv/u32-conv-to-enc: Likewise.
3847         * modules/uniconv/u32-strconv-from-enc: Likewise.
3848         * modules/uniconv/u32-strconv-from-locale: Likewise.
3849         * modules/uniconv/u32-strconv-to-enc: Likewise.
3850         * modules/uniconv/u32-strconv-to-locale: Likewise.
3851         * modules/unictype/bidicategory-byname: Likewise.
3852         * modules/unictype/bidicategory-name: Likewise.
3853         * modules/unictype/bidicategory-of: Likewise.
3854         * modules/unictype/bidicategory-test: Likewise.
3855         * modules/unictype/block-list: Likewise.
3856         * modules/unictype/block-test: Likewise.
3857         * modules/unictype/category-C: Likewise.
3858         * modules/unictype/category-Cc: Likewise.
3859         * modules/unictype/category-Cf: Likewise.
3860         * modules/unictype/category-Cn: Likewise.
3861         * modules/unictype/category-Co: Likewise.
3862         * modules/unictype/category-Cs: Likewise.
3863         * modules/unictype/category-L: Likewise.
3864         * modules/unictype/category-Ll: Likewise.
3865         * modules/unictype/category-Lm: Likewise.
3866         * modules/unictype/category-Lo: Likewise.
3867         * modules/unictype/category-Lt: Likewise.
3868         * modules/unictype/category-Lu: Likewise.
3869         * modules/unictype/category-M: Likewise.
3870         * modules/unictype/category-Mc: Likewise.
3871         * modules/unictype/category-Me: Likewise.
3872         * modules/unictype/category-Mn: Likewise.
3873         * modules/unictype/category-N: Likewise.
3874         * modules/unictype/category-Nd: Likewise.
3875         * modules/unictype/category-Nl: Likewise.
3876         * modules/unictype/category-No: Likewise.
3877         * modules/unictype/category-P: Likewise.
3878         * modules/unictype/category-Pc: Likewise.
3879         * modules/unictype/category-Pd: Likewise.
3880         * modules/unictype/category-Pe: Likewise.
3881         * modules/unictype/category-Pf: Likewise.
3882         * modules/unictype/category-Pi: Likewise.
3883         * modules/unictype/category-Po: Likewise.
3884         * modules/unictype/category-Ps: Likewise.
3885         * modules/unictype/category-S: Likewise.
3886         * modules/unictype/category-Sc: Likewise.
3887         * modules/unictype/category-Sk: Likewise.
3888         * modules/unictype/category-Sm: Likewise.
3889         * modules/unictype/category-So: Likewise.
3890         * modules/unictype/category-Z: Likewise.
3891         * modules/unictype/category-Zl: Likewise.
3892         * modules/unictype/category-Zp: Likewise.
3893         * modules/unictype/category-Zs: Likewise.
3894         * modules/unictype/category-and: Likewise.
3895         * modules/unictype/category-and-not: Likewise.
3896         * modules/unictype/category-byname: Likewise.
3897         * modules/unictype/category-name: Likewise.
3898         * modules/unictype/category-none: Likewise.
3899         * modules/unictype/category-of: Likewise.
3900         * modules/unictype/category-or: Likewise.
3901         * modules/unictype/category-test: Likewise.
3902         * modules/unictype/combining-class: Likewise.
3903         * modules/unictype/ctype-alnum: Likewise.
3904         * modules/unictype/ctype-alpha: Likewise.
3905         * modules/unictype/ctype-blank: Likewise.
3906         * modules/unictype/ctype-cntrl: Likewise.
3907         * modules/unictype/ctype-digit: Likewise.
3908         * modules/unictype/ctype-graph: Likewise.
3909         * modules/unictype/ctype-lower: Likewise.
3910         * modules/unictype/ctype-print: Likewise.
3911         * modules/unictype/ctype-punct: Likewise.
3912         * modules/unictype/ctype-space: Likewise.
3913         * modules/unictype/ctype-upper: Likewise.
3914         * modules/unictype/ctype-xdigit: Likewise.
3915         * modules/unictype/decimal-digit: Likewise.
3916         * modules/unictype/digit: Likewise.
3917         * modules/unictype/mirror: Likewise.
3918         * modules/unictype/numeric: Likewise.
3919         * modules/unictype/property-alphabetic: Likewise.
3920         * modules/unictype/property-ascii-hex-digit: Likewise.
3921         * modules/unictype/property-bidi-arabic-digit: Likewise.
3922         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
3923         * modules/unictype/property-bidi-block-separator: Likewise.
3924         * modules/unictype/property-bidi-boundary-neutral: Likewise.
3925         * modules/unictype/property-bidi-common-separator: Likewise.
3926         * modules/unictype/property-bidi-control: Likewise.
3927         * modules/unictype/property-bidi-embedding-or-override: Likewise.
3928         * modules/unictype/property-bidi-eur-num-separator: Likewise.
3929         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
3930         * modules/unictype/property-bidi-european-digit: Likewise.
3931         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
3932         * modules/unictype/property-bidi-left-to-right: Likewise.
3933         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
3934         * modules/unictype/property-bidi-other-neutral: Likewise.
3935         * modules/unictype/property-bidi-pdf: Likewise.
3936         * modules/unictype/property-bidi-segment-separator: Likewise.
3937         * modules/unictype/property-bidi-whitespace: Likewise.
3938         * modules/unictype/property-byname: Likewise.
3939         * modules/unictype/property-combining: Likewise.
3940         * modules/unictype/property-composite: Likewise.
3941         * modules/unictype/property-currency-symbol: Likewise.
3942         * modules/unictype/property-dash: Likewise.
3943         * modules/unictype/property-decimal-digit: Likewise.
3944         * modules/unictype/property-default-ignorable-code-point: Likewise.
3945         * modules/unictype/property-deprecated: Likewise.
3946         * modules/unictype/property-diacritic: Likewise.
3947         * modules/unictype/property-extender: Likewise.
3948         * modules/unictype/property-format-control: Likewise.
3949         * modules/unictype/property-grapheme-base: Likewise.
3950         * modules/unictype/property-grapheme-extend: Likewise.
3951         * modules/unictype/property-grapheme-link: Likewise.
3952         * modules/unictype/property-hex-digit: Likewise.
3953         * modules/unictype/property-hyphen: Likewise.
3954         * modules/unictype/property-id-continue: Likewise.
3955         * modules/unictype/property-id-start: Likewise.
3956         * modules/unictype/property-ideographic: Likewise.
3957         * modules/unictype/property-ids-binary-operator: Likewise.
3958         * modules/unictype/property-ids-trinary-operator: Likewise.
3959         * modules/unictype/property-ignorable-control: Likewise.
3960         * modules/unictype/property-iso-control: Likewise.
3961         * modules/unictype/property-join-control: Likewise.
3962         * modules/unictype/property-left-of-pair: Likewise.
3963         * modules/unictype/property-line-separator: Likewise.
3964         * modules/unictype/property-logical-order-exception: Likewise.
3965         * modules/unictype/property-lowercase: Likewise.
3966         * modules/unictype/property-math: Likewise.
3967         * modules/unictype/property-non-break: Likewise.
3968         * modules/unictype/property-not-a-character: Likewise.
3969         * modules/unictype/property-numeric: Likewise.
3970         * modules/unictype/property-other-alphabetic: Likewise.
3971         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
3972         * modules/unictype/property-other-grapheme-extend: Likewise.
3973         * modules/unictype/property-other-id-continue: Likewise.
3974         * modules/unictype/property-other-id-start: Likewise.
3975         * modules/unictype/property-other-lowercase: Likewise.
3976         * modules/unictype/property-other-math: Likewise.
3977         * modules/unictype/property-other-uppercase: Likewise.
3978         * modules/unictype/property-paired-punctuation: Likewise.
3979         * modules/unictype/property-paragraph-separator: Likewise.
3980         * modules/unictype/property-pattern-syntax: Likewise.
3981         * modules/unictype/property-pattern-white-space: Likewise.
3982         * modules/unictype/property-private-use: Likewise.
3983         * modules/unictype/property-punctuation: Likewise.
3984         * modules/unictype/property-quotation-mark: Likewise.
3985         * modules/unictype/property-radical: Likewise.
3986         * modules/unictype/property-sentence-terminal: Likewise.
3987         * modules/unictype/property-soft-dotted: Likewise.
3988         * modules/unictype/property-space: Likewise.
3989         * modules/unictype/property-terminal-punctuation: Likewise.
3990         * modules/unictype/property-test: Likewise.
3991         * modules/unictype/property-titlecase: Likewise.
3992         * modules/unictype/property-unassigned-code-value: Likewise.
3993         * modules/unictype/property-unified-ideograph: Likewise.
3994         * modules/unictype/property-uppercase: Likewise.
3995         * modules/unictype/property-variation-selector: Likewise.
3996         * modules/unictype/property-white-space: Likewise.
3997         * modules/unictype/property-xid-continue: Likewise.
3998         * modules/unictype/property-xid-start: Likewise.
3999         * modules/unictype/property-zero-width: Likewise.
4000         * modules/unictype/scripts: Likewise.
4001         * modules/unictype/syntax-c-ident: Likewise.
4002         * modules/unictype/syntax-c-whitespace: Likewise.
4003         * modules/unictype/syntax-java-ident: Likewise.
4004         * modules/unictype/syntax-java-whitespace: Likewise.
4005         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4006         * modules/unilbrk/u8-width-linebreaks: Likewise.
4007         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4008         * modules/unilbrk/u16-width-linebreaks: Likewise.
4009         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4010         * modules/unilbrk/u32-width-linebreaks: Likewise.
4011         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4012         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4013         * modules/uniname/uniname: Likewise.
4014         * modules/uninorm/canonical-decomposition: Likewise.
4015         * modules/uninorm/composition: Likewise.
4016         * modules/uninorm/decomposing-form: Likewise.
4017         * modules/uninorm/decomposition: Likewise.
4018         * modules/uninorm/filter: Likewise.
4019         * modules/uninorm/nfc: Likewise.
4020         * modules/uninorm/nfd: Likewise.
4021         * modules/uninorm/nfkc: Likewise.
4022         * modules/uninorm/nfkd: Likewise.
4023         * modules/uninorm/u8-normalize: Likewise.
4024         * modules/uninorm/u8-normcmp: Likewise.
4025         * modules/uninorm/u8-normcoll: Likewise.
4026         * modules/uninorm/u8-normxfrm: Likewise.
4027         * modules/uninorm/u16-normalize: Likewise.
4028         * modules/uninorm/u16-normcmp: Likewise.
4029         * modules/uninorm/u16-normcoll: Likewise.
4030         * modules/uninorm/u16-normxfrm: Likewise.
4031         * modules/uninorm/u32-normalize: Likewise.
4032         * modules/uninorm/u32-normcmp: Likewise.
4033         * modules/uninorm/u32-normcoll: Likewise.
4034         * modules/uninorm/u32-normxfrm: Likewise.
4035         * modules/unistdio/u8-asnprintf: Likewise.
4036         * modules/unistdio/u8-asprintf: Likewise.
4037         * modules/unistdio/u8-snprintf: Likewise.
4038         * modules/unistdio/u8-sprintf: Likewise.
4039         * modules/unistdio/u8-u8-asnprintf: Likewise.
4040         * modules/unistdio/u8-u8-asprintf: Likewise.
4041         * modules/unistdio/u8-u8-snprintf: Likewise.
4042         * modules/unistdio/u8-u8-sprintf: Likewise.
4043         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4044         * modules/unistdio/u8-u8-vasprintf: Likewise.
4045         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4046         * modules/unistdio/u8-u8-vsprintf: Likewise.
4047         * modules/unistdio/u8-vasnprintf: Likewise.
4048         * modules/unistdio/u8-vasprintf: Likewise.
4049         * modules/unistdio/u8-vsnprintf: Likewise.
4050         * modules/unistdio/u8-vsprintf: Likewise.
4051         * modules/unistdio/u16-asnprintf: Likewise.
4052         * modules/unistdio/u16-asprintf: Likewise.
4053         * modules/unistdio/u16-snprintf: Likewise.
4054         * modules/unistdio/u16-sprintf: Likewise.
4055         * modules/unistdio/u16-u16-asnprintf: Likewise.
4056         * modules/unistdio/u16-u16-asprintf: Likewise.
4057         * modules/unistdio/u16-u16-snprintf: Likewise.
4058         * modules/unistdio/u16-u16-sprintf: Likewise.
4059         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4060         * modules/unistdio/u16-u16-vasprintf: Likewise.
4061         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4062         * modules/unistdio/u16-u16-vsprintf: Likewise.
4063         * modules/unistdio/u16-vasnprintf: Likewise.
4064         * modules/unistdio/u16-vasprintf: Likewise.
4065         * modules/unistdio/u16-vsnprintf: Likewise.
4066         * modules/unistdio/u16-vsprintf: Likewise.
4067         * modules/unistdio/u32-asnprintf: Likewise.
4068         * modules/unistdio/u32-asprintf: Likewise.
4069         * modules/unistdio/u32-snprintf: Likewise.
4070         * modules/unistdio/u32-sprintf: Likewise.
4071         * modules/unistdio/u32-u32-asnprintf: Likewise.
4072         * modules/unistdio/u32-u32-asprintf: Likewise.
4073         * modules/unistdio/u32-u32-snprintf: Likewise.
4074         * modules/unistdio/u32-u32-sprintf: Likewise.
4075         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4076         * modules/unistdio/u32-u32-vasprintf: Likewise.
4077         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4078         * modules/unistdio/u32-u32-vsprintf: Likewise.
4079         * modules/unistdio/u32-vasnprintf: Likewise.
4080         * modules/unistdio/u32-vasprintf: Likewise.
4081         * modules/unistdio/u32-vsnprintf: Likewise.
4082         * modules/unistdio/u32-vsprintf: Likewise.
4083         * modules/unistdio/ulc-asnprintf: Likewise.
4084         * modules/unistdio/ulc-asprintf: Likewise.
4085         * modules/unistdio/ulc-fprintf: Likewise.
4086         * modules/unistdio/ulc-snprintf: Likewise.
4087         * modules/unistdio/ulc-sprintf: Likewise.
4088         * modules/unistdio/ulc-vasnprintf: Likewise.
4089         * modules/unistdio/ulc-vasprintf: Likewise.
4090         * modules/unistdio/ulc-vfprintf: Likewise.
4091         * modules/unistdio/ulc-vsnprintf: Likewise.
4092         * modules/unistdio/ulc-vsprintf: Likewise.
4093         * modules/unistr/u8-check: Likewise.
4094         * modules/unistr/u8-chr: Likewise.
4095         * modules/unistr/u8-cmp: Likewise.
4096         * modules/unistr/u8-cmp2: Likewise.
4097         * modules/unistr/u8-cpy: Likewise.
4098         * modules/unistr/u8-cpy-alloc: Likewise.
4099         * modules/unistr/u8-endswith: Likewise.
4100         * modules/unistr/u8-mblen: Likewise.
4101         * modules/unistr/u8-mbsnlen: Likewise.
4102         * modules/unistr/u8-mbtouc: Likewise.
4103         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4104         * modules/unistr/u8-mbtoucr: Likewise.
4105         * modules/unistr/u8-move: Likewise.
4106         * modules/unistr/u8-next: Likewise.
4107         * modules/unistr/u8-prev: Likewise.
4108         * modules/unistr/u8-set: Likewise.
4109         * modules/unistr/u8-startswith: Likewise.
4110         * modules/unistr/u8-stpcpy: Likewise.
4111         * modules/unistr/u8-stpncpy: Likewise.
4112         * modules/unistr/u8-strcat: Likewise.
4113         * modules/unistr/u8-strchr: Likewise.
4114         * modules/unistr/u8-strcmp: Likewise.
4115         * modules/unistr/u8-strcoll: Likewise.
4116         * modules/unistr/u8-strcpy: Likewise.
4117         * modules/unistr/u8-strcspn: Likewise.
4118         * modules/unistr/u8-strdup: Likewise.
4119         * modules/unistr/u8-strlen: Likewise.
4120         * modules/unistr/u8-strmblen: Likewise.
4121         * modules/unistr/u8-strmbtouc: Likewise.
4122         * modules/unistr/u8-strncat: Likewise.
4123         * modules/unistr/u8-strncmp: Likewise.
4124         * modules/unistr/u8-strncpy: Likewise.
4125         * modules/unistr/u8-strnlen: Likewise.
4126         * modules/unistr/u8-strpbrk: Likewise.
4127         * modules/unistr/u8-strrchr: Likewise.
4128         * modules/unistr/u8-strspn: Likewise.
4129         * modules/unistr/u8-strstr: Likewise.
4130         * modules/unistr/u8-strtok: Likewise.
4131         * modules/unistr/u8-to-u16: Likewise.
4132         * modules/unistr/u8-to-u32: Likewise.
4133         * modules/unistr/u8-uctomb: Likewise.
4134         * modules/unistr/u16-check: Likewise.
4135         * modules/unistr/u16-chr: Likewise.
4136         * modules/unistr/u16-cmp: Likewise.
4137         * modules/unistr/u16-cmp2: Likewise.
4138         * modules/unistr/u16-cpy: Likewise.
4139         * modules/unistr/u16-cpy-alloc: Likewise.
4140         * modules/unistr/u16-endswith: Likewise.
4141         * modules/unistr/u16-mblen: Likewise.
4142         * modules/unistr/u16-mbsnlen: Likewise.
4143         * modules/unistr/u16-mbtouc: Likewise.
4144         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4145         * modules/unistr/u16-mbtoucr: Likewise.
4146         * modules/unistr/u16-move: Likewise.
4147         * modules/unistr/u16-next: Likewise.
4148         * modules/unistr/u16-prev: Likewise.
4149         * modules/unistr/u16-set: Likewise.
4150         * modules/unistr/u16-startswith: Likewise.
4151         * modules/unistr/u16-stpcpy: Likewise.
4152         * modules/unistr/u16-stpncpy: Likewise.
4153         * modules/unistr/u16-strcat: Likewise.
4154         * modules/unistr/u16-strchr: Likewise.
4155         * modules/unistr/u16-strcmp: Likewise.
4156         * modules/unistr/u16-strcoll: Likewise.
4157         * modules/unistr/u16-strcpy: Likewise.
4158         * modules/unistr/u16-strcspn: Likewise.
4159         * modules/unistr/u16-strdup: Likewise.
4160         * modules/unistr/u16-strlen: Likewise.
4161         * modules/unistr/u16-strmblen: Likewise.
4162         * modules/unistr/u16-strmbtouc: Likewise.
4163         * modules/unistr/u16-strncat: Likewise.
4164         * modules/unistr/u16-strncmp: Likewise.
4165         * modules/unistr/u16-strncpy: Likewise.
4166         * modules/unistr/u16-strnlen: Likewise.
4167         * modules/unistr/u16-strpbrk: Likewise.
4168         * modules/unistr/u16-strrchr: Likewise.
4169         * modules/unistr/u16-strspn: Likewise.
4170         * modules/unistr/u16-strstr: Likewise.
4171         * modules/unistr/u16-strtok: Likewise.
4172         * modules/unistr/u16-to-u32: Likewise.
4173         * modules/unistr/u16-to-u8: Likewise.
4174         * modules/unistr/u16-uctomb: Likewise.
4175         * modules/unistr/u32-check: Likewise.
4176         * modules/unistr/u32-chr: Likewise.
4177         * modules/unistr/u32-cmp: Likewise.
4178         * modules/unistr/u32-cmp2: Likewise.
4179         * modules/unistr/u32-cpy: Likewise.
4180         * modules/unistr/u32-cpy-alloc: Likewise.
4181         * modules/unistr/u32-endswith: Likewise.
4182         * modules/unistr/u32-mblen: Likewise.
4183         * modules/unistr/u32-mbsnlen: Likewise.
4184         * modules/unistr/u32-mbtouc: Likewise.
4185         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4186         * modules/unistr/u32-mbtoucr: Likewise.
4187         * modules/unistr/u32-move: Likewise.
4188         * modules/unistr/u32-next: Likewise.
4189         * modules/unistr/u32-prev: Likewise.
4190         * modules/unistr/u32-set: Likewise.
4191         * modules/unistr/u32-startswith: Likewise.
4192         * modules/unistr/u32-stpcpy: Likewise.
4193         * modules/unistr/u32-stpncpy: Likewise.
4194         * modules/unistr/u32-strcat: Likewise.
4195         * modules/unistr/u32-strchr: Likewise.
4196         * modules/unistr/u32-strcmp: Likewise.
4197         * modules/unistr/u32-strcoll: Likewise.
4198         * modules/unistr/u32-strcpy: Likewise.
4199         * modules/unistr/u32-strcspn: Likewise.
4200         * modules/unistr/u32-strdup: Likewise.
4201         * modules/unistr/u32-strlen: Likewise.
4202         * modules/unistr/u32-strmblen: Likewise.
4203         * modules/unistr/u32-strmbtouc: Likewise.
4204         * modules/unistr/u32-strncat: Likewise.
4205         * modules/unistr/u32-strncmp: Likewise.
4206         * modules/unistr/u32-strncpy: Likewise.
4207         * modules/unistr/u32-strnlen: Likewise.
4208         * modules/unistr/u32-strpbrk: Likewise.
4209         * modules/unistr/u32-strrchr: Likewise.
4210         * modules/unistr/u32-strspn: Likewise.
4211         * modules/unistr/u32-strstr: Likewise.
4212         * modules/unistr/u32-strtok: Likewise.
4213         * modules/unistr/u32-to-u16: Likewise.
4214         * modules/unistr/u32-to-u8: Likewise.
4215         * modules/unistr/u32-uctomb: Likewise.
4216         * modules/uniwbrk/u8-wordbreaks: Likewise.
4217         * modules/uniwbrk/u16-wordbreaks: Likewise.
4218         * modules/uniwbrk/u32-wordbreaks: Likewise.
4219         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4220         * modules/uniwbrk/wordbreak-property: Likewise.
4221         * modules/uniwidth/u8-strwidth: Likewise.
4222         * modules/uniwidth/u8-width: Likewise.
4223         * modules/uniwidth/u16-strwidth: Likewise.
4224         * modules/uniwidth/u16-width: Likewise.
4225         * modules/uniwidth/u32-strwidth: Likewise.
4226         * modules/uniwidth/u32-width: Likewise.
4227         * modules/uniwidth/width: Likewise.
4228         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4229         with $(LIBUNISTRING).
4230         * modules/unicase/ignorable-tests: Likewise.
4231         * modules/unicase/locale-language-tests: Likewise.
4232         * modules/unicase/tolower-tests: Likewise.
4233         * modules/unicase/totitle-tests: Likewise.
4234         * modules/unicase/toupper-tests: Likewise.
4235         * modules/unicase/u8-casecmp-tests: Likewise.
4236         * modules/unicase/u8-casecoll-tests: Likewise.
4237         * modules/unicase/u8-casefold-tests: Likewise.
4238         * modules/unicase/u8-is-cased-tests: Likewise.
4239         * modules/unicase/u8-is-casefolded-tests: Likewise.
4240         * modules/unicase/u8-is-lowercase-tests: Likewise.
4241         * modules/unicase/u8-is-titlecase-tests: Likewise.
4242         * modules/unicase/u8-is-uppercase-tests: Likewise.
4243         * modules/unicase/u8-tolower-tests: Likewise.
4244         * modules/unicase/u8-totitle-tests: Likewise.
4245         * modules/unicase/u8-toupper-tests: Likewise.
4246         * modules/unicase/u16-casecmp-tests: Likewise.
4247         * modules/unicase/u16-casecoll-tests: Likewise.
4248         * modules/unicase/u16-casefold-tests: Likewise.
4249         * modules/unicase/u16-is-cased-tests: Likewise.
4250         * modules/unicase/u16-is-casefolded-tests: Likewise.
4251         * modules/unicase/u16-is-lowercase-tests: Likewise.
4252         * modules/unicase/u16-is-titlecase-tests: Likewise.
4253         * modules/unicase/u16-is-uppercase-tests: Likewise.
4254         * modules/unicase/u16-tolower-tests: Likewise.
4255         * modules/unicase/u16-totitle-tests: Likewise.
4256         * modules/unicase/u16-toupper-tests: Likewise.
4257         * modules/unicase/u32-casecmp-tests: Likewise.
4258         * modules/unicase/u32-casecoll-tests: Likewise.
4259         * modules/unicase/u32-casefold-tests: Likewise.
4260         * modules/unicase/u32-is-cased-tests: Likewise.
4261         * modules/unicase/u32-is-casefolded-tests: Likewise.
4262         * modules/unicase/u32-is-lowercase-tests: Likewise.
4263         * modules/unicase/u32-is-titlecase-tests: Likewise.
4264         * modules/unicase/u32-is-uppercase-tests: Likewise.
4265         * modules/unicase/u32-tolower-tests: Likewise.
4266         * modules/unicase/u32-totitle-tests: Likewise.
4267         * modules/unicase/u32-toupper-tests: Likewise.
4268         * modules/unicase/ulc-casecmp-tests: Likewise.
4269         * modules/unicase/ulc-casecoll-tests: Likewise.
4270         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
4271         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
4272         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
4273         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
4274         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
4275         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
4276         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
4277         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
4278         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
4279         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
4280         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
4281         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
4282         * modules/unictype/bidicategory-byname-tests: Likewise.
4283         * modules/unictype/bidicategory-name-tests: Likewise.
4284         * modules/unictype/bidicategory-of-tests: Likewise.
4285         * modules/unictype/bidicategory-test-tests: Likewise.
4286         * modules/unictype/block-list-tests: Likewise.
4287         * modules/unictype/block-of-tests: Likewise.
4288         * modules/unictype/block-test-tests: Likewise.
4289         * modules/unictype/category-C-tests: Likewise.
4290         * modules/unictype/category-Cc-tests: Likewise.
4291         * modules/unictype/category-Cf-tests: Likewise.
4292         * modules/unictype/category-Cn-tests: Likewise.
4293         * modules/unictype/category-Co-tests: Likewise.
4294         * modules/unictype/category-Cs-tests: Likewise.
4295         * modules/unictype/category-L-tests: Likewise.
4296         * modules/unictype/category-Ll-tests: Likewise.
4297         * modules/unictype/category-Lm-tests: Likewise.
4298         * modules/unictype/category-Lo-tests: Likewise.
4299         * modules/unictype/category-Lt-tests: Likewise.
4300         * modules/unictype/category-Lu-tests: Likewise.
4301         * modules/unictype/category-M-tests: Likewise.
4302         * modules/unictype/category-Mc-tests: Likewise.
4303         * modules/unictype/category-Me-tests: Likewise.
4304         * modules/unictype/category-Mn-tests: Likewise.
4305         * modules/unictype/category-N-tests: Likewise.
4306         * modules/unictype/category-Nd-tests: Likewise.
4307         * modules/unictype/category-Nl-tests: Likewise.
4308         * modules/unictype/category-No-tests: Likewise.
4309         * modules/unictype/category-P-tests: Likewise.
4310         * modules/unictype/category-Pc-tests: Likewise.
4311         * modules/unictype/category-Pd-tests: Likewise.
4312         * modules/unictype/category-Pe-tests: Likewise.
4313         * modules/unictype/category-Pf-tests: Likewise.
4314         * modules/unictype/category-Pi-tests: Likewise.
4315         * modules/unictype/category-Po-tests: Likewise.
4316         * modules/unictype/category-Ps-tests: Likewise.
4317         * modules/unictype/category-S-tests: Likewise.
4318         * modules/unictype/category-Sc-tests: Likewise.
4319         * modules/unictype/category-Sk-tests: Likewise.
4320         * modules/unictype/category-Sm-tests: Likewise.
4321         * modules/unictype/category-So-tests: Likewise.
4322         * modules/unictype/category-Z-tests: Likewise.
4323         * modules/unictype/category-Zl-tests: Likewise.
4324         * modules/unictype/category-Zp-tests: Likewise.
4325         * modules/unictype/category-Zs-tests: Likewise.
4326         * modules/unictype/category-and-not-tests: Likewise.
4327         * modules/unictype/category-and-tests: Likewise.
4328         * modules/unictype/category-byname-tests: Likewise.
4329         * modules/unictype/category-name-tests: Likewise.
4330         * modules/unictype/category-none-tests: Likewise.
4331         * modules/unictype/category-of-tests: Likewise.
4332         * modules/unictype/category-or-tests: Likewise.
4333         * modules/unictype/category-test-withtable-tests: Likewise.
4334         * modules/unictype/combining-class-tests: Likewise.
4335         * modules/unictype/ctype-alnum-tests: Likewise.
4336         * modules/unictype/ctype-alpha-tests: Likewise.
4337         * modules/unictype/ctype-blank-tests: Likewise.
4338         * modules/unictype/ctype-cntrl-tests: Likewise.
4339         * modules/unictype/ctype-digit-tests: Likewise.
4340         * modules/unictype/ctype-graph-tests: Likewise.
4341         * modules/unictype/ctype-lower-tests: Likewise.
4342         * modules/unictype/ctype-print-tests: Likewise.
4343         * modules/unictype/ctype-punct-tests: Likewise.
4344         * modules/unictype/ctype-space-tests: Likewise.
4345         * modules/unictype/ctype-upper-tests: Likewise.
4346         * modules/unictype/ctype-xdigit-tests: Likewise.
4347         * modules/unictype/decimal-digit-tests: Likewise.
4348         * modules/unictype/digit-tests: Likewise.
4349         * modules/unictype/mirror-tests: Likewise.
4350         * modules/unictype/numeric-tests: Likewise.
4351         * modules/unictype/property-alphabetic-tests: Likewise.
4352         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4353         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4354         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4355         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4356         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4357         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4358         * modules/unictype/property-bidi-control-tests: Likewise.
4359         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4360         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4361         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4362         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4363         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4364         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4365         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4366         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4367         * modules/unictype/property-bidi-pdf-tests: Likewise.
4368         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4369         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4370         * modules/unictype/property-byname-tests: Likewise.
4371         * modules/unictype/property-combining-tests: Likewise.
4372         * modules/unictype/property-composite-tests: Likewise.
4373         * modules/unictype/property-currency-symbol-tests: Likewise.
4374         * modules/unictype/property-dash-tests: Likewise.
4375         * modules/unictype/property-decimal-digit-tests: Likewise.
4376         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4377         * modules/unictype/property-deprecated-tests: Likewise.
4378         * modules/unictype/property-diacritic-tests: Likewise.
4379         * modules/unictype/property-extender-tests: Likewise.
4380         * modules/unictype/property-format-control-tests: Likewise.
4381         * modules/unictype/property-grapheme-base-tests: Likewise.
4382         * modules/unictype/property-grapheme-extend-tests: Likewise.
4383         * modules/unictype/property-grapheme-link-tests: Likewise.
4384         * modules/unictype/property-hex-digit-tests: Likewise.
4385         * modules/unictype/property-hyphen-tests: Likewise.
4386         * modules/unictype/property-id-continue-tests: Likewise.
4387         * modules/unictype/property-id-start-tests: Likewise.
4388         * modules/unictype/property-ideographic-tests: Likewise.
4389         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4390         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4391         * modules/unictype/property-ignorable-control-tests: Likewise.
4392         * modules/unictype/property-iso-control-tests: Likewise.
4393         * modules/unictype/property-join-control-tests: Likewise.
4394         * modules/unictype/property-left-of-pair-tests: Likewise.
4395         * modules/unictype/property-line-separator-tests: Likewise.
4396         * modules/unictype/property-logical-order-exception-tests: Likewise.
4397         * modules/unictype/property-lowercase-tests: Likewise.
4398         * modules/unictype/property-math-tests: Likewise.
4399         * modules/unictype/property-non-break-tests: Likewise.
4400         * modules/unictype/property-not-a-character-tests: Likewise.
4401         * modules/unictype/property-numeric-tests: Likewise.
4402         * modules/unictype/property-other-alphabetic-tests: Likewise.
4403         * modules/unictype/property-other-default-ignorable-code-point-tests:
4404         Likewise.
4405         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4406         * modules/unictype/property-other-id-continue-tests: Likewise.
4407         * modules/unictype/property-other-id-start-tests: Likewise.
4408         * modules/unictype/property-other-lowercase-tests: Likewise.
4409         * modules/unictype/property-other-math-tests: Likewise.
4410         * modules/unictype/property-other-uppercase-tests: Likewise.
4411         * modules/unictype/property-paired-punctuation-tests: Likewise.
4412         * modules/unictype/property-paragraph-separator-tests: Likewise.
4413         * modules/unictype/property-pattern-syntax-tests: Likewise.
4414         * modules/unictype/property-pattern-white-space-tests: Likewise.
4415         * modules/unictype/property-private-use-tests: Likewise.
4416         * modules/unictype/property-punctuation-tests: Likewise.
4417         * modules/unictype/property-quotation-mark-tests: Likewise.
4418         * modules/unictype/property-radical-tests: Likewise.
4419         * modules/unictype/property-sentence-terminal-tests: Likewise.
4420         * modules/unictype/property-soft-dotted-tests: Likewise.
4421         * modules/unictype/property-space-tests: Likewise.
4422         * modules/unictype/property-terminal-punctuation-tests: Likewise.
4423         * modules/unictype/property-test-tests: Likewise.
4424         * modules/unictype/property-titlecase-tests: Likewise.
4425         * modules/unictype/property-unassigned-code-value-tests: Likewise.
4426         * modules/unictype/property-unified-ideograph-tests: Likewise.
4427         * modules/unictype/property-uppercase-tests: Likewise.
4428         * modules/unictype/property-variation-selector-tests: Likewise.
4429         * modules/unictype/property-white-space-tests: Likewise.
4430         * modules/unictype/property-xid-continue-tests: Likewise.
4431         * modules/unictype/property-xid-start-tests: Likewise.
4432         * modules/unictype/property-zero-width-tests: Likewise.
4433         * modules/unictype/scripts-tests: Likewise.
4434         * modules/unictype/syntax-c-ident-tests: Likewise.
4435         * modules/unictype/syntax-c-whitespace-tests: Likewise.
4436         * modules/unictype/syntax-java-ident-tests: Likewise.
4437         * modules/unictype/syntax-java-whitespace-tests: Likewise.
4438         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
4439         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
4440         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
4441         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
4442         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
4443         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
4444         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
4445         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
4446         * modules/uniname/uniname-tests: Likewise.
4447         * modules/uninorm/canonical-decomposition-tests: Likewise.
4448         * modules/uninorm/compat-decomposition-tests: Likewise.
4449         * modules/uninorm/composition-tests: Likewise.
4450         * modules/uninorm/decomposing-form-tests: Likewise.
4451         * modules/uninorm/decomposition-tests: Likewise.
4452         * modules/uninorm/filter-tests: Likewise.
4453         * modules/uninorm/nfc-tests: Likewise.
4454         * modules/uninorm/nfd-tests: Likewise.
4455         * modules/uninorm/nfkc-tests: Likewise.
4456         * modules/uninorm/nfkd-tests: Likewise.
4457         * modules/uninorm/u8-normcmp-tests: Likewise.
4458         * modules/uninorm/u8-normcoll-tests: Likewise.
4459         * modules/uninorm/u16-normcmp-tests: Likewise.
4460         * modules/uninorm/u16-normcoll-tests: Likewise.
4461         * modules/uninorm/u32-normcmp-tests: Likewise.
4462         * modules/uninorm/u32-normcoll-tests: Likewise.
4463         * modules/unistdio/u8-asnprintf-tests: Likewise.
4464         * modules/unistdio/u8-vasnprintf-tests: Likewise.
4465         * modules/unistdio/u8-vasprintf-tests: Likewise.
4466         * modules/unistdio/u8-vsnprintf-tests: Likewise.
4467         * modules/unistdio/u8-vsprintf-tests: Likewise.
4468         * modules/unistdio/u16-asnprintf-tests: Likewise.
4469         * modules/unistdio/u16-vasnprintf-tests: Likewise.
4470         * modules/unistdio/u16-vasprintf-tests: Likewise.
4471         * modules/unistdio/u16-vsnprintf-tests: Likewise.
4472         * modules/unistdio/u16-vsprintf-tests: Likewise.
4473         * modules/unistdio/u32-asnprintf-tests: Likewise.
4474         * modules/unistdio/u32-vasnprintf-tests: Likewise.
4475         * modules/unistdio/u32-vasprintf-tests: Likewise.
4476         * modules/unistdio/u32-vsnprintf-tests: Likewise.
4477         * modules/unistdio/u32-vsprintf-tests: Likewise.
4478         * modules/unistdio/ulc-asnprintf-tests: Likewise.
4479         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
4480         * modules/unistdio/ulc-vasprintf-tests: Likewise.
4481         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
4482         * modules/unistdio/ulc-vsprintf-tests: Likewise.
4483         * modules/unistr/u8-check-tests: Likewise.
4484         * modules/unistr/u8-chr-tests: Likewise.
4485         * modules/unistr/u8-cmp-tests: Likewise.
4486         * modules/unistr/u8-cmp2-tests: Likewise.
4487         * modules/unistr/u8-cpy-alloc-tests: Likewise.
4488         * modules/unistr/u8-cpy-tests: Likewise.
4489         * modules/unistr/u8-mblen-tests: Likewise.
4490         * modules/unistr/u8-mbsnlen-tests: Likewise.
4491         * modules/unistr/u8-mbtouc-tests: Likewise.
4492         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
4493         * modules/unistr/u8-mbtoucr-tests: Likewise.
4494         * modules/unistr/u8-move-tests: Likewise.
4495         * modules/unistr/u8-next-tests: Likewise.
4496         * modules/unistr/u8-prev-tests: Likewise.
4497         * modules/unistr/u8-set-tests: Likewise.
4498         * modules/unistr/u8-stpcpy-tests: Likewise.
4499         * modules/unistr/u8-stpncpy-tests: Likewise.
4500         * modules/unistr/u8-strcat-tests: Likewise.
4501         * modules/unistr/u8-strcmp-tests: Likewise.
4502         * modules/unistr/u8-strcoll-tests: Likewise.
4503         * modules/unistr/u8-strcpy-tests: Likewise.
4504         * modules/unistr/u8-strdup-tests: Likewise.
4505         * modules/unistr/u8-strlen-tests: Likewise.
4506         * modules/unistr/u8-strmblen-tests: Likewise.
4507         * modules/unistr/u8-strmbtouc-tests: Likewise.
4508         * modules/unistr/u8-strncat-tests: Likewise.
4509         * modules/unistr/u8-strncmp-tests: Likewise.
4510         * modules/unistr/u8-strncpy-tests: Likewise.
4511         * modules/unistr/u8-strnlen-tests: Likewise.
4512         * modules/unistr/u8-to-u16-tests: Likewise.
4513         * modules/unistr/u8-to-u32-tests: Likewise.
4514         * modules/unistr/u8-uctomb-tests: Likewise.
4515         * modules/unistr/u16-check-tests: Likewise.
4516         * modules/unistr/u16-chr-tests: Likewise.
4517         * modules/unistr/u16-cmp-tests: Likewise.
4518         * modules/unistr/u16-cmp2-tests: Likewise.
4519         * modules/unistr/u16-cpy-alloc-tests: Likewise.
4520         * modules/unistr/u16-cpy-tests: Likewise.
4521         * modules/unistr/u16-mblen-tests: Likewise.
4522         * modules/unistr/u16-mbsnlen-tests: Likewise.
4523         * modules/unistr/u16-mbtouc-tests: Likewise.
4524         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
4525         * modules/unistr/u16-mbtoucr-tests: Likewise.
4526         * modules/unistr/u16-move-tests: Likewise.
4527         * modules/unistr/u16-next-tests: Likewise.
4528         * modules/unistr/u16-prev-tests: Likewise.
4529         * modules/unistr/u16-set-tests: Likewise.
4530         * modules/unistr/u16-stpcpy-tests: Likewise.
4531         * modules/unistr/u16-stpncpy-tests: Likewise.
4532         * modules/unistr/u16-strcat-tests: Likewise.
4533         * modules/unistr/u16-strcmp-tests: Likewise.
4534         * modules/unistr/u16-strcoll-tests: Likewise.
4535         * modules/unistr/u16-strcpy-tests: Likewise.
4536         * modules/unistr/u16-strdup-tests: Likewise.
4537         * modules/unistr/u16-strlen-tests: Likewise.
4538         * modules/unistr/u16-strmblen-tests: Likewise.
4539         * modules/unistr/u16-strmbtouc-tests: Likewise.
4540         * modules/unistr/u16-strncat-tests: Likewise.
4541         * modules/unistr/u16-strncmp-tests: Likewise.
4542         * modules/unistr/u16-strncpy-tests: Likewise.
4543         * modules/unistr/u16-strnlen-tests: Likewise.
4544         * modules/unistr/u16-to-u32-tests: Likewise.
4545         * modules/unistr/u16-to-u8-tests: Likewise.
4546         * modules/unistr/u16-uctomb-tests: Likewise.
4547         * modules/unistr/u32-check-tests: Likewise.
4548         * modules/unistr/u32-chr-tests: Likewise.
4549         * modules/unistr/u32-cmp-tests: Likewise.
4550         * modules/unistr/u32-cmp2-tests: Likewise.
4551         * modules/unistr/u32-cpy-alloc-tests: Likewise.
4552         * modules/unistr/u32-cpy-tests: Likewise.
4553         * modules/unistr/u32-mblen-tests: Likewise.
4554         * modules/unistr/u32-mbsnlen-tests: Likewise.
4555         * modules/unistr/u32-mbtouc-tests: Likewise.
4556         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
4557         * modules/unistr/u32-mbtoucr-tests: Likewise.
4558         * modules/unistr/u32-move-tests: Likewise.
4559         * modules/unistr/u32-next-tests: Likewise.
4560         * modules/unistr/u32-prev-tests: Likewise.
4561         * modules/unistr/u32-set-tests: Likewise.
4562         * modules/unistr/u32-stpcpy-tests: Likewise.
4563         * modules/unistr/u32-stpncpy-tests: Likewise.
4564         * modules/unistr/u32-strcat-tests: Likewise.
4565         * modules/unistr/u32-strcmp-tests: Likewise.
4566         * modules/unistr/u32-strcoll-tests: Likewise.
4567         * modules/unistr/u32-strcpy-tests: Likewise.
4568         * modules/unistr/u32-strdup-tests: Likewise.
4569         * modules/unistr/u32-strlen-tests: Likewise.
4570         * modules/unistr/u32-strmblen-tests: Likewise.
4571         * modules/unistr/u32-strmbtouc-tests: Likewise.
4572         * modules/unistr/u32-strncat-tests: Likewise.
4573         * modules/unistr/u32-strncmp-tests: Likewise.
4574         * modules/unistr/u32-strncpy-tests: Likewise.
4575         * modules/unistr/u32-strnlen-tests: Likewise.
4576         * modules/unistr/u32-to-u16-tests: Likewise.
4577         * modules/unistr/u32-to-u8-tests: Likewise.
4578         * modules/unistr/u32-uctomb-tests: Likewise.
4579         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
4580         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
4581         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
4582         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
4583         * modules/uniwidth/u8-strwidth-tests: Likewise.
4584         * modules/uniwidth/u8-width-tests: Likewise.
4585         * modules/uniwidth/u16-strwidth-tests: Likewise.
4586         * modules/uniwidth/u16-width-tests: Likewise.
4587         * modules/uniwidth/u32-strwidth-tests: Likewise.
4588         * modules/uniwidth/u32-width-tests: Likewise.
4589         * modules/uniwidth/width-tests: Likewise.
4590
4591 2010-05-18  Richard Jones  <rjones@redhat.com>
4592
4593         doc: users.txt: list hivex
4594         * users.txt: Add hivex.
4595
4596 2010-05-18  Richard Jones  <rjones@redhat.com>
4597
4598         doc: users.txt: list febootstrap
4599         * users.txt: Add febootstrap.
4600
4601 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
4602
4603         bootstrap: fix an error when gnulib is not used as a git submodule
4604         * build-aux/bootstrap (gnulib_path): If its length is zero then
4605         assign "gnulib" to it.
4606         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
4607
4608 2010-05-16  Bruno Haible  <bruno@clisp.org>
4609
4610         Avoid autoconf warnings about AM_ICONV.
4611         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
4612         2.64.
4613
4614 2010-05-16  Bruno Haible  <bruno@clisp.org>
4615
4616         absolute-header: Make the macro usable in more situations.
4617         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
4618         from gl_ABSOLUTE_HEADER.
4619         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
4620
4621 2010-05-16  James Youngman  <jay@gnu.org>
4622
4623         doc: update users.txt
4624         * users.txt: Add CSSC.
4625
4626 2010-05-16  Jim Meyering  <meyering@redhat.com>
4627
4628         init.sh: fix an error in the previous change; add more comments
4629         * tests/init.sh: Compare exit code in loop against 9, not 2.
4630         Patch by Bruno Haible.
4631         Make the two tests more similar by adding an empty "then" clause.
4632         Add comments.
4633
4634         init.sh: avoid unnecessary shell re-exec
4635         * tests/init.sh: Improve the re-exec-required check to first test the
4636         current shell.  If it passes the test, do not search for a shell that
4637         does pass, and do not re-exec.  This test is particularly contorted to
4638         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
4639         of $(...) evokes a syntax error and causes immediate shell exit with
4640         status 2.  Bruno Haible reported that the re-exec made it impossible
4641         to single-step through any init.sh-using script.
4642
4643 2010-05-16  Bruno Haible  <bruno@clisp.org>
4644
4645         Fix collision between gnulib's and libintl's printf replacements.
4646         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
4647         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
4648         (printf): When using GNU C, map the __printf__ function to rpl_printf
4649         via __asm__. When not using GNU C, define rpl_printf instead of
4650         __printf__.
4651         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
4652         commit.
4653         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
4654         commit.
4655         * m4/asm-underscore.m4: New file.
4656         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
4657         * modules/stdio (Files): Add m4/asm-underscore.m4.
4658         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
4659         Reported by Ben Pfaff.
4660
4661 2010-05-16  Bruno Haible  <bruno@clisp.org>
4662
4663         verify: Avoid skipping the test on openSUSE 11.0.
4664         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
4665
4666 2010-05-13  Bruno Haible  <bruno@clisp.org>
4667
4668         Avoid useless warnings from G++.
4669         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
4670         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
4671         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4672
4673 2010-05-11  Jim Meyering  <meyering@redhat.com>
4674
4675         maint.mk: tweak preceding change
4676         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
4677         regexps tighter by anchoring at EOL, and make the new group "shy"
4678         for slightly decreased overhead.
4679
4680 2010-05-11  Eric Blake  <eblake@redhat.com>
4681
4682         maint.mk: gnulib doesn't guarantee NSIG
4683         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
4684
4685 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4686
4687         test-pwrite.c: Remove unused variable declaration.
4688         * tests/test-pwrite.c (main): Remove read_buf declaration.
4689
4690         Remove useless test-pwrite.sh file.
4691         * tests/test-pwrite.sh: Delete file.
4692         * modules/pwrite-tests: Remove references.
4693         Reported by Bruno Haible.
4694
4695 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4696
4697         init.sh: fix a typo
4698         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
4699
4700 2010-05-10  Jim Meyering  <meyering@redhat.com>
4701
4702         maint.mk: avoid using a temporary file in the always-defined-macros check
4703         * top/maint.mk (.re-defmac): Remove rule.
4704         (gl_trap_): Remove definition.
4705         (sc_prohibit_always-defined_macros): Rewrite not to create and
4706         depend on a temporary file.  Instead, depend on GNU grep's ability
4707         to read a list of regular expressions from stdin when given "-f -".
4708
4709 2010-05-09  Bruno Haible  <bruno@clisp.org>
4710
4711         Update to GNU gettext 0.18, part 1.
4712         * m4/gettext.m4: Update to GNU gettext 0.18.
4713         * m4/intl.m4: Likewise.
4714         * m4/po.m4: Likewise.
4715         * modules/gettext (Files): Add m4/fcntl-o.m4.
4716         (configure.ac): Require gettext infrastructure from version 0.18.
4717
4718 2010-05-09  Jim Meyering  <meyering@redhat.com>
4719
4720         init.sh: enable MALLOC_PERTURB_
4721         * tests/init.sh: Enable glibc's malloc-perturbing option.
4722
4723         maint.mk: improve sc_cross_check_PATH_usage_in_tests
4724         With my recent change in init.sh from the two-line form:
4725             -#   : ${srcdir=.}
4726             -#   . "$srcdir/init.sh"; path_prepend_ .
4727             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
4728         I noticed that using the one-line form would cause this test
4729         to fail with a false-positive, or to stop working altogether,
4730         depending on whether help-version changed or all the tests did.
4731         * top/maint.mk (_hv_regex): Remove this definition.
4732         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
4733         (_hv_regex_strong): Use a stronger regex to check for conformance.
4734         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
4735         Give a separate diagnostic for lack of conforming use.
4736
4737         maint.mk: prohibit definition of symbols defined by gnulib
4738         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
4739         definition of symbols defined by gnulib.
4740
4741 2010-05-09  Bruno Haible  <bruno@clisp.org>
4742
4743         acl: Avoid test failure on Cygwin-hosted mingw.
4744         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
4745
4746 2010-05-09  Bruno Haible  <bruno@clisp.org>
4747
4748         error: Use system's fcntl function.
4749         * lib/error.c (fcntl): Undefine.
4750
4751 2010-05-09  Jim Meyering  <meyering@redhat.com>
4752
4753         verify: adjust formatting to be more consistent
4754         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
4755         argument-list '('s, and after one comma.
4756
4757 2010-05-09  Bruno Haible  <bruno@clisp.org>
4758
4759         error: More reliable output on mingw.
4760         * lib/error.c: Include <windows.h>.
4761         (is_open): New function.
4762         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
4763         defined.
4764
4765 2010-05-09  Bruno Haible  <bruno@clisp.org>
4766
4767         vasnprintf: Fix syntax errors in libintl build on mingw.
4768         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
4769         pad_ourselves and prec_ourselves after use.
4770
4771 2010-05-08  Bruno Haible  <bruno@clisp.org>
4772
4773         * lib/config.charset: Update comments for Cygwin 1.7.
4774         * lib/localcharset.c: Likewise.
4775
4776 2010-05-07  Jim Meyering  <meyering@redhat.com>
4777
4778         init.sh: improve comments
4779         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
4780         . "${srcdir=.}/init.sh"; path_prepend_ .
4781         Add a note about path_prepend_ and the alternative of using
4782         TESTS_ENVIRONMENT.
4783
4784 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
4785
4786         exclude: Unescape hashed patterns in wildcard mode.
4787         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
4788         to the hash list.
4789         * tests/test-exclude8.sh: New test case.
4790         * modules/exclude-tests: Add new test.
4791
4792 2010-05-05  Eric Blake  <eblake@redhat.com>
4793
4794         verify: automate tests
4795         * modules/verify-tests: New module.
4796         * tests/test-verify.sh: New file.
4797         * tests/test-verify.c: Guard each negative test with a unique id.
4798         Also avoid warning about unused left hand of comma expressions.
4799
4800 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4801
4802         Further improvements to verify.h, suggested by Eric Blake.
4803         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
4804         the GL_* versions, to avoid collision with OpenGL.
4805         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
4806         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
4807         than testing merely whether it's defined.
4808
4809         Modify verify.h to pacify gcc -Wredundant_decls.
4810         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
4811         These use the prefix "GL_" since they're likely to be useful elsewhere.
4812         We may need to break them out into a different .h file.
4813         (__COUNTER__): Define to 0 if the compiler doesn't support it.
4814         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
4815         of verify_function__.
4816
4817 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4818
4819         Tests for module pwrite.
4820         * modules/pwrite-tests: New file.
4821         * tests/test-pwrite.sh: New file.
4822         * tests/test-pwrite.c: New file.
4823
4824         New module pwrite.
4825         * lib/unistd.in.h (pwrite): New declaration.
4826         * lib/pwrite.c: New file, from glibc with modifications.
4827         * m4/pwrite.m4: New file.
4828         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
4829         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
4830         REPLACE_PWRITE.
4831         * modules/pwrite: New file.
4832         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
4833         REPLACE_PWRITE.
4834         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
4835         * doc/posix-functions/pwrite.texi: Mention the new module.
4836
4837 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4838
4839         pread: Update documentation.
4840         * doc/posix-functions/pread.texi: Mention the 'pread' module.
4841
4842 2010-05-04  Eric Blake  <eblake@redhat.com>
4843
4844         docs: update cygwin progress
4845         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
4846         this bug.
4847         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
4848         Added in cygwin 1.7.2.
4849         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
4850         Likewise.
4851         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
4852         Likewise.
4853         * doc/glibc-functions/dup3.texi (dup3): Likewise.
4854         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4855         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4856         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
4857         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
4858         Mention nproc module.
4859         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
4860         bug in cygwin 1.7.5 addition.
4861         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
4862         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
4863         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
4864         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
4865         1.7.5.
4866         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
4867         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
4868         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
4869         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
4870         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
4871         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
4872         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
4873         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
4874         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
4875         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
4876         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
4877         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
4878         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
4879         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
4880         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
4881         Likewise.
4882         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
4883         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
4884         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
4885         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
4886         Likewise.
4887         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
4888         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
4889         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
4890         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
4891         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
4892         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
4893         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
4894         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
4895         Likewise.
4896         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
4897         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
4898         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
4899         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
4900         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
4901         Likewise.
4902         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
4903         Likewise.
4904         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
4905         Likewise.
4906         * doc/glibc-functions/xdrrec_endofrecord.texi
4907         (xdrrec_endofrecord): Likewise.
4908         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
4909         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
4910         Likewise.
4911         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
4912         Likewise.
4913
4914 2010-05-04  Jim Meyering  <meyering@redhat.com>
4915
4916         gendocs.sh: make its "-s FILE" option more useful
4917         * build-aux/gendocs.sh: When honoring the -s FILE option, update
4918         $PACKAGE to reflect the probably-different basename of "FILE".
4919
4920 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
4921
4922         bootstrap: don't ignore download_po_files failure
4923         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
4924         failure.
4925
4926 2010-05-03  Jim Meyering  <meyering@redhat.com>
4927
4928         maint.mk: allow to pass options to gendocs.sh
4929         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
4930         (gendocs_options_): New overridable variable.
4931
4932         gnu-web-doc-update: don't ignore configure or build failure
4933         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
4934
4935         announce-gen: backslash-escape '@'s in --help output
4936         * build-aux/announce-gen: Fix syntax errors.
4937
4938         maint.mk, announce-gen: allow project-specific announcement mail headers
4939         * top/maint.mk (translation_project_): Define default.
4940         (announcement_Cc_, announcement_mail_headers_): Likewise.
4941         (announcement): Invoke announce-gen with new --mail-headers option.
4942         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
4943
4944         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
4945         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
4946         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
4947         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
4948         line in the "err2" output file when running "make check" in verbose
4949         mode (i.e., with set -x enabled).
4950
4951 2010-05-03  Bruno Haible  <bruno@clisp.org>
4952
4953         wctob: Fix for weird platforms.
4954         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
4955         argument value.
4956
4957 2010-05-03  Jim Meyering  <meyering@redhat.com>
4958
4959         maint.mk: prohibit unwarranted use of <strings.h>
4960         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
4961         strings.h in a file that does not also use strcasecmp, strncasecmp,
4962         ffs or ffsll.
4963
4964         maint.mk: remove obsolete comments
4965         * top/maint.mk: Remove stale, commented-out rules.
4966
4967 2010-05-02  Bruno Haible  <bruno@clisp.org>
4968
4969         wcwidth: Declare also when it's aliased.
4970         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
4971         macro.
4972
4973 2010-05-02  Bruno Haible  <bruno@clisp.org>
4974
4975         Fix regression from 2010-04-25.
4976         * gnulib-tool (func_modules_transitive_closure): Check the status of
4977         all modules, not only of the tests that are of the form foo-tests where
4978         foo is a module.
4979
4980 2010-05-02  Bruno Haible  <bruno@clisp.org>
4981
4982         wctob: Work around nasty Cygwin 1.7.2 bug.
4983         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
4984         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
4985
4986 2010-05-01  Bruno Haible  <bruno@clisp.org>
4987
4988         fpurge: Sharper test.
4989         * tests/test-fpurge.c (main): Add one more ftell check.
4990         * modules/fpurge-tests (Depends-on): Add ftell.
4991         Suggested by Eric Blake.
4992
4993 2010-05-01  Bruno Haible  <bruno@clisp.org>
4994
4995         ftello: Another test.
4996         * tests/test-ftello3.c: New file.
4997         * modules/ftello-tests (Files): Add it.
4998         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
4999         MOSTLYCLEANFILES.
5000
5001         ftell: Another test.
5002         * tests/test-ftell3.c: New file.
5003         * modules/ftell-tests (Files): Add it.
5004         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5005         MOSTLYCLEANFILES.
5006
5007 2010-05-01  Bruno Haible  <bruno@clisp.org>
5008
5009         ftell, ftello: Work around Solaris bug.
5010         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5011         * lib/ftello.c: Include stdio-impl.h.
5012         (ftello): On Solaris, when _IOWRT is set, compute the result without
5013         looking at _IOREAD.
5014         * modules/ftello (Files): Add lib/stdio-impl.h.
5015         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5016         * doc/posix-functions/ftello.texi: Likewise.
5017         Reported by Eric Blake.
5018
5019 2010-05-01  Bruno Haible  <bruno@clisp.org>
5020
5021         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5022         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5023         the _IOWRT flag is also set.
5024
5025 2010-05-01  Bruno Haible  <bruno@clisp.org>
5026
5027         Fix doc about a HP-UX stdio bug.
5028         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5029         * doc/posix-functions/ftello.texi: Likewise.
5030
5031 2010-05-01  Bruno Haible  <bruno@clisp.org>
5032
5033         lseek test: Fix failure on Solaris.
5034         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5035         output.
5036
5037 2010-04-30  Jim Meyering  <meyering@redhat.com>
5038
5039         bootstrap: don't ignore failure to generate po*/Makevars
5040         * build-aux/bootstrap (with_gettext): Don't ignore failure
5041         to create po/Makevars or runtime-po/Makevars.
5042
5043 2010-04-29  Eric Blake  <eblake@redhat.com>
5044
5045         headers: relax license to LGPLv2+
5046         * modules/fcntl-h (License): Relax license.
5047         * modules/getopt-posix (License): Likewise.
5048         * modules/locale (License): Likewise.
5049         * modules/math (License): Likewise.
5050         * modules/pty (License): Likewise.
5051         * modules/sched (License): Likewise.
5052         * modules/search (License): Likewise.
5053         * modules/spawn (License): Likewise.
5054         * modules/stdarg (License): Likewise.
5055         * modules/sysexits (License): Likewise.
5056
5057 2010-04-29  Jim Meyering  <meyering@redhat.com>
5058
5059         inttypes: relax license to LGPLv2+
5060         * modules/inttypes (License): Relax license.
5061
5062 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5063
5064         * top/maint.mk (indent): Run twice to produce idempotent results.
5065
5066 2010-04-28  Bruno Haible  <bruno@clisp.org>
5067
5068         getdate: Generate getdate.c in the source directory.
5069         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5070         MOSTLYCLEANFILES.
5071         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5072
5073 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5074
5075         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5076         is not declared as a const *; avoid warnings in that case.
5077
5078 2010-04-28  Eric Blake  <eblake@redhat.com>
5079
5080         canonicalize-lgpl: avoid compiler warning
5081         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5082         declaration' / 'extraneous semicolon' warning with some compilers.
5083         Reported by Andreas Gruenbacher.
5084
5085 2010-04-28  Jim Meyering  <meyering@redhat.com>
5086
5087         init.sh: ensure a more reliable exit status when exiting via trap
5088         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5089         Inspired by patches from Dmitry V. Levin.
5090         Also trap on signal 3 (SIGQUIT).
5091
5092 2010-04-27  Bruno Haible  <bruno@clisp.org>
5093
5094         Update doc about utimes().
5095         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5096         'utimens' module.
5097         Reported by Andreas Gruenbacher <agruen@suse.de>.
5098
5099 2010-04-27  Eric Blake  <eblake@redhat.com>
5100
5101         full-read, full-write: relax license
5102         * modules/full-read (License): Drop to LGPLv2+.
5103         * modules/full-write (License): Likewise.
5104         * modules/safe-read (License): Likewise.
5105         * modules/safe-write (License): Likewise.
5106
5107         pthread: mention library for linking
5108         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5109
5110 2010-04-27  Jim Meyering  <meyering@redhat.com>
5111
5112         maint.mk: fix a bug introduced in last change
5113         * top/maint.mk (gl_assured_headers_): Now that all names are on
5114         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5115         is not anchored to end of word, it should be adequate.
5116
5117         maint.mk: avoid side-effect in latest syntax-check
5118         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5119         to run commands via $(shell...), and hence to incur cost only when
5120         the new rule is actually run.
5121
5122         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5123         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5124         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5125         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5126         (gl_assured_headers_, az_, AZ_): Define.
5127         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5128
5129 2010-04-26  Jim Meyering  <jim@meyering.net>
5130             Bruno Haible  <bruno@clisp.org>
5131
5132         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5133         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5134         Prompted by an exchange with Gilles Espinasse.
5135
5136 2010-04-26  Jim Meyering  <meyering@redhat.com>
5137
5138         git-version-gen: aesthetic tweak
5139         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5140         so that the command remains on a single line.
5141
5142 2010-04-26  Eric Blake  <eblake@redhat.com>
5143
5144         git-version-gen: allow use on EBCDIC hosts
5145         * build-aux/git-version-gen (dirty): Use literal rather than tying
5146         ourselves to ascii.
5147         Reported by Steve Goetze.
5148
5149 2010-04-25  Bruno Haible  <bruno@clisp.org>
5150
5151         netdb: Add support for GNULIB_POSIXCHECK.
5152         * lib/netdb.in.h: Include warn-on-use.h.
5153         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5154         functions are used when GNULIB_POSIXCHECK is defined and the
5155         getaddrinfo module is not in use.
5156         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5157         freeaddrinfo, gai_strerror, getnameinfo are declared.
5158         * modules/netdb (Depends-on): Add warn-on-use.
5159         (Makefile.am): Include warn-on-use.h in netdb.h.
5160
5161 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5162
5163         build: avoid "make check" failure without .git/ directory
5164         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5165         there is no .git/ directory.
5166
5167 2010-04-25  Bruno Haible  <bruno@clisp.org>
5168
5169         ptsname: Fix misuse of ttyname_r.
5170         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5171         of errno.
5172
5173 2010-04-25  Bruno Haible  <bruno@clisp.org>
5174
5175         ttyname_r: Make it work on Solaris 10.
5176         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5177         if the system function has the POSIX declaration. Test whether the
5178         function fails if the buffer is less than 128 bytes large.
5179         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5180         system's ttyname_r function. Provide a reasonably large buffer.
5181         * modules/ttyname_r (Depends-on): Add extensions.
5182         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5183
5184 2010-04-25  Bruno Haible  <bruno@clisp.org>
5185
5186         Use the 'extensions' module for some more functions on Solaris.
5187         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5188         module.
5189         * doc/posix-functions/ctime_r.texi: Likewise.
5190         * doc/posix-functions/getgrgid_r.texi: Likewise.
5191         * doc/posix-functions/getgrnam_r.texi: Likewise.
5192         * doc/posix-functions/getpwnam_r.texi: Likewise.
5193         * doc/posix-functions/getpwuid_r.texi: Likewise.
5194         * doc/posix-functions/readdir_r.texi: Likewise.
5195         * doc/posix-functions/sigwait.texi: Likewise.
5196         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5197         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5198
5199 2010-04-25  Bruno Haible  <bruno@clisp.org>
5200
5201         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5202         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5203         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5204         * lib/ttyname_r.c: Include <limits.h>.
5205         (ttyname_r): Define using the system's ttyname_r function, if it exists
5206         and not on Solaris.
5207         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5208         set.
5209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5210         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5211         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5212         Reported by Simon Josefsson.
5213
5214 2010-04-25  Bruno Haible  <bruno@clisp.org>
5215
5216         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5217         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5218         * doc/posix-functions/ctime_r.texi: Likewise.
5219         * doc/posix-functions/getgrgid_r.texi: Likewise.
5220         * doc/posix-functions/getgrnam_r.texi: Likewise.
5221         * doc/posix-functions/getlogin_r.texi: Likewise.
5222         * doc/posix-functions/getpwnam_r.texi: Likewise.
5223         * doc/posix-functions/getpwuid_r.texi: Likewise.
5224         * doc/posix-functions/readdir_r.texi: Likewise.
5225         * doc/posix-functions/sigwait.texi: Likewise.
5226         * doc/posix-functions/ttyname_r.texi: Likewise.
5227         Reported by Simon Josefsson.
5228
5229 2010-04-25  Bruno Haible  <bruno@clisp.org>
5230
5231         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5232         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5233         also to --create-testdir.
5234         (func_acceptable): Don't consider the status of *-tests modules here.
5235         (func_modules_transitive_closure): Consider it here, before including a
5236         test module.
5237         (func_import, func_create_testdir): Set inc_all_direct_tests,
5238         inc_all_indirect_tests.
5239         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5240         --create-testdir and --create-megatestdir.
5241
5242 2010-04-25  Bruno Haible  <bruno@clisp.org>
5243
5244         gnulib-tool: Add --without-*-tests options.
5245         * gnulib-tool (func_usage): Document the --without-*-tests options.
5246         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
5247         excl_unportable_tests): New variables.
5248         Fail if they are specified with --import or --update.
5249         (func_acceptable): Respect the excl_*_tests variables.
5250         (func_import): Set the excl_*_tests variables to empty.
5251
5252 2010-04-25  Simon Josefsson  <simon@josefsson.org>
5253             Bruno Haible  <bruno@clisp.org>
5254
5255         Work around a MacOS X 10.4 bug with openpty.
5256         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
5257         * tests/test-openpty.c (main): Close the master side explicitly.
5258
5259 2010-04-25  Bruno Haible  <bruno@clisp.org>
5260
5261         strnlen: Fix a C++ test error on MacOS X and Solaris.
5262         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
5263         the function is not declared.
5264         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
5265         Simon Josefsson.
5266
5267 2010-04-24  Bruno Haible  <bruno@clisp.org>
5268
5269         Avoid a gcc warning.
5270         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
5271         of correct type for %08lx directive.
5272         Reported by Eric Blake.
5273
5274 2010-04-24  Bruno Haible  <bruno@clisp.org>
5275
5276         vasnprintf: Correct errno value in case of out-of-memory.
5277         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
5278         or sprintf. Use the errno value from SNPRINTF or sprintf.
5279         Reported by Ian Beckwith <ianb@erislabs.net>.
5280
5281 2010-04-24  Bruno Haible  <bruno@clisp.org>
5282
5283         ansi-c++-opt: Find correct compiler when cross-compiling.
5284         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5285         AC_CHECK_PROGS.
5286         Reported by Simon Josefsson.
5287
5288 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5289
5290         vc-list-files: Add support for subversion
5291         * build-aux/vc-list-files: Use "svn list" to generate the list of
5292         files controlled by subversion.
5293
5294 2010-04-23  Jim Meyering  <meyering@redhat.com>
5295
5296         vc-list-files tests: convert to use init.sh
5297         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5298         path_prepend_.
5299         Use Exit, not exit.
5300         Use skip_ rather than open coding it.
5301         Remove trap set-up and compare definitions.
5302         * tests/test-vc-list-files-git.sh: Likewise.
5303         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5304
5305 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5306
5307         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5308         backup files.
5309
5310 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5311
5312         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5313
5314 2010-04-20  Eric Blake  <eblake@redhat.com>
5315
5316         tests: be robust to ignored SIGPIPE
5317         * tests/test-select-in.sh: Consume all output.
5318         * tests/test-lseek.sh: Check correct exit status, while avoiding
5319         EPIPE.
5320
5321 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5322             Bruno Haible  <bruno@clisp.org>
5323
5324         visibility: Don't use -fvisibility if it leads to a warning.
5325         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5326         yes, don't pretend that visibility works if it leads to a warning.
5327         Reported by Mike Gran <spk121@yahoo.com>.
5328
5329 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5330
5331         * build-aux/bootstrap: Use "git -h" for testing for supported options
5332         instead of "git --help".  The short-form option only shows a summary,
5333         and doesn't layout the full man page.  Grep for the full option name
5334         in the summary, too.
5335
5336 2010-04-19  Bruno Haible  <bruno@clisp.org>
5337
5338         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5339         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5340         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5341         mention of RELOCATABLE_STRIP.
5342         Reported by Sylvain Beucler <beuc@beuc.net>.
5343
5344 2010-04-19  Bruno Haible  <bruno@clisp.org>
5345
5346         * lib/diffseq.h: Fix typo in comment.
5347         Reported by Eric Blake.
5348
5349 2010-04-19  Bruno Haible  <bruno@clisp.org>
5350
5351         ioctl: Move autoconf macro to a .m4 file.
5352         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5353         * modules/ioctl (Files): Add it.
5354         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5355         Reported by Ian Beckwith <ianb@erislabs.net>.
5356
5357 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5358             Bruno Haible  <bruno@clisp.org>
5359
5360         diffseq: Accommodate use-case with abstract arrays.
5361         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5362         is not defined.
5363         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5364         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5365
5366 2010-04-18  Bruno Haible  <bruno@clisp.org>
5367
5368         * doc/posix-headers/stdbool.texi: More precise wording.
5369
5370 2010-04-17  Jim Meyering  <meyering@redhat.com>
5371
5372         maint.mk: use gnu-style indentation in an embedded perl script
5373         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5374         Rename variable: s/two/last_two_bytes/
5375
5376 2010-04-16  Eric Blake  <eblake@redhat.com>
5377
5378         test-stdbool: skip test that fails with Solaris CC
5379         * tests/test-stdbool.c (f): Skip test that causes compilation
5380         error under buggy C++ compiler.
5381         * lib/stdbool.in.h: Document the limitation.
5382         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5383
5384         setenv: allow compilation with C++
5385         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5386         register keyword.
5387
5388         stdint: allow test to pass with C++
5389         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5390
5391         getopt: allow compilation with C++
5392         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5393         struct.
5394         * lib/getopt.c (_getopt_internal_r): Use correct type.
5395         Reported by Dagobert Michelson, via Joel E. Denny.
5396
5397 2010-04-16  Bruno Haible  <bruno@clisp.org>
5398
5399         Override netdb.h always.
5400         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5401         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5402         Reported by Ludovic Courtès <ludo@gnu.org>.
5403
5404 2010-04-15  Bruno Haible  <bruno@clisp.org>
5405
5406         openpty: Fix mistake from 2010-03-21.
5407         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5408         Reported by Simon Josefsson.
5409
5410 2010-04-15  Eric Blake  <eblake@redhat.com>
5411
5412         test-forkpty: fix expected signature
5413         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
5414         Reported by Simon Josefsson.
5415
5416 2010-04-15  Jim Meyering  <meyering@redhat.com>
5417
5418         maint.mk: texinfo_suffix_re_: correct the default regexp
5419         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
5420
5421         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
5422         make it configurable via texinfo_suffix_re_.
5423
5424 2010-04-14  Eric Blake  <eblake@redhat.com>
5425
5426         strtok_r: relax license to LGPLv2+
5427         * modules/strtok_r (License): Relax license.
5428         Reported by Matthias Bolte.
5429
5430 2010-04-14  Simon Josefsson  <simon@josefsson.org>
5431
5432         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
5433         version 1.4.4 by default instead of requiring the libgcrypt
5434         version used during build.  This makes it possible to use the
5435         application with older but still binary compatible libgcrypt
5436         versions.
5437
5438 2010-04-13  Eric Blake  <eblake@redhat.com>
5439
5440         getopt-gnu: match recent glibc fixes and posix ruling
5441         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
5442         '+' handling, when requesting extensions.
5443         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
5444         'W;' handling.
5445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
5446         * doc/posix-functions/getopt.texi (getopt): Document this.
5447         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5448         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5449         Likewise.
5450
5451         getopt: merge bug fixes from glibc
5452         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
5453         diagnostics.  Honor '+:' correctly.  Reject ';'.
5454
5455         getopt-posix: detect MacOS bug
5456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5457         optind when missing a required argument.
5458         * doc/posix-functions/getopt.texi (getopt): Document the bug.
5459         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5460         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5461         Likewise.
5462
5463         getopt-posix: avoid spurious failure on Solaris
5464         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
5465         an indicator that setting optind=1 is sufficient for reset.
5466
5467         getopt-posix: avoid spurious failure on FreeBSD
5468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
5469         in POSIX mode, since the m4 test uses it.
5470
5471         gnulib-tool: silence warning on BSD sh
5472         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
5473
5474 2010-04-13  Jim Meyering  <meyering@redhat.com>
5475
5476         doc: users.txt: GNU patch now uses gnulib
5477         * users.txt: Add patch.
5478
5479 2010-04-12  Jim Meyering  <meyering@redhat.com>
5480
5481         maint.mk: generate more concise timing data for syntax-check rules
5482         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
5483         " done" from each line that reports a syntax-check test duration.
5484
5485 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
5486
5487         git-version-gen: use "git update-index..." rather than "git status"
5488         * build-aux/git-version-gen: Use git update-index --refresh, not
5489         "git status".  With some versions of git, "git status" would fail
5490         to update the index and result in an unwarranted "-dirty" suffix.
5491
5492 2010-04-11  Jim Meyering  <meyering@redhat.com>
5493
5494         openat: correct formatting (no semantic change)
5495         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
5496         Suggested by Bruno Haible.
5497
5498 2010-04-11  Bruno Haible  <bruno@clisp.org>
5499
5500         Stricter declaration checking in testdirs.
5501         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5502         If for_tests is true, augment AM_CPPFLAGS to define
5503         GNULIB_STRICT_CHECKING.
5504         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
5505         GNULIB_STRICT_CHECKING is defined, verify that the function is
5506         declared.
5507
5508 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
5509             Bruno Haible  <bruno@clisp.org>
5510
5511         libunistring: Improve configure output.
5512         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
5513         Don't say "consider installing GNU libunistring" when checking again
5514         with libiconv.
5515
5516 2010-04-11  Bruno Haible  <bruno@clisp.org>
5517
5518         libunistring: Correct value of $LTLIBUNISTRING.
5519         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
5520         correct the value of $LTLIBUNISTRING.
5521
5522 2010-04-11  Bruno Haible  <bruno@clisp.org>
5523
5524         havelib: Add static libraries to LIBS in the right order.
5525         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
5526         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
5527
5528 2010-04-11  Bruno Haible  <bruno@clisp.org>
5529
5530         libunistring: Detect libunistring also when it depends on libiconv.
5531         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
5532         the second AC_LIB_HAVE_LINKFLAGS invocation.
5533
5534 2010-04-11  James Youngman  <jay@gnu.org>
5535
5536         close-stream: declare local scalars to be "const"
5537         * lib/close-stream.c (close_stream): Make boolean variables const
5538         to document the fact that we set but do not change them.
5539
5540 2010-04-11  Bruno Haible  <bruno@clisp.org>
5541
5542         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
5543
5544 2010-04-11  Jim Meyering  <meyering@redhat.com>
5545
5546         maint.mk: don't include dist-check.mk
5547         * top/maint.mk: Remove bogus include directive.
5548
5549         maint.mk: improve empty-line-at-EOF check
5550         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
5551         solution, rather than tail+Perl-based one.  The latter would read
5552         a few kilobytes from the end of each file, and did not handle empty
5553         files properly.
5554
5555         maint.mk: print the elapsed time for each syntax-check rule
5556         * top/maint.mk (sc_m_rules_): Save start time in a file.
5557         (sc_z_rules_): New rules: remove temp file and print elapsed time.
5558         (local-check): Interpose the .z rules
5559
5560 2010-04-11  Jim Meyering  <meyering@redhat.com>
5561
5562         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
5563         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
5564         empty file with one that ends in an empty line.
5565
5566 2010-04-10  Bruno Haible  <bruno@clisp.org>
5567
5568         mkdir: Make it work on mingw64.
5569         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
5570         * lib/mkdir.c: Update comment.
5571         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
5572
5573 2010-04-10  Bruno Haible  <bruno@clisp.org>
5574
5575         Don't override improved macro from newer autoconf.
5576         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
5577         autoconf >= 2.62.
5578         Reported by Joel E. Denny <jdenny@clemson.edu>.
5579
5580 2010-04-10  Jim Meyering  <meyering@redhat.com>
5581
5582         maint.mk: new syntax-check rule: prohibit empty lines at end of file
5583         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
5584
5585         maint.mk: correct a diagnostic
5586         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
5587         in diagnostic; now use $prohibit.
5588
5589 2010-04-10  Bruno Haible  <address@hidden>
5590
5591         fchownat: Fix a C++ test error on Solaris 8.
5592         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
5593         the function does not exist.
5594
5595 2010-04-10  Bruno Haible  <bruno@clisp.org>
5596
5597         vasnprintf: Add more tests.
5598         * tests/test-vasnprintf-posix.c: Include <errno.h>.
5599         (test_function): Test converting an invalid wide string.
5600
5601         vasnprintf: Correct handling of unconvertible wide string arguments.
5602         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
5603         VASNPRINTF.
5604         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
5605         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
5606         smaller than the expected maximum need for the directive. Set errno to
5607         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
5608         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
5609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
5610         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
5611         * modules/vasnprintf (Files): Add m4/printf.m4.
5612         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5613
5614 2010-04-10  Bruno Haible  <bruno@clisp.org>
5615
5616         vasnprintf: Fix crash in %ls directive.
5617         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
5618         string is passed as argument to %ls, with no precision and no width.
5619         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5620
5621 2010-04-10  Bruno Haible  <bruno@clisp.org>
5622
5623         vasnprintf: Fix multiple test failures on mingw.
5624         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
5625         _snprintf, or snwprintf, not _snwprintf.
5626
5627 2010-04-10  Bruno Haible  <bruno@clisp.org>
5628
5629         write: Fix a C++ test error on mingw.
5630         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
5631
5632 2010-04-10  Bruno Haible  <bruno@clisp.org>
5633
5634         vasnprintf test: Reduce code duplication.
5635         * tests/test-vasnprintf.c (test_function): New function, extracted from
5636         test_vasnprintf.
5637         (test_vasnprintf, test_asnprintf): Invoke it.
5638
5639 2010-04-10  Bruno Haible  <bruno@clisp.org>
5640
5641         strnlen: Fix warning in C++ mode on MacOS X.
5642         * lib/string.in.h (strnlen): Use the modern idiom.
5643         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
5644         defining strnlen as a macro already in <config.h>.
5645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5646         REPLACE_STRNLEN.
5647         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
5648         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5649
5650 2010-04-08  James Youngman  <jay@gnu.org>
5651
5652         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
5653         the example.
5654
5655 2010-04-09  Jim Meyering  <meyering@redhat.com>
5656
5657         maint.mk: print better diagnostic when there is no $(_hv_file)
5658         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
5659         announce that when $(_hv_file) (aka help-version) does not exist.
5660
5661         init.sh: run tr in the "C" locale to avoid multibyte interpretation
5662         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
5663         not try to interpret its random input bytes.  Jarno Rajahalme reported
5664         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
5665         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
5666         (mktempd_): Likewise, just in case.
5667
5668         ftruncate: add two years to projected module removal date: 2012
5669         * m4/ftruncate.m4: Adjust comments.
5670
5671         ftruncate: mark module as obsolete; even MinGW provides it, now
5672         * modules/ftruncate (Status): Obsolete.
5673         (Notice): Say that.
5674         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
5675         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
5676
5677 2010-04-08  Bruno Haible  <bruno@clisp.org>
5678
5679         Fix side effects from tests-related modules.
5680         * modules/dprintf-posix (Comment): New section.
5681         * modules/fprintf-posix (Comment): Likewise.
5682         * modules/obstack-printf-posix (Comment): Likewise.
5683         * modules/printf-posix (Comment): Likewise.
5684         * modules/snprintf-posix (Comment): Likewise.
5685         * modules/sprintf-posix (Comment): Likewise.
5686         * modules/vasnprintf-posix (Comment): Likewise.
5687         * modules/vasprintf-posix (Comment): Likewise.
5688         * modules/vdprintf-posix (Comment): Likewise.
5689         * modules/vfprintf-posix (Comment): Likewise.
5690         * modules/vprintf-posix (Comment): Likewise.
5691         * modules/vsnprintf-posix (Comment): Likewise.
5692         * modules/vsprintf-posix (Comment): Likewise.
5693         * modules/xprintf-posix (Comment): Likewise.
5694         * modules/xvasprintf-posix (Comment): Likewise.
5695         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
5696         * modules/floorf-tests (Depends-on): Likewise.
5697         * modules/round-tests (Depends-on): Likewise.
5698         * modules/roundf-tests (Depends-on): Likewise.
5699         * modules/trunc-tests (Depends-on): Likewise.
5700         * modules/truncf-tests (Depends-on): Likewise.
5701         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
5702         'fprintf-posix' module is not present.
5703         * tests/test-floorf2.c (check): Likewise.
5704         * tests/test-trunc2.c (check): Likewise.
5705         * tests/test-truncf2.c (check): Likewise.
5706         * tests/test-round2.c (equal): Likewise.
5707         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5708
5709 2010-04-07  Karl Berry  <karl@gnu.org>
5710
5711         * config/srclist.txt,
5712         * config/srclistvars.sh,
5713         * config/srclist-update: doc fixes.
5714
5715 2010-04-07  Jim Meyering  <meyering@redhat.com>
5716
5717         maint.mk: add a PATH crosschecking syntax-check rule
5718         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
5719         Useful if you use a test like the one in help-version (coreutils,
5720         diffutils, grep, gzip) that ensures $(VERSION) matches what is
5721         printed by prog --version.
5722
5723 2010-04-06  Bruno Haible  <bruno@clisp.org>
5724
5725         Fix link error on mingw.
5726         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
5727         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
5728
5729 2010-04-06  Bruno Haible  <bruno@clisp.org>
5730
5731         Assume rmdir exists.
5732         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
5733
5734 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
5735
5736         doc: update users.txt
5737         * users.txt: Add gcal.
5738
5739 2010-04-06  Jim Meyering  <meyering@redhat.com>
5740
5741         init.sh: simply unset TMPDIR rather than risking env -i
5742         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
5743         although it probably works fine on all Unix-based systems, some
5744         systems (Cygwin?) cannot tolerate a totally cleared environment.
5745         Suggestion from Eric Blake.
5746
5747 2010-04-06  Jim Meyering  <meyering@redhat.com>
5748
5749         init.sh: portability fix: use env's POSIX-specified -i option not -u
5750         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
5751         than unportable env -u.  Solaris 5.11's env lacks support for -u.
5752
5753 2010-04-05  Bruno Haible  <bruno@clisp.org>
5754
5755         btowc: Work around Cygwin 1.7.2 bug.
5756         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
5757         does not map NUL to 0.
5758         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
5759
5760 2010-04-05  Bruno Haible  <bruno@clisp.org>
5761
5762         Make the multithread modules work on Cygwin 1.7.2.
5763         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
5764         imported symbols can be declared weak, so that it returns "no" on
5765         Cygwin 1.7.2.
5766
5767 2010-04-05  Bruno Haible  <bruno@clisp.org>
5768
5769         Use the module 'strncat'.
5770         * modules/unistr/u8-strncat (Depends-on): Add strncat.
5771
5772         Tests for module 'strncat'.
5773         * modules/strncat-tests: New file.
5774         * tests/test-strncat.c: New file.
5775
5776         New module 'strncat'.
5777         * lib/string.in.h (strncat): New declaration.
5778         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
5779         * m4/strncat.m4: New file, based on m4/memchr.m4.
5780         * modules/strncat: New file.
5781         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
5782         is declared.
5783         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
5784         REPLACE_STRNCAT.
5785         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
5786         REPLACE_STRNCAT.
5787         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
5788         module.
5789         * tests/test-string-c++.cc: Check signature of strncat.
5790
5791 2010-04-05  Jim Meyering  <meyering@redhat.com>
5792
5793         xstrtoumax-tests: convert to use init.sh
5794         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
5795         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5796         Use Exit, not exit.
5797         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5798
5799         xstrtoimax-tests: convert to use init.sh
5800         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
5801         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5802         Use Exit, not exit.
5803         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5804
5805 2010-04-05  Bruno Haible  <bruno@clisp.org>
5806
5807         sys_socket: Avoid #define replacements in C++ mode.
5808         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
5809         warning to the function if possible, rather than #defining the symbol
5810         to a dysfunctional alias.
5811
5812 2010-04-05  Bruno Haible  <bruno@clisp.org>
5813
5814         fseeko: Fix C++ test error on mingw.
5815         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
5816         gl_FUNC_FSEEKO.
5817         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
5818         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
5819         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
5820         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
5821
5822 2010-04-05  Bruno Haible  <bruno@clisp.org>
5823
5824         duplocale: Improve test output.
5825         * tests/test-duplocale.c (main): Print reason for skipped test.
5826
5827 2010-04-05  Bruno Haible  <bruno@clisp.org>
5828
5829         Assume rmdir exists.
5830         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
5831         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
5832
5833 2010-04-05  Bruno Haible  <bruno@clisp.org>
5834
5835         Fix link error on Solaris 8 with cc.
5836         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
5837
5838 2010-04-05  Bruno Haible  <bruno@clisp.org>
5839
5840         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
5841         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
5842
5843 2010-04-05  Bruno Haible  <bruno@clisp.org>
5844
5845         vasprintf: Update documentation.
5846         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
5847
5848 2010-04-05  Bruno Haible  <bruno@clisp.org>
5849
5850         ptsname: Improve test.
5851         * tests/test-ptsname.c (main): Also try the various master names of BSD
5852         systems.
5853
5854 2010-04-05  Bruno Haible  <bruno@clisp.org>
5855
5856         memchr: Avoid a possible C++ test error.
5857         * lib/string.in.h (memchr): Provide declaration if function is missing.
5858         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
5859         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
5860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
5861         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
5862
5863 2010-04-05  Bruno Haible  <bruno@clisp.org>
5864
5865         strtok_r: Improve idiom.
5866         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
5867         AC_LIBOBJ is used.
5868
5869 2010-04-05  Bruno Haible  <bruno@clisp.org>
5870
5871         strdup: Improve idiom.
5872         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
5873         AC_LIBOBJ is used.
5874         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
5875         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
5876         when AC_LIBOBJ is used.
5877
5878 2010-04-05  Bruno Haible  <bruno@clisp.org>
5879
5880         mbsinit, mbrtowc, wcrtomb: Improve idioms.
5881         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
5882         don't set REPLACE_MBSINIT to 1.
5883         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
5884         don't set REPLACE_MBRTOWC to 1.
5885         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
5886         exist, don't set REPLACE_MBSRTOWCS to 1.
5887         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
5888         exist, don't set REPLACE_MBSNRTOWCS to 1.
5889         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
5890         don't set REPLACE_WCRTOMB to 1.
5891         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
5892         exist, don't set REPLACE_WCSRTOMBS to 1.
5893         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
5894         exist, don't set REPLACE_WCSNRTOMBS to 1.
5895
5896 2010-04-05  Bruno Haible  <bruno@clisp.org>
5897
5898         ldexpl: Improve idiom.
5899         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
5900         make sure to set HAVE_DECL_LDEXPL to 0.
5901
5902 2010-04-05  Jim Meyering  <meyering@redhat.com>
5903
5904         xstrtol-tests: convert to use init.sh
5905         * modules/xstrtol-tests (Files): Add tests/init.sh.
5906         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5907         Use Exit, not exit.
5908         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5909
5910         atexit-tests: convert to use init.sh
5911         * modules/atexit-tests (Files): Add tests/init.sh.
5912         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5913         Use Exit, not exit.
5914         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5915
5916         init.sh: fix typo
5917         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
5918
5919         init.sh: make it easier for a test script to write to the tty, ...
5920         when using automake's parallel-tests mode.
5921         * tests/init.sh (stderr_fileno_): Define overridable variable.
5922         (warn_): New function, to use it.
5923         (fail_, skip_, framework_failure_): Use warn_.
5924
5925 2010-04-04  Bruno Haible  <bruno@clisp.org>
5926
5927         btowc: Avoid warning.
5928         * lib/btowc.c: Include <stdlib.h>.
5929         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
5930
5931 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
5932             Bruno Haible  <bruno@clisp.org>
5933
5934         wchar: Port to NetBSD 1.5.
5935         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
5936         * lib/wctype.in.h (WEOF): Likewise.
5937
5938 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
5939             Bruno Haible  <bruno@clisp.org>
5940
5941         Port extended stdio to NetBSD 1.5.
5942         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
5943         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
5944         older.
5945
5946 2010-04-04  Bruno Haible  <bruno@clisp.org>
5947
5948         string: Remove unused substitution.
5949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5950         HAVE_DECL_STRERROR.
5951         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
5952
5953 2010-04-04  Bruno Haible  <bruno@clisp.org>
5954
5955         strtod: Avoid a possible C++ test error.
5956         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
5957         set REPLACE_STRTOD.
5958
5959 2010-04-04  Bruno Haible  <bruno@clisp.org>
5960
5961         strerror: Update documentation.
5962         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
5963
5964 2010-04-04  Bruno Haible  <bruno@clisp.org>
5965
5966         stdio: Fix some C++ test errors on Solaris 8 with GCC.
5967         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
5968         _GL_CXXALIAS_SYS_CAST.
5969
5970 2010-04-04  Bruno Haible  <bruno@clisp.org>
5971
5972         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
5973         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
5974         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
5975         REPLACE_FREXPL to 1.
5976         * doc/posix-functions/frexpl.texi: Update documentation.
5977
5978 2010-04-04  Bruno Haible  <bruno@clisp.org>
5979
5980         math: Fix some C++ test errors on Solaris 8 and Cygwin.
5981         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
5982
5983 2010-04-04  Bruno Haible  <bruno@clisp.org>
5984
5985         Implement nanosleep for native Windows.
5986         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
5987
5988 2010-04-04  Bruno Haible  <bruno@clisp.org>
5989
5990         math: Fix some C++ test errors on Solaris 8.
5991         * lib/math.in.h (truncf, trunc): Use simpler idiom.
5992
5993 2010-04-04  Bruno Haible  <bruno@clisp.org>
5994
5995         math: Fix some C++ test errors on Cygwin.
5996         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
5997         truncl): Provide declaration if the system does not have it.
5998         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
5999         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6000         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6001         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6002         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6003         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6004         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6005         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6006         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6007         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6008         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6009         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6010         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6011         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6012         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6013         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6015         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6016         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6017         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6018         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6019         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6020
6021 2010-04-04  Bruno Haible  <bruno@clisp.org>
6022
6023         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6024         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6025         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6026         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6027         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6028         * m4/isinf.m4 (gl_ISINF): Likewise.
6029         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6030
6031 2010-04-04  Bruno Haible  <bruno@clisp.org>
6032
6033         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6034         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6035
6036 2010-04-04  Bruno Haible  <bruno@clisp.org>
6037
6038         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6039         * modules/tmpfile (configure.ac): Update.
6040
6041         tmpfile: Fix C++ test error on mingw.
6042         * lib/stdio.in.h (tmpfile): New declaration.
6043         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6044         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6045         * modules/tmpfile (Depends-on): Add stdio.
6046         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6047         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6048         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6049         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6050         REPLACE_TMPFILE.
6051         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6052
6053 2010-04-04  Bruno Haible  <bruno@clisp.org>
6054
6055         ioctl: Fix C++ test error on mingw.
6056         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6057         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6058         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6059
6060 2010-04-03  Bruno Haible  <bruno@clisp.org>
6061
6062         wcwidth: Fix C++ test error on mingw.
6063         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6064         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6065         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6066
6067 2010-04-03  Bruno Haible  <bruno@clisp.org>
6068
6069         nanosleep: Fix C++ test error on mingw.
6070         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6071         * lib/time.in.h (nanosleep): Use modern idiom.
6072         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6073         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6074         REPLACE_NANOSLEEP to 1.
6075         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6076         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6077
6078 2010-04-03  Bruno Haible  <bruno@clisp.org>
6079
6080         strptime: Fix C++ test error on mingw.
6081         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6082         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6083         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6084         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6085         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6086         not REPLACE_STRPTIME.
6087         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6088         REPLACE_STRPTIME.
6089
6090 2010-04-03  Bruno Haible  <bruno@clisp.org>
6091
6092         timegm: Fix C++ test error on mingw.
6093         * lib/time.in.h (timegm): Use modern idiom.
6094         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6095         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6096         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6097         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6098
6099 2010-04-03  Bruno Haible  <bruno@clisp.org>
6100
6101         timegm: Assume declaration if function exists.
6102         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6103         if it exists. Don't clobber ac_cv_func_timegm.
6104
6105 2010-04-03  Bruno Haible  <bruno@clisp.org>
6106
6107         time_r: Fix C++ test error on mingw.
6108         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6109         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6110         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6111         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6112         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6113
6114 2010-04-03  Bruno Haible  <bruno@clisp.org>
6115
6116         time_r: Minor updates.
6117         * modules/time_r (Description): Mention the provided functions.
6118         * lib/time_r.c: Don't include <string.h>.
6119         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6120         * doc/posix-functions/localtime_r.texi: Likewise.
6121
6122 2010-04-03  Bruno Haible  <bruno@clisp.org>
6123
6124         time: Fix regression introduced on 2010-03-08.
6125         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6126         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6127
6128 2010-04-03  Jim Meyering  <meyering@redhat.com>
6129
6130         maint.mk: don't silently disable project-specific syntax-check rules
6131         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6132         that they need to convert their project-specific syntax-check rules
6133         to use the new _sc_search_regexp.
6134
6135 2010-04-03  Bruno Haible  <bruno@clisp.org>
6136
6137         fchdir: Fix regression introduced on 2010-03-08.
6138         * lib/unistd.in.h (fchdir): Fix declaration.
6139         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6141         REPLACE_FCHDIR.
6142         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6143         REPLACE_FCHDIR.
6144
6145 2010-04-03  Bruno Haible  <bruno@clisp.org>
6146
6147         getpagesize: Fix C++ test error on mingw.
6148         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6149         system does not declare the function.
6150         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6151         declared.
6152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6153         HAVE_DECL_GETPAGESIZE.
6154         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6155
6156 2010-04-03  Bruno Haible  <bruno@clisp.org>
6157
6158         stdio: Make C++ tests work on mingw.
6159         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6160         does not declare the function.
6161
6162 2010-04-03  Bruno Haible  <bruno@clisp.org>
6163
6164         ftello: Fix C++ test error on mingw.
6165         * lib/stdio.in.h (ftello): Use modern idiom.
6166         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6167         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6168         is missing and that it needs to be replaced.
6169         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6171         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6172
6173 2010-04-03  Bruno Haible  <bruno@clisp.org>
6174
6175         fseeko: Fix C++ test error on mingw.
6176         * lib/stdio.in.h (fseeko): Use modern idiom.
6177         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6178         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6179         is missing and that it needs to be replaced.
6180         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6182         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6183
6184 2010-04-03  Bruno Haible  <bruno@clisp.org>
6185
6186         mkstemp: Fix C++ test error on mingw.
6187         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6188         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6189         function is missing and that it needs to be replaced.
6190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6191         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6192
6193 2010-04-03  Bruno Haible  <bruno@clisp.org>
6194
6195         stpncpy: Fix C++ test error on mingw.
6196         * lib/string.in.h (stpncpy): Use modern idiom.
6197         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6198         function is missing and that it needs to be replaced.
6199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6200         REPLACE_STPNCPY.
6201         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6202
6203 2010-04-03  Bruno Haible  <bruno@clisp.org>
6204
6205         sys_stat: Fix C++ test error on mingw.
6206         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6207         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6208
6209 2010-04-03  Bruno Haible  <bruno@clisp.org>
6210
6211         pty: Update doc.
6212         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6213
6214 2010-04-03  Bruno Haible  <bruno@clisp.org>
6215
6216         unistd: Fix C++ test error on mingw.
6217         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6218
6219 2010-04-03  Bruno Haible  <bruno@clisp.org>
6220
6221         Update doc regarding mingw.
6222         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6223         * doc/glibc-functions/login_tty.texi: Likewise.
6224         * doc/glibc-functions/forkpty.texi: Likewise.
6225
6226 2010-04-03  Bruno Haible  <bruno@clisp.org>
6227
6228         stdlib: Avoid compilation failure of c-strtold on mingw.
6229         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6230
6231 2010-04-03  Bruno Haible  <bruno@clisp.org>
6232
6233         locale: Make C++ tests work on Cygwin and mingw.
6234         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6235         cannot provide the function.
6236         Reported by Simon Josefsson.
6237
6238 2010-04-03  Bruno Haible  <bruno@clisp.org>
6239
6240         localename: Port to MacOS X 10.6.
6241         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6242         memory layout of the locales in MacOS X 10.6 as well.
6243         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6244
6245 2010-04-02  Bruno Haible  <bruno@clisp.org>
6246
6247         gnulib-tool: Ensure that long-running tests are executed last.
6248         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
6249         running tests after the one for the other tests.
6250
6251 2010-04-02  Bruno Haible  <bruno@clisp.org>
6252
6253         gnulib-tool: Ensure the tests in the main directory are executed first.
6254         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
6255         start with the current directory.
6256
6257 2010-04-02  Bruno Haible  <bruno@clisp.org>
6258
6259         Tests for module 'havelib', moved here from GNU gettext.
6260         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
6261         modifications.
6262         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
6263         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
6264         with modifications.
6265         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
6266         modifications.
6267         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
6268         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
6269         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
6270         with modifications.
6271         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
6272         with modifications.
6273         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
6274         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
6275         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
6276         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
6277         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
6278         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
6279         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
6280         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
6281         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
6282         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
6283         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
6284         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6285         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6286         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6287         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6288         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6289         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6290         with modifications.
6291         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6292         with modifications.
6293         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6294         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6295         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6296         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6297         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6298         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6299         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6300         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6301         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6302         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6303         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6304         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6305         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6306         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6307         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6308         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6309         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6310         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6311         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6312         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6313         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6314         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6315         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6316         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6317         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6318         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6319         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6320         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6321         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6322         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6323         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6324         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6325         * tests/havelib/rpathx/rpathx.c: New file, from
6326         gettext/autoconf-lib-link.
6327         * tests/havelib/rpathx/Makefile.am: New file, from
6328         gettext/autoconf-lib-link.
6329         * tests/havelib/rpathx/configure.ac: New file, from
6330         gettext/autoconf-lib-link with modifications.
6331         * tests/havelib/rpathy/rpathy.c: New file, from
6332         gettext/autoconf-lib-link.
6333         * tests/havelib/rpathy/Makefile.am: New file, from
6334         gettext/autoconf-lib-link.
6335         * tests/havelib/rpathy/configure.ac: New file, from
6336         gettext/autoconf-lib-link with modifications.
6337         * tests/havelib/rpathz/rpathz.c: New file, from
6338         gettext/autoconf-lib-link.
6339         * tests/havelib/rpathz/Makefile.am: New file, from
6340         gettext/autoconf-lib-link.
6341         * tests/havelib/rpathz/configure.ac: New file, from
6342         gettext/autoconf-lib-link with modifications.
6343         * tests/havelib/rpathlx/usex.c: New file, from
6344         gettext/autoconf-lib-link.
6345         * tests/havelib/rpathlx/Makefile.am: New file, from
6346         gettext/autoconf-lib-link.
6347         * tests/havelib/rpathlx/configure.ac: New file, from
6348         gettext/autoconf-lib-link with modifications.
6349         * tests/havelib/rpathly/usey.c: New file, from
6350         gettext/autoconf-lib-link.
6351         * tests/havelib/rpathly/Makefile.am: New file, from
6352         gettext/autoconf-lib-link.
6353         * tests/havelib/rpathly/configure.ac: New file, from
6354         gettext/autoconf-lib-link with modifications.
6355         * tests/havelib/rpathlz/usez.c: New file, from
6356         gettext/autoconf-lib-link.
6357         * tests/havelib/rpathlz/Makefile.am: New file, from
6358         gettext/autoconf-lib-link.
6359         * tests/havelib/rpathlz/configure.ac: New file, from
6360         gettext/autoconf-lib-link with modifications.
6361         * tests/havelib/rpathlyx/usey.c: New file, from
6362         gettext/autoconf-lib-link.
6363         * tests/havelib/rpathlyx/Makefile.am: New file, from
6364         gettext/autoconf-lib-link.
6365         * tests/havelib/rpathlyx/configure.ac: New file, from
6366         gettext/autoconf-lib-link with modifications.
6367         * tests/havelib/rpathlzyx/usez.c: New file, from
6368         gettext/autoconf-lib-link.
6369         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6370         gettext/autoconf-lib-link.
6371         * tests/havelib/rpathlzyx/configure.ac: New file, from
6372         gettext/autoconf-lib-link with modifications.
6373         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6374         with modifications.
6375
6376 2010-04-02  Bruno Haible  <bruno@clisp.org>
6377
6378         gnulib-tool: Create distributed built sources also for the tests.
6379         * gnulib-tool (func_create_testdir): Also generate distributed built
6380         sources in the tests directory.
6381
6382 2010-04-02  Bruno Haible  <bruno@clisp.org>
6383
6384         gnulib-tool: Obey user's environment variables.
6385         * gnulib-tool (func_create_testdir): When creating built sources,
6386         respect the environment variables for autoconf, automake, etc. given by
6387         the user.
6388
6389 2010-04-02  Bruno Haible  <bruno@clisp.org>
6390
6391         gnulib-tool: Provide the value of --m4-base to modules.
6392         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6393         of gl_m4_base.
6394
6395 2010-04-02  Eric Blake  <eblake@redhat.com>
6396
6397         maint.mk: fix some fallout
6398         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6399         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6400
6401 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6402
6403         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6404         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6405         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6406         (sc_cast_of_x_alloc_return_value): Likewise.
6407         (sc_cast_of_alloca_return_value): Likewise.
6408         (sc_space_tab): Likewise.
6409         (sc_prohibit_atoi_atof): Likewise.
6410         (sc_prohibit_magic_number_exit): Likewise.
6411         (sc_error_exit_success): Likewise.
6412         (sc_file_system): Likewise.
6413         (sc_prohibit_have_config_h): Likewise.
6414         (sc_require_config_h): Likewise.
6415         (sc_prohibit_HAVE_MBRTOWC): Likewise.
6416         (sc_obsolete_symbols): Likewise.
6417         (sc_changelog): Likewise.
6418         (sc_program_name): Likewise.
6419         (sc_the_the): Likewise.
6420         (sc_trailing_blank): Likewise.
6421         (sc_two_space_separator_in_usage): Likewise.
6422         (sc_useless_cpp_parens): Likewise.
6423         (sc_GPL_version): Likewise.
6424         (sc_GFDL_version): Likewise.
6425         (sc_texinfo_acronym): Likewise.
6426         (sc_prohibit_cvs_keyword): Likewise.
6427         (sc_prohibit_stat_st_blocks): Likewise.
6428         (sc_prohibit_S_IS_definition): Likewise.
6429         (sc_redundant_const): Likewise.
6430         (sc_makefile_TAB_only_indentation): Likewise.
6431         (sc_m4_quote_check): Likewise.
6432         (sc_makefile_path_separator_check): Likewise.
6433         (sc_copyright_check): Likewise.
6434         (sc_Wundef_boolean): Likewise.
6435         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6436
6437         maint.mk: match 0 or more whitespace-before-function-call '('
6438         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
6439         that have zero or two-and-more spaces between the function name
6440         and the open parenthesis.
6441         (sc_error_message_warn_fatal): Likewise.
6442         (sc_error_message_uppercase): Likewise.
6443         (sc_error_message_period): Likewise.
6444
6445 2010-03-31  Eric Blake  <eblake@redhat.com>
6446
6447         maint.mk: check for [ as well as test
6448         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
6449         Based on a libvirt report by Matthias Bolte.
6450
6451         gnumakefile: don't squelch _version output
6452         * top/GNUmakefile (_version): Create one-shot dependency rather
6453         than using $(shell) when version must be regenerated.
6454         (_autoreconf): Run verbosely, by default.
6455
6456         sys_time: avoid compiler warnings
6457         * lib/sys_time.in.h (includes): Ensure gcc pragma is
6458         unconditional, fixing regression from 2010-03-29.
6459         Reported by Simon Josefsson.
6460
6461 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6462
6463         maint.mk: s/_header_without_use/_sc_header_without_use/
6464         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
6465         (sc_prohibit_assert_without_use): Use the new name.
6466         (sc_prohibit_close_stream_without_use): Likewise.
6467         (sc_prohibit_getopt_without_use): Likewise.
6468         (sc_prohibit_quotearg_without_use): Likewise.
6469         (sc_prohibit_quote_without_use): Likewise.
6470         (sc_prohibit_long_options_without_use): Likewise.
6471         (sc_prohibit_inttostr_without_use): Likewise.
6472         (sc_prohibit_ignore_value_without_use): Likewise.
6473         (sc_prohibit_error_without_use): Likewise.
6474         (sc_prohibit_xalloc_without_use): Likewise.
6475         (sc_prohibit_hash_without_use): Likewise.
6476         (sc_prohibit_hash_pjw_without_use): Likewise.
6477         (sc_prohibit_safe_read_without_use): Likewise.
6478         (sc_prohibit_argmatch_without_use): Likewise.
6479         (sc_prohibit_canonicalize_without_use): Likewise.
6480         (sc_prohibit_root_dev_ino_without_use): Likewise.
6481         (sc_prohibit_openat_without_use): Likewise.
6482         (sc_prohibit_c_ctype_without_use): Likewise.
6483         (sc_prohibit_signal_without_use): Likewise.
6484         (sc_prohibit_intprops_without_use): Likewise.
6485
6486 2010-03-30  Eric Blake  <eblake@redhat.com>
6487
6488         maint: improve module indicators
6489         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
6490         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
6491         columns, and avoid extra macro expansion.
6492
6493         fdopendir: work around FreeBSD bug
6494         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6495         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6496         * modules/dirent (Makefile.am): Substitute it.
6497         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
6498         declaration.
6499         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
6500         fix.
6501         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6502
6503 2010-03-29  Bruno Haible  <bruno@clisp.org>
6504
6505         Emit #pragma system_header after the inclusion guard, not before.
6506         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
6507         guard that spans the entire file, not before. This enables an
6508         optimization in GCC's preprocessor.
6509         * lib/ctype.in.h: Likewise.
6510         * lib/dirent.in.h: Likewise.
6511         * lib/errno.in.h: Likewise.
6512         * lib/float.in.h: Likewise.
6513         * lib/getopt.in.h: Likewise.
6514         * lib/iconv.in.h: Likewise.
6515         * lib/langinfo.in.h: Likewise.
6516         * lib/locale.in.h: Likewise.
6517         * lib/math.in.h: Likewise.
6518         * lib/netdb.in.h: Likewise.
6519         * lib/netinet_in.in.h: Likewise.
6520         * lib/pty.in.h: Likewise.
6521         * lib/sched.in.h: Likewise.
6522         * lib/se-selinux.in.h: Likewise.
6523         * lib/search.in.h: Likewise.
6524         * lib/spawn.in.h: Likewise.
6525         * lib/stdarg.in.h: Likewise.
6526         * lib/stdint.in.h: Likewise.
6527         * lib/string.in.h: Likewise.
6528         * lib/strings.in.h: Likewise.
6529         * lib/sys_file.in.h: Likewise.
6530         * lib/sys_ioctl.in.h: Likewise.
6531         * lib/sys_time.in.h: Likewise.
6532         * lib/sys_times.in.h: Likewise.
6533         * lib/sys_utsname.in.h: Likewise.
6534         * lib/sys_wait.in.h: Likewise.
6535         * lib/sysexits.in.h: Likewise.
6536         * lib/wctype.in.h: Likewise.
6537
6538 2010-03-28  James Youngman  <jay@gnu.org>
6539
6540         save-cwd: don't leak a file descriptor when the caller execs.
6541         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
6542         saved file descriptor.
6543         * modules/save-cwd (Depends-on): Depend on cloexec.
6544
6545 2010-03-29  Bruno Haible  <bruno@clisp.org>
6546
6547         Remove vestiges of fts-lgpl module.
6548         * lib/fts_.h: Assume GNULIB_FTS is 1.
6549         * lib/fts.c: Likewise.
6550         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6551
6552 2010-03-28  Bruno Haible  <bruno@clisp.org>
6553
6554         Fix definition of tests witness macro.
6555         * gnulib-tool (func_import): Fix definition of witness macro.
6556
6557 2010-03-28  Bruno Haible  <bruno@clisp.org>
6558
6559         Fix ioctl's protoype on glibc systems.
6560         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
6561         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
6562         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
6563         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
6564         signature. If not, arrange to replace the ioctl function.
6565         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6566         REPLACE_IOCTL.
6567         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
6568         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
6569         Reported by Ludovic Courtès <ludo@gnu.org>.
6570
6571 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
6572
6573         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
6574         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
6575         made it so grep -r --include=GLOB* ... did not work.
6576
6577 2010-03-26  Jim Meyering  <meyering@redhat.com>
6578             Eric Blake  <eblake@redhat.com>
6579
6580         maint.mk: prohibit use of test's -o and -a operators
6581         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
6582
6583 2010-03-28  Bruno Haible  <bruno@clisp.org>
6584
6585         Remove unused GNULIB_XYZ macro definitions.
6586         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
6587         invocation.
6588
6589 2010-03-28  Bruno Haible  <bruno@clisp.org>
6590
6591         Mark privileged tests modules.
6592         * modules/idpriv-drop-tests (Status): New section.
6593         * modules/idpriv-droptemp-tests (Status): New section.
6594
6595 2010-03-28  Bruno Haible  <bruno@clisp.org>
6596
6597         Split C++ tests into separate tests modules.
6598         * modules/dirent-c++-tests: New file, extracted from
6599         modules/dirent-tests.
6600         * modules/dirent-tests: Depend on it.
6601         * modules/fcntl-h-c++-tests: New file, extracted from
6602         modules/fcntl-h-tests.
6603         * modules/fcntl-h-tests: Depend on it.
6604         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
6605         * modules/glob-tests: Depend on it.
6606         * modules/iconv-h-c++-tests: New file, extracted from
6607         modules/iconv-h-tests.
6608         * modules/iconv-h-tests: Depend on it.
6609         * modules/langinfo-c++-tests: New file, extracted from
6610         modules/langinfo-tests.
6611         * modules/langinfo-tests: Depend on it.
6612         * modules/locale-c++-tests: New file, extracted from
6613         modules/locale-tests.
6614         * modules/locale-tests: Depend on it.
6615         * modules/math-c++-tests: New file, extracted from modules/math-tests.
6616         * modules/math-tests: Depend on it.
6617         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
6618         * modules/pty-tests: Depend on it.
6619         * modules/search-c++-tests: New file, extracted from
6620         modules/search-tests.
6621         * modules/search-tests: Depend on it.
6622         * modules/signal-c++-tests: New file, extracted from
6623         modules/signal-tests.
6624         * modules/signal-tests: Depend on it.
6625         * modules/spawn-c++-tests: New file, extracted from
6626         modules/spawn-tests.
6627         * modules/spawn-tests: Depend on it.
6628         * modules/stdio-c++-tests: New file, extracted from
6629         modules/stdio-tests.
6630         * modules/stdio-tests: Depend on it.
6631         * modules/stdlib-c++-tests: New file, extracted from
6632         modules/stdlib-tests.
6633         * modules/stdlib-tests: Depend on it.
6634         * modules/string-c++-tests: New file, extracted from
6635         modules/string-tests.
6636         * modules/string-tests: Depend on it.
6637         * modules/sys_ioctl-c++-tests: New file, extracted from
6638         modules/sys_ioctl-tests.
6639         * modules/sys_ioctl-tests: Depend on it.
6640         * modules/sys_select-c++-tests: New file, extracted from
6641         modules/sys_select-tests.
6642         * modules/sys_select-tests: Depend on it.
6643         * modules/sys_socket-c++-tests: New file, extracted from
6644         modules/sys_socket-tests.
6645         * modules/sys_socket-tests: Depend on it.
6646         * modules/sys_stat-c++-tests: New file, extracted from
6647         modules/sys_stat-tests.
6648         * modules/sys_stat-tests: Depend on it.
6649         * modules/sys_time-c++-tests: New file, extracted from
6650         modules/sys_time-tests.
6651         * modules/sys_time-tests: Depend on it.
6652         * modules/time-c++-tests: New file, extracted from modules/time-tests.
6653         * modules/time-tests: Depend on it.
6654         * modules/unistd-c++-tests: New file, extracted from
6655         modules/unistd-tests.
6656         * modules/unistd-tests: Depend on it.
6657         * modules/wchar-c++-tests: New file, extracted from
6658         modules/wchar-tests.
6659         * modules/wchar-tests: Depend on it.
6660         * modules/wctype-c++-tests: New file, extracted from
6661         modules/wctype-tests.
6662         * modules/wctype-tests: Depend on it.
6663         Reported by Simon Josefsson.
6664
6665 2010-03-28  Bruno Haible  <bruno@clisp.org>
6666
6667         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
6668         * gnulib-tool (func_exists_module): New function, extracted from
6669         func_verify_module.
6670         (func_verify_module): Use it.
6671         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
6672         'foo' only if 'foo' exists.
6673         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
6674         module.
6675
6676 2010-03-28  Bruno Haible  <bruno@clisp.org>
6677
6678         gnulib-tool: Add support for special categories of tests.
6679         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
6680         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
6681         (func_usage): Document them.
6682         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
6683         inc_unportable_tests, inc_all_tests): New variables.
6684         (func_acceptable): Consider these variables.
6685         (func_modules_transitive_closure): Make it work when the 'Status' field
6686         consists of multiple words.
6687         (func_import): Store and restore the values of inc_cxx_tests,
6688         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
6689         inc_all_tests in gnulib-comp.m4.
6690         (func_create_testdir): Set inc_all_tests to true.
6691         * doc/gnulib.texi (Extra tests modules): New section.
6692         Suggested by Jim Meyering.
6693
6694 2010-03-28  Bruno Haible  <bruno@clisp.org>
6695
6696         ansi-c++-opt: Allow turning off the C++ build by default.
6697         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
6698         gl_CXX_CHOICE_DEFAULT_NO is defined.
6699         Requested by Eric Blake.
6700
6701 2010-03-28  Bruno Haible  <bruno@clisp.org>
6702
6703         unistd: Avoid #define replacements in C++ mode.
6704         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6705         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6706         setsockopt, shutdown, select): In C++, attach a warning to the function
6707         if possible, rather than #defining the symbol to a dysfunctional alias.
6708         Reported by John W. Eaton <jwe@gnu.org>.
6709
6710 2010-03-28  Bruno Haible  <bruno@clisp.org>
6711
6712         Fix link errors on mingw.
6713         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
6714         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
6715         $(LIBSOCKET).
6716         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
6717         $(LIBSOCKET).
6718
6719 2010-03-28  Bruno Haible  <bruno@clisp.org>
6720             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6721
6722         lib-ignore: Determine different options for different compilers.
6723         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
6724         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
6725         Add comments.
6726         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
6727         * NEWS: Mention the change.
6728
6729 2010-03-27  Bruno Haible  <bruno@clisp.org>
6730
6731         Remove unused GNULIB_XYZ macro definitions.
6732         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6733         * modules/fseek (configure.ac): Likewise.
6734         * modules/ioctl (configure.ac): Likewise.
6735         * modules/open (configure.ac): Likewise.
6736         * modules/stdlib-safer (configure.ac): Likewise.
6737
6738 2010-03-27  Bruno Haible  <bruno@clisp.org>
6739
6740         Add a remark about certain modules.
6741         * modules/malloc (Comment): New section.
6742         * modules/realloc (Comment): Likewise.
6743         * modules/sigpipe (Comment): Likewise.
6744
6745 2010-03-27  Bruno Haible  <bruno@clisp.org>
6746
6747         Resolve conflict between the two kinds of module indicators.
6748         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
6749         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
6750         * modules/canonicalize (configure.ac): Invoke
6751         gl_MODULE_INDICATOR_FOR_TESTS.
6752         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
6753         GNULIB_XYZ.
6754         * tests/test-dirent-c++.cc: Likewise.
6755         * tests/test-dirent-safer.c: Likewise.
6756         * tests/test-dup2.c: Likewise.
6757         * tests/test-fchdir.c: Likewise.
6758         * tests/test-fcntl-h-c++.cc: Likewise.
6759         * tests/test-getopt.c: Likewise.
6760         * tests/test-getopt.h: Likewise.
6761         * tests/test-langinfo-c++.cc: Likewise.
6762         * tests/test-locale-c++.cc: Likewise.
6763         * tests/test-math-c++.cc: Likewise.
6764         * tests/test-pty-c++.cc: Likewise.
6765         * tests/test-search-c++.cc: Likewise.
6766         * tests/test-signal-c++.cc: Likewise.
6767         * tests/test-spawn-c++.cc: Likewise.
6768         * tests/test-stdio-c++.cc: Likewise.
6769         * tests/test-stdlib-c++.cc: Likewise.
6770         * tests/test-string-c++.cc: Likewise.
6771         * tests/test-sys_ioctl-c++.cc: Likewise.
6772         * tests/test-sys_select-c++.cc: Likewise.
6773         * tests/test-sys_socket-c++.cc: Likewise.
6774         * tests/test-sys_stat-c++.cc: Likewise.
6775         * tests/test-sys_time-c++.cc: Likewise.
6776         * tests/test-time-c++.cc: Likewise.
6777         * tests/test-unistd-c++.cc: Likewise.
6778         * tests/test-wchar-c++.cc: Likewise.
6779         * tests/uninorm/test-u8-nfc.c: Likewise.
6780         * tests/uninorm/test-u8-nfd.c: Likewise.
6781         * tests/uninorm/test-u8-nfkc.c: Likewise.
6782         * tests/uninorm/test-u8-nfkd.c: Likewise.
6783         * tests/uninorm/test-u16-nfc.c: Likewise.
6784         * tests/uninorm/test-u16-nfd.c: Likewise.
6785         * tests/uninorm/test-u16-nfkc.c: Likewise.
6786         * tests/uninorm/test-u16-nfkd.c: Likewise.
6787         * tests/uninorm/test-u32-nfc.c: Likewise.
6788         * tests/uninorm/test-u32-nfc-big.c: Likewise.
6789         * tests/uninorm/test-u32-nfd.c: Likewise.
6790         * tests/uninorm/test-u32-nfd-big.c: Likewise.
6791         * tests/uninorm/test-u32-nfkc.c: Likewise.
6792         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
6793         * tests/uninorm/test-u32-nfkd.c: Likewise.
6794         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
6795         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6796
6797 2010-03-27  Bruno Haible  <bruno@clisp.org>
6798
6799         Distinguish two kinds of module indicators.
6800         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
6801         gl_MODULE_INDICATOR.
6802         (gl_MODULE_INDICATOR): New macro.
6803         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6804         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
6805         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6806         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6807         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6808         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6809         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6810         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6811         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6812         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6813         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6814         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6815         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6816         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6817         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6818         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6819         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6820         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6821         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6822         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6823         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
6824         * modules/cloexec (configure.ac): Likewise.
6825         * modules/getopt-gnu (configure.ac): Likewise.
6826         * modules/uninorm/u8-normalize (configure.ac): Likewise.
6827         * modules/uninorm/u16-normalize (configure.ac): Likewise.
6828         * modules/uninorm/u32-normalize (configure.ac): Likewise.
6829         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
6830
6831 2010-03-27  Bruno Haible  <bruno@clisp.org>
6832
6833         New module description field 'Comment'.
6834         * gnulib-tool: New option --extract-comment.
6835         (func_usage): Document it.
6836         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
6837         (func_get_comment): New function.
6838         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
6839
6840 2010-03-27  Bruno Haible  <bruno@clisp.org>
6841
6842         Addendum to 2010-02-07 commit.
6843         * gnulib-tool (func_usage): Document --extract-applicability option.
6844
6845 2010-03-27  Bruno Haible  <bruno@clisp.org>
6846
6847         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
6848         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
6849         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
6850         rather than link errors.
6851
6852 2010-03-27  Bruno Haible  <bruno@clisp.org>
6853
6854         Avoid side effects from tests-related modules on the compilation of lib.
6855         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
6856         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
6857         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
6858         parameter. Emit into AM_CPPFLAGS a definition of the designated C
6859         macro.
6860         (func_import): Define a witness macro. Assign it a value that depends
6861         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
6862         tests-related modules.
6863         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
6864         Reported by Jim Meyering.
6865
6866 2010-03-27  Bruno Haible  <bruno@clisp.org>
6867
6868         Factorize common .m4 code.
6869         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
6870         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
6871         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
6872         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
6873         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6874         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
6875         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
6876         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6877         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6878         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6879         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
6880         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6881         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6882         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6883         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6884         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
6885         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6886         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6888         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
6889         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
6890         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6891         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6892         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6893         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6894         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6895         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
6896         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
6897         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
6898         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6899         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6900         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
6901
6902 2010-03-27  Bruno Haible  <bruno@clisp.org>
6903
6904         Fix a compilation error on Cygwin with g++ >= 4.3.
6905         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
6906         if it is undefined or if we alias it to chmod.
6907         (lstat): Don't warn about the use of this function if it is undefined
6908         or if we alias it to stat.
6909         Reported by Simon Josefsson.
6910
6911 2010-03-27  Bruno Haible  <bruno@clisp.org>
6912
6913         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
6914         * modules/getlogin (configure.ac): Update.
6915
6916         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
6917         * modules/getlogin_r (configure.ac): Update.
6918
6919         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
6920         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
6921         * modules/inet_ntop (configure.ac): Update.
6922
6923         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
6924         * modules/inet_pton (configure.ac): Update.
6925
6926         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
6927         * modules/mbslen (configure.ac): Update.
6928
6929         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
6930         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
6931         * modules/forkpty (configure.ac): Update.
6932         * modules/openpty (configure.ac): Update.
6933
6934 2010-03-26  Simon Josefsson  <simon@josefsson.org>
6935
6936         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
6937         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
6938
6939 2010-03-25  Eric Blake  <eblake@redhat.com>
6940
6941         maint: use pragma consistently across replacement headers
6942         * lib/ctype.in.h (system_header): Hoist for consistent placement.
6943         * lib/dirent.in.h (system_header): Likewise.
6944         * lib/errno.in.h (system_header): Likewise.
6945         * lib/float.in.h (system_header): Likewise.
6946         * lib/getopt.in.h (system_header): Likewise.
6947         * lib/iconv.in.h (system_header): Likewise.
6948         * lib/inttypes.in.h (system_header): Likewise.
6949         * lib/langinfo.in.h (system_header): Likewise.
6950         * lib/locale.in.h (system_header): Likewise.
6951         * lib/math.in.h (system_header): Likewise.
6952         * lib/netdb.in.h (system_header): Likewise.
6953         * lib/netinet_in.in.h (system_header): Likewise.
6954         * lib/pty.in.h (system_header): Likewise.
6955         * lib/sched.in.h (system_header): Likewise.
6956         * lib/se-selinux.in.h (system_header): Likewise.
6957         * lib/search.in.h (system_header): Likewise.
6958         * lib/spawn.in.h (system_header): Likewise.
6959         * lib/stdarg.in.h (system_header): Likewise.
6960         * lib/stdint.in.h (system_header): Likewise.
6961         * lib/string.in.h (system_header): Likewise.
6962         * lib/strings.in.h (system_header): Likewise.
6963         * lib/sys_file.in.h (system_header): Likewise.
6964         * lib/sys_ioctl.in.h (system_header): Likewise.
6965         * lib/sys_socket.in.h (system_header): Likewise.
6966         * lib/sys_times.in.h (system_header): Likewise.
6967         * lib/sys_utsname.in.h (system_header): Likewise.
6968         * lib/sys_wait.in.h (system_header): Likewise.
6969         * lib/sysexits.in.h (system_header): Likewise.
6970         * lib/unistd.in.h (system_header): Likewise.
6971         * lib/wctype.in.h (system_header): Likewise.
6972
6973         arpa/inet: fix mingw compilation warning
6974         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
6975         Reported by Matthew Bolte.
6976
6977 2010-03-25  Bruno Haible  <bruno@clisp.org>
6978
6979         Avoid collision between gnulib wrapper and libintl wrapper.
6980         * lib/printf.c (printf): Don't define if a printf wrapper is already
6981         defined in intl/printf.c.
6982         Reported by Michel Boaventura <michel@michelboaventura.com>.
6983
6984 2010-03-25  Bruno Haible  <bruno@clisp.org>
6985
6986         Use ANSI C.
6987         * lib/readutmp.h (getutent): Provide ANSI C prototype.
6988
6989 2010-03-25  Bruno Haible  <bruno@clisp.org>
6990
6991         Minor formatting changes.
6992         * lib/acosl.c: Insert space before function argument list.
6993         * lib/argz.c: Likewise.
6994         * lib/asinl.c: Likewise.
6995         * lib/expl.c: Likewise.
6996         * lib/gen-uni-tables.c: Likewise.
6997         * lib/gettext.h: Likewise.
6998         * lib/glthread/lock.h: Likewise.
6999         * lib/tanl.c: Likewise.
7000         * lib/uniname/uniname.c: Likewise.
7001         * tests/test-idpriv-drop.c: Likewise.
7002         * tests/test-idpriv-droptemp.c: Likewise.
7003         * tests/test-lock.c: Likewise.
7004         * tests/test-tls.c: Likewise.
7005         * lib/argp-help.c: Insert space before function-like macro argument
7006         list.
7007         * lib/memcmp.c: Likewise.
7008         * tests/test-base64.c: Likewise.
7009         * lib/localename.c: Insert space before sizeof's argument list.
7010         * lib/safe-alloc.h: Likewise.
7011         * lib/file-set.h: Insert space before macro argument list.
7012         * tests/test-argp.c: Likewise.
7013         * lib/argp-namefrob.h: Insert space before function parameter list.
7014         * lib/getaddrinfo.c: Likewise.
7015         * lib/netdb.in.h: Likewise.
7016         * lib/parse-duration.h: Likewise.
7017         * lib/parse-duration.c: Likewise.
7018         * lib/poll.c: Likewise.
7019         * lib/select.c: Likewise.
7020         * lib/trim.h: Likewise.
7021         * tests/test-usleep.c: Likewise.
7022         * lib/ldexpl.c: Insert space before function parameter list and before
7023         function argument list.
7024         * lib/logl.c: Likewise.
7025         * lib/sqrtl.c: Likewise.
7026         * lib/trim.c: Likewise.
7027         * lib/cosl.c: Use GNU style indentation. Insert space before function
7028         argument list.
7029         * lib/sinl.c: Likewise.
7030         * lib/tsearch.c: Insert space after 'for'.
7031         Reported by Jim Meyering.
7032
7033 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7034
7035         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7036         config header before grepping, as it's not present before
7037         autoreconf/configure are run.  Reported by Simon Josefsson.
7038
7039 2010-03-23  Bruno Haible  <bruno@clisp.org>
7040
7041         pt_chown: Make it work with automake < 1.11.
7042         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7043         Reported by Simon Josefsson.
7044
7045 2010-03-23  Bruno Haible  <bruno@clisp.org>
7046
7047         pt_chown: Don't depend on GPLed modules.
7048         * lib/pt_chown.c: Don't include idpriv.h.
7049         (main): Don't drop privileges.
7050         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7051         Reported by Simon Josefsson.
7052
7053 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7054
7055         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7056         suggestions from karl@freefriends.org (Karl Berry).
7057
7058 2010-03-22  Eric Blake  <eblake@redhat.com>
7059
7060         gethostname: further tweaks
7061         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7062         are overriding gethostname.
7063         Suggested by Bruno Haible.
7064
7065 2010-03-21  Bruno Haible  <bruno@clisp.org>
7066
7067         Fix comments.
7068         * lib/forkpty.c (rpl_forkpty): Fix comment.
7069         * lib/openpty.c (rpl_openpty): Likewise.
7070         Reported by Eric Blake.
7071
7072 2010-03-22  Eric Blake  <eblake@redhat.com>
7073
7074         gethostname: fix build on mingw
7075         * lib/unistd.in.h (includes): Work around fact that mingw
7076         <winsock2.h> re-includes <unistd.h>, by avoiding any
7077         redeclarations if we are being included by <winsock2.h>.
7078         Reported by Matthias Bolte.
7079
7080 2010-03-21  Bruno Haible  <bruno@clisp.org>
7081
7082         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7083         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7084         modifications.
7085         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7086         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7087         provide the replacement.
7088         * modules/forkpty (Depends-on): Add openpty, login_tty.
7089         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7090         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7091         * doc/glibc-functions/forkpty.texi: More supported platforms.
7092         * config/srclist.txt: Add forkpty.c (commented).
7093
7094 2010-03-21  Bruno Haible  <bruno@clisp.org>
7095
7096         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7097         (Makefile.am): Verify that PTY_LIB is defined.
7098
7099         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7100
7101 2010-03-21  Bruno Haible  <bruno@clisp.org>
7102
7103         Tests for module 'login_tty'.
7104         * modules/login_tty-tests: New file.
7105         * tests/test-login_tty.c: New file.
7106
7107         New module 'login_tty'.
7108         * lib/login_tty.c: New file.
7109         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7110         * modules/login_tty: New file.
7111         * doc/glibc-functions/login_tty.texi: Mention the new module.
7112
7113 2010-03-21  Bruno Haible  <bruno@clisp.org>
7114
7115         login_tty: Documentation.
7116         * doc/glibc-functions/login_tty.texi: New file.
7117         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7118
7119 2010-03-21  Bruno Haible  <bruno@clisp.org>
7120
7121         pty: Consistent macro naming.
7122         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7123         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7124         * modules/pty (configure.ac): Update.
7125
7126 2010-03-21  Bruno Haible  <bruno@clisp.org>
7127
7128         Tests for openpty: Make stricter.
7129         * tests/test-openpty.c (main): Add test of canonical processing and
7130         erase.
7131         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7132
7133         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7134         * lib/openpty.c (openpty): New replacement function.
7135         * lib/pty.in.h: Include <termios.h>.
7136         (openpty): Update declaration. Add comments.
7137         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7138         is not declared, arrange to provide the replacement. Check for _getpty
7139         and posix_openpt.
7140         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7141         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7142         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7143         * modules/pty-tests (test_pty_c___LDADD): New variable.
7144         * doc/glibc-functions/openpty.texi: More supported platforms.
7145
7146 2010-03-21  Bruno Haible  <bruno@clisp.org>
7147
7148         setenv: Tweaks.
7149         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7150         the test program.
7151         * doc/posix-functions/setenv.texi: Update platforms list.
7152
7153 2010-03-21  Bruno Haible  <bruno@clisp.org>
7154
7155         New module 'unlockpt'.
7156         * lib/unlockpt.c: New file, from glibc with modifications.
7157         * m4/unlockpt.m4: New file.
7158         * modules/unlockpt: New file.
7159         * lib/stdlib.in.h (unlockpt): New declaration.
7160         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7161         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7162         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7163         HAVE_UNLOCKPT.
7164         * doc/posix-functions/unlockpt.texi: Mention the new module.
7165         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7166         * config/srclist.txt: Add unlockpt.c (commented).
7167
7168 2010-03-21  Jim Meyering  <meyering@redhat.com>
7169
7170         maint.mk: prohibit inclusion of "intprops.h" without use
7171         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7172
7173 2010-03-21  Bruno Haible  <bruno@clisp.org>
7174
7175         New module 'grantpt'.
7176         * lib/grantpt.c: New file, from glibc with modifications.
7177         * m4/grantpt.m4: New file.
7178         * modules/grantpt: New file.
7179         * lib/stdlib.in.h (grantpt): New declaration.
7180         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7181         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7182         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7183         HAVE_GRANTPT.
7184         * doc/posix-functions/grantpt.texi: Mention the new module.
7185         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7186         * config/srclist.txt: Add grantpt.c (commented).
7187
7188 2010-03-21  Bruno Haible  <bruno@clisp.org>
7189
7190         New module 'pt_chown'.
7191         * lib/pt_chown.c: New file, from glibc with modifications.
7192         * lib/pty-private.h: New file, from glibc with modifications.
7193         * modules/pt_chown: New file.
7194         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7195
7196 2010-03-21  Bruno Haible  <bruno@clisp.org>
7197
7198         Tests for module 'ptsname'.
7199         * modules/ptsname-tests: New file.
7200         * tests/test-ptsname.c: New file.
7201
7202         New module 'ptsname'.
7203         * lib/ptsname.c: New file, from glibc with modifications.
7204         * m4/ptsname.m4: New file.
7205         * modules/ptsname: New file.
7206         * lib/stdlib.in.h (ptsname): New declaration.
7207         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7208         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7209         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7210         HAVE_PTSNAME.
7211         * doc/posix-functions/ptsname.texi: Mention the new module.
7212         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7213         * config/srclist.txt: Add ptsname.c (commented).
7214
7215 2010-03-21  Bruno Haible  <bruno@clisp.org>
7216
7217         Tests for module 'ttyname_r'.
7218         * modules/ttyname_r-tests: New file.
7219         * tests/test-ttyname_r.c: New file.
7220
7221         New module 'ttyname_r'.
7222         * lib/ttyname_r.c: New file.
7223         * m4/ttyname_r.m4: New file.
7224         * modules/ttyname_r: New file.
7225         * lib/unistd.in.h (ttyname_r): New declaration.
7226         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7227         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7228         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7229         HAVE_TTYNAME_R.
7230         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7231         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7232
7233 2010-03-20  Bruno Haible  <bruno@clisp.org>
7234
7235         signal: Undefine macro definitions in C++ mode.
7236         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7237         sigfillset): Undefine macro definitions from the system header in C++
7238         mode.
7239         Reported by John W. Eaton <jwe@gnu.org>.
7240
7241 2010-03-20  Bruno Haible  <bruno@clisp.org>
7242
7243         Ensure no #include statements inside extern "C" { ... }.
7244         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
7245         contain #include statements.
7246         * lib/time.in.h: Likewise.
7247
7248 2010-03-20  Bruno Haible  <bruno@clisp.org>
7249
7250         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
7251         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
7252         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
7253         Reported by John W. Eaton <jwe@gnu.org>.
7254
7255 2010-03-20  Bruno Haible  <bruno@clisp.org>
7256
7257         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
7258         Reported by Jim Meyering.
7259
7260 2010-03-20  Bruno Haible  <bruno@clisp.org>
7261
7262         pipe: Set errno upon failure.
7263         * lib/pipe.h: Specify that when -1 is returned, errno is set.
7264         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
7265         errno value in error message.
7266
7267 2010-03-20  Bruno Haible  <bruno@clisp.org>
7268             Jim Meyering  <meyering@redhat.com>
7269
7270         lchown: Avoid "unused variable" warning.
7271         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
7272
7273 2010-03-20  Bruno Haible  <bruno@clisp.org>
7274
7275         Work around unlink() bug on MacOS X 10.5.6.
7276         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
7277         attempting to unlink a parent directory.
7278         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
7279         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
7280         activate for the replacement function.
7281         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
7282
7283 2010-03-20  Bruno Haible  <bruno@clisp.org>
7284
7285         Fix link errors on Solaris 8.
7286         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7287         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7288
7289 2010-03-19  Jim Meyering  <meyering@redhat.com>
7290
7291         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7292         The _LIBC implementation of build_range_exp correctly honors the
7293         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7294         However, the non-_LIBC implementation would ignore that syntax-bit
7295         flag and return REG_ERANGE unconditionally.
7296         This change makes it honor that flag.
7297         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7298         Make two pointer parameters "const".
7299         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7300         (parse_bracket_exp): Update caller.
7301
7302         regex.m4: correct the reversed range endpoint ([b-a]) test
7303         * m4/regex.m4: When requiring that [b-a] evoke failure,
7304         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7305         test pass once again for x86-based systems.
7306
7307 2010-03-19  Bruno Haible  <bruno@clisp.org>
7308
7309         scandir: Fix link error on Solaris 8.
7310         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7311         macros.
7312
7313 2010-03-19  Bruno Haible  <bruno@clisp.org>
7314
7315         getusershell: Fix documentation.
7316         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7317         module.
7318         * doc/glibc-functions/setusershell.texi: Likewise.
7319
7320         getusershell: Provide declaration, missing on Solaris 9.
7321         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7322         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7323         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7324         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7326         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7327         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7328         HAVE_GETUSERSHELL.
7329         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7330
7331 2010-03-19  Bruno Haible  <bruno@clisp.org>
7332
7333         wctype: Provide iswblank function.
7334         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7335         exists and is fine.
7336         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7337         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7338         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7339         * doc/posix-functions/iswblank.texi: Update.
7340
7341 2010-03-19  Bruno Haible  <bruno@clisp.org>
7342
7343         Tests of module 'pty' in C++ mode.
7344         * modules/pty-tests: New file.
7345         * tests/test-pty-c++.cc: New file.
7346         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7347
7348 2010-03-19  Eric Blake  <eblake@redhat.com>
7349
7350         logb: fix documentation
7351         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7352         1.5 declaration bug.
7353
7354         forkpty, openpty: prefer glibc's const-safe prototype
7355         * lib/forkpty.c (rpl_forkpty): New file.
7356         * lib/openpty.c (rpl_openpty): Likewise.
7357         * modules/forkpty (Files): Distribute it.
7358         * modules/openpty (Files): Likewise.
7359         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7360         check...
7361         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7362         replacement for for non-const BSD signature.
7363         * modules/pty (Makefile.am): Substitute witnesses.
7364         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7365         * tests/test-forkpty.c: Update signature check.
7366         * tests/test-openpty.c: Likewise.
7367         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7368         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7369
7370         forkpty, openpty: split functions into new modules
7371         * modules/pty (Makefile.am): Substitute new witnesses.
7372         (Libraries): Move library detection...
7373         * modules/forkpty: ...into new module.
7374         * modules/openpty: Another new module.
7375         * modules/pty-tests: Rename and split...
7376         * modules/forkpty-tests: ...to this...
7377         * modules/openpty-tests: ...and this.
7378         * tests/test-pty.c: Rename and split...
7379         * tests/test-forkpty.c: ...to this...
7380         * tests/test-openpty.c: ...and this.
7381         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7382         (gl_PTY): Split library searching...
7383         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7384         (gl_FORKPTY, gl_OPENPTY): New macros.
7385         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7386         * NEWS: Mention the split.
7387         * MODULES.html.sh (Misc): Document the modules.
7388         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7389         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7390
7391         pty: improve replacement header
7392         * lib/pty.in.h: New file.
7393         * modules/pty (Files): Ship it.
7394         (Makefile.am): Always build replacement.
7395         * m4/pty.m4: Rename...
7396         * m4/pty_h.m4: ...to this.
7397         (gl_PTY): Modernize setting of witness macros; update check of
7398         forkpty to take proper advantage of cache.
7399         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7400
7401         getopt: avoid compiler warning
7402         * lib/getopt.c (attribute_hidden): Remove unused macro.
7403
7404 2010-03-18  Bruno Haible  <bruno@clisp.org>
7405
7406         Fix link errors on Solaris 8.
7407         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7408         * modules/search-tests (test_search_c___LDADD): Likewise.
7409         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7410         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7411         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7412         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
7413         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
7414         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
7415         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
7416
7417 2010-03-18  Bruno Haible  <bruno@clisp.org>
7418
7419         Fix bug introduced on 2010-03-14.
7420         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
7421         (gl_SPAWN_H): Require it.
7422         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
7423         Reported by Simon Josefsson.
7424
7425 2010-03-18  Bruno Haible  <bruno@clisp.org>
7426
7427         Fix typo introduced on 2009-12-31.
7428         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
7429         posix_spawn_file_actions_adddup2.
7430
7431 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
7432         and Eric Blake  <eblake@redhat.com>
7433
7434         test-vc-list-files-git: make more robust
7435         * tests/test-vc-list-files-git.sh: Unset problematic environment
7436         variables.  Chain commands together.
7437
7438 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
7439
7440         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
7441         `AC_CHECK_DECL' invocation.
7442
7443 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
7444
7445         * lib/inttostr.c (inttostr): Make sure the invocation of verify
7446         appears before executable statements. Suggested by Petr Sumbera
7447         <Petr.Sumbera@Sun.COM>.
7448
7449 2010-03-14  Bruno Haible  <bruno@clisp.org>
7450
7451         * tests/test-flock.c (test_exclusive): Comment out a test that causes
7452         portability problems. Instead use a simpler test.
7453         (main): Check that invalid arguments are rejected only on Linux.
7454
7455 2010-03-14  Bruno Haible  <bruno@clisp.org>
7456
7457         Fix bug introduced on 2009-12-31.
7458         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7459         gl_PREREQ_SYS_H_WINSOCK2 always.
7460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
7461         SYS_SOCKET_H variable.
7462         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
7463         Update comments.
7464         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
7465         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7466         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7467         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7468         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7469
7470 2010-03-14  Bruno Haible  <bruno@clisp.org>
7471
7472         Fix values returned by sinl, cosl.
7473         * lib/trigl.h: Add specification comments.
7474         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
7475         that combines the values from the precomputed table with the values of
7476         the Chebyshev polynomials.
7477
7478 2010-03-14  Bruno Haible  <bruno@clisp.org>
7479
7480         Fix compilation error when modules 'posix_spawn[p]' are not used.
7481         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
7482         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
7483
7484 2010-03-14  Bruno Haible  <bruno@clisp.org>
7485
7486         Fix compilation error on mingw when module 'time_r' is not used.
7487         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
7488         is 1.
7489         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
7490         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7491         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
7492         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
7493
7494 2010-03-14  Bruno Haible  <bruno@clisp.org>
7495
7496         Fix compilation error with Sun C.
7497         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
7498         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
7499         instead of GCC specific ULONG_LONG_MAX.
7500         * lib/xstrtoll.c: Likewise.
7501         * lib/xstrtoull.c: Likewise.
7502
7503 2010-03-13  Bruno Haible  <bruno@clisp.org>
7504
7505         Allow the user to disable C++ code and tests.
7506         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
7507         (gl_PROG_ANSI_CXX): Require it.
7508
7509 2010-03-13  Bruno Haible  <bruno@clisp.org>
7510
7511         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
7512         cases.
7513
7514 2010-03-13  Bruno Haible  <bruno@clisp.org>
7515
7516         Test that gnulib does not break the standard C++ headers.
7517         * tests/test-locale-c++2.cc: New file.
7518         * modules/locale-tests (Files): Add it.
7519         (Makefile.am): Compile it for test-locale-c++.
7520         * tests/test-math-c++2.cc: New file.
7521         * modules/math-tests (Files): Add it.
7522         (Makefile.am): Compile it for test-math-c++.
7523         * tests/test-signal-c++2.cc: New file.
7524         * modules/signal-tests (Files): Add it.
7525         (Makefile.am): Compile it for test-signal-c++.
7526         * tests/test-stdio-c++2.cc: New file.
7527         * modules/stdio-tests (Files): Add it.
7528         (Makefile.am): Compile it for test-stdio-c++.
7529         * tests/test-stdlib-c++2.cc: New file.
7530         * modules/stdlib-tests (Files): Add it.
7531         (Makefile.am): Compile it for test-stdlib-c++.
7532         * tests/test-string-c++2.cc: New file.
7533         * modules/string-tests (Files): Add it.
7534         (Makefile.am): Compile it for test-string-c++.
7535         * tests/test-time-c++2.cc: New file.
7536         * modules/time-tests (Files): Add it.
7537         (Makefile.am): Compile it for test-time-c++.
7538         Reported by John W. Eaton <jwe@gnu.org>.
7539
7540 2010-03-13  Bruno Haible  <bruno@clisp.org>
7541
7542         * gnulib-tool (func_usage): Clarify which options are available for
7543         --create-testdir and --create-megatestdir.
7544
7545 2010-03-13  Bruno Haible  <bruno@clisp.org>
7546
7547         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
7548         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
7549         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
7550         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7551         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
7552         when appropriate.
7553         Reported by Jim Meyering.
7554
7555 2010-03-12  Simon Josefsson  <simon@josefsson.org>
7556
7557         * gnulib-tool (func_import): Explain origin of code.
7558
7559 2010-03-12  Bruno Haible  <bruno@clisp.org>
7560
7561         Fix problem with automake's definition of CXXLINK.
7562         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
7563         Reported by Simon Josefsson and Ludovic Courtès.
7564
7565 2010-03-12  Bruno Haible  <bruno@clisp.org>
7566
7567         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
7568         stable releases.
7569
7570 2010-03-11  Bruno Haible  <bruno@clisp.org>
7571
7572         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
7573         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
7574         whether the system provides one variant or multiple variants of the
7575         function.
7576         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
7577         C++ compilers.
7578         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
7579         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
7580         Reported by Jim Meyering.
7581
7582 2010-03-09  Simon Josefsson  <simon@josefsson.org>
7583
7584         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
7585
7586 2010-03-08  Bruno Haible  <bruno@clisp.org>
7587
7588         gnulib-tool: Add support for --libtool in --create-testdir.
7589         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
7590         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
7591
7592 2010-03-08  Eric Blake  <eblake@redhat.com>
7593
7594         gnulib-tool.texi: mention possibility of git submodule
7595         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
7596         submodules.
7597         * doc/.gitignore: Ignore another generated file.
7598
7599 2010-03-08  Karl Berry  <karl@gnu.org>
7600
7601         * doc/gnulib-tool.texi (VCS Issues): Mention third option
7602         of committing gnulib files while skipping others.
7603
7604 2010-03-07  Bruno Haible  <bruno@clisp.org>
7605
7606         Tests of module 'wctype' in C++ mode.
7607         * tests/test-wctype-c++.cc: New file.
7608         * modules/wctype-tests (Files): Add it and tests/signature.h.
7609         (Depends-on): Add ansi-c++-opt.
7610         (Makefile.am): Arrange to compile and run test-wctype-c++.
7611
7612         Tests of module 'wchar' in C++ mode.
7613         * tests/test-wchar-c++.cc: New file.
7614         * modules/wchar-tests (Files): Add it and tests/signature.h.
7615         (Depends-on): Add ansi-c++-opt.
7616         (Makefile.am): Arrange to compile and run test-wchar-c++.
7617         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
7618         gl_MODULE_INDICATOR.
7619
7620         Tests of module 'unistd' in C++ mode.
7621         * tests/test-unistd-c++.cc: New file.
7622         * modules/unistd-tests (Files): Add it and tests/signature.h.
7623         (Depends-on): Add ansi-c++-opt.
7624         (Makefile.am): Arrange to compile and run test-unistd-c++.
7625         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
7626         gl_MODULE_INDICATOR.
7627
7628         Tests of module 'time' in C++ mode.
7629         * tests/test-time-c++.cc: New file.
7630         * modules/time-tests (Files): Add it and tests/signature.h.
7631         (Depends-on): Add ansi-c++-opt.
7632         (Makefile.am): Arrange to compile and run test-time-c++.
7633         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7634
7635         Tests of module 'sys_time' in C++ mode.
7636         * tests/test-sys_time-c++.cc: New file.
7637         * modules/sys_time-tests (Files): Add it and tests/signature.h.
7638         (Depends-on): Add ansi-c++-opt.
7639         (Makefile.am): Arrange to compile and run test-sys_time-c++.
7640         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
7641         gl_MODULE_INDICATOR.
7642
7643         Tests of module 'sys_stat' in C++ mode.
7644         * tests/test-sys_stat-c++.cc: New file.
7645         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
7646         (Depends-on): Add ansi-c++-opt.
7647         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
7648         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
7649         gl_MODULE_INDICATOR.
7650
7651         Tests of module 'sys_socket' in C++ mode.
7652         * tests/test-sys_socket-c++.cc: New file.
7653         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
7654         (Depends-on): Add ansi-c++-opt.
7655         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
7656         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
7657         gl_MODULE_INDICATOR.
7658
7659         Tests of module 'sys_select' in C++ mode.
7660         * tests/test-sys_select-c++.cc: New file.
7661         * modules/sys_select-tests (Files): Add it and tests/signature.h.
7662         (Depends-on): Add ansi-c++-opt.
7663         (Makefile.am): Arrange to compile and run test-sys_select-c++.
7664         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
7665         gl_MODULE_INDICATOR.
7666
7667         Tests of module 'sys_ioctl' in C++ mode.
7668         * tests/test-sys_ioctl-c++.cc: New file.
7669         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
7670         (Depends-on): Add ansi-c++-opt.
7671         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
7672         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
7673         gl_MODULE_INDICATOR.
7674
7675         Tests of module 'string' in C++ mode.
7676         * tests/test-string-c++.cc: New file.
7677         * modules/string-tests (Files): Add it and tests/signature.h.
7678         (Depends-on): Add ansi-c++-opt.
7679         (Makefile.am): Arrange to compile and run test-string-c++.
7680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
7681         gl_MODULE_INDICATOR.
7682
7683         Tests of module 'stdlib' in C++ mode.
7684         * tests/test-stdlib-c++.cc: New file.
7685         * modules/stdlib-tests (Files): Add it and tests/signature.h.
7686         (Depends-on): Add ansi-c++-opt.
7687         (Makefile.am): Arrange to compile and run test-stdlib-c++.
7688         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
7689         gl_MODULE_INDICATOR.
7690
7691         Tests of module 'stdio' in C++ mode.
7692         * tests/test-stdio-c++.cc: New file.
7693         * modules/stdio-tests (Files): Add it and tests/signature.h.
7694         (Depends-on): Add ansi-c++-opt.
7695         (Makefile.am): Arrange to compile and run test-stdio-c++.
7696         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
7697         gl_MODULE_INDICATOR.
7698
7699         Tests of module 'spawn' in C++ mode.
7700         * tests/test-spawn-c++.cc: New file.
7701         * modules/spawn-tests (Files): Add it and tests/signature.h.
7702         (Depends-on): Add ansi-c++-opt.
7703         (Makefile.am): Arrange to compile and run test-spawn-c++.
7704         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
7705         gl_MODULE_INDICATOR.
7706
7707         Tests of module 'signal' in C++ mode.
7708         * tests/test-signal-c++.cc: New file.
7709         * modules/signal-tests (Files): Add it and tests/signature.h.
7710         (Depends-on): Add ansi-c++-opt.
7711         (Makefile.am): Arrange to compile and run test-signal-c++.
7712         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
7713         gl_MODULE_INDICATOR.
7714
7715         Tests of module 'search' in C++ mode.
7716         * tests/test-search-c++.cc: New file.
7717         * modules/search-tests (Files): Add it and tests/signature.h.
7718         (Depends-on): Add ansi-c++-opt.
7719         (Makefile.am): Arrange to compile and run test-search-c++.
7720         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
7721         gl_MODULE_INDICATOR.
7722
7723         Tests of module 'math' in C++ mode.
7724         * tests/test-math-c++.cc: New file.
7725         * modules/math-tests (Files): Add it and tests/signature.h.
7726         (Depends-on): Add ansi-c++-opt.
7727         (Makefile.am): Arrange to compile and run test-math-c++.
7728         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7729
7730         Tests of module 'locale' in C++ mode.
7731         * tests/test-locale-c++.cc: New file.
7732         * modules/locale-tests (Files): Add it and tests/signature.h.
7733         (Depends-on): Add ansi-c++-opt.
7734         (Makefile.am): Arrange to compile and run test-locale-c++.
7735         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
7736         gl_MODULE_INDICATOR.
7737
7738         Tests of module 'langinfo' in C++ mode.
7739         * tests/test-langinfo-c++.cc: New file.
7740         * modules/langinfo-tests (Files): Add it and tests/signature.h.
7741         (Depends-on): Add ansi-c++-opt.
7742         (Makefile.am): Arrange to compile and run test-langinfo-c++.
7743         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
7744         gl_MODULE_INDICATOR.
7745
7746         Tests of module 'iconv-h' in C++ mode.
7747         * tests/test-iconv-h-c++.cc: New file.
7748         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
7749         (Depends-on): Add ansi-c++-opt.
7750         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
7751
7752         Tests of module 'glob' in C++ mode.
7753         * tests/test-glob-c++.cc: New file.
7754         * modules/glob-tests (Files): Add it.
7755         (Depends-on): Add ansi-c++-opt.
7756         (Makefile.am): Arrange to compile and run test-glob-c++.
7757
7758         Tests of module 'fcntl-h' in C++ mode.
7759         * tests/test-fcntl-h-c++.cc: New file.
7760         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
7761         (Depends-on): Add ansi-c++-opt.
7762         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
7763         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
7764         gl_MODULE_INDICATOR.
7765
7766         Tests of module 'dirent' in C++ mode.
7767         * tests/test-dirent-c++.cc: New file.
7768         * modules/dirent-tests (Files): Add it and tests/signature.h.
7769         (Depends-on): Add ansi-c++-opt.
7770         (Makefile.am): Arrange to compile and run test-dirent-c++.
7771         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7772         gl_MODULE_INDICATOR.
7773
7774         New module 'ansi-c++-opt'.
7775         * modules/ansi-c++-opt: New file.
7776         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
7777
7778         Document C++ namespace mode.
7779         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
7780
7781         wctype: Avoid #define replacements in C++ mode.
7782         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
7783         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
7784         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
7785         In C++, define a namespaced alias symbol.
7786         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
7787         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
7788         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
7789         rule.
7790
7791         wchar: Avoid #define replacements in C++ mode.
7792         * lib/wchar.in.h: Include c++defs.h.
7793         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
7794         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
7795         symbol.
7796         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
7797         * modules/wchar (Depends-on): Add c++defs.
7798         (Makefile.am): Update wchar.h rule.
7799
7800         unistd: Avoid #define replacements in C++ mode.
7801         * lib/unistd.in.h: Include c++defs.h.
7802         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
7803         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
7804         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
7805         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
7806         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
7807         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
7808         symbol.
7809         (environ): Update.
7810         * modules/unistd (Depends-on): Add c++defs.
7811         (Makefile.am): Update unistd.h rule.
7812
7813         time: Avoid #define replacements in C++ mode.
7814         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
7815         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
7816         define a namespaced alias symbol.
7817         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
7818         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
7819         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
7820         * modules/time (Depends-on): Add c++defs, warn-on-use.
7821         (Makefile.am): Update time.h rule.
7822         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7823         * modules/nanosleep (configure.ac): Likewise.
7824         * modules/strptime (configure.ac): Likewise.
7825         * modules/timegm (configure.ac): Likewise.
7826
7827         sys_time: Avoid #define replacements in C++ mode.
7828         * lib/sys_time.in.h: Include c++defs.h.
7829         (gettimeofday): In C++, define a namespaced alias symbol.
7830         * modules/sys_time (Depends-on): Add c++defs.
7831         (Makefile.am): Update sys/time.h rule.
7832
7833         sys_stat: Avoid #define replacements in C++ mode.
7834         * lib/sys_stat.in.h: Include c++defs.h.
7835         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
7836         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
7837         namespaced alias symbol.
7838         In C++, define a namespaced alias symbol.
7839         * modules/sys_stat (Depends-on): Add c++defs.
7840         (Makefile.am): Update sys/stat.h rule.
7841
7842         sys_socket: Avoid #define replacements in C++ mode.
7843         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
7844         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
7845         definitions also when the system has a <sys/socket.h>.
7846         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7847         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
7848         In C++, define a namespaced alias symbol.
7849         * modules/sys_socket (Depends-on): Add c++defs.
7850         (Makefile.am): Update sys/socket.h rule.
7851
7852         sys_select: Avoid #define replacements in C++ mode.
7853         * lib/sys_select.in.h: Include c++defs.h. Enable the function
7854         definitions also when the system has a <sys/select.h>.
7855         (select): In C++, define a namespaced alias symbol.
7856         * modules/sys_select (Depends-on): Add c++defs.
7857         (Makefile.am): Update sys/select.h rule.
7858
7859         sys_ioctl: Avoid #define replacements in C++ mode.
7860         * lib/sys_ioctl.in.h: Include c++defs.h.
7861         (ioctl): In C++, define a namespaced alias symbol.
7862         * modules/sys_ioctl (Depends-on): Add c++defs.
7863         (Makefile.am): Update sys/ioctl.h rule.
7864
7865         string: Avoid #define replacements in C++ mode.
7866         * lib/string.in.h: Include c++defs.h.
7867         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
7868         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7869         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7870         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
7871         strsignal, strverscmp): In C++, define a namespaced alias symbol.
7872         * modules/string (Depends-on): Add c++defs.
7873         (Makefile.am): Update string.h rule.
7874
7875         stdlib: Avoid #define replacements in C++ mode.
7876         * lib/stdlib.in.h: Include c++defs.h.
7877         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
7878         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
7879         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
7880         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
7881         symbol.
7882         * modules/stdlib (Depends-on): Add c++defs.
7883         (Makefile.am): Update stdlib.h rule.
7884
7885         stdio: Avoid #define replacements in C++ mode.
7886         * lib/stdio.in.h: Include c++defs.h.
7887         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
7888         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
7889         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
7890         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
7891         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
7892         namespaced alias symbol.
7893         * modules/stdio (Depends-on): Add c++defs.
7894         (Makefile.am): Update stdio.h rule.
7895
7896         spawn: Avoid #define replacements in C++ mode.
7897         * lib/spawn.in.h: Include c++defs.h.
7898         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7899         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7900         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7901         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7902         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7903         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7904         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7905         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7906         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7907         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7908         In C++, define a namespaced alias symbol.
7909         * modules/spawn (Depends-on): Add c++defs.
7910         (Makefile.am): Update spawn.h rule.
7911
7912         signal: Avoid #define replacements in C++ mode.
7913         * lib/signal.in.h: Include c++defs.h.
7914         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7915         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
7916         namespaced alias symbol.
7917         * modules/signal (Depends-on): Add c++defs.
7918         (Makefile.am): Update signal.h rule.
7919
7920         search: Avoid #define replacements in C++ mode.
7921         * lib/search.in.h: Include c++defs.h.
7922         (_gl_search_compar_fn, _gl_search_action_fn): New types.
7923         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
7924         symbol.
7925         * modules/search (Depends-on): Add c++defs.
7926         (Makefile.am): Update search.h rule.
7927
7928         math: Avoid #define replacements in C++ mode.
7929         * lib/math.in.h: Include c++defs.h.
7930         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
7931         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
7932         trunc, truncl): In C++, define a namespaced alias symbol.
7933         * modules/math (Depends-on): Add c++defs.
7934         (Makefile.am): Update math.h rule.
7935
7936         locale: Avoid #define replacements in C++ mode.
7937         * lib/locale.in.h: Include c++defs.h.
7938         (duplocale): In C++, define a namespaced alias symbol.
7939         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
7940         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
7941         * modules/locale (Depends-on): Add c++defs.
7942         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
7943
7944         langinfo: Avoid #define replacements in C++ mode.
7945         * lib/langinfo.in.h: Include c++defs.h.
7946         (nl_langinfo): In C++, define a namespaced alias symbol.
7947         * modules/langinfo (Depends-on): Add c++defs.
7948         (Makefile.am): Update langinfo.h rule.
7949
7950         iconv-h: Avoid #define replacements in C++ mode.
7951         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
7952         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
7953         symbol.
7954         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7955         whenever iconv is present.
7956         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
7957         (Makefile.am): Update iconv.h rule.
7958
7959         glob: Avoid #define replacements in C++ mode.
7960         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
7961         (_gl_glob_errfunc_fn): New type.
7962         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
7963         symbol.
7964         * modules/glob (Depends-on): Add c++defs, warn-on-use.
7965         (Makefile.am): Update glob.h rule.
7966
7967         fcntl-h: Avoid #define replacements in C++ mode.
7968         * lib/fcntl.in.h: Include c++defs.h.
7969         (fcntl, open, openat): In C++, define a namespaced alias symbol.
7970         * modules/fcntl-h (Depends-on): Add c++defs.
7971         (Makefile.am): Update fcntl.h rule.
7972
7973         dirent: Avoid #define replacements in C++ mode.
7974         * lib/dirent.in.h: Include c++defs.h.
7975         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
7976         namespaced alias symbol.
7977         (dirfd): Update declaration.
7978         * modules/dirent (Depends-on): Add c++defs.
7979         (Makefile.am): Update dirent.h rule.
7980
7981         ctype: Make it usable in C++ code.
7982         * lib/ctype.in.h: Include c++defs.h.
7983         (isblank): Declare as extern "C".
7984         * modules/ctype (Depends-on): Add c++defs.
7985         (Makefile.am): Update ctype.h rule.
7986
7987         New module 'c++defs'.
7988         * modules/c++defs: New file.
7989         * build-aux/c++defs.h: New file.
7990         Reported by John W. Eaton <jwe@gnu.org>.
7991
7992 2010-03-07  Bruno Haible  <bruno@clisp.org>
7993
7994         logb: Provide missing declaration for Cygwin.
7995         * lib/math.in.h (logb): New declaration.
7996         * m4/logb.m4: New file.
7997         * modules/logb (Files): Add m4/logb.m4.
7998         (Depends-on): Add math.
7999         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8000         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8002         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8003         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8004
8005 2010-03-07  Bruno Haible  <bruno@clisp.org>
8006
8007         Fix test-cond link error.
8008         * tests/test-cond.c: Include <stdio.h>.
8009
8010 2010-03-07  Bruno Haible  <bruno@clisp.org>
8011
8012         Fix test-dirent-safer link error.
8013         * modules/dirent-safer-tests (Makefile.am): Define
8014         test_dirent_safer_LDADD.
8015
8016 2010-03-07  Bruno Haible  <bruno@clisp.org>
8017
8018         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8019         among default module list.
8020
8021 2010-03-07  Bruno Haible  <bruno@clisp.org>
8022
8023         Fix link error on platforms with GNU libiconv.
8024         * modules/unistr/u8-strcoll-tests (Makefile): Define
8025         test_u8_strcoll_LDADD.
8026         * modules/unistr/u16-strcoll-tests (Makefile): Define
8027         test_u16_strcoll_LDADD.
8028         * modules/unistr/u32-strcoll-tests (Makefile): Define
8029         test_u32_strcoll_LDADD.
8030
8031 2010-03-07  Bruno Haible  <bruno@clisp.org>
8032
8033         Use POSIX declarations for socket functions.
8034         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8035         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8036         rpl_sendto): Change declaration to match POSIX.
8037         * lib/connect.c (rpl_connect): Likewise.
8038         * lib/accept.c (rpl_accept): Likewise.
8039         * lib/bind.c (rpl_bind): Likewise.
8040         * lib/getpeername.c (rpl_getpeername): Likewise.
8041         * lib/getsockname.c (rpl_getsockname): Likewise.
8042         * lib/recv.c (rpl_recv): Likewise.
8043         * lib/send.c (rpl_send): Likewise.
8044         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8045         * lib/sendto.c (rpl_sendto): Likewise.
8046
8047 2010-03-06  Bruno Haible  <bruno@clisp.org>
8048
8049         Clarify access, euidaccess, faccessat.
8050         * doc/posix-functions/faccessat.texi: Mention security problem under
8051         "Other problems", not "Portability problems".
8052         * doc/posix-functions/access.texi: Likewise. Mention a related security
8053         problem.
8054         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8055         * lib/euidaccess.c: Add comments about platforms.
8056         * lib/unistd.in.h (access, euidaccess): Add warnings.
8057
8058 2010-03-07  Bruno Haible  <bruno@clisp.org>
8059
8060         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8061         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8062         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8063         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8064         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8065         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8066         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8067         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8068         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8070         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8071         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8072         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8073         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8074         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8075         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8076         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8077         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8078         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8079         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8080         Likewise.
8081         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8082         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8083         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8084         Likewise.
8085         * tests/test-spawn.c (main): Make it work when
8086         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8087
8088 2010-03-07  Bruno Haible  <bruno@clisp.org>
8089
8090         Fix incorrect Makefile.am generation in German locale.
8091         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8092         Execute sed command with character range in C locale.
8093
8094 2010-03-06  Bruno Haible  <bruno@clisp.org>
8095
8096         Tests for module 'iconv-h'.
8097         * modules/iconv-h-tests: New file.
8098         * tests/test-iconv-h.c: New file.
8099
8100         New module 'iconv-h'.
8101         * modules/iconv-h: New file.
8102         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8103         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8104         (configure.ac): Remove gl_ICONV_H.
8105         (Makefile.am): Remove rule for iconv.h.
8106
8107 2010-03-06  Bruno Haible  <bruno@clisp.org>
8108
8109         More consistent naming of *.m4 files.
8110         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8111         * modules/wctype (Files): Update.
8112
8113         More consistent naming of *.m4 files.
8114         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8115         * modules/wchar (Files): Update.
8116
8117 2010-03-06  Jim Meyering  <meyering@redhat.com>
8118
8119         euidaccess: relax license to LGPLv2+
8120         * modules/euidaccess (License): Relax to LGPLv2+.
8121
8122 2010-03-06  Bruno Haible  <bruno@clisp.org>
8123
8124         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8125         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8126         (Makefile.am): Augment lib_SOURCES instead.
8127
8128 2010-03-04  Jim Meyering  <meyering@redhat.com>
8129
8130         utime: remove obsolete module
8131         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8132         unnecessary for years, and has been marked as obsolete for 10 months.
8133         * modules/utime: Remove file.
8134         * lib/utime.c: Remove file.
8135         * m4/utime.m4: Remove file.
8136         * m4/utimes-null.m4: Remove file.
8137         * doc/posix-functions/utime.texi (utime): Remove reference to
8138         the module.  Move the sole "fixed by gnulib" item into the
8139         "problems not fixed by Gnulib" list.
8140         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8141
8142 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8143
8144         * modules/exit (License): Relax license to LGPLv2+.
8145         (Status): Mark as obsolete.
8146         * NEWS: Mention deprecated 'exit' module.
8147         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8148         of now obsolete 'exit'.
8149
8150 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8151
8152         fts-lgpl: remove unused module
8153         * modules/fts-lgpl: Remove.
8154         * MODULES.html.sh (func_all_modules): Adjust.
8155         * check-module (find_included_lib_files): Adjust.
8156         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8157
8158 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8159
8160         copy-acl: enhance Solaris ACL error handling
8161         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8162         * lib/set-mode-acl.c (qset_acl): Likewise.
8163
8164 2010-03-02  Bruno Haible  <bruno@clisp.org>
8165
8166         spawn: Don't override the system defined values on FreeBSD 8.
8167         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8168         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8169         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8170         if HAVE_POSIX_SPAWN is 1.
8171         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8172
8173 2010-03-01  Bruno Haible  <bruno@clisp.org>
8174
8175         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8176         regarding Automake.
8177
8178 2010-02-25  Bruno Haible  <bruno@clisp.org>
8179
8180         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8181         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8182         setting, not afterwards.
8183         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8184
8185 2010-02-24  Eric Blake  <eblake@redhat.com>
8186
8187         bootstrap, git-version-gen: use timestamp
8188         * build-aux/git-version-gen (scriptversion): Force UTC.
8189         * build-aux/bootstrap (scriptversion): New variable.
8190
8191         bootstrap: allow older git
8192         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8193         older than 1.6.4.  Requested by the libvirt project.
8194
8195 2010-02-23  Eric Blake  <eblake@redhat.com>
8196
8197         warn-on-use: work with old autoconf
8198         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8199         AS_VAR semantics of autoconf 2.60.
8200         Reported by Bruno Haible.
8201
8202         bootstrap: improve some comments
8203         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8204         clarification comments.
8205
8206         gettimeofday: provide correct function
8207         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8208         when replacement is declared, otherwise provide gettimeofday.
8209         Reported by Michael Goffioul.
8210
8211 2010-02-23  Jim Meyering  <meyering@redhat.com>
8212
8213         lib-ignore: relax license to "unlimited", not LGPLv2+
8214         * modules/lib-ignore (License): Relax to "unlimited".
8215
8216 2010-02-23  Jim Meyering  <meyering@redhat.com>
8217
8218         lib-ignore: relax license to LGPLv2+
8219         * modules/lib-ignore (License): Relax to LGPLv2+.
8220
8221 2010-02-22  Eric Blake  <eblake@redhat.com>
8222
8223         lseek: avoid bash 3.2 broken pipe bug
8224         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8225         warning from bash 3.2.
8226         Reported by Ben Pfaff, with analysis from Bruno Haible.
8227
8228         bootstrap: support non-FSF copyright holder
8229         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8230         bootstrap.conf override of COPYRIGHT_HOLDER.
8231         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8232
8233         bootstrap: interoperate with gettext 0.14.1
8234         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8235
8236         bootstrap: allow for alternate submodule location
8237         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8238         hardcoding submodule location.
8239         (gnulib_mk): Allow direct use of Makefile.am.
8240
8241         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8242         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8243         rather than reconfiguring where the submodule points.
8244
8245         gettimeofday: restore support for platforms that lack function
8246         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
8247         replacement if function is missing.
8248         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
8249         * modules/sys_time (Makefile.am): Substitute it.
8250         * lib/sys_time.in.h (gettimeofday): Check it.
8251         Reported by Michael Goffioul.
8252
8253 2010-02-21  Bruno Haible  <bruno@clisp.org>
8254
8255         * lib/stdio.in.h (obstack_printf): Fix typo.
8256
8257 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
8258
8259         vc-list-files: use bzr ls's -R option
8260         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
8261         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
8262
8263 2010-02-21  Jim Meyering  <meyering@redhat.com>
8264
8265         init.sh: fix EXEEXT shims to work also for names like test-prog
8266         * tests/init.sh: Re-exec a better shell, when needed.
8267         If the current shell lacks support for posix $(...), an init.sh-using
8268         test will now try to find a shell that supports that.  If EXEEXT is
8269         nonempty, we also require support for hyphen-in-alias-name and shell
8270         substitutions like ${var#glob}.  Failure to find such a shell results
8271         in a skipped test.
8272
8273 2010-02-21  Bruno Haible  <bruno@clisp.org>
8274
8275         Really work around around "broken pipe" error message from bash 3.2.
8276         * gnulib-tool (func_reset_sigpipe): Remove function.
8277         (echo): In bash 3.2, define to a function that uses printf.
8278         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
8279
8280 2010-02-20  Bruno Haible  <bruno@clisp.org>
8281
8282         Restore support for automake 1.9.6 with autoconf 2.61.
8283         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
8284         Reported by James Youngman <jay@gnu.org>.
8285
8286 2010-02-20  Bruno Haible  <bruno@clisp.org>
8287
8288         Improve *printf warning condition.
8289         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8290         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8291         and the function is overridden due to SIGPIPE emulation.
8292
8293 2010-02-20  Bruno Haible  <bruno@clisp.org>
8294
8295         * lib/stdio.in.h: Tweak comments.
8296
8297 2010-02-19  Bruno Haible  <bruno@clisp.org>
8298
8299         Make it easier to find modules. New gnulib-tool option '--find'.
8300         * gnulib-tool: New option --find.
8301         (func_usage): Document it.
8302         (func_sanitize_modulelist): New function, extracted from
8303         func_all_modules.
8304         (func_all_modules): Invoke it.
8305         * doc/gnulib-tool.texi (Which modules?): New node.
8306
8307 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8308
8309         * lib/sys_select.in.h: Provide select replacement even if
8310         sys/select.h exists on a system, for Interix.
8311
8312 2010-02-18  Jim Meyering  <meyering@redhat.com>
8313
8314         init.sh: don't use $(...) just yet
8315         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8316         to accommodate e.g., Solaris' /bin/sh.
8317
8318 2010-02-17  Bruno Haible  <bruno@clisp.org>
8319
8320         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8321         Reported by Ludovic Courtès <ludo@gnu.org>.
8322
8323 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8324
8325         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8326         linking with -lintl.
8327
8328 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8329
8330         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8331         if not provided by the system's netdb.h.  Reported by
8332         ludo@gnu.org (Ludovic Courtès).
8333
8334 2010-02-15  Jim Meyering  <meyering@redhat.com>
8335
8336         init.sh: improve portability and efficiency
8337         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8338         "dummy" in a for loop.
8339         Use '!', not '^' to select the complement of a character set used
8340         in a "case" statement.
8341         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8342         Suggestions from Eric Blake.
8343
8344         init.sh: automatically accommodate programs with the .exe suffix
8345         Automatically arrange for an invocation of "prog" to execute the
8346         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8347         may use the simpler "prog", yet still work when built on a system
8348         that requires specifying the added suffix.
8349         Do this by constructing a function named "prog" that invokes
8350         "prog.exe" for each .exe file in selected directories.
8351         * tests/init.sh (find_exe_basenames_): New function.
8352         (create_exe_shim_functions_): New function.
8353         (path_prepend_): Use it.
8354
8355         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8356         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8357         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8358
8359 2010-02-14  Jim Meyering  <meyering@redhat.com>
8360
8361         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8362         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8363         (sc_prohibit_hash_pjw_without_use): New rule.
8364
8365         maint.mk: allow the default upload destination dir to be overridden
8366         * top/maint.mk (upload_dest_dir_): Define with a default that
8367         preserves the status quo.
8368         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8369         Reported by Peter Simons.
8370
8371         maint.mk: prohibit inclusion of "hash.h" without_use
8372         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8373
8374 2010-02-10  Jim Meyering  <meyering@redhat.com>
8375
8376         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8377         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8378
8379 2010-02-09  Eric Blake  <ebb9@byu.net>
8380         and Bruno Haible  <bruno@clisp.org>
8381
8382         obstack-printf-posix: ensure declaration
8383         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8384         extracted from gl_FUNC_OBSTACK_PRINTF.
8385         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8386         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8387         Likewise.
8388         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8389         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8390         0.
8391
8392 2010-02-08  Bruno Haible  <bruno@clisp.org>
8393
8394         gnulib-tool: Fix typo in 2010-02-07 commit.
8395         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8396         Reported by Eric Blake.
8397
8398 2010-02-07  Bruno Haible  <bruno@clisp.org>
8399
8400         gnulib-tool: Fix up caching patches.
8401         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8402         option --no-cache. Use associative arrays when supported by the shell.
8403         (sed_comments): New variable.
8404         (modcache): Renamed from do_cache.
8405         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8406         abbreviate unnecessarily.
8407         (have_associative): New variable.
8408         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8409         way also for ksh and zsh.
8410         (func_init_sed_convert_to_cache_statements): New function, extracted
8411         from func_cache_lookup_module. Add support for associative arrays.
8412         Don't set the c_MODULE_cached variable here. Ignore all lines before
8413         the first field header. Remove only the final newline, not all trailing
8414         newlines. Support empty fields correctly. Limit the use of 'eval' to
8415         assignments.
8416         (func_get_description, func_get_status, func_get_notice,
8417         func_get_applicability, func_get_filelist, func_get_dependencies,
8418         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
8419         func_get_automake_snippet, func_get_include_directive,
8420         func_get_link_directive, func_get_license, func_get_maintainer):
8421         Update documentation. List the unoptimized code first. Add support for
8422         associative arrays. Limit the use of 'eval' to assignments.
8423         (func_get_applicability): Undo stylistic pessimisations.
8424         (func_get_automake_snippet, func_get_include_directive): Reduce code
8425         duplication.
8426         (func_modules_transitive_closure, func_modules_add_dummy,
8427         func_modules_notice, func_modules_to_filelist, func_add_file,
8428         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
8429         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
8430         func_create_testdir, func_create_megatestdir): Update documentation.
8431
8432 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8433
8434         * gnulib-tool (func_cache_lookup_module): Store the module name
8435         belonging to the cache variable; error out if two different
8436         module names map to the same cache variable name.
8437
8438 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8439
8440         gnulib-tool: Make caching optional.
8441         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
8442         Update matching short versions of --no-changelog.
8443         (func_usage): Update.
8444         (sed_extract_cache_prog): Renamed from ...
8445         (sed_extract_prog): ... this; revert to old extraction script.
8446         (func_get_description, func_get_status)
8447         (func_get_notice, func_get_applicability, func_get_filelist)
8448         (func_get_dependencies, func_get_autoconf_early_snippet)
8449         (func_get_autoconf_snippet, func_get_automake_snippet)
8450         (func_get_include_directive, func_get_link_directive)
8451         (func_get_license, func_get_maintainer): If $do_cache is false,
8452         use old, non-caching extraction scripts.
8453         Suggestion by Bruno Haible.
8454
8455 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8456
8457         gnulib-tool: cache module metainformation.
8458         * gnulib-tool (sed_extract_prog): Match newline before each
8459         header, and rewrite header to a shell variable suffix.
8460         (func_cache_var, func_cache_lookup_module): New functions,
8461         to turn a module name into a cache variable prefix, and to
8462         look up and cache module metainformation.
8463         (func_get_description, func_get_status)
8464         (func_get_notice, func_get_applicability, func_get_filelist)
8465         (func_get_dependencies, func_get_autoconf_early_snippet)
8466         (func_get_autoconf_snippet, func_get_automake_snippet)
8467         (func_get_include_directive, func_get_link_directive)
8468         (func_get_license, func_get_maintainer): Use
8469         func_cache_lookup_module.
8470
8471 2010-02-07  Bruno Haible  <bruno@clisp.org>
8472
8473         fnctl: Fix missing dependency.
8474         * modules/fcntl (Depends-on): Add getdtablesize.
8475         Reported by John W. Eaton <jwe@gnu.org>.
8476
8477 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8478
8479         Argp: fix recognition of short alias options.
8480
8481         * lib/argp-parse.c (convert_options): Fix improper use of
8482         `|' between character values.
8483         * tests/test-argp.c (group1_option): New alias option
8484         --read (-r).
8485         (group1_parser): Special handling for 'r'.
8486         (test15): New test case.
8487         (test_fun): Add test15.
8488         * tests/test-argp-2.sh: Update expected --help and --usage
8489         outputs.
8490
8491 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8492
8493         * tests/test-argp.c: Fix indentation.
8494
8495 2010-02-04  Eric Blake  <ebb9@byu.net>
8496
8497         gettimeofday: expose type of second argument
8498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
8499         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
8500         * tests/test-gettimeofday.c: Use it to silence warning.
8501         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
8502         the issue.
8503
8504 2010-02-03  Jim Meyering  <meyering@redhat.com>
8505
8506         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
8507         * lib/regcomp.c (TYPE_SIGNED): Define.
8508         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
8509
8510         regcomp.c: avoid a new -Wshadow warning
8511         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
8512
8513 2010-02-01  Jim Meyering  <meyering@redhat.com>
8514
8515         removing useless parentheses in cpp #define directives
8516         For motivation, see commit c0221df4, "define STREQ(a,b)
8517         consistently, removing useless parentheses"
8518         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
8519         * lib/mountlist.c (MNT_IGNORE): Likewise.
8520         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
8521
8522 2010-02-01  Eric Blake  <ebb9@byu.net>
8523
8524         sys_time: use link-warning
8525         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
8526         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
8527         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
8528         * modules/sys_time (Depends-on): Add warn-on-use.
8529         (Makefile.am): Always build replacement.
8530         (configure.ac): Update substitutions.
8531         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
8532         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
8533         bother with SYS_TIME_H.
8534         * modules/gettimeofday (configure.ac): Declare indicator.
8535         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
8536         in use.
8537
8538         closein-tests: silence compiler warning
8539         * tests/test-closein.c (main): Ignore fread result.
8540         * modules/closein-tests (Depends-on): Add ignore-value.
8541
8542         tests: silence warning about system return
8543         * tests/test-areadlink-with-size.c (main): Ignore system result.
8544         * tests/test-areadlink.c (main): Likewise.
8545         * tests/test-areadlinkat-with-size.c (main): Likewise.
8546         * tests/test-areadlinkat.c (main): Likewise.
8547         * tests/test-canonicalize-lgpl.c (main): Likewise.
8548         * tests/test-canonicalize.c (main): Likewise.
8549         * tests/test-chown.c (main): Likewise.
8550         * tests/test-fchownat.c (main): Likewise.
8551         * tests/test-fdutimensat.c (main): Likewise.
8552         * tests/test-fstatat.c (main): Likewise.
8553         * tests/test-futimens.c (main): Likewise.
8554         * tests/test-lchown.c (main): Likewise.
8555         * tests/test-link.c (main): Likewise.
8556         * tests/test-linkat.c (main): Likewise.
8557         * tests/test-lstat.c (main): Likewise.
8558         * tests/test-mkdir.c (main): Likewise.
8559         * tests/test-mkdirat.c (main): Likewise.
8560         * tests/test-mkfifo.c (main): Likewise.
8561         * tests/test-mkfifoat.c (main): Likewise.
8562         * tests/test-mknod.c (main): Likewise.
8563         * tests/test-readlink.c (main): Likewise.
8564         * tests/test-remove.c (main): Likewise.
8565         * tests/test-rename.c (main): Likewise.
8566         * tests/test-renameat.c (main): Likewise.
8567         * tests/test-rmdir.c (main): Likewise.
8568         * tests/test-symlink.c (main): Likewise.
8569         * tests/test-symlinkat.c (main): Likewise.
8570         * tests/test-unlink.c (main): Likewise.
8571         * tests/test-unlinkat.c (main): Likewise.
8572         * tests/test-utimens.c (main): Likewise.
8573         * tests/test-utimensat.c (main): Likewise.
8574         * modules/areadlink-tests (Depends-on): Add ignore-value.
8575         * modules/areadlink-with-size-tests (Depends-on): Likewise.
8576         * modules/areadlinkat-tests (Depends-on): Likewise.
8577         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
8578         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8579         * modules/canonicalize-tests (Depends-on): Likewise.
8580         * modules/chown-tests (Depends-on): Likewise.
8581         * modules/fdutimensat-tests (Depends-on): Likewise.
8582         * modules/futimens-tests (Depends-on): Likewise.
8583         * modules/lchown-tests (Depends-on): Likewise.
8584         * modules/link-tests (Depends-on): Likewise.
8585         * modules/linkat-tests (Depends-on): Likewise.
8586         * modules/lstat-tests (Depends-on): Likewise.
8587         * modules/mkdir-tests (Depends-on): Likewise.
8588         * modules/mkfifo-tests (Depends-on): Likewise.
8589         * modules/mkfifoat-tests (Depends-on): Likewise.
8590         * modules/mknod-tests (Depends-on): Likewise.
8591         * modules/openat-tests (Depends-on): Likewise.
8592         * modules/readlink-tests (Depends-on): Likewise.
8593         * modules/remove-tests (Depends-on): Likewise.
8594         * modules/rename-tests (Depends-on): Likewise.
8595         * modules/renameat-tests (Depends-on): Likewise.
8596         * modules/rmdir-tests (Depends-on): Likewise.
8597         * modules/symlink-tests (Depends-on): Likewise.
8598         * modules/symlinkat-tests (Depends-on): Likewise.
8599         * modules/unlink-tests (Depends-on): Likewise.
8600         * modules/utimens-tests (Depends-on): Likewise.
8601         * modules/utimensat-tests (Depends-on): Likewise.
8602
8603 2010-01-31  Bruno Haible  <bruno@clisp.org>
8604
8605         Perform the same test for many <math.h> functions.
8606         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
8607         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
8608         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
8609         of gl_MATHFUNC.
8610         * modules/acos (configure.ac): Likewise.
8611         * modules/asin (configure.ac): Likewise.
8612         * modules/atan (configure.ac): Likewise.
8613         * modules/atan2 (configure.ac): Likewise.
8614         * modules/cbrt (configure.ac): Likewise.
8615         * modules/copysign (configure.ac): Likewise.
8616         * modules/cos (configure.ac): Likewise.
8617         * modules/cosh (configure.ac): Likewise.
8618         * modules/erf (configure.ac): Likewise.
8619         * modules/erfc (configure.ac): Likewise.
8620         * modules/exp (configure.ac): Likewise.
8621         * modules/fmod (configure.ac): Likewise.
8622         * modules/hypot (configure.ac): Likewise.
8623         * modules/j0 (configure.ac): Likewise.
8624         * modules/j1 (configure.ac): Likewise.
8625         * modules/jn (configure.ac): Likewise.
8626         * modules/lgamma (configure.ac): Likewise.
8627         * modules/log (configure.ac): Likewise.
8628         * modules/log10 (configure.ac): Likewise.
8629         * modules/log1p (configure.ac): Likewise.
8630         * modules/pow (configure.ac): Likewise.
8631         * modules/remainder (configure.ac): Likewise.
8632         * modules/sin (configure.ac): Likewise.
8633         * modules/sinh (configure.ac): Likewise.
8634         * modules/tan (configure.ac): Likewise.
8635         * modules/tanh (configure.ac): Likewise.
8636         * modules/y0 (configure.ac): Likewise.
8637         * modules/y1 (configure.ac): Likewise.
8638         * modules/yn (configure.ac): Likewise.
8639         Suggested by Paolo Bonzini.
8640
8641 2010-01-31  Bruno Haible  <bruno@clisp.org>
8642
8643         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
8644
8645 2010-01-31  Bruno Haible  <bruno@clisp.org>
8646
8647         Work around getdelim() bug on FreeBSD 8.0.
8648         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
8649         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
8650         not work.
8651         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
8652         is 1.
8653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
8654         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
8655         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
8656         a non-zero size.
8657         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
8658
8659 2010-01-31  Bruno Haible  <bruno@clisp.org>
8660
8661         Work around getline() bug on FreeBSD 8.0.
8662         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
8663         and a non-zero size.
8664         * tests/test-getline.c (main): Likewise.
8665         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
8666         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
8667
8668 2010-01-28  Eric Blake  <ebb9@byu.net>
8669
8670         regex: fix build failure
8671         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
8672         platforms.
8673
8674 2010-01-28  Jim Meyering  <meyering@redhat.com>
8675
8676         regex: do not ignore memory allocation failure
8677         * lib/regex_internal.c (create_cd_newstate): Detect
8678         re_node_set_init_copy failure.   Extracted from glibc commit
8679         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8680
8681         regex: sync more white-space changes from libc
8682         * lib/regex_internal.c: White-space only changes.
8683         * lib/regexec.c: Likewise.
8684
8685         regex: add many uses of __attribute_warn_unused_result__
8686         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
8687         * lib/regexec.c: Likewise.
8688         Extracted from a messy glibc commit.
8689
8690         regcomp.c: spelling and merge-artifact from glibc
8691         * lib/regcomp.c: Merge remainder of glibc's
8692         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8693
8694         regcomp.c: sync white-space changes from glibc
8695         * lib/regcomp.c: Merge to accommodate white space
8696         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8697
8698         regcomp.c: do not ignore internal return values
8699         * lib/regcomp.c: Do not ignore internal return values.
8700         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
8701         but without its white-space changes and spelling fixes.
8702
8703         regex_internal.h: define __attribute_warn_unused_result__
8704         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
8705
8706         maint: add a syntax-check rule to check for vulnerable Makefile.in
8707         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
8708
8709 2010-01-27  Jim Meyering  <meyering@redhat.com>
8710
8711         ncftpput-ftp: clean up spaces
8712         * build-aux/ncftpput-ftp: Make Copyright line consistent.
8713         Remove trailing blanks.
8714
8715 2010-01-27  Simon Josefsson  <simon@josefsson.org>
8716
8717         * build-aux/git-version-gen: Fix copyright statement.
8718         * build-aux/gnupload: Likewise.
8719         * tests/test-arcfour.c: Likewise.
8720         * tests/test-arctwo.c: Likewise.
8721         * tests/test-count-one-bits.c: Likewise.
8722         * tests/test-crc.c: Likewise.
8723         * tests/test-des.c: Likewise.
8724         * tests/test-gc-arcfour.c: Likewise.
8725         * tests/test-gc-arctwo.c: Likewise.
8726         * tests/test-gc-des.c: Likewise.
8727         * tests/test-gc-hmac-md5.c: Likewise.
8728         * tests/test-gc-hmac-sha1.c: Likewise.
8729         * tests/test-gc-md2.c: Likewise.
8730         * tests/test-gc-md4.c: Likewise.
8731         * tests/test-gc-md5.c: Likewise.
8732         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8733         * tests/test-gc-rijndael.c: Likewise.
8734         * tests/test-gc-sha1.c: Likewise.
8735         * tests/test-gc.c: Likewise.
8736         * tests/test-gethostname.c: Likewise.
8737         * tests/test-gettimeofday.c: Likewise.
8738         * tests/test-hash.c: Likewise.
8739         * tests/test-hmac-md5.c: Likewise.
8740         * tests/test-hmac-sha1.c: Likewise.
8741         * tests/test-md2.c: Likewise.
8742         * tests/test-md4.c: Likewise.
8743         * tests/test-md5.c: Likewise.
8744         * tests/test-memchr.c: Likewise.
8745         * tests/test-memchr2.c: Likewise.
8746         * tests/test-memcmp.c: Likewise.
8747         * tests/test-memmem.c: Likewise.
8748         * tests/test-memrchr.c: Likewise.
8749         * tests/test-rawmemchr.c: Likewise.
8750         * tests/test-read-file.c: Likewise.
8751         * tests/test-rijndael.c: Likewise.
8752         * tests/test-sockets.c: Likewise.
8753         * tests/test-strchrnul.c: Likewise.
8754         * tests/test-strstr.c: Likewise.
8755         * tests/test-strtod.c: Likewise.
8756         * build-aux/ncftpput-ftp: Likewise.
8757
8758 2010-01-26  Eric Blake  <ebb9@byu.net>
8759
8760         ignore-value: update recommended header name
8761         * modules/ignore-value (Include): Only use <> for headers that
8762         exist in glibc.
8763
8764 2010-01-26  Jim Meyering  <meyering@redhat.com>
8765
8766         test-userspec.c: avoid compiler warnings
8767         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
8768         and "initialization discards qualifiers..." warnings.
8769         Put the first "uid" in its own scope, and make char* members "const".
8770
8771 2010-01-25  Bruno Haible  <bruno@clisp.org>
8772
8773         gnulib-tool: Make warning diagnostics consistent.
8774         * gnulib-tool (func_warning): New function.
8775         Use it everywhere where gnulib-tool produces output to stderr and it is
8776         not a fatal error.
8777
8778 2010-01-25  Bruno Haible  <bruno@clisp.org>
8779
8780         Fix test dependencies.
8781         * modules/xstrtol-tests (Depends-on): Add inttypes.
8782         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
8783
8784 2010-01-25 Pádraig Brady <P@draigBrady.com>
8785
8786         syntax-check: detect incorrect boolean macro values in config.h
8787         * modules/maintainer-makefile (configure.ac): Parameterize the location
8788         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
8789         The logic is from Eric Blake and the location indicated by Jim Meyering.
8790         Note the more natural CONFIG_HEADER name is prohibited by automake
8791         for backwards compatibility reasons.
8792         * top/maint.mk (sc_Wundef_boolean): New rule.
8793
8794 2010-01-25  Jim Meyering  <meyering@redhat.com>
8795
8796         bootstrap: detect MacOS 10.6's shasum, too
8797         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
8798         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
8799
8800 2010-01-23  Jim Meyering  <meyering@redhat.com>
8801
8802         xstrtoll: new module
8803         * modules/xstrtoll: New file.
8804         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
8805         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
8806         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
8807         ./configure fails if you use this module and lack "long long".
8808         * modules/xstrtoll-tests: New module.
8809         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
8810         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
8811         new init.sh-based test framework.
8812
8813 2010-01-24  Bruno Haible  <bruno@clisp.org>
8814
8815         Tests for module 'yn'.
8816         * modules/yn-tests: New file.
8817         * tests/test-yn.c: New file.
8818
8819         Tests for module 'y1'.
8820         * modules/y1-tests: New file.
8821         * tests/test-y1.c: New file.
8822
8823         Tests for module 'y0'.
8824         * modules/y0-tests: New file.
8825         * tests/test-y0.c: New file.
8826
8827         Tests for module 'tanh'.
8828         * modules/tanh-tests: New file.
8829         * tests/test-tanh.c: New file.
8830
8831         Tests for module 'tan'.
8832         * modules/tan-tests: New file.
8833         * tests/test-tan.c: New file.
8834
8835         Tests for module 'sqrt'.
8836         * modules/sqrt-tests: New file.
8837         * tests/test-sqrt.c: New file.
8838
8839         Tests for module 'sinh'.
8840         * modules/sinh-tests: New file.
8841         * tests/test-sinh.c: New file.
8842
8843         Tests for module 'sin'.
8844         * modules/sin-tests: New file.
8845         * tests/test-sin.c: New file.
8846
8847         Tests for module 'rint'.
8848         * modules/rint-tests: New file.
8849         * tests/test-rint.c: New file.
8850
8851         Tests for module 'remainder'.
8852         * modules/remainder-tests: New file.
8853         * tests/test-remainder.c: New file.
8854
8855         Tests for module 'pow'.
8856         * modules/pow-tests: New file.
8857         * tests/test-pow.c: New file.
8858
8859         Tests for module 'nextafter'.
8860         * modules/nextafter-tests: New file.
8861         * tests/test-nextafter.c: New file.
8862
8863         Tests for module 'modf'.
8864         * modules/modf-tests: New file.
8865         * tests/test-modf.c: New file.
8866
8867         Tests for module 'logb'.
8868         * modules/logb-tests: New file.
8869         * tests/test-logb.c: New file.
8870
8871         Tests for module 'log1p'.
8872         * modules/log1p-tests: New file.
8873         * tests/test-log1p.c: New file.
8874
8875         Tests for module 'log10'.
8876         * modules/log10-tests: New file.
8877         * tests/test-log10.c: New file.
8878
8879         Tests for module 'log'.
8880         * modules/log-tests: New file.
8881         * tests/test-log.c: New file.
8882
8883         Tests for module 'lgamma'.
8884         * modules/lgamma-tests: New file.
8885         * tests/test-lgamma.c: New file.
8886
8887         Tests for module 'ldexp'.
8888         * modules/ldexp-tests: New file.
8889         * tests/test-ldexp.c: New file.
8890
8891         Tests for module 'jn'.
8892         * modules/jn-tests: New file.
8893         * tests/test-jn.c: New file.
8894
8895         Tests for module 'j1'.
8896         * modules/j1-tests: New file.
8897         * tests/test-j1.c: New file.
8898
8899         Tests for module 'j0'.
8900         * modules/j0-tests: New file.
8901         * tests/test-j0.c: New file.
8902
8903         Tests for module 'hypot'.
8904         * modules/hypot-tests: New file.
8905         * tests/test-hypot.c: New file.
8906
8907         Tests for module 'fmod'.
8908         * modules/fmod-tests: New file.
8909         * tests/test-fmod.c: New file.
8910
8911         Tests for module 'fabs'.
8912         * modules/fabs-tests: New file.
8913         * tests/test-fabs.c: New file.
8914
8915         Tests for module 'exp'.
8916         * modules/exp-tests: New file.
8917         * tests/test-exp.c: New file.
8918
8919         Tests for module 'erfc'.
8920         * modules/erfc-tests: New file.
8921         * tests/test-erfc.c: New file.
8922
8923         Tests for module 'erf'.
8924         * modules/erf-tests: New file.
8925         * tests/test-erf.c: New file.
8926
8927         Tests for module 'cosh'.
8928         * modules/cosh-tests: New file.
8929         * tests/test-cosh.c: New file.
8930
8931         Tests for module 'cos'.
8932         * modules/cos-tests: New file.
8933         * tests/test-cos.c: New file.
8934
8935         Tests for module 'copysign'.
8936         * modules/copysign-tests: New file.
8937         * tests/test-copysign.c: New file.
8938
8939         Tests for module 'cbrt'.
8940         * modules/cbrt-tests: New file.
8941         * tests/test-cbrt.c: New file.
8942
8943         Tests for module 'atan2'.
8944         * modules/atan2-tests: New file.
8945         * tests/test-atan2.c: New file.
8946
8947         Tests for module 'atan'.
8948         * modules/atan-tests: New file.
8949         * tests/test-atan.c: New file.
8950
8951         Tests for module 'asin'.
8952         * modules/asin-tests: New file.
8953         * tests/test-asin.c: New file.
8954
8955         Tests for module 'acos'.
8956         * modules/acos-tests: New file.
8957         * tests/test-acos.c: New file.
8958
8959 2010-01-24  Bruno Haible  <bruno@clisp.org>
8960
8961         Fix tests for common <math.h> functions.
8962         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
8963         code snippet that references the function pointer, rather than merely
8964         calling the function. Substitute the FUNC_LIBM variable.
8965         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
8966         * modules/acos (configure.ac): Likewise.
8967         * modules/asin (configure.ac): Likewise.
8968         * modules/atan (configure.ac): Likewise.
8969         * modules/atan2 (configure.ac): Likewise.
8970         * modules/cbrt (configure.ac): Likewise.
8971         * modules/copysign (configure.ac): Likewise.
8972         * modules/cos (configure.ac): Likewise.
8973         * modules/cosh (configure.ac): Likewise.
8974         * modules/erf (configure.ac): Likewise.
8975         * modules/erfc (configure.ac): Likewise.
8976         * modules/exp (configure.ac): Likewise.
8977         * modules/fabs (configure.ac): Likewise.
8978         * modules/fmod (configure.ac): Likewise.
8979         * modules/hypot (configure.ac): Likewise.
8980         * modules/j0 (configure.ac): Likewise.
8981         * modules/j1 (configure.ac): Likewise.
8982         * modules/jn (configure.ac): Likewise.
8983         * modules/ldexp (configure.ac): Likewise.
8984         * modules/lgamma (configure.ac): Likewise.
8985         * modules/log (configure.ac): Likewise.
8986         * modules/log10 (configure.ac): Likewise.
8987         * modules/log1p (configure.ac): Likewise.
8988         * modules/logb (configure.ac): Likewise.
8989         * modules/modf (configure.ac): Likewise.
8990         * modules/nextafter (configure.ac): Likewise.
8991         * modules/pow (configure.ac): Likewise.
8992         * modules/remainder (configure.ac): Likewise.
8993         * modules/rint (configure.ac): Likewise.
8994         * modules/sin (configure.ac): Likewise.
8995         * modules/sinh (configure.ac): Likewise.
8996         * modules/tan (configure.ac): Likewise.
8997         * modules/tanh (configure.ac): Likewise.
8998         * modules/y0 (configure.ac): Likewise.
8999         * modules/y1 (configure.ac): Likewise.
9000         * modules/yn (configure.ac): Likewise.
9001
9002 2010-01-24  Bruno Haible  <bruno@clisp.org>
9003
9004         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9005         * tests/test-acosl.c (x): New variable.
9006         (main): Store argument in x and fetch it from x.
9007         * tests/test-asinl.c (x): New variable.
9008         (main): Store argument in x and fetch it from x.
9009         * tests/test-atanl.c (x): New variable.
9010         (main): Store argument in x and fetch it from x.
9011         * tests/test-cosl.c (x): New variable.
9012         (main): Store argument in x and fetch it from x.
9013         * tests/test-expl.c (x): New variable.
9014         (main): Store argument in x and fetch it from x.
9015         * tests/test-logl.c (x): New variable.
9016         (main): Store argument in x and fetch it from x.
9017         * tests/test-sinl.c (x): New variable.
9018         (main): Store argument in x and fetch it from x.
9019         * tests/test-sqrtl.c (x): New variable.
9020         (main): Store argument in x and fetch it from x.
9021         * tests/test-tanl.c (x): New variable.
9022         (main): Store argument in x and fetch it from x.
9023
9024 2010-01-24  Bruno Haible  <bruno@clisp.org>
9025
9026         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9027         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9028         assignments to the initial TESTS_ENVIRONMENT.
9029         * doc/gnulib.texi (Unit test modules): Document it.
9030         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9031         TESTS_ENVIRONMENT.
9032         * modules/btowc-tests (Makefile.am): Likewise.
9033         * modules/c-stack-tests (Makefile.am): Likewise.
9034         * modules/c-strcase-tests (Makefile.am): Likewise.
9035         * modules/copy-file-tests (Makefile.am): Likewise.
9036         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9037         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9038         * modules/mbrtowc-tests (Makefile.am): Likewise.
9039         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9040         * modules/mbscasestr-tests (Makefile.am): Likewise.
9041         * modules/mbschr-tests (Makefile.am): Likewise.
9042         * modules/mbscspn-tests (Makefile.am): Likewise.
9043         * modules/mbsinit-tests (Makefile.am): Likewise.
9044         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9045         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9046         * modules/mbspbrk-tests (Makefile.am): Likewise.
9047         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9048         * modules/mbsrchr-tests (Makefile.am): Likewise.
9049         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9050         * modules/mbsspn-tests (Makefile.am): Likewise.
9051         * modules/mbsstr-tests (Makefile.am): Likewise.
9052         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9053         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9054         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9055         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9056         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9057         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9058         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9059         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9060         * modules/wcrtomb-tests (Makefile.am): Likewise.
9061         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9062         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9063         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9064         assignments from TESTS_ENVIRONMENT.
9065         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9066         augmentation.
9067         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9068         * modules/atexit-tests (Makefile.am): Likewise.
9069         * modules/binary-io-tests (Makefile.am): Likewise.
9070         * modules/closein-tests (Makefile.am): Likewise.
9071         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9072         * modules/exclude-tests (Makefile.am): Likewise.
9073         * modules/fflush-tests (Makefile.am): Likewise.
9074         * modules/fpending-tests (Makefile.am): Likewise.
9075         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9076         * modules/freadahead-tests (Makefile.am): Likewise.
9077         * modules/freadptr-tests (Makefile.am): Likewise.
9078         * modules/freadseek-tests (Makefile.am): Likewise.
9079         * modules/fseek-tests (Makefile.am): Likewise.
9080         * modules/fseeko-tests (Makefile.am): Likewise.
9081         * modules/ftell-tests (Makefile.am): Likewise.
9082         * modules/ftello-tests (Makefile.am): Likewise.
9083         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9084         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9085         * modules/lseek-tests (Makefile.am): Likewise.
9086         * modules/parse-duration-tests (Makefile.am): Likewise.
9087         * modules/perror-tests (Makefile.am): Likewise.
9088         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9089         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9090         * modules/pipe-tests (Makefile.am): Likewise.
9091         * modules/pread-tests (Makefile.am): Likewise.
9092         * modules/printf-posix-tests (Makefile.am): Likewise.
9093         * modules/select-tests (Makefile.am): Likewise.
9094         * modules/sigpipe-tests (Makefile.am): Likewise.
9095         * modules/tsearch-tests (Makefile.am): Likewise.
9096         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9097         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9098         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9099         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9100         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9101         * modules/version-etc-tests (Makefile.am): Likewise.
9102         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9103         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9104         * modules/xalloc-die-tests (Makefile.am): Likewise.
9105         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9106         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9107         * modules/xstrtol-tests (Makefile.am): Likewise.
9108         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9109         * modules/yesno-tests (Makefile.am): Likewise.
9110         Suggested by Jim Meyering.
9111
9112 2010-01-24  Bruno Haible  <bruno@clisp.org>
9113
9114         More documentation.
9115         * doc/gnulib.texi (Writing modules): New chapter.
9116         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9117         the new chapter.
9118
9119 2010-01-24  Jim Meyering  <meyering@redhat.com>
9120
9121         maint.mk: do not prepend "./" after filtering
9122         * top/maint.mk (_prepend_srcdir_prefix): New variable
9123         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9124         "./" when $(srcdir) is ".".
9125
9126         define STREQ(a,b) consistently, removing useless parentheses
9127         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9128         since the only risk is that "a" or "b" contains an unparenthesized
9129         comma, but if either did that, STREQ would have 3 or more arguments.
9130         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9131         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9132         * lib/hash-triple.c (STREQ): Likewise.
9133         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9134         * lib/getugroups.c (STREQ): Likewise.
9135
9136 2010-01-23  Jim Meyering  <meyering@redhat.com>
9137
9138         maint.mk: fix syntax-check in a non-srcdir build directory
9139         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9140         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9141
9142 2010-01-22  Jim Meyering  <meyering@redhat.com>
9143
9144         userspec: add unit tests
9145         * tests/test-userspec.c: New file.
9146         * modules/userspec-tests: Likewise.
9147
9148 2010-01-21  Jim Meyering  <meyering@redhat.com>
9149
9150         maint.mk: handle source file names containing "." robustly
9151         * top/maint.mk (_dot_escaped_srcdir): Define.
9152         (VC_LIST): Use it in LHS of sed substitution.
9153
9154 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9155
9156         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9157         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9158         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9159         from a non-srcdir build.
9160
9161 2010-01-20  Eric Blake  <ebb9@byu.net>
9162
9163         warn-on-use: use instead of link-warning
9164         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9165         * modules/unistd (Depends-on, Makefile.am): Likewise.
9166         * modules/arpa_inet (Depends-on): Replace link-warning with
9167         warn-on-use.
9168         (Makefile.am): Update rules accordingly.
9169         * modules/ctype (Depends-on, Makefile.am): Likewise.
9170         * modules/dirent (Depends-on, Makefile.am): Likewise.
9171         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9172         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9173         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9174         * modules/locale (Depends-on, Makefile.am): Likewise.
9175         * modules/math (Depends-on, Makefile.am): Likewise.
9176         * modules/search (Depends-on, Makefile.am): Likewise.
9177         * modules/signal (Depends-on, Makefile.am): Likewise.
9178         * modules/spawn (Depends-on, Makefile.am): Likewise.
9179         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9180         * modules/string (Depends-on, Makefile.am): Likewise.
9181         * modules/strings (Depends-on, Makefile.am): Likewise.
9182         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9183         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9184         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9185         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9186         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9187         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9188         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9189         * modules/wchar (Depends-on, Makefile.am): Likewise.
9190         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9191         should be poisoned.
9192         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9193         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9194         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9195         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9196         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9197         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9198         * m4/math_h.m4 (gl_MATH_H): Likewise.
9199         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9200         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9201         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9202         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9203         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9204         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9205         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9206         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9207         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9208         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9209         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9210         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9211         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9212         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9213         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9214         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9215         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9216         GL_LINK_WARNING.
9217         * lib/ctype.in.h: Likewise.
9218         * lib/dirent.in.h: Likewise.
9219         * lib/fcntl.in.h: Likewise.
9220         * lib/inttypes.in.h: Likewise.
9221         * lib/langinfo.in.h: Likewise.
9222         * lib/locale.in.h: Likewise.
9223         * lib/math.in.h: Likewise.
9224         * lib/search.in.h: Likewise.
9225         * lib/signal.in.h: Likewise.
9226         * lib/spawn.in.h: Likewise.
9227         * lib/stdio.in.h: Likewise.
9228         * lib/stdlib.in.h: Likewise.
9229         * lib/string.in.h: Likewise.
9230         * lib/strings.in.h: Likewise.
9231         * lib/sys_file.in.h: Likewise.
9232         * lib/sys_ioctl.in.h: Likewise.
9233         * lib/sys_select.in.h: Likewise.
9234         * lib/sys_socket.in.h: Likewise.
9235         * lib/sys_stat.in.h: Likewise.
9236         * lib/sys_times.in.h: Likewise.
9237         * lib/sys_utsname.in.h: Likewise.
9238         * lib/unistd.in.h: Likewise.
9239         * lib/wchar.in.h: Likewise.
9240
9241 2010-01-20  Bruno Haible  <bruno@clisp.org>
9242
9243         Avoid duplicate -lm.
9244         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
9245         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
9246         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
9247         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
9248         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
9249         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
9250         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
9251         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
9252         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
9253         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
9254         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
9255         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9256         Reported by Paolo Bonzini.
9257
9258 2010-01-19  Bruno Haible  <bruno@clisp.org>
9259
9260         langinfo, nl_langinfo: Relicense under LGPLv2+.
9261         * modules/langinfo (License): Change to LGPLv2+.
9262         * modules/nl_langinfo (License): Likewise.
9263         Patch by David Lutterkort <lutter@redhat.com>.
9264
9265 2010-01-19  Bruno Haible  <bruno@clisp.org>
9266
9267         Avoid compilation error with cc on OSF/1 5.1.
9268         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
9269         statement, not before.
9270         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9271
9272 2010-01-18  Bruno Haible  <bruno@clisp.org>
9273
9274         Avoid a link error due to the __printf__ symbol.
9275         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
9276         and 2.6.x.
9277         (__format__, __printf__): Remove definitions.
9278         * lib/argp-fmtstream.h: Likewise.
9279         * lib/argp.h: Likewise.
9280         * lib/error.h: Likewise.
9281         * lib/vasnprintf.h: Likewise.
9282         * lib/xprintf.h: Likewise.
9283         * lib/xvasprintf.h: Likewise.
9284         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9285
9286 2010-01-18  Bruno Haible  <bruno@clisp.org>
9287
9288         Tests for module 'tanl'.
9289         * modules/tanl-tests: New file.
9290         * tests/test-tanl.c: New file.
9291
9292         Tests for module 'sqrtl'.
9293         * modules/sqrtl-tests: New file.
9294         * tests/test-sqrtl.c: New file.
9295
9296         Tests for module 'sinl'.
9297         * modules/sinl-tests: New file.
9298         * tests/test-sinl.c: New file.
9299
9300         Tests for module 'logl'.
9301         * modules/logl-tests: New file.
9302         * tests/test-logl.c: New file.
9303
9304         Tests for module 'expl'.
9305         * modules/expl-tests: New file.
9306         * tests/test-expl.c: New file.
9307
9308         Tests for module 'cosl'.
9309         * modules/cosl-tests: New file.
9310         * tests/test-cosl.c: New file.
9311
9312         Tests for module 'atanl'.
9313         * modules/atanl-tests: New file.
9314         * tests/test-atanl.c: New file.
9315
9316         Tests for module 'asinl'.
9317         * modules/asinl-tests: New file.
9318         * tests/test-asinl.c: New file.
9319
9320         Tests for module 'acosl'.
9321         * modules/acosl-tests: New file.
9322         * tests/test-acosl.c: New file.
9323
9324         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9325         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9326         tanl): Use the standard gnulib idiom.
9327         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9328         * lib/sinl.c: Likewise.
9329         * lib/tanl.c: Don't include trigl.c.
9330         (kernel_tanl): Make static.
9331         * lib/sincosl.c: Include trigl.h first.
9332         * lib/trigl.c: Likewise.
9333         * m4/acosl.m4: New file.
9334         * m4/asinl.m4: New file.
9335         * m4/atanl.m4: New file.
9336         * m4/cosl.m4: New file.
9337         * m4/expl.m4: New file.
9338         * m4/logl.m4: New file.
9339         * m4/sinl.m4: New file.
9340         * m4/sqrtl.m4: New file.
9341         * m4/tanl.m4: New file.
9342         * m4/mathl.m4: Remove file.
9343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9344         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9345         Don't initialize GNULIB_MATHL.
9346         * modules/acosl: New file.
9347         * modules/asinl: New file.
9348         * modules/atanl: New file.
9349         * modules/cosl: New file.
9350         * modules/expl: New file.
9351         * modules/logl: New file.
9352         * modules/sinl: New file.
9353         * modules/sqrtl: New file.
9354         * modules/tanl: New file.
9355         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9356         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9357         substitute GNULIB_MATHL.
9358         * modules/mathl: Rewritten.
9359         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9360         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9361         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9362         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9363         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9364         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9365         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9366         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9367         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9368
9369 2010-01-18  Bruno Haible  <bruno@clisp.org>
9370
9371         sqrt: Make gl_FUNC_SQRT requirable.
9372         * m4/sqrt.m4: New file.
9373         * modules/sqrt (Files): Add it.
9374         (configure.ac): Invoke gl_FUNC_SQRT.
9375
9376 2010-01-18  Bruno Haible  <bruno@clisp.org>
9377
9378         New modules for common <math.h> functions.
9379         * m4/mathfunc.m4: New file.
9380         * modules/acos: New file.
9381         * modules/asin: New file.
9382         * modules/atan: New file.
9383         * modules/atan2: New file.
9384         * modules/cbrt: New file.
9385         * modules/copysign: New file.
9386         * modules/cos: New file.
9387         * modules/cosh: New file.
9388         * modules/erf: New file.
9389         * modules/erfc: New file.
9390         * modules/exp: New file.
9391         * modules/fabs: New file.
9392         * modules/fmod: New file.
9393         * modules/hypot: New file.
9394         * modules/j0: New file.
9395         * modules/j1: New file.
9396         * modules/jn: New file.
9397         * modules/ldexp: New file.
9398         * modules/lgamma: New file.
9399         * modules/log: New file.
9400         * modules/log10: New file.
9401         * modules/log1p: New file.
9402         * modules/logb: New file.
9403         * modules/modf: New file.
9404         * modules/nextafter: New file.
9405         * modules/pow: New file.
9406         * modules/remainder: New file.
9407         * modules/rint: New file.
9408         * modules/sin: New file.
9409         * modules/sinh: New file.
9410         * modules/sqrt: New file.
9411         * modules/tan: New file.
9412         * modules/tanh: New file.
9413         * modules/y0: New file.
9414         * modules/y1: New file.
9415         * modules/yn: New file.
9416         * doc/posix-functions/acos.texi: Mention the 'acos' module.
9417         * doc/posix-functions/asin.texi: Mention the 'asin' module.
9418         * doc/posix-functions/atan.texi: Mention the 'atan' module.
9419         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
9420         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
9421         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
9422         * doc/posix-functions/cos.texi: Mention the 'cos' module.
9423         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
9424         * doc/posix-functions/erf.texi: Mention the 'erf' module.
9425         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
9426         * doc/posix-functions/exp.texi: Mention the 'exp' module.
9427         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
9428         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
9429         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
9430         * doc/posix-functions/j0.texi: Mention the 'j0' module.
9431         * doc/posix-functions/j1.texi: Mention the 'j1' module.
9432         * doc/posix-functions/jn.texi: Mention the 'jn' module.
9433         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
9434         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
9435         * doc/posix-functions/log.texi: Mention the 'log' module.
9436         * doc/posix-functions/log10.texi: Mention the 'log10' module.
9437         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
9438         * doc/posix-functions/logb.texi: Mention the 'logb' module.
9439         * doc/posix-functions/modf.texi: Mention the 'modf' module.
9440         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
9441         * doc/posix-functions/pow.texi: Mention the 'pow' module.
9442         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
9443         * doc/posix-functions/rint.texi: Mention the 'rint' module.
9444         * doc/posix-functions/sin.texi: Mention the 'sin' module.
9445         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
9446         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
9447         * doc/posix-functions/tan.texi: Mention the 'tan' module.
9448         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
9449         * doc/posix-functions/y0.texi: Mention the 'y0' module.
9450         * doc/posix-functions/y1.texi: Mention the 'y1' module.
9451         * doc/posix-functions/yn.texi: Mention the 'yn' module.
9452
9453 2010-01-18  Jim Meyering  <meyering@redhat.com>
9454
9455         ignore-value: relax license to LGPLv2+
9456         * modules/ignore-value (License): Relax to LGPLv2+.
9457
9458         getdate: don't leak when TZ contains two or more '"'s
9459         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
9460         double quote in TZ after the first one.
9461
9462         readtokens: do not leak internal token_lengths buffer
9463         * lib/readtokens.c (readtokens): Free the local, lengths,
9464         when the supplied "token_lengths" parameter is NULL.
9465
9466 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9467
9468         Fix a couple of missing LIBTHREAD link failures on AIX.
9469         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
9470         $(LIBTHREAD).
9471         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
9472
9473         Link test-poll against INET_PTON_LIB.
9474         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
9475         for inet_pton on Solaris 10.
9476
9477 2010-01-17  Bruno Haible  <bruno@clisp.org>
9478
9479         unistdio/*-sprintf: Fix typo in module description.
9480         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
9481         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
9482         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
9483         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
9484         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
9485         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
9486         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
9487         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9488
9489 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9490
9491         gnulib-tool: fix filelist for AIX, HP-UX ksh.
9492         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
9493         variables in shell case patterns, for AIX and HP-UX ksh.
9494
9495         Split large sed scripts, for HP-UX sed.
9496         * modules/stdio: Split sed scripts around 50 sed commands,
9497         to avoid HP-UX limit of 99 commands, in the near future.
9498         * modules/string: Likewise.
9499         * modules/unistd: Likewise.
9500
9501         gnulib-tool: avoid writing in the current directory.
9502         * gnulib-tool (func_emit_lib_Makefile_am)
9503         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
9504         not in the current directory, so concurrent gnulib-tool
9505         instances do not interfere.
9506
9507 2010-01-16  Jim Meyering  <meyering@redhat.com>
9508
9509         doc: update users.txt
9510         * users.txt: Add grep.
9511         (diffutils, gzip): Update URLs.
9512
9513 2010-01-12  Bruno Haible  <bruno@clisp.org>
9514
9515         posix_spawn: Avoid test failure on Cygwin.
9516         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
9517         characters.
9518         Reported by Simon Josefsson.
9519
9520 2010-01-12  Bruno Haible  <bruno@clisp.org>
9521
9522         * tests/test-cond.c (main): When skipping the test, show the reason.
9523
9524 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9525
9526         * lib/striconv.c (str_cd_iconv): Avoid if before free.
9527
9528 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9529
9530         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
9531         VC_LIST_ALWAYS_EXCLUDE_REGEX.
9532
9533 2010-01-12  Eric Blake  <ebb9@byu.net>
9534
9535         build: guarantee AS_VAR_IF
9536         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
9537         (gl_AS_VAR_IF): Move...
9538         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
9539         Reported by Simon Josefsson.
9540
9541 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9542
9543         * lib/stdio.in.h: Fix typo.
9544
9545 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9546
9547         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
9548         libgpg-error.
9549
9550 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9551
9552         * tests/test-xalloc-die.sh: Use $EXEEXT.
9553
9554 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9555             Bruno Haible  <bruno@clisp.org>
9556
9557         getlogin, getlogin_r: Avoid test failure.
9558         * tests/test-getlogin.c: Include <stdio.h>.
9559         (main): Skip the test when the function fails because stdin is not a
9560         tty.
9561         * tests/test-getlogin_r.c: Include <stdio.h>.
9562         (main): Skip the test when the function fails because stdin is not a
9563         tty.
9564
9565 2010-01-11  Eric Blake  <ebb9@byu.net>
9566
9567         tests: avoid more large file warnings
9568         * tests/test-fflush.c: Avoid warning about ftell use.
9569         * tests/test-fseek.c: Avoid warning about fseek use.
9570
9571 2010-01-10  Bruno Haible  <bruno@clisp.org>
9572
9573         nproc: Work better on Linux when /proc and /sys are not mounted.
9574         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
9575         as lower bound when, on glibc/Linux systems,
9576         sysconf (_SC_NPROCESSORS_CONF) returns 1.
9577         Suggested by Pádraig Brady <P@draigbrady.com>.
9578         Reported by Dmitry V. Levin <ldv@altlinux.org>.
9579
9580         nproc: Refactor.
9581         * lib/nproc.c (num_processors_via_affinity_mask): New function,
9582         extracted from num_processors.
9583         (num_processors): Call it.
9584
9585 2010-01-11  Jim Meyering  <meyering@redhat.com>
9586
9587         utimecmp: avoid new warning from upcoming gcc-4.5.0
9588         * lib/utimecmp.c (BILLION): Define using #define rather than an
9589         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
9590
9591 2010-01-11  Eric Blake  <ebb9@byu.net>
9592
9593         math: add portability warnings for classification macros
9594         * modules/math (Depends-on): Add warn-on-use.
9595         (Makefile.am): Provide new substitutions.
9596         * m4/math_h.m4 (gl_MATH_H): Require inline.
9597         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
9598         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
9599         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
9600         implement warnings.
9601
9602         unistd: warn on use of environ without module
9603         * modules/unistd (Depends-on): Add warn-on-use.
9604         (Makefile.am): Provide new substitutions.
9605         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
9606         * lib/unistd.in.h (environ): Wrap with a warning helper function.
9607
9608         stdio: warn on suspicious uses
9609         * modules/stdio (Depends-on): Add warn-on-use.
9610         (Makefile.am): Provide new substitutions.
9611         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
9612         fseeko.
9613         * lib/stdio.in.h (gets): Always warn on use.
9614         (fseek, ftell): Adjust when warnings are issued, and honor
9615         _GL_NO_LARGE_FILES as a way to silence the warning.
9616         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
9617         any warning about large file offsets.
9618         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
9619         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
9620         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
9621         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
9622         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
9623         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
9624         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
9625         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
9626
9627         warn-on-use: new module
9628         * modules/warn-on-use: New file.
9629         * build-aux/warn-on-use.h: Likewise.
9630         * m4/warn-on-use.m4: Likewise.
9631         * MODULES.html.sh (Support for building): Mention it.
9632
9633 2010-01-10  Bruno Haible  <bruno@clisp.org>
9634
9635         Tests for module 'unistr/u32-strdup'.
9636         * modules/unistr/u32-strdup-tests: New file.
9637         * tests/unistr/test-u32-strdup.c: New file.
9638
9639         Tests for module 'unistr/u16-strdup'.
9640         * modules/unistr/u16-strdup-tests: New file.
9641         * tests/unistr/test-u16-strdup.c: New file.
9642
9643         Tests for module 'unistr/u8-strdup'.
9644         * modules/unistr/u8-strdup-tests: New file.
9645         * tests/unistr/test-u8-strdup.c: New file.
9646         * tests/unistr/test-strdup.h: New file.
9647
9648         Tests for module 'unistr/u32-strncmp'.
9649         * modules/unistr/u32-strncmp-tests: New file.
9650         * tests/unistr/test-u32-strncmp.c: New file.
9651
9652         Tests for module 'unistr/u16-strncmp'.
9653         * modules/unistr/u16-strncmp-tests: New file.
9654         * tests/unistr/test-u16-strncmp.c: New file.
9655
9656         Tests for module 'unistr/u8-strncmp'.
9657         * modules/unistr/u8-strncmp-tests: New file.
9658         * tests/unistr/test-u8-strncmp.c: New file.
9659         * tests/unistr/test-strncmp.h: New file.
9660
9661         Tests for module 'unistr/u32-strcoll'.
9662         * modules/unistr/u32-strcoll-tests: New file.
9663         * tests/unistr/test-u32-strcoll.c: New file.
9664
9665         Tests for module 'unistr/u16-strcoll'.
9666         * modules/unistr/u16-strcoll-tests: New file.
9667         * tests/unistr/test-u16-strcoll.c: New file.
9668
9669         Tests for module 'unistr/u8-strcoll'.
9670         * modules/unistr/u8-strcoll-tests: New file.
9671         * tests/unistr/test-u8-strcoll.c: New file.
9672
9673         Tests for module 'unistr/u32-strcmp'.
9674         * modules/unistr/u32-strcmp-tests: New file.
9675         * tests/unistr/test-u32-strcmp.c: New file.
9676         * tests/unistr/test-u32-strcmp.h: New file.
9677
9678         Tests for module 'unistr/u16-strcmp'.
9679         * modules/unistr/u16-strcmp-tests: New file.
9680         * tests/unistr/test-u16-strcmp.c: New file.
9681         * tests/unistr/test-u16-strcmp.h: New file.
9682
9683         Tests for module 'unistr/u8-strcmp'.
9684         * modules/unistr/u8-strcmp-tests: New file.
9685         * tests/unistr/test-u8-strcmp.c: New file.
9686         * tests/unistr/test-u8-strcmp.h: New file.
9687         * tests/unistr/test-strcmp.h: New file.
9688
9689         Tests for module 'unistr/u32-strncat'.
9690         * modules/unistr/u32-strncat-tests: New file.
9691         * tests/unistr/test-u32-strncat.c: New file.
9692
9693         Tests for module 'unistr/u16-strncat'.
9694         * modules/unistr/u16-strncat-tests: New file.
9695         * tests/unistr/test-u16-strncat.c: New file.
9696
9697         Tests for module 'unistr/u8-strncat'.
9698         * modules/unistr/u8-strncat-tests: New file.
9699         * tests/unistr/test-u8-strncat.c: New file.
9700         * tests/unistr/test-strncat.h: New file.
9701
9702         Tests for module 'unistr/u32-strcat'.
9703         * modules/unistr/u32-strcat-tests: New file.
9704         * tests/unistr/test-u32-strcat.c: New file.
9705
9706         Tests for module 'unistr/u16-strcat'.
9707         * modules/unistr/u16-strcat-tests: New file.
9708         * tests/unistr/test-u16-strcat.c: New file.
9709
9710         Tests for module 'unistr/u8-strcat'.
9711         * modules/unistr/u8-strcat-tests: New file.
9712         * tests/unistr/test-u8-strcat.c: New file.
9713         * tests/unistr/test-strcat.h: New file.
9714
9715         Tests for module 'unistr/u32-stpncpy'.
9716         * modules/unistr/u32-stpncpy-tests: New file.
9717         * tests/unistr/test-u32-stpncpy.c: New file.
9718
9719         Tests for module 'unistr/u16-stpncpy'.
9720         * modules/unistr/u16-stpncpy-tests: New file.
9721         * tests/unistr/test-u16-stpncpy.c: New file.
9722
9723         Tests for module 'unistr/u8-stpncpy'.
9724         * modules/unistr/u8-stpncpy-tests: New file.
9725         * tests/unistr/test-u8-stpncpy.c: New file.
9726         * tests/unistr/test-stpncpy.h: New file.
9727
9728         Tests for module 'unistr/u32-strncpy'.
9729         * modules/unistr/u32-strncpy-tests: New file.
9730         * tests/unistr/test-u32-strncpy.c: New file.
9731
9732         Tests for module 'unistr/u16-strncpy'.
9733         * modules/unistr/u16-strncpy-tests: New file.
9734         * tests/unistr/test-u16-strncpy.c: New file.
9735
9736         Tests for module 'unistr/u8-strncpy'.
9737         * modules/unistr/u8-strncpy-tests: New file.
9738         * tests/unistr/test-u8-strncpy.c: New file.
9739         * tests/unistr/test-strncpy.h: New file.
9740
9741         Tests for module 'unistr/u32-stpcpy'.
9742         * modules/unistr/u32-stpcpy-tests: New file.
9743         * tests/unistr/test-u32-stpcpy.c: New file.
9744
9745         Tests for module 'unistr/u16-stpcpy'.
9746         * modules/unistr/u16-stpcpy-tests: New file.
9747         * tests/unistr/test-u16-stpcpy.c: New file.
9748
9749         Tests for module 'unistr/u8-stpcpy'.
9750         * modules/unistr/u8-stpcpy-tests: New file.
9751         * tests/unistr/test-u8-stpcpy.c: New file.
9752         * tests/unistr/test-stpcpy.h: New file.
9753
9754         Tests for module 'unistr/u32-strcpy'.
9755         * modules/unistr/u32-strcpy-tests: New file.
9756         * tests/unistr/test-u32-strcpy.c: New file.
9757
9758         Tests for module 'unistr/u16-strcpy'.
9759         * modules/unistr/u16-strcpy-tests: New file.
9760         * tests/unistr/test-u16-strcpy.c: New file.
9761
9762         Tests for module 'unistr/u8-strcpy'.
9763         * modules/unistr/u8-strcpy-tests: New file.
9764         * tests/unistr/test-u8-strcpy.c: New file.
9765         * tests/unistr/test-strcpy.h: New file.
9766
9767         Tests for module 'unistr/u32-strnlen'.
9768         * modules/unistr/u32-strnlen-tests: New file.
9769         * tests/unistr/test-u32-strnlen.c: New file.
9770
9771         Tests for module 'unistr/u16-strnlen'.
9772         * modules/unistr/u16-strnlen-tests: New file.
9773         * tests/unistr/test-u16-strnlen.c: New file.
9774
9775         Tests for module 'unistr/u8-strnlen'.
9776         * modules/unistr/u8-strnlen-tests: New file.
9777         * tests/unistr/test-u8-strnlen.c: New file.
9778         * tests/unistr/test-strnlen.h: New file.
9779
9780         Tests for module 'unistr/u32-strlen'.
9781         * modules/unistr/u32-strlen-tests: New file.
9782         * tests/unistr/test-u32-strlen.c: New file.
9783
9784         Tests for module 'unistr/u16-strlen'.
9785         * modules/unistr/u16-strlen-tests: New file.
9786         * tests/unistr/test-u16-strlen.c: New file.
9787
9788         Tests for module 'unistr/u8-strlen'.
9789         * modules/unistr/u8-strlen-tests: New file.
9790         * tests/unistr/test-u8-strlen.c: New file.
9791
9792         Tests for module 'unistr/u32-prev'.
9793         * modules/unistr/u32-prev-tests: New file.
9794         * tests/unistr/test-u32-prev.c: New file.
9795
9796         Tests for module 'unistr/u16-prev'.
9797         * modules/unistr/u16-prev-tests: New file.
9798         * tests/unistr/test-u16-prev.c: New file.
9799
9800         Tests for module 'unistr/u8-prev'.
9801         * modules/unistr/u8-prev-tests: New file.
9802         * tests/unistr/test-u8-prev.c: New file.
9803
9804         Tests for module 'unistr/u32-next'.
9805         * modules/unistr/u32-next-tests: New file.
9806         * tests/unistr/test-u32-next.c: New file.
9807
9808         Tests for module 'unistr/u16-next'.
9809         * modules/unistr/u16-next-tests: New file.
9810         * tests/unistr/test-u16-next.c: New file.
9811
9812         Tests for module 'unistr/u8-next'.
9813         * modules/unistr/u8-next-tests: New file.
9814         * tests/unistr/test-u8-next.c: New file.
9815
9816         Tests for module 'unistr/u32-strmbtouc'.
9817         * modules/unistr/u32-strmbtouc-tests: New file.
9818         * tests/unistr/test-u32-strmbtouc.c: New file.
9819
9820         Tests for module 'unistr/u16-strmbtouc'.
9821         * modules/unistr/u16-strmbtouc-tests: New file.
9822         * tests/unistr/test-u16-strmbtouc.c: New file.
9823
9824         Tests for module 'unistr/u8-strmbtouc'.
9825         * modules/unistr/u8-strmbtouc-tests: New file.
9826         * tests/unistr/test-u8-strmbtouc.c: New file.
9827
9828         Tests for module 'unistr/u32-strmblen'.
9829         * modules/unistr/u32-strmblen-tests: New file.
9830         * tests/unistr/test-u32-strmblen.c: New file.
9831
9832         Tests for module 'unistr/u16-strmblen'.
9833         * modules/unistr/u16-strmblen-tests: New file.
9834         * tests/unistr/test-u16-strmblen.c: New file.
9835
9836         Tests for module 'unistr/u8-strmblen'.
9837         * modules/unistr/u8-strmblen-tests: New file.
9838         * tests/unistr/test-u8-strmblen.c: New file.
9839
9840         Tests for module 'unistr/u32-cpy-alloc'.
9841         * modules/unistr/u32-cpy-alloc-tests: New file.
9842         * tests/unistr/test-u32-cpy-alloc.c: New file.
9843
9844         Tests for module 'unistr/u16-cpy-alloc'.
9845         * modules/unistr/u16-cpy-alloc-tests: New file.
9846         * tests/unistr/test-u16-cpy-alloc.c: New file.
9847
9848         Tests for module 'unistr/u8-cpy-alloc'.
9849         * modules/unistr/u8-cpy-alloc-tests: New file.
9850         * tests/unistr/test-u8-cpy-alloc.c: New file.
9851         * tests/unistr/test-cpy-alloc.h: New file.
9852
9853         Tests for module 'unistr/u32-mbsnlen'.
9854         * modules/unistr/u32-mbsnlen-tests: New file.
9855         * tests/unistr/test-u32-mbsnlen.c: New file.
9856
9857         Tests for module 'unistr/u16-mbsnlen'.
9858         * modules/unistr/u16-mbsnlen-tests: New file.
9859         * tests/unistr/test-u16-mbsnlen.c: New file.
9860
9861         Tests for module 'unistr/u8-mbsnlen'.
9862         * modules/unistr/u8-mbsnlen-tests: New file.
9863         * tests/unistr/test-u8-mbsnlen.c: New file.
9864
9865         Tests for module 'unistr/u32-chr'.
9866         * modules/unistr/u32-chr-tests: New file.
9867         * tests/unistr/test-u32-chr.c: New file.
9868
9869         Tests for module 'unistr/u16-chr'.
9870         * modules/unistr/u16-chr-tests: New file.
9871         * tests/unistr/test-u16-chr.c: New file.
9872
9873         Tests for module 'unistr/u8-chr'.
9874         * modules/unistr/u8-chr-tests: New file.
9875         * tests/unistr/test-u8-chr.c: New file.
9876         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
9877
9878         Tests for module 'unistr/u32-cmp2'.
9879         * modules/unistr/u32-cmp2-tests: New file.
9880         * tests/unistr/test-u32-cmp2.c: New file.
9881
9882         Tests for module 'unistr/u16-cmp2'.
9883         * modules/unistr/u16-cmp2-tests: New file.
9884         * tests/unistr/test-u16-cmp2.c: New file.
9885
9886         Tests for module 'unistr/u8-cmp2'.
9887         * modules/unistr/u8-cmp2-tests: New file.
9888         * tests/unistr/test-u8-cmp2.c: New file.
9889         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
9890
9891         Tests for module 'unistr/u32-cmp'.
9892         * modules/unistr/u32-cmp-tests: New file.
9893         * tests/unistr/test-u32-cmp.c: New file.
9894
9895         Tests for module 'unistr/u16-cmp'.
9896         * modules/unistr/u16-cmp-tests: New file.
9897         * tests/unistr/test-u16-cmp.c: New file.
9898
9899         Tests for module 'unistr/u8-cmp'.
9900         * modules/unistr/u8-cmp-tests: New file.
9901         * tests/unistr/test-u8-cmp.c: New file.
9902         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
9903
9904         Tests for module 'unistr/u32-set'.
9905         * modules/unistr/u32-set-tests: New file.
9906         * tests/unistr/test-u32-set.c: New file.
9907
9908         Tests for module 'unistr/u16-set'.
9909         * modules/unistr/u16-set-tests: New file.
9910         * tests/unistr/test-u16-set.c: New file.
9911
9912         Tests for module 'unistr/u8-set'.
9913         * modules/unistr/u8-set-tests: New file.
9914         * tests/unistr/test-u8-set.c: New file.
9915         * tests/unistr/test-set.h: New file.
9916
9917         Tests for module 'unistr/u32-move'.
9918         * modules/unistr/u32-move-tests: New file.
9919         * tests/unistr/test-u32-move.c: New file.
9920
9921         Tests for module 'unistr/u16-move'.
9922         * modules/unistr/u16-move-tests: New file.
9923         * tests/unistr/test-u16-move.c: New file.
9924
9925         Tests for module 'unistr/u8-move'.
9926         * modules/unistr/u8-move-tests: New file.
9927         * tests/unistr/test-u8-move.c: New file.
9928         * tests/unistr/test-move.h: New file.
9929
9930         Tests for module 'unistr/u32-cpy'.
9931         * modules/unistr/u32-cpy-tests: New file.
9932         * tests/unistr/test-u32-cpy.c: New file.
9933
9934         Tests for module 'unistr/u16-cpy'.
9935         * modules/unistr/u16-cpy-tests: New file.
9936         * tests/unistr/test-u16-cpy.c: New file.
9937
9938         Tests for module 'unistr/u8-cpy'.
9939         * modules/unistr/u8-cpy-tests: New file.
9940         * tests/unistr/test-u8-cpy.c: New file.
9941         * tests/unistr/test-cpy.h: New file.
9942
9943 2010-01-09  Bruno Haible  <bruno@clisp.org>
9944
9945         Tests for module 'unistr/u32-uctomb'.
9946         * modules/unistr/u32-uctomb-tests: New file.
9947         * tests/unistr/test-u32-uctomb.c: New file.
9948
9949         Tests for module 'unistr/u16-uctomb'.
9950         * modules/unistr/u16-uctomb-tests: New file.
9951         * tests/unistr/test-u16-uctomb.c: New file.
9952
9953         Tests for module 'unistr/u8-uctomb'.
9954         * modules/unistr/u8-uctomb-tests: New file.
9955         * tests/unistr/test-u8-uctomb.c: New file.
9956
9957         Tests for module 'unistr/u32-mbtoucr'.
9958         * modules/unistr/u32-mbtoucr-tests: New file.
9959         * tests/unistr/test-u32-mbtoucr.c: New file.
9960
9961         Tests for module 'unistr/u16-mbtoucr'.
9962         * modules/unistr/u16-mbtoucr-tests: New file.
9963         * tests/unistr/test-u16-mbtoucr.c: New file.
9964
9965         Tests for module 'unistr/u8-mbtoucr'.
9966         * modules/unistr/u8-mbtoucr-tests: New file.
9967         * tests/unistr/test-u8-mbtoucr.c: New file.
9968
9969         Tests for module 'unistr/u32-mbtouc'.
9970         * modules/unistr/u32-mbtouc-tests: New file.
9971         * tests/unistr/test-u32-mbtouc.c: New file.
9972
9973         Tests for module 'unistr/u16-mbtouc'.
9974         * modules/unistr/u16-mbtouc-tests: New file.
9975         * tests/unistr/test-u16-mbtouc.c: New file.
9976
9977         Tests for module 'unistr/u8-mbtouc'.
9978         * modules/unistr/u8-mbtouc-tests: New file.
9979         * tests/unistr/test-u8-mbtouc.c: New file.
9980
9981         Tests for module 'unistr/u32-mbtouc-unsafe'.
9982         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
9983         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
9984         * tests/unistr/test-u32-mbtouc.h: New file.
9985
9986         Tests for module 'unistr/u16-mbtouc-unsafe'.
9987         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
9988         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
9989         * tests/unistr/test-u16-mbtouc.h: New file.
9990
9991         Tests for module 'unistr/u8-mbtouc-unsafe'.
9992         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
9993         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
9994         * tests/unistr/test-u8-mbtouc.h: New file.
9995
9996         Tests for module 'unistr/u32-mblen'.
9997         * modules/unistr/u32-mblen-tests: New file.
9998         * tests/unistr/test-u32-mblen.c: New file.
9999
10000         Tests for module 'unistr/u16-mblen'.
10001         * modules/unistr/u16-mblen-tests: New file.
10002         * tests/unistr/test-u16-mblen.c: New file.
10003
10004         Tests for module 'unistr/u8-mblen'.
10005         * modules/unistr/u8-mblen-tests: New file.
10006         * tests/unistr/test-u8-mblen.c: New file.
10007
10008         Tests for module 'unistr/u32-to-u16'.
10009         * modules/unistr/u32-to-u16-tests: New file.
10010         * tests/unistr/test-u32-to-u16.c: New file.
10011
10012         Tests for module 'unistr/u32-to-u8'.
10013         * modules/unistr/u32-to-u8-tests: New file.
10014         * tests/unistr/test-u32-to-u8.c: New file.
10015
10016         Tests for module 'unistr/u16-to-u32'.
10017         * modules/unistr/u16-to-u32-tests: New file.
10018         * tests/unistr/test-u16-to-u32.c: New file.
10019
10020         Tests for module 'unistr/u16-to-u8'.
10021         * modules/unistr/u16-to-u8-tests: New file.
10022         * tests/unistr/test-u16-to-u8.c: New file.
10023
10024         Tests for module 'unistr/u8-to-u32'.
10025         * modules/unistr/u8-to-u32-tests: New file.
10026         * tests/unistr/test-u8-to-u32.c: New file.
10027
10028         Tests for module 'unistr/u8-to-u16'.
10029         * modules/unistr/u8-to-u16-tests: New file.
10030         * tests/unistr/test-u8-to-u16.c: New file.
10031
10032         Tests for module 'unistr/u32-check'.
10033         * modules/unistr/u32-check-tests: New file.
10034         * tests/unistr/test-u32-check.c: New file.
10035
10036         Tests for module 'unistr/u16-check'.
10037         * modules/unistr/u16-check-tests: New file.
10038         * tests/unistr/test-u16-check.c: New file.
10039
10040         Tests for module 'unistr/u8-check'.
10041         * modules/unistr/u8-check-tests: New file.
10042         * tests/unistr/test-u8-check.c: New file.
10043
10044         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10045         (category_equals): New function.
10046         (main): Add more tests.
10047         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10048
10049         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10050
10051 2010-01-10  Bruno Haible  <bruno@clisp.org>
10052
10053         unistr/u*-strcoll: Try harder to distinguish different strings.
10054         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10055         compare s1 and s2 to see if they are different.
10056
10057 2010-01-10  Bruno Haible  <bruno@clisp.org>
10058
10059         unistr/u*-stpncpy: Fix the return value.
10060         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10061         description of the return value consistent with stpncpy in glibc.
10062         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10063         written non-NUL unit.
10064
10065 2010-01-10  Bruno Haible  <bruno@clisp.org>
10066
10067         unistr/u*-next: Add missing dependencies.
10068         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10069         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10070         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10071
10072 2010-01-10  Bruno Haible  <bruno@clisp.org>
10073
10074         unistr/u8-mbsnlen: Fix return value for incomplete character.
10075         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10076         u8_mblen.
10077         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10078         Remove unistr/u8-mblen.
10079         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10080         u16_mblen.
10081         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10082         Remove unistr/u16-mblen.
10083
10084 2010-01-10  Bruno Haible  <bruno@clisp.org>
10085
10086         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10087         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10088         Reported by Brian Gough <bjg@gnu.org> and
10089         Chris Clayton <chris2553@googlemail.com> via
10090         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10091
10092 2010-01-09  Bruno Haible  <bruno@clisp.org>
10093
10094         unistr/u16-to-u32: Reject invalid input.
10095         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10096         u16_mbtouc.
10097         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10098         Remove unistr/u16-mbtouc.
10099
10100         unistr/u16-to-u8: Reject invalid input.
10101         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10102         u16_mbtouc.
10103         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10104         Remove unistr/u16-mbtouc.
10105
10106         unistr/u8-to-u32: Reject invalid input.
10107         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10108         u8_mbtouc.
10109         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10110         Remove unistr/u8-mbtouc.
10111
10112         unistr/u8-to-u16: Reject invalid input.
10113         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10114         u8_mbtouc.
10115         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10116         Remove unistr/u8-mbtouc.
10117
10118 2010-01-09  Bruno Haible  <bruno@clisp.org>
10119
10120         Tests for module 'getlogin'.
10121         * modules/getlogin-tests: New file.
10122         * tests/test-getlogin.c: New file.
10123
10124         New module 'getlogin'.
10125         * lib/unistd.in.h (getlogin): New declaration.
10126         * lib/getlogin.c: New file.
10127         * m4/getlogin.m4: New file.
10128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10129         HAVE_GETLOGIN.
10130         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10131         HAVE_GETLOGIN.
10132         * modules/getlogin: New file.
10133         * doc/posix-functions/getlogin.texi: Mention the new module.
10134         Reported by John W. Eaton <jwe@gnu.org>.
10135
10136 2010-01-09  Bruno Haible  <bruno@clisp.org>
10137
10138         getlogin_r: Support for native Windows.
10139         * lib/getlogin_r.c: Include <windows.h>
10140         (getlogin_r): Implement for native Windows.
10141         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10142         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10143         via John W. Eaton <jwe@gnu.org>.
10144
10145 2010-01-09  Bruno Haible  <bruno@clisp.org>
10146
10147         getlogin_r: Small fixes.
10148         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10149         succeeds.
10150         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10151         before testing whether getlogin_r is declared. No need to set
10152         HAVE_DECL_GETLOGIN_R to 1.
10153         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10154
10155 2010-01-09  Bruno Haible  <bruno@clisp.org>
10156
10157         * lib/unistd.in.h (getlogin_r): Add comment.
10158
10159 2010-01-09  Bruno Haible  <bruno@clisp.org>
10160
10161         Tests for module 'getlogin_r'.
10162         * modules/getlogin_r-tests: New file.
10163         * tests/test-getlogin_r.c: New file.
10164
10165 2010-01-09  Jim Meyering  <meyering@redhat.com>
10166
10167         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10168         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10169         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10170
10171 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10172
10173         * lib/dup2.c (rpl_dup2): Improve comment.
10174
10175 2010-01-08  Eric Blake  <ebb9@byu.net>
10176
10177         maint.mk: allow packages to add makefile @@ exceptions
10178         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10179         (sc_makefile_check): Rename...
10180         (sc_makefile_at_at_check): ...to this, and use hook.
10181
10182         dup2: work around mingw bug
10183         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10184         Reported by Simon Josefsson.
10185
10186 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10187
10188         glob: Fix C++ compilation.
10189         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10190         C++.
10191
10192 2010-01-07  Bruno Haible  <bruno@clisp.org>
10193
10194         Fix indentation of wctype.in.h, broken since 2007-01-06.
10195         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10196
10197 2010-01-07  Bruno Haible  <bruno@clisp.org>
10198
10199         mbslen: Avoid collision with system function.
10200         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10201         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10202         * m4/mbslen.m4: New file.
10203         * modules/mbslen (Files): Add it.
10204         (configure.ac): Invoke gl_MBSLEN.
10205         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10206         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10207         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10208         via Ian Beckwith <ianb@erislabs.net>.
10209
10210 2010-01-07  Bruno Haible  <bruno@clisp.org>
10211
10212         dirent: Document the last fix.
10213         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10214
10215 2010-01-07  Bruno Haible  <bruno@clisp.org>
10216
10217         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10218         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10219         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10220         va_list are defined.
10221         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10222         Reported by Eric Blake.
10223
10224 2010-01-07  Bruno Haible  <bruno@clisp.org>
10225
10226         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10227         * modules/xlist (Depends-on): Add 'list',
10228         * modules/xoset (Depends-on): Add 'oset'.
10229         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10230
10231 2010-01-07  Bruno Haible  <bruno@clisp.org>
10232
10233         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10234         * doc/posix-functions/strncasecmp.texi: Likewise.
10235
10236 2010-01-07  Bruno Haible  <bruno@clisp.org>
10237
10238         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10239
10240 2010-01-07  John W. Eaton  <jwe@octave.org>
10241
10242         wctype: allow C++ use
10243         * lib/wctype.in.h: Add extern "C" block for C++.
10244
10245 2010-01-06  Eric Blake  <ebb9@byu.net>
10246
10247         maint.mk: detect incorrect GFDL usage
10248         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
10249
10250 2010-01-06  Jim Meyering  <meyering@redhat.com>
10251         and Eric Blake  <ebb9@byu.net>
10252
10253         maint.mk: ignore multi-line copyright in NEWS
10254         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
10255
10256 2010-01-06  Eric Blake  <ebb9@byu.net>
10257
10258         select: add missing dependency
10259         * modules/select-tests (Depends-on): Move sockets dependency...
10260         * modules/select (Depends-on): ...here.
10261         Reported by Ian Beckwith.
10262
10263         doc: regenerate INSTALL
10264         * doc/INSTALL: Reflect recent autoconf update.
10265         * doc/INSTALL.ISO: Likewise.
10266         * doc/INSTALL.UTF-8: Likewise.
10267
10268         pread: fix compilation on glibc
10269         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
10270         Reported by Ralf Wildenhues.
10271
10272         dirent: fix test failure
10273         * lib/dirent.in.h (includes): Guarantee ino_t.
10274         Reported by Ralf Wildenhues.
10275
10276 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
10277
10278         linkat, renameat: avoid bad free
10279         * lib/at-func2.c (at_func2): Fix typo.
10280         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
10281
10282 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10283
10284         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10285         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10286         to avoid failure of symlink test later.
10287
10288 2010-01-06  Eric Blake  <ebb9@byu.net>
10289
10290         stdio, unistd: guarantee ssize_t
10291         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10292         2008 are exposed when needed.
10293         * lib/stdio.in.h (includes): Likewise.
10294         Reported by Ralf Wildenhues.
10295
10296 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10297
10298         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10299         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10300         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10301
10302 2010-01-06  Jim Meyering  <meyering@redhat.com>
10303
10304         readtokens: this module *does* require xalloc.h
10305         It uses only functions that were omitted by the old syntax-check rule.
10306         * lib/readtokens.c: Include "xalloc.h" once again.
10307         * modules/readtokens (Depends-on): Add xalloc.
10308         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10309
10310 2010-01-05  Eric Blake  <ebb9@byu.net>
10311
10312         maint: support 'make announcement' from a VPATH build
10313         * top/maint.mk (announcement): Look for correct NEWS file.
10314
10315 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10316
10317         utimens (fdutimens): ignore a negative FD, per contract
10318         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10319         when we have a valid file descriptor.  Otherwise, using a brand
10320         new glibc (with just-patched futimens that now fails with EBADF)
10321         would cause this function to fail with ENOSYS.
10322         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10323         See also http://bugzilla.redhat.com/552320.
10324
10325 2010-01-05  Eric Blake  <ebb9@byu.net>
10326
10327         strcase: document what it provides
10328         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10329         gnulib module.
10330         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10331         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10332
10333 2010-01-05  Jim Meyering  <meyering@redhat.com>
10334
10335         maint: remove useless inclusions of "xalloc.h"
10336         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10337         * lib/readtokens.c: Likewise.
10338         * lib/same.c: Likewise.
10339         * modules/getloadavg (Depends-on): Remove xalloc.
10340         * modules/readtokens: Likewise.
10341         * modules/same: Likewise.
10342
10343         maint.mk: include 4 more function names in alloca.h-checking regexp
10344         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10345         regexp.  Before, we would give a false-positive (saying alloca.h
10346         is included unnecessarily) when the only uses involved omitted symbols.
10347
10348         xalloc.h: use consistent formatting
10349         * lib/xalloc.h: Move declarations to start in the first column.
10350
10351 2010-01-05  Eric Blake  <ebb9@byu.net>
10352
10353         mkdir: avoid xalloc
10354         * lib/mkdir.c (includes): Drop unused header.
10355         Reported by John W. Eaton.
10356
10357 2010-01-04  Jim Meyering  <meyering@redhat.com>
10358
10359         nl_langinfo: avoid configure-time syntax error
10360         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10361         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10362         the empty string.  Don't let that provoke a shell syntax error.
10363
10364         regcomp, regexec, fnmatch: avoid array bounds read error
10365         * lib/regcomp.c (build_equiv_class): From glibc:
10366         Use only the low 24 bits of a findidx return value as an index
10367         into the weights array.  Patch by Ulrich Drepper:
10368         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10369         * lib/regexec.c (check_node_accept_bytes): Likewise.
10370         * lib/fnmatch_loop.c (FCT): Likewise.
10371
10372         regcomp: skip collseq lookup when there are no rules
10373         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10374         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10375
10376         regcomp: recognize ill-formed { } expressions
10377         * lib/regcomp.c (parse_dup_op): From glibc:
10378         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10379
10380         regcomp: fix typo in comment
10381         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10382         s/satisfy/satisfies/.
10383
10384         regcomp: sync from glibc: remove dead store
10385         * lib/regcomp.c (duplicate_node_closure): Remove useless
10386         search_duplicated_node call and dead store.
10387
10388         regcomp: sync from glibc; always use nl_langinfo
10389         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10390         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10391         * modules/regex (Depends-on): Add nl_langinfo.
10392
10393 2010-01-04  Eric Blake  <ebb9@byu.net>
10394
10395         fdopendir: fix configure test
10396         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10397
10398 2010-01-01  Bruno Haible  <bruno@clisp.org>
10399
10400         wchar: Remove unused configure check.
10401         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10402
10403 2010-01-01  Eric Blake  <ebb9@byu.net>
10404
10405         headers: make check of system header explicit
10406         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10407         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10408         ourselves.
10409         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10410         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10411         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10412         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
10413         internals.
10414         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
10415         missing.
10416         Suggested by Bruno Haible.
10417
10418 2010-01-01  Jim Meyering  <meyering@redhat.com>
10419
10420         ChangeLog: tweak to eliminate unnecessary copyright line
10421         * ChangeLog: Remove a copyright line that was mistakenly updated
10422         by today's update-copyright run.  Reported by Eric Blake.
10423
10424         test-update-copyright: don't let envvar setting cause test failure
10425         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10426
10427 2010-01-01  Bruno Haible  <bruno@clisp.org>
10428
10429         localename: Avoid gcc warning.
10430         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
10431         function if it is not used.
10432
10433 2010-01-01  Jim Meyering  <meyering@redhat.com>
10434
10435         update nearly all FSF copyright year lists to include 2010
10436         Use the same procedure as for 2009, outlined in
10437         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
10438
10439         version-etc: set COPYRIGHT_YEAR to 2010
10440         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
10441
10442 2009-12-31  Eric Blake  <ebb9@byu.net>
10443
10444         doc: correct availability of cygwin 1.5.x getopt
10445         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
10446         variables.
10447         * doc/posix-functions/opterr.texi (opterr): Likewise.
10448         * doc/posix-functions/optind.texi (optind): Likewise.
10449         * doc/posix-functions/optopt.texi (optopt): Likewise.
10450         * doc/posix-functions/tzname.texi (tzname): Likewise.
10451
10452         openat: update maintainer
10453         * modules/openat (Maintainer): Add myself.
10454
10455         utimens: avoid shadowing warning
10456         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
10457         buffers into one, to avoid shadowing, as well as avoiding a
10458         redundant stat.
10459         Reported by Jim Meyering.
10460
10461         test-dup2: avoid compiler warning
10462         * tests/test-dup2.c (is_inheritable): Only define if used.
10463
10464 2010-01-01  Bruno Haible  <bruno@clisp.org>
10465
10466         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
10467         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
10468         defined, use wctomb instead of wcrtomb.
10469
10470 2010-01-01  Bruno Haible  <bruno@clisp.org>
10471
10472         iconv: Reject native Solaris iconv.
10473         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
10474         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
10475
10476 2009-12-31  Bruno Haible  <bruno@clisp.org>
10477
10478         * tests/test-signal.c (main): Remove test of 'SIG'.
10479
10480 2009-12-31  Bruno Haible  <bruno@clisp.org>
10481
10482         spawn: Fix incomplete fix.
10483         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10484         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10485         warnings for GNULIB_POSIXCHECK again.
10486         Reported by Eric Blake.
10487
10488 2009-12-31  Bruno Haible  <bruno@clisp.org>
10489
10490         Avoid namespace pollution on glibc systems.
10491         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
10492         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
10493         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
10494         glibc systems.
10495
10496 2009-12-31  Bruno Haible  <bruno@clisp.org>
10497
10498         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
10499         (gl_REPLACE_WCHAR_H): Turn into a no-op.
10500         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
10501         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10502         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10503         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10504         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10505
10506 2009-12-31  Bruno Haible  <bruno@clisp.org>
10507
10508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10509         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
10510         afterwards.
10511
10512 2009-12-31  Bruno Haible  <bruno@clisp.org>
10513
10514         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
10515         SYS_UTSNAME_H.
10516
10517 2009-12-31  Bruno Haible  <bruno@clisp.org>
10518
10519         spawn: Fix misapplied patch.
10520         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10521         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10522         warnings for GNULIB_POSIXCHECK.
10523
10524 2009-12-31  Bruno Haible  <bruno@clisp.org>
10525
10526         times: Update after sys_times changed.
10527         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
10528         * modules/times (Files): Add it.
10529         (configure.ac): Invoke gl_FUNC_TIMES.
10530
10531 2009-12-31  Bruno Haible  <bruno@clisp.org>
10532
10533         Use AC_C_INLINE where necessary.
10534         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
10535         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
10536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
10537         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10538         * m4/mbfile.m4 (gl_MBFILE): Likewise.
10539         * m4/mbiter.m4 (gl_MBITER): Likewise.
10540         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10541         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10542         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
10543         * modules/u64 (configure.ac): Likewise.
10544
10545 2009-12-31  Bruno Haible  <bruno@clisp.org>
10546
10547         Use AC_C_INLINE instead of module 'inline' where possible.
10548         * modules/inline (Description): Clarify purpose.
10549         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
10550         * modules/count-one-bits (Depends-on): Remove inline.
10551         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
10552         * modules/openat (Depends-on): Remove inline.
10553         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
10554         instead of depending on module 'inline'.
10555         * modules/filevercmp (Depends-on, configure.ac): Likewise.
10556         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
10557         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
10558         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
10559         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
10560         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
10561         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
10562         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
10563         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
10564         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
10565         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
10566         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
10567         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
10568         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
10569         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
10570         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
10571         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
10572         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
10573         Likewise.
10574         * modules/unictype/property-ascii-hex-digit (Depends-on,
10575         configure.ac): Likewise.
10576         * modules/unictype/property-bidi-arabic-digit (Depends-on,
10577         configure.ac): Likewise.
10578         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
10579         configure.ac): Likewise.
10580         * modules/unictype/property-bidi-block-separator (Depends-on,
10581         configure.ac): Likewise.
10582         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
10583         configure.ac): Likewise.
10584         * modules/unictype/property-bidi-common-separator (Depends-on,
10585         configure.ac): Likewise.
10586         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
10587         Likewise.
10588         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
10589         configure.ac): Likewise.
10590         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
10591         configure.ac): Likewise.
10592         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
10593         configure.ac): Likewise.
10594         * modules/unictype/property-bidi-european-digit (Depends-on,
10595         configure.ac): Likewise.
10596         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
10597         configure.ac): Likewise.
10598         * modules/unictype/property-bidi-left-to-right (Depends-on,
10599         configure.ac): Likewise.
10600         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
10601         configure.ac): Likewise.
10602         * modules/unictype/property-bidi-other-neutral (Depends-on,
10603         configure.ac): Likewise.
10604         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
10605         Likewise.
10606         * modules/unictype/property-bidi-segment-separator (Depends-on,
10607         configure.ac): Likewise.
10608         * modules/unictype/property-bidi-whitespace (Depends-on,
10609         configure.ac): Likewise.
10610         * modules/unictype/property-combining (Depends-on, configure.ac):
10611         Likewise.
10612         * modules/unictype/property-composite (Depends-on, configure.ac):
10613         Likewise.
10614         * modules/unictype/property-currency-symbol (Depends-on,
10615         configure.ac): Likewise.
10616         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
10617         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
10618         Likewise.
10619         * modules/unictype/property-default-ignorable-code-point (Depends-on,
10620         configure.ac): Likewise.
10621         * modules/unictype/property-deprecated (Depends-on, configure.ac):
10622         Likewise.
10623         * modules/unictype/property-diacritic (Depends-on, configure.ac):
10624         Likewise.
10625         * modules/unictype/property-extender (Depends-on, configure.ac):
10626         Likewise.
10627         * modules/unictype/property-format-control (Depends-on, configure.ac):
10628         Likewise.
10629         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
10630         Likewise.
10631         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
10632         Likewise.
10633         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
10634         Likewise.
10635         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
10636         Likewise.
10637         * modules/unictype/property-hyphen (Depends-on, configure.ac):
10638         Likewise.
10639         * modules/unictype/property-id-continue (Depends-on, configure.ac):
10640         Likewise.
10641         * modules/unictype/property-id-start (Depends-on, configure.ac):
10642         Likewise.
10643         * modules/unictype/property-ideographic (Depends-on, configure.ac):
10644         Likewise.
10645         * modules/unictype/property-ids-binary-operator (Depends-on,
10646         configure.ac): Likewise.
10647         * modules/unictype/property-ids-trinary-operator (Depends-on,
10648         configure.ac): Likewise.
10649         * modules/unictype/property-ignorable-control (Depends-on,
10650         configure.ac): Likewise.
10651         * modules/unictype/property-iso-control (Depends-on, configure.ac):
10652         Likewise.
10653         * modules/unictype/property-join-control (Depends-on, configure.ac):
10654         Likewise.
10655         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
10656         Likewise.
10657         * modules/unictype/property-line-separator (Depends-on, configure.ac):
10658         Likewise.
10659         * modules/unictype/property-logical-order-exception (Depends-on,
10660         configure.ac): Likewise.
10661         * modules/unictype/property-lowercase (Depends-on, configure.ac):
10662         Likewise.
10663         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
10664         * modules/unictype/property-non-break (Depends-on, configure.ac):
10665         Likewise.
10666         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
10667         Likewise.
10668         * modules/unictype/property-numeric (Depends-on, configure.ac):
10669         Likewise.
10670         * modules/unictype/property-other-alphabetic (Depends-on,
10671         configure.ac): Likewise.
10672         * modules/unictype/property-other-default-ignorable-code-point
10673         (Depends-on, configure.ac): Likewise.
10674         * modules/unictype/property-other-grapheme-extend (Depends-on,
10675         configure.ac): Likewise.
10676         * modules/unictype/property-other-id-continue (Depends-on,
10677         configure.ac): Likewise.
10678         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
10679         Likewise.
10680         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
10681         Likewise.
10682         * modules/unictype/property-other-math (Depends-on, configure.ac):
10683         Likewise.
10684         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
10685         Likewise.
10686         * modules/unictype/property-paired-punctuation (Depends-on,
10687         configure.ac): Likewise.
10688         * modules/unictype/property-paragraph-separator (Depends-on,
10689         configure.ac): Likewise.
10690         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
10691         Likewise.
10692         * modules/unictype/property-pattern-white-space (Depends-on,
10693         configure.ac): Likewise.
10694         * modules/unictype/property-private-use (Depends-on, configure.ac):
10695         Likewise.
10696         * modules/unictype/property-punctuation (Depends-on, configure.ac):
10697         Likewise.
10698         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
10699         Likewise.
10700         * modules/unictype/property-radical (Depends-on, configure.ac):
10701         Likewise.
10702         * modules/unictype/property-sentence-terminal (Depends-on,
10703         configure.ac): Likewise.
10704         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
10705         Likewise.
10706         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
10707         * modules/unictype/property-terminal-punctuation (Depends-on,
10708         configure.ac): Likewise.
10709         * modules/unictype/property-titlecase (Depends-on, configure.ac):
10710         Likewise.
10711         * modules/unictype/property-unassigned-code-value (Depends-on,
10712         configure.ac): Likewise.
10713         * modules/unictype/property-unified-ideograph (Depends-on,
10714         configure.ac): Likewise.
10715         * modules/unictype/property-uppercase (Depends-on, configure.ac):
10716         Likewise.
10717         * modules/unictype/property-variation-selector (Depends-on,
10718         configure.ac): Likewise.
10719         * modules/unictype/property-white-space (Depends-on, configure.ac):
10720         Likewise.
10721         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
10722         Likewise.
10723         * modules/unictype/property-xid-start (Depends-on, configure.ac):
10724         Likewise.
10725         * modules/unictype/property-zero-width (Depends-on, configure.ac):
10726         Likewise.
10727         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
10728         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
10729         Likewise.
10730
10731 2009-12-31  Bruno Haible  <bruno@clisp.org>
10732
10733         Remove unnecessary AC_C_INLINE invocation.
10734         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
10735         since 2009-08-21.
10736
10737 2009-12-31  Jim Meyering  <meyering@redhat.com>
10738
10739         maint.mk: don't require explicit gpg_key_ID in cfg.mk
10740         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
10741         With this change, we can all remove the gpg_key_ID = ... definition
10742         from our respective cfg.mk files.
10743
10744         maint.mk: create announcement template in ~/, not in /tmp
10745         * top/maint.mk (emit_upload_commands): Adjust.
10746         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
10747         Remove temporary file, .ci-msg.
10748
10749 2009-12-31  Eric Blake  <ebb9@byu.net>
10750
10751         link-warning: always build headers with link warnings
10752         * modules/arpa_inet (Makefile.am): Always build replacement
10753         header.
10754         * modules/ctype (Makefile.am): Likewise.
10755         * modules/dirent (Makefile.am): Likewise.
10756         * modules/inttypes (Makefile.am): Likewise.
10757         * modules/langinfo (Makefile.am): Likewise.
10758         * modules/locale (Makefile.am): Likewise.
10759         * modules/spawn (Makefile.am): Likewise.
10760         * modules/sys_file (Makefile.am): Likewise.
10761         * modules/sys_ioctl (Makefile.am): Likewise.
10762         * modules/sys_select (Makefile.am): Likewise.
10763         * modules/sys_socket (Makefile.am): Likewise.
10764         * modules/sys_times (Makefile.am): Likewise.
10765         * modules/sys_utsname (Makefile.am): Likewise.
10766         * modules/sys_wait (Makefile.am): Likewise.
10767         * modules/wchar (Makefile.am): Likewise.
10768         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
10769         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
10770         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
10771         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
10772         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
10773         Likewise.
10774         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10775         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10776         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
10777         Likewise.
10778         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
10779         Likewise.
10780         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10781         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
10782         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
10783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10784         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10785         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10786         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10787         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
10788         (gl_WCHAR_H_DEFAULTS): Likewise.
10789
10790 2009-12-31  Eric Blake  <ebb9@byu.net>
10791
10792         signal, spawn: use link warnings
10793         * lib/signal.in.h (sigset_t): Make unconditional.
10794         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
10795         (sigpending, sigprocmask, sigaction): Add link warnings.
10796         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
10797         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
10798         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
10799         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
10800         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
10801         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
10802         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
10803         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
10804         (posix_spawn_file_actions_destroy)
10805         (posix_spawn_file_actions_addopen)
10806         (posix_spawn_file_actions_addclose)
10807         (posix_spawn_file_actions_adddup2): Likewise.
10808         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
10809         * tests/test-signal.c (main): Enhance test.
10810
10811         spawn: improve wrapper support
10812         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
10813         (gl_SPAWN_H_DEFAULTS): New defaults.
10814         * modules/spawn (Makefile.am): Substitute them.
10815         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
10816         Only declare if missing or broken.
10817
10818         sys_times, sys_utsname: use include_next
10819         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
10820         header.
10821         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
10822         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10823         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10824         * modules/sys_times (Depends-on): Add include_next.
10825         (Makefile.am): Substitute additional values.
10826         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10827         * lib/sys_times.in.h (includes): Include native header, if
10828         available.
10829         * lib/sys_utsname.in.h (includes): Likewise.
10830         * tests/test-sys_times.c (main): Enhance test.
10831
10832         fdutimensat: revert prior patch
10833         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
10834         utimens.h.
10835         Reported by Bruno Haible.
10836
10837 2009-12-30  Eric Blake  <ebb9@byu.net>
10838
10839         sys_wait: drop link-warning dependency
10840         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
10841         link-warning efforts.
10842         * lib/sys_wait.in.h: Likewise.
10843
10844         fdutimensat: remove bogus dependency
10845         * modules/fdutimensat (Depends-on): Drop inline.
10846
10847         unistd: fix typo
10848         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
10849
10850 2009-12-30  Bruno Haible  <bruno@clisp.org>
10851
10852         Fix compilation error with Solaris cc.
10853         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
10854         * lib/unicase/u16-is-invariant.c: Likewise.
10855         * lib/unicase/u32-is-invariant.c: Likewise.
10856         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10857
10858 2009-12-30  Bruno Haible  <bruno@clisp.org>
10859
10860         Fix test crash.
10861         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
10862         locales.
10863         Reported by Simon Josefsson <simon@josefsson.org>.
10864
10865 2009-12-30  Bruno Haible  <bruno@clisp.org>
10866
10867         Fix compilation error on most platforms.
10868         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
10869         Reported by Simon Josefsson <simon@josefsson.org>
10870         and Nelson H. F. Beebe <beebe@math.utah.edu>.
10871
10872 2009-12-30  Eric Blake  <ebb9@byu.net>
10873
10874         futimens, utimensat: work around ntfs-3g bug
10875         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
10876         a ctime bug is present, and expand workaround to cover ntfs-3g.
10877         * lib/utimens.c (fdutimens, lutimens): Likewise.
10878         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
10879         (validate_timespec): Adjust return value.
10880         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
10881         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10882         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
10883
10884 2009-12-29  Eric Blake  <ebb9@byu.net>
10885
10886         link-warning: make usage consistent
10887         * modules/ctype (Depends-on): Add link-warning.
10888         (Makefile.am): Update rules accordingly.
10889         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10890         * modules/locale (Depends-on, Makefile.am): Likewise.
10891         * modules/sys_file (Makefile.am): Likewise.
10892         * modules/getopt-posix (Makefile.am): Delete unused link warning
10893         efforts.
10894         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
10895         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
10896         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
10897         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
10898
10899         stdio: remove unused variables
10900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
10901         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
10902         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10903
10904         tests: test more substitute headers
10905         * modules/ctype-tests: New file.
10906         * modules/dirent-tests: Likewise.
10907         * modules/spawn-tests: Likewise.
10908         * modules/sys_file-tests: Likewise.
10909         * modules/sys_ioctl-tests: Likewise.
10910         * modules/sys_wait-tests: Likewise.
10911         * tests/test-ctype.c: Likewise.
10912         * tests/test-dirent.c: Likewise.
10913         * tests/test-spawn.c: Likewise.
10914         * tests/test-sys_file.c: Likewise.
10915         * tests/test-sys_ioctl.c: Likewise.
10916         * tests/test-sys_wait.c: Likewise.
10917         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
10918         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
10919         whether or not flock is in use.
10920
10921         tests: remove License section from module
10922         * modules/arpa_inet-tests: Remove unneeded section.
10923         * modules/byteswap-tests: Likewise.
10924         * modules/ceilf-tests: Likewise.
10925         * modules/ceill-tests: Likewise.
10926         * modules/crypto/des-tests: Likewise.
10927         * modules/crypto/gc-arcfour-tests: Likewise.
10928         * modules/crypto/gc-arctwo-tests: Likewise.
10929         * modules/crypto/gc-des-tests: Likewise.
10930         * modules/crypto/gc-hmac-md5-tests: Likewise.
10931         * modules/crypto/gc-hmac-sha1-tests: Likewise.
10932         * modules/crypto/gc-md2-tests: Likewise.
10933         * modules/crypto/gc-md4-tests: Likewise.
10934         * modules/crypto/gc-md5-tests: Likewise.
10935         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
10936         * modules/crypto/gc-rijndael-tests: Likewise.
10937         * modules/crypto/gc-sha1-tests: Likewise.
10938         * modules/crypto/gc-tests: Likewise.
10939         * modules/crypto/md2-tests: Likewise.
10940         * modules/crypto/md4-tests: Likewise.
10941         * modules/fcntl-h-tests: Likewise.
10942         * modules/floorf-tests: Likewise.
10943         * modules/floorl-tests: Likewise.
10944         * modules/frexp-nolibm-tests: Likewise.
10945         * modules/frexp-tests: Likewise.
10946         * modules/frexpl-nolibm-tests: Likewise.
10947         * modules/frexpl-tests: Likewise.
10948         * modules/getaddrinfo-tests: Likewise.
10949         * modules/inttypes-tests: Likewise.
10950         * modules/isfinite-tests: Likewise.
10951         * modules/isinf-tests: Likewise.
10952         * modules/ldexpl-tests: Likewise.
10953         * modules/locale-tests: Likewise.
10954         * modules/math-tests: Likewise.
10955         * modules/netdb-tests: Likewise.
10956         * modules/netinet_in-tests: Likewise.
10957         * modules/printf-frexp-tests: Likewise.
10958         * modules/printf-frexpl-tests: Likewise.
10959         * modules/priv-set-tests: Likewise.
10960         * modules/random_r-tests: Likewise.
10961         * modules/round-tests: Likewise.
10962         * modules/roundf-tests: Likewise.
10963         * modules/roundl-tests: Likewise.
10964         * modules/search-tests: Likewise.
10965         * modules/select-tests: Likewise.
10966         * modules/signal-tests: Likewise.
10967         * modules/stdbool-tests: Likewise.
10968         * modules/stddef-tests: Likewise.
10969         * modules/stdint-tests: Likewise.
10970         * modules/stdio-tests: Likewise.
10971         * modules/stdlib-tests: Likewise.
10972         * modules/string-tests: Likewise.
10973         * modules/strings-tests: Likewise.
10974         * modules/sys_select-tests: Likewise.
10975         * modules/sys_socket-tests: Likewise.
10976         * modules/sys_stat-tests: Likewise.
10977         * modules/sys_time-tests: Likewise.
10978         * modules/sys_utsname-tests: Likewise.
10979         * modules/sysexits-tests: Likewise.
10980         * modules/time-tests: Likewise.
10981         * modules/trunc-tests: Likewise.
10982         * modules/truncf-tests: Likewise.
10983         * modules/truncl-tests: Likewise.
10984         * modules/tsearch-tests: Likewise.
10985         * modules/unistd-tests: Likewise.
10986         * modules/wchar-tests: Likewise.
10987         * modules/wctype-tests: Likewise.
10988
10989         tests: fix license on several tests
10990         * tests/test-des.c: Update to GPLv3+.
10991         * tests/test-flock.c: Likewise.
10992         * tests/test-fsync.c: Likewise.
10993         * tests/test-futimens.h: Likewise.
10994         * tests/test-gc-arcfour.c: Likewise.
10995         * tests/test-gc-arctwo.c: Likewise.
10996         * tests/test-gc-des.c: Likewise.
10997         * tests/test-gc-hmac-md5.c: Likewise.
10998         * tests/test-gc-hmac-sha1.c: Likewise.
10999         * tests/test-gc-md2.c: Likewise.
11000         * tests/test-gc-md4.c: Likewise.
11001         * tests/test-gc-md5.c: Likewise.
11002         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11003         * tests/test-gc-rijndael.c: Likewise.
11004         * tests/test-gc-sha1.c: Likewise.
11005         * tests/test-gc.c: Likewise.
11006         * tests/test-getcwd.c: Likewise.
11007         * tests/test-link.c: Likewise.
11008         * tests/test-link.h: Likewise.
11009         * tests/test-lutimens.h: Likewise.
11010         * tests/test-md2.c: Likewise.
11011         * tests/test-md4.c: Likewise.
11012         * tests/test-mkdir.h: Likewise.
11013         * tests/test-rename.c: Likewise.
11014         * tests/test-rename.h: Likewise.
11015         * tests/test-safe-alloc.c: Likewise.
11016         * tests/test-utimens-common.h: Likewise.
11017         * tests/test-utimens.h: Likewise.
11018
11019         maint: sync license texts
11020         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11021         * doc/gpl-3.0.texi: Revert copyright year update.
11022         * doc/lgpl-3.0.texi: Likewise.
11023
11024 2009-12-29  Jim Meyering  <meyering@redhat.com>
11025
11026         update nearly all FSF copyright year lists to include 2009
11027         The files named by the following are exempted:
11028             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11029               test -f "$dst" && { echo "$dst"; continue; }
11030               test -d "$dst" || continue
11031               echo "$dst"/$(basename "$src")
11032             done > exempt
11033             git ls-files tests/unictype >> exempt
11034         In the remaining files, convert to all-interval notation if
11035         - there is already at least one year interval like 2000-2003
11036         - the file is maintained by me
11037         - the file is in lib/uni*/, where that style already prevails
11038         Otherwise, use update-copyright's default.
11039
11040 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11041         and Eric Blake  <ebb9@byu.net>
11042
11043         tests: don't require debug system() to pass
11044         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11045         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11046         * tests/test-unlink.h (test_unlink_func): Likewise.
11047         * tests/test-fstatat.c (main): ...into callers.
11048         * tests/test-lstat.c (main): Likewise.
11049         * tests/test-rmdir.c (main): Likewise.
11050         * tests/test-unlink.c (main): Likewise.
11051         * tests/test-unlinkat.c (main): Likewise.
11052         * tests/test-areadlink-with-size.c (main): Don't require a
11053         debug-only system call to pass, aiding cross-testing to mingw.
11054         * tests/test-areadlink.c (main): Likewise.
11055         * tests/test-areadlinkat-with-size.c (main): Likewise.
11056         * tests/test-areadlinkat.c (main): Likewise.
11057         * tests/test-canonicalize-lgpl.c (main): Likewise.
11058         * tests/test-canonicalize.c (main): Likewise.
11059         * tests/test-chown.c (main): Likewise.
11060         * tests/test-fchownat.c (main): Likewise.
11061         * tests/test-lchown.c (main): Likewise.
11062         * tests/test-fdutimensat.c (main): Likewise.
11063         * tests/test-futimens.c (main): Likewise.
11064         * tests/test-link.c (main): Likewise.
11065         * tests/test-linkat.c (main): Likewise.
11066         * tests/test-mkdir.c (main): Likewise.
11067         * tests/test-mkdirat.c (main): Likewise.
11068         * tests/test-mkfifo.c (main): Likewise.
11069         * tests/test-mkfifoat.c (main): Likewise.
11070         * tests/test-mknod.c (main): Likewise.
11071         * tests/test-readlink.c (main): Likewise.
11072         * tests/test-remove.c (main): Likewise.
11073         * tests/test-rename.c (main): Likewise.
11074         * tests/test-renameat.c (main): Likewise.
11075         * tests/test-symlink.c (main): Likewise.
11076         * tests/test-symlinkat.c (main): Likewise.
11077         * tests/test-utimens.c (main): Likewise.
11078         * tests/test-utimensat.c (main): Likewise.
11079
11080 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11081
11082         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11083         on $(UNUSED_PARAMETER_H) to avoid build failure.
11084
11085 2009-12-28  Jim Meyering  <meyering@redhat.com>
11086
11087         update-copyright: you may specify a max. line length other than 72
11088         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11089
11090         maint: use consistent FSF copyright line syntax
11091         * lib/posixtm.c: Add missing comma in FSF copyright line.
11092         * lib/posixtm.h: Likewise.
11093         * lib/getugroups.c: Add missing ", Inc.".
11094
11095         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11096         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11097         FSF copyright line.  Remove trailing blanks.
11098
11099 2009-12-28  Eric Blake  <ebb9@byu.net>
11100
11101         test-dup2: reduce dependencies
11102         * modules/cloexec (Configure.ac): Set witness.
11103         * modules/dup2-tests (Depends-on): Drop cloexec.
11104         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11105         not present.
11106         Suggested by Bruno Haible.
11107
11108 2009-12-26  Bruno Haible  <bruno@clisp.org>
11109
11110         Remove an unneeded dependency.
11111         * modules/fseterr (Depends-on): Remove dup2.
11112
11113 2009-12-26  Eric Blake  <ebb9@byu.net>
11114
11115         tests: use macros.h in more places
11116         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11117         (ASSERT_STREAM): Provide default of stderr.
11118         * tests/test-dirent-safer.c: Include macros.h, using alternate
11119         stream for assertions.
11120         * tests/test-dup-safer.c: Likewise.
11121         * tests/test-freopen-safer.c: Likewise.
11122         * tests/test-getopt.c: Likewise.
11123         * tests/test-openat-safer.c: Likewise.
11124         * tests/test-pipe.c: Likewise.
11125         * tests/test-popen-safer.c: Likewise.
11126         * modules/dirent-safer-tests (Files): Include macros.h.
11127         * modules/unistd-safer-tests (Files): Likewise.
11128         * modules/freopen-safer-tests (Files): Likewise.
11129         * modules/getopt-posix-tests (Files): Likewise.
11130         * modules/openat-safer-tests (Files): Likewise.
11131         * modules/pipe-tests (Files): Likewise.
11132
11133 2009-12-26  Bruno Haible  <bruno@clisp.org>
11134
11135         javacomp: Portability fix.
11136         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11137         that it also works on Solaris.
11138
11139 2009-12-26  Bruno Haible  <bruno@clisp.org>
11140
11141         localename: Fix storage allocation of gl_locale_name_thread's result.
11142         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11143         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11144         all platforms that have 'uselocale'.
11145         (gl_locale_name_thread_unsafe): New function, extracted from
11146         gl_locale_name_thread.
11147         (gl_locale_name_thread): Call struniq on all platforms that have
11148         'uselocale'.
11149         * tests/test-localename.c (test_locale_name_thread): Check that the
11150         resulting strings are permanently allocated.
11151         * modules/localename-tests (Depends-on): Add strdup.
11152
11153 2009-12-26  Bruno Haible  <bruno@clisp.org>
11154
11155         * tests/test-localename.c (categories): Fill in the strings.
11156
11157 2009-12-26  Jim Meyering  <meyering@redhat.com>
11158
11159         isdir: complete the removal of m4/isdir.m4
11160         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11161
11162         isdir: clean up, since at least grep still uses it
11163         * lib/isdir.c: Include "isdir.h".
11164         (S_ISDIR): Remove now-unneeded definition.
11165         * modules/isdir (Files): Add lib/isdir.h.
11166         * lib/isdir.h: New file, with declaration.
11167         * m4/isdir.m4: Remove file -- unneeded.
11168
11169 2009-12-25  Bruno Haible  <bruno@clisp.org>
11170
11171         selinux-h: Make generated .h files standalone.
11172         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11173         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11174         * lib/se-selinux.in.h: Likewise.
11175         * modules/selinux-h (Depends-on): Add unused-parameter.
11176         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11177         selinux/selinux.h and selinux/context.h.
11178         Suggested by Eric Blake.
11179
11180 2009-12-25  Bruno Haible  <bruno@clisp.org>
11181
11182         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11183         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11184         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11185         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11186         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11187
11188 2009-12-24  Bruno Haible  <bruno@clisp.org>
11189
11190         openat: Fix warning.
11191         * lib/openat-proc.c: Include <unistd.h>.
11192
11193 2009-12-24  Bruno Haible  <bruno@clisp.org>
11194
11195         New module 'unused-parameter'.
11196         * build-aux/unused-parameter.h: New file, extracted from earlier
11197         gnulib-common.m4.
11198         * modules/unused-parameter: New file.
11199         * lib/unistr.h: Include unused-parameter.h.
11200         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11201         _GL_UNUSED.
11202         * modules/unistr/base (Depends-on): Add unused-parameter.
11203
11204 2009-12-24  Bruno Haible  <bruno@clisp.org>
11205
11206         Add missing dependencies to 'extensions' module.
11207         * m4/extensions.m4: Add comment.
11208         * modules/accept4 (Depends-on): Add extensions.
11209         * modules/dup3 (Depends-on): Likewise.
11210         * modules/fcntl (Depends-on): Likewise.
11211         * modules/futimens (Depends-on): Likewise.
11212         * modules/mknod (Depends-on): Likewise.
11213         * modules/pipe2 (Depends-on): Likewise.
11214         * modules/stat-time (Depends-on): Likewise.
11215         * modules/strcasestr-simple (Depends-on): Likewise.
11216         * modules/strsignal (Depends-on): Likewise.
11217         * modules/utimensat (Depends-on): Likewise.
11218         * modules/localcharset (Depends-on): Likewise. Needed because of
11219         gl_FCNTL_O_FLAGS.
11220         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11221         AC_TYPE_MBSTATE_T.
11222         * modules/wcsnrtombs (Depends-on): Likewise.
11223         * modules/wcsrtombs (Depends-on): Likewise.
11224
11225 2009-12-24  Bruno Haible  <bruno@clisp.org>
11226
11227         binary-io: Avoid gcc warning due to SET_BINARY.
11228         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11229         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11230
11231 2009-12-24  Bruno Haible  <bruno@clisp.org>
11232
11233         Avoid future namespace pollution on glibc systems.
11234         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11235         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11236         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11237         glibc systems.
11238
11239 2009-12-24  Bruno Haible  <bruno@clisp.org>
11240
11241         Refactor common macros used in tests.
11242         * tests/macros.h: New file.
11243         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11244         and/or <stdlib.h>, if appropriate.
11245         (ASSERT, SIZEOF): Remove macros.
11246         * tests/test-areadlink-with-size.c: Likewise.
11247         * tests/test-areadlinkat.c: Likewise.
11248         * tests/test-areadlinkat-with-size.c: Likewise.
11249         * tests/test-argmatch.c: Likewise.
11250         * tests/test-argv-iter.c: Likewise.
11251         * tests/test-array-mergesort.c: Likewise.
11252         * tests/test-array_list.c: Likewise.
11253         * tests/test-array_oset.c: Likewise.
11254         * tests/test-avltree_list.c: Likewise.
11255         * tests/test-avltree_oset.c: Likewise.
11256         * tests/test-avltreehash_list.c: Likewise.
11257         * tests/test-base64.c: Likewise.
11258         * tests/test-binary-io.c: Likewise.
11259         * tests/test-bitrotate.c: Likewise.
11260         * tests/test-btowc.c: Likewise.
11261         * tests/test-byteswap.c: Likewise.
11262         * tests/test-c-ctype.c: Likewise.
11263         * tests/test-c-stack.c: Likewise.
11264         * tests/test-c-strcasecmp.c: Likewise.
11265         * tests/test-c-strcasestr.c: Likewise.
11266         * tests/test-c-strncasecmp.c: Likewise.
11267         * tests/test-c-strstr.c: Likewise.
11268         * tests/test-canonicalize-lgpl.c: Likewise.
11269         * tests/test-canonicalize.c: Likewise.
11270         * tests/test-carray_list.c: Likewise.
11271         * tests/test-ceilf1.c: Likewise.
11272         * tests/test-ceilf2.c: Likewise.
11273         * tests/test-ceill.c: Likewise.
11274         * tests/test-chown.c: Likewise.
11275         * tests/test-cloexec.c: Likewise.
11276         * tests/test-copy-acl.c: Likewise.
11277         * tests/test-copy-file.c: Likewise.
11278         * tests/test-count-one-bits.c: Likewise.
11279         * tests/test-dprintf-posix.c: Likewise.
11280         * tests/test-dup2.c: Likewise.
11281         * tests/test-dup3.c: Likewise.
11282         * tests/test-duplocale.c: Likewise.
11283         * tests/test-fbufmode.c: Likewise.
11284         * tests/test-fchdir.c: Likewise.
11285         * tests/test-fchownat.c: Likewise.
11286         * tests/test-fcntl-safer.c: Likewise.
11287         * tests/test-fcntl.c: Likewise.
11288         * tests/test-fdopendir.c: Likewise.
11289         * tests/test-fdutimensat.c: Likewise.
11290         * tests/test-fflush2.c: Likewise.
11291         * tests/test-file-has-acl.c: Likewise.
11292         * tests/test-filevercmp.c: Likewise.
11293         * tests/test-flock.c: Likewise.
11294         * tests/test-floorf1.c: Likewise.
11295         * tests/test-floorf2.c: Likewise.
11296         * tests/test-floorl.c: Likewise.
11297         * tests/test-fnmatch.c: Likewise.
11298         * tests/test-fopen.h: Likewise.
11299         * tests/test-fpending.c: Likewise.
11300         * tests/test-fprintf-posix.c: Likewise.
11301         * tests/test-fpurge.c: Likewise.
11302         * tests/test-freadable.c: Likewise.
11303         * tests/test-freadahead.c: Likewise.
11304         * tests/test-freading.c: Likewise.
11305         * tests/test-freadptr.c: Likewise.
11306         * tests/test-freadptr2.c: Likewise.
11307         * tests/test-freadseek.c: Likewise.
11308         * tests/test-freopen.c: Likewise.
11309         * tests/test-frexp.c: Likewise.
11310         * tests/test-frexpl.c: Likewise.
11311         * tests/test-fseek.c: Likewise.
11312         * tests/test-fseeko.c: Likewise.
11313         * tests/test-fstatat.c: Likewise.
11314         * tests/test-fstrcmp.c: Likewise.
11315         * tests/test-fsync.c: Likewise.
11316         * tests/test-ftell.c: Likewise.
11317         * tests/test-ftello.c: Likewise.
11318         * tests/test-func.c: Likewise.
11319         * tests/test-futimens.c: Likewise.
11320         * tests/test-fwritable.c: Likewise.
11321         * tests/test-fwriting.c: Likewise.
11322         * tests/test-getcwd.c: Likewise.
11323         * tests/test-getdate.c: Likewise.
11324         * tests/test-getdelim.c: Likewise.
11325         * tests/test-getdtablesize.c: Likewise.
11326         * tests/test-getgroups.c: Likewise.
11327         * tests/test-getline.c: Likewise.
11328         * tests/test-getndelim2.c: Likewise.
11329         * tests/test-glob.c: Likewise.
11330         * tests/test-hash.c: Likewise.
11331         * tests/test-i-ring.c: Likewise.
11332         * tests/test-iconv-utf.c: Likewise.
11333         * tests/test-iconv.c: Likewise.
11334         * tests/test-idpriv-drop.c: Likewise.
11335         * tests/test-idpriv-droptemp.c: Likewise.
11336         * tests/test-inet_ntop.c: Likewise.
11337         * tests/test-inet_pton.c: Likewise.
11338         * tests/test-isblank.c: Likewise.
11339         * tests/test-isfinite.c: Likewise.
11340         * tests/test-isinf.c: Likewise.
11341         * tests/test-isnan.c: Likewise.
11342         * tests/test-isnand.h: Likewise.
11343         * tests/test-isnanf.h: Likewise.
11344         * tests/test-isnanl.h: Likewise.
11345         * tests/test-lchown.c: Likewise.
11346         * tests/test-ldexpl.c: Likewise.
11347         * tests/test-link.c: Likewise.
11348         * tests/test-linkat.c: Likewise.
11349         * tests/test-linked_list.c: Likewise.
11350         * tests/test-linkedhash_list.c: Likewise.
11351         * tests/test-localename.c: Likewise.
11352         * tests/test-lseek.c: Likewise.
11353         * tests/test-lstat.c: Likewise.
11354         * tests/test-mbmemcasecmp.c: Likewise.
11355         * tests/test-mbmemcasecoll.c: Likewise.
11356         * tests/test-mbrtowc.c: Likewise.
11357         * tests/test-mbscasecmp.c: Likewise.
11358         * tests/test-mbscasestr1.c: Likewise.
11359         * tests/test-mbscasestr2.c: Likewise.
11360         * tests/test-mbscasestr3.c: Likewise.
11361         * tests/test-mbscasestr4.c: Likewise.
11362         * tests/test-mbschr.c: Likewise.
11363         * tests/test-mbscspn.c: Likewise.
11364         * tests/test-mbsinit.c: Likewise.
11365         * tests/test-mbsncasecmp.c: Likewise.
11366         * tests/test-mbsnrtowcs.c: Likewise.
11367         * tests/test-mbspbrk.c: Likewise.
11368         * tests/test-mbspcasecmp.c: Likewise.
11369         * tests/test-mbsrchr.c: Likewise.
11370         * tests/test-mbsrtowcs.c: Likewise.
11371         * tests/test-mbsspn.c: Likewise.
11372         * tests/test-mbsstr1.c: Likewise.
11373         * tests/test-mbsstr2.c: Likewise.
11374         * tests/test-mbsstr3.c: Likewise.
11375         * tests/test-memchr.c: Likewise.
11376         * tests/test-memchr2.c: Likewise.
11377         * tests/test-memcmp.c: Likewise.
11378         * tests/test-memmem.c: Likewise.
11379         * tests/test-memrchr.c: Likewise.
11380         * tests/test-mkdir.c: Likewise.
11381         * tests/test-mkdirat.c: Likewise.
11382         * tests/test-mkfifo.c: Likewise.
11383         * tests/test-mkfifoat.c: Likewise.
11384         * tests/test-mknod.c: Likewise.
11385         * tests/test-nanosleep.c: Likewise.
11386         * tests/test-nl_langinfo.c: Likewise.
11387         * tests/test-obstack-printf.c: Likewise.
11388         * tests/test-open.c: Likewise.
11389         * tests/test-openat.c: Likewise.
11390         * tests/test-pipe-filter-gi1.c: Likewise.
11391         * tests/test-pipe-filter-gi2-main.c: Likewise.
11392         * tests/test-pipe-filter-ii1.c: Likewise.
11393         * tests/test-pipe-filter-ii2-main.c: Likewise.
11394         * tests/test-pipe2.c: Likewise.
11395         * tests/test-popen.h: Likewise.
11396         * tests/test-posixtm.c: Likewise.
11397         * tests/test-pread.c: Likewise.
11398         * tests/test-printf-frexp.c: Likewise.
11399         * tests/test-printf-frexpl.c: Likewise.
11400         * tests/test-printf-posix.c: Likewise.
11401         * tests/test-priv-set.c: Likewise.
11402         * tests/test-quotearg.c: Likewise.
11403         * tests/test-random_r.c: Likewise.
11404         * tests/test-rawmemchr.c: Likewise.
11405         * tests/test-rbtree_list.c: Likewise.
11406         * tests/test-rbtree_oset.c: Likewise.
11407         * tests/test-rbtreehash_list.c: Likewise.
11408         * tests/test-readlink.c: Likewise.
11409         * tests/test-remove.c: Likewise.
11410         * tests/test-rename.c: Likewise.
11411         * tests/test-renameat.c: Likewise.
11412         * tests/test-rmdir.c: Likewise.
11413         * tests/test-round1.c: Likewise.
11414         * tests/test-roundf1.c: Likewise.
11415         * tests/test-roundl.c: Likewise.
11416         * tests/test-safe-alloc.c: Likewise.
11417         * tests/test-sameacls.c: Likewise.
11418         * tests/test-set-mode-acl.c: Likewise.
11419         * tests/test-setenv.c: Likewise.
11420         * tests/test-sigaction.c: Likewise.
11421         * tests/test-signbit.c: Likewise.
11422         * tests/test-sleep.c: Likewise.
11423         * tests/test-snprintf-posix.c: Likewise.
11424         * tests/test-snprintf.c: Likewise.
11425         * tests/test-sprintf-posix.c: Likewise.
11426         * tests/test-stat-time.c: Likewise.
11427         * tests/test-stat.c: Likewise.
11428         * tests/test-strcasestr.c: Likewise.
11429         * tests/test-strchrnul.c: Likewise.
11430         * tests/test-strerror.c: Likewise.
11431         * tests/test-striconv.c: Likewise.
11432         * tests/test-striconveh.c: Likewise.
11433         * tests/test-striconveha.c: Likewise.
11434         * tests/test-strsignal.c: Likewise.
11435         * tests/test-strstr.c: Likewise.
11436         * tests/test-strtod.c: Likewise.
11437         * tests/test-strverscmp.c: Likewise.
11438         * tests/test-symlink.c: Likewise.
11439         * tests/test-symlinkat.c: Likewise.
11440         * tests/test-trunc1.c: Likewise.
11441         * tests/test-trunc2.c: Likewise.
11442         * tests/test-truncf1.c: Likewise.
11443         * tests/test-truncf2.c: Likewise.
11444         * tests/test-truncl.c: Likewise.
11445         * tests/test-uname.c: Likewise.
11446         * tests/test-unlink.c: Likewise.
11447         * tests/test-unlinkat.c: Likewise.
11448         * tests/test-unsetenv.c: Likewise.
11449         * tests/test-usleep.c: Likewise.
11450         * tests/test-utimens.c: Likewise.
11451         * tests/test-utimensat.c: Likewise.
11452         * tests/test-vasnprintf-posix.c: Likewise.
11453         * tests/test-vasnprintf-posix2.c: Likewise.
11454         * tests/test-vasnprintf.c: Likewise.
11455         * tests/test-vasprintf-posix.c: Likewise.
11456         * tests/test-vasprintf.c: Likewise.
11457         * tests/test-vdprintf-posix.c: Likewise.
11458         * tests/test-vfprintf-posix.c: Likewise.
11459         * tests/test-vprintf-posix.c: Likewise.
11460         * tests/test-vsnprintf-posix.c: Likewise.
11461         * tests/test-vsnprintf.c: Likewise.
11462         * tests/test-vsprintf-posix.c: Likewise.
11463         * tests/test-wcrtomb.c: Likewise.
11464         * tests/test-wcsnrtombs.c: Likewise.
11465         * tests/test-wcsrtombs.c: Likewise.
11466         * tests/test-wctype.c: Likewise.
11467         * tests/test-wcwidth.c: Likewise.
11468         * tests/test-xfprintf-posix.c: Likewise.
11469         * tests/test-xmemdup0.c: Likewise.
11470         * tests/test-xprintf-posix.c: Likewise.
11471         * tests/test-xvasprintf.c: Likewise.
11472         * tests/unicase/test-locale-language.c: Likewise.
11473         * tests/unicase/test-mapping-part1.h: Likewise.
11474         * tests/unicase/test-predicate-part1.h: Likewise.
11475         * tests/unicase/test-u8-casecmp.c: Likewise.
11476         * tests/unicase/test-u8-casecoll.c: Likewise.
11477         * tests/unicase/test-u8-casefold.c: Likewise.
11478         * tests/unicase/test-u8-is-cased.c: Likewise.
11479         * tests/unicase/test-u8-is-casefolded.c: Likewise.
11480         * tests/unicase/test-u8-is-lowercase.c: Likewise.
11481         * tests/unicase/test-u8-is-titlecase.c: Likewise.
11482         * tests/unicase/test-u8-is-uppercase.c: Likewise.
11483         * tests/unicase/test-u8-tolower.c: Likewise.
11484         * tests/unicase/test-u8-totitle.c: Likewise.
11485         * tests/unicase/test-u8-toupper.c: Likewise.
11486         * tests/unicase/test-u16-casecmp.c: Likewise.
11487         * tests/unicase/test-u16-casecoll.c: Likewise.
11488         * tests/unicase/test-u16-casefold.c: Likewise.
11489         * tests/unicase/test-u16-is-cased.c: Likewise.
11490         * tests/unicase/test-u16-is-casefolded.c: Likewise.
11491         * tests/unicase/test-u16-is-lowercase.c: Likewise.
11492         * tests/unicase/test-u16-is-titlecase.c: Likewise.
11493         * tests/unicase/test-u16-is-uppercase.c: Likewise.
11494         * tests/unicase/test-u16-tolower.c: Likewise.
11495         * tests/unicase/test-u16-totitle.c: Likewise.
11496         * tests/unicase/test-u16-toupper.c: Likewise.
11497         * tests/unicase/test-u32-casecmp.c: Likewise.
11498         * tests/unicase/test-u32-casecoll.c: Likewise.
11499         * tests/unicase/test-u32-casefold.c: Likewise.
11500         * tests/unicase/test-u32-is-cased.c: Likewise.
11501         * tests/unicase/test-u32-is-casefolded.c: Likewise.
11502         * tests/unicase/test-u32-is-lowercase.c: Likewise.
11503         * tests/unicase/test-u32-is-titlecase.c: Likewise.
11504         * tests/unicase/test-u32-is-uppercase.c: Likewise.
11505         * tests/unicase/test-u32-tolower.c: Likewise.
11506         * tests/unicase/test-u32-totitle.c: Likewise.
11507         * tests/unicase/test-u32-toupper.c: Likewise.
11508         * tests/unicase/test-ulc-casecmp.c: Likewise.
11509         * tests/unicase/test-ulc-casecoll.c: Likewise.
11510         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11511         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11512         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11513         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11514         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11515         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11516         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11517         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11518         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11519         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11520         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11521         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11522         * tests/unictype/test-bidi_byname.c: Likewise.
11523         * tests/unictype/test-bidi_name.c: Likewise.
11524         * tests/unictype/test-bidi_of.c: Likewise.
11525         * tests/unictype/test-bidi_test.c: Likewise.
11526         * tests/unictype/test-block_list.c: Likewise.
11527         * tests/unictype/test-block_of.c: Likewise.
11528         * tests/unictype/test-block_test.c: Likewise.
11529         * tests/unictype/test-categ_and.c: Likewise.
11530         * tests/unictype/test-categ_and_not.c: Likewise.
11531         * tests/unictype/test-categ_byname.c: Likewise.
11532         * tests/unictype/test-categ_name.c: Likewise.
11533         * tests/unictype/test-categ_none.c: Likewise.
11534         * tests/unictype/test-categ_of.c: Likewise.
11535         * tests/unictype/test-categ_or.c: Likewise.
11536         * tests/unictype/test-categ_test_withtable.c: Likewise.
11537         * tests/unictype/test-combining.c: Likewise.
11538         * tests/unictype/test-decdigit.c: Likewise.
11539         * tests/unictype/test-digit.c: Likewise.
11540         * tests/unictype/test-mirror.c: Likewise.
11541         * tests/unictype/test-numeric.c: Likewise.
11542         * tests/unictype/test-pr_byname.c: Likewise.
11543         * tests/unictype/test-pr_test.c: Likewise.
11544         * tests/unictype/test-predicate-part1.h: Likewise.
11545         * tests/unictype/test-scripts.c: Likewise.
11546         * tests/unictype/test-sy_c_ident.c: Likewise.
11547         * tests/unictype/test-sy_java_ident.c: Likewise.
11548         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
11549         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
11550         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
11551         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
11552         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
11553         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
11554         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
11555         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
11556         * tests/uninorm/test-canonical-decomposition.c: Likewise.
11557         * tests/uninorm/test-compat-decomposition.c: Likewise.
11558         * tests/uninorm/test-composition.c: Likewise.
11559         * tests/uninorm/test-decomposing-form.c: Likewise.
11560         * tests/uninorm/test-decomposition.c: Likewise.
11561         * tests/uninorm/test-u8-nfc.c: Likewise.
11562         * tests/uninorm/test-u8-nfd.c: Likewise.
11563         * tests/uninorm/test-u8-nfkc.c: Likewise.
11564         * tests/uninorm/test-u8-nfkd.c: Likewise.
11565         * tests/uninorm/test-u8-normcmp.c: Likewise.
11566         * tests/uninorm/test-u8-normcoll.c: Likewise.
11567         * tests/uninorm/test-u16-nfc.c: Likewise.
11568         * tests/uninorm/test-u16-nfd.c: Likewise.
11569         * tests/uninorm/test-u16-nfkc.c: Likewise.
11570         * tests/uninorm/test-u16-nfkd.c: Likewise.
11571         * tests/uninorm/test-u16-normcmp.c: Likewise.
11572         * tests/uninorm/test-u16-normcoll.c: Likewise.
11573         * tests/uninorm/test-u32-nfc.c: Likewise.
11574         * tests/uninorm/test-u32-nfd.c: Likewise.
11575         * tests/uninorm/test-u32-nfkc.c: Likewise.
11576         * tests/uninorm/test-u32-nfkd.c: Likewise.
11577         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11578         * tests/uninorm/test-u32-normcmp.c: Likewise.
11579         * tests/uninorm/test-u32-normcoll.c: Likewise.
11580         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
11581         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11582         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11583         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11584         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11585         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11586         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11587         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11588         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11589         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11590         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11591         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11592         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11593         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11594         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11595         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11596         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11597         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11598         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11599         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11600         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11601         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11602         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11603         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11604         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11605         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11606         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11607         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11608         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11609         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
11610         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
11611         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
11612         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
11613         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11614         * tests/uniwidth/test-u8-width.c: Likewise.
11615         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11616         * tests/uniwidth/test-u16-width.c: Likewise.
11617         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11618         * tests/uniwidth/test-u32-width.c: Likewise.
11619         * tests/uniwidth/test-uc_width.c: Likewise.
11620         * tests/uniwidth/test-uc_width2.c: Likewise.
11621         * modules/acl-tests (Files): Add tests/macros.h.
11622         * modules/areadlink-tests (Files): Likewise.
11623         * modules/areadlink-with-size-tests (Files): Likewise.
11624         * modules/areadlinkat-tests (Files): Likewise.
11625         * modules/areadlinkat-with-size-tests (Files): Likewise.
11626         * modules/argmatch-tests (Files): Likewise.
11627         * modules/argv-iter-tests (Files): Likewise.
11628         * modules/array-list-tests (Files): Likewise.
11629         * modules/array-mergesort-tests (Files): Likewise.
11630         * modules/array-oset-tests (Files): Likewise.
11631         * modules/avltree-list-tests (Files): Likewise.
11632         * modules/avltree-oset-tests (Files): Likewise.
11633         * modules/avltreehash-list-tests (Files): Likewise.
11634         * modules/base64-tests (Files): Likewise.
11635         * modules/binary-io-tests (Files): Likewise.
11636         * modules/bitrotate-tests (Files): Likewise.
11637         * modules/btowc-tests (Files): Likewise.
11638         * modules/byteswap-tests (Files): Likewise.
11639         * modules/c-ctype-tests (Files): Likewise.
11640         * modules/c-stack-tests (Files): Likewise.
11641         * modules/c-strcase-tests (Files): Likewise.
11642         * modules/c-strcasestr-tests (Files): Likewise.
11643         * modules/c-strstr-tests (Files): Likewise.
11644         * modules/canonicalize-lgpl-tests (Files): Likewise.
11645         * modules/canonicalize-tests (Files): Likewise.
11646         * modules/carray-list-tests (Files): Likewise.
11647         * modules/ceilf-tests (Files): Likewise.
11648         * modules/ceill-tests (Files): Likewise.
11649         * modules/chown-tests (Files): Likewise.
11650         * modules/cloexec-tests (Files): Likewise.
11651         * modules/copy-file-tests (Files): Likewise.
11652         * modules/count-one-bits-tests (Files): Likewise.
11653         * modules/dprintf-posix-tests (Files): Likewise.
11654         * modules/dup2-tests (Files): Likewise.
11655         * modules/dup3-tests (Files): Likewise.
11656         * modules/duplocale-tests (Files): Likewise.
11657         * modules/fbufmode-tests (Files): Likewise.
11658         * modules/fchdir-tests (Files): Likewise.
11659         * modules/fcntl-safer-tests (Files): Likewise.
11660         * modules/fcntl-tests (Files): Likewise.
11661         * modules/fdopendir-tests (Files): Likewise.
11662         * modules/fdutimensat-tests (Files): Likewise.
11663         * modules/fflush-tests (Files): Likewise.
11664         * modules/filevercmp-tests (Files): Likewise.
11665         * modules/flock-tests (Files): Likewise.
11666         * modules/floorf-tests (Files): Likewise.
11667         * modules/floorl-tests (Files): Likewise.
11668         * modules/fnmatch-tests (Files): Likewise.
11669         * modules/fopen-safer-tests (Files): Likewise.
11670         * modules/fopen-tests (Files): Likewise.
11671         * modules/fpending-tests (Files): Likewise.
11672         * modules/fprintf-posix-tests (Files): Likewise.
11673         * modules/fpurge-tests (Files): Likewise.
11674         * modules/freadable-tests (Files): Likewise.
11675         * modules/freadahead-tests (Files): Likewise.
11676         * modules/freading-tests (Files): Likewise.
11677         * modules/freadptr-tests (Files): Likewise.
11678         * modules/freadseek-tests (Files): Likewise.
11679         * modules/freopen-tests (Files): Likewise.
11680         * modules/frexp-nolibm-tests (Files): Likewise.
11681         * modules/frexp-tests (Files): Likewise.
11682         * modules/frexpl-nolibm-tests (Files): Likewise.
11683         * modules/frexpl-tests (Files): Likewise.
11684         * modules/fseek-tests (Files): Likewise.
11685         * modules/fseeko-tests (Files): Likewise.
11686         * modules/fstrcmp-tests (Files): Likewise.
11687         * modules/fsync-tests (Files): Likewise.
11688         * modules/ftell-tests (Files): Likewise.
11689         * modules/ftello-tests (Files): Likewise.
11690         * modules/func-tests (Files): Likewise.
11691         * modules/futimens-tests (Files): Likewise.
11692         * modules/fwritable-tests (Files): Likewise.
11693         * modules/fwriting-tests (Files): Likewise.
11694         * modules/getcwd-tests (Files): Likewise.
11695         * modules/getdate-tests (Files): Likewise.
11696         * modules/getdelim-tests (Files): Likewise.
11697         * modules/getdtablesize-tests (Files): Likewise.
11698         * modules/getgroups-tests (Files): Likewise.
11699         * modules/getline-tests (Files): Likewise.
11700         * modules/getndelim2-tests (Files): Likewise.
11701         * modules/glob-tests (Files): Likewise.
11702         * modules/hash-tests (Files): Likewise.
11703         * modules/i-ring-tests (Files): Likewise.
11704         * modules/iconv-tests (Files): Likewise.
11705         * modules/iconv_open-utf-tests (Files): Likewise.
11706         * modules/idpriv-drop-tests (Files): Likewise.
11707         * modules/idpriv-droptemp-tests (Files): Likewise.
11708         * modules/inet_ntop-tests (Files): Likewise.
11709         * modules/inet_pton-tests (Files): Likewise.
11710         * modules/isblank-tests (Files): Likewise.
11711         * modules/isfinite-tests (Files): Likewise.
11712         * modules/isinf-tests (Files): Likewise.
11713         * modules/isnan-tests (Files): Likewise.
11714         * modules/isnand-nolibm-tests (Files): Likewise.
11715         * modules/isnand-tests (Files): Likewise.
11716         * modules/isnanf-nolibm-tests (Files): Likewise.
11717         * modules/isnanf-tests (Files): Likewise.
11718         * modules/isnanl-nolibm-tests (Files): Likewise.
11719         * modules/isnanl-tests (Files): Likewise.
11720         * modules/lchown-tests (Files): Likewise.
11721         * modules/ldexpl-tests (Files): Likewise.
11722         * modules/link-tests (Files): Likewise.
11723         * modules/linkat-tests (Files): Likewise.
11724         * modules/linked-list-tests (Files): Likewise.
11725         * modules/linkedhash-list-tests (Files): Likewise.
11726         * modules/localename-tests (Files): Likewise.
11727         * modules/lseek-tests (Files): Likewise.
11728         * modules/lstat-tests (Files): Likewise.
11729         * modules/mbmemcasecmp-tests (Files): Likewise.
11730         * modules/mbmemcasecoll-tests (Files): Likewise.
11731         * modules/mbrtowc-tests (Files): Likewise.
11732         * modules/mbscasecmp-tests (Files): Likewise.
11733         * modules/mbscasestr-tests (Files): Likewise.
11734         * modules/mbschr-tests (Files): Likewise.
11735         * modules/mbscspn-tests (Files): Likewise.
11736         * modules/mbsinit-tests (Files): Likewise.
11737         * modules/mbsncasecmp-tests (Files): Likewise.
11738         * modules/mbsnrtowcs-tests (Files): Likewise.
11739         * modules/mbspbrk-tests (Files): Likewise.
11740         * modules/mbspcasecmp-tests (Files): Likewise.
11741         * modules/mbsrchr-tests (Files): Likewise.
11742         * modules/mbsrtowcs-tests (Files): Likewise.
11743         * modules/mbsspn-tests (Files): Likewise.
11744         * modules/mbsstr-tests (Files): Likewise.
11745         * modules/memchr-tests (Files): Likewise.
11746         * modules/memchr2-tests (Files): Likewise.
11747         * modules/memcmp-tests (Files): Likewise.
11748         * modules/memmem-tests (Files): Likewise.
11749         * modules/memrchr-tests (Files): Likewise.
11750         * modules/mkdir-tests (Files): Likewise.
11751         * modules/mkfifo-tests (Files): Likewise.
11752         * modules/mkfifoat-tests (Files): Likewise.
11753         * modules/mknod-tests (Files): Likewise.
11754         * modules/nanosleep-tests (Files): Likewise.
11755         * modules/nl_langinfo-tests (Files): Likewise.
11756         * modules/obstack-printf-tests (Files): Likewise.
11757         * modules/open-tests (Files): Likewise.
11758         * modules/openat-tests (Files): Likewise.
11759         * modules/pipe-filter-gi-tests (Files): Likewise.
11760         * modules/pipe-filter-ii-tests (Files): Likewise.
11761         * modules/pipe2-tests (Files): Likewise.
11762         * modules/popen-safer-tests (Files): Likewise.
11763         * modules/popen-tests (Files): Likewise.
11764         * modules/posixtm-tests (Files): Likewise.
11765         * modules/pread-tests (Files): Likewise.
11766         * modules/printf-frexp-tests (Files): Likewise.
11767         * modules/printf-frexpl-tests (Files): Likewise.
11768         * modules/printf-posix-tests (Files): Likewise.
11769         * modules/priv-set-tests (Files): Likewise.
11770         * modules/quotearg-tests (Files): Likewise.
11771         * modules/random_r-tests (Files): Likewise.
11772         * modules/rawmemchr-tests (Files): Likewise.
11773         * modules/rbtree-list-tests (Files): Likewise.
11774         * modules/rbtree-oset-tests (Files): Likewise.
11775         * modules/rbtreehash-list-tests (Files): Likewise.
11776         * modules/readlink-tests (Files): Likewise.
11777         * modules/remove-tests (Files): Likewise.
11778         * modules/rename-tests (Files): Likewise.
11779         * modules/renameat-tests (Files): Likewise.
11780         * modules/rmdir-tests (Files): Likewise.
11781         * modules/round-tests (Files): Likewise.
11782         * modules/roundf-tests (Files): Likewise.
11783         * modules/roundl-tests (Files): Likewise.
11784         * modules/safe-alloc-tests (Files): Likewise.
11785         * modules/setenv-tests (Files): Likewise.
11786         * modules/sigaction-tests (Files): Likewise.
11787         * modules/signbit-tests (Files): Likewise.
11788         * modules/sleep-tests (Files): Likewise.
11789         * modules/snprintf-posix-tests (Files): Likewise.
11790         * modules/snprintf-tests (Files): Likewise.
11791         * modules/sprintf-posix-tests (Files): Likewise.
11792         * modules/stat-tests (Files): Likewise.
11793         * modules/stat-time-tests (Files): Likewise.
11794         * modules/strcasestr-tests (Files): Likewise.
11795         * modules/strchrnul-tests (Files): Likewise.
11796         * modules/strerror-tests (Files): Likewise.
11797         * modules/striconv-tests (Files): Likewise.
11798         * modules/striconveh-tests (Files): Likewise.
11799         * modules/striconveha-tests (Files): Likewise.
11800         * modules/strsignal-tests (Files): Likewise.
11801         * modules/strstr-tests (Files): Likewise.
11802         * modules/strtod-tests (Files): Likewise.
11803         * modules/strverscmp-tests (Files): Likewise.
11804         * modules/symlink-tests (Files): Likewise.
11805         * modules/symlinkat-tests (Files): Likewise.
11806         * modules/trunc-tests (Files): Likewise.
11807         * modules/truncf-tests (Files): Likewise.
11808         * modules/truncl-tests (Files): Likewise.
11809         * modules/uname-tests (Files): Likewise.
11810         * modules/unicase/cased-tests (Files): Likewise.
11811         * modules/unicase/ignorable-tests (Files): Likewise.
11812         * modules/unicase/locale-language-tests (Files): Likewise.
11813         * modules/unicase/tolower-tests (Files): Likewise.
11814         * modules/unicase/totitle-tests (Files): Likewise.
11815         * modules/unicase/toupper-tests (Files): Likewise.
11816         * modules/unicase/u8-casecmp-tests (Files): Likewise.
11817         * modules/unicase/u8-casecoll-tests (Files): Likewise.
11818         * modules/unicase/u8-casefold-tests (Files): Likewise.
11819         * modules/unicase/u8-is-cased-tests (Files): Likewise.
11820         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
11821         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
11822         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
11823         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
11824         * modules/unicase/u8-tolower-tests (Files): Likewise.
11825         * modules/unicase/u8-totitle-tests (Files): Likewise.
11826         * modules/unicase/u8-toupper-tests (Files): Likewise.
11827         * modules/unicase/u16-casecmp-tests (Files): Likewise.
11828         * modules/unicase/u16-casecoll-tests (Files): Likewise.
11829         * modules/unicase/u16-casefold-tests (Files): Likewise.
11830         * modules/unicase/u16-is-cased-tests (Files): Likewise.
11831         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
11832         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
11833         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
11834         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
11835         * modules/unicase/u16-tolower-tests (Files): Likewise.
11836         * modules/unicase/u16-totitle-tests (Files): Likewise.
11837         * modules/unicase/u16-toupper-tests (Files): Likewise.
11838         * modules/unicase/u32-casecmp-tests (Files): Likewise.
11839         * modules/unicase/u32-casecoll-tests (Files): Likewise.
11840         * modules/unicase/u32-casefold-tests (Files): Likewise.
11841         * modules/unicase/u32-is-cased-tests (Files): Likewise.
11842         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
11843         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
11844         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
11845         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
11846         * modules/unicase/u32-tolower-tests (Files): Likewise.
11847         * modules/unicase/u32-totitle-tests (Files): Likewise.
11848         * modules/unicase/u32-toupper-tests (Files): Likewise.
11849         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
11850         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
11851         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
11852         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
11853         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
11854         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
11855         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
11856         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
11857         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
11858         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
11859         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
11860         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
11861         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
11862         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
11863         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
11864         * modules/unictype/bidicategory-name-tests (Files): Likewise.
11865         * modules/unictype/bidicategory-of-tests (Files): Likewise.
11866         * modules/unictype/bidicategory-test-tests (Files): Likewise.
11867         * modules/unictype/block-list-tests (Files): Likewise.
11868         * modules/unictype/block-of-tests (Files): Likewise.
11869         * modules/unictype/block-test-tests (Files): Likewise.
11870         * modules/unictype/category-C-tests (Files): Likewise.
11871         * modules/unictype/category-Cc-tests (Files): Likewise.
11872         * modules/unictype/category-Cf-tests (Files): Likewise.
11873         * modules/unictype/category-Cn-tests (Files): Likewise.
11874         * modules/unictype/category-Co-tests (Files): Likewise.
11875         * modules/unictype/category-Cs-tests (Files): Likewise.
11876         * modules/unictype/category-L-tests (Files): Likewise.
11877         * modules/unictype/category-Ll-tests (Files): Likewise.
11878         * modules/unictype/category-Lm-tests (Files): Likewise.
11879         * modules/unictype/category-Lo-tests (Files): Likewise.
11880         * modules/unictype/category-Lt-tests (Files): Likewise.
11881         * modules/unictype/category-Lu-tests (Files): Likewise.
11882         * modules/unictype/category-M-tests (Files): Likewise.
11883         * modules/unictype/category-Mc-tests (Files): Likewise.
11884         * modules/unictype/category-Me-tests (Files): Likewise.
11885         * modules/unictype/category-Mn-tests (Files): Likewise.
11886         * modules/unictype/category-N-tests (Files): Likewise.
11887         * modules/unictype/category-Nd-tests (Files): Likewise.
11888         * modules/unictype/category-Nl-tests (Files): Likewise.
11889         * modules/unictype/category-No-tests (Files): Likewise.
11890         * modules/unictype/category-P-tests (Files): Likewise.
11891         * modules/unictype/category-Pc-tests (Files): Likewise.
11892         * modules/unictype/category-Pd-tests (Files): Likewise.
11893         * modules/unictype/category-Pe-tests (Files): Likewise.
11894         * modules/unictype/category-Pf-tests (Files): Likewise.
11895         * modules/unictype/category-Pi-tests (Files): Likewise.
11896         * modules/unictype/category-Po-tests (Files): Likewise.
11897         * modules/unictype/category-Ps-tests (Files): Likewise.
11898         * modules/unictype/category-S-tests (Files): Likewise.
11899         * modules/unictype/category-Sc-tests (Files): Likewise.
11900         * modules/unictype/category-Sk-tests (Files): Likewise.
11901         * modules/unictype/category-Sm-tests (Files): Likewise.
11902         * modules/unictype/category-So-tests (Files): Likewise.
11903         * modules/unictype/category-Z-tests (Files): Likewise.
11904         * modules/unictype/category-Zl-tests (Files): Likewise.
11905         * modules/unictype/category-Zp-tests (Files): Likewise.
11906         * modules/unictype/category-Zs-tests (Files): Likewise.
11907         * modules/unictype/category-and-not-tests (Files): Likewise.
11908         * modules/unictype/category-and-tests (Files): Likewise.
11909         * modules/unictype/category-byname-tests (Files): Likewise.
11910         * modules/unictype/category-name-tests (Files): Likewise.
11911         * modules/unictype/category-none-tests (Files): Likewise.
11912         * modules/unictype/category-of-tests (Files): Likewise.
11913         * modules/unictype/category-or-tests (Files): Likewise.
11914         * modules/unictype/category-test-withtable-tests (Files): Likewise.
11915         * modules/unictype/combining-class-tests (Files): Likewise.
11916         * modules/unictype/ctype-alnum-tests (Files): Likewise.
11917         * modules/unictype/ctype-alpha-tests (Files): Likewise.
11918         * modules/unictype/ctype-blank-tests (Files): Likewise.
11919         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
11920         * modules/unictype/ctype-digit-tests (Files): Likewise.
11921         * modules/unictype/ctype-graph-tests (Files): Likewise.
11922         * modules/unictype/ctype-lower-tests (Files): Likewise.
11923         * modules/unictype/ctype-print-tests (Files): Likewise.
11924         * modules/unictype/ctype-punct-tests (Files): Likewise.
11925         * modules/unictype/ctype-space-tests (Files): Likewise.
11926         * modules/unictype/ctype-upper-tests (Files): Likewise.
11927         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
11928         * modules/unictype/decimal-digit-tests (Files): Likewise.
11929         * modules/unictype/digit-tests (Files): Likewise.
11930         * modules/unictype/mirror-tests (Files): Likewise.
11931         * modules/unictype/numeric-tests (Files): Likewise.
11932         * modules/unictype/property-alphabetic-tests (Files): Likewise.
11933         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
11934         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
11935         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
11936         Likewise.
11937         * modules/unictype/property-bidi-block-separator-tests (Files):
11938         Likewise.
11939         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
11940         Likewise.
11941         * modules/unictype/property-bidi-common-separator-tests (Files):
11942         Likewise.
11943         * modules/unictype/property-bidi-control-tests (Files): Likewise.
11944         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
11945         Likewise.
11946         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
11947         Likewise.
11948         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
11949         Likewise.
11950         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
11951         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
11952         Likewise.
11953         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
11954         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
11955         Likewise.
11956         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
11957         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
11958         * modules/unictype/property-bidi-segment-separator-tests (Files):
11959         Likewise.
11960         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
11961         * modules/unictype/property-byname-tests (Files): Likewise.
11962         * modules/unictype/property-combining-tests (Files): Likewise.
11963         * modules/unictype/property-composite-tests (Files): Likewise.
11964         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
11965         * modules/unictype/property-dash-tests (Files): Likewise.
11966         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
11967         * modules/unictype/property-default-ignorable-code-point-tests (Files):
11968         Likewise.
11969         * modules/unictype/property-deprecated-tests (Files): Likewise.
11970         * modules/unictype/property-diacritic-tests (Files): Likewise.
11971         * modules/unictype/property-extender-tests (Files): Likewise.
11972         * modules/unictype/property-format-control-tests (Files): Likewise.
11973         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
11974         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
11975         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
11976         * modules/unictype/property-hex-digit-tests (Files): Likewise.
11977         * modules/unictype/property-hyphen-tests (Files): Likewise.
11978         * modules/unictype/property-id-continue-tests (Files): Likewise.
11979         * modules/unictype/property-id-start-tests (Files): Likewise.
11980         * modules/unictype/property-ideographic-tests (Files): Likewise.
11981         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
11982         * modules/unictype/property-ids-trinary-operator-tests (Files):
11983         Likewise.
11984         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
11985         * modules/unictype/property-iso-control-tests (Files): Likewise.
11986         * modules/unictype/property-join-control-tests (Files): Likewise.
11987         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
11988         * modules/unictype/property-line-separator-tests (Files): Likewise.
11989         * modules/unictype/property-logical-order-exception-tests (Files):
11990         Likewise.
11991         * modules/unictype/property-lowercase-tests (Files): Likewise.
11992         * modules/unictype/property-math-tests (Files): Likewise.
11993         * modules/unictype/property-non-break-tests (Files): Likewise.
11994         * modules/unictype/property-not-a-character-tests (Files): Likewise.
11995         * modules/unictype/property-numeric-tests (Files): Likewise.
11996         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
11997         * modules/unictype/property-other-default-ignorable-code-point-tests
11998         (Files): Likewise.
11999         * modules/unictype/property-other-grapheme-extend-tests (Files):
12000         Likewise.
12001         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12002         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12003         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12004         * modules/unictype/property-other-math-tests (Files): Likewise.
12005         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12006         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12007         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12008         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12009         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12010         * modules/unictype/property-private-use-tests (Files): Likewise.
12011         * modules/unictype/property-punctuation-tests (Files): Likewise.
12012         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12013         * modules/unictype/property-radical-tests (Files): Likewise.
12014         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12015         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12016         * modules/unictype/property-space-tests (Files): Likewise.
12017         * modules/unictype/property-terminal-punctuation-tests (Files):
12018         Likewise.
12019         * modules/unictype/property-test-tests (Files): Likewise.
12020         * modules/unictype/property-titlecase-tests (Files): Likewise.
12021         * modules/unictype/property-unassigned-code-value-tests (Files):
12022         Likewise.
12023         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12024         * modules/unictype/property-uppercase-tests (Files): Likewise.
12025         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12026         * modules/unictype/property-white-space-tests (Files): Likewise.
12027         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12028         * modules/unictype/property-xid-start-tests (Files): Likewise.
12029         * modules/unictype/property-zero-width-tests (Files): Likewise.
12030         * modules/unictype/scripts-tests (Files): Likewise.
12031         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12032         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12033         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12034         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12035         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12036         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12037         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12038         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12039         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12040         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12041         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12042         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12043         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12044         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12045         * modules/uninorm/composition-tests (Files): Likewise.
12046         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12047         * modules/uninorm/decomposition-tests (Files): Likewise.
12048         * modules/uninorm/filter-tests (Files): Likewise.
12049         * modules/uninorm/nfc-tests (Files): Likewise.
12050         * modules/uninorm/nfd-tests (Files): Likewise.
12051         * modules/uninorm/nfkc-tests (Files): Likewise.
12052         * modules/uninorm/nfkd-tests (Files): Likewise.
12053         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12054         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12055         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12056         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12057         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12058         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12059         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12060         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12061         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12062         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12063         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12064         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12065         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12066         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12067         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12068         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12069         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12070         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12071         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12072         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12073         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12074         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12075         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12076         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12077         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12078         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12079         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12080         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12081         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12082         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12083         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12084         * modules/uniwidth/u8-width-tests (Files): Likewise.
12085         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12086         * modules/uniwidth/u16-width-tests (Files): Likewise.
12087         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12088         * modules/uniwidth/u32-width-tests (Files): Likewise.
12089         * modules/uniwidth/width-tests (Files): Likewise.
12090         * modules/unlink-tests (Files): Likewise.
12091         * modules/unsetenv-tests (Files): Likewise.
12092         * modules/usleep-tests (Files): Likewise.
12093         * modules/utimens-tests (Files): Likewise.
12094         * modules/utimensat-tests (Files): Likewise.
12095         * modules/vasnprintf-posix-tests (Files): Likewise.
12096         * modules/vasnprintf-tests (Files): Likewise.
12097         * modules/vasprintf-posix-tests (Files): Likewise.
12098         * modules/vasprintf-tests (Files): Likewise.
12099         * modules/vdprintf-posix-tests (Files): Likewise.
12100         * modules/vfprintf-posix-tests (Files): Likewise.
12101         * modules/vprintf-posix-tests (Files): Likewise.
12102         * modules/vsnprintf-posix-tests (Files): Likewise.
12103         * modules/vsnprintf-tests (Files): Likewise.
12104         * modules/vsprintf-posix-tests (Files): Likewise.
12105         * modules/wcrtomb-tests (Files): Likewise.
12106         * modules/wcsnrtombs-tests (Files): Likewise.
12107         * modules/wcsrtombs-tests (Files): Likewise.
12108         * modules/wctype-tests (Files): Likewise.
12109         * modules/wcwidth-tests (Files): Likewise.
12110         * modules/xmemdup0-tests (Files): Likewise.
12111         * modules/xprintf-posix-tests (Files): Likewise.
12112         * modules/xvasprintf-tests (Files): Likewise.
12113
12114 2009-12-24  Eric Blake  <ebb9@byu.net>
12115
12116         test-nanosleep: fix typo
12117         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12118         patch.
12119         Reported by Bruno Haible.
12120
12121 2009-12-24  Bruno Haible  <bruno@clisp.org>
12122
12123         Reduce namespace pollution on glibc systems.
12124         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12125         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12126         systems.
12127         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12128         <getopt.h> on glibc systems.
12129         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12130         systems.
12131         * lib/fcntl.c: Include <unistd.h> here instead.
12132
12133 2009-12-24  Bruno Haible  <bruno@clisp.org>
12134
12135         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12136
12137 2009-12-24  Eric Blake  <ebb9@byu.net>
12138
12139         tests: add signature checks
12140         * tests/signature.h (SIGNATURE_CHECK): New file.
12141         * modules/atexit-tests (Files): Use it.
12142         * modules/btowc-tests (Files): Likewise.
12143         * modules/canonicalize-lgpl-tests (Files): Likewise.
12144         * modules/ceilf-tests (Files): Likewise.
12145         * modules/ceill-tests (Files): Likewise.
12146         * modules/chown-tests (Files): Likewise.
12147         * modules/dprintf-posix-tests (Files): Likewise.
12148         * modules/dup2-tests (Files): Likewise.
12149         * modules/dup3-tests (Files): Likewise.
12150         * modules/duplocale-tests (Files): Likewise.
12151         * modules/fchdir-tests (Files): Likewise.
12152         * modules/fcntl-tests (Files): Likewise.
12153         * modules/fdopendir-tests (Files): Likewise.
12154         * modules/fflush-tests (Files): Likewise.
12155         * modules/flock-tests (Files): Likewise.
12156         * modules/floorf-tests (Files): Likewise.
12157         * modules/floorl-tests (Files): Likewise.
12158         * modules/fnmatch-tests (Files): Likewise.
12159         * modules/fopen-tests (Files): Likewise.
12160         * modules/fprintf-posix-tests (Files): Likewise.
12161         * modules/freopen-tests (Files): Likewise.
12162         * modules/frexp-nolibm-tests (Files): Likewise.
12163         * modules/frexp-tests (Files): Likewise.
12164         * modules/frexpl-nolibm-tests (Files): Likewise.
12165         * modules/frexpl-tests (Files): Likewise.
12166         * modules/fseek-tests (Files): Likewise.
12167         * modules/fseeko-tests (Files): Likewise.
12168         * modules/fsync-tests (Files): Likewise.
12169         * modules/ftell-tests (Files): Likewise.
12170         * modules/ftello-tests (Files): Likewise.
12171         * modules/futimens-tests (Files): Likewise.
12172         * modules/getaddrinfo-tests (Files): Likewise.
12173         * modules/getcwd-tests (Files): Likewise.
12174         * modules/getdelim-tests (Files): Likewise.
12175         * modules/getdtablesize-tests (Files): Likewise.
12176         * modules/getgroups-tests (Files): Likewise.
12177         * modules/gethostname-tests (Files): Likewise.
12178         * modules/getline-tests (Files): Likewise.
12179         * modules/getopt-posix-tests (Files): Likewise.
12180         * modules/gettimeofday-tests (Files): Likewise.
12181         * modules/glob-tests (Files): Likewise.
12182         * modules/iconv-tests (Files): Likewise.
12183         * modules/inet_ntop-tests (Files): Likewise.
12184         * modules/inet_pton-tests (Files): Likewise.
12185         * modules/isblank-tests (Files): Likewise.
12186         * modules/lchown-tests (Files): Likewise.
12187         * modules/ldexpl-tests (Files): Likewise.
12188         * modules/link-tests (Files): Likewise.
12189         * modules/linkat-tests (Files): Likewise.
12190         * modules/lseek-tests (Files): Likewise.
12191         * modules/lstat-tests (Files): Likewise.
12192         * modules/mbrtowc-tests (Files): Likewise.
12193         * modules/mbsinit-tests (Files): Likewise.
12194         * modules/mbsnrtowcs-tests (Files): Likewise.
12195         * modules/mbsrtowcs-tests (Files): Likewise.
12196         * modules/memchr-tests (Files): Likewise.
12197         * modules/memcmp-tests (Files): Likewise.
12198         * modules/memmem-tests (Files): Likewise.
12199         * modules/memrchr-tests (Files): Likewise.
12200         * modules/mkdir-tests (Files): Likewise.
12201         * modules/mkfifo-tests (Files): Likewise.
12202         * modules/mkfifoat-tests (Files): Likewise.
12203         * modules/mknod-tests (Files): Likewise.
12204         * modules/nanosleep-tests (Files): Likewise.
12205         * modules/nl_langinfo-tests (Files): Likewise.
12206         * modules/obstack-printf-tests (Files): Likewise.
12207         * modules/open-tests (Files): Likewise.
12208         * modules/openat-tests (Files): Likewise.
12209         * modules/perror-tests (Files): Likewise.
12210         * modules/pipe2-tests (Files): Likewise.
12211         * modules/poll-tests (Files): Likewise.
12212         * modules/popen-tests (Files): Likewise.
12213         * modules/posix_spawn-tests (Files): Likewise.
12214         * modules/posix_spawnp-tests (Files): Likewise.
12215         * modules/pread-tests (Files): Likewise.
12216         * modules/printf-posix-tests (Files): Likewise.
12217         * modules/pty-tests (Files): Likewise.
12218         * modules/random_r-tests (Files): Likewise.
12219         * modules/rawmemchr-tests (Files): Likewise.
12220         * modules/readlink-tests (Files): Likewise.
12221         * modules/remove-tests (Files): Likewise.
12222         * modules/rename-tests (Files): Likewise.
12223         * modules/renameat-tests (Files): Likewise.
12224         * modules/rmdir-tests (Files): Likewise.
12225         * modules/round-tests (Files): Likewise.
12226         * modules/roundf-tests (Files): Likewise.
12227         * modules/roundl-tests (Files): Likewise.
12228         * modules/select-tests (Files): Likewise.
12229         * modules/setenv-tests (Files): Likewise.
12230         * modules/sigaction-tests (Files): Likewise.
12231         * modules/sleep-tests (Files): Likewise.
12232         * modules/snprintf-posix-tests (Files): Likewise.
12233         * modules/snprintf-tests (Files): Likewise.
12234         * modules/sprintf-posix-tests (Files): Likewise.
12235         * modules/stat-tests (Files): Likewise.
12236         * modules/strcasestr-tests (Files): Likewise.
12237         * modules/strchrnul-tests (Files): Likewise.
12238         * modules/strerror-tests (Files): Likewise.
12239         * modules/strsignal-tests (Files): Likewise.
12240         * modules/strstr-tests (Files): Likewise.
12241         * modules/strtod-tests (Files): Likewise.
12242         * modules/strverscmp-tests (Files): Likewise.
12243         * modules/symlink-tests (Files): Likewise.
12244         * modules/symlinkat-tests (Files): Likewise.
12245         * modules/times-tests (Files): Likewise.
12246         * modules/trunc-tests (Files): Likewise.
12247         * modules/truncf-tests (Files): Likewise.
12248         * modules/truncl-tests (Files): Likewise.
12249         * modules/tsearch-tests (Files): Likewise.
12250         * modules/uname-tests (Files): Likewise.
12251         * modules/unlink-tests (Files): Likewise.
12252         * modules/unsetenv-tests (Files): Likewise.
12253         * modules/usleep-tests (Files): Likewise.
12254         * modules/utimensat-tests (Files): Likewise.
12255         * modules/vasprintf-tests (Files): Likewise.
12256         * modules/vdprintf-posix-tests (Files): Likewise.
12257         * modules/vfprintf-posix-tests (Files): Likewise.
12258         * modules/vprintf-posix-tests (Files): Likewise.
12259         * modules/vsnprintf-posix-tests (Files): Likewise.
12260         * modules/vsnprintf-tests (Files): Likewise.
12261         * modules/vsprintf-posix-tests (Files): Likewise.
12262         * modules/wcrtomb-tests (Files): Likewise.
12263         * modules/wcsnrtombs-tests (Files): Likewise.
12264         * modules/wcsrtombs-tests (Files): Likewise.
12265         * modules/wcwidth-tests (Files): Likewise.
12266         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
12267         * tests/test-isinf.c (isinf): Likewise.
12268         * tests/test-isnan.c (isnan): Likewise.
12269         * tests/test-signbit.c (signbit): Likewise.
12270         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
12271         declaration, either as macro or with correct signature.
12272         (select): Ensure function under test is declared with correct
12273         signature in correct header.
12274         * tests/test-atexit.c (atexit): Likewise.
12275         * tests/test-btowc.c (btowc): Likewise.
12276         * tests/test-canonicalize-lgpl.c (realpath)
12277         (canonicalize_file_name): Likewise.
12278         * tests/test-ceilf1.c (ceilf): Likewise.
12279         * tests/test-ceill.c (ceill): Likewise.
12280         * tests/test-chown.c (chown): Likewise.
12281         * tests/test-dprintf-posix.c (dprintf): Likewise.
12282         * tests/test-dup2.c (dup2): Likewise.
12283         * tests/test-dup3.c (dup3): Likewise.
12284         * tests/test-duplocale.c (duplocale): Likewise.
12285         * tests/test-fchdir.c (fchdir): Likewise.
12286         * tests/test-fchownat.c (fchownat): Likewise.
12287         * tests/test-fcntl.c (fcntl): Likewise.
12288         * tests/test-fdopendir.c (fdopendir): Likewise.
12289         * tests/test-fflush.c (fflush): Likewise.
12290         * tests/test-flock.c (flock): Likewise.
12291         * tests/test-floorf1.c (floorf): Likewise.
12292         * tests/test-floorl.c (floorl): Likewise.
12293         * tests/test-fnmatch.c (fnmatch): Likewise.
12294         * tests/test-fopen.c (fopen): Likewise.
12295         * tests/test-fprintf-posix.c (fprintf): Likewise.
12296         * tests/test-freopen.c (freopen): Likewise.
12297         * tests/test-frexp.c (frexp): Likewise.
12298         * tests/test-frexpl.c (frexpl): Likewise.
12299         * tests/test-fseek.c (fseek): Likewise.
12300         * tests/test-fseeko.c (fseeko): Likewise.
12301         * tests/test-fstatat.c (fstatat): Likewise.
12302         * tests/test-fsync.c (fsync): Likewise.
12303         * tests/test-ftell.c (ftell): Likewise.
12304         * tests/test-ftello.c (ftello): Likewise.
12305         * tests/test-futimens.c (futimens): Likewise.
12306         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12307         (gai_strerror): Likewise.
12308         * tests/test-getcwd.c (getcwd): Likewise.
12309         * tests/test-getdelim.c (getdelim): Likewise.
12310         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12311         * tests/test-getgroups.c (getgroups): Likewise.
12312         * tests/test-gethostname.c (gethostname): Likewise.
12313         * tests/test-getline.c (getline): Likewise.
12314         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12315         Likewise.
12316         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12317         * tests/test-glob.c (glob, globfree): Likewise.
12318         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12319         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12320         * tests/test-inet_pton.c (inet_pton): Likewise.
12321         * tests/test-isblank.c (isblank): Likewise.
12322         * tests/test-lchown.c (lchown): Likewise.
12323         * tests/test-ldexpl.c (ldexpl): Likewise.
12324         * tests/test-link.c (link): Likewise.
12325         * tests/test-linkat.c (linkat): Likewise.
12326         * tests/test-lseek.c (lseek): Likewise.
12327         * tests/test-lstat.c (lstat): Likewise.
12328         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12329         * tests/test-mbsinit.c (mbsinit): Likewise.
12330         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12331         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12332         * tests/test-memchr.c (memchr): Likewise.
12333         * tests/test-memcmp.c (memcmp): Likewise.
12334         * tests/test-memmem.c (memmem): Likewise.
12335         * tests/test-memrchr.c (memrchr): Likewise.
12336         * tests/test-mkdir.c (mkdir): Likewise.
12337         * tests/test-mkdirat.c (mkdirat): Likewise.
12338         * tests/test-mkfifo.c (mkfifo): Likewise.
12339         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12340         * tests/test-mknod.c (mknod): Likewise.
12341         * tests/test-nanosleep.c (nanosleep): Likewise.
12342         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12343         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12344         Likewise.
12345         * tests/test-open.c (open): Likewise.
12346         * tests/test-openat.c (openat): Likewise.
12347         * tests/test-perror.c (perror): Likewise.
12348         * tests/test-pipe2.c (pipe2): Likewise.
12349         * tests/test-poll.c (poll): Likewise.
12350         * tests/test-popen.c (popen, pclose): Likewise.
12351         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12352         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12353         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12354         (posix_spawn_file_actions_destroy)
12355         (posix_spawn_file_actions_addclose)
12356         (posix_spawn_file_actions_addopen)
12357         (posix_spawn_file_actions_adddup2): Likewise.
12358         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12359         * tests/test-pread.c (pread): Likewise.
12360         * tests/test-printf-posix.c (printf): Likewise.
12361         * tests/test-pty.c (openpty, forkpty): Likewise.
12362         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12363         (random_r): Likewise.
12364         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12365         * tests/test-readlink.c (readlink): Likewise.
12366         * tests/test-remove.c (remove): Likewise.
12367         * tests/test-rename.c (rename): Likewise.
12368         * tests/test-renameat.c (renameat): Likewise.
12369         * tests/test-rmdir.c (rmdir): Likewise.
12370         * tests/test-round1.c (round): Likewise.
12371         * tests/test-roundf1.c (roundf): Likewise.
12372         * tests/test-roundl.c (roundl): Likewise.
12373         * tests/test-setenv.c (setenv): Likewise.
12374         * tests/test-sigaction.c (sigaction): Likewise.
12375         * tests/test-sleep.c (sleep): Likewise.
12376         * tests/test-snprintf.c (snprintf): Likewise.
12377         * tests/test-sprintf-posix.c (sprintf): Likewise.
12378         * tests/test-stat.c (stat): Likewise.
12379         * tests/test-stpncpy.c (stpncpy): Likewise.
12380         * tests/test-strcasestr.c (strcasestr): Likewise.
12381         * tests/test-strchrnul.c (strchrnul): Likewise.
12382         * tests/test-strerror.c (strerror): Likewise.
12383         * tests/test-strsignal.c (strsignal): Likewise.
12384         * tests/test-strstr.c (strstr): Likewise.
12385         * tests/test-strtod.c (strtod): Likewise.
12386         * tests/test-strverscmp.c (strverscmp): Likewise.
12387         * tests/test-symlink.c (symlink): Likewise.
12388         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12389         * tests/test-times.c (times): Likewise.
12390         * tests/test-trunc1.c (trunc): Likewise.
12391         * tests/test-truncf1.c (truncf): Likewise.
12392         * tests/test-truncl.c (truncl): Likewise.
12393         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12394         Likewise.
12395         * tests/test-uname.c (uname): Likewise.
12396         * tests/test-unlink.c (unlink): Likewise.
12397         * tests/test-unlinkat.c (unlinkat): Likewise.
12398         * tests/test-unsetenv.c (unsetenv): Likewise.
12399         * tests/test-usleep.c (usleep): Likewise.
12400         * tests/test-utimensat.c (utimensat): Likewise.
12401         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12402         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12403         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12404         * tests/test-vprintf-posix.c (vprintf): Likewise.
12405         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12406         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12407         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12408         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12409         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12410         * tests/test-wcwidth.c (wcwidth): Likewise.
12411
12412         build: pull in conditional headers during GNULIB_POSIXCHECK
12413         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
12414         definitions from any conditionally-included headers.
12415         * lib/stdlib.in.h (includes): Likewise.
12416         * lib/unistd.in.h (includes): Likewise.
12417
12418 2009-12-24  Bruno Haible  <bruno@clisp.org>
12419
12420         * tests/test-argv-iter.c: Include header file being tested immediately
12421         after config.h.
12422         * tests/test-base64.c: Likewise.
12423         * tests/test-flock.c: Likewise.
12424         * tests/test-fsync.c: Likewise.
12425         * tests/test-getdate.c: Likewise.
12426         * tests/test-getndelim2.c: Likewise.
12427         * tests/test-isfinite.c: Likewise.
12428         * tests/test-isinf.c: Likewise.
12429         * tests/test-strerror.c: Likewise.
12430         * tests/test-strsignal.c: Likewise.
12431
12432 2009-12-23  Eric Blake  <ebb9@byu.net>
12433
12434         unistd: work around cygwin bug
12435         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
12436         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
12437         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12438
12439 2009-12-23  Bruno Haible  <bruno@clisp.org>
12440
12441         localename: More tests.
12442         * tests/test-localename.c (SIZEOF): New macro.
12443         (categories): New variable.
12444         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
12445         test_locale_name_default): Add test w.r.t. thread locale.
12446         (test_locale_name_thread): New function.
12447         (main): Invoke it.
12448
12449         localename: Make aware of thread locale.
12450         * lib/localename.h (gl_locale_name_thread): New declaration.
12451         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
12452         behaviour with respect to thread locale.
12453         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
12454         <langinfo.h>, glthread/lock.h.
12455         (SIZE_BITS): New macro.
12456         (string_hash): New function.
12457         (struct hash_node): New type.
12458         (HASH_TABLE_SIZE): New macro.
12459         (struniq_hash_table, struniq_lock): New variables.
12460         (struniq): New function.
12461         (gl_locale_name_thread): New function.
12462         (gl_locale_name): Invoke it.
12463         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
12464         * modules/localename (Depends-on): Add lock.
12465         Reported by Mike Gran <spk121@yahoo.com>.
12466
12467 2009-12-23  Eric Blake  <ebb9@byu.net>
12468
12469         va-args: new module
12470         * modules/va-args: New file.
12471         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
12472         * MODULES.html.sh (Core language properties): Mention it.
12473
12474         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
12475         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
12476         named alias for __attribute__((__unused__)).
12477         * lib/chown.c: Update client.
12478         * lib/fchmodat.c: Likewise.
12479         * lib/fts.c: Likewise.
12480         * lib/getdate.y: Likewise.
12481         * lib/getgroups.c: Likewise.
12482         * lib/getopt.c: Likewise.
12483         * lib/getugroups.c: Likewise.
12484         * lib/mkdir.c: Likewise.
12485         * lib/mkfifo.c: Likewise.
12486         * lib/mkfifoat.c: Likewise.
12487         * lib/mknod.c: Likewise.
12488         * lib/mknodat.c: Likewise.
12489         * lib/readlink.c: Likewise.
12490         * lib/se-context.in.h: Likewise.
12491         * lib/se-selinux.in.h: Likewise.
12492         * lib/sockets.c: Likewise.
12493         * lib/symlink.c: Likewise.
12494         * lib/symlinkat.c: Likewise.
12495         * lib/unicodeio.c: Likewise.
12496         * lib/unistr.h: Likewise.
12497         * tests/test-areadlink.c: Likewise.
12498         * tests/test-areadlinkat.c: Likewise.
12499         * tests/test-filenamecat.c: Likewise.
12500         * tests/test-fseeko.c: Likewise.
12501         * tests/test-ftello.c: Likewise.
12502         * tests/test-getdate.c: Likewise.
12503         * tests/test-getgroups.c: Likewise.
12504         * tests/test-gethostname.c: Likewise.
12505         * tests/test-quotearg.c: Likewise.
12506         * tests/test-version-etc.c: Likewise.
12507         * tests/test-xalloc-die.c: Likewise.
12508         * tests/test-xfprintf-posix.c: Likewise.
12509         * tests/test-xprintf-posix.c: Likewise.
12510         * tests/test-xvasprintf.c: Likewise.
12511
12512         tests: avoid compiler warnings
12513         * tests/test-fcntl.c (main): Delete unused parameters.
12514         * tests/test-freopen-safer.c (main): Likewise.
12515         * tests/test-xalloc-die.c (main): Mark unused parameters.
12516         * tests/test-fseeko.c (main): Likewise.
12517         * tests/test-ftello.c (main): Likewise.
12518         * tests/test-nanosleep.c (main): Avoid declaration warning.
12519         * tests/test-sleep.c (main): Likewise.
12520         * tests/test-unsetenv.c (main): Silence warning about string
12521         literal.
12522         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12523
12524 2009-12-23  Bruno Haible  <bruno@clisp.org>
12525
12526         * tests/test-localename.c (test_locale_name): New function, extracted
12527         from main. Also test mixed situations.
12528         (test_locale_name_posix, test_locale_name_environ,
12529         test_locale_name_default): New functions.
12530         (main): Invoke them all.
12531         * modules/localename-tests (configure.ac): Test for newlocale.
12532
12533 2009-12-23  Bruno Haible  <bruno@clisp.org>
12534
12535         unistd: Ensure getcwd gets declared before being overridden.
12536         * lib/unistd.in.h: Conditionally include <io.h>.
12537
12538 2009-12-22  Bruno Haible  <bruno@clisp.org>
12539
12540         wchar: Diagnose broken combination of glibc and gcc versions and flags.
12541         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
12542         (gl_WCHAR_H): Invoke it.
12543         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
12544         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
12545         Reported by Karl Berry <karl@freefriends.org>.
12546
12547 2009-12-22  Eric Blake  <ebb9@byu.net>
12548
12549         math, unistd: avoid redundant includes
12550         * lib/math.in.h (isnan): No need to re-include <math.h>.
12551         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
12552
12553         getsubopt: work around cygwin bug
12554         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
12555         avoid conflicting with system getsubopt.
12556         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
12557         bug.
12558
12559         getopt: synchronize from glibc
12560         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
12561         parameter order.  Adjust all callers.
12562         (_getopt_internal_r, main): Adjust quoting in error messages.
12563         Drop considerations for outdated POSIX 1003.2 error message.
12564         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
12565         callers.
12566         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
12567
12568         test-getopt: test stderr behavior
12569         * modules/getopt-posix-tests (Depends-on): Add dup2.
12570         * tests/test-getopt.c (ASSERT): Avoid stderr.
12571         (main): Move stderr to a temporary file.
12572         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
12573         Instead, add parameter to inform caller if output occurred.
12574         (test_getopt): Adjust all existing tests to expect silence, and
12575         add new tests of leading ":".
12576         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12577         glibc shortcomings with leading "-:" or "+:" in optstring.
12578         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12579         Likewise.
12580         * doc/posix-functions/getopt.texi (getopt): Likewise.
12581
12582         test-getopt: enhance test
12583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
12584         supports optind=0.
12585         * tests/test-getopt.c (OPTIND_MIN): Move...
12586         * tests/test-getopt.h (OPTIND_MIN): ...here.
12587         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
12588         Require that optind=0 works, since modern BSD supports it in
12589         addition to optreset, and since coreutils expects it.
12590         (test_getopt_long_only): New test.
12591         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12592         glibc shortcomings with 'W;', and enforcement of optind=0.
12593         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12594         Likewise.
12595
12596 2009-12-21  Bruno Haible  <bruno@clisp.org>
12597
12598         localename: Improvements for MacOS X and Cygwin.
12599         * lib/localename.h (gl_locale_name_environ): New declaration.
12600         * lib/localename.c (gl_locale_name_environ): New function, extracted from
12601         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
12602         (gl_locale_name_posix): Invoke it.
12603         (gl_locale_name_default): Add comments. Use Windows native API also on
12604         Cygwin.
12605
12606 2009-12-21  Bruno Haible  <bruno@clisp.org>
12607
12608         Update list of Win32 locale ids.
12609         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
12610         (LANG_SAMI): Renamed from LANG_SAAMI.
12611         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
12612         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
12613         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
12614         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
12615         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
12616         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
12617         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
12618         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
12619         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
12620         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
12621         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
12622         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
12623         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
12624         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
12625         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
12626         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
12627         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
12628         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
12629         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
12630         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
12631         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
12632         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
12633         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
12634         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
12635         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
12636         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
12637         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
12638         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
12639         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
12640         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
12641         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
12642         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
12643         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
12644         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
12645         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
12646         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
12647         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
12648         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
12649         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
12650         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
12651         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
12652         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
12653         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
12654         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
12655         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
12656         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
12657         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
12658         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
12659         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
12660         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
12661         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
12662         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
12663         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
12664         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
12665         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
12666         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
12667         Add more languages and countries for Sami, Sorbian. Add more countries
12668         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
12669         for Pashto. Change country for Syriac, Tswana.
12670
12671 2009-12-21  Eric Blake  <ebb9@byu.net>
12672
12673         test-utimens: avoid spurious failure
12674         * tests/test-chown.h (nap): Factor...
12675         * tests/nap.h: ...into new file.
12676         * tests/test-lchown.h (nap): Avoid duplication.
12677         * tests/test-utimens-common.h (nap): Use shared implementation,
12678         necessary on file systems with 1-second resolution.
12679         * modules/chown-tests (Files): Include new file.
12680         * modules/fdutimensat-tests (Files): Likewise.
12681         * modules/futimens-tests (Files): Likewise.
12682         * modules/lchown-tests (Files): Likewise.
12683         * modules/openat-tests (Files): Likewise.
12684         * modules/utimens-tests (Files): Likewise.
12685         * modules/utimensat-tests (Files): Likewise.
12686
12687 2009-12-19  Eric Blake  <ebb9@byu.net>
12688
12689         futimens, utimensat: work around Linux bug
12690         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
12691         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12692         * lib/utimensat.c (rpl_utimensat): Work around it.
12693         * lib/futimens.c (rpl_futimens): Adjust comment.
12694
12695         utimens: work around Linux ctime bug
12696         * lib/utimens.c (detect_ctime_bug): New helper function.
12697         (update_timespec): Differentiate between workaround needed for
12698         this bug vs. what is needed for systems that lack utimensat.
12699         (fdutimens, lutimens): Work around bug.
12700
12701         utimens: check for ctime update
12702         * tests/test-utimens-common.h (check_ctime): Define.
12703         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
12704         * tests/test-futimens.h (test_futimens): Likewise.
12705         * tests/test-lutimens.h (test_lutimens): Likewise.
12706         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12707         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12708
12709 2009-12-19  Bruno Haible  <bruno@clisp.org>
12710
12711         dprintf-posix: Check against memory leak fixed on 2009-12-15.
12712         * tests/test-dprintf-posix2.sh: New file.
12713         * tests/test-dprintf-posix2.c: New file.
12714         * modules/dprintf-posix-tests (Files): Add them.
12715         (configure.ac): Check for getrlimit and setrlimit.
12716         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12717
12718 2009-12-19  Bruno Haible  <bruno@clisp.org>
12719
12720         fprintf-posix: Check against memory leak fixed on 2009-12-15.
12721         * tests/test-fprintf-posix3.sh: New file.
12722         * tests/test-fprintf-posix3.c: New file.
12723         * modules/fprintf-posix-tests (Files): Add them.
12724         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12725
12726 2009-12-19  Eric Blake  <ebb9@byu.net>
12727
12728         dirfd: fix prototype
12729         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
12730         * lib/dirfd.c (dirfd): Likewise.
12731
12732         canonicalize: reduce memory usage
12733         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
12734         allocation to size.
12735         Reported by Solar Designer <solar@openwall.com>.
12736
12737 2009-12-19  Bruno Haible  <bruno@clisp.org>
12738
12739         New module attribute 'Applicability'.
12740         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
12741         * gnulib-tool: New option --extract-applicability.
12742         (func_usage): Document it.
12743         (sed_extract_prog): Recognize it.
12744         (func_get_applicability): New function.
12745         (func_import): Generalize handling of 'link-warning' module.
12746         * modules/link-warning (Applicability): New section.
12747         * modules/arg-nonnull (Applicability): New section.
12748         Repoted by Simon Josefsson <simon@josefsson.org>.
12749
12750 2009-12-19  Bruno Haible  <bruno@clisp.org>
12751
12752         fflush: tweak
12753         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
12754         * lib/fseeko.c (rpl_fseeko): Likewise.
12755
12756 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
12757
12758         * lib/gl_list.h: Fix typo in comment.
12759
12760 2009-12-16  Eric Blake  <ebb9@byu.net>
12761
12762         fcntl: use to simplify other modules
12763         * modules/cloexec (Depends-on): Add fcntl.
12764         * modules/fchdir (Depends-on): Likewise.
12765         * modules/fd-safer-flag (Depends-on): Likewise.
12766         * modules/unistd-safer (Depends-on): Likewise.
12767         * modules/dup3 (configure.ac): Set module indicator.
12768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
12769         missing.
12770         * lib/fchdir.c (_gl_register_dup): Fix comment.
12771         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
12772         * lib/dup-safer.c (dup_safer): Likewise.
12773         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
12774         * lib/dup3.c (dup3): Likewise.
12775         * tests/test-fchdir.c (main): Enhance test.
12776         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
12777
12778         fcntl: port portions of fcntl to mingw
12779         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
12780         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
12781         replacement for mingw.
12782         * modules/fcntl (Description): Update.
12783         (Depends-on): Add dup2.
12784         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
12785         * modules/fcntl-h (Makefile.am): Substitute it.
12786         * lib/fcntl.in.h (fcntl): Update declaration.
12787         (F_DUPFD, F_GETFD): New macros, when needed.
12788         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12789         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
12790         * tests/test-fcntl.c (check_flags, main): Enhance test for items
12791         we now guarantee.
12792
12793         fcntl: work around cygwin bug in F_DUPFD
12794         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
12795         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
12796         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
12797         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
12798         * doc/posix-functions/fcntl.texi (fcntl): Document it.
12799
12800         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
12801         * modules/fcntl (Files): List new files.
12802         (configure.ac): Run a test.
12803         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
12804         * lib/fcntl.c (rpl_fcntl): Likewise.
12805         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
12806         (gl_FCNTL_H): Always replace fcntl.h.
12807         * modules/fcntl-h (Makefile.am): Substitute witnesses.
12808         * lib/fcntl.in.h (fcntl): Declare replacement.
12809         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
12810         needed, plus a witness.
12811         * doc/posix-functions/fcntl.texi (fcntl): Document this.
12812         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
12813         * tests/test-fcntl.c: New file.
12814         * modules/fcntl-tests: Likewise.
12815
12816         binary-io: avoid potential compilation warning
12817         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
12818         directives.
12819
12820         fflush: avoid compilation error on NetBSD
12821         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
12822         between off_t and fpos_t, since the latter is sometimes a struct.
12823         * lib/fseeko.c (rpl_fseeko): Likewise.
12824         Reported by Alexander Nasonov <alnsn@yandex.ru>.
12825
12826 2009-12-15  Eric Blake  <ebb9@byu.net>
12827
12828         fcntl-h, stdio, sys_ioctl: fix declarations
12829         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
12830         function must not take arguments.
12831         * lib/sys_ioctl.in.h (ioctl): Likewise.
12832         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
12833         (open): Add a link warning.
12834
12835 2009-12-15  Jim Meyering  <meyering@redhat.com>
12836
12837         areadlink, areadlink-with-size: relax license to LGPLv2+
12838         * modules/areadlink (License): Relax to LGPLv2+.
12839         * modules/areadlink-with-size (License): Likewise.
12840
12841 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
12842             Bruno Haible  <bruno@clisp.org>
12843
12844         *printf: Fix memory leak.
12845         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
12846         * lib/vfprintf.c (vfprintf): Likewise.
12847         * lib/dprintf.c (dprintf): Likewise.
12848         * lib/vdprintf.c (vdprintf): Likewise.
12849
12850 2009-12-14  Eric Blake  <ebb9@byu.net>
12851
12852         accept4: adjust module dependencies
12853         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
12854
12855         utimens: one more try at avoiding compiler warning
12856         * lib/utimens.c (lutimens): Lower scope of result.
12857
12858 2009-12-13  Bruno Haible  <bruno@clisp.org>
12859
12860         Move the malloc checking from module 'list' to new module 'xlist'.
12861         * modules/xlist: New file.
12862         * lib/gl_xlist.h: New file.
12863         * lib/gl_xlist.c: New file.
12864         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
12865         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
12866         gl_list_add_last, gl_list_add_before, gl_list_add_after,
12867         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
12868         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
12869         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
12870         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
12871         gl_sortedlist_nx_add): New declarations.
12872         (struct gl_list_implementation): Rename and change methods accordingly.
12873         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
12874         (gl_list_nx_create): Renamed from gl_list_create.
12875         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12876         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12877         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12878         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12879         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12880         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12881         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12882         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12883         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
12884         gl_list_create_empty.
12885         (gl_list_nx_create): Renamed from gl_list_create.
12886         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12887         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12888         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12889         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12890         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12891         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12892         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12893         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12894         * lib/gl_array_list.c: Don't include xalloc.h.
12895         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
12896         NULL upon out-of-memory.
12897         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
12898         out-of-memory.
12899         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
12900         Change return type to 'int'.
12901         (gl_array_nx_set_at): Renamed from gl_array_set_at.
12902         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
12903         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
12904         upon out-of-memory.
12905         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
12906         upon out-of-memory.
12907         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
12908         upon out-of-memory.
12909         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
12910         upon out-of-memory.
12911         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
12912         out-of-memory.
12913         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
12914         Update.
12915         (gl_array_list_implementation): Update.
12916         * lib/gl_carray_list.c: Don't include xalloc.h.
12917         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
12918         Return NULL upon out-of-memory.
12919         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
12920         out-of-memory.
12921         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
12922         Change return type to 'int'.
12923         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
12924         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
12925         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
12926         upon out-of-memory.
12927         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
12928         upon out-of-memory.
12929         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
12930         out-of-memory.
12931         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
12932         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
12933         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
12934         Update.
12935         (gl_carray_list_implementation): Update.
12936         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
12937         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
12938         gl_linked_create_empty. Return NULL upon out-of-memory.
12939         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
12940         out-of-memory.
12941         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
12942         Change return type to 'int'. Return -1 upon out-of-memory.
12943         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
12944         out-of-memory.
12945         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
12946         upon out-of-memory.
12947         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
12948         upon out-of-memory.
12949         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
12950         NULL upon out-of-memory.
12951         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
12952         upon out-of-memory.
12953         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
12954         out-of-memory.
12955         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
12956         Update.
12957         * lib/gl_linked_list.c: Don't include xalloc.h.
12958         (gl_linked_list_implementation): Update.
12959         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
12960         (add_to_bucket): Change return type to 'int'.
12961         (gl_linkedhash_list_implementation): Update.
12962         * lib/gl_anytree_list1.h (free_subtree): New function.
12963         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
12964         gl_tree_create_empty. Return NULL upon out-of-memory.
12965         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
12966         Change return type to 'int'. Return -1 upon out-of-memory.
12967         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
12968         out-of-memory.
12969         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
12970         (gl_tree_remove_node): New function, moved here from
12971         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
12972         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
12973         Update.
12974         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
12975         malloc, not xmalloc. Return NULL upon out-of-memory.
12976         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
12977         out-of-memory.
12978         (gl_tree_remove_node_from_tree): New function, extracted from
12979         gl_tree_remove_node.
12980         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
12981         upon out-of-memory.
12982         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
12983         out-of-memory.
12984         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
12985         upon out-of-memory.
12986         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
12987         upon out-of-memory.
12988         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
12989         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
12990         not xmalloc. Return NULL upon out-of-memory.
12991         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
12992         out-of-memory.
12993         (gl_tree_remove_node_from_tree): New function, extracted from
12994         gl_tree_remove_node.
12995         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
12996         upon out-of-memory.
12997         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
12998         out-of-memory.
12999         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13000         upon out-of-memory.
13001         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13002         upon out-of-memory.
13003         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13004         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13005         gl_anytree_list1.h before gl_anyavltree_list2.h.
13006         (gl_avltree_list_implementation): Update.
13007         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13008         gl_anytree_list1.h before gl_anyavltree_list2.h.
13009         (gl_rbtree_list_implementation): Update.
13010         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13011         Change return type to 'int'. Return -1 upon out-of-memory. Use
13012         __builtin_expect.
13013         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13014         (gl_avltreehash_list_implementation): Update.
13015         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13016         (gl_rbtreehash_list_implementation): Update.
13017         * modules/array-list (Depends-on): Remove xalloc.
13018         * modules/carray-list (Depends-on): Likewise.
13019         * modules/linked-list (Depends-on): Likewise.
13020         * modules/linkedhash-list (Depends-on): Likewise.
13021         * modules/avltree-list (Depends-on): Likewise.
13022         * modules/rbtree-list (Depends-on): Likewise.
13023         * modules/avltreehash-list (Depends-on): Likewise.
13024         * modules/rbtreehash-list (Depends-on): Likewise.
13025
13026         * modules/xsublist: New file.
13027         * lib/gl_xsublist.h: New file.
13028         * lib/gl_xsublist.c: New file.
13029         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13030         (gl_sublist_nx_create): New declaration.
13031         * lib/gl_sublist.c: Don't include xalloc.h.
13032         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13033         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13034         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13035         Change return type to 'int'. Return -1 upon out-of-memory.
13036         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13037         upon out-of-memory.
13038         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13039         NULL upon out-of-memory.
13040         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13041         upon out-of-memory.
13042         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13043         NULL upon out-of-memory.
13044         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13045         NULL upon out-of-memory.
13046         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13047         upon out-of-memory.
13048         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13049         (gl_sublist_list_implementation): Update.
13050         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13051         upon out-of-memory.
13052         * modules/sublist (Depends-on): Remove xalloc.
13053
13054         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13055         * tests/test-carray_list.c: Likewise.
13056         * tests/test-linked_list.c: Likewise.
13057         * tests/test-linkedhash_list.c: Likewise.
13058         * tests/test-avltree_list.c: Likewise.
13059         * tests/test-rbtree_list.c: Likewise.
13060         * tests/test-avltreehash_list.c: Likewise.
13061         * tests/test-rbtreehash_list.c: Likewise.
13062         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13063         * modules/carray-list-tests (Makefile.am): Likewise.
13064         * modules/linked-list-tests (Makefile.am): Likewise.
13065         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13066         * modules/avltree-list-tests (Makefile.am): Likewise.
13067         * modules/rbtree-list-tests (Makefile.am): Likewise.
13068         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13069         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13070
13071         * NEWS: Mention the changes.
13072
13073         * lib/clean-temp.c: Include gl_xlist.h.
13074         * modules/clean-temp (Depends-on): Add xlist.
13075
13076         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13077         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13078
13079         * tests/test-array_oset.c: Include gl_xlist.h.
13080         * modules/array-oset-tests (Depends-on): Add xlist.
13081
13082         Reported by José E. Marchesi <jemarch@gnu.org>.
13083
13084 2009-12-13  Bruno Haible  <bruno@clisp.org>
13085
13086         Move the malloc checking from module 'oset' to new module 'xoset'.
13087         * modules/xoset: New file.
13088         * lib/gl_xoset.h: New file.
13089         * lib/gl_xoset.c: New file.
13090         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13091         declarations.
13092         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13093         (struct gl_oset_implementation): Rename and change methods accordingly.
13094         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13095         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13096         'int'. Mark as __warn_unused_result__.
13097         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13098         gl_oset_create_empty.
13099         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13100         'int'.
13101         * lib/gl_array_oset.c: Don't include xalloc.h.
13102         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13103         malloc, not xmalloc.
13104         (grow): Change return type to 'int'. Don't call xalloc_die.
13105         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13106         to 'int'.
13107         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13108         'int'.
13109         (gl_array_oset_implementation): Update.
13110         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13111         gl_tree_create_empty.
13112         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13113         'int'.
13114         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13115         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13116         xmalloc.
13117         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13118         not xmalloc.
13119         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13120         xmalloc.
13121         (gl_avltree_oset_implementation): Update.
13122         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13123         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13124         xmalloc.
13125         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13126         not xmalloc.
13127         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13128         xmalloc.
13129         (gl_rbtree_oset_implementation): Update.
13130         * modules/array-oset (Depends-on): Remove xalloc.
13131         * modules/avltree-oset (Depends-on): Likewise.
13132         * modules/rbtree-oset (Depends-on): Likewise.
13133         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13134         * tests/test-avltree_oset.c: Likewise.
13135         * tests/test-rbtree_oset.c: Likewise.
13136         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13137         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13138         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13139         * NEWS: Mention the change.
13140
13141 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13142
13143         maint.mk: allow a project to override release-prep commands
13144         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13145         commands into a new rule.
13146         (release-prep): New rule.
13147         (release-prep-hook): New overridable variable.
13148
13149 2009-12-13  Bruno Haible  <bruno@clisp.org>
13150
13151         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13152
13153 2009-12-13  Jim Meyering  <meyering@redhat.com>
13154
13155         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13156         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13157
13158 2009-12-12  Bruno Haible  <bruno@clisp.org>
13159
13160         duplocale: Tweak.
13161         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13162
13163 2009-12-12  Karl Berry  <karl@gnu.org>
13164
13165         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13166
13167 2009-12-12  Bruno Haible  <bruno@clisp.org>
13168
13169         * m4/po.m4: Undo incorrect untabification.
13170
13171 2009-12-12  Bruno Haible  <bruno@clisp.org>
13172
13173         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13174         * modules/c-strtod (Depends-on): Add locale.
13175         * modules/c-strtold (Depends-on): Likewise.
13176
13177 2009-12-12  Bruno Haible  <bruno@clisp.org>
13178
13179         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13180
13181 2009-12-11  Eric Blake  <ebb9@byu.net>
13182
13183         setenv: relax requirement in light of POSIX ruling
13184         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13185         not NULL.
13186         * tests/test-setenv.c (main): Relax test.
13187         * tests/test-unsetenv.c (main): Likewise.
13188         * doc/posix-functions/setenv.texi (setenv): Document this.
13189         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13190
13191 2009-12-11  Bruno Haible  <bruno@clisp.org>
13192
13193         New module 'fd-safer-flag'.
13194         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13195         * lib/dup-safer.c (dup_safer_flag): Remove function.
13196         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13197         * lib/fd-safer.c (fd_safer_flag): Remove function.
13198         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13199         * modules/cloexec (configure.ac): Drop indicator macro.
13200         * modules/fd-safer-flag: New file.
13201         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13202         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13203         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13204
13205 2009-12-11  Bruno Haible  <bruno@clisp.org>
13206
13207         Tests for module 'nl_langinfo'.
13208         * modules/nl_langinfo-tests: New file.
13209         * tests/test-nl_langinfo.sh: New file.
13210         * tests/test-nl_langinfo.c: New file.
13211
13212         New module 'nl_langinfo'.
13213         * lib/nl_langinfo.c: New file.
13214         * m4/nl_langinfo.m4: New file.
13215         * modules/nl_langinfo: New file.
13216         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13217
13218 2009-12-11  Bruno Haible  <bruno@clisp.org>
13219
13220         Tests for module 'langinfo'.
13221         * modules/langinfo-tests: New file.
13222         * tests/test-langinfo.c: New file.
13223
13224         New module 'langinfo'.
13225         * lib/langinfo.in.h: New file.
13226         * m4/langinfo_h.m4: New file.
13227         * modules/langinfo: New file.
13228         * doc/posix-headers/langinfo.texi: Mention the new module.
13229
13230 2009-12-11  Bruno Haible  <bruno@clisp.org>
13231
13232         * lib/config.charset: Untabify.
13233
13234 2009-12-11  Bruno Haible  <bruno@clisp.org>
13235
13236         * modules/unistd-safer (configure.ac): Drop indicator macro.
13237
13238 2009-12-11  Bruno Haible  <bruno@clisp.org>
13239
13240         Move pipe2-safer code to its own file.
13241         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13242         * lib/pipe-safer.c (pipe2_safer): Remove function.
13243         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13244         (Makefile.am): Add it to lib_SOURCES.
13245
13246 2009-12-10  Bruno Haible  <bruno@clisp.org>
13247
13248         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
13249
13250 2009-12-10  Bruno Haible  <bruno@clisp.org>
13251
13252         Declare which arguments expect non-NULL values, for GCC and clang.
13253         * build-aux/arg-nonnull.h: New file.
13254         * modules/arg-nonnull: New file.
13255         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
13256         (inet_ntop, inet_pton): Use it.
13257         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
13258         (closedir, dirfd, opendir, scandir, alphasort): Use it.
13259         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
13260         (open, openat): Use it.
13261         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
13262         (fnmatch): Use it.
13263         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
13264         (getopt, getopt_long, getopt_long_only): Use it.
13265         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
13266         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
13267         Use it.
13268         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
13269         (iconv_open): Use it.
13270         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
13271         (strtoimax, strtoumax): Use it.
13272         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
13273         (duplocale): Use it.
13274         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
13275         (frexp, frexpl): Use it.
13276         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
13277         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
13278         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
13279         (tsearch, tfind, tdelete, twalk): Use it.
13280         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
13281         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13282         sigpending): Use it.
13283         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
13284         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13285         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13286         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13287         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13288         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13289         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13290         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13291         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13292         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13293         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13294         Use it.
13295         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13296         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13297         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13298         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13299         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13300         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13301         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13302         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13303         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13304         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13305         strtoull, unsetenv): Use it.
13306         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13307         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13308         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13309         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13310         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13311         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13312         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13313         (strcasecmp, strncasecmp): Use it.
13314         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13315         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13316         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13317         rpl_setsockopt): Use it.
13318         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13319         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13320         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13321         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13322         (gettimeofday): Use it.
13323         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13324         (times): Use it.
13325         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13326         (uname): Use it.
13327         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13328         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13329         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13330         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13331         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13332         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13333         unlinkat, write): Use it.
13334         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13335         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13336         * lib/argv-iter.h: Include arg-nonnull.h.
13337         (_ATTRIBUTE_NONNULL_): Remove macro.
13338         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13339         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13340         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13341         optimization.
13342         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13343         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13344         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13345         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13346         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13347         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13348         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13349         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13350         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13351         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13352         * modules/dirent (Depends-on): Add arg-nonnull.
13353         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13354         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13355         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13356         * modules/fnmatch (Depends-on): Add arg-nonnull.
13357         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13358         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13359         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13360         * modules/glob (Depends-on): Add arg-nonnull.
13361         (Makefile.am): Insert arg-nonnull.h into glob.h.
13362         * modules/iconv_open (Depends-on): Add arg-nonnull.
13363         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13364         * modules/inttypes (Depends-on): Add arg-nonnull.
13365         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13366         * modules/locale (Depends-on): Add arg-nonnull.
13367         (Makefile.am): Insert arg-nonnull.h into locale.h.
13368         * modules/math (Depends-on): Add arg-nonnull.
13369         (Makefile.am): Insert arg-nonnull.h into math.h.
13370         * modules/netdb (Depends-on): Add arg-nonnull.
13371         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13372         * modules/search (Depends-on): Add arg-nonnull.
13373         (Makefile.am): Insert arg-nonnull.h into search.h.
13374         * modules/signal (Depends-on): Add arg-nonnull.
13375         (Makefile.am): Insert arg-nonnull.h into signal.h.
13376         * modules/spawn (Depends-on): Add arg-nonnull.
13377         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13378         * modules/stdio (Depends-on): Add arg-nonnull.
13379         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13380         * modules/stdlib (Depends-on): Add arg-nonnull.
13381         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13382         * modules/string (Depends-on): Add arg-nonnull.
13383         (Makefile.am): Insert arg-nonnull.h into string.h.
13384         * modules/strings (Depends-on): Add arg-nonnull.
13385         (Makefile.am): Insert arg-nonnull.h into strings.h.
13386         * modules/sys_socket (Depends-on): Add arg-nonnull.
13387         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13388         * modules/sys_stat (Depends-on): Add arg-nonnull.
13389         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13390         * modules/sys_time (Depends-on): Add arg-nonnull.
13391         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13392         * modules/sys_times (Depends-on): Add arg-nonnull.
13393         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13394         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13395         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13396         * modules/time (Depends-on): Add arg-nonnull.
13397         (Makefile.am): Insert arg-nonnull.h into time.h.
13398         * modules/unistd (Depends-on): Add arg-nonnull.
13399         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13400         * modules/wchar (Depends-on): Add arg-nonnull.
13401         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13402         * modules/argv-iter (Depends-on): Add arg-nonnull.
13403         * tests/test-canonicalize.c (null_ptr): New function.
13404         (main): Use it.
13405         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13406         (main): Use it.
13407         * tests/test-memmem.c (null_ptr): New function.
13408         (main): Use it.
13409         Reported by Jim Meyering.
13410
13411 2009-12-10  Bruno Haible  <bruno@clisp.org>
13412
13413         Use spaces for indentation, not tabs.
13414         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13415         * m4/*.m4: Untabify.
13416         * build-aux/*.h: Untabify.
13417         * tests/**/*.[hc]: Untabify.
13418         * README: New section "Indent with spaces, not TABs", based on
13419         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
13420         * NEWS: Mention the change.
13421
13422 2009-12-10  Bruno Haible  <bruno@clisp.org>
13423
13424         pty test: Fix link error.
13425         * modules/pty-tests (Makefile.am): Add the default LDADD value to
13426         test_pty_LDADD.
13427
13428 2009-12-07  Simon Josefsson  <simon@josefsson.org>
13429
13430         * modules/pty: New file.
13431         * modules/pty-tests: New file.
13432         * m4/pty.m4: New file.
13433         * tests/test-pty.c: New file.
13434         * doc/glibc-headers/pty.texi: Modified.
13435         * doc/glibc-functions/forkpty.texi: Modified.
13436         * doc/glibc-functions/openpty.texi: Modified.
13437
13438 2009-12-10  Bruno Haible  <bruno@clisp.org>
13439
13440         Avoid syntax error in C++ mode.
13441         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
13442
13443 2009-12-10  Bruno Haible  <bruno@clisp.org>
13444
13445         Use sed with option -e.
13446         * gnulib-tool (func_version, func_emit_copyright_notice,
13447         func_emit_initmacro_end, func_import, func_create_testdir): Pass
13448         option -e to sed.
13449         * modules/link-warning (Makefile.am): Likewise.
13450
13451 2009-12-10  Jim Meyering  <meyering@redhat.com>
13452
13453         mgetgroups: do not write bytes beyond end of malloc'd buffer
13454         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
13455         username, we call getgroups with a one-element-shorter buffer,
13456         but still told it the length was original, max_n_groups.
13457
13458 2009-12-09  Eric Blake  <ebb9@byu.net>
13459
13460         cloexec: relax license
13461         * modules/cloexec (Maintainer): Add myself.
13462         (License): Use LGPL, not GPL.
13463
13464         link-warning: optimize generation
13465         * modules/link-warning (Makefile.am): Reduce process usage.
13466
13467 2009-12-09  Bruno Haible  <bruno@clisp.org>
13468
13469         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
13470         workaround was added on 2009-11-17.
13471
13472 2009-12-09  Jim Meyering  <meyering@redhat.com>
13473             Bruno Haible  <bruno@clisp.org>
13474
13475         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
13476         * modules/link-warning (Makefile.am): Make the comment-removing sed
13477         command more robust in the face of bootstrap-prepended comment lines.
13478
13479 2009-12-09  Bruno Haible  <bruno@clisp.org>
13480
13481         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
13482         most one group.
13483
13484 2009-12-09  Simon Josefsson <simon@josefsson.org>
13485             Bruno Haible  <bruno@clisp.org>
13486
13487         * build-aux/link-warning.h: Add copyright notice.
13488         * modules/link-warning (Makefile.am): Generate link-warning.h from
13489         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
13490         * NEWS: Mention change in link-warning module.
13491         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
13492         * modules/dirent (Makefile.am): Add dependency to dirent.h.
13493         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
13494         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
13495         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
13496         * modules/math (Makefile.am): Add dependency to math.h.
13497         * modules/search (Makefile.am): Add dependency to search.h.
13498         * modules/signal (Makefile.am): Add dependency to signal.h.
13499         * modules/spawn (Makefile.am): Add dependency to spawn.h.
13500         * modules/stdio (Makefile.am): Add dependency to stdio.h.
13501         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
13502         * modules/string (Makefile.am): Add dependency to string.h.
13503         * modules/strings (Makefile.am): Add dependency to strings.h.
13504         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
13505         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
13506         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
13507         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
13508         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
13509         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
13510         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
13511         * modules/unistd (Makefile.am): Add dependency to unistd.h.
13512         * modules/wchar (Makefile.am): Add dependency to wchar.h.
13513
13514 2009-12-09  Bruno Haible  <bruno@clisp.org>
13515
13516         fchdir: Optimize away rpl_fstat when possible.
13517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
13518         REPLACE_OPEN_DIRECTORY.
13519         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
13520
13521 2009-12-09  Bruno Haible  <bruno@clisp.org>
13522
13523         * lib/fchdir.c: Update comment.
13524
13525 2009-12-09  Bruno Haible  <bruno@clisp.org>
13526
13527         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
13528
13529 2009-12-08  Eric Blake  <ebb9@byu.net>
13530
13531         fchdir: avoid memory leak on re-registration.
13532         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
13533
13534 2009-12-08  Jim Meyering  <meyering@redhat.com>
13535
13536         init.sh: avoid Solaris 10 /bin/sh portability problem
13537         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
13538         sourced script:
13539           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
13540           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
13541           bar
13542         tests/init.sh relied on that, accepting a --set-path=DIR argument,
13543         and two tests used that idiom.
13544         * tests/init.sh: Update suggested usage comments.
13545         (path_prepend_): New function, to be used in place
13546         of the --src-path=DIR option.
13547         (setup_): Move PATH-prepending code into path_prepend_.
13548         * tests/test-pread.sh: Adapt to new usage.
13549         * tests/test-xalloc-die.sh: Likewise.
13550
13551 2009-12-08  Simon Josefsson  <simon@josefsson.org>
13552
13553         * doc/gnulib.texi (Glibc pty.h): Add.
13554         * doc/glibc-functions/forkpty.texi: Add.
13555         * doc/glibc-functions/openpty.texi: Add.
13556         Suggested by Bruno Haible.
13557
13558 2009-12-08  Eric Blake  <ebb9@byu.net>
13559
13560         fchdir: fix logic bugs
13561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
13562         * tests/test-fchdir.c (main): Enhance test.
13563         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
13564         is in use.
13565
13566         dup2: fix logic bugs
13567         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
13568         REPLACE_DUP2 to decide when rpl_dup2 is needed.
13569         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
13570         exists.
13571         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
13572
13573 2009-12-07  Eric Blake  <ebb9@byu.net>
13574
13575         unlink: fix m4 detection
13576         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
13577
13578         unistd-safer: add unit test
13579         * modules/unistd-safer-tests: New file.
13580         * tests/test-dup-safer.c: Likewise.
13581         * tests/test-cloexec.c (setmode): Avoid compiler warning.
13582         * tests/test-dup2.c (setmode): Likewise.
13583         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
13584
13585         cloexec: preserve text vs. binary across dup_cloexec
13586         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
13587         mode.
13588         * modules/dup2-tests (Depends-on): Add binary-io.
13589         * modules/cloexec-tests (Depends-on): Likewise.
13590         * tests/test-dup2.c (setmode, is_mode): New helpers.
13591         (main): Add tests that translation mode is preserved.
13592         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
13593         Reported by Bruno Haible.
13594
13595         mgetgroups: reduce duplicate listings
13596         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
13597         resulting array.
13598         * tests/test-chown.h (test_chown): Simplify client.
13599         * tests/test-lchown.h (test_lchown): Likewise.
13600
13601 2009-12-06  Bruno Haible  <bruno@clisp.org>
13602
13603         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
13604         value.
13605
13606 2009-12-06  Bruno Haible  <bruno@clisp.org>
13607
13608         * lib/progname.c: Include stdio.h, stdlib.h.
13609         (set_program_name): Reject a NULL argument.
13610
13611 2009-12-05  Eric Blake  <ebb9@byu.net>
13612
13613         pipe2-safer: new module
13614         * modules/pipe2-safer: New file.
13615         * lib/unistd-safer.h (pipe2_safer): New prototype.
13616         * lib/unistd--.h (pipe2): New wrapper.
13617         * lib/pipe-safer.c (pipe2_safer): New function.
13618         * modules/pipe (Depends-on): Add pipe2-safer.
13619         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
13620
13621         stdlib-safer: preserve cloexec flag for mkostemp[s]
13622         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
13623         fd_safer_flag.
13624
13625         unistd-safer: allow preservation of cloexec status via flag
13626         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
13627         prototypes.
13628         * lib/dup-safer.c (dup_safer_flag): New function.
13629         * lib/fd-safer.c (fd_safer_flag): Likewise.
13630         * modules/cloexec (configure.ac): Set witness.
13631
13632         test-dup2: enhance test
13633         * modules/dup2-tests (Depends-on): Add cloexec.
13634         * tests/test-dup2.c (main): Enhance test.
13635
13636         cloexec: add dup_cloexec
13637         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
13638         header and comments.
13639         * lib/cloexec.c (set_cloexec_flag): Add comments.
13640         (dup_cloexec): New function, with mingw implementation borrowed
13641         from...
13642         * lib/w32spawn.h (dup_noinherit): ...here.
13643         * modules/execute (Depends-on): Add cloexec.
13644         * modules/pipe (Depends-on): Likewise.
13645         * modules/cloexec (Depends-on): Add dup2.
13646         * modules/cloexec-tests (Files): New file.
13647         * tests/test-cloexec.c: Likewise.
13648
13649         test-xalloc-die: fix test for mingw
13650         * modules/xalloc-die-tests (Files): Add tests/init.sh.
13651         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
13652         directory and .exe suffix off argv[0] output.
13653
13654         test-fseeko: fix test for mingw
13655         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
13656         than undefining fseek, so test will pass on mingw.
13657
13658 2009-12-05  Bruno Haible  <bruno@clisp.org>
13659
13660         * lib/progname.h (set_program_name): Clarify specification.
13661         * lib/progname.c (set_program_name): Likewise.
13662         Reported by Jim Meyering.
13663
13664 2009-12-05  Jim Meyering  <meyering@redhat.com>
13665
13666         maint.mk: backslash-escape parens in default regexp
13667         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
13668         backslash-escape the literal parentheses.
13669
13670         maint.mk: news-date-check: use grep -E
13671         * top/maint.mk (today): Define a Make variable, not a...
13672         (news-date-check): ...shell variable.
13673         (news-date-regexp): Use the Make variable.
13674         Use grep's -E option.  Change the failing diagnostic to mention
13675         the variable, $(news-date-regexp).
13676
13677 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
13678
13679         maintainer-makefile: allow customization of NEWS entry format
13680         * top/maint.mk (news-date-regexp): New overridable variable.
13681         (news-date-check): Use it.
13682
13683 2009-12-04  Eric Blake  <ebb9@byu.net>
13684
13685         mgetgroups: add xgetgroups, and avoid ENOSYS failures
13686         * lib/mgetgroups.h (xgetgroups): New prototype.
13687         * lib/mgetgroups.c (xgetgroups): New wrapper.
13688         (mgetgroups): Handle ENOSYS.
13689         * modules/mgetgroups (Depends-on): Add realloc.
13690         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
13691
13692         mgetgroups: avoid argument promotion issues with -1
13693         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
13694         for invalid gid_t.
13695         * tests/test-chown.h (getegid, test_chown): Likewise.
13696         * tests/test-lchown.h (getegid, test_lchown): Likewise.
13697
13698 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
13699
13700         exclude: Fix header file problems.
13701         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
13702
13703 2009-12-01  Jim Meyering  <meyering@redhat.com>
13704
13705         fts: fts_open: do not let an empty string cause immediate failure
13706         This is required in support of GNU rm, for which the command
13707         "rm A '' B" must process and remove both A and B, in spite of
13708         the empty string argument.
13709         * lib/fts.c (fts_open): Do not let the presence of an empty string
13710         cause fts_open to fail immediately.  Most fts-using tools must be
13711         able to process all arguments, in order, and can be expected to
13712         diagnose such arguments themselves.
13713
13714 2009-11-30  Eric Blake  <ebb9@byu.net>
13715
13716         utimens: fix compilation error
13717         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
13718         Declare variable at right scope.
13719
13720 2009-11-29  Jim Meyering  <meyering@redhat.com>
13721
13722         bootstrap: handle perl-5.11's changed --version output
13723         * build-aux/bootstrap (get_version): Handle perl separately,
13724         since perl-5.11's --version output is different.
13725
13726 2009-11-28  Jim Meyering  <meyering@redhat.com>
13727
13728         userspec: depend on the inttostr module, too
13729         * modules/userspec (Depends-on): Add inttostr.
13730
13731         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
13732         * lib/userspec.c (parse_with_separator): Do not accept a user ID
13733         number of MAXUID when it evaluates to (uid_t) -1.
13734         Likewise for group ID.  Reported by Matt McCutchen in
13735         <http://savannah.gnu.org/bugs/?28113>
13736
13737         userspec: reformat to use spaces, not TABs
13738         * lib/userspec.c: Expand TABs to spaces.
13739         Add Emacs' "indent-tabs-mode: nil" hint.
13740
13741 2009-11-27  Eric Blake  <ebb9@byu.net>
13742
13743         getopt-gnu: flush out another BSD bug
13744         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
13745         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
13746         flush out BSD bug.
13747         * tests/test-getopt.h (test_getopt): End lists with NULL.
13748         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13749         (test_getopt_long_posix): Enhance test.
13750         * modules/getopt-posix-tests (Depends-on): Add stdbool.
13751         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
13752         getopt-gnu.
13753         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13754         Likewise.
13755
13756 2009-11-27  Simon Josefsson  <simon@josefsson.org>
13757
13758         * modules/idpriv-droptemp-tests (Notice): Fix text.
13759
13760 2009-11-27  Jim Meyering  <meyering@redhat.com>
13761
13762         test-xalloc-die: avoid spurious failure due to libtool argv difference
13763         In a libtool-enabled project, this test would fail due to a difference
13764         in the emitted program name, e.g.,
13765         -test-xalloc-die: memory exhausted
13766         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
13767         Use program to avoid that.
13768         * modules/xalloc-die-tests (Depends-on): Add progname.
13769         * tests/test-xalloc-die.c: Include progname.h".
13770         (program_name): Remove decl.
13771         (main): Call set_program_name.
13772         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
13773
13774 2009-11-26  Richard Jones  <rjones@redhat.com>
13775
13776         w32sock: leave win32 error in place.
13777         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
13778
13779 2009-11-26  Eric Blake  <ebb9@byu.net>
13780
13781         init.sh: suggest to use skip_ and fail_ functions in comments
13782         * tests/init.sh: Add a sentence.
13783
13784 2009-11-25  Bruno Haible  <bruno@clisp.org>
13785
13786         init.sh: add documentation in comments
13787         * tests/init.sh: Add some developer and user documentation.
13788
13789 2009-11-26  Jim Meyering  <meyering@redhat.com>
13790
13791         init.sh: accommodate even those who specify bogus srcdir manually
13792         * tests/init.sh: Normally, srcdir is guaranteed by automake and
13793         configure-time tests to be sanitized, so that there is no need to
13794         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
13795         (with no double quotes) suffices.  However, since tests may be
13796         invoked manually, and since you may explicitly set srcdir to the
13797         name of a directory containing spaces, do quote its uses here.
13798         * tests/test-pread.sh: Likewise.
13799         Suggested by Bruno Haible.
13800
13801         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
13802         * tests/test-pread.sh: Write no data into the pipe, because
13803         test-pread actually reads none.  This avoids a diagnostic,
13804         "bash: echo: write error: Broken pipe", that arises in the unusual
13805         event something is ignoring SIGPIPE, and might be interpreted
13806         as some sort of failure.  Reported by Bruno Haible.
13807
13808 2009-11-25  Jim Meyering  <meyering@redhat.com>
13809
13810         test-pread: cover failure with ESPIPE and EINVAL
13811         * tests/test-pread.c (main): Test for failure, too.
13812         * tests/test-pread.sh: Invoke with stdin on a pipe.
13813         Suggested by Eric Blake.
13814
13815         pread: improvement and fix
13816         * modules/pread (Depends-on): Depend on lseek, for portability to
13817         e.g., mingw.  Suggested by Eric Blake.
13818         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
13819
13820         unistd.in.h: correct declaration of pread
13821         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
13822         Reported by Richard W.M. Jones.
13823
13824         test-pread.sh: distribute the test script
13825         * modules/pread-tests (Files): Include test-pread.sh.
13826
13827         test-pread.sh: clean up
13828         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
13829         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
13830         That is unnecessary, since it's always ".".
13831         Suggestion from Eric Blake.
13832
13833         test-pread.sh: make executable
13834         * tests/test-pread.sh: Set executable bit.
13835         Reported by Eric Blake.
13836
13837         correct typo in test-pread.sh
13838         * tests/test-pread.sh: Add #! line.
13839
13840         test pread
13841         * tests/test-pread.c: New file.
13842         * tests/test-pread.sh: Likewise.
13843         * modules/pread-tests: Likewise.
13844
13845         pread: new module
13846         * modules/pread: New file.
13847         * lib/unistd.in.h (pread): Define/declare.
13848         * lib/pread.c (pread): New file.
13849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
13850         * modules/unistd (Makefile.am): Substitute witnesses.
13851         * doc/posix-functions/pread.texi (pread): Update.
13852         * MODULES.html.sh: Add pread.
13853
13854 2009-11-25  Jim Meyering  <meyering@redhat.com>
13855
13856         tests/init.sh: new file to be used via most *.sh tests
13857         * tests/init.sh: New file.
13858
13859 2009-11-25  Eric Blake  <ebb9@byu.net>
13860
13861         utimens: work around older Linux failure with symlinks
13862         * lib/utimens.c (lutimensat_works_really): New variable.
13863         (fdutimens, lutimens): Use it to manage kernels that support
13864         nanosecond times on files, but not on symlinks.
13865         Reported by OndÅ™ej Vašík.
13866
13867         utimes: fix configure grammar
13868         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
13869
13870 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
13871
13872         regex: Fix fastmap for multibyte character ranges.
13873         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
13874         characters when a multibyte character range is included.
13875
13876 2009-11-22  Andy Wingo  <wingo@pobox.com>
13877
13878         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
13879         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
13880
13881 2009-11-24  Bruno Haible  <bruno@clisp.org>
13882
13883         doc: Most *_l functions exist in MacOS X 10.5.
13884         * doc/posix-functions/duplocale.texi: Update platforms list.
13885         * doc/posix-functions/freelocale.texi: Likewise.
13886         * doc/posix-functions/newlocale.texi: Likewise.
13887         * doc/posix-functions/uselocale.texi: Likewise.
13888         * doc/posix-functions/isalnum_l.texi: Likewise.
13889         * doc/posix-functions/isalpha_l.texi: Likewise.
13890         * doc/posix-functions/isblank_l.texi: Likewise.
13891         * doc/posix-functions/iscntrl_l.texi: Likewise.
13892         * doc/posix-functions/isdigit_l.texi: Likewise.
13893         * doc/posix-functions/isgraph_l.texi: Likewise.
13894         * doc/posix-functions/islower_l.texi: Likewise.
13895         * doc/posix-functions/isprint_l.texi: Likewise.
13896         * doc/posix-functions/ispunct_l.texi: Likewise.
13897         * doc/posix-functions/isspace_l.texi: Likewise.
13898         * doc/posix-functions/isupper_l.texi: Likewise.
13899         * doc/posix-functions/iswalnum_l.texi: Likewise.
13900         * doc/posix-functions/iswalpha_l.texi: Likewise.
13901         * doc/posix-functions/iswblank_l.texi: Likewise.
13902         * doc/posix-functions/iswcntrl_l.texi: Likewise.
13903         * doc/posix-functions/iswctype_l.texi: Likewise.
13904         * doc/posix-functions/iswdigit_l.texi: Likewise.
13905         * doc/posix-functions/iswgraph_l.texi: Likewise.
13906         * doc/posix-functions/iswlower_l.texi: Likewise.
13907         * doc/posix-functions/iswprint_l.texi: Likewise.
13908         * doc/posix-functions/iswpunct_l.texi: Likewise.
13909         * doc/posix-functions/iswspace_l.texi: Likewise.
13910         * doc/posix-functions/iswupper_l.texi: Likewise.
13911         * doc/posix-functions/iswxdigit_l.texi: Likewise.
13912         * doc/posix-functions/isxdigit_l.texi: Likewise.
13913         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
13914         * doc/posix-functions/strcasecmp_l.texi: Likewise.
13915         * doc/posix-functions/strcoll_l.texi: Likewise.
13916         * doc/posix-functions/strfmon_l.texi: Likewise.
13917         * doc/posix-functions/strftime_l.texi: Likewise.
13918         * doc/posix-functions/strncasecmp_l.texi: Likewise.
13919         * doc/posix-functions/strxfrm_l.texi: Likewise.
13920         * doc/posix-functions/tolower_l.texi: Likewise.
13921         * doc/posix-functions/toupper_l.texi: Likewise.
13922         * doc/posix-functions/towctrans_l.texi: Likewise.
13923         * doc/posix-functions/towlower_l.texi: Likewise.
13924         * doc/posix-functions/towupper_l.texi: Likewise.
13925         * doc/posix-functions/wcscoll_l.texi: Likewise.
13926         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
13927         * doc/posix-functions/wctrans_l.texi: Likewise.
13928         * doc/posix-functions/wctype_l.texi: Likewise.
13929         * doc/glibc-functions/strptime_l.texi: Likewise.
13930         * doc/glibc-functions/strtod_l.texi: Likewise.
13931         * doc/glibc-functions/strtof_l.texi: Likewise.
13932         * doc/glibc-functions/strtol_l.texi: Likewise.
13933         * doc/glibc-functions/strtold_l.texi: Likewise.
13934         * doc/glibc-functions/strtoll_l.texi: Likewise.
13935         * doc/glibc-functions/strtoul_l.texi: Likewise.
13936         * doc/glibc-functions/strtoull_l.texi: Likewise.
13937         * doc/glibc-functions/wcsftime_l.texi: Likewise.
13938         * doc/glibc-functions/wcstod_l.texi: Likewise.
13939         * doc/glibc-functions/wcstof_l.texi: Likewise.
13940         * doc/glibc-functions/wcstol_l.texi: Likewise.
13941         * doc/glibc-functions/wcstold_l.texi: Likewise.
13942         * doc/glibc-functions/wcstoll_l.texi: Likewise.
13943         * doc/glibc-functions/wcstoul_l.texi: Likewise.
13944         * doc/glibc-functions/wcstoull_l.texi: Likewise.
13945
13946 2009-11-24  Bruno Haible  <bruno@clisp.org>
13947
13948         duplocale: Fix logic bug.
13949         * lib/duplocale.c: Don't include <langinfo.h>.
13950         (_NL_LOCALE_NAME): Remove macro.
13951         (rpl_duplocale): Use setlocale instead of nl_langinfo.
13952         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
13953
13954 2009-11-23  Jim Meyering  <meyering@redhat.com>
13955
13956         test-update-copyright: don't hard-code /usr/bin/perl
13957         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
13958         perl to print the current year.  Gilles Espinasse reported that
13959         the replaced use of perl was hard-coded as /usr/bin/perl.
13960
13961 2009-11-23  Bruno Haible  <bruno@clisp.org>
13962
13963         duplocale: Add support for glibc 2.3.x.
13964         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
13965
13966 2009-11-22  Bruno Haible  <bruno@clisp.org>
13967
13968         vasnprintf: Tiny optimization.
13969         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
13970         MacOS X.
13971
13972 2009-11-22  Bruno Haible  <bruno@clisp.org>
13973
13974         Tests for module 'duplocale'.
13975         * modules/duplocale-tests: New file.
13976         * tests/test-duplocale.c: New file.
13977
13978         New module 'duplocale'.
13979         * m4/duplocale.m4: New file.
13980         * lib/locale.in.h (duplocale): New declaration.
13981         * lib/duplocale.c: New file.
13982         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
13983         gl_LOCALE_H_DEFAULTS): New macros.
13984         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
13985         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
13986         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
13987         REPLACE_DUPLOCALE.
13988         * modules/duplocale: New file.
13989         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
13990
13991 2009-11-22  Bruno Haible  <bruno@clisp.org>
13992
13993         * modules/locale-tests (configure.ac): Test for newlocale function.
13994         * tests/test-locale.c: When the system has extended locale functions,
13995         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
13996
13997         locale: Make locale_t available when possible.
13998         * lib/locale.in.h: Include <xlocale.h> when it exists.
13999         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14000         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14001         * modules/locale (Depends-on): Add extensions.
14002         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14003         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14004
14005 2009-11-22  Bruno Haible  <bruno@clisp.org>
14006
14007         Add comments.
14008         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14009         invocation.
14010         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14011         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14012         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14013
14014 2009-11-22  Bruno Haible  <bruno@clisp.org>
14015
14016         error: account for the possibility of freopen (stdout).
14017         * lib/error.c: Include <unistd.h>.
14018         (flush_stdout): New function, extracted from error and error_at_line.
14019         Determine stdout's fd dynamically.
14020         (error, error_at_line): Invoke flush_stdout.
14021         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14022         * modules/error (Depends-on): Add unistd.
14023
14024 2009-11-22  Bruno Haible  <bruno@clisp.org>
14025
14026         diffseq: Add comment.
14027         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14028
14029 2009-11-22  Jim Meyering  <meyering@redhat.com>
14030
14031         c-stack: avoid defining an unused static function
14032         * lib/c-stack.c (find_stack_direction): Do not define this function
14033         when it will not be used.
14034
14035         diffseq: avoid spurious gcc warnings
14036         * lib/diffseq.h (IF_LINT2): Define.
14037         (compareseq): Use it to initialize two members of "part".
14038         This avoids two used-uninitialized warnings.
14039
14040 2009-11-21  Jim Meyering  <meyering@redhat.com>
14041
14042         c-stack: avoid "ignoring return value of `write'" warning
14043         * lib/c-stack.c: Include "ignore-value.h".
14044         (die): Explicitly ignore each write return value.
14045         * modules/c-stack (Depends-on): Add ignore-value.
14046
14047 2009-11-21  Bruno Haible  <bruno@clisp.org>
14048
14049         diffseq: reduce scope of variable 'best'.
14050         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14051         variable, earlier used for two different purposes.
14052
14053 2009-11-21  Jim Meyering  <meyering@redhat.com>
14054
14055         diffseq: remove useless assignment to "best"
14056         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14057         assignment.  At that point "best" is already guaranteed to be zero.
14058
14059 2009-11-20  Eric Blake  <ebb9@byu.net>
14060
14061         build: mention ftp redirector in release announcements
14062         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14063         values that used to come from cfg.mk; mention FTP redirect URL.
14064         * build-aux/announce-gen: Mention the mirror list.
14065         Suggested by Karl Berry.
14066
14067         nanosleep: improve port to mingw
14068         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14070         LIB_NANOSLEEP, but only when needed.
14071         * modules/select (Link): Document LIBSOCKET.
14072         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14073         enough.
14074
14075         nanosleep: work around cygwin bug
14076         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14077         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14078         bug.
14079         (getnow): Delete, not needed.
14080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14081         LIB_CLOCK_GETTIME.
14082         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14083         clock-time, gettime.
14084         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14085         bug.
14086         * modules/nanosleep-tests: New test.
14087         * tests/test-nanosleep.c: New file.
14088
14089         sleep: work around cygwin bug
14090         * lib/sleep.c (rpl_sleep): Work around the bug.
14091         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14092         (gl_PREREQ_SLEEP): Delete unused macro.
14093         * modules/sleep (Depends-on): Add verify.
14094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14095         * modules/unistd (Makefile.am): Substitute witness.
14096         * lib/unistd.in.h (sleep): Update prototype.
14097         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14098         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14099         * modules/sleep-tests (Depends-on): Check for alarm.
14100
14101 2009-11-20  Jim Meyering  <meyering@redhat.com>
14102
14103         maint.mk: improve sc_prohibit_magic_number_exit
14104         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14105         so it does not match uses like System.exit(1).
14106         Add comments showing how to correct all offenders.
14107
14108 2009-11-19  Eric Blake  <ebb9@byu.net>
14109
14110         xalloc-die-tests: add missing library
14111         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14112
14113         test-xvasprintf: silence compiler warnings
14114         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14115         empty string from gcc.
14116
14117 2009-11-19  Jim Meyering  <meyering@redhat.com>
14118
14119         xfreopen: new module, from coreutils
14120         * modules/xfreopen: New module.
14121         * lib/xfreopen.c: New file.
14122         * lib/xfreopen.h: New file.
14123         * MODULES.html.sh (File stream based Input/Output"): Add it.
14124
14125 2009-11-19  Eric Blake  <ebb9@byu.net>
14126
14127         manywarnings: depend on warnings
14128         * modules/manywarnings (Depends-on): Add warnings.
14129
14130         build: avoid compiler warnings
14131         * lib/select.c (rpl_select): Delete unused variable.
14132         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14133
14134 2009-11-18  Eric Blake  <ebb9@byu.net>
14135
14136         tests: avoid false negative with --with-packager
14137         * tests/test-version-etc.sh: Discard packager information.
14138         * tests/test-argp-version-etc-1.sh: Likewise.
14139         Reported by Mike Frysinger.
14140
14141         utimens: fix regression on Solaris
14142         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14143         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14144         can only change fd timestamps via futimesat.  Instead, use an
14145         additional witness macro to avoid BSD bug.
14146         Reported by Jim Meyering.
14147
14148 2009-11-17  Eric Blake  <ebb9@byu.net>
14149
14150         usleep: use it to simplify tests
14151         * modules/stat-time-tests (Depends-on): Add usleep.
14152         (configure.ac): Drop usleep check.
14153         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14154         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14155         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14156         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14157         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14158         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14159         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14160         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14161         Likewise.
14162         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14163         * tests/test-lchown.h (nap): Likewise.
14164         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14165         * tests/test-stat-time.c (nap): Likewise.
14166         * tests/test-utimens-common.h (nap): Update comments.
14167
14168         usleep: new module
14169         * modules/usleep: New file.
14170         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14171         * lib/usleep.c (usleep): Likewise.
14172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14173         * modules/unistd (Makefile.am): Substitute witnesses.
14174         * lib/unistd.in.h (usleep): Add declaration.
14175         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14176         * MODULES.html.sh (Date and time): Likewise.
14177         * modules/usleep-tests (Depends-on): New test.
14178         * tests/test-usleep.c: New file.
14179
14180         chown: work around OpenBSD bug
14181         * lib/chown.c (rpl_chown): Work around the bug.
14182         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14183         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14184         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14185         * modules/chown (Depends-on): Add stdbool.
14186         * modules/lchown (Depends-on): Likewise.
14187         * doc/posix-functions/chown.texi (chown): Document the bug.
14188         * doc/posix-functions/lchown.texi (lchown): Likewise.
14189         * tests/test-lchown.h (test_chown): Relax test.
14190
14191         mkstemp: avoid conflict with C++ keyword template
14192         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14193         * lib/mkostemp.c (mkostemp): Likewise.
14194         * lib/mkostemps.c (mkostemps): Likewise.
14195         * lib/mkstemp.c (mkstemp): Likewise.
14196         * lib/mkstemps.c (mkstemps): Likewise.
14197
14198         xalloc-die-tests: optimize
14199         * tests/test-xalloc-die.sh: Reduce number of processes.
14200
14201 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14202
14203         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14204         patch from ludo@gnu.org (Ludovic Courtès).
14205
14206 2009-11-17  Jim Meyering  <meyering@redhat.com>
14207
14208         version-etc: use proper license string
14209         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14210         * modules/version-etc-fsf: Likewise.
14211
14212 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14213
14214         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14215         printed to stdout.  Deal with EOL differences.
14216
14217 2009-11-17  Eric Blake  <ebb9@byu.net>
14218
14219         unsetenv: work around Solaris bug
14220         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14221         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14222         Reported by Jim Meyering.
14223
14224         vasnprintf: avoid compiler warnings
14225         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14226         variables.
14227         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14228
14229 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14230
14231         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14232         settings since xalloc-die is no longer the self test,
14233         xalloc-die.sh is.
14234
14235 2009-11-17  Jim Meyering  <meyering@redhat.com>
14236
14237         test-xalloc-die.sh: make the code agree with the commit log
14238         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14239         at the end, just in case you happen to have a test-xalloc-die
14240         program in some other PATH directory.
14241
14242         test-xalloc-die.sh: fix a portability bug
14243         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14244         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
14245         Otherwise, argv[0] (as often seen in diagnostics) would be too
14246         system-dependent, sometimes with, and sometimes without the leading "./".
14247
14248         version-etc-fsf: relax license to LGPLv3+
14249         * modules/version-etc-fsf (License): Relax license.
14250
14251 2009-11-16  Eric Blake  <ebb9@byu.net>
14252
14253         xalloc-die-tests: avoid printing null pointer
14254         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
14255         shell script.
14256         * tests/test-xalloc-die.c (program_name): Declare.
14257         * tests/test-xalloc-die.sh (tmpfiles): New file.
14258
14259         setenv, unsetenv: work around various bugs
14260         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
14261         (setenv) [HAVE_SETENV]: Work around bugs.
14262         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
14263         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
14264         for bugs.
14265         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
14266         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
14267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
14268         * modules/stdlib (Makefile.am): Update substitutions.
14269         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
14270         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
14271         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14272         * modules/setenv-tests: New test.
14273         * modules/unsetenv-tests: Likewise.
14274         * tests/test-setenv.c: New file.
14275         * tests/test-unsetenv.c: Likewise.
14276
14277 2009-11-16  Jim Meyering  <meyering@redhat.com>
14278
14279         version-etc: relax license to LGPLv3+
14280         * modules/version-etc (License): Relax license.
14281
14282         better AC_REQUIRE expanded-before-required-warning avoidance
14283         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
14284         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14285         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14286         which is no longer needed.
14287
14288 2009-11-16  Eric Blake  <ebb9@byu.net>
14289
14290         test-freading: clean up temporary file
14291         * tests/test-freading.c (main): Remove file on success, and use
14292         ASSERT more liberally.
14293         Reported by Jim Meyering.
14294
14295 2009-11-16  Jim Meyering  <meyering@redhat.com>
14296
14297         avoid new AC_REQUIRE expanded-before-required warnings
14298         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14299         merely using it.
14300         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14301         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14302
14303 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14304
14305         * tests/test-xalloc-die.c: New file.
14306         * modules/xalloc-die-tests: New file.
14307         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14308         XFAIL_TESTS so it can be appended by modules.
14309
14310 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14311
14312         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14313         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14314
14315 2009-11-14  Eric Blake  <ebb9@byu.net>
14316
14317         fnmatch: avoid compiler warning
14318         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14319         to silence compiler warning about mismatch signedness in ?:.
14320         Reported by Robert Millan.
14321
14322         intprops: add double-inclusion guard
14323         * lib/intprops.h: Allow idempotent includes.
14324         Suggested by Bruce Korb.
14325
14326         openat: detect Solaris fchownat bug
14327         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14328         penalizing glibc chownat when only lchownat is broken.
14329         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14330         trailing slash bugs.
14331         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14332         * modules/openat-tests (Files): Include more files.
14333         (Depends-on): Add mgetgroups, sleep, stat-time.
14334         (configure.ac): Add additional checks.
14335         (Makefile.am): Build new test.
14336         * tests/test-fchownat.c: New file.
14337
14338         lchown: detect Solaris and FreeBSD bug
14339         * lib/lchown.c (rpl_lchown): Work around bug.
14340         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14342         * modules/unistd (Makefile.am): Populate it.
14343         * lib/unistd.in.h (lchown): Update declaration.
14344         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14345         * modules/lchown-tests: New file.
14346         * tests/test-lchown.h (test_lchown): Likewise.
14347         * tests/test-lchown.c (main): Likewise.
14348
14349         chown: detect Solaris and FreeBSD bug
14350         * lib/chown.c (rpl_chown): Work around bug.
14351         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14352         (gl_PREREQ_CHOWN): Delete.
14353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14354         * modules/unistd (Makefile.am): Populate it.
14355         * lib/unistd.in.h (chown): Update declaration.
14356         * lib/lchown.c (chown): Update client.
14357         * modules/lchown (Depends-on): Add lstat.
14358         * doc/posix-functions/chown.texi (chown): Document the bug.
14359         * doc/posix-functions/getgroups.texi (getgroups): Document
14360         getgroups pitfall.
14361         * modules/chown-tests: New file.
14362         * tests/test-chown.h (test_chown): Likewise.
14363         * tests/test-chown.c (main): Likewise.
14364
14365 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14366
14367         gnulib-tool: correctly detect absence of m4 directories
14368         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14369
14370 2009-11-14  Jim Meyering  <meyering@redhat.com>
14371
14372         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14373         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14374
14375 2009-11-14  John W. Eaton  <jwe@gnu.org>
14376
14377         strftime.h: wrap funtion declaration in extern "C" block
14378         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14379
14380 2009-11-13  Eric Blake  <ebb9@byu.net>
14381
14382         getgroups: avoid compiler warning
14383         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14384
14385         getgroups: work around FreeBSD bug
14386         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14387         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14388         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14389         * tests/test-getgroups.c (main): Fix buffer overrun.
14390
14391         getgroups: avoid compilation failure
14392         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14393         * modules/getgroups (Depends-on): Add stdint.
14394
14395 2009-11-13  Jim Meyering  <meyering@redhat.com>
14396
14397         test-getgroups: avoid compilation failure
14398         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14399
14400 2009-11-13  Eric Blake  <ebb9@byu.net>
14401
14402         mgetgroups: new module, taken from coreutils
14403         * modules/mgetgroups: New file.
14404         * lib/mgetgroups.h: Likewise.
14405         * lib/mgetgroups.c (mgetgroups): Likewise.
14406         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14407         * MODULES.html.sh (Users and groups): Mention it.
14408
14409         getgroups: don't expose GETGROUPS_T to user
14410         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14411         an element at a time if GETGROUPS_T is wrong size.
14412         * lib/getugroups.h (getugroups): Change signature.
14413         * lib/unistd.in.h (getgroups): Likewise.
14414         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
14415         signature needs fixing.
14416         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
14417         AC_TYPE_GETGROUPS.
14418         * modules/group-member (Depends-on): Add getgroups.
14419         * lib/group-member.c (group_info, get_group_info): Use gid_t.
14420         (group_member): Rely on getgroups replacement.
14421         * lib/getugroups.c (getugroups): Use gid_t.
14422         * tests/test-getgroups.c (main): Likewise.
14423         * NEWS: Mention the signature change.
14424         * doc/posix-functions/getgroups.texi (getgroups): Mention the
14425         problem with signature.
14426         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
14427         GETGROUPS_T is still useful for setgroups.
14428
14429         getgroups, getugroups: provide stubs for mingw
14430         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
14431         * lib/getugroups.c (getugroups): Likewise.
14432         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
14433         function.  Modernize replacement scheme.
14434         (gl_PREREQ_GETGROUPS): Delete.
14435         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
14436         * modules/getgroups (configure.ac): Declare witness.
14437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14438         * modules/unistd (Depends-on): Substitute witness.
14439         * lib/unistd.in.h (getgroups): Declare replacement.
14440
14441         getgroups: avoid calling exit
14442         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
14443         drop xalloc.
14444         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
14445         dependencies.
14446         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
14447         exiting, in the rare case of malloc failure.
14448
14449         getgroups: fix logic error
14450         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
14451         has more than 20 groups.
14452         * modules/getgroups-tests: New test.
14453         * tests/test-getgroups.c: New file.
14454
14455 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14456
14457         * tests/test-base64.c: Improve.
14458
14459 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14460
14461         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
14462         Blake <ebb9@byu.net>.
14463
14464 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14465
14466         * tests/test-xvasprintf.c: Add %s%s related checks.
14467
14468 2009-11-12  Eric Blake  <ebb9@byu.net>
14469
14470         version-etc: match standards.texi style
14471         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
14472         and use <> only for URLs.
14473
14474 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
14475
14476         fts: do not fail on a submount during traversal
14477         * lib/fts.c (fts_build): Read the stat info again after opening
14478         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
14479         Original report at http://bugzilla.redhat.com/501848.
14480
14481 2009-11-12  Jim Meyering  <meyering@redhat.com>
14482
14483         bootstrap: sync from coreutils
14484         * build-aux/bootstrap (bootstrap_epilogue): New function.
14485         Use git_modules_config in one more place.  This make bootstrap's
14486         --gnulib-srcdir option more useful for testing.
14487
14488         bootstrap: generalize autoheader check
14489         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
14490         AC_CONFIG_HEADERS.
14491
14492 2009-11-11  Eric Blake  <ebb9@byu.net>
14493
14494         mkfifoat: use new modules for Solaris and BSD bugs
14495         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
14496         * lib/mkfifoat.c (mknodat): Split...
14497         * lib/mknodat.c (mknodat): ...into new file.
14498         * modules/mkfifoat (Files): Ship new file.
14499         (Depends-on): Add mkfifo, mknod.
14500         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
14501         (Depends-on): Add symlink.
14502         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
14503         redundant with test_mkfifo.h.
14504         (do_mkfifoat, do_mknodat): New helpers.
14505
14506         mknod: new module
14507         * modules/mknod: New file.
14508         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14509         * lib/mknod.c (mknod): Likewise.
14510         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14511         defaults.
14512         * modules/sys_stat (Makefile.am): Substitute them.
14513         * lib/sys_stat.in.h (mknod): Declare replacement.
14514         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14515         Document it.
14516         * doc/posix-functions/mknod.texi (mknod): Likewise.
14517         * modules/mknod-tests: New test.
14518         * tests/test-mknod.c: Likewise.
14519
14520         mkfifo: new module
14521         * modules/mkfifo: New file.
14522         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14523         * lib/mkfifo.c (mkfifo): Likewise.
14524         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14525         defaults.
14526         * modules/sys_stat (Makefile.am): Substitute them.
14527         * lib/sys_stat.in.h (mkfifo): Declare replacement.
14528         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14529         Document it.
14530         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
14531         * modules/mkfifo-tests: New test.
14532         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
14533         from test-mkfifoat.c.
14534         * tests/test-mkfifo.c: New file.
14535
14536         readlink: detect FreeBSD bug
14537         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
14538         slash on symlink.
14539         * doc/posix-functions/readlink.texi (readlink): Document the bug.
14540         * tests/test-readlink.h (test_readlink): Enhance test.
14541
14542         symlink: detect FreeBSD bug
14543         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
14544         slash on symlink.
14545         * doc/posix-functions/symlink.texi (symlink): Document the bug.
14546         * tests/test-symlink.h (test_symlink): Enhance test.
14547
14548 2009-11-10  Eric Blake  <ebb9@byu.net>
14549
14550         link: detect FreeBSD bug
14551         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
14552         symlink.
14553         * doc/posix-functions/link.texi (link): Document the bug.
14554         * tests/test-link.h (test_link): Enhance test.
14555         * tests/test-linkat.c (main): Update caller.
14556
14557         unlink, remove: detect FreeBSD bug
14558         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
14559         slash on symlink.
14560         * doc/posix-functions/unlink.texi (unlink): Document the bug.
14561         * doc/posix-functions/remove.texi (remove): Likewise.
14562         * tests/test-unlink.h (test_unlink): Enhance test.
14563         * tests/test-remove.c (main): Likewise.
14564
14565 2009-11-09  Eric Blake  <ebb9@byu.net>
14566
14567         rename: detect FreeBSD bug
14568         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
14569         slash on symlink.
14570         * modules/renameat-tests (Depends-on): Add filenamecat.
14571         * tests/test-rename.h (test_rename): Allow one more errno.
14572         * tests/test-renameat.c (main): Likewise.
14573         * doc/posix-functions/rename.texi (rename): Document the bug.
14574
14575         open: detect FreeBSD bug
14576         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
14577         symlink.
14578         * doc/posix-functions/open.texi (open): Document the bug.
14579         * doc/posix-functions/utimes.texi (utimes): Likewise.
14580         * tests/test-open.h (test_open): Add parameters, and test symlink
14581         handling.
14582         * tests/test-open.c (main): Adjust caller.
14583         * tests/test-fcntl-safer.c (main): Likewise.
14584         * modules/open-tests (Depends-on): Add stdbool, symlink.
14585         * modules/fcntl-safer-tests (Depends-on): Likewise.
14586         * tests/test-openat.c (main): Add test-open tests.
14587
14588         stat: detect FreeBSD bug
14589         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
14590         symlink.
14591         * doc/posix-functions/stat.texi (stat): Document the bug.
14592         * tests/test-stat.h (test_stat_func): Add argument.
14593         * tests/test-stat.c (main): Adjust caller.
14594         * tests/test-fstatat.c (main): Likewise.
14595         * modules/stat-tests (Depends-on): Add stdbool, symlink.
14596         Reported by Jim Meyering.
14597
14598 2009-11-09  James Youngman  <jay@gnu.org>
14599
14600         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
14601         * lib/strftime.c: Correct placement of #include "ignore-value.h".
14602
14603 2009-11-08  Jim Meyering  <meyering@redhat.com>
14604
14605         utimens: remove invalid futimesat call
14606         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
14607         It used the file descriptor of the target file as the DIR_FD
14608         parameter and NULL as the file name.  That caused failure with
14609         errno == EFAULT on FreeBSD-8.0-rc2
14610
14611 2009-11-07  Eric Blake  <ebb9@byu.net>
14612
14613         fflush, freadseek: use fseeko, not fseek
14614         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14615         (clear_ungetc_buffer): Avoid potential problems on large files.
14616         * lib/freadseek.c (freadseek): Likewise.
14617         * modules/freadseek (Depends-on): Add fseeko.
14618         * modules/fseek (configure.ac): Set a witness.
14619         * tests/test-fflush.c (main): Use fseeko.
14620         * tests/test-fpurge.c (fseek): Disable link warning.
14621         * tests/test-freadable.c (fseek): Likewise.
14622         * tests/test-freading.c (fseek): Likewise.
14623         * tests/test-fseeko.c (fseek): Likewise.
14624         * tests/test-ftell.c (fseek): Likewise.
14625         * tests/test-ftello.c (fseek): Likewise.
14626         * tests/test-fwritable.c (fseek): Likewise.
14627         * tests/test-fwriting.c (fseek): Likewise.
14628
14629 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14630
14631         * modules/memchr (Depends-on): Drop getpagesize dependency.
14632
14633 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14634
14635         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
14636         Reported by Ludovic Courtès.
14637         * build-aux/pmccabe2html: Improve example usage.
14638         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
14639
14640 2009-11-06  Jim Meyering  <meyering@redhat.com>
14641
14642         do-release-commit-and-tag: New module.
14643         Automate the release-commit and tag process.
14644         * build-aux/do-release-commit-and-tag: New script, from coreutils.
14645         * modules/do-release-commit-and-tag: New file.
14646         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14647
14648 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14649
14650         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
14651         because test-select.c uses inet_pton.
14652
14653 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14654
14655         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
14656         GETADDRINFO_LIB.  Bump serial number.
14657         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
14658         Suggested by Eric Blake <ebb9@byu.net>.
14659
14660 2009-11-05  Eric Blake  <ebb9@byu.net>
14661
14662         strtod: detect darwin bug
14663         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
14664         Reported by Leo Davis.
14665
14666         freopen-safer: new module
14667         * modules/freopen-safer: New module.
14668         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
14669         * lib/freopen-safer.c (freopen_safer): New file.
14670         * lib/stdio-safer.h (freopen_safer): New declaration.
14671         * lib/stdio--.h (freopen): New override.
14672         * MODULES.html.sh (File stream based Input/Output): Mention it.
14673         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
14674         freopen-safer module.
14675         * doc/posix-functions/stderr.texi (stderr): Likewise.
14676         * doc/posix-functions/stdin.texi (stdin): Likewise.
14677         * doc/posix-functions/stdout.texi (stdout): Likewise.
14678         * modules/freopen-safer-tests: New test.
14679         * tests/test-reopen-safer.c: New file.
14680
14681 2009-11-05  Jim Meyering  <meyering@redhat.com>
14682
14683         maint.mk: Prohibit inclusion of "close-stream.h" without use.
14684         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14685
14686 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14687
14688         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
14689
14690 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14691
14692         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
14693
14694 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14695
14696         Fix link error.
14697         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14698         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14699
14700 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14701
14702         * tests/test-func.c: Also test value of __func__.
14703
14704 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14705
14706         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
14707         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
14708
14709 2009-11-05  Bruno Haible  <bruno@clisp.org>
14710
14711         Fix link error.
14712         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14713         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14714         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
14715
14716 2009-11-05  Bruno Haible  <bruno@clisp.org>
14717
14718         Tests for module 'inet_pton'.
14719         * modules/inet_pton-tests: New file.
14720         * tests/test-inet_pton.c: New file.
14721
14722 2009-11-05  Bruno Haible  <bruno@clisp.org>
14723
14724         Tests for module 'inet_ntop'.
14725         * modules/inet_ntop-tests: New file.
14726         * tests/test-inet_ntop.c: New file.
14727
14728 2009-11-04  Eric Blake  <ebb9@byu.net>
14729
14730         stdlib-safer: wrap all mkstemp variants
14731         * modules/mkostemp (configure.ac): Set witness.
14732         * modules/mkostemps (configure.ac): Likewise.
14733         * modules/mkstemps (configure.ac): Likewise.
14734         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
14735         (mkstemps_safer): Wrap more functions.
14736         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
14737         wrapping.
14738         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
14739         (mkstemps_safer): Implement the wrappers.
14740
14741         mkstemps, mkostemps: new modules
14742         * modules/mkostemps: New module.
14743         * modules/mkstemps: Likewise.
14744         * lib/mkostemps.c (mkostemps): New file.
14745         * lib/mkstemps.c (mkstemps): Likewise.
14746         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
14747         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
14748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
14749         * modules/stdlib (Makefile.am): Substitute them.
14750         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
14751         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
14752         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14753         * doc/gnulib.texi (Glibc stdlib.h): Include them.
14754         * MODULES.html.sh (File system functions): Mention them.
14755
14756         tempname: resync from glibc
14757         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
14758         same values for __GT_FILE as glibc.  Abort even when assertions
14759         are disabled.
14760         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
14761         match its value otherwise.  Allow idempotent inclusion.
14762         * lib/mkdtemp.c (mkdtemp): Adjust caller.
14763         * lib/mkostemp.c (mkostemp): Likewise.
14764         * lib/mkstemp.c (mkstemp): Likewise.
14765         * lib/tmpfile.c (tmpfile): Likewise.
14766         * NEWS: Document this.
14767
14768         utimens: fix use of futimens on older Linux
14769         * lib/utimens.c (fdutimens): Use updated, rather than original,
14770         timespec to avoid bug in older Linux kernel.
14771         Reported by Simon Josefsson.
14772
14773 2009-11-04  Bruno Haible  <bruno@clisp.org>
14774
14775         Make num_processors more flexible and consistent.
14776         * lib/nproc.h (enum nproc_query): New type.
14777         (num_processors): Add a 'query' argument.
14778         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
14779         (num_processors): Add a 'query' argument. Test the value of the
14780         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
14781         mingw, count the number of CPUs available for the current process.
14782         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
14783         Check for sched_getaffinity and sched_getaffinity_np.
14784         * modules/nproc (Depends-on): Add c-ctype, extensions.
14785         * NEWS: Mention the change.
14786
14787 2009-11-03  Bruno Haible  <bruno@clisp.org>
14788
14789         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
14790
14791 2009-11-03  Jim Meyering  <meyering@redhat.com>
14792
14793         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
14794         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
14795         if it is defined.
14796
14797 2009-11-02  Eric Blake  <ebb9@byu.net>
14798
14799         mktime, timegm: share common declaration
14800         * lib/mktime-internal.h: New file.
14801         * lib/mktime.c: Use it rather than open-coding a declaration.
14802         * lib/timegm.c: Likewise.
14803         * modules/mktime (Files): Ship it.
14804         * modules/timegm (Files): Likewise.
14805         Suggested by Bruno Haible.
14806
14807         test-update-copyright: update test to match script changes
14808         * tests/test-update-copyright.sh: Avoid hard-coding perl
14809         location.  Don't update *.bak created by earlier runs.
14810
14811 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14812             Simon Josefsson  <simon@josefsson.org>
14813             Bruno Haible  <bruno@clisp.org>
14814
14815         Fix link error on Solaris 8.
14816         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
14817         also in libnsl. Define also INET_PTON_LIB.
14818         * modules/inet_pton (Link): New section.
14819
14820 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14821             Bruno Haible  <bruno@clisp.org>
14822
14823         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
14824         * modules/inet_ntop (Link): New section.
14825         Reported by Boyan Kasarov <bkasarov@gmail.com>.
14826
14827 2009-11-02  Eric Blake  <ebb9@byu.net>
14828
14829         maint: avoid compiler warnings in m4 macros
14830         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
14831         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
14832
14833 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14834
14835         * m4/pmccabe2html.m4: Remove file.
14836         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
14837         function.  Change maintainer.
14838         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
14839         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
14840         Courtès).
14841
14842 2009-10-31  Eric Blake  <ebb9@byu.net>
14843
14844         fseeko: fix m4 regression
14845         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
14846         regression from 2009-10-27.
14847         Reported by Ralf Wildenhues.
14848
14849 2009-10-31  Jim Meyering  <meyering@redhat.com>
14850
14851         inttostr: aesthetics and improved (compile-time) safety
14852         Define inttype_is_signed rather than inttype_is_unsigned,
14853         since the sole use is via "#if inttype_is_signed".
14854         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
14855         inttype_is_unsigned.
14856         * lib/offtostr.c (inttype_is_signed): Likewise.
14857         * lib/uinttostr.c (inttype_is_signed): Likewise.
14858         * lib/umaxtostr.c (inttype_is_signed): Likewise.
14859         * lib/inttostr.c (inttostr): Use verify to cross-check the
14860         inttype_is_signed value and the signedness of the actual type.
14861         * modules/inttostr (Depends-on): Add verify.
14862
14863 2009-10-30  Eric Blake  <ebb9@byu.net>
14864
14865         build: avoid compiler warnings
14866         * lib/fchmodat.c (lchmod): Mark unused variables.
14867         * lib/getopt.c (_getopt_initialize): Likewise.
14868         * lib/mktime.c (__mktime_internal): Provide prototype.
14869         * lib/inttostr.c (inttostr): Avoid compiler warning even with
14870         older gcc that do not understand #pragma GCC diagnostic.
14871         * lib/uinttostr.c (inttype_is_unsigned): Define.
14872         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
14873
14874 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14875
14876         stat: fix compilation on AIX
14877         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
14878         only see struct stat64.
14879
14880 2009-10-30  Eric Blake  <ebb9@byu.net>
14881
14882         exclude: make more robust
14883         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
14884         rather than masking a coding bug.
14885         Suggested by Bruno Haible.
14886
14887 2009-10-30  Jim Meyering  <meyering@redhat.com>
14888
14889         perl scripts: remove #!/usr/bin/perl in favor of more portable...
14890         Rather than putting #!/usr/bin/perl on the first line,
14891         start with a variant of what's recommended by "man perlrun" that
14892         invokes the first "perl" program from your shell's search path.
14893         * build-aux/gitlog-to-changelog: Replace #!... as above.
14894         Add a "Local Variables" perl mode setting.
14895         Prompted by a patch from Ludovic Courtès.
14896         Improved by Eric Blake.
14897         * build-aux/useless-if-before-free: Likewise.
14898         * build-aux/announce-gen: Likewise.
14899         * build-aux/update-copyright: Likewise.
14900
14901 2009-10-29  Eric Blake  <ebb9@byu.net>
14902
14903         filenamecat-lgpl: adjust clients
14904         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
14905         filenamecat.
14906         * modules/renameat (Depends-on): Likewise.
14907
14908         filenamecat: split into filenamecat-lgpl
14909         * modules/filenamecat-lgpl: New module.
14910         * modules/filenamecat (Files): Move library-safe files into
14911         filenamecat-lgpl.
14912         (Depends-on): Add filenamecat-lgpl.
14913         (configure.ac): Declare witness.
14914         * lib/filenamecat.h (file_name_concat): Only declare when using
14915         GPL module.
14916         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
14917         Move...
14918         * lib/filenamecat-lgpl.c: ...into new file.
14919         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
14920         (gl_FILE_NAME_CONCAT): Use it.
14921         * MODULES.html.sh (File system functions): Mention new module.
14922
14923         argp: avoid memory leak
14924         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
14925         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
14926         base_name, since the latter malloc()s and can call exit().
14927         Leak introduced 2006-07-03.
14928
14929         dirname-lgpl: adjust clients that don't need full dirname
14930         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
14931         * modules/filenamecat (Depends-on): Likewise.
14932         * modules/linkat (Depends-on): Likewise.
14933         * modules/mkancesdirs (Depends-on): Likewise.
14934         * modules/mkdir (Depends-on): Likewise.
14935         * modules/openat (Depends-on): Likewise.
14936         * modules/savewd (Depends-on): Likewise.
14937         * modules/rename (Depends-on): Likewise.
14938         (License): Relax license.
14939         * modules/mkdir-tests (Depends-on): Drop progname.
14940         (Makefile.am): Delete unneeded LDADD.
14941         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
14942
14943         dirname: split into dirname-lgpl
14944         * modules/dirname-lgpl: New module.
14945         * modules/dirname (Files): Move library-safe files into
14946         dirname-lgpl.
14947         (Depends-on): Add dirname-lgpl.
14948         (configure.ac): Declare witness.
14949         * modules/double-slash-root (License): Relax license.
14950         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
14951         module.
14952         * lib/dirname.c (dir_len, mdir_name): Move...
14953         * lib/dirname-lgpl.c: ...into new file.
14954         * lib/basename.c (last_component, base_len): Move...
14955         * lib/basename-lgpl.c: ...into new file.
14956         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
14957         (gl_DIRNAME): Use it.
14958         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
14959         Mention new module.
14960         * modules/dirname-tests (Depends-on): Add progname.
14961         * tests/test-dirname.c (program_name): Delete.
14962
14963         mkdir: make safe for libraries
14964         * modules/mkdir (Depends-on): Drop xalloc.
14965         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
14966         exit.
14967
14968         tests: avoid some compiler warnings
14969         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
14970         literals.
14971         * tests/test-memchr.c (main): Avoid type mismatch.
14972         * tests/test-arpa_inet.c (main): Avoid unused parameters.
14973         * tests/test-base64.c (main): Likewise.
14974         * tests/test-getdelim.c (main): Likewise.
14975         * tests/test-gethostname.c (main): Likewise.
14976         * tests/test-getline.c (main): Likewise.
14977         * tests/test-netinet_in.c (main): Likewise.
14978         * tests/test-select.c (open_server_socket, main): Likewise.
14979         * tests/test-select-stdin.c (main): Likewise.
14980         * tests/test-sockets.c (main): Likewise.
14981         * tests/test-strsignal.c (main): Likewise.
14982         * tests/test-sys_select.c (main): Likewise.
14983         * tests/test-sys_socket.c (main): Likewise.
14984         * tests/test-u64.c (main): Likewise.
14985         * tests/test-xfprintf-posix.c (main): Likewise.
14986         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
14987
14988         sockets: avoid compiler warning
14989         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
14990
14991         maint: detect usage(1) and other suspicious exits
14992         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
14993
14994 2009-10-29  Jim Meyering  <meyering@redhat.com>
14995
14996         timespec: long-to-int truncation could make timespec_cmp malfunction
14997         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
14998         a multiple of 2^32 nanoseconds as no difference.
14999
15000 2009-10-28  Jim Meyering  <meyering@redhat.com>
15001
15002         fprintftime: wrap macro code argument in "do {...} while(0)"
15003         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15004         cpy macro must be a statement that can be followed by a semicolon.
15005         Now that the else clause contains a comment and is hence longer
15006         than one line, I require curly braces.  That in turn requires
15007         that we wrap this code block in the standard do...while(0).
15008
15009         fprintftime: remove stray semicolon from previous change
15010         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15011
15012         fprintftime: avoid a warning about ignored fwrite return value
15013         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15014         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15015         that is unsafe.
15016         * modules/fprintftime (Depends-on): Add ignore-value.
15017
15018         exclude: avoid an unwarranted warning
15019         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15020
15021 2009-10-27  Eric Blake  <ebb9@byu.net>
15022
15023         fseek: avoid compilation failure when fflush is replaced
15024         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15025         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15026         module is in use.
15027         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15028         module is not in use; since REPLACE_FSEEK worked otherwise.
15029         (GNULIB_FTELLO): Likewise for ftell.
15030         Reported by Ian Beckwith and others.
15031
15032 2009-10-27  Bruno Haible  <bruno@clisp.org>
15033
15034         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15035         Reported by Jim Meyering.
15036
15037 2009-10-27  Jim Meyering  <jim@meyering.net>
15038             Bruno Haible  <bruno@clisp.org>
15039
15040         Avoid warning despite dropping the return value of fwrite.
15041         * lib/unicodeio.c: Include ignore-value.h.
15042         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15043         * modules/unicodeio (Depends-on): Add ignore-value.
15044
15045 2009-10-26  Eric Blake  <ebb9@byu.net>
15046
15047         areadlinkat: fix fallback path
15048         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15049         pointer and zero.
15050
15051 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15052
15053         Use a better IO block size for modern systems
15054         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15055         * lib/md2.c: Likewise.
15056         * lib/md4.c: Likewise.
15057         * lib/md5.c: Likewise.
15058         * lib/sha1.c: Likewise.
15059         * lib/sha256.c: Likewise.
15060         * lib/sha512.c: Likewise.
15061
15062 2009-10-22  Eric Blake  <ebb9@byu.net>
15063
15064         tests: avoid several compiler warnings
15065         * tests/test-getcwd.c (main): Avoid buffer underflow.
15066         * tests/test-getdate.c (main): String literals are not safe with
15067         putenv, so use setenv.  Declare unused argument.
15068         * modules/getdate-tests (Depends-on): Add setenv.
15069         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15070         problems with string literals in char *.
15071         * tests/test-hash.c (main): Avoid shadowing declaration.
15072         (insert_new): Treat string literals as char const *.
15073         * tests/test-getopt.h (test_getopt): Likewise.
15074         (getopt_loop): Alter types to minimize casting elsewhere.
15075         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15076         (test_getopt_long_posix): Likewise.
15077         (do_getopt_long): Add wrapper to minimize casting.
15078         * tests/test-atexit.c (clear_temp_file): Use void.
15079         * tests/test-areadlink-with-size.c (main): Declare unused
15080         arguments.
15081         * tests/test-areadlink.c (main): Likewise.
15082         * tests/test-areadlinkat-with-size.c (main): Likewise.
15083         * tests/test-areadlinkat.c (main): Likewise.
15084         * tests/test-canonicalize-lgpl.c (main): Likewise.
15085         * tests/test-canonicalize.c (main): Likewise.
15086         * tests/test-dirent-safer.c (main): Likewise.
15087         * tests/test-dirname.c (main): Likewise.
15088         * tests/test-dup2.c (main): Likewise.
15089         * tests/test-fchdir.c (main): Likewise.
15090         * tests/test-fcntl-h.c (main): Likewise.
15091         * tests/test-fcntl-safer.c (main): Likewise.
15092         * tests/test-fdopendir.c (main): Likewise.
15093         * tests/test-fdutimensat.c (main): Likewise.
15094         * tests/test-fflush.c (main): Likewise.
15095         * tests/test-filenamecat.c (main): Likewise.
15096         * tests/test-filevercmp.c (main): Likewise.
15097         * tests/test-fopen-safer.c (main): Likewise.
15098         * tests/test-fopen.c (main): Likewise.
15099         * tests/test-fpending.c (main): Likewise.
15100         * tests/test-fpurge.c (main): Likewise.
15101         * tests/test-freading.c (main): Likewise.
15102         * tests/test-fstatat.c (main): Likewise.
15103         * tests/test-fsync.c (main): Likewise.
15104         * tests/test-futimens.c (main): Likewise.
15105         * tests/test-getndelim2.c (main): Likewise.
15106         * tests/test-gettimeofday.c (main): Likewise.
15107         * tests/test-getopt.c (main): Likewise.
15108         * tests/test-i-ring.c (main): Likewise.
15109         * tests/test-inttypes.c (main): Likewise.
15110         * tests/test-link.c (main): Likewise.
15111         * tests/test-lstat.c (main): Likewise.
15112         * tests/test-math.c (main): Likewise.
15113         * tests/test-md5.c (main): Likewise.
15114         * tests/test-memchr2.c (main): Likewise.
15115         * tests/test-memrchr.c (main): Likewise.
15116         * tests/test-mkdir.c (main): Likewise.
15117         * tests/test-mkdirat.c (main): Likewise.
15118         * tests/test-mkfifoat.c (main): Likewise.
15119         * tests/test-open.c (main): Likewise.
15120         * tests/test-openat-safer.c (main): Likewise.
15121         * tests/test-openat.c (main): Likewise.
15122         * tests/test-quotearg.c (main): Likewise.
15123         * tests/test-rawmemchr.c (main): Likewise.
15124         * tests/test-readlink.c (main): Likewise.
15125         * tests/test-remove.c (main): Likewise.
15126         * tests/test-rename.c (main): Likewise.
15127         * tests/test-renameat.c (main): Likewise.
15128         * tests/test-rmdir.c (main): Likewise.
15129         * tests/test-sha1.c (main): Likewise.
15130         * tests/test-signal.c (main): Likewise.
15131         * tests/test-sigaction.c (main): Likewise.
15132         * tests/test-stat.c (main): Likewise.
15133         * tests/test-stat-time.c (main): Likewise.
15134         * tests/test-stddef.c (main): Likewise.
15135         * tests/test-stdint.c (main): Likewise.
15136         * tests/test-stdio.c (main): Likewise.
15137         * tests/test-stdlib.c (main): Likewise.
15138         * tests/test-strchrnul.c (main): Likewise.
15139         * tests/test-strerror.c (main): Likewise.
15140         * tests/test-string.c (main): Likewise.
15141         * tests/test-strtod.c (main): Likewise.
15142         * tests/test-strverscmp.c (main): Likewise.
15143         * tests/test-symlink.c (main): Likewise.
15144         * tests/test-symlinkat.c (main): Likewise.
15145         * tests/test-sys_stat.c (main): Likewise.
15146         * tests/test-sys_time.c (main): Likewise.
15147         * tests/test-time.c (main): Likewise.
15148         * tests/test-unistd.c (main): Likewise.
15149         * tests/test-unlink.c (main): Likewise.
15150         * tests/test-unlinkat.c (main): Likewise.
15151         * tests/test-utimens.c (main): Likewise.
15152         * tests/test-utimensat.c (main): Likewise.
15153         * tests/test-version-etc.c (main): Likewise.
15154         * tests/test-wchar.c (main): Likewise.
15155         * tests/test-wctype.c (main): Likewise.
15156         * tests/test-xprintf-posix.c (main): Likewise.
15157         * tests/test-posixtm.c (main): Likewise.
15158         (STREQ): Delete unused macro.
15159         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15160         shadowed variables.
15161         * tests/test-memchr.c (main): Likewise.
15162
15163 2009-10-21  Eric Blake  <ebb9@byu.net>
15164
15165         areadlinkat: avoid failure on older glibc
15166         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15167         rather than mis-comparing 0 against FUNC_RESULT of char*.
15168
15169 2009-10-21  Bruno Haible  <bruno@clisp.org>
15170
15171         * modules/stpncpy (License): Relicense under LGPLv2+.
15172         Reported by David Lutterkort <lutter@redhat.com>.
15173
15174 2009-10-20  Eric Blake  <ebb9@byu.net>
15175
15176         utimensat: work around Solaris 9 bug
15177         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15178         has trailing slash bugs.
15179         * tests/test-lutimens.h (test_lutimens): Enhance test.
15180         * tests/test-utimens.h (test_utimens): Likewise.
15181         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15182         * doc/posix-functions/utimes.texi (utimes): Likewise.
15183         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15184         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15185         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15186         * doc/posix-functions/futimens.texi (futimens): Likewise.
15187
15188         fdutimensat: new module
15189         * modules/fdutimensat: New file.
15190         * lib/fdutimensat.c (fdutimensat): Likewise.
15191         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15192         * MODULES.html.sh (File system functions): Mention module.
15193         * modules/fdutimensat-tests: New test.
15194         * tests/test-fdutimensat.c: Likewise.
15195
15196         doc: regenerate INSTALL
15197         * doc/INSTALL: Reflect recent autoconf update.
15198         * doc/INSTALL.ISO: Likewise.
15199         * doc/INSTALL.UTF-8: Likewise.
15200
15201 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15202
15203         acl: warn if ACL support is not detected
15204         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15205
15206 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15207
15208         * lib/nproc.h: Add extern "C" block for C++.
15209
15210 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15211             Bruno Haible  <bruno@clisp.org>
15212
15213         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15214         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15215         * doc/posix-functions/isalpha.texi: Likewise.
15216         * doc/posix-functions/isblank.texi: Likewise.
15217         * doc/posix-functions/iscntrl.texi: Likewise.
15218         * doc/posix-functions/isdigit.texi: Likewise.
15219         * doc/posix-functions/isgraph.texi: Likewise.
15220         * doc/posix-functions/islower.texi: Likewise.
15221         * doc/posix-functions/isprint.texi: Likewise.
15222         * doc/posix-functions/ispunct.texi: Likewise.
15223         * doc/posix-functions/isspace.texi: Likewise.
15224         * doc/posix-functions/isupper.texi: Likewise.
15225         * doc/posix-functions/isxdigit.texi: Likewise.
15226
15227 2009-10-18  Bruno Haible  <bruno@clisp.org>
15228
15229         Tests for module 'isblank'.
15230         * modules/isblank-tests: New file.
15231         * tests/test-isblank.c: New file.
15232
15233         New module 'isblank'.
15234         * lib/isblank.c: New file.
15235         * m4/isblank.m4: New file.
15236         * modules/isblank: New file.
15237         * doc/posix-functions/isblank.texi: Mention the new module.
15238
15239 2009-10-18  Bruno Haible  <bruno@clisp.org>
15240
15241         New module 'ctype'.
15242         * lib/ctype.in.h: New file.
15243         * m4/ctype.m4: New file.
15244         * modules/ctype: New file.
15245         * doc/posix-headers/ctype.texi: Mention the new module.
15246
15247 2009-10-18  Jim Meyering  <meyering@redhat.com>
15248
15249         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
15250         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
15251         right after its initialization, rather than farther down.
15252         Keeping these in close proximity makes it easier to ensure
15253         that each such variable is initialized.  E.g.,
15254
15255             LIB_CLOCK_GETTIME=
15256             AC_SUBST([LIB_CLOCK_GETTIME])
15257
15258         This change also increments these serial numbers.
15259         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
15260         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15261         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15262
15263 2009-10-18  Bruno Haible  <bruno@clisp.org>
15264
15265         Don't let environment variables perturb build.
15266         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
15267         (gl_PREREQ_GETHRXTIME): ... not here.
15268
15269 2009-10-18  Bruno Haible  <bruno@clisp.org>
15270
15271         Avoid symlink attack in localcharset module.
15272         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
15273         (O_NOFOLLOW): Define fallback.
15274         (get_charset_aliases): Don't open the file if it is a symbolic link.
15275         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
15276         gl_FCNTL_H.
15277         (gl_FCNTL_H): Require it.
15278         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
15279         * modules/localcharset (Files): Add m4/fcntl_h.m4.
15280         Reported by Fergal Glynn <fglynn@veracode.com>.
15281
15282 2009-10-18  Bruno Haible  <bruno@clisp.org>
15283
15284         Implement nproc for mingw.
15285         * lib/nproc.c: Include <windows.h>
15286         (num_processors): On native Windows platforms, try GetSystemInfo.
15287
15288 2009-10-18  Bruno Haible  <bruno@clisp.org>
15289
15290         Implement nproc for IRIX.
15291         * lib/nproc.c: Include <sys/sysmp.h>.
15292         (num_processors): On IRIX systems, try sysmp.
15293         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15294
15295 2009-10-18  Bruno Haible  <bruno@clisp.org>
15296
15297         Implement nproc for HP-UX.
15298         * lib/nproc.c: Include <sys/pstat.h>
15299         (num_processors): On HP-UX systems, try pstat_getdynamic.
15300         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15301         pstat_getdynamic.
15302
15303 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15304             Bruno Haible  <bruno@clisp.org>
15305
15306         Implement nproc for NetBSD, OpenBSD.
15307         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15308         (ARRAY_SIZE): New macro.
15309         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15310         * m4/nproc.m4: New file.
15311         * modules/nproc (Files): Add m4/nproc.m4.
15312         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15313         (Makefile.am): Instead, augment lib_SOURCES.
15314
15315 2009-10-18  Bruno Haible  <bruno@clisp.org>
15316
15317         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15318         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15319         sys/param.h.
15320
15321 2009-10-16  Eric Blake  <ebb9@byu.net>
15322
15323         utimensat: new module
15324         * modules/utimensat: New file.
15325         * lib/utimensat.c (utimensat): Likewise.
15326         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15327         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15328         so we can work around Linux bugs.
15329         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15330         * modules/sys_stat (Makefile.am): Substitute them.
15331         * lib/sys_stat.in.h (utimensat): Declare it.
15332         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15333         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15334         * modules/utimensat-tests: New test.
15335         * tests/test-utimensat.c: Likewise.
15336
15337         utimens: let lutimens work on non-symlinks
15338         * lib/utimens.c (lutimens): Fall back to utimens rather than
15339         failing with ENOSYS, when file is not a symlink.
15340         (utimens): Reduce redirection.
15341         * tests/test-lutimens.h (test_lutimens): Update test to cover
15342         non-symlinks.
15343         * tests/test-utimens.h (test_utimens): Update test to cover
15344         symlinks.
15345         * tests/test-utimens.c (main): Update caller.
15346
15347         utimens: cache whether utimensat syscall works
15348         * lib/utimens.c (utimensat_works_really): New cache variable.
15349         (fdutimens, lutimens): Use it to avoid failing syscall.
15350
15351         test-stat-time, test-utimens: improve portability
15352         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15353         ext4 on alpha, and for cygwin.
15354         * tests/test-utimens-common.h: New file.
15355         (nap): Factor delays into single function.
15356         * tests/test-lutimens.h (test_lutimens): Use new header.
15357         * tests/test-futimens.h (test_futimens): Likewise.
15358         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15359         timestamps to occur from same machine, as was done previously for
15360         test_utimens.
15361         * modules/utimens-tests (Files): Ship new file.
15362         * modules/futimens-tests (Files): Likewise.
15363         Reported in part by Jim Meyering.
15364
15365         sys_stat: sort replacement declarations
15366         * lib/sys_stat.in.h: Sort declarations.
15367         * lib/futimens.c (futimens): Fix typo.
15368
15369 2009-10-15  Jim Meyering  <meyering@redhat.com>
15370
15371         don't let environment settings perturb build
15372         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15373         could cause a configure-time and/or build-time malfunction.
15374         Typically, a configure-time function-in-library test is performed
15375         via code like this:
15376
15377           LIB_VAR=
15378           AC_SUBST([LIB_VAR])
15379           prefix_saved_LIBS=$LIBS
15380             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15381                        [test "$ac_cv_search_FUNC" = "none required" ||
15382                         LIB_VAR=$ac_cv_search_FUNC])
15383           LIBS=$prefix_saved_LIBS
15384
15385         However, in each of the files affected by this change, the LIB_VAR=
15386         initialization was omitted.  Thus, when set in the environment, its
15387         value would propagate into generated Makefiles when FUNC is not found
15388         in LIB_NAME.
15389         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15390         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15391         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15392
15393 2009-10-14  Eric Blake  <ebb9@byu.net>
15394
15395         fchdir: avoid infinite recursion in mingw
15396         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15397         recursing.
15398
15399         test-stat-time: port to mingw
15400         * tests/test-stat-time.c (force_unlink): Return a value.
15401         (test_ctime) [W32]: Fix compilation error.
15402         (nap): Don't call usleep with too large an argument.  Use
15403         force_unlink.
15404         * doc/pastposix-functions/usleep.texi (usleep): Document the
15405         portability issue.
15406
15407 2009-10-13  Jim Meyering  <meyering@redhat.com>
15408
15409         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15410         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15411         * modules/pipe-filter-ii: Likewise.
15412         * modules/sys_socket-tests: Likewise.
15413         * modules/tsearch-tests: Likewise.
15414         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
15415         (check): Depend on it.
15416
15417 2009-10-12  Eric Blake  <ebb9@byu.net>
15418
15419         utimens-tests: port to NFS file systems
15420         * tests/test-utimens.h (test_utimens): Refactor utimecmp
15421         comparisons to avoid spurious failures from timestamp drift
15422         between NFS machines.
15423
15424 2009-10-12  Eric Blake  <ebb9@byu.net>
15425
15426         stat-time-tests: minor cleanups
15427         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
15428         * tests/test-stat-time.c (nap): Separate assignment from call.
15429         Suggested by Paolo Bonzini and Bruno Haible.
15430
15431         sys_stat: guarantee struct timespec
15432         * lib/sys_stat.in.h (includes): Always include <time.h>
15433         * modules/sys_stat (Depends-on): Add time.
15434         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
15435         mode_t permission values.
15436         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
15437         get at subsecond timestamps.
15438
15439 2009-10-10  Eric Blake  <ebb9@byu.net>
15440
15441         futimens: new module
15442         * modules/futimens: New file.
15443         * lib/futimens.c (futimens): Likewise.
15444         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
15445         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
15446         we can work around Linux bugs.
15447         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15448         * modules/sys_stat (Makefile.am): Substitute them.
15449         * lib/sys_stat.in.h (futimens): Declare it.
15450         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15451         * doc/posix-functions/futimens.texi (futimens): Likewise.
15452         * modules/futimens-tests: New test.
15453         * tests/test-futimens.c: Likewise.
15454
15455         utimens: introduce fdutimens
15456         * lib/utimens.h (fdutimens): New prototype.
15457         * lib/utimens.c (gl_futimens): Move guts...
15458         (fdutimens): ...to new interface.
15459         * tests/test-utimens.c (do_fdutimens): Use it.
15460
15461         utimens: add UTIME_NOW and UTIME_OMIT support
15462         * lib/utimens.c (validate_timespec, update_timespec): New helper
15463         functions.
15464         (gl_futimens, lutimens): Use them.
15465         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
15466         stdbool, sys_stat.
15467         (Link): Mention resulting library dependency.
15468         * modules/utimecmp (Link): Likewise.
15469         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
15470         (Makefile.am): Pick up library dependency.
15471         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
15472         definition.
15473         * tests/test-sys_stat.c: Test the definitions.
15474         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
15475         * NEWS: Document library dependency.
15476
15477         utimecmp: support symlink timestamps
15478         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
15479         hashing when possible.  Use pathconf when available.
15480         (SYSCALL_RESOLUTION): Recognize tighter resolution.
15481         * modules/utimecmp (Depends-on): Add lstat.
15482
15483         utimens: add lutimens interface
15484         * lib/utimens.c (lutimens): New function.
15485         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
15486         * lib/utimens.h (lutimens): Declare new interface.
15487         * tests/test-utimens.c (main): Enhance test.
15488         * tests/test-lutimens.h (test_lutimens): New file.
15489         * modules/utimens-tests (Files): Distribute it.
15490         (Depends-on): Add symlink.
15491         (configure.ac): Check for usleep.
15492
15493         utimens: validate futimens usage
15494         * lib/utimens.c (gl_futimens): Require valid fd up front, using
15495         fewer syscalls on failure later on.  Avoid compiler warning on
15496         mingw.
15497         * modules/utimens (Depends-on): Add dup2.
15498
15499         utimens: add test
15500         * modules/utimens-tests: New test.
15501         * tests/test-utimens.h: New file.
15502         * tests/test-futimens.h: Likewise.
15503         * tests/test-utimens.c: Likewise.
15504
15505         doc: mention timestamp portability issues
15506         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
15507         instead.
15508         * doc/posix-functions/utime.texi (utime): Likewise.
15509         * doc/posix-functions/utimes.texi (utimes): Likewise.
15510         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
15511         instead.
15512         * doc/posix-functions/futimens.texi (futimens): Mention utimens
15513         module.
15514         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15515         Mention weakness with symlink timestamps.
15516         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
15517         to utimensat/futimens instead.
15518         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
15519
15520         test-dup2: enhance test
15521         * tests/test-dup2.c (main): Also check AT_FDCWD.
15522
15523         test-stat-time: avoid more spurious failures
15524         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
15525         xfs; and avoid race if the two timestamps cross quantization edge.
15526
15527         relocatable: prefer 'file system' over 'filesystem'
15528         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
15529         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
15530         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
15531         * doc/relocatable.texi (Enabling Relocatability): Likewise.
15532         * lib/relocatable.c (compute_curr_prefix): Likewise.
15533
15534 2009-10-10  Jim Meyering  <meyering@redhat.com>
15535
15536         stat-time-tests: check for the usleep function
15537         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
15538
15539 2009-10-10  Bruno Haible  <bruno@clisp.org>
15540
15541         * modules/xnanosleep: Put the Link section after the Include section.
15542
15543 2009-10-09  Eric Blake  <ebb9@byu.net>
15544
15545         dup2: work around FreeBSD 6.1 bug
15546         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
15547         * doc/posix-functions/dup2.texi (dup2): Document it.
15548         Reported by Nelson H. F. Beebe and Jim Meyering.
15549
15550         test-stat-time: port to buggy NFS clients
15551         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
15552         (test_ctime): Also skip test if mtime and ctime are skewed.
15553
15554         maint: prefer 'file system' over 'filesystem'
15555         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15556         * doc/posix-functions/lstat.texi (lstat): Likewise.
15557         * lib/file-has-acl.c (file_has_acl): Likewise.
15558         * lib/fwriteerror.c [TEST]: Likewise.
15559         * tests/test-areadlink.h (test_areadlink): Likewise.
15560         * tests/test-areadlinkat-with-size.c (main): Likewise.
15561         * tests/test-areadlinkat.c (main): Likewise.
15562         * tests/test-canonicalize-lgpl.c (main): Likewise.
15563         * tests/test-canonicalize.c (main): Likewise.
15564         * tests/test-fstatat.c (main): Likewise.
15565         * tests/test-linkat.c (main): Likewise.
15566         * tests/test-lstat.h (test_lstat_func): Likewise.
15567         * tests/test-mkdir.h (test_mkdir): Likewise.
15568         * tests/test-readlink.h (test_readlink): Likewise.
15569         * tests/test-remove.c (main): Likewise.
15570         * tests/test-rename.h (test_rename): Likewise.
15571         * tests/test-renameat.c (main): Likewise.
15572         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15573         * tests/test-symlink.h (test_symlink): Likewise.
15574         * tests/test-symlinkat.c (main): Likewise.
15575         * tests/test-unlink.h (test_unlink_func): Likewise.
15576         * tests/test-unlinkat.c (main): Likewise.
15577
15578         maint: make realtime library usage explicit
15579         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
15580         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
15581         * modules/settime (Link): Likewise.
15582         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
15583
15584         test-stat-time: speed up execution
15585         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
15586         warning on mingw.
15587         (nap): New helper function.
15588         (prepare_test): Use it to reduce sleep time.
15589         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
15590         execution.
15591         * modules/stat-time-tests (configure.ac): Check for usleep.
15592
15593 2009-10-09  Jim Meyering  <meyering@redhat.com>
15594
15595         selinux-h: always use getfilecon wrappers
15596         * lib/getfilecon.c: New file.
15597         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
15598         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
15599         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
15600         (fgetfilecon): Provide a stub.
15601         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
15602         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
15603         file unconditionally.
15604         When <selinux/selinux.h> is found, arrange to use wrappers.
15605         * modules/selinux-h (Files): Add getfilecon.c.
15606         (Makefile.am): Substitute include-next-related bits
15607         into the now-always-generated selinux/selinux.h file.
15608         * doc/glibc-functions/lgetfilecon.texi: New file.
15609         * doc/glibc-functions/fgetfilecon.texi: New file.
15610         * doc/glibc-functions/getfilecon.texi: New file.
15611         * doc/glibc-functions/getfilecon-desc.texi: New file.
15612         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
15613         which to pull in the new files.
15614         * MODULES.html.sh (Misc): Add selinux-h.
15615
15616 2009-10-08  Jim Meyering  <meyering@redhat.com>
15617
15618         unistd: fix comment typo
15619         * lib/unistd.in.h (euidaccess): Fix a comment typo.
15620
15621 2009-10-08  Eric Blake  <ebb9@byu.net>
15622
15623         areadlink: use SIZE_MAX consistently
15624         * modules/areadlink (Depends-on): Add stdint.
15625         * modules/areadlink-with-size (Depends-on): Likewise.
15626         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
15627         gives NULL; drop sys/types, since unistd gives size_t; and add
15628         stdint for SIZE_MAX.
15629         (SIZE_MAX): Rely on headers.
15630         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
15631         and add stdint.
15632         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
15633         (SIZE_MAX): Likewise.
15634         (INITIAL_BUF_SIZE): Turn into enum.
15635         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
15636
15637 2009-10-08  Jim Meyering  <meyering@redhat.com>
15638
15639         areadlinkat: avoid compilation failure
15640         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
15641         Fix typo in comment.
15642
15643 2009-10-07  Eric Blake  <ebb9@byu.net>
15644
15645         areadlinkat-with-size: new module
15646         * modules/areadlinkat-with-size: New module.
15647         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
15648         * lib/areadlink.h (areadlinkat): Declare it.
15649         * MODULES.html.sh (File system functions): Mention it.
15650         * modules/areadlinkat-with-size-tests: New test.
15651         * tests/test-areadlinkat-with-size.c: New file.
15652
15653         xreadlinkat: new module
15654         * modules/xreadlinkat: New module.
15655         * lib/xreadlinkat.c (xreadlinkat): New file.
15656         * lib/xreadlink.h (xreadlinkat): Declare it.
15657         * MODULES.html.sh (File system functions): Mention it.
15658
15659         areadlinkat: new module
15660         * lib/at-func.c (FUNC_FAIL): New define.
15661         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
15662         * modules/areadlinkat: New module.
15663         * lib/linkat.c (areadlinkat): Move...
15664         * lib/areadlinkat.c (areadlinkat): ...to new file.
15665         * lib/areadlink.h (areadlinkat): Declare it.
15666         * modules/linkat (Depends-on): Add areadlinkat.
15667         * MODULES.html.sh (File system functions): Mention it.
15668         * modules/areadlinkat-tests: New test.
15669         * tests/test-areadlinkat.c: New file.
15670
15671         areadlink, areadlink-with-size: add tests
15672         * modules/areadlink-tests: New test.
15673         * modules/areadlink-with-size-tests: Likewise.
15674         * tests/test-areadlink.h: New file.
15675         * tests/test-areadlink.c: Likewise.
15676         * tests/test-areadlink-with-size.c: Likewise.
15677
15678         maint: minor cleanups
15679         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
15680         _UNUSED_PARAMETER_ instead.
15681         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
15682         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
15683         * modules/linkat-tests (Files): Distribute test-link.h.
15684
15685         openat, utimens: whitespace cleanup
15686         * lib/openat.c: Prefer space throughout, rather than mix of 8
15687         spaces vs. tabs.
15688         * lib/at-func.c: Likewise.
15689         * lib/utimens.c: Likewise.
15690
15691         openat: avoid using wrong fd
15692         * lib/openat.c (openat_permissive): Reject user's fd if saving the
15693         working directory chooses same fd.
15694         * lib/at-func.c (AT_FUNC_NAME): Likewise.
15695
15696         mkdir, mkdirat: fix cygwin 1.5.x bug
15697         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
15698         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
15699         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
15700         bug.
15701         (gl_PREREQ_MKDIR): Delete unused macro.
15702         * modules/mkdir (Files): Track file rename.
15703         (configure.ac): Update macro name.
15704         * modules/openat (Depends-on): Add mkdir.
15705         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
15706
15707         mkdir, mkdirat: add tests
15708         * modules/mkdir-tests: New test.
15709         * tests/test-mkdir.h: New file.
15710         * tests/test-mkdir.c: Likewise.
15711         * tests/test-mkdirat.c: Likewise.
15712         * modules/openat-tests (Files): Add new files.
15713         (Makefile.am): Run new test.
15714
15715 2009-10-06  Eric Blake  <ebb9@byu.net>
15716
15717         doc: tweak *at function documentation
15718         * doc/posix-functions/faccessat.texi (faccessat): Mention
15719         known issue with replacement.
15720         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
15721         * doc/posix-functions/linkat.texi (linkat): Likewise.
15722         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15723         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15724         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15725         * doc/posix-functions/renameat.texi (renameat): Likewise.
15726         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15727
15728         openat: fix GNU/Hurd bug in unlinkat
15729         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
15730         broken.
15731         * doc/posix-functions/unlink.texi (unlink): Document this.
15732         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
15733
15734         fdopendir: fix GNU/Hurd bug
15735         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
15736         allowing non-directory fds.
15737         * lib/fdopendir.c (rpl_fdopendir): Work around it.
15738         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15739         * modules/dirent (Makefile.am): Substitute it.
15740         * lib/dirent.in.h (fdopendir): Declare replacement.
15741         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
15742         * tests/test-fdopendir.c (main): Test something other than
15743         /dev/null, since on Hurd that behaves like a directory.
15744
15745         test-symlink: port to GNU/Hurd
15746         * tests/test-symlink.h (test_symlink): Relax expected errno.
15747
15748         doc: tweak more cygwin information
15749         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
15750         now compatible with glibc.
15751         * doc/posix-functions/getopt.texi (getopt): Likewise.
15752
15753         getopt-gnu: add another test
15754         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
15755         guarantee behavior relied on by m4.
15756         * tests/test-getopt.c (main): Use it.
15757         * modules/getopt-posix-tests (Depends-on): Add setenv.
15758         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
15759
15760         getopt: fix compilation on darwin
15761         * lib/getopt.in.h (includes): Leave breadcrumbs during system
15762         include.
15763         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
15764         Reported by Ludovic Courtès.
15765
15766 2009-10-06  Bruno Haible  <bruno@clisp.org>
15767
15768         * modules/size_max (Description): Discourage its use.
15769         Reported by Simon Josefsson.
15770
15771 2009-10-06  Jim Meyering  <meyering@redhat.com>
15772
15773         linkat: avoid compilation failure
15774         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
15775
15776 2009-10-05  Eric Blake  <ebb9@byu.net>
15777
15778         linkat: support Linux 2.6.17
15779         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
15780         linkat on Linux, but allow cache variable override.
15781         * lib/linkat.c (rpl_linkat): Define override.
15782         * modules/linkat (Depends-on): Add symlinkat.
15783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
15784         * modules/unistd (Makefile.am): Substitute it.
15785         * lib/unistd.in.h (linkat): Declare replacement.
15786         Reported by Pádraig Brady.
15787
15788         quotearg: port test to systems with C.UTF-8 locale
15789         * tests/test-quotearg.c (struct result_strings): Add another
15790         member, differentiating between C.ASCII and C.UTF-8 handling.
15791         (compare_strings): Add parameter.
15792         (main): Adjust all callers.
15793
15794         getopt: avoid clash with FreeBSD _getopt_internal
15795         * lib/getopt.in.h (_getopt_internal): Override the name.
15796         * lib/getopt_int.h (includes): Pick up any overrides.
15797         Reported by Reuben Thomas.
15798
15799         hash: allow C89 compilation
15800         * lib/hash.c (check_tuning): Move declaration before statement.
15801         Reported by Reuben Thomas.
15802
15803 2009-10-05  Karl Berry  <karl@gnu.org>
15804
15805         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
15806
15807 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
15808             Bruno Haible  <bruno@clisp.org>
15809
15810         * lib/uname.c (uname): Use a table-driven algorithm to compute
15811         Windows NT versions.
15812
15813 2009-10-04  Bruno Haible  <bruno@clisp.org>
15814
15815         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
15816         program_invocation_short_name.
15817         * modules/progname (configure.ac): Test for presence of
15818         program_invocation_short_name.
15819         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15820
15821 2009-10-04  Bruno Haible  <bruno@clisp.org>
15822
15823         * lib/progname.c (set_program_name): Fix comment.
15824         Reported by Jim Meyering.
15825
15826 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
15827             Bruno Haible  <bruno@clisp.org>
15828
15829         * lib/uname.c: Include <string.h>.
15830         (uname): Do only one call to GetVersionEx in the common case.
15831
15832 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
15833             Bruno Haible  <bruno@clisp.org>
15834
15835         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
15836         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
15837         (uname): Add support for Windows CE and various non-x86 CPU types.
15838
15839 2009-10-03  Bruno Haible  <bruno@clisp.org>
15840
15841         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
15842         invocation to tests/configure.ac.
15843         Reported by Ian Beckwith <ianb@erislabs.net>.
15844
15845 2009-10-02  Eric Blake  <ebb9@byu.net>
15846
15847         fchdir: avoid compiler warning
15848         * lib/fchdir.c (canonicalize_file_name)
15849         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
15850
15851         test-open: support mingw errno values
15852         * tests/test-open.h (test_open): Relax test.
15853         * tests/test-fopen.h (test_fopen): Likewise.
15854         * tests/test-openat-safer.c (main): Likewise.
15855
15856         open: fix opening directory on mingw
15857         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
15858
15859         test-open: on GNU/Hurd, /dev/null is a directory
15860         * tests/test-fopen.h (main): Rename...
15861         (test_fopen): ...to this.  Use a guaranteed non-directory when
15862         confirming open behavior on trailing slash.
15863         * tests/test-openat-safer.c (main): Likewise.
15864         * tests/test-open.h (main): Likewise....
15865         (test_open): ...to this.
15866         * tests/test-fopen.c (main): Adjust caller.
15867         * tests/test-fopen-safer.c (main): Likewise.
15868         * tests/test-open.c (main): Likewise.
15869         * tests/test-fcntl-safer.c (main): Likewise.
15870         Reported by Samuel Thibault.
15871
15872         rename, fchdir: don't ignore chdir failure
15873         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
15874         * lib/rename.c (rpl_rename) [W32]: Likewise.
15875         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
15876         an empty destination directory if source cannot be renamed,
15877         although there is still possibility for failure.
15878         * doc/posix-functions/rename.texi (rename): Document the race.
15879         Reported by Jim Meyering.
15880
15881         maint: cleanup whitespace in recent commits
15882         * lib/rename.c (rpl_rename): Remove tabs.
15883         * tests/test-link.h (test_link): Likewise.
15884         * lib/fchdir.c (get_name): Likewise.
15885         Reported by Jim Meyering.
15886
15887 2009-10-02  Ben Pfaff  <blp@gnu.org>
15888
15889         relocatable-prog-wrapper: Add missing dependency on
15890         double-slash-root.
15891         * modules/relocatable-prog-wrapper: Add dependency.
15892         Reported by Ian Beckwith <ianb@erislabs.net>.
15893
15894 2009-10-02  Eric Blake  <ebb9@byu.net>
15895
15896         renameat: fix Solaris bugs
15897         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
15898         needed fixing.
15899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
15900         * modules/stdio (Makefile.am): Substitute it.
15901         * lib/stdio.in.h (renameat): Declare replacement.
15902         * lib/renameat.c (rpl_renameat): Implement fix.
15903
15904         renameat: new module
15905         * modules/renameat: New file.
15906         * lib/renameat.c (renameat): Likewise.
15907         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
15908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15909         * modules/stdio (Makefile.am): Substitute them.
15910         * lib/stdio.in.h (renameat): Declare it.
15911         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15912         * doc/posix-functions/renameat.texi (renameat): Likewise.
15913         * modules/renameat-tests: New test.
15914         * tests/test-renameat.c: Likewise.
15915
15916         rename: fix mingw bugs
15917         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
15918         directory overwrite bugs.
15919
15920         rename: fix another cygwin 1.5 bug
15921         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
15922         checks.
15923         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
15924         unnecessary cygwin workarounds.  Also work around bug with moving
15925         full directory onto an empty one.
15926         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
15927
15928         rename-dest-slash: merge into rename module
15929         * modules/rename-dest-slash (Status): Mark obsolete.
15930         (Depends-on): Add rename.
15931         (Files): Let rename do it all.
15932         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
15933         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
15934         * m4/rename-dest-slash.m4: ...so this file can be deleted.
15935         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
15936         * lib/rename.c (rpl_rename): Update comments.
15937
15938         rename: fix cygwin 1.5.x bugs
15939         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
15940         * lib/rename.c (rpl_rename): Work around them.
15941         * modules/rename (Depends-on): Add same-inode.
15942
15943         rename: fix Solaris 10 bug
15944         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
15945         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
15946         was the only bug.
15947
15948         rename: fix Solaris 9 bug
15949         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
15950         on non-directory.  Avoid calling exit.
15951         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
15952         strdup.
15953         * modules/rename-tests (Depends-on): Drop lstat.
15954         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
15955         (gl_PREREQ_RENAME): Delete unused macro.
15956
15957         rename-dest-slash: fix NetBSD bug
15958         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
15959         links.
15960         * modules/rename-dest-slash (Depends-on): Add same-inode.
15961
15962         rename-tests: new test, exposes several platform bugs
15963         * modules/rename-tests: New file.
15964         * tests/test-rename.h: Likewise.
15965         * tests/test-rename.c: Likewise.
15966         * doc/posix-functions/rename.texi (rename): Improve documentation,
15967         including bugs that will eventually be fixed in gnulib.
15968
15969 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
15970
15971         * lib/uname.c: Include <stdlib.h>
15972         (uname): Assume version info is available.
15973
15974 2009-10-02  Jim Meyering  <meyering@redhat.com>
15975
15976         gnu-web-doc-update: correct --help output
15977         * build-aux/gnu-web-doc-update: Make --help output relevant.
15978
15979         gnu-web-doc-update: add standard options
15980         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
15981
15982         gnu-web-doc-update: New module.
15983         Use this script to automatically update the on-line web documentation
15984         for your GNU project at http://www.gnu.org/software/$pkg/manual/
15985         * modules/gnu-web-doc-update: New file, from coreutils.
15986         * build-aux/gnu-web-doc-update: New script.
15987
15988 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
15989
15990         link: LoadLibrary is not needed.
15991         * lib/link.c: Use GetModuleHandle.
15992
15993 2009-10-01  Eric Blake  <ebb9@byu.net>
15994
15995         getopt: bump serial number
15996         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
15997         change.
15998
15999         tests: tighten link, rmdir, and remove tests
16000         * tests/test-link.h (includes): No need to use <config.h> here.
16001         Clean up if directory hard link was created, otherwise test for
16002         trailing '.'.
16003         * tests/test-linkat.c (main): Simplify.
16004         * tests/test-remove.c (main): Enhance test for trailing '.'.
16005         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16006
16007 2009-10-01  Jim Meyering  <meyering@redhat.com>
16008
16009         maint.mk: requiring "make major" was annoying, for a "minor" release.
16010         What is intended is "stable", to contrast with alpha and beta,
16011         so require "make stable", not "make major".
16012         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16013         (get_tool_versions): Likewise.
16014         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16015
16016 2009-09-30  Ben Pfaff  <blp@gnu.org>
16017
16018         Fix broken build of replacement for Windows tmpfile().
16019         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16020         flags argument added along with the 'mkostemp' module.
16021
16022 2009-09-28  Bruno Haible  <bruno@clisp.org>
16023
16024         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16025         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16026         to 'remove_elt'.
16027         (gl_list_remove): Update.
16028         * lib/gl_list.c (gl_list_remove): Update.
16029         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16030         to 'remove_elt'.
16031         (gl_oset_remove): Update.
16032         * lib/gl_list.c (gl_oset_remove): Update.
16033         Reported by Eric Blake.
16034
16035 2009-09-28  Eric Blake  <ebb9@byu.net>
16036
16037         doc: mention yet more cygwin 1.7 status
16038         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16039         cygwin.
16040         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16041         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16042
16043         argp: fix test failure
16044         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16045         that are not upper-case.  Pass correct range to tolower.
16046
16047 2009-09-27  Jim Meyering  <meyering@redhat.com>
16048
16049         test-yesno: work around sparc-dash here-document infelicity
16050         Without this change, the literal \177 byte in a here document
16051         would make dash 0.5.5.1-3 access uninitialized memory.
16052         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16053         Instead, use a marker, "@", and filter through tr to create the desired
16054         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16055
16056 2009-09-27  Bruno Haible  <bruno@clisp.org>
16057
16058         Disable untested support for new flavours of ACLs on AIX.
16059         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16060         progress.
16061         * lib/set-mode-acl.c (qset_acl): Likewise.
16062
16063 2008-12-07  Bruno Haible  <bruno@clisp.org>
16064
16065         Add support for new flavours of ACLs on AIX. (Untested.)
16066         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16067         (file_has_acl): Add support for newer AIX.
16068         * lib/set-mode-acl.c (qset_acl): Likewise.
16069         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16070         Rainer Tammer <tammer@tammer.net>.
16071
16072 2009-09-26  Eric Blake  <ebb9@byu.net>
16073
16074         argp: fix compilation of getopt
16075         * lib/getopt.in.h (includes): Use different guard than glibc.
16076         Reported by Sergey Poznyakoff.
16077
16078         doc: mention more cygwin 1.7 status
16079         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16080         bug.
16081         * doc/posix-functions/execl.texi (execl): Likewise.
16082         * doc/posix-functions/execle.texi (execle): Likewise.
16083         * doc/posix-functions/execlp.texi (execlp): Likewise.
16084         * doc/posix-functions/execv.texi (execv): Likewise.
16085         * doc/posix-functions/execve.texi (execve): Likewise.
16086         * doc/posix-functions/execvp.texi (execvp): Likewise.
16087         * doc/glibc-functions/canonicalize_file_name.texi
16088         (canonicalize_file_name): Cygwin 1.7 now provides this.
16089         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16090         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16091         on AT_SYMLINK_NOFOLLOW.
16092
16093 2009-09-24  Eric Blake  <ebb9@byu.net>
16094
16095         test-linkat: make test more robust
16096         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16097
16098         getopt: fix inclusion guards for cygwin
16099         * modules/getopt-posix (Depends-on): Add include-next.
16100         (Makefile.am): Substitute more items in replacement header.
16101         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16102         <getopt.h>.
16103         * lib/getopt.in.h (includes): Use split inclusion guard, and
16104         prefer <getopt.h> over include <unistd.h> when one is present.
16105         (option): Also override name of 'struct option'.
16106
16107         same-inode: revert prior change; it is not yet ready
16108         * NEWS: Undo mention of this change.
16109         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16110         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16111         * lib/cycle-check.c (cycle_check): Likewise.
16112         * lib/same.c (same_name): Likewise.
16113         * lib/at-func2.c (at_func2): Likewise.
16114
16115 2009-09-23  Eric Blake  <ebb9@byu.net>
16116
16117         linkat: new module
16118         * modules/linkat: New file.
16119         * lib/at-func2.c (at_func2): Likewise.
16120         * lib/linkat.c (linkat): Likewise.
16121         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16122         * lib/openat-priv.h (at_func2): Add declaration.
16123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16124         * modules/unistd (Makefile.am): Substitute them.
16125         * lib/unistd.in.h (linkat): Declare it.
16126         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16127         * doc/posix-functions/linkat.texi (linkat): Likewise.
16128         * doc/posix-functions/link.texi (link): Tweak wording.
16129         * tests/test-link.c (main): Move guts...
16130         * tests/test-link.h (test_link): ...into new file.
16131         * modules/linkat-tests: New test.
16132         * tests/test-linkat.c: Likewise.
16133         * modules/link-tests (Files): Ship new file.
16134         (Depends-on): Add stdbool.
16135
16136         dirname: add library-safe mdir_name
16137         * lib/dirname.h (mdir_name): New prototype.
16138         * lib/dirname.c (dir_name): Move guts...
16139         (mdir_name): ...to new function that avoids xalloc_die.
16140
16141         fchdir: another mingw fix
16142         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16143         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16144         on mingw (where it has not yet been ported), and make it optional
16145         elsewhere.
16146         (_gl_register_fd): Use it.
16147
16148         same-inode: make SAME_INODE tri-state, to port to mingw
16149         * NEWS: Mention this change.
16150         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16151         st_ino always being 0.
16152         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16153         * lib/cycle-check.c (cycle_check): Likewise.
16154         * lib/same.c (same_name): Likewise.
16155
16156         lstat: avoid mingw compilation error
16157         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16158         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16159         lstat ourselves.
16160         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16161         was adequate.
16162         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16163         the checks for lstat.
16164         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16165
16166         link: fix test failure on Solaris 9
16167         * lib/link.c (rpl_link): Don't assume link will catch bogus
16168         trailing slash on source.
16169
16170         test-symlinkat: enhance test
16171         * tests/test-readlink.c (main): Move guts...
16172         * tests/test-readlink.h (test_readlink): ...into new file.
16173         * tests/test-symlink.c (main): Move guts...
16174         * tests/test-symlink.h (test_symlink): ...into new file.
16175         * tests/test-symlinkat.c (main): Use new files for further
16176         coverage.
16177         (do_symlink, do_readlink): New helper functions.
16178         * modules/symlink-tests (Files): Ship new file.
16179         (Depends-on): Add stdbool.
16180         * modules/readlink-tests (Files): Ship new file.
16181         (Depends-on): Add stdbool.
16182         * modules/symlinkat-tests (Files): Use new files.
16183
16184 2009-09-23  Eric Blake  <ebb9@byu.net>
16185
16186         readlink: document portability issue with symlink length
16187         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16188         systems have bogus st_size on symlinks, and mention the
16189         areadlink-with-size module.
16190         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16191         * doc/posix-functions/readlink.texi (readlink): Mention the
16192         areadlink module, and ERANGE failure.
16193         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16194         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16195
16196         readlink: fix Solaris 9 bug with trailing slash
16197         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16198         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16199         * doc/posix-functions/readlink.texi (readlink): Document this.
16200         * modules/readlink-tests: New test.
16201         * tests/test-readlink.c: Likewise.
16202
16203         readlink: fix cygwin 1.5.x bug with return type
16204         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16205         * lib/unistd.in.h (readlink): Use ssize_t.
16206         * lib/readlink.c (readlink): Likewise.
16207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16208         * modules/unistd (Makefile.am): Substitute it.
16209         * lib/unistd.in.h (readlink): Declare replacement.
16210         * doc/posix-functions/readlink.texi (readlink): Document this.
16211
16212         symlink: use throughout gnulib
16213         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16214         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16215         symlink is not used.
16216         * modules/symlinkat (Depends-on): Add symlink.
16217         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16218         * modules/canonicalize-tests (Depends-on): Likewise.
16219         * modules/lstat-tests (Depends-on): Likewise.
16220         * modules/openat-tests (Depends-on): Likewise.
16221         * modules/remove-tests (Depends-on): Likewise.
16222         * modules/rmdir-tests (Depends-on): Likewise.
16223         * modules/unlink-tests (Depends-on): Likewise.
16224         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16225         * tests/test-canonicalize.c (symlink): Likewise.
16226         * tests/test-fstatat.c (symlink): Likewise.
16227         * tests/test-lstat.c (symlink): Likewise.
16228         * tests/test-remove.c (symlink): Likewise.
16229         * tests/test-rmdir.c (symlink): Likewise.
16230         * tests/test-unlink.c (symlink): Likewise.
16231         * tests/test-unlinkat.c (symlink): Likewise.
16232
16233         symlink: new module, for Solaris 9 bug
16234         * modules/symlink: New file.
16235         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16236         * lib/symlink.c: Likewise.
16237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16238         * modules/unistd (Makefile.am): Substitute them.
16239         * lib/unistd.in.h (symlink): Declare replacement.
16240         * MODULES.html.sh (File system functions): Mention it.
16241         * doc/posix-functions/symlink.texi (symlink): Likewise.
16242         * modules/symlink-tests: New test.
16243         * tests/test-symlink.c: Likewise.
16244
16245 2009-09-23  Bruno Haible  <bruno@clisp.org>
16246
16247         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
16248         when needed.
16249         Test case: gnulib-tool --import --with-tests atexit inttypes.
16250         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
16251
16252 2009-09-23  Bruno Haible  <bruno@clisp.org>
16253
16254         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
16255         subcommand, not in a subshell.
16256
16257 2009-09-22  Eric Blake  <ebb9@byu.net>
16258
16259         unistd: sort replacement declarations
16260         * lib/unistd.in.h: Sort declarations.
16261
16262         open, openat: minor optimization
16263         * lib/open.c (open): If open succeeded, len is non-zero.
16264         * lib/openat.c (rpl_openat): Likewise.
16265
16266         link-follow: ensure correct result
16267         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
16268         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
16269         distinguish between possible failures.
16270
16271 2009-09-21  Eric Blake  <ebb9@byu.net>
16272
16273         fts: avoid compiler warning
16274         * lib/fts.c (dirent_inode_sort_may_be_useful)
16275         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
16276
16277 2009-09-19  Bruno Haible  <bruno@clisp.org>
16278
16279         * lib/progreloc.c (canonicalize_file_name): New declaration.
16280
16281 2009-09-19  Eric Blake  <ebb9@byu.net>
16282
16283         link: fix quoting
16284         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16285
16286         openat: fix openat bugs on Solaris 9
16287         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16288         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16289         * modules/openat (Depends-on): Add open.
16290         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16291         * modules/fcntl-h (Makefile.am): Substitute it.
16292         * lib/fcntl.in.h (openat): Declare replacement.
16293         * doc/posix-functions/openat.texi (openat): Document this.
16294
16295         openat: move fstatat and unlinkat into correct files
16296         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16297         compiled.
16298         * lib/openat.c (fstatat, unlinkat): Move...
16299         * lib/fstatat.c (fstatat): ...into correct files.
16300         * lib/unlinkat.c (unlinkat): Likewise.
16301
16302         openat: fix unlinkat bugs on Solaris 9
16303         * lib/unlinkat.c (unlinkat): New file.
16304         * modules/openat (Depends-on): Add unlink.
16305         (Files): Distribute it.
16306         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16307         trailing slash behavior is broken.
16308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16309         * modules/unistd (Makefile.am): Substitute it.
16310         * lib/unistd.in.h (unlinkat): Declare replacement.
16311         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16312
16313         openat: fix fstatat bugs on Solaris 9
16314         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16315         stat.
16316         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16317
16318         test-unlinkat: enhance test, to expose Solaris 9 bug
16319         * tests/test-unlink.c (main): Factor guts...
16320         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16321         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16322         * tests/test-rmdir.c (main): Adjust caller.
16323         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16324         (unlinker): New helper function.
16325         (rmdirat): Enhance check.
16326         * modules/rmdir-tests (Depends-on): Add stdbool.
16327         * modules/unlink-tests (Depends-on): Likewise.
16328         (Files): Add test-unlink.h.
16329         * modules/openat-tests (Files): Likewise.
16330         (Depends-on): Add unlinkdir.
16331
16332         test-fstatat: new test, to expose Solaris 9 bugs
16333         * tests/test-stat.c (main): Factor guts...
16334         * tests/test-stat.h (test_stat_func): ...into new file.
16335         * tests/test-lstat.c (main): Factor guts...
16336         * tests/test-lstat.h (test_lstat_func): ...into new file.
16337         * tests/test-fstatat.c: New file.
16338         * modules/stat-tests (Files): Add test-stat.h.
16339         * modules/lstat-tests (Files): Add test-lstat.h.
16340         (Depends-on): Add stdbool.
16341         * modules/openat-tests (Depends-on): Add pathmax.
16342         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16343         (Makefile.am): Run new test.
16344
16345         remove: new module, for mingw and Solaris 9 bugs
16346         * modules/remove: New file.
16347         * lib/remove.c: Likewise.
16348         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16350         * modules/stdio (Makefile.am): Use them.
16351         * lib/stdio.in.h (remove): Declare replacement.
16352         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16353         * doc/posix-functions/remove.texi (remove): Likewise.
16354         * modules/remove-tests: New test.
16355         * tests/test-remove.c: Likewise.
16356
16357         unlink: new module, for Solaris 9 bug
16358         * modules/unlink: New file.
16359         * lib/unlink.c: Likewise.
16360         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16362         * modules/unistd (Makefile.am): Use them.
16363         * lib/unistd.in.h (stat): Declare replacement.
16364         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16365         * doc/posix-functions/unlink.texi (unlink): Likewise.
16366         * modules/unlink-tests: New test.
16367         * tests/test-unlink.c: Likewise.
16368
16369         lstat: fix Solaris 9 bug
16370         * lib/lstat.c (lstat): Also check for trailing slash on
16371         non-symlink, non-directories.  Use stat module to simplify logic.
16372         * doc/posix-functions/lstat.texi (lstat): Document it.
16373         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16374         (configure.ac): Check for symlink.
16375         * tests/test-lstat.c (main): Add more tests.
16376
16377         stat: add as dependency to other modules
16378         * modules/chown (Depends-on): Add stat.
16379         * modules/euidaccess (Depends-on): Likewise.
16380         * modules/fchdir (Depends-on): Likewise.
16381         * modules/isdir (Depends-on): Likewise.
16382         * modules/link (Depends-on): Likewise.
16383         * modules/lstat (Depends-on): Likewise.
16384         * modules/mkdir-p (Depends-on): Likewise.
16385         * modules/modechange (Depends-on): Likewise.
16386         * modules/open (Depends-on): Likewise.
16387         * modules/readlink (Depends-on): Likewise.
16388         * modules/same (Depends-on): Likewise.
16389
16390         stat: fix Solaris 9 bug
16391         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16392         slash.
16393         * lib/stat.c (rpl_stat): Work around it.
16394         * doc/posix-functions/stat.texi (stat): Update documentation.
16395
16396         stat: new module, for mingw bug
16397         * modules/stat: New file.
16398         * lib/stat.c: Likewise.
16399         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16400         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16401         * modules/sys_stat (Makefile.am): Use them.
16402         * lib/sys_stat.in.h (stat): Declare replacement.
16403         * lib/openat.c (fstatat): Deal with lstat and stat being function
16404         macros.
16405         * modules/openat (Depends-on): Add inline.
16406         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16407         * doc/posix-functions/stat.texi (stat): Likewise.
16408         * modules/stat-tests: New test.
16409         * tests/test-stat.c: Likewise.
16410
16411 2009-09-19  Jim Meyering  <meyering@redhat.com>
16412
16413         syntax-check: detect unnecessary inclusion of canonicalize.h
16414         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
16415
16416 2009-09-19  Eric Blake  <ebb9@byu.net>
16417
16418         canonicalize-lgpl: adjust clients to use correct header
16419         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16420         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
16421         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
16422         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
16423         * lib/progreloc.c (includes): Likewise.
16424
16425 2009-09-19  Jim Meyering  <meyering@redhat.com>
16426
16427         test-posixtm.c: correct a comment
16428         * tests/test-posixtm.c: Correct first-line comment.
16429         Spotted by Eric Blake.
16430
16431 2009-09-16  Jim Meyering  <meyering@redhat.com>
16432
16433         posixtm-tests: make T const-correct; add a test case
16434         * tests/test-posixtm.c (T): Declare const.
16435         Add a test for -(2^31+1).
16436         Remove useless can-succeed-only-in-2002 test.
16437
16438         posixtm-tests: adjust the sole failing test
16439         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
16440         expected output matches what mktime now produces.  Cross-checked via
16441         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
16442
16443         posixtm: move #ifdef'd tests into a new module
16444         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
16445         * tests/test-posixtm.c: ... this new file.
16446         * modules/posixtm-tests: New module.
16447
16448 2009-09-19  Eric Blake  <ebb9@byu.net>
16449
16450         openat: simplify use of at-func.c
16451         * lib/at-func.c (includes): Include prerequisites here, to
16452         simplify requirements on client files.
16453         * lib/openat-priv.h: Add double-inclusion guard.
16454         * lib/faccessat.c (includes): Simplify.
16455         * lib/fchmodat.c (includes): Likewise.
16456         * lib/fchownat.c (includes): Likewise.
16457         * lib/mkdirat.c (includes): Likewise.
16458         * lib/mkfifoat.c (includes): Likewise.
16459         * lib/symlinkat.c (includes): Likewise.
16460
16461         openat: allow return of fd 0
16462         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
16463         * modules/save-cwd (Depends-on): Replace fcntl-safer with
16464         unistd-safer.
16465         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
16466         <fcntl.h>; this module does not leak fds.
16467         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
16468         must be allowed to return 0, leaving openat_safer to add the
16469         safety.
16470         (openat_permissive): Avoid writing to just-opened fd 2 if
16471         restoring the current directory fails.
16472         * lib/openat-die.c (openat_restore_fail): Add comment.
16473         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
16474         (save_cwd): Guarantee safe fd, but without use of open_safer.
16475         * tests/test-openat.c: New test.
16476         * modules/openat-tests (Files, Makefile.am): Distribute and build
16477         new file.
16478
16479         relocatable-prog-wrapper: fix build
16480         * modules/relocatable-prog-wrapper (Files): Update name of
16481         canonicalize m4 file, broken on 2009-09-17.
16482         Reported by emad hajjar <aleppos@hotmail.com>.
16483
16484 2009-09-19  Bruno Haible  <bruno@clisp.org>
16485
16486         * lib/safe-alloc.h: Use the standard header with GPL copyright.
16487         * lib/safe-alloc.c: Likewise.
16488         Reported by Ian Beckwith <ianb@erislabs.net>.
16489
16490 2009-09-18  Bruno Haible  <bruno@clisp.org>
16491
16492         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
16493         Reported by <erobles@sensacd.com.mx>.
16494
16495 2009-09-17  Eric Blake  <ebb9@byu.net>
16496
16497         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
16498         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
16499         slashes when checking if last component is missing.
16500         * tests/test-canonicalize.c (main): Test this.
16501
16502         canonicalize, canonicalize-lgpl: honor // if distinct from /
16503         * modules/canonicalize (Files): Add double-slash-root.m4.
16504         * modules/canonicalize-lgpl (Files): Likewise.
16505         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16506         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
16507         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
16508         fallback definition.
16509         (canonicalize_filename_mode): Use it to protect //.
16510         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
16511         (__realpath): Likewise.
16512         * tests/test-canonicalize.c (main): Test this.
16513         * tests/test-canonicalize-lgpl.c (main): Likewise.
16514         * modules/canonicalize-tests (Depends-on): Add same-inode.
16515         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16516
16517         canonicalize-lgpl: fix glibc bug with trailing slash
16518         * m4/canonicalize-lgpl.m4: Move contents...
16519         * m4/canonicalize.m4: ...here.
16520         (gl_CANONICALIZE_LGPL): Factor realpath check...
16521         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
16522         glibc 2.3.5 bug, fixed 2005-04-27.
16523         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
16524         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
16525         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
16526         * modules/canonicalize-lgpl (Files): Manage file rename.
16527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16528         * modules/stdlib (Makefile.am): Substitute witness.
16529         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
16530         is needed.
16531         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
16532         replacement is required.
16533         * lib/canonicalize.c (canonicalize_file_name): Likewise.
16534         * doc/glibc-functions/canonicalize_file_name.texi
16535         (canonicalize_file_name): Document this.
16536         * doc/posix-functions/realpath.texi (realpath): Likewise.
16537
16538         canonicalize-lgpl: reject non-directory with trailing slash
16539         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
16540         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
16541         catches failures in glibc 2.3.5.
16542         * tests/test-canonicalize.c (main): Likewise.
16543
16544         canonicalize-lgpl: use native realpath if it works
16545         * lib/canonicalize-lgpl.c (realpath): Guard with
16546         FUNC_REALPATH_WORKS.
16547         * lib/stdlib.in.h (realpath): Make declaration optional based on
16548         HAVE_REALPATH.
16549         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
16550         native realpath works.
16551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16552         * modules/stdlib (Makefile.am): Substitute witness.
16553
16554         canonicalize, canonicalize-lgpl: use <stdlib.h>
16555         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
16556         (Include): Mention <stdlib.h>.
16557         (configure.ac): Mention functions we provide.
16558         * modules/canonicalize (configure.ac): Likewise.
16559         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
16560         realpath if canonicalize_file_name is missing.
16561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
16562         * modules/stdlib (Makefile.am): Substitute witnesses.
16563         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
16564         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
16565         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
16566         * NEWS: Document this.
16567         * doc/glibc-functions/canonicalize_file_name.texi
16568         (canonicalize_file_name): Likewise.
16569         * doc/posix-functions/realpath.texi (realpath): Likewise.
16570         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
16571
16572         test-canonicalize: consolidate into single C program
16573         * tests/test-canonicalize.sh: Delete; move setup into...
16574         * tests/test-canonicalize.c (main): ...the program, making it
16575         easier to run in debugger.  Add some tests.
16576         * modules/canonicalize-tests (Files): Remove unused file.
16577         (Depends-on): Add progname.
16578         (configure.ac, Makefile.am): Simplify.
16579
16580         test-canonicalize-lgpl: consolidate into single C program
16581         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
16582         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
16583         easier to run in debugger.  Add some tests.
16584         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
16585         (configure.ac, Makefile.am): Simplify.
16586
16587         canonicalize: avoid resolvepath
16588         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
16589         unnecessary checks.
16590         * lib/canonicalize.c (includes): Simplify.
16591         (canonicalize_file_name): Drop resolvepath implementation.
16592         * modules/canonicalize (Depends-on): Drop filenamecat.
16593
16594         canonicalize: don't lose errno
16595         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
16596         over calls to free.
16597
16598         canonicalize: simplify errno handling
16599         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
16600         assignment.
16601
16602         canonicalize, canonicalize-lgpl: update module dependencies
16603         * modules/canonicalize (Depends-on): Add extensions, lstat,
16604         pathmax, stdlib.
16605         (Files): Drop pathmax.h.
16606         (configure.ac): Adjust macro name.
16607         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
16608         lstat, stdlib, sys_stat.
16609         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
16610         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
16611         extensions.
16612         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
16613         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
16614         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
16615         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
16616         declaration, if available.
16617         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
16618         we can rely on the readlink module.
16619         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
16620         (includes): Use <unistd.h> unconditionally.
16621
16622 2009-09-17  Eric Blake  <ebb9@byu.net>
16623
16624         maint: make Include sections of modules consistent
16625         * modules/alloca: Use only header name; no need to list #include.
16626         * modules/alloca-opt: Likewise.
16627         * modules/arpa_inet: Likewise.
16628         * modules/canon-host: Likewise.
16629         * modules/configmake: Likewise.
16630         * modules/dirent: Likewise.
16631         * modules/eealloc: Likewise.
16632         * modules/environ: Likewise.
16633         * modules/fchdir: Likewise.
16634         * modules/fcntl: Likewise.
16635         * modules/fcntl-h: Likewise.
16636         * modules/gethrxtime: Likewise.
16637         * modules/gettime: Likewise.
16638         * modules/ignore-value: Likewise.
16639         * modules/inet_ntop: Likewise.
16640         * modules/inet_pton: Likewise.
16641         * modules/inttypes: Likewise.
16642         * modules/isnand-nolibm: Likewise.
16643         * modules/isnanf-nolibm: Likewise.
16644         * modules/mbchar: Likewise.
16645         * modules/mbfile: Likewise.
16646         * modules/mbiter: Likewise.
16647         * modules/mbuiter: Likewise.
16648         * modules/netdb: Likewise.
16649         * modules/netinet_in: Likewise.
16650         * modules/nproc: Likewise.
16651         * modules/pagealign_alloc: Likewise.
16652         * modules/poll: Likewise.
16653         * modules/printf-frexp: Likewise.
16654         * modules/pthread: Likewise.
16655         * modules/putenv: Likewise.
16656         * modules/random_r: Likewise.
16657         * modules/relocatable-prog: Likewise.
16658         * modules/search: Likewise.
16659         * modules/select: Likewise.
16660         * modules/selinux-h: Likewise.
16661         * modules/settime: Likewise.
16662         * modules/signal: Likewise.
16663         * modules/size_max: Likewise.
16664         * modules/socklen: Likewise.
16665         * modules/ssize_t: Likewise.
16666         * modules/stdarg: Likewise.
16667         * modules/stdbool: Likewise.
16668         * modules/stddef: Likewise.
16669         * modules/stdint: Likewise.
16670         * modules/stdio: Likewise.
16671         * modules/stdlib: Likewise.
16672         * modules/string: Likewise.
16673         * modules/strings: Likewise.
16674         * modules/sys_file: Likewise.
16675         * modules/sys_ioctl: Likewise.
16676         * modules/sys_select: Likewise.
16677         * modules/sys_socket: Likewise.
16678         * modules/sys_stat: Likewise.
16679         * modules/sys_time: Likewise.
16680         * modules/sys_times: Likewise.
16681         * modules/sys_utsname: Likewise.
16682         * modules/sys_wait: Likewise.
16683         * modules/sysexits: Likewise.
16684         * modules/time: Likewise.
16685         * modules/times: Likewise.
16686         * modules/tmpfile: Likewise.
16687         * modules/trim: Likewise.
16688         * modules/unistd: Likewise.
16689         * modules/wchar: Likewise.
16690         * modules/wctype: Likewise.
16691
16692 2009-09-17  Bruno Haible  <bruno@clisp.org>
16693
16694         Make getdate.y compile on QNX and NetBSD 5 / i386.
16695         * m4/getdate.m4 (gl_GETDATE): Conditionally define
16696         TIME_T_FITS_IN_LONG_INT.
16697         * lib/getdate.y (long_time_t): New type.
16698         (relative_time): Change type of 'seconds' field to long_time_t.
16699         (get_date): Update types of local variables. Check against overflow
16700         during conversion from long_time_t to time_t.
16701         Reported by Matt Kraai <kraai@ftbfs.org>
16702         and Hasso Tepper <hasso@netbsd.org>.
16703
16704 2009-09-17  Bruno Haible  <bruno@clisp.org>
16705
16706         * modules/COPYING: Update copyright years.
16707         * modules/README: Likeiwse.
16708         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
16709         Reported by Ian Beckwith <ianb@erislabs.net>.
16710
16711 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16712
16713         * users.txt: Update references for gnuit package.
16714
16715 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16716
16717         * m4/getdelim.m4: Fix typo in copyright line.
16718
16719 2009-09-17  Bruno Haible  <bruno@clisp.org>
16720
16721         * lib/atoll.c: Use the standard header with GPL copyright.
16722         * lib/argz.in.h: Likewise.
16723         * lib/glob.c: Likewise.
16724         * lib/glob-libc.h: Likewise.
16725         * lib/random_r.c: Likewise.
16726         * lib/siglist.h: Likewise.
16727         * lib/strsignal.c: Likewise.
16728         Reported by Ian Beckwith <ianb@erislabs.net>.
16729
16730 2009-09-17  Eric Blake  <ebb9@byu.net>
16731
16732         rmdir: ensure correct dependency order
16733         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
16734
16735 2009-09-17  Bruno Haible  <bruno@clisp.org>
16736
16737         Disable assertion that fails on NetBSD 5 / i386.
16738         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
16739         Reported by Sam Steingold <sds@gnu.org>
16740         and Hasso Tepper <hasso@netbsd.org>.
16741
16742 2009-09-16  Eric Blake  <ebb9@byu.net>
16743
16744         unlinkdir: port to mingw
16745         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
16746         on which no one can unlink a directory.
16747
16748         stdlib: sort witness names
16749         * modules/stdlib (Makefile.am): Sort replacements.
16750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
16751         * lib/stdlib.in.h: Likewise.
16752
16753         parse-duration-tests: avoid link failure
16754         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
16755         LIBINTL.
16756         Reported by Tom G. Christensen.
16757
16758         openat-tests: ensure unlinkat behaves like rmdir
16759         * tests/test-rmdir.c (main): Factor guts...
16760         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
16761         * modules/rmdir-tests (Files): Ship new file.
16762         * modules/openat-tests: New test.
16763         * tests/test-unlinkat.c: Likewise.
16764
16765         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
16766         * modules/rmdir-errno (Status, Notice): Now obsolete.
16767
16768         rmdir: work around cygwin 1.5.x and mingw bugs
16769         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
16770         * lib/rmdir.c (rmdir): Work around it.
16771         * modules/rmdir (Status, Notice): No longer obsolete.
16772         (Files): Add dos.m4.
16773         (Depends-on): Add unistd.
16774         (configure.ac): Set witnesses.
16775         (License): Relax to LGPLv2+.
16776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
16777         * modules/unistd (Makefile.am): Substitute witnesses.
16778         * lib/unistd.in.h (rmdir): Declare replacement.
16779         * doc/posix-functions/rmdir.texi (rmdir): Document this.
16780         * modules/rmdir-tests: New tests.
16781         * tests/test-rmdir.c: Likewise.
16782
16783 2009-09-15  Eric Blake  <ebb9@byu.net>
16784
16785         fchdir: improve use of replacement functions
16786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
16787         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
16788         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
16789         REPLACE_CLOSEDIR.
16790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
16791         * modules/sys_stat (Makefile.am): Substitute correct witness.
16792         * modules/dirent (Makefile.am): Likewise.
16793         * modules/unistd (Makefile.am): Likewise.
16794         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
16795         * lib/unistd.in.h (dup): Likewise.
16796         * lib/sys_stat.in.h (fstat): Likewise.
16797
16798         maint: ignore gnulib-tool temp files
16799         * .gitignore: Ignore files created during gnulib-tool --test.
16800
16801 2009-09-13  Jim Meyering  <meyering@redhat.com>
16802
16803         posixtm: don't reject a time that specify "60" as the number of seconds
16804         * lib/posixtm.c (posixtime): The code to reject invalid dates
16805         would also reject a time specified with the .60 suffix.
16806         But POSIX allows that, in order to accommodate leap seconds.
16807         So don't reject it.
16808         (main): Adjust tests accordingly.
16809         * modules/posixtm (Depends-on): Add stpcpy.
16810
16811 2009-09-11  Jim Meyering  <meyering@redhat.com>
16812
16813         announce-gen: include [$release_type] in emitted Subject:
16814         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
16815         e.g., [stable] in the emitted Subject: line.
16816
16817 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16818
16819         Remove obsolete macros from several modules.
16820         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
16821         obsolete Autoconf macros with their modern counterparts.
16822         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
16823         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
16824         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
16825         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
16826         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
16827         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16829         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16830         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16831         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
16832         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16833         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16834         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
16835         * m4/sockets.m4 (gl_SOCKETS): Likewise.
16836         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
16837         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
16838         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
16839         * m4/time_r.m4 (gl_TIME_R): Likewise.
16840         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16841         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
16842         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16843
16844         Fix copyright header in build-aux scripts.
16845         * build-aux/git-version-gen: Fix copyright header to match GPLv3
16846         recommendation.
16847         * build-aux/ncftpput-ftp: Likewise.
16848         * build-aux/update-copyright: Likewise.
16849
16850 2009-09-09  Eric Blake  <ebb9@byu.net>
16851
16852         test-link: allow Linux choice of errno
16853         * tests/test-link.c (main): Relax test for alternate error.
16854
16855         strndup: fix improper m4 caching
16856         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
16857         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
16858         (gl_PREREQ_STRNDUP): Delete.
16859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
16860         * modules/string (Makefile.am): Substitute it.
16861         * lib/string.in.h (strndup): Modernize prototype.
16862
16863         getcwd: port to mingw
16864         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
16865         different from the POSIX assumptions made throughout the getcwd
16866         module; fortunately, the mingw getcwd does not need replacement.
16867         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
16868         * modules/getcwd-tests: New test.
16869         * tests/test-getcwd.c: Likewise.
16870
16871         link: fix platform bugs
16872         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
16873         * lib/link.c (link): Work around them.  Fix related mingw bug.
16874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
16875         * modules/unistd (Makefile.am): Substitute it.
16876         * lib/unistd.in.h (link): Declare replacement.
16877         * doc/posix-functions/link.texi (link): Document this.
16878         * modules/link (Depends-on): Add strdup-posix, sys_stat.
16879
16880         test-link: consolidate into single C program, test more cases
16881         * tests/test-link.sh: Delete.
16882         * tests/test-link.c: Test more error conditions.  Exposes bugs on
16883         at least Cygwin and Solaris.
16884         * modules/link-tests (Files): Remove unused file.
16885         (Depends-on): Add errno, sys_stat.
16886         (Makefile.am): Simplify.
16887
16888 2009-09-08  Bruno Haible  <bruno@clisp.org>
16889
16890         Work around towlower, towupper bug on mingw.
16891         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
16892         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
16893         * doc/posix-functions/towlower.texi: Mention the mingw bug.
16894         * doc/posix-functions/towupper.texi: Likewise.
16895         Reported by Eric Blake.
16896
16897 2009-09-08  Jim Meyering  <meyering@redhat.com>
16898
16899         build: don't try to run autoheader if we don't use it
16900         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
16901         is not used in configure.ac.
16902
16903 2009-09-08  Eric Blake  <ebb9@byu.net>
16904
16905         euidaccess: fix compilation error
16906         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
16907
16908         rawmemchr: relax license
16909         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
16910         okay.
16911         Reported by Jim Meyering.
16912
16913         mkfifoat: new module
16914         * modules/mkfifoat: New file.
16915         * lib/mkfifoat.c: Likewise.
16916         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
16917         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16918         * modules/sys_stat (Makefile.am): Use them.
16919         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
16920         * MODULES.html.sh (File system functions): Mention module.
16921         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16922         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16923         * modules/mkfifoat-tests: New test.
16924         * tests/test-mkfifoat.c: Likewise.
16925
16926         strchrnul: relax license
16927         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
16928         okay.
16929         Reported by Jim Meyering.
16930
16931 2009-09-08  Eric Blake  <ebb9@byu.net>
16932
16933         fstatat: fix compilation on Solaris
16934         * lib/fstatat.c (includes): Add fcntl.h.
16935         Reported by Pádraig Brady.
16936
16937 2009-09-07  Eric Blake  <ebb9@byu.net>
16938
16939         rename: modernize replacement
16940         * modules/rename (Depends-on): Add stdio.
16941         (configure.ac): Declare witness.
16942         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
16943         stdio take care of replacement.
16944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
16945         * modules/stdio (Makefile.am): Substitute them.
16946         * lib/stdio.in.h (rename): Declare replacement.
16947         * lib/rename.c (includes): Allow cross-compilation to non-windows
16948         machines.
16949         * doc/posix-functions/rename.texi (rename): Improve
16950         documentation.
16951
16952         stdio: sort witness names
16953         * modules/stdio (Makefile.am): Sort replacements.
16954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16955         * lib/stdio.in.h: Likewise.
16956
16957         getcwd: minor cleanups
16958         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
16959         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
16960
16961         openat: provide more convenience names
16962         * modules/faccessat (configure.ac): Add C witness.
16963         * lib/unistd.in.h (readlinkat): Fix typo.
16964         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
16965         convenience wrappers.
16966         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
16967         wrappers in syntax checks.
16968
16969 2009-09-06  Eric Blake  <ebb9@byu.net>
16970
16971         doc: fix comments in recent patches
16972         * lib/faccessat.c: Mention correct function.
16973         * lib/fchmodat.c: Likewise.
16974         * lib/fchownat.c: Likewise.
16975         * lib/symlinkat.c: Likewise.
16976         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
16977         constants.
16978
16979         faccessat, symlinkat: continue cleanup of previous patch
16980         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
16981         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16982         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
16983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
16984         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
16985         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
16986         set.
16987
16988 2009-09-06  Bruno Haible  <bruno@clisp.org>
16989
16990         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
16991         (fstatat): Declare if GNULIB_FSTATAT is set.
16992         (mkdirat): Declare if GNULIB_MKDIRAT is set.
16993         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
16994         (unlinkat): Declare if GNULIB_UNLINKAT is set.
16995         * modules/fcntl-h (Files): Remove m4/openat.m4.
16996         * modules/sys_stat (Files): Remove m4/openat.m4.
16997         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
16998         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
16999         * modules/unistd (Files): Remove m4/openat.m4.
17000         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17001         GNULIB_OPENAT.
17002         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17003         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17004         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17005         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17006         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17007         gl_OPENAT_DEFAULTS.
17008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17009         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17010         Don't require gl_OPENAT_DEFAULTS.
17011         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17012         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17013         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17014         (gl_OPENAT_DEFAULTS): Remove macro.
17015
17016 2009-09-06  Bruno Haible  <bruno@clisp.org>
17017
17018         * modules/openat (configure.ac): Remove unneeded witness.
17019
17020 2009-09-06  Bruno Haible  <bruno@clisp.org>
17021
17022         Set errno to ENOSYS when a function is entirely unsupported.
17023         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17024         EOPNOTSUPP.
17025         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17026         * modules/chown (Depends-on): Remove errno.
17027
17028 2009-09-06  Bruno Haible  <bruno@clisp.org>
17029
17030         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17031
17032 2009-09-06  Bruno Haible  <bruno@clisp.org>
17033
17034         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17035
17036 2009-09-06  Ben Pfaff  <blp@gnu.org>
17037             Bruno Haible  <bruno@clisp.org>
17038
17039         Work around a glibc bug in strtok_r.
17040         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17041         Undefine if UNDEFINE_STRTOK_R is set.
17042         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17044         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17045         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17046         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17047         UNDEFINE_STRTOK_R.
17048         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17049
17050 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17051
17052         exclude: minor fix
17053         * lib/exclude.c: Include wctype.h
17054
17055 2009-09-06  Akim Demaille  <demaille@gostai.com>
17056
17057         bootstrap: improve error message
17058         * build-aux/bootstrap (find_tool): Upon failure, report the list
17059         of candidates.
17060         Honor the initial value of the envvar.
17061
17062 2009-09-05  Eric Blake  <ebb9@byu.net>
17063
17064         symlinkat: new module
17065         * modules/symlinkat: New file.
17066         * lib/symlinkat.c: Likewise.
17067         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17069         * modules/unistd (Makefile.am): Use them.
17070         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17071         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17072         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17073         * MODULES.html.sh (File system functions): Mention module.
17074         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17075         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17076         * modules/symlinkat-tests: New test.
17077         * tests/test-symlinkat.c: Likewise.
17078
17079         test-openat-safer: add more checks
17080         * tests/test-openat-safer.c (main): Check more code paths.
17081
17082 2009-09-05  Jim Meyering  <meyering@redhat.com>
17083
17084         syntax-check: detect unnecessary inclusion of openat.h
17085         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17086
17087 2009-09-05  Bruno Haible  <bruno@clisp.org>
17088
17089         Support towlower, towupper.
17090         * doc/posix-functions/towlower.texi: Mention module wctype.
17091         * doc/posix-functions/towupper.texi: Likewise.
17092         * lib/wctype.in.h (towlower, towupper): New functions.
17093         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17094         (ASSERT): New macro.
17095         (e): New variable.
17096         (main): Test also towlower, towupper. Test WEOF argument.
17097         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17098
17099 2009-09-05  Bruno Haible  <bruno@clisp.org>
17100
17101         Fix conversion behaviour when the input is invalid.
17102         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17103         mark occurring in first pass of indirect conversion.
17104         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17105         input.
17106         Found by clang's static analyzer.
17107
17108 2009-09-05  Bruno Haible  <bruno@clisp.org>
17109
17110         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17111         where direct conversion is possible.
17112
17113 2009-09-04  Eric Blake  <ebb9@byu.net>
17114
17115         openat: fail with ENOENT on empty name
17116         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17117         buffer.
17118
17119         link-follow: fix logic bug in prior patch
17120         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17121         reversed sense of yes and no in prior patch.  Avoid confusing
17122         compilation failure with desired semantics.
17123
17124         link-follow: accomodate mingw and cross-compilation
17125         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17126         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17127         cross-compilation results to -1, to make linkat easier to
17128         implement when cross-compiling.  Trivially support mingw.
17129         * modules/link-follow (configure.ac): Call new name.
17130         * NEWS: Mention this.
17131
17132 2009-09-03  Eric Blake  <ebb9@byu.net>
17133
17134         faccessat: compile replacement
17135         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17136         needed.
17137
17138         fts: fix compilation error
17139         * lib/fts.c (includes): Re-add "openat.h", for
17140         openat_needs_fchdir.
17141
17142         faccessat: new module
17143         * modules/faccessat: New file.
17144         * lib/faccessat.c: Likewise.
17145         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17147         * modules/unistd (Makefile.am): Use it.
17148         * lib/unistd.in.h (faccessat): Declare it.
17149         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17150         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17151         * MODULES.html.sh (File system functions): Mention it.
17152         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17153         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17154
17155         euidaccess: prefer POSIX over non-standard implementation
17156         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17157         * lib/euidaccess.c (euidaccess): Use it if available.
17158
17159         openat: make template easier to use
17160         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17161         AT_FUNC_F2 to be undefined.
17162         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17163         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17164         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17165         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17166         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17167         Likewise.
17168         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17169         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17170         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17171         Likewise.
17172
17173         openat: declare in POSIX headers
17174         * NEWS: Mention this.
17175         * modules/openat (configure.ac): Declare witnesses.
17176         (Depends-on): Add fcntl-h, sys_stat, unistd.
17177         (Include): Mention correct headers.
17178         * modules/fcntl-h (Depends-on): Add link-warning.
17179         (Files): Add openat.m4.
17180         (Makefile.am): Substitute witnesses.
17181         * modules/sys_stat (Files, Makefile.am): Likewise.
17182         * modules/unistd (Files, Makefile.am): Likewise.
17183         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17184         (gl_OPENAT_DEFAULTS): New macro.
17185         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17187         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17188         (SYS_STAT_H): Remove unused variable.
17189         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17190         * lib/fcntl--.h (includes): Remove unneeded header.
17191         * lib/openat-safer.c (includes): Likewise.
17192         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17193         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17194         appropriate headers.
17195         (__OPENAT_PREFIX): Delete.
17196         * lib/fcntl.in.h (openat): Provide declaration.
17197         (AT_FDCWD): Fix Solaris bug.
17198         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17199         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17200         * lib/fchmodat.c (includes):  Adjust to find declaration.
17201         * lib/fchownat.c (includes): Likewise.
17202         * lib/mkdirat.c (includes): Likewise.
17203         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17204         still visible.
17205
17206 2009-09-02  Eric Blake  <ebb9@byu.net>
17207
17208         errno: use consistently
17209         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17210         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17211         * lib/canonicalize.c (ELOOP): Likewise.
17212         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17213         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17214         * lib/lchown.c (EOPNOTSUPP): Likewise.
17215         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17216         * lib/savewd.c (ESTALE): Likewise.
17217         * lib/settime.c (ENOSYS): Likewise.
17218         * lib/utimens.c (ENOSYS): Likewise.
17219         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17220         * lib/chdir-safer.c (ELOOP): Likewise.
17221         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17222         * modules/c-stack (Depends-on): Add errno.
17223         * modules/canonicalize (Depends-on): Likewise.
17224         * modules/chdir-safer (Depends-on): Likewise.
17225         * modules/fdopendir (Depends-on): Likewise.
17226         * modules/inet_ntop (Depends-on): Likewise.
17227         * modules/inet_pton (Depends-on): Likewise.
17228         * modules/lchown (Depends-on): Likewise.
17229         * modules/openat (Depends-on): Likewise.
17230         * modules/savewd (Depends-on): Likewise.
17231         * modules/settime (Depends-on): Likewise.
17232         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17233
17234         fts: avoid leaking fds
17235         * modules/fts (Depends-on): Add cloexec.
17236         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17237         flag.
17238
17239         fts: make directory fds more robust
17240         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17241         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17242
17243         backupfile, chdir-long, fts, savedir: make safer
17244         * lib/backupfile.c (includes): Use "dirent--.h", since
17245         numbered_backup can write to stderr during readdir.
17246         * lib/savedir.c (includes): Likewise.
17247         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
17248         emulation can write to stderr on failure.
17249         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
17250         * lib/getcwd.c: Document why opendir_safer is unused.
17251         * lib/glob.c: Likewise.
17252         * lib/scandir.c: Likewise.
17253         * lib/openat-proc.c: Likewise, for open_safer.
17254         * modules/backupfile (Depends-on): Add dirent-safer.
17255         * modules/savedir (Depends-on): Likewise.
17256         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
17257         * modules/chdir-long (Depends-on): Add openat-safer.
17258
17259         openat-safer: new module
17260         * modules/openat-safer: New file.
17261         * lib/openat-safer.c: Likewise.
17262         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
17263         * lib/fcntl-safer.h (openat_safer): Declare.
17264         * lib/fcntl--.h (openat): Override.
17265         * MODULES.html.sh (File descriptor based I/O): Mention it.
17266         * lib/openat.h: Add double-inclusion guards.
17267         * lib/openat.c (includes): Only include "fcntl-safer.h", not
17268         "fcntl--.h", so we can implement openat.
17269         * modules/openat-safer-tests: New test.
17270         * tests/test-openat-safer.c: New file.
17271
17272         dirent-safer: new module
17273         * modules/dirent-safer: New file.
17274         * lib/dirent--.h: Likewise.
17275         * lib/dirent-safer.h: Likewise.
17276         * lib/opendir-safer.c: Likewise.
17277         * m4/dirent-safer.m4: Likewise.
17278         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
17279         * modules/dirent-safer-tests: New test.
17280         * tests/test-dirent-safer.c: New file.
17281         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
17282
17283         fdopendir: optimize on mingw
17284         * lib/unistd.in.h (_gl_directory_name): New prototype.
17285         * lib/fchdir.c (_gl_directory_name): Implement it.
17286         (fchdir): Use it to simplify implementation.
17287         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17288         fchdir, when available, to avoid calling [f]chdir().
17289
17290         fdopendir: split into its own module
17291         * lib/openat.c (fdopendir): Move...
17292         * lib/fdopendir.c: ...into new file.
17293         * modules/fdopendir: New module.
17294         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17295         * modules/openat (Depends-on): Add fdopendir.
17296         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17297         fdopendir here.
17298         * modules/savedir (Depends-on): Only need fdopendir, not full
17299         openat.
17300         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17301         * lib/openat.h (fdopendir): Drop prototype.
17302         * lib/dirent.in.h (fdopendir): Provide prototype.
17303         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17304         * modules/dirent (Makefile.am): Substitute them.
17305         * MODULES.html.sh (File system functions): Mention it.
17306         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17307         * modules/fdopendir-tests: New file.
17308         * tests/test-fdopendir.c: Likewise.
17309
17310         fchdir: use more consistent macro convention
17311         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17312         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17313         REPLACE_FCHDIR, rather than relying on config.h macros.
17314         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17315         inside a single make-time REPLACE_FCHDIR block, rather than using
17316         the config.h FCHDIR_REPLACEMENT.
17317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17318         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17319         Manage fstat replacement.
17320         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17321         REPLACE_FCHDIR.
17322         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17323         (Makefile.am): Substitute REPLACE_FCHDIR.
17324         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17325         FCHDIR_REPLACEMENT.
17326         * lib/dup-safer.c (dup_safer): Likewise.
17327         * lib/dup2.c (rpl_dup2): Likewise.
17328         * lib/dup3.c (rpl_dup3): Likewise.
17329         * lib/open.c (rpl_open): Likewise.
17330
17331         fchdir: simplify error handling, and support dup3
17332         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17333         stdbool, malloc-posix, realloc-posix.
17334         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17335         (ensure_dirs_slot): Return false on allocation failure.
17336         (rpl_dup2): Delete.
17337         (_gl_register_dup): New function.
17338         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17339         (_gl_register_fd): Close fd on allocation failure.
17340         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17341         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17342         prototype.
17343         (rpl_dup2_fchdir): Delete prototype.
17344         * lib/open.c (open): Update caller.
17345         * lib/dup2.c (dup2): Track fchdir metadata.
17346         * lib/dup3.c (dup3): Likewise.
17347         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17349
17350 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17351
17352         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17353         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17354         don't pass arguments to AC_OUTPUT.
17355
17356 2009-09-02  Bruno Haible  <bruno@clisp.org>
17357
17358         * modules/mkdtemp (License): Relicense under LGPLv2+.
17359         Reported by Paolo Bonzini.
17360
17361 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17362
17363         Replace uses of obsolete autoconf macros in Jim's modules.
17364         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17365         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17366         can evoke a warning from autoconf when run with -Wobsolete
17367         enabled.  They were declared obsolete for good reasons (see
17368         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17369         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17370         should not continue using the deprecated macros.
17371         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17372         obsolete Autoconf macros with modern counterparts.
17373         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17374         * m4/dos.m4 (gl_AC_DOS): Likewise.
17375         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17376         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17377         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17378         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17379         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17380         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17381         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17382         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17383         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17384         Likewise.
17385         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17386         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17387         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17388         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17389         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17390         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17391
17392 2009-09-01  Eric Blake  <ebb9@byu.net>
17393
17394         fchdir: fix off-by-one bug in previous patch
17395         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17396         (_gl_unregister_fd): Delete useless if.
17397
17398 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17399
17400         maint.mk: sort the list of syntax-check rules
17401         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17402         easier to get a sense of progress when the rules are run sequentially
17403         and take a long time.
17404
17405 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17406
17407         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17408         * modules/netinet_in: Likewise.
17409         * modules/sys_file: Likewise.
17410         * modules/sys_ioctl: Likewise.
17411         * modules/sys_select: Likewise.
17412         * modules/sys_socket: Likewise.
17413         * modules/sys_stat: Likewise.
17414         * modules/sys_time: Likewise.
17415         * modules/sys_times: Likewise.
17416         * modules/sys_utsname: Likewise.
17417         * modules/sys_wait: Likewise.
17418
17419 2009-09-01  Jim Meyering  <meyering@redhat.com>
17420
17421         fts: help ensure that return values are not ignored
17422         * lib/fts_.h (__GNUC_PREREQ): Define.
17423         (__attribute_warn_unused_result__): Define.
17424         (fts_children, fts_close, fts_open, fts_read): Declare with
17425         __attribute_warn_unused_result__.
17426
17427         fts: fts_close now fails also when closing a dir file descriptor fails
17428         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
17429         and propagate to caller, along with errno.
17430
17431         announce-gen: correct formatting in --help output
17432         * build-aux/announce-gen (usage): Move the one-line description in
17433         --help output "up", to where it belongs, just after Usage:.
17434
17435 2009-08-31  Eric Blake  <ebb9@byu.net>
17436
17437         fchdir: port to mingw
17438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
17439         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
17440         opened, then use a substitute.
17441         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
17442         replacement.
17443         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
17444         (_gl_register_fd): No need to check stat if open already filters
17445         all directories.
17446         (fchdir): Fix error condition to match POSIX.
17447         * modules/fchdir (Depends-on): Add sys_stat.
17448         * doc/posix-functions/open.texi (open): Document the limitation.
17449         * modules/fchdir-tests: New file.
17450         * tests/test-fchdir.c: Likewise.
17451
17452         canonicalize: allow cross-testing from cygwin to mingw
17453         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
17454         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
17455         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
17456         Likewise.
17457         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
17458         target does not support symlinks.
17459         * tests/test-canonicalize-lgpl.sh: Likewise.
17460
17461         chown: avoid compilation warning on mingw
17462         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
17463         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
17464         mingw.
17465         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17466         * modules/chown (Depends-on): Add errno.
17467
17468 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17469
17470         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
17471         command.
17472
17473 2009-08-31  Jim Meyering  <meyering@redhat.com>
17474
17475         canonicalize: remove useless initialization
17476         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
17477         initialization of local, "end".
17478
17479 2009-08-30  Bruno Haible  <bruno@clisp.org>
17480
17481         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
17482         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
17483         ENOSYS.
17484
17485 2009-08-30  Bruno Haible  <bruno@clisp.org>
17486
17487         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
17488         /usr/xpg4/bin/tr when it exists.
17489         * tests/test-pipe-filter-gi1.sh: Likewise.
17490
17491 2009-08-30  Bruno Haible  <bruno@clisp.org>
17492
17493         Work around deficient /usr/bin/id program on Solaris.
17494         * tests/test-file-has-acl.sh (ID): New variable.
17495         * tests/test-set-mode-acl.sh (ID): Likewise.
17496         * tests/test-copy-acl.sh (ID): Likewise.
17497         * tests/test-copy-file.sh (ID): Likewise.
17498
17499 2009-08-30  Bruno Haible  <bruno@clisp.org>
17500
17501         New module 'xstriconveh'.
17502         * lib/xstriconveh.h: New file.
17503         * lib/xstriconveh.c: New file.
17504         * modules/xstriconveh: New file.
17505
17506 2009-08-30  Bruno Haible  <bruno@clisp.org>
17507
17508         Make it easier to use mem_cd_iconveh.
17509         * lib/striconveh.h (iconveh_t): New type.
17510         (iconveh_open, iconveh_close): New declarations.
17511         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17512         with a single 'const iconveh_t *' argument.
17513         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
17514         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17515         with a single 'const iconveh_t *' argument.
17516         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
17517         * tests/test-striconveh.c (main): Update.
17518         * NEWS: Mention the change.
17519
17520 2009-08-30  Bruno Haible  <bruno@clisp.org>
17521
17522         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
17523         problem.
17524
17525 2009-08-30  Bruno Haible  <bruno@clisp.org>
17526
17527         Work around iconv_open problem on Solaris.
17528         * lib/iconv_open-solaris.gperf: New file.
17529         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
17530         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
17531         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
17532         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
17533         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
17534         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
17535
17536 2009-08-29  Jim Meyering  <meyering@redhat.com>
17537
17538         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
17539         * top/maint.mk (cvs-check): Remove target; it was just an alias
17540         to the better-named vc-diff-check.
17541         (maintainer-distcheck): Remove rule.  It was used only from
17542         the (alpha/beta/major) target, and all of its commands but one
17543         were coreutils-specific.
17544         (vc-dist): Remove rule.
17545         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
17546         Run vc-diff-check, not vc-dist.
17547         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
17548
17549 2009-08-27  Bruno Haible  <bruno@clisp.org>
17550
17551         * tests/test-bitrotate.c (main): Remove test that uses a shift count
17552         of 0.
17553
17554 2009-08-27  Bruno Haible  <bruno@clisp.org>
17555
17556         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
17557         compilers.
17558         * doc/func.texi: Document the SunPRO C bug.
17559
17560 2009-08-27  Bruno Haible  <bruno@clisp.org>
17561
17562         Fix link error on Solaris.
17563         * tests/test-parse-duration.c (xstrdup): Remove function.
17564
17565 2009-08-26  Pádraig Brady  <P@draigbrady.com>
17566
17567         ignore-value: handle pointer types, too
17568         * lib/ignore-value.h (__attribute__): Remove definition.
17569         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
17570         of a more concise and more-often effective "(void) i" statement.
17571         (ignore_ptr): New function to suppress warnings from functions that
17572         return pointers, and to make it explicit that one function doesn't
17573         handle all cases.
17574
17575 2009-08-25  Bruno Haible  <bruno@clisp.org>
17576
17577         dup2: work around a Linux bug.
17578         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
17579         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
17580         * doc/posix-functions/dup2.texi: Mention the Linux bug.
17581         Reported by Simon Josefsson.
17582
17583 2009-08-25  Jim Meyering  <meyering@redhat.com>
17584
17585         libguestfs uses gnulib
17586         * users.txt: Add libguestfs.
17587
17588 2009-08-24  Eric Blake  <ebb9@byu.net>
17589
17590         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
17591         * lib/pipe2.c (includes): Add binary-io.h.
17592         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
17593
17594 2009-08-24  Bruno Haible  <bruno@clisp.org>
17595
17596         Tolerate declared but missing accept4 syscall.
17597         * lib/accept4.c (accept4): Invoke original accept4 function first, if
17598         available.
17599         * lib/sys_socket.in.h (accept4): If the function is already present,
17600         override it.
17601         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
17602         * modules/accept4 (Makefile.am): Compile accept4.c always.
17603         Reported by Paolo Bonzini and Eric Blake.
17604
17605 2009-08-23  Bruno Haible  <bruno@clisp.org>
17606
17607         New module 'accept4'.
17608         * lib/sys_socket.in.h (accept4): New declaration.
17609         * lib/accept4.c: New file.
17610         * m4/accept4.m4: New file.
17611         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17612         GNULIB_ACCEPT4, HAVE_ACCEPT4.
17613         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
17614         HAVE_ACCEPT4.
17615         * modules/accept4: New file.
17616         * doc/glibc-functions/accept4.texi: Mention the new module.
17617
17618 2009-08-24  Jim Meyering  <meyering@redhat.com>
17619
17620         progname: also set global program_invocation_name, when possible
17621         Before this change, a libtool-enabled program that calls glibc's
17622         error function would report the program name as
17623         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
17624         * modules/progname (configure.ac): Check for a declaration of
17625         program_invocation_name.
17626         * lib/progname.c:  Include <errno.h>.
17627         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
17628         Set program_invocation_name.
17629
17630 2009-08-23  Bruno Haible  <bruno@clisp.org>
17631
17632         * lib/dup3.c: Include <string.h>.
17633
17634 2009-08-23  Bruno Haible  <bruno@clisp.org>
17635
17636         * lib/dup3.c (dup3): Test only once whether the system actually exists.
17637         * lib/pipe2.c (pipe2): Likewise.
17638         Suggested by Eric Blake.
17639
17640 2009-08-23  Bruno Haible  <bruno@clisp.org>
17641
17642         Tolerate declared but missing dup3 syscall.
17643         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
17644         * lib/unistd.in.h (dup3): If the function is already present,
17645         override it.
17646         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
17647         * modules/dup3 (Makefile.am): Compile dup3.c always.
17648         Reported by Paolo Bonzini.
17649
17650 2009-08-23  Bruno Haible  <bruno@clisp.org>
17651
17652         Tolerate declared but missing pipe2 syscall.
17653         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
17654         available.
17655         * lib/unistd.in.h (pipe2): If the function is already present,
17656         override it.
17657         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
17658         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
17659         Reported by Paolo Bonzini.
17660
17661 2009-08-23  Bruno Haible  <bruno@clisp.org>
17662
17663         * lib/pipe2.c (pipe2): Move #ifs inside function.
17664
17665 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17666
17667         quotearg: document limitations of quote_these_too
17668         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
17669         those limitations are created.
17670         * lib/quotearg.h (set_char_quoting): Document that digits and
17671         letters that are special after backslash are not permitted.
17672         (quotearg_char): Cross-reference set_char_quoting documentation.
17673
17674 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
17675
17676         quotearg: implement custom_quoting_style
17677         * lib/quotearg.c: (struct quoting_options): Add left_quote and
17678         right_quote fields.
17679         (set_custom_quoting): New public function.
17680         (quotearg_buffer_restyled): Add left_quote and right_quote
17681         arguments, handle them very much like locale quoting, and update
17682         all uses.
17683         (quotearg_n_custom): New public function.
17684         (quotearg_n_custom_mem): New public function.
17685         (quotearg_custom): New public function.
17686         (quotearg_custom_mem): New public function.
17687         * lib/quotearg.h: Prototype and document new public functions.
17688         (enum quoting_style): For escape_quoting_style and
17689         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
17690         ignored even though they're otherwise like c_quoting_style.
17691         Add custom_quoting_style member and document with comparison to
17692         clocale_quoting_style.
17693         * tests/test-quotearg.c (custom_quotes): New array.
17694         (custom_results): New array.
17695         (main): Extend to test custom quoting.
17696
17697 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17698
17699         quotearg: fix right quote escaping when it's in quote_these_too
17700         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
17701         quote, be sure to prepend only one backslash.
17702         * tests/test-quotearg.c (use_quote_double_quotes): New function.
17703         (main): Test it.
17704
17705 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17706
17707         quotearg-tests: test escaping of embedded locale quotes
17708         * tests/test-quotearg.c (struct result_strings): Add member for
17709         new input.
17710         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
17711         (inputs): Add new input.
17712         (results_g): Add expected results.
17713         (flag_results): Likewise.
17714         (locale_results): Likewise.
17715         (compare_strings): Check those.
17716
17717 2009-08-23  Bruno Haible  <bruno@clisp.org>
17718
17719         Tests for module 'dup3'.
17720         * modules/dup3-tests: New file.
17721         * tests/test-dup3.c: New file.
17722
17723         New module 'dup3'.
17724         * lib/unistd.in.h (dup3): New declaration.
17725         * lib/dup3.c: New file.
17726         * m4/dup3.m4: New file.
17727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
17728         HAVE_DUP3.
17729         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
17730         * modules/dup3: New file.
17731         * doc/glibc-functions/dup3.texi: Mention the new module.
17732
17733 2009-08-23  Bruno Haible  <bruno@clisp.org>
17734
17735         Tweak the dup2 test.
17736         * tests/test-dup2.c (main): Create the test file empty. Verify that an
17737         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
17738         the test file is still empty. Fix argument order of lseek.
17739
17740 2009-08-23  Bruno Haible  <bruno@clisp.org>
17741
17742         Avoid test link errors when the modules getopt-gnu, gettext are used.
17743         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
17744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17745
17746 2009-08-23  Bruno Haible  <bruno@clisp.org>
17747
17748         Fix getdtablesize() on mingw.
17749         * lib/getdtablesize.c (getdtablesize): Implement differently.
17750         * lib/unistd.in.h (getdtablesize): Improve comment.
17751
17752 2009-08-23  Bruno Haible  <bruno@clisp.org>
17753
17754         New module 'mkostemp'.
17755         Based on Ulrich Drepper's 2007-08-10 change in glibc.
17756         * lib/stdlib.in.h (mksotemp): New declaration.
17757         * lib/mkostemp.c: New file, from glibc with modifications.
17758         * lib/tempname.h (GT_FILE): Remove outdated comment.
17759         (gen_tempname): Add flags argument.
17760         * lib/tempname.c (__GT_BIGFILE): Remove macro.
17761         (__GT_FILE): Map to 1.
17762         (small_open, large_open): Remove macros.
17763         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
17764         * lib/mkstemp.c (mkstemp): Update.
17765         * lib/mkdtemp.c (mkdtemp): Likewise.
17766         * m4/mkostemp.m4: New file.
17767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
17768         HAVE_MKOSTEMP.
17769         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
17770         HAVE_MKOSTEMP.
17771         * modules/mkostemp: New file, based on modules/mkstemp.
17772         * doc/glibc-functions/mkostemp.texi: Mention the new module.
17773         * NEWS: Mention the change.
17774
17775 2009-08-23  Bruno Haible  <bruno@clisp.org>
17776
17777         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
17778         Reported by Eric Blake.
17779
17780 2009-08-23  Bruno Haible  <bruno@clisp.org>
17781
17782         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
17783         Reported by Eric Blake.
17784
17785 2009-08-23  Bruno Haible  <bruno@clisp.org>
17786
17787         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
17788         * modules/pipe2 (Depends-on): Likewise.
17789
17790 2009-08-23  Eric Blake  <ebb9@byu.net>
17791
17792         fcntl-h: add O_TTY_INIT support
17793         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
17794         * tests/test-fcntl-h.c (o): Test it.
17795         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17796
17797         fcntl-h: rename from fcntl, in preparation for fcntl(2)
17798         * modules/fcntl: Move <fcntl.h> header replacement...
17799         * modules/fcntl-h: ...to new name, so as not to collide with
17800         like-named function.
17801         * tests/test-fcntl.c: Rename...
17802         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
17803         * modules/fcntl-tests: Rename...
17804         * modules/fcntl-h-tests: ...to this.  Update test file name.
17805         * modules/chdir-long (Depends-on): Update clients.
17806         * modules/chdir-safer (Depends-on): Likewise.
17807         * modules/fcntl-safer (Depends-on): Likewise.
17808         * modules/fts (Depends-on): Likewise.
17809         * modules/mkancesdirs (Depends-on): Likewise.
17810         * modules/mkdir-p (Depends-on): Likewise.
17811         * modules/open (Depends-on): Likewise.
17812         * modules/savewd (Depends-on): Likewise.
17813         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
17814         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17815
17816 2009-08-22  Bruno Haible  <bruno@clisp.org>
17817
17818         * modules/binary-io (License): Relicense under LGPL.
17819         * modules/pipe2 (License): Likewise.
17820
17821 2009-08-22  Bruno Haible  <bruno@clisp.org>
17822
17823         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
17824         return value.
17825         * lib/pipe-filter-gi.c (filter_init): Likewise.
17826         Reported by Eric Blake.
17827
17828 2009-08-22  Bruno Haible  <bruno@clisp.org>
17829
17830         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
17831         * modules/pipe (Depends-on): Add pipe2.
17832
17833 2009-08-22  Bruno Haible  <bruno@clisp.org>
17834
17835         Tests for module 'pipe2'.
17836         * modules/pipe2-tests: New file.
17837         * tests/test-pipe2.c: New file.
17838
17839         New module 'pipe2'.
17840         * lib/unistd.in.h (pipe2): New declaration.
17841         * lib/pipe2.c: New file.
17842         * m4/pipe2.m4: New file.
17843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
17844         HAVE_PIPE2.
17845         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
17846         * modules/pipe2: New file.
17847         * doc/glibc-functions/pipe2.texi: Mention the new module.
17848
17849 2009-08-22  Bruno Haible  <bruno@clisp.org>
17850
17851         Reference some new glibc functions.
17852         * doc/glibc-functions/accept4.texi: New file.
17853         * doc/glibc-functions/dup3.texi: New file.
17854         * doc/glibc-functions/mkostemp.texi: New file.
17855         * doc/glibc-functions/pipe2.texi: New file.
17856         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
17857         (Glibc sys/socket.h): Refer to accept4.
17858         (Glibc unistd.h): Refer to dup3, pipe2.
17859         Reported by Eric Blake.
17860
17861 2009-08-22  Jim Meyering  <meyering@redhat.com>
17862             Bruno Haible  <bruno@clisp.org>
17863
17864         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
17865         This makes it so packages using automake-1.11's silent-rules option
17866         can print e.g., a single "GEN    configmake.h" line, rather than
17867         the 30+ statements that perform the job.  If you want to see the
17868         actual commands, you can still run "make V=1".
17869         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
17870         so that make output is abbreviated when those variables are defined
17871         appropriately.
17872         * modules/argz: Likewise.
17873         * modules/arpa_inet: Likewise.
17874         * modules/byteswap: Likewise.
17875         * modules/configmake: Likewise.
17876         * modules/dirent: Likewise.
17877         * modules/errno: Likewise.
17878         * modules/fcntl: Likewise.
17879         * modules/float: Likewise.
17880         * modules/fnmatch: Likewise.
17881         * modules/getopt-posix: Likewise.
17882         * modules/glob: Likewise.
17883         * modules/iconv_open: Likewise.
17884         * modules/inttypes: Likewise.
17885         * modules/localcharset: Likewise.
17886         * modules/locale: Likewise.
17887         * modules/math: Likewise.
17888         * modules/netdb: Likewise.
17889         * modules/netinet_in: Likewise.
17890         * modules/poll: Likewise.
17891         * modules/posix_spawnp-tests: Likewise.
17892         * modules/sched: Likewise.
17893         * modules/search: Likewise.
17894         * modules/selinux-h: Likewise.
17895         * modules/signal: Likewise.
17896         * modules/spawn: Likewise.
17897         * modules/stdarg: Likewise.
17898         * modules/stdbool: Likewise.
17899         * modules/stddef: Likewise.
17900         * modules/stdint: Likewise.
17901         * modules/stdio: Likewise.
17902         * modules/stdlib: Likewise.
17903         * modules/string: Likewise.
17904         * modules/strings: Likewise.
17905         * modules/sys_file: Likewise.
17906         * modules/sys_ioctl: Likewise.
17907         * modules/sys_select: Likewise.
17908         * modules/sys_socket: Likewise.
17909         * modules/sys_stat: Likewise.
17910         * modules/sys_time: Likewise.
17911         * modules/sys_times: Likewise.
17912         * modules/sys_utsname: Likewise.
17913         * modules/sys_wait: Likewise.
17914         * modules/sysexits: Likewise.
17915         * modules/time: Likewise.
17916         * modules/unistd: Likewise.
17917         * modules/wchar: Likewise.
17918         * modules/wctype: Likewise.
17919
17920 2009-08-22  Jim Meyering  <meyering@redhat.com>
17921
17922         announce-gen: detect write failure
17923         * build-aux/announce-gen: Add Coda at end.
17924         Remove equivalent-but-more-verbose block at top.
17925
17926 2009-08-19  Akim Demaille  <demaille@gostai.com>
17927
17928         bootstrap: --help to stdout.
17929         * bootstrap (usage): Don't send --help to stderr.
17930         Use a here doc instead of a long string.
17931
17932 2009-08-21  Eric Blake  <ebb9@byu.net>
17933
17934         test-popen-safer: split from test-popen
17935         * tests/test-popen.c (main): Move...
17936         * tests/test-popen.h: ...into new file.
17937         * tests/test-popen-safer2.c: New file.
17938         * modules/popen-tests (Files): Add test-popen.h.
17939         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
17940         Suggested by Bruno Haible.
17941
17942         test-fcntl-safer: split from test-open
17943         * tests/test-open.c (main): Move...
17944         * tests/test-open.h: ...into new file.
17945         * tests/test-fcntl-safer.c: New file.
17946         * modules/open-tests (Files): Add test-open.h.
17947         * modules/fcntl-safer-tests: New file.
17948         Suggested by Bruno Haible.
17949
17950         test-fopen-safer: split from test-fopen
17951         * tests/test-fopen.c (main): Move...
17952         * tests/test-fopen.h: ...into new file.
17953         * tests/test-fopen-safer.c: New file.
17954         * modules/fopen-tests (Files): Add test-fopen.h.
17955         * modules/fopen-safer-tests: New file.
17956         Suggested by Bruno Haible.
17957
17958 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
17959
17960         popen-safer: test O_CLOEXEC at run-time.
17961         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
17962
17963 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
17964
17965         fcntl: move more flags to the header
17966         * lib/cloexec.c: Do not define FD_CLOEXEC here.
17967         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
17968         * lib/fcntl.in.h: Do both things here.
17969
17970 2009-08-21  Jim Meyering  <meyering@redhat.com>
17971
17972         consistently remove $@-t before redirecting to it
17973         * modules/argz: Remove $@-t and $@ before redirecting to the former.
17974         * modules/alloca-opt: Likewise.
17975         * modules/byteswap: Likewise.
17976         * modules/fnmatch: Likewise.
17977         * modules/getopt-posix: Likewise.
17978         * modules/glob: Likewise.
17979         * modules/poll: Likewise.
17980         * modules/posix_spawnp-tests: Likewise.
17981         * modules/sys_socket: Likewise.
17982         * modules/sysexits: Likewise.
17983
17984 2009-08-21  Eric Blake  <ebb9@byu.net>
17985
17986         popen: simplify access to original popen
17987         * lib/popen.c (rpl_popen): No need to worry about popen being a
17988         macro.
17989         Reported by Bruno Haible.
17990
17991 2009-08-20  Eric Blake  <ebb9@byu.net>
17992
17993         build: avoid some compiler warnings
17994         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
17995         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
17996         type.
17997         (new_exclude_segment, excluded_file_pattern_p)
17998         (excluded_file_name_p): Reduce scope.
17999         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18000         old-style declaration.
18001
18002 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18003
18004         * tests/test-exclude1.sh: Handle Windows EOL.
18005         * tests/test-exclude2.sh: Likewise.
18006         * tests/test-exclude3.sh: Likewise.
18007         * tests/test-exclude4.sh: Likewise.
18008         * tests/test-exclude5.sh: Likewise.
18009         * tests/test-exclude6.sh: Likewise.
18010         * tests/test-exclude7.sh: Likewise.
18011
18012 2009-08-19  Akim Demaille  <demaille@gostai.com>
18013
18014         bootstrap: find sha1sum when named gsha1sum.
18015         * bootstrap (find_tool): New.
18016         ($SHA1SUM): New.
18017         Use it.
18018
18019 2009-08-20  Jim Meyering  <meyering@redhat.com>
18020
18021         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18022         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18023         expression that converts "." in a file name to "\." in the resulting
18024         regexp.  Start with a dummy statement, so that prior shell variable
18025         definitions are expanded portably.  Reported by Simon Josefsson.
18026
18027 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18028
18029         Fix polling for writeability of a screen buffer.
18030         * lib/poll.c: Distinguish input and screen buffers for the
18031         Win32 implementation.
18032         * lib/select.c: Likewise.
18033
18034 2009-08-19  Eric Blake  <ebb9@byu.net>
18035
18036         popen-safer: prevent popen from clobbering std descriptors
18037         * modules/popen-safer: New file.
18038         * lib/popen-safer.c: Likewise.
18039         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18040         * lib/stdio--.h (popen): Provide override.
18041         * lib/stdio-safer.h (popen_safer): Provide declaration.
18042         * tests/test-popen.c (includes): Partially test this.
18043         * modules/popen-safer-tests: New file, for more tests.
18044         * tests/test-popen-safer.c: Likewise.
18045         * MODULES.html.sh (file stream based Input/Output): Mention it.
18046
18047         tests: test some of the *-safer modules
18048         * modules/fopen-safer (Depends-on): Add fopen.
18049         * modules/fcntl-safer (Depends-on): Add fcntl.
18050         * modules/stdlib-safer (Depends-on): Add stdlib.
18051         (configure.ac): Set indicator.
18052         * modules/unistd-safer (configure.ac): Likewise.
18053         * modules/tmpfile-safer (configure.ac): Likewise.
18054         (Depends-on): Add tmpfile.
18055         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18056         active.
18057         * tests/test-fopen.c (includes): Test safer versions when they are
18058         in use.
18059         * tests/test-open.c (includes): Likewise.
18060
18061         popen: fix cygwin 1.5 bug when stdin closed
18062         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18063         * modules/popen: New file.
18064         * modules/popen-tests: Likewise.
18065         * tests/test-popen.c: Likewise.
18066         * m4/popen.m4: Likewise.
18067         * lib/popen.c: Likewise.
18068         * lib/stdio.in.h (popen): New declaration.
18069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18070         * modules/stdio (Makefile.am): Likewise.
18071         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18072
18073 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18074
18075         maint.mk: give full control over update-copyright exclusions
18076         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18077         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18078         (update-copyright): Don't force inclusion of top-level
18079         ChangeLog.  Don't force exclusion of all COPYING files, but make
18080         them the default exclusion instead.
18081
18082 2009-08-16  Bruno Haible  <bruno@clisp.org>
18083
18084         Fix test failures on Solaris 10.
18085         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18086         tests when Solaris iconv() is used.
18087         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18088         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18089         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18090         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18091         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18092
18093 2009-08-16  Bruno Haible  <bruno@clisp.org>
18094
18095         Fix test failures on Solaris 10.
18096         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18097         'tr' program and pass it as first argument.
18098         * tests/test-pipe-filter-gi1.sh: Likewise.
18099         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18100         program as first argument.
18101         * tests/test-pipe-filter-gi1.c (main): Likewise.
18102
18103 2009-08-16  Eric Blake  <ebb9@byu.net>
18104
18105         fpurge: fix previous commits
18106         * modules/fpurge (Makefile.am): Make replacement conditional,
18107         partially reverting 2007-04-29 change; missed in previous
18108         attempt.
18109         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18110         is missing.
18111
18112 2009-08-16  Bruno Haible  <bruno@clisp.org>
18113
18114         Clarify fpurge's effect on the file position.
18115         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18116         * tests/test-fpurge.c (main): Make a second pass for checking the file
18117         position.
18118
18119 2009-08-16  Bruno Haible  <bruno@clisp.org>
18120
18121         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18122         declaration of fpurge is missing.
18123         * tests/test-fpurge.c (main): Check that the file has not more contents
18124         than expected. Close the file before removing it.
18125
18126 2009-08-15  Eric Blake  <ebb9@byu.net>
18127
18128         fpurge: don't wrap working cygwin implementation
18129         * lib/fpurge.c (fpurge): Fix comment typo.
18130         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18131         1.7 to avoid replacement.
18132         * tests/test-fpurge.c (main): Enhance test.
18133
18134 2009-08-15  Eric Blake  <ebb9@byu.net>
18135         and Jim Meyering  <meyering@redhat.com>
18136
18137         test-update-copyright: skip if perl is insufficient
18138         * tests/test-update-copyright.sh: Failure to run maintainer tool
18139         should not cause testsuite failure on cygwin 1.5.
18140
18141 2009-08-14  Eric Blake  <ebb9@byu.net>
18142
18143         doc: mention more functions added in cygwin 1.7.0
18144         * doc/posix-headers/limits.texi (limits.h): Update for recent
18145         cygwin additions.
18146         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18147         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18148         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18149         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18150         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18151
18152 2009-08-14  Eric Blake  <ebb9@byu.net>
18153
18154         maint.mk: simplify update-copyright rule
18155         * top/maint.mk (update-copyright-local): Delete, and document how
18156         to do it in cfg.mk instead.
18157         (update-copyright-exclude-regexp): Delete, and document how to do
18158         it in .x-update-copyright instead.
18159         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18160         exclude ChangeLog.
18161
18162 2009-08-14  Bruno Haible  <bruno@clisp.org>
18163
18164         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18165
18166 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18167
18168         maint.mk: support update-copyright-env
18169         * top/maint.mk (update-copyright-env): Define place-holder.
18170         (update-copyright): Expand $(update-copyright-env) before
18171         invoking update-copyright.
18172
18173 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18174
18175         update-copyright: implement forced reformatting
18176         * build-aux/update-copyright: Implement and document
18177         UPDATE_COPYRIGHT_FORCE.
18178         * tests/test-update-copyright.sh: Test it.
18179
18180 2009-08-14  Eric Blake  <ebb9@byu.net>
18181         and Bruno Haible  <bruno@clisp.org>
18182
18183         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18184         * tests/test-locale.c: Revert previous patch related to NULL.
18185         * tests/test-stdio.c: Likewise.
18186         * tests/test-stdlib.c: Likewise.
18187         * tests/test-string.c: Likewise.
18188         * tests/test-unistd.c: Likewise.
18189         * modules/time-tests (Depends-on): Add verify.
18190         * modules/wchar-tests (Depends-on): Likewise.
18191         * tests/test-time.c: Test for NULL compliance.
18192         * tests/test-wchar.c: Likewise.
18193         * modules/locale (Depends-on): Add stddef.
18194         * modules/stdio (Depends-on): Likewise.
18195         * modules/stdlib (Depends-on): Likewise.
18196         * modules/string (Depends-on): Likewise.
18197         * modules/time (Depends-on): Likewise.
18198         * modules/unistd (Depends-on): Likewise.
18199         * modules/wchar (Depends-on): Likewise.
18200         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18201         * lib/stdlib.in.h (includes): Likewise.
18202         * lib/string.in.h (includes): Likewise.
18203         * lib/time.in.h (includes): Likewise.
18204         * lib/unistd.in.h (includes): Likewise.
18205         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18206         replaced.
18207         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18208         * m4/stddef_h.m4: New file.
18209         * modules/stddef: Likewise.
18210         * lib/stddef.in.h: Likewise.
18211         * modules/stddef-tests: Likewise.
18212         * tests/test-stddef.c: Likewise.
18213         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18214         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18215         * doc/posix-headers/locale.texi (locale.h): Likewise.
18216         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18217         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18218         * doc/posix-headers/string.texi (string.h): Likewise.
18219         * doc/posix-headers/time.texi (time.h): Likewise.
18220         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18221         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18222
18223 2009-08-14  Eric Blake  <ebb9@byu.net>
18224
18225         doc: improve git diff of texinfo files
18226         * .gitattributes: Add rule for *.texi files, with hint on how to
18227         use it.
18228         Copied from m4, and based on a report by Bruno Haible.
18229
18230 2009-08-14  Bruno Haible  <bruno@clisp.org>
18231
18232         Disable multithread support by default on Cygwin 1.5.x for real.
18233         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18234
18235 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18236
18237         update-copyright: much ado about intervals
18238         * build-aux/update-copyright: Implement and document
18239         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18240         of copyright year intervals.
18241         Also, document UPDATE_COPYRIGHT_YEAR.
18242         * tests/test-update-copyright.sh: Test it.
18243
18244         update-copyright: convert 2-digit to 4-digit years
18245         * build-aux/update-copyright: Implement and document.
18246         * tests/test-update-copyright.sh: Update.
18247
18248 2009-08-14  Jim Meyering  <meyering@redhat.com>
18249
18250         test-exclude: avoid coreutils "make check" failure
18251         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
18252         just as in test-argmatch.c.
18253
18254 2009-08-13  Eric Blake  <ebb9@byu.net>
18255
18256         test-dup2: fix bad assumption
18257         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
18258         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
18259
18260         test-version-etc: fix CRLF portability issue
18261         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
18262         recognize \r.
18263         * tests/test-argp-version-etc-1.sh: Likewise.
18264
18265         getopt: update client modules
18266         * modules/argp (Depends-on): Use getopt-gnu.
18267         * modules/git-merge-changelog (Depends-on): Likewise.
18268         * modules/long-options (Depends-on): Likewise.
18269         * modules/xstrtol (Depends-on): Likewise.
18270
18271 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18272
18273         * tests/test-version-etc.sh: Don't fail on different
18274         project/version.  Don't fail on CRLF differences.  Rewrite to use
18275         multiple -e instead of multiple sed forks, suggested by Eric Blake
18276         <ebb9@byu.net>.
18277         * tests/test-argp-version-etc-1.sh: Likewise.
18278
18279 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18280
18281         * tests/test-version-etc.sh: Don't fail on different
18282         project/version.
18283
18284 2009-08-12  Bruno Haible  <bruno@clisp.org>
18285
18286         Tests for modules 'getopt-posix', 'getopt-gnu'.
18287         * modules/getopt-posix-tests: New file.
18288         * tests/test-getopt.c: New file.
18289         * tests/test-getopt.h: New file.
18290         * tests/test-getopt_long.h: New file.
18291
18292         New modules 'getopt-posix', 'getopt-gnu'.
18293         * modules/getopt-gnu: New file, renamed from modules/getopt.
18294         * modules/getopt-posix: New file.
18295         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18296         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18297         (gl_GETOPT): Remove macro.
18298         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18299         Disable the test against BSD systems that declare optreset. Test
18300         against mingw bug. Test against lack of support of optional arguments
18301         on many platforms.
18302         * doc/glibc-headers/getopt.texi: Update module name and list of
18303         relevant platforms.
18304         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18305         'getopt-gnu' and more portability problems.
18306         * NEWS: Mention the changes.
18307
18308 2009-08-12  Bruno Haible  <bruno@clisp.org>
18309
18310         Ensure that optarg etc. get declared by <unistd.h>.
18311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18312         AC_USE_SYSTEM_EXTENSIONS.
18313         * modules/getopt (Depends-on): Add 'extensions'.
18314
18315 2009-08-12  Bruno Haible  <bruno@clisp.org>
18316
18317         Avoid test link errors.
18318         * modules/pipe-filter-ii-tests (Makefile.am): Define
18319         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18320         * modules/pipe-filter-gi-tests (Makefile.am): Define
18321         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18323
18324 2009-08-12  Bruno Haible  <bruno@clisp.org>
18325
18326         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18327         gl_GETOPT_SUBSTITUTE before.
18328         (gl_GETOPT): Use it.
18329         * m4/argp.m4 (gl_ARGP): Update.
18330         Reported by Sergey Poznyakoff.
18331
18332         * m4/getopt.m4: Reorder macros.
18333         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18334         (gl_GETOPT_SUBSTITUTE): Remove macro.
18335
18336 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18337
18338         Minor improvement in gitlog-to-changelog
18339
18340         * build-aux/gitlog-to-changelog: New option `--format' makes
18341         output format string configurable.
18342
18343 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18344
18345         Optimize exclude: use hash tables for non-wildcard patterns.
18346
18347         * lib/exclude.c: Include hash.h and mbuiter.h
18348         (struct exclude_pattern, exclude_segment): New data types.
18349         (struct exclude): Rewrite.
18350         (fnmatch_pattern_has_wildcards): New function.
18351         (new_exclude_segment, free_exclude_segment): New functions.
18352         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18353         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18354         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18355         * modules/exclude: Depend on hash and mbuiter.
18356
18357         * modules/exclude-tests: New file.
18358         * tests/test-exclude.c: New file.
18359         * tests/test-exclude1.sh: New file.
18360         * tests/test-exclude2.sh: New file.
18361         * tests/test-exclude3.sh: New file.
18362         * tests/test-exclude4.sh: New file.
18363         * tests/test-exclude5.sh: New file.
18364         * tests/test-exclude6.sh: New file.
18365         * tests/test-exclude7.sh: New file.
18366
18367 2009-08-12  Bruno Haible  <bruno@clisp.org>
18368
18369         Ensure that getopt() gets declared by <unistd.h>.
18370         * lib/unistd.in.h: Conditionally include getopt.h.
18371         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18372         Set GNULIB_UNISTD_H_GETOPT.
18373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18374         GNULIB_UNISTD_H_GETOPT.
18375         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18376
18377 2009-08-12  Bruno Haible  <bruno@clisp.org>
18378
18379         Clarify logic.
18380         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18381         gl_replace_getopt instead of GETOPT_H.
18382
18383 2009-08-12  Bruno Haible  <bruno@clisp.org>
18384
18385         * m4/getopt.m4: Add comments.
18386
18387 2009-08-12  Bruno Haible  <bruno@clisp.org>
18388
18389         Disable multithread support by default on Cygwin 1.5.x.
18390         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18391         set gl_use_threads=no if not specified otherwise.
18392
18393 2009-08-11  Bruno Haible  <bruno@clisp.org>
18394
18395         Avoid compilation error on NetBSD 5.0.
18396         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18397         * tests/test-stdio.c: Likewise.
18398         * tests/test-stdlib.c: Likewise.
18399         * tests/test-string.c: Likewise.
18400         * tests/test-unistd.c: Likewise.
18401         Reported by Greg Troxel <gdt@ir.bbn.com>
18402         at <https://savannah.gnu.org/support/?106973>.
18403
18404 2009-08-11  Bruno Haible  <bruno@clisp.org>
18405
18406         * modules/dup2-tests (Depends-on): Remove close.
18407
18408         Undo 2009-07-19 commit.
18409         * modules/acl-tests (Depends-on): Remove close.
18410         * modules/binary-io-tests (Depends-on): Likewise.
18411         * modules/closein-tests (Depends-on): Likewise.
18412         * modules/flock-tests (Depends-on): Likewise.
18413         * modules/fsync-tests (Depends-on): Likewise.
18414         * modules/lseek-tests (Depends-on): Likewise.
18415         * modules/pipe-tests (Depends-on): Likewise.
18416         * modules/posix_spawn-tests (Depends-on): Likewise.
18417         * modules/posix_spawnp-tests (Depends-on): Likewise.
18418         * modules/stat-time-tests (Depends-on): Likewise.
18419         * modules/yesno-tests (Depends-on): Likewise.
18420
18421 2009-08-10  Bruno Haible  <bruno@clisp.org>
18422
18423         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
18424
18425 2009-08-10  Bruno Haible  <bruno@clisp.org>
18426
18427         Fix a gcc warning.
18428         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
18429
18430 2009-08-10  Bruno Haible  <bruno@clisp.org>
18431
18432         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
18433         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
18434         not only the first time.
18435         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
18436         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
18437         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
18438         is 1, not only the the first time.
18439
18440 2009-08-10  Bruno Haible  <bruno@clisp.org>
18441
18442         Make it possible to use module 'gethostname' without module 'close'.
18443         * lib/unistd.in.h (close): Evoke a link error only if
18444         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18446         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18447         * modules/unistd (Makefile.am): Substitute
18448         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18449         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
18450         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18451         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18452         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18453         * modules/sys_ioctl (Makefile.am): Substitute
18454         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18455         * modules/socket (configure.ac): On native Windows, set
18456         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
18457         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18458         Reported by Sam Steingold <sds@gnu.org>.
18459
18460 2009-08-10  Bruno Haible  <bruno@clisp.org>
18461
18462         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
18463         * modules/ioctl (configure.ac): Likewise.
18464
18465 2009-08-10  Bruno Haible  <bruno@clisp.org>
18466
18467         Avoid collision between gnulib wrapper and libintl wrapper.
18468         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
18469         already defined in intl/printf.c.
18470         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
18471         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
18472
18473 2009-08-09  Bruno Haible  <bruno@clisp.org>
18474
18475         Make <sys/select.h> really self-contained, also on Solaris 10.
18476         * lib/sys_select.in.h: Include <string.h>.
18477         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
18478         Solaris 10 problem.
18479         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
18480         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
18481         Reported by Jim Meyering.
18482
18483 2009-08-09  Bruno Haible  <bruno@clisp.org>
18484
18485         Avoid warnings from 'aclocal' that are due to a use of macro name
18486         AM_XGETTEXT_OPTION that is not defined in automake.
18487         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
18488         automake.
18489         * modules/error (configure.ac): Likewise.
18490         * modules/propername (configure.ac): Likewise.
18491         * modules/vasprintf (configure.ac): Likewise.
18492         * modules/verror (configure.ac): Likewise.
18493         * modules/xprintf (configure.ac): Likewise.
18494         * modules/xvasprintf (configure.ac): Likewise.
18495
18496 2009-08-08  Bruno Haible  <bruno@clisp.org>
18497
18498         Avoid compilation error in C++ mode.
18499         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
18500         Reported by Sam Steingold <sds@gnu.org>.
18501
18502 2009-08-08  Bruno Haible  <bruno@clisp.org>
18503
18504         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
18505         for the various Unix platforms.
18506         * doc/posix-headers/limits.texi: Update platforms list regarding
18507         HOST_NAME_MAX.
18508         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18509
18510 2009-08-07  Jim Meyering  <meyering@redhat.com>
18511
18512         selinux-at: fix typo in a comment
18513         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
18514         Spotted by Paolo Bonzini.
18515
18516         selinux-at: remove redundant m4 code, add documentation
18517         * modules/selinux-at (configure.ac): Remove redundant code.
18518         LIB_SELINUX is already set via the dependent module, selinux-h.
18519         (Include): Add quotes around selinux-at.h.
18520         * lib/selinux-at.h: Add documentation.
18521         Reported by Bruno Haible in
18522         http://marc.info/?l=gnulib-bug&m=124958988300749
18523
18524 2009-08-07  Bruno Haible  <bruno@clisp.org>
18525
18526         Avoid link error on MacOS X 10.3 and 10.4.
18527         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
18528         on non-ELF systems.
18529         * lib/argp-pv.c (argp_program_version): Likewise.
18530         Reported by Simon Josefsson.
18531
18532 2009-08-07  Simon Josefsson  <simon@josefsson.org>
18533
18534         * tests/test-version-etc.sh: Use $EXEEXT.
18535
18536 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
18537
18538         update-copyright: update documentation to point to maint.mk
18539         * build-aux/update-copyright: Here.
18540
18541 2009-08-06  Jim Meyering  <meyering@redhat.com>
18542
18543         maint.mk: support update-copyright-local
18544         * top/maint.mk (update-copyright-local): Define place-holder.
18545         (update-copyright): Depend on $(update-copyright-local).
18546
18547 2009-08-06  Jim Meyering  <meyering@redhat.com>
18548
18549         selinux-at: new module
18550         Initially written for coreutils, this module will soon be
18551         used by findutils, too.
18552         * MODULES.html.sh [Misc]: Add selinux-at.
18553         * lib/selinux-at.h: New file, from coreutils.
18554         * lib/selinux-at.c: Likewise.
18555         * modules/selinux-at: Likewise.
18556         (License): Change from LGPL to GPL, since it depends
18557         on the GPL'd openat module.
18558
18559         doc: update README
18560         * README: Remove references to cogito.
18561         Remove cvs-repo-updating instructions from 2007.
18562         Don't imply that CVS is better if you have limited disk space.
18563
18564 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18565
18566         update-copyright: support C-style comments
18567         * build-aux/update-copyright: Implement and document.
18568         * tests/test-update-copyright.sh: Test.
18569
18570 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18571
18572         update-copyright: support omitted "(C)"
18573         * build-aux/update-copyright: Implement and document.  Also,
18574         allow variable whitespace before "(C)".
18575         * tests/test-update-copyright.sh: Test.
18576
18577 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18578
18579         update-copyright: don't trip on non-FSF copyright statements
18580         * build-aux/update-copyright: Fix so that the first correctly
18581         formatted FSF copyright statement is recognized no matter what
18582         appears before it.  Update documentation.
18583         * tests/test-update-copyright.sh: Test that.
18584
18585 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18586
18587         update-copyright: clean up code a little
18588         * build-aux/update-copyright: Append "_re" to the name of any
18589         variable holding a regular expression.
18590         Replace "old" and "new" with "stmt" in variable names.
18591         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
18592         handled correctly.
18593         Format code more consistently.
18594
18595 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18596
18597         update-copyright-tests: improve portability
18598         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
18599         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
18600
18601 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18602
18603         update-copyright: support @copyright{} and &copy;
18604         * build-aux/update-copyright: Implement and document.
18605         * tests/test-update-copyright.sh: Test.
18606
18607 2009-08-04  Jim Meyering  <meyering@redhat.com>
18608
18609         update-copyright-tests: correctly test EOL=\r\n handling
18610         * tests/test-update-copyright.sh: Put \r at the end of some lines
18611         for the dos-eol tests.  Based on a patch by Joel E. Denny.
18612
18613         maint.mk: make update-copyright exclusion list more configurable
18614         * top/maint.mk (update-copyright): Default to excluding COPYING,
18615         but allow an override, in case someone does want to update that file.
18616
18617         maint.mk: don't update copyright date in COPYING
18618         * top/maint.mk (update-copyright): Exclude COPYING.
18619
18620         maint.mk: add a copyright-updating rule
18621         * top/maint.mk (update-copyright): New rule.
18622         Derived from coreutils/Makefile.am.
18623
18624         update-copyright: rename some variables
18625         * build-aux/update-copyright: Rename a few variables for clarity.
18626         Tweak syntax.  List Joel E. Denny as coauthor.
18627
18628 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18629
18630         update-copyright: fix bug for 2-digit last year and add tests
18631         * build-aux/update-copyright: Fix bug.
18632         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
18633         specified.
18634         * modules/update-copyright-tests: New
18635         * tests/test-update-copyright.sh: New.
18636
18637 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18638
18639         update-copyright: handle leading tabs in line prefix
18640         * build-aux/update-copyright: Count leading tabs as 8 spaces
18641         when computing margin.  This helps with the formatting of
18642         ChangeLogs, for example.
18643         Fix documentation a little.
18644
18645 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18646
18647         update-copyright: support EOL=\r\n
18648         * build-aux/update-copyright: Implement that.
18649
18650 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18651
18652         update-copyright: automatically format copyright statements
18653         * build-aux/update-copyright: Implement that.
18654         Also, be a little more predictable and safer by always failing
18655         when the full copyright format is not perfectly recognized as an
18656         unbroken whole.  Discussed at
18657         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
18658         Rewrite documentation.
18659
18660 2009-08-03  Bruno Haible  <bruno@clisp.org>
18661
18662         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
18663
18664 2009-08-02  Bruno Haible  <bruno@clisp.org>
18665
18666         Tests for module 'uname'.
18667         * modules/uname-tests: New file.
18668         * tests/test-uname.c: New file.
18669
18670         New module 'uname'.
18671         * lib/uname.c: New file.
18672         * m4/uname.m4: New file.
18673         * modules/uname: New file.
18674         * doc/posix-functions/uname.texi: Mention the new module.
18675
18676 2009-08-02  Bruno Haible  <bruno@clisp.org>
18677
18678         Tests for module 'sys_utsname'.
18679         * modules/sys_utsname-tests: New file.
18680         * tests/test-sys_utsname.c: New file.
18681
18682         New module 'sys_utsname'.
18683         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
18684         * m4/sys_utsname_h.m4: New file.
18685         * modules/sys_utsname: New file.
18686         * doc/posix-headers/sys_utsname.texi: Mention the new module.
18687
18688 2009-08-02  Bruno Haible  <bruno@clisp.org>
18689
18690         Implicitly initialize the sockets library.
18691         * lib/gethostname.c: Include sockets.h.
18692         (rpl_gethostname): Invoke gl_sockets_startup.
18693         * lib/socket.c: Include sockets.h.
18694         (rpl_socket): Invoke gl_sockets_startup.
18695         * modules/gethostname (Depends-on): Add sockets.
18696         * modules/socket (Depends-on): Likewise.
18697         * tests/test-poll.c: Don't include sockets.h.
18698         (main): Don't invoke gl_sockets_startup.
18699         * tests/test-select.c: Don't include sockets.h.
18700         (main): Don't invoke gl_sockets_startup.
18701
18702 2009-08-02  Bruno Haible  <bruno@clisp.org>
18703
18704         Allow multiple calls to gl_sockets_startup.
18705         * lib/sockets.c (initialized_sockets_version): New variable.
18706         (gl_sockets_startup): Do nothing if already called for this or a higher
18707         version.
18708         (gl_sockets_cleanup): Reset initialized_sockets_version.
18709
18710 2009-08-03  Simon Josefsson  <simon@josefsson.org>
18711
18712         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
18713         different project/version.
18714
18715 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
18716             Bruno Haible  <bruno@clisp.org>
18717
18718         Tests for module 'pipe-filter-gi'.
18719         * modules/pipe-filter-gi-tests: New file.
18720         * tests/test-pipe-filter-gi1.sh: New file.
18721         * tests/test-pipe-filter-gi1.c: New file.
18722         * tests/test-pipe-filter-gi2.sh: New file.
18723         * tests/test-pipe-filter-gi2-main.c: New file.
18724         * tests/test-pipe-filter-gi2-child.c: New file.
18725
18726         New module 'pipe-filter-gi'.
18727         * lib/pipe-filter-gi.c: New file.
18728         * modules/pipe-filter-gi: New file.
18729
18730 2009-08-02  Bruno Haible  <bruno@clisp.org>
18731             Paolo Bonzini  <bonzini@gnu.org>
18732
18733         Tests for module 'pipe-filter-ii'.
18734         * modules/pipe-filter-ii-tests: New file.
18735         * tests/test-pipe-filter-ii1.sh: New file.
18736         * tests/test-pipe-filter-ii1.c: New file.
18737         * tests/test-pipe-filter-ii2.sh: New file.
18738         * tests/test-pipe-filter-ii2-main.c: New file.
18739         * tests/test-pipe-filter-ii2-child.c: New file.
18740
18741         New module 'pipe-filter-ii'.
18742         * lib/pipe-filter.h: New file.
18743         * lib/pipe-filter-ii.c: New file.
18744         * lib/pipe-filter-aux.h: New file.
18745         * modules/pipe-filter-ii: New file.
18746
18747 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18748
18749         * lib/gc-libgcrypt.c: Change copyright to FSF.
18750         * lib/gc-gnulib.c: Likewise.
18751
18752 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
18753
18754         * lib/gethostname.c: Include limits.h.
18755
18756 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18757             Bruno Haible  <bruno@clisp.org>
18758
18759         Ensure HOST_NAME_MAX as part of the gethostname module.
18760         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
18761         define also HOST_NAME_MAX.
18762         * tests/test-gethostname.c: Include <limits.h>.
18763         (main): Check also HOST_NAME_MAX.
18764         * doc/posix-headers/limits.texi: Document the mingw problem.
18765
18766 2009-08-02  Bruno Haible  <bruno@clisp.org>
18767
18768         * lib/gethostname.c (gethostname): Fix handling of large len argument.
18769         Add comments.
18770
18771 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18772
18773         * lib/gethostname.c: Add Windows wrapper.
18774         * m4/gethostname.m4: Look for gethostname in -lws2_32.
18775         * modules/gethostname: Depend on sys_socket & errno, for also
18776         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
18777         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
18778
18779 2009-07-31  Jim Meyering  <meyering@redhat.com>
18780
18781         getloadavg: fix symbol name in comment
18782         * lib/getloadavg.c: Correct a typo I introduced when adding
18783         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
18784         Matt Kraai spotted the problem.
18785
18786 2009-07-29  Matt Kraai  <mkraai@beckman.com>
18787
18788         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
18789         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
18790         code also if ! defined N_NAME_POINTER.
18791         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
18792         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
18793         but the n_name member is a 12-byte array.
18794
18795 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
18796
18797         update-copyright: generalize comment handling
18798         * build-aux/update-copyright: Handle copyright statements
18799         within more comment styles.
18800         Document usage.
18801         Report any file with an external copyright holder or parse failure.
18802
18803 2009-07-29  Jim Meyering  <meyering@redhat.com>
18804
18805         mktime: correct setting of REPLACE_MKTIME
18806         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
18807
18808         update-copyright: new module
18809         * modules/update-copyright: New file.
18810         * build-aux/update-copyright: New file.
18811         * MODULES.html.sh (maint+release support): Add update-copyright.
18812
18813 2009-07-27  Bruno Haible  <bruno@clisp.org>
18814
18815         Fix compilation error when <ctime> is used and mktime is replaced.
18816         * lib/time.in.h (mktime): New declaration.
18817         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
18818         REPLACE_MKTIME instead of defining mktime in config.h.
18819         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
18820         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
18821         Reported by Ross McFarland <rwmcfa1@neces.com>.
18822
18823 2009-07-27  Bruno Haible  <bruno@clisp.org>
18824
18825         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
18826         Reported by Matt Kraai <mkraai@beckman.com>.
18827
18828 2009-07-25  Jim Meyering  <meyering@redhat.com>
18829
18830         maint.mk: avoid warnings about missing files
18831         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
18832         diagnostic when .prev-version does not exist.
18833         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
18834         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
18835         nonexistent cfg.mk.
18836         Suggestions from Simon Josefsson.
18837
18838 2009-07-25  Bruno Haible  <bruno@clisp.org>
18839
18840         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
18841         defined as macros. Needed on QNX 6.4.1.
18842         Reported by Matt Kraai <mkraai@beckman.com>.
18843
18844 2009-07-23  Jim Meyering  <meyering@redhat.com>
18845
18846         maint.mk: invoke "make dist" with a working value of XZ_OPT
18847         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
18848
18849 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
18850
18851         Make fseeko.c compile on QNX.
18852         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
18853
18854 2009-07-22  Peter Simons  <simons@cryp.to>
18855
18856         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
18857         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
18858         * lib/md4.h: Likewise.
18859         * lib/md5.h: Likewise.
18860         * lib/sha1.h: Likewise.
18861         * lib/sha256.h: Likewise.
18862         * lib/sha512.h: Likewise.
18863
18864         tests-sha1: don't assign literal string to 'char *' variable
18865         * tests/test-sha1.c (main): Declare locals with "const" to match
18866         attributes of the right hand side.
18867
18868 2009-07-21  Eric Blake  <ebb9@byu.net>
18869
18870         dup2: fix more mingw problems
18871         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
18872         fd to itself.
18873         * doc/posix-functions/dup2.texi (dup2): Document the bug.
18874         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
18875         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
18876         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
18877         care of mingw bugs.
18878
18879 2009-07-21  Jim Meyering  <meyering@redhat.com>
18880
18881         vc-list-files: avoid failure when /bin/sh is dash
18882         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
18883         On some Debian based systems, /bin/sh is a symlink to dash, and running
18884         this command would omit the "/" following each 'tests' prefix:
18885           dash -x build-aux/vc-list-files -C . tests
18886         That is because bash and dash work differently:
18887           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
18888           bash ok
18889           dash odd
18890
18891 2009-07-21  Eric Blake  <ebb9@byu.net>
18892
18893         dup2-tests: test previous patch
18894         * modules/dup2-tests: New file.
18895         * tests/test-dup2.c: Likewise.
18896         * tests/test-open.c (main): Avoid unspecified behavior.
18897         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
18898         test.
18899
18900         dup2: work around mingw and cygwin 1.5 bug
18901         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
18902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18903         * modules/unistd (Makefile.am): Substitute it.
18904         * lib/unistd.in.h (dup2): Declare the replacement.
18905         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
18906         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
18907         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
18908         * modules/execute (Depends-on): Add dup2.
18909         * modules/fseterr (Depends-on): Likewise.
18910         * modules/pipe (Depends-on): Likewise.
18911         * modules/posix_spawn-internal (Depends-on): Likewise.
18912
18913 2009-07-21  Bruno Haible  <bruno@clisp.org>
18914
18915         * modules/.gitattributes: New file.
18916
18917 2009-07-20  Bruno Haible  <bruno@clisp.org>
18918
18919         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
18920         (main): Use it.
18921
18922 2009-07-20  Eric Blake  <ebb9@byu.net>
18923
18924         test-pipe: make a bit more robust.
18925         * tests/test-pipe.c (myerr): Allow error messages regardless of
18926         what we do to stderr.
18927         (test_pipe): Rearrange to avoid deadlock.
18928         (child_main): Try a larger read, to ensure we avoided deadlock.
18929         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
18930         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
18931         if misused.
18932
18933 2009-07-19  Jim Meyering  <meyering@redhat.com>
18934
18935         fts: avoid false-positive cycle-detection
18936         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
18937         for each new command line argument.
18938
18939 2009-07-19  Bruno Haible  <bruno@clisp.org>
18940
18941         Fix build error on mingw with the modules sys_select and unistd.
18942         * modules/acl-tests (Depends-on): Add close.
18943         * modules/binary-io-tests (Depends-on): Likewise.
18944         * modules/closein-tests (Depends-on): Likewise.
18945         * modules/flock-tests (Depends-on): Likewise.
18946         * modules/fsync-tests (Depends-on): Likewise.
18947         * modules/lseek-tests (Depends-on): Likewise.
18948         * modules/pipe-tests (Depends-on): Likewise.
18949         * modules/posix_spawn-tests (Depends-on): Likewise.
18950         * modules/posix_spawnp-tests (Depends-on): Likewise.
18951         * modules/stat-time-tests (Depends-on): Likewise.
18952         * modules/yesno-tests (Depends-on): Likewise.
18953
18954 2009-07-19  Bruno Haible  <bruno@clisp.org>
18955
18956         Unify conditionals.
18957         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
18958         macros, not at the compiler macros.
18959         * lib/pipe.c: Likewise.
18960         * lib/execute.c: Likewise.
18961         * lib/spawni.c: Likewise.
18962
18963 2009-07-19  Bruno Haible  <bruno@clisp.org>
18964
18965         Fix handling of closed stdin/stdout/stderr on mingw.
18966         * lib/w32spawn.h: Include unistd.h.
18967         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
18968         file descriptor with O_NOINHERIT flag.
18969         (fd_safer_noinherit): New function, based on fd-safer.c.
18970         (dup_safer_noinherit): New function, based on dup-safer.c.
18971         (undup_safer_noinherit): New function.
18972         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
18973         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
18974         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
18975         instead of fd_safer.
18976         * tests/test-pipe.c: Include <windows.h>.
18977         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
18978
18979         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
18980         from main.
18981         (test_pipe): Pass an extra argument for disambiguation.
18982         (main): Invoke parent_main or child_main.
18983
18984         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
18985         consistently.
18986
18987 2009-07-18  Eric Blake  <ebb9@byu.net>
18988
18989         test-pipe: fix mingw build
18990         * tests/test-pipe.c (main): Avoid fcntl on mingw.
18991
18992 2009-07-18  Bruno Haible  <bruno@clisp.org>
18993
18994         * modules/pipe-tests (Makefile.am): Fix typo.
18995
18996 2009-07-18  Eric Blake  <ebb9@byu.net>
18997
18998         error: fix mingw build
18999         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19000         Reported by Bruno Haible.
19001
19002         error: avoid undefined use of stdout
19003         * lib/error.c (error, error_at_line): Check that fd 1 is open
19004         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19005         is handling faults and the close_stdout module wants to report the
19006         detection of closed stdout as an error.
19007
19008 2009-07-17  Eric Blake  <ebb9@byu.net>
19009
19010         pipe: be robust in face of closed fds
19011         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19012         should cause child to misbehave.
19013         * modules/pipe-tests: New module.
19014         * tests/test-pipe.c: New file.
19015         * tests/test-pipe.sh: New file.
19016         Reported by Akim Demaille.
19017
19018 2009-07-14  Bruno Haible  <bruno@clisp.org>
19019
19020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19021         Reported by anonymous kc.
19022
19023 2009-07-07  Jim Meyering  <meyering@redhat.com>
19024
19025         maint.mk: don't look for translatable strings in *.m4 or *.mk
19026         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19027         when searching for translatable strings.
19028
19029 2009-07-05  Jim Meyering  <meyering@redhat.com>
19030
19031         remove superfluous parentheses in STREQ definition
19032         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19033         * lib/getugroups.c (STREQ): Likewise.
19034         * lib/fnmatch.c (STREQ): Likewise.
19035         Spotted by Bruno Haible.
19036
19037 2009-07-04  Jim Meyering  <meyering@redhat.com>
19038
19039         argv-iter: new module
19040         * MODULES.html.sh: Add argv-iter.
19041         * lib/argv-iter.c, lib/argv-iter.h: New files.
19042         * modules/argv-iter: New file.
19043         * modules/argv-iter-tests: New file.
19044         * tests/test-argv-iter.c: Test it.
19045
19046 2009-07-04  Bruno Haible  <bruno@clisp.org>
19047
19048         Fix assertion.
19049         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19050         contains more exact copies of a given entry than file2, leave the extra
19051         copies unpaired rather than aborting.
19052         Reported by Eric Blake.
19053
19054 2009-07-02  Bruno Haible  <bruno@clisp.org>
19055
19056         Speedup git-merge-changelog for git cherry-pick.
19057         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19058         (entries_mapping_get): New function, extracted from compute_mapping.
19059         (entries_mapping_reverse_get): New function.
19060         (compute_mapping): Add a 'full' argument. Return the result in a
19061         'struct entries_mapping'.
19062         (main): Update. Access the mappings through entries_mapping_get.
19063         Reported by Eric Blake.
19064
19065 2009-07-02  Bruno Haible  <bruno@clisp.org>
19066
19067         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19068         best_i.
19069
19070 2009-07-02  Bruno Haible  <bruno@clisp.org>
19071
19072         Speed up approximate search for matching ChangeLog entries.
19073         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19074         argument. Call fstrcmp_bounded instead of fstrcmp.
19075         (compute_mapping, try_split_merged_entry, main): Update callers.
19076
19077 2009-07-02  Bruno Haible  <bruno@clisp.org>
19078
19079         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19080
19081 2009-06-30  Bruno Haible  <bruno@clisp.org>
19082
19083         Reduce the number of uc_is_cased calls.
19084         * lib/unicase.h (casing_suffix_context_t): Add
19085         'first_char_except_ignorable' field.
19086         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19087         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19088         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19089         Update initializer.
19090         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19091         case-ignorable characters.
19092         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19093         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19094         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19095         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19096         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19097
19098 2009-06-30  Bruno Haible  <bruno@clisp.org>
19099
19100         Tests for module 'unicase/ignorable'.
19101         * modules/unicase/ignorable-tests: New file.
19102         * tests/unicase/test-ignorable.c: New file, generated by
19103         gen-uni-tables.
19104
19105         Tests for module 'unicase/cased'.
19106         * modules/unicase/cased-tests: New file.
19107         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19108         * tests/unicase/test-predicate-part1.h: New file, derived from
19109         tests/unictype/test-predicate-part1.h.
19110         * tests/unicase/test-predicate-part2.h: New file, same as
19111         tests/unictype/test-predicate-part2.h.
19112
19113         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19114         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19115         (output_casing_properties): New function.
19116         (main): Call it.
19117         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19118         * lib/unicase/cased.c: Include unictype/bitmap.h.
19119         (uc_is_cased): Define through a bitmap lookup.
19120         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19121         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19122         (uc_is_case_ignorable): Define through a bitmap lookup.
19123         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19124         lib/unictype/bitmap.h.
19125         (Depends-on): Add inline. Clean up.
19126         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19127         lib/unictype/bitmap.h.
19128         (Depends-on): Add inline. Clean up.
19129         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19130         recognition.
19131         * tests/unicase/test-u16-tolower.c (main): Likewise.
19132         * tests/unicase/test-u32-tolower.c (main): Likewise.
19133
19134 2009-06-30  Bruno Haible  <bruno@clisp.org>
19135
19136         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19137         * lib/unicase/u16-casemap.c: Likewise.
19138         * lib/unicase/u32-casemap.c: Likewise.
19139
19140 2009-06-29  Bruno Haible  <bruno@clisp.org>
19141
19142         Define u32_casefold as a wrapper around u32_ct_casefold.
19143         * lib/unicase/u32-casefold.c: Update.
19144         * modules/unicase/u32-casefold (Depends-on): Add
19145         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19146         unicase/empty-suffix-context. Clean up.
19147
19148         Define u16_casefold as a wrapper around u16_ct_casefold.
19149         * lib/unicase/u16-casefold.c: Update.
19150         * modules/unicase/u16-casefold (Depends-on): Add
19151         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19152         unicase/empty-suffix-context. Clean up.
19153
19154         Define u8_casefold as a wrapper around u8_ct_casefold.
19155         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19156         * lib/unicase/u8-casefold.c: Update.
19157         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19158         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19159
19160         Define u32_totitle as a wrapper around u32_ct_totitle.
19161         * lib/unicase/u32-totitle.c: Update.
19162         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19163         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19164
19165         Define u16_totitle as a wrapper around u16_ct_totitle.
19166         * lib/unicase/u16-totitle.c: Update.
19167         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19168         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19169
19170         Define u8_totitle as a wrapper around u8_ct_totitle.
19171         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19172         functions.
19173         (FUNC): Delegate to U_CT_TOTITLE.
19174         * lib/unicase/u8-totitle.c: Update.
19175         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19176         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19177
19178         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19179         invocation.
19180         * modules/unicase/u32-tolower (Depends-on): Add
19181         unicase/empty-prefix-context, unicase/empty-suffix-context.
19182
19183         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19184         invocation.
19185         * modules/unicase/u16-tolower (Depends-on): Add
19186         unicase/empty-prefix-context, unicase/empty-suffix-context.
19187
19188         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19189         * modules/unicase/u8-tolower (Depends-on): Add
19190         unicase/empty-prefix-context, unicase/empty-suffix-context.
19191
19192         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19193         invocation.
19194         * modules/unicase/u32-toupper (Depends-on): Add
19195         unicase/empty-prefix-context, unicase/empty-suffix-context.
19196
19197         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19198         invocation.
19199         * modules/unicase/u16-toupper (Depends-on): Add
19200         unicase/empty-prefix-context, unicase/empty-suffix-context.
19201
19202         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19203         * modules/unicase/u8-toupper (Depends-on): Add
19204         unicase/empty-prefix-context, unicase/empty-suffix-context.
19205
19206         New module 'unicase/u32-ct-casefold'.
19207         * lib/unicase/u32-ct-casefold.c: New file.
19208         * modules/unicase/u32-ct-casefold: New file.
19209
19210         New module 'unicase/u16-ct-casefold'.
19211         * lib/unicase/u16-ct-casefold.c: New file.
19212         * modules/unicase/u16-ct-casefold: New file.
19213
19214         New module 'unicase/u8-ct-casefold'.
19215         * lib/unicase/u8-ct-casefold.c: New file.
19216         * lib/unicase/u-ct-casefold.h: New file, derived from
19217         lib/unicase/u-casefold.h.
19218         * modules/unicase/u8-ct-casefold: New file.
19219
19220         New module 'unicase/u32-ct-totitle'.
19221         * lib/unicase/u32-ct-totitle.c: New file.
19222         * modules/unicase/u32-ct-totitle: New file.
19223
19224         New module 'unicase/u16-ct-totitle'.
19225         * lib/unicase/u16-ct-totitle.c: New file.
19226         * modules/unicase/u16-ct-totitle: New file.
19227
19228         New module 'unicase/u8-ct-totitle'.
19229         * lib/unicase/u8-ct-totitle.c: New file.
19230         * lib/unicase/u-ct-totitle.h: New file, derived from
19231         lib/unicase/u-totitle.h.
19232         * modules/unicase/u8-ct-totitle: New file.
19233
19234         New module 'unicase/u32-ct-tolower'.
19235         * lib/unicase/u32-ct-tolower.c: New file.
19236         * modules/unicase/u32-ct-tolower: New file.
19237
19238         New module 'unicase/u16-ct-tolower'.
19239         * lib/unicase/u16-ct-tolower.c: New file.
19240         * modules/unicase/u16-ct-tolower: New file.
19241
19242         New module 'unicase/u8-ct-tolower'.
19243         * lib/unicase/u8-ct-tolower.c: New file.
19244         * modules/unicase/u8-ct-tolower: New file.
19245
19246         New module 'unicase/u32-ct-toupper'.
19247         * lib/unicase/u32-ct-toupper.c: New file.
19248         * modules/unicase/u32-ct-toupper: New file.
19249
19250         New module 'unicase/u16-ct-toupper'.
19251         * lib/unicase/u16-ct-toupper.c: New file.
19252         * modules/unicase/u16-ct-toupper: New file.
19253
19254         New module 'unicase/u8-ct-toupper'.
19255         * lib/unicase/u8-ct-toupper.c: New file.
19256         * modules/unicase/u8-ct-toupper: New file.
19257
19258         Add context arguments to u*_casemap functions.
19259         * lib/unicase/unicasemap.h: Include unicase.h.
19260         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
19261         suffix_context arguments.
19262         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
19263         functions.
19264         (FUNC): Add prefix_context and suffix_context arguments. Use
19265         uc_is_cased and uc_is_case_ignorable.
19266         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
19267         * lib/unicase/u16-casemap.c: Likewise.
19268         * lib/unicase/u32-casemap.c: Likewise.
19269         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
19270         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19271         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
19272         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19273         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
19274         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19275
19276         New module 'unicase/u32-suffix-context'.
19277         * lib/unicase/u32-suffix-context.c: New file.
19278         * modules/unicase/u32-suffix-context: New file.
19279
19280         New module 'unicase/u16-suffix-context'.
19281         * lib/unicase/u16-suffix-context.c: New file.
19282         * modules/unicase/u16-suffix-context: New file.
19283
19284         New module 'unicase/u8-suffix-context'.
19285         * lib/unicase/u8-suffix-context.c: New file.
19286         * lib/unicase/u-suffix-context.h: New file.
19287         * modules/unicase/u8-suffix-context: New file.
19288
19289         New module 'unicase/empty-suffix-context'.
19290         * lib/unicase/empty-suffix-context.c: New file.
19291         * modules/unicase/empty-suffix-context: New file.
19292
19293         New module 'unicase/u32-prefix-context'.
19294         * lib/unicase/u32-prefix-context.c: New file.
19295         * modules/unicase/u32-prefix-context: New file.
19296
19297         New module 'unicase/u16-prefix-context'.
19298         * lib/unicase/u16-prefix-context.c: New file.
19299         * modules/unicase/u16-prefix-context: New file.
19300
19301         New module 'unicase/u8-prefix-context'.
19302         * lib/unicase/u8-prefix-context.c: New file.
19303         * lib/unicase/u-prefix-context.h: New file.
19304         * lib/unicase/context.h: New file.
19305         * modules/unicase/u8-prefix-context: New file.
19306
19307         New module 'unicase/empty-prefix-context'.
19308         * lib/unicase/empty-prefix-context.c: New file.
19309         * modules/unicase/empty-prefix-context: New file.
19310
19311         New module 'unicase/ignorable'.
19312         * lib/unicase/ignorable.c: New file.
19313         * modules/unicase/ignorable: New file.
19314
19315         New module 'unicase/cased'.
19316         * lib/unicase/caseprop.h: New file.
19317         * lib/unicase/cased.c: New file.
19318         * modules/unicase/cased: New file.
19319
19320         New functions for case mapping of substrings.
19321         * lib/unicase.h (casing_prefix_context_t): New type.
19322         (unicase_empty_prefix_context): New variable.
19323         (u8_casing_prefix_context, u16_casing_prefix_context,
19324         u32_casing_prefix_context, u8_casing_prefixes_context,
19325         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19326         declarations.
19327         (casing_suffix_context_t): New type.
19328         (unicase_empty_suffix_context): New variable.
19329         (u8_casing_suffix_context, u16_casing_suffix_context,
19330         u32_casing_suffix_context, u8_casing_suffixes_context,
19331         u16_casing_suffixes_context, u32_casing_suffixes_context,
19332         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19333         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19334         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19335         declarations.
19336
19337 2009-06-28  Jim Meyering  <meyering@redhat.com>
19338
19339         boostrap: indent only with spaces
19340         * build-aux/bootstrap: Indent only with spaces, never TABs.
19341
19342         bootstrap: split long lines
19343         * build-aux/bootstrap: Keep line length < 80.
19344
19345         bootstrap: sync from coreutils
19346         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19347         just as autoreconf does.  Verify a list of prerequisite
19348         package-name,version-number pairs if defined in bootstrap.conf.
19349         Refer to README-prereq, if prerequisites are not satisfied.
19350
19351 2009-06-27  Eric Blake  <ebb9@byu.net>
19352
19353         tests: add test for bogus NULL definition
19354         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19355         * tests/test-stdlib.c: Likewise.
19356         * tests/test-string.c: Likewise.
19357         * tests/test-locale.c: Likewise.
19358         * tests/test-unistd.c: Likewise.
19359         * modules/stdio-tests (Depends-on): Add verify.
19360         * modules/stdlib-tests (Depends-on): Likewise.
19361         * modules/string-tests (Depends-on): Likewise.
19362         * modules/locale-tests (Depends-on): Likewise.
19363         * modules/unistd-tests (Depends-on): Likewise.
19364
19365 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19366
19367         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19368         self-explaining comment.
19369         * m4/selinux-selinux-h: Update serial.
19370         (gl_LIBSELINUX): New macro, adding a warning for missing development
19371         packages to code extracted from...
19372         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19373         Add warning for missing development packages here, too.
19374
19375 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19376
19377         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19378
19379 2009-06-25  Eric Blake  <ebb9@byu.net>
19380
19381         version-etc: fix regression
19382         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19383         gcc.
19384         (version_etc): Use it, to catch bugs with trailing NULL.
19385         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19386         (version_etc_va): Fix logic bug.
19387         * modules/version-etc-tests: Add test.
19388         * tests/test-version-etc.c: New file.
19389         * tests/test-version-etc.sh: Likewise.
19390
19391 2009-06-25  Sam Steingold  <sds@gnu.org>
19392
19393         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19394         mbtowc declaration.
19395
19396 2009-06-25  Eric Blake  <ebb9@byu.net>
19397
19398         fpurge: migrate into <stdio.h>
19399         * lib/fpurge.h: Delete...
19400         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19401         * lib/fpurge.c (fpurge): Change declaring header.
19402         * modules/fpurge (Files): Drop deleted file.
19403         (Depends-on): Add stdio.
19404         (configure.ac): Set witness.
19405         * modules/stdio (Makefile.am): Support fpurge macros.
19406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19407         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19408         * lib/fflush.c: Update client.
19409         * tests/test-fpurge.c: Likewise.
19410         * NEWS: Mention the change.
19411
19412 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19413
19414         * lib/argp-version-etc.c (program_authors): Add const
19415         qualifier.
19416         * lib/version-etc.c: Fix typos in the comments.
19417         * modules/argp-version-etc: Depends on version-etc.
19418
19419 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19420
19421         argp-version-etc: new module.
19422
19423         * lib/argp-version-etc.c: New file.
19424         * lib/argp-version-etc.h: New file.
19425         * modules/argp-version-etc: New file.
19426         * modules/argp-version-etc-tests: New file.
19427         * tests/test-argp-version-etc.c: New test.
19428         * tests/test-argp-version-etc-1.sh: New test.
19429
19430 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19431
19432         Provide additional interfaces and documentation for version-etc
19433         module.
19434
19435         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
19436         interfaces.
19437         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
19438         prototypes.
19439
19440 2009-06-24  Bruno Haible  <bruno@clisp.org>
19441
19442         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
19443         HAVE_LIB${NAME} macro.
19444         Reported by Sam Steingold <sds@gnu.org>.
19445
19446 2009-06-23  Simon Josefsson  <simon@josefsson.org>
19447
19448         * modules/hash-tests (test_hash_LDADD): Link to libintl when
19449         needed.
19450
19451 2009-06-21  Bruno Haible  <bruno@clisp.org>
19452
19453         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
19454         work.
19455         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
19456         together with LIB${NAME}, LTLIB${NAME}.
19457         Reported by Sam Steingold <sds@gnu.org>.
19458
19459 2009-06-20  Jim Meyering  <meyering@redhat.com>
19460
19461         tests: make sc_require_test_exit_idiom more generic
19462         * top/maint.mk (Exit_witness_file): New overridable variable.
19463         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
19464         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
19465
19466 2009-06-19  Jim Meyering  <meyering@redhat.com>
19467
19468         hash: reverse order of src/dst parameters in an internal interface
19469         * lib/hash.c (transfer_entries): Reverse order of parameters to
19470         put DST before SRC.  Adjust callers.
19471
19472         tests: test-hash: avoid wholesale duplication
19473         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
19474         Instead, use a loop and add a single conditional.
19475
19476         tests: test-hash: allow seed selection via a command line argument
19477         * tests/test-hash.c (get_seed): New function.
19478         (main): Use it.
19479
19480 2009-06-19  Eric Blake  <ebb9@byu.net>
19481
19482         hash: avoid memory leak on allocation failure
19483         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
19484         failure.  Factor repeated algorithm...
19485         (transfer_entries): ...into new helper routine.
19486         (hash_delete): React to hash_rehash return value.
19487
19488         hash: reduce memory pressure in hash_rehash no-op case
19489         * lib/hash.c (next_prime): Avoid overflow.
19490         (hash_initialize): Factor bucket size computation...
19491         (compute_bucket_size): ...into new helper function.
19492         (hash_rehash): Use new function and open coding to reduce memory
19493         pressure, and avoid a memory leak in USE_OBSTACK code.
19494         Reported by Jim Meyering.
19495
19496 2009-06-18  Eric Blake  <ebb9@byu.net>
19497
19498         hash: make rotation more obvious
19499         * modules/hash (Depends-on): Add bitrotate and stdint.
19500         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
19501         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
19502         (SIZE_MAX): Rely on headers for definition.
19503         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
19504         (raw_hasher): Use rotr_sz.
19505         Suggested by Jim Meyering.
19506
19507         hash: fix memory leak in last patch
19508         * lib/hash.c (hash_rehash): Avoid memory leak.
19509
19510         hash: avoid no-op rehashing
19511         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
19512
19513         hash: provide default callback functions
19514         * lib/hash.c (raw_hasher, raw_comparator): New functions.
19515         (hash_initialize): Use them as defaults.
19516         * tests/test-hash.c (main): Test this.
19517
19518         hash: minor optimization
19519         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
19520         when possible.
19521         (hash_initialize): Document this promise.
19522         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
19523         * tests/test-hash.c (hash_compare_strings): Test this.
19524
19525 2009-06-18  Bruno Haible  <bruno@clisp.org>
19526
19527         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
19528         going to be replaced anyway.
19529
19530 2009-06-18  Bruno Haible  <bruno@clisp.org>
19531
19532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
19533         in one place.
19534         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
19535         be replaced anyway.
19536
19537 2009-06-18  Eric Blake  <ebb9@byu.net>
19538
19539         hash: check for resize before insertion
19540         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
19541         threshold before insertion, so that a pathological hash_rehash
19542         that fills every bucket can still trigger another rehash.
19543
19544 2009-06-18  Jim Meyering  <meyering@redhat.com>
19545
19546         hash-tests: add a loop around the small tests
19547         * tests/test-hash.c (main): Repeat small tests with selected
19548         small initial table sizes.
19549
19550 2009-06-17  Eric Blake  <ebb9@byu.net>
19551
19552         hash: minor cleanups
19553         * lib/hash.h (hash_entry): Make opaque, by moving...
19554         * lib/hash.c (hash_entry): ...here.
19555         (hash_insert): Clarify restrictions on what can be inserted.
19556         (hash_get_next): Clarify when it is safe to remove an element
19557         during traversal.
19558         (check_tuning): Skip verification when tuning is known safe.
19559         (hash_initialize): Clarify restrictions on tuning.
19560
19561 2009-06-17  Jim Meyering  <jim@meyering.net>
19562         and Eric Blake  <ebb9@byu.net>
19563
19564         hash-tests: new module
19565         * modules/hash-tests: New file.
19566         * tests/test-hash.c: New file.
19567
19568 2009-06-17  Eric Blake  <ebb9@byu.net>
19569
19570         strstr-simple: document new module
19571         * MODULES.html.sh: Document new module.
19572
19573         strstr, strcasestr: replace on platforms with broken memchr
19574         * modules/strstr: Split into...
19575         * modules/strstr-simple: ...new module that does not care about
19576         performance, but does care about glibc bug.
19577         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
19578         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
19579         if platform memchr is broken, per Debian bug 521737.
19580         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
19581         memchr.
19582         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
19583         * doc/posix-functions/strstr.texi (strstr): Document the fix.
19584         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19585         * modules/mountlist (Depends-on): Add strstr-simple.
19586         * modules/gen-uni-tables (Depends-on): Likewise.
19587         * modules/argz (Depends-on): Add strstr.
19588
19589 2009-06-17  Bruno Haible  <bruno@clisp.org>
19590
19591         * modules/posix_spawn-internal (Depends-on): Add errno.
19592
19593 2009-06-17  Bruno Haible  <bruno@clisp.org>
19594
19595         Define missing ESTALE on Interix 3.5.
19596         * lib/errno.in.h (ESTALE): Assign a value if missing.
19597         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
19598         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
19599         missing.
19600         * doc/posix-headers/errno.texi: Mention the Interix bug.
19601         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
19602
19603 2009-06-15  Eric Blake  <ebb9@byu.net>
19604
19605         memchr, memchr2: add valgrind exception
19606         * lib/memchr.valgrind: New file.
19607         * lib/memchr2.valgrind: New file.
19608         * modules/memchr (Files): Distribute valgrind file.
19609         * modules/memchr2 (Files): Likewise.
19610
19611         docs: memchr is no longer obsolete
19612         * MODULES.html.sh: Move memchr from obsolete to string.h section.
19613         * lib/string.in.h (memchr): Simplify logic.
19614
19615 2009-06-14  Jim Meyering  <meyering@redhat.com>
19616
19617         link-follow: fix the "checking..." message to not mention trailing slash
19618         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
19619         never considered trailing slashes.
19620
19621 2009-06-14  Bruno Haible  <bruno@clisp.org>
19622
19623         * m4/memchr.m4: Mention also the bug on IA-64.
19624         * doc/posix-functions/memchr.texi: Likewise.
19625
19626 2009-06-12  Eric Blake  <ebb9@byu.net>
19627
19628         memchr: detect broken x86_64 and alpha implementations
19629         * modules/memchr-tests (Depends-on): Move mmap detection...
19630         * modules/memchr (Depends-on): ...here.
19631         (configure.ac): Set indicator.
19632         * lib/string.in.h (memchr): Declare replacement.
19633         * modules/string (Makefile.am): Trigger replacement.
19634         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
19635         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
19636         bugs.
19637         * doc/posix-functions/memchr.texi (memchr): Document the bug.
19638         * modules/getpagesize (License): Relax license.
19639
19640 2009-06-11  Bruno Haible  <bruno@clisp.org>
19641
19642         * lib/idpriv.h: Add more references.
19643
19644 2009-06-08  Bruno Haible  <bruno@clisp.org>
19645
19646         Tests for module 'idpriv-droptemp'.
19647         * modules/idpriv-droptemp-tests: New file.
19648         * tests/test-idpriv-droptemp.sh: New file.
19649         * tests/test-idpriv-droptemp.su.sh: New file.
19650         * tests/test-idpriv-droptemp.c: New file.
19651
19652         New module 'idpriv-droptemp'.
19653         * lib/idpriv-droptemp.c: New file.
19654         * modules/idpriv-droptemp: New file.
19655
19656 2009-06-08  Bruno Haible  <bruno@clisp.org>
19657
19658         Tests for module 'idpriv-drop'.
19659         * modules/idpriv-drop-tests: New file.
19660         * tests/test-idpriv-drop.sh: New file.
19661         * tests/test-idpriv-drop.su.sh: New file.
19662         * tests/test-idpriv-drop.c: New file.
19663
19664         New module 'idpriv-drop'.
19665         * lib/idpriv.h: New file.
19666         * lib-idpriv-drop.c: New file.
19667         * m4/idpriv.m4: New file.
19668         * modules/idpriv-drop: New file.
19669
19670 2009-06-08  Bruno Haible  <bruno@clisp.org>
19671
19672         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
19673         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19674         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19675         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19676         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19677         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19678         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19679
19680 2009-06-08  Eric Blake  <ebb9@byu.net>
19681
19682         test-strstr: use memory fence, when possible
19683         * tests/test-strstr.c (main): Use memory fence, in order to be
19684         more likely to trigger Debian bug 521737.
19685         * modules/strstr-tests (Files): Pull in additional files.
19686
19687         memchr: no longer obsolete, for wider field testing
19688         * modules/memchr (Status, Notice): Delete, this module is no
19689         longer obsolete.
19690         * modules/vasnprintf (Depends-on): Add memchr.
19691
19692 2009-06-07  Jim Meyering  <meyering@redhat.com>
19693
19694         hash: declare some functions with the warn_unused_result attribute
19695         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
19696
19697 2009-06-07  Bruno Haible  <bruno@clisp.org>
19698
19699         * tests/test-alignof.c: Don't test int64_t if it does not exist.
19700         Reported by Eric Blake.
19701
19702 2009-06-06  Eric Blake  <ebb9@byu.net>
19703
19704         test-alignof: fix typo with long double
19705         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
19706         compiler error.
19707
19708 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
19709
19710         Escape non-texinfo { and }s.
19711         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
19712         markup error.
19713
19714 2009-06-04  Jim Meyering  <meyering@redhat.com>
19715
19716         gitlog-to-changelog: don't infloop on an empty commit log
19717         * build-aux/gitlog-to-changelog: Warn about an empty log message.
19718         Reported by Boris Petersen <transacid@centerim.org>.
19719
19720 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
19721
19722         version-etc: extend for packagers
19723         Add three new configure options, intended for packagers:
19724           --with-packager="packager name"
19725           --with-packager-version="packager-specific version"
19726           --with-packager-bug-reports="packager bug reporting"
19727         An example with coreutils:
19728           $ ./configure \
19729             --with-packager=Gentoo \
19730             --with-packager-bug-report=http://bugs.gentoo.org/ \
19731             --with-packager-version="patchset 1.6"
19732           $ ./src/ls --version | head -n2
19733           ls (GNU coreutils) 7.1-dirty
19734           Packaged by Gentoo (patchset 1.6)
19735         Note that the bug reporting info via --help doesn't show up because
19736         coreutils uses its own custom emit_bug_reporting_address() implementation
19737         in src/system.h.  If it didn't, it'd look like:
19738           $ ./src/ls --help | tail -n4
19739           Report bugs to <bug-coreutils@gnu.org>.
19740           Report Gentoo bugs to <http://bugs.gentoo.org/>.
19741           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
19742           General help using GNU software: <http://www.gnu.org/gethelp/>.
19743         * lib/version-etc.c: Print new information, if provided.
19744         * m4/version-etc.m4: New file.
19745         * modules/version-etc (Files): Add m4/version-etc.m4.
19746         (configure.ac): Add gl_VERSION_ETC.
19747
19748 2009-05-31  Bruno Haible  <bruno@clisp.org>
19749
19750         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
19751         and 'int64_t'.
19752         * modules/alignof-tests (Dependencies): Add stdint.
19753         Reported by Eric Blake.
19754
19755 2009-05-31  Bruno Haible  <bruno@clisp.org>
19756
19757         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
19758         restriction due to compiler bugs.
19759         Reported by Eric Blake.
19760
19761 2009-05-31  Simon Josefsson  <simon@josefsson.org>
19762             Bruno Haible  <bruno@clisp.org>
19763
19764         Fix test-alignof failure.
19765         * lib/alignof.h (alignof_slot): New macro.
19766         (alignof_type): New macro, with the same semantics as the previous
19767         'alignof'.
19768         (alignof): Alias to alignof_slot.
19769         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
19770         check that the results are usable as constant expressions.
19771
19772 2009-05-31  Bruno Haible  <bruno@clisp.org>
19773
19774         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
19775         * tests/test-memchr.c (main): Check that memchr does not read past the
19776         first occurrence of the byte.
19777         * tests/test-strstr.c (main): Update comment.
19778         Suggested by Eric Blake.
19779
19780 2009-05-30  Bruno Haible  <bruno@clisp.org>
19781
19782         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
19783         detail how to use dumpbin.
19784         Reported by David Byron <dbyron@dbyron.com>.
19785
19786 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19787
19788         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
19789
19790 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19791
19792         * m4/manywarnings.m4: Add GCC 4.4 warnings.
19793
19794 2009-05-28  Bruno Haible  <bruno@clisp.org>
19795
19796         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
19797         build-aux/ files.
19798
19799 2009-05-28  Simon Josefsson  <simon@josefsson.org>
19800
19801         * gnulib-tool (func_import): Transform license on build-aux/ files too.
19802
19803 2009-05-27  Simon Josefsson  <simon@josefsson.org>
19804
19805         * gnulib-tool (sed_transform_main_lib_file)
19806         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
19807         regexps.
19808
19809 2009-05-26  Simon Josefsson  <simon@josefsson.org>
19810
19811         * tests/test-strstr.c: Add another self-test.
19812         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
19813         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
19814
19815 2009-05-23  Bruno Haible  <bruno@clisp.org>
19816
19817         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
19818         change.
19819
19820 2009-05-21  Bruno Haible  <bruno@clisp.org>
19821
19822         Simplify use of mode_t varargs.
19823         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
19824         uses 'mode_t' or 'int'.
19825         * lib/openat.c (openat): Likewise.
19826         * lib/open-safer.c (open_safer): Likewise.
19827         * m4/mode_t.m4: New file.
19828         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
19829         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
19830         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
19831         * modules/open (Files): Add m4/mode_t.m4.
19832         * modules/openat (Files): Likewise.
19833         * modules/fcntl-safer (Files): Likewise.
19834         Suggested by Eric Blake.
19835
19836 2009-05-21  Pádraig Brady  <P@draigbrady.com>
19837
19838         * doc/glibc-functions/fallocate.texi: New file.
19839         * doc/gnulib.texi: Include it.
19840
19841 2009-05-21  Eric Blake  <ebb9@byu.net>
19842             Bruno Haible  <bruno@clisp.org>
19843
19844         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
19845         invocations.
19846         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19847
19848 2009-05-21  Eric Blake  <ebb9@byu.net>
19849             Bruno Haible  <bruno@clisp.org>
19850
19851         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
19852         include_next. Fix of 2008-11-20 commit.
19853         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
19854         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
19855         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
19856         NEXT_MATH_H.
19857         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
19858         instead of NEXT_MATH_H.
19859
19860 2009-05-21  Bruno Haible  <bruno@clisp.org>
19861
19862         Avoid redefinition warnings for SIZE_MAX.
19863         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
19864         Reported by Simon Josefsson.
19865
19866 2009-05-21  Bruno Haible  <bruno@clisp.org>
19867
19868         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
19869         AC_CACHE_VAL.
19870
19871 2009-05-20  Bruno Haible  <bruno@clisp.org>
19872
19873         Make zeroptr.h work on mingw.
19874         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
19875         mprotect.
19876         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
19877         * modules/memchr2-tests (configure.ac): Likewise.
19878         * modules/memcmp-tests (configure.ac): Likewise.
19879         * modules/memmem-tests (configure.ac): Likewise.
19880         * modules/memrchr-tests (configure.ac): Likewise.
19881         Reported by Simon Josefsson.
19882
19883 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19884
19885         * tests/test-glob.c: Include string.h for strcmp prototype.
19886
19887 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19888
19889         * modules/getdelim (Depends-on): Add explicit stdint, although it
19890         was implicitly already pulled in via realloc-posix.
19891         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
19892
19893 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19894
19895         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
19896         G. Christensen" <tgc@jupiterrise.com>.
19897         * m4/sys_socket_h.m4: Check for sa_family_t.
19898         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
19899         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
19900         * tests/test-sys_socket.c: Check that sa_family_t works.
19901
19902 2009-05-18  Eric Blake  <ebb9@byu.net>
19903
19904         maint.mk: allow gnulib_dir in VPATH build
19905         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
19906
19907 2009-05-15  Jim Meyering  <meyering@redhat.com>
19908
19909         maint.mk: Give gnulib_dir a default definition.
19910         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
19911         Thus, most packages no longer need to specify this variable in cfg.mk
19912
19913 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
19914
19915         rename.m4: fix typos that would make non-mingw cross-configure fail
19916         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
19917
19918 2009-05-13  Eric Blake  <ebb9@byu.net>
19919
19920         mmap-anon: avoid out-of-order autoconf expansion
19921         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
19922         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
19923         * modules/memchr-tests (Depends-on): Add extensions.
19924         * modules/memchr2-tests (Depends-on): Add extensions.
19925         * modules/memcmp-tests (Depends-on): Add extensions.
19926         * modules/memmem-tests (Depends-on): Add extensions.
19927         * modules/memrchr-tests (Depends-on): Add extensions.
19928
19929 2009-05-13  Bruno Haible  <bruno@clisp.org>
19930
19931         Make some tests ISO C 99 compliant.
19932         * tests/zerosize-ptr.h: New file.
19933         * tests/test-memchr.c: Include zerosize-ptr.h.
19934         (main): Use a zero-size object pointer instead of NULL.
19935         * tests/test-memchr2.c: Include zerosize-ptr.h.
19936         (main): Use a zero-size object pointer instead of NULL.
19937         * tests/test-memcmp.c: Include zerosize-ptr.h.
19938         (main): Use a zero-size object pointer instead of NULL.
19939         * tests/test-memmem.c: Include zerosize-ptr.h.
19940         (main): Use a zero-size object pointer instead of NULL.
19941         * tests/test-memrchr.c: Include zerosize-ptr.h.
19942         (main): Use a zero-size object pointer instead of NULL.
19943         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
19944         m4/mmap-anon.m4.
19945         (Depends-on): Add getpagesize.
19946         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19947         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
19948         m4/mmap-anon.m4.
19949         (Depends-on): Add getpagesize.
19950         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19951         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
19952         m4/mmap-anon.m4.
19953         (Depends-on): Add getpagesize.
19954         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19955         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
19956         m4/mmap-anon.m4.
19957         (Depends-on): Add getpagesize.
19958         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19959         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
19960         m4/mmap-anon.m4.
19961         (Depends-on): Add getpagesize.
19962         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19963
19964 2009-05-12  Bruno Haible  <bruno@clisp.org>
19965
19966         Tests for module 'alignof'.
19967         * modules/alignof-tests: New file.
19968         * tests/test-alignof.c: New file.
19969
19970 2009-05-12  Bruno Haible  <bruno@clisp.org>
19971
19972         Fix alignof macro.
19973         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
19974         vendor compilers that are always correct.
19975
19976 2009-05-12  Bruno Haible  <bruno@clisp.org>
19977
19978         Make the MAP_ANONYMOUS detection work on HP-UX 11.
19979         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
19980         not whether its fully works.
19981
19982 2009-05-12  Bruno Haible  <bruno@clisp.org>
19983
19984         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
19985
19986 2009-05-12  Jim Meyering  <meyering@redhat.com>
19987
19988         * top/maint.mk: Adjust backslash alignment.
19989
19990 2009-05-11  Simon Josefsson  <simon@josefsson.org>
19991
19992         * top/maint.mk: Make $(srcdir)/build-aux configurable.
19993
19994 2009-05-11  Eric Blake  <ebb9@byu.net>
19995
19996         argp: avoid undefined behavior
19997         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
19998         macros.
19999
20000 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20001
20002         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20003         user.name to prevent git commit from complaining.
20004
20005 2009-05-10  Bruno Haible  <bruno@clisp.org>
20006
20007         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20008         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20009         it rewrites every file name only once.
20010         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20011
20012 2009-05-08  Bruno Haible  <bruno@clisp.org>
20013
20014         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20015         instead of 'max'.
20016
20017 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20018
20019         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20020         sockaddr_storage test.
20021
20022 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20023
20024         * modules/sys_socket (Makefile.am): Substitute
20025         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20026         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20027         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20028         * tests/test-sys_socket.c: Check sockaddr_storage.
20029
20030 2009-05-08  Bruno Haible  <bruno@clisp.org>
20031
20032         New module 'alignof'.
20033         * lib/alignof.h: New file.
20034         * modules/alignof: New file.
20035
20036 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20037             Bruno Haible  <bruno@clisp.org>
20038
20039         Fix test-file-has-acl on FreeBSD.
20040         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20041         mask is implicitly added.
20042         * tests/test-file-has-acl.c: Include <signal.h>.
20043         (main): Terminate the test after 5 seconds.
20044         * modules/acl-tests (configure.ac): Check for alarm function.
20045
20046 2009-05-04  Bruno Haible  <bruno@clisp.org>
20047
20048         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20049         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20050         * modules/errno (configure.ac): Drop AC_REQUIRE.
20051         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20052         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20053
20054 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20055
20056         * modules/glob-tests: New module.
20057         * tests/test-glob.c: Add.
20058
20059 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20060
20061         * modules/fnmatch-tests: New module.
20062         * tests/test-fnmatch.c: Add.
20063
20064 2009-05-04  Eric Blake  <ebb9@byu.net>
20065
20066         maint: make the new no-submodule-changes rule VPATH-safe
20067         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20068
20069 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20070             Bruno Haible  <bruno@clisp.org>
20071
20072         acl: Fix infinite loop on FreeBSD.
20073         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20074         of return value from acl_get_entry.
20075         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20076         Likewise.
20077
20078 2009-05-03  Bruno Haible  <bruno@clisp.org>
20079
20080         * lib/acl-internal.h (acl_entries): Clarify return value.
20081         * lib/acl_entries.c (acl_entries): Likewise.
20082
20083 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20084
20085         Bug fix in acl module.
20086         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20087
20088 2009-05-03  Bruno Haible  <bruno@clisp.org>
20089
20090         Create gperf-generated file in the source dir, not in the build dir.
20091         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20092         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20093         * modules/unicase/locale-language (unicase/locale-languages.h):
20094         Likewise.
20095         * modules/unicase/special-casing (unicase/special-casing-table.h):
20096         Likewise.
20097         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20098         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20099         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20100         Reported by Ralf Wildenhues.
20101
20102 2009-05-03  Bruno Haible  <bruno@clisp.org>
20103
20104         * modules/fnmatch (Description, configure.ac): Taken from
20105         fnmatch-posix.
20106         * modules/fnmatch-posix: Turn into a symbolic reference to the
20107         'fnmatch' module, and deprecate.
20108         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20109
20110 2009-05-03  Bruno Haible  <bruno@clisp.org>
20111
20112         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20113         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20114         Reported by Ralf Wildenhues.
20115
20116 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20117
20118         * m4/fnmatch.m4: Fix fnmatch re-define.
20119
20120 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20121
20122         priv-set: new module and tests; adapt write-any-file
20123         * lib/priv-set.c: New file.
20124         * lib/priv-set.h: New file.
20125         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20126         * lib/write-any-file.c: Simplify by using priv-set module.
20127         * m4/priv-set.m4: New file.
20128         * modules/priv-set: New file.
20129         * modules/unlinkdir: Add dependency on priv-set module.
20130         * modules/write-any-file: Likewise.
20131
20132         Tests for module 'priv-set'.
20133         * modules/priv-set-tests: New file.
20134         * tests/test-priv-set.c: New file.
20135
20136 2009-05-03  Jim Meyering  <meyering@redhat.com>
20137             Bruno Haible  <bruno@clisp.org>
20138
20139         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20140         use the converted UTF-8 variant of the name instead.
20141
20142 2009-05-03  Jim Meyering  <meyering@redhat.com>
20143
20144         tests: tighten some getdate tests
20145         * tests/test-getdate.c (main): Tighten tests: require equality,
20146         not just greater than.  Set TZ envvar to UTC0.
20147
20148 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20149
20150         getdate: correctly interpret "next monday" when run on a Monday
20151         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20152         that e.g., "next tues" (when run on a tuesday) results in a date
20153         that is one week in the future, and not today's date.
20154         I.e., add a week when the wday is the same as the current one.
20155         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20156         and earlier by Martin Bernreuther and Jan Minář.
20157         * tests/test-getdate.c (main): Check that "next DAY" is always in
20158         the future and that "last DAY" is always in the past.
20159
20160 2009-05-02  Jim Meyering  <meyering@redhat.com>
20161
20162         build: ensure that a release build fails when a submodule is unclean
20163         * top/maint.mk (no-submodule-changes): New rule.
20164         (alpha beta major): Depend on it.
20165
20166 2009-05-02  Bruno Haible  <bruno@clisp.org>
20167
20168         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20169         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20170         shell variable gl_fnmatch_required to detect which variant is
20171         requested.
20172         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20173         gl_FUNC_FNMATCH_POSIX.
20174         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20175         exclude fnmatch-posix.
20176
20177 2009-05-02  Bruno Haible  <bruno@clisp.org>
20178
20179         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20180         * modules/mbsrtowcs (License): Change to LGPLv2+.
20181         * modules/strnlen1 (License): Likewise.
20182         Reported by Simon Josefsson.
20183
20184 2009-05-02  Bruno Haible  <bruno@clisp.org>
20185
20186         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20187         "cross".
20188         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20189         gnulib-tool was called with option --source-base=lib.
20190
20191 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20192
20193         Use automake *-local hooks without commands, for extensibility.
20194         * modules/localcharset (Makefile.am): Rename install-exec-local
20195         rule to install-exec-localcharset, and make it a prerequisite of
20196         install-exec-local.  Likewise, rename the uninstall-local rule to
20197         uninstall-localcharset, and make it a prerequisite of the former.
20198
20199 2009-05-01  Bruno Haible  <bruno@clisp.org>
20200
20201         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20202         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20203         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20204         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20205         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20206         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20207         m4/locale-zh.m4, m4/codeset.m4.
20208
20209         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20210         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20211         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20212         m4/locale-zh.m4.
20213
20214         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20215         REPLACE_WCRTOMB if mbstate_t must be replaced.
20216         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20217         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20218
20219 2009-05-01  Bruno Haible  <bruno@clisp.org>
20220
20221         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20222         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20223         dngettext, dcngettext, textdomain, bindtextdomain,
20224         bind_textdomain_codeset): Undefine before redefining.
20225
20226 2009-04-30  Bruno Haible  <bruno@clisp.org>
20227
20228         Fix bug introduced on 2009-04-25.
20229         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20230         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20231         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20232         is defined.
20233         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20234         is defined.
20235         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20236         is defined.
20237         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20238
20239 2009-04-28  Bruno Haible  <bruno@clisp.org>
20240
20241         Comment tweaks.
20242         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20243         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20244         * lib/unicase.h (u*_casexfrm): Likewise.
20245         Reported by Paolo Bonzini.
20246
20247 2009-04-28  Bruno Haible  <bruno@clisp.org>
20248
20249         Fix a compilation error.
20250         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
20251         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20252         Reported by Jim Meyering.
20253
20254 2009-04-27  Bruno Haible  <bruno@clisp.org>
20255
20256         New module 'libunistring'.
20257         * modules/libunistring: New file.
20258         * m4/libunistring.m4: New file.
20259         * MODULES.html.sh (Unicode string functions): Add it.
20260
20261 2009-04-27  Eric Blake  <ebb9@byu.net>
20262
20263         maint.mk: allow package-specific header to provide <config.h>
20264         * top/maint.mk (sc_require_config_h): New variable.
20265         (sc_require_config_h, sc_require_config_h_first): Use it.
20266
20267 2009-04-27  Simon Josefsson  <simon@josefsson.org>
20268
20269         * top/maint.mk (sc_avoid_if_before_free): Except
20270         useless-if-before-free script.
20271
20272 2009-04-27  Eric Blake  <ebb9@byu.net>
20273
20274         maintainer-makefile: depend on all required helper scripts
20275         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
20276         useless-if-before-free.
20277         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
20278         version, rather than assuming gnulib checkout is available.
20279         Reported by Simen Josefsson.
20280
20281 2009-04-26  Bruno Haible  <bruno@clisp.org>
20282
20283         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
20284         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20285         "../" or "..".
20286
20287 2009-04-26  Bruno Haible  <bruno@clisp.org>
20288
20289         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20290         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20291         AC_LIB_HAVE_LINKFLAGS.
20292
20293 2009-04-26  Bruno Haible  <bruno@clisp.org>
20294
20295         Simplify calling convention of u*_conv_from_encoding.
20296         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20297         u32_conv_from_encoding): Expect a resultbuf argument and return the
20298         result directly as a pointer.
20299         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20300         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20301         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20302         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20303         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20304         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20305         Update.
20306         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20307         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20308         * lib/vasnprintf.c (VASNPRINTF): Update.
20309         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20310         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20311         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20312         * NEWS: Mention the change.
20313
20314 2009-04-26  Bruno Haible  <bruno@clisp.org>
20315
20316         Simplify calling convention of u*_conv_to_encoding.
20317         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20318         u32_conv_to_encoding): Expect a resultbuf argument and return the
20319         result directly as a pointer.
20320         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20321         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20322         freeing scaled_offsets if mem_iconveha failed.
20323         * lib/unicase/u-casexfrm.h (FUNC): Update.
20324         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20325         * lib/vasnprintf.c (VASNPRINTF): Update.
20326         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20327         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20328         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20329         * NEWS: Mention the change.
20330
20331 2009-04-26  Bruno Haible  <bruno@clisp.org>
20332
20333         Avoid test failures on AIX and OSF/1.
20334         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20335         malloc(0).
20336         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20337         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20338         Likewise.
20339         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20340         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20341         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20342         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20343         * doc/posix-functions/malloc.texi: Document the portability problem
20344         related to malloc(0).
20345
20346 2009-04-26  Bruno Haible  <bruno@clisp.org>
20347
20348         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20349         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20350         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20351
20352 2009-04-25  Bruno Haible  <bruno@clisp.org>
20353
20354         Avoid link error when creating a namespace clean library.
20355         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20356         as macro with arguments if already defined as an alias.
20357         * lib/signbitf.c (gl_signbitf): Don't undefine.
20358         * lib/signbitd.c (gl_signbitd): Don't undefine.
20359         * lib/signbitl.c (gl_signbitl): Don't undefine.
20360
20361 2009-04-25  Jim Meyering  <meyering@redhat.com>
20362
20363         vc-list-files: fix another quoting bug
20364         * build-aux/vc-list-files: Avoid sed backslash expansion
20365         of pathological directory names.
20366
20367 2009-04-25  Eric Blake  <ebb9@byu.net>
20368
20369         vc-list-files: fix shell quoting error
20370         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20371         timestamp.
20372
20373 2009-04-25  Jim Meyering  <meyering@redhat.com>
20374
20375         vc-list-files: restore lost functionality with subdir argument
20376         * build-aux/vc-list-files: When given a non-"." sub-directory
20377         argument, substitute the $dir/ prefix back onto each resulting name.
20378         Otherwise, coreutils' root_tests check would fail.
20379
20380 2009-04-24  Eric Blake  <ebb9@byu.net>
20381
20382         vc-list-files: ignore git symlinks
20383         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20384         than ls-files, to ignore git symlinks.
20385
20386         maint.mk: import improvements from m4
20387         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20388         (move_if_change): Delete unused macro.
20389         (news-date-check, vc-diff-check): Support VPATH builds.
20390         (announcement): Likewise.  Split --bootstrap-tools list...
20391         (boostrap-tools): ...into separate list, which can be overridden
20392         in cfg.mk.
20393         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20394         requiring dependency on useless-if-before-free module.
20395         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20396         Support VPATH builds.
20397
20398 2009-04-24  Jim Meyering  <meyering@redhat.com>
20399
20400         maint.mk: remove coreutils-specific rules and variables
20401         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20402         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20403         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20404
20405         maint.mk: remove obsolete rule
20406         * top/maint.mk (rel-check): Remove rule.
20407         (WGET, WGETFLAGS): Remove now-unused variables.
20408
20409 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20410
20411         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20412         consistency.
20413
20414         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
20415         '$(PATH_SEPARATOR)' instead of ':'.
20416
20417 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20418
20419         * lib/getopt1.c (main): Use 'const' for static array.
20420
20421 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20422
20423         * top/maint.mk: Sync with coreutils.
20424         * NEWS: Explain incompatibilities.
20425
20426 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20427             Bruno Haible  <bruno@clisp.org>
20428
20429         Fix cross-compilation results.
20430         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
20431         statement, as third argument of AC_TRY_RUN.
20432         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20433         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20434         Likewise.
20435         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20436         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20437         Likewise.
20438         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20439         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
20440         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
20441
20442 2009-04-20  Bruno Haible  <bruno@clisp.org>
20443
20444         Avoid test failure on mingw.
20445         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
20446
20447 2009-04-20  Bruno Haible  <bruno@clisp.org>
20448
20449         Avoid compilation error on mingw.
20450         * modules/localename-tests (Depends-on): Add locale.
20451
20452 2009-04-19  Bruno Haible  <bruno@clisp.org>
20453
20454         Support for building a shared library on Windows platforms.
20455         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
20456         (main): Test the presence of UNINORM_NFC here.
20457         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
20458         (main): Test the presence of UNINORM_NFD here.
20459         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
20460         (main): Test the presence of UNINORM_NFKC here.
20461         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
20462         (main): Test the presence of UNINORM_NFKD here.
20463
20464 2009-04-19  Bruno Haible  <bruno@clisp.org>
20465
20466         Avoid a compiler warning.
20467         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
20468         Change type of variable 'sequence'.
20469
20470 2009-04-19  Bruno Haible  <bruno@clisp.org>
20471
20472         * modules/configmake (Makefile.am): When the contents of configmake.h
20473         does not change, arrange to preserve its modification time.
20474
20475 2009-04-17  Simon Josefsson  <simon@josefsson.org>
20476
20477         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
20478         gettext domain.
20479
20480 2009-04-16  Jim Meyering  <meyering@redhat.com>
20481
20482         useless-if-before-free: improve conversion code
20483         * build-aux/useless-if-before-free: Adjust code-in-comment to match
20484         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
20485
20486 2009-04-14  Bruno Haible  <bruno@clisp.org>
20487
20488         * modules/fcntl (Depends-on): Add extensions.
20489         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
20490
20491 2009-04-12  Ben Pfaff  <blp@gnu.org>
20492
20493         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
20494         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
20495
20496 2009-03-20  Ben Pfaff  <blp@gnu.org>
20497
20498         Make rename replace existing destinations on Windows.
20499         * m4/rename.m4: Add test for Mingw.
20500         * lib/rename.c: Add rename replacement that uses MoveFileEx with
20501         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
20502         * doc/posix-functions/rename.texi: Document.
20503
20504 2009-04-10  Bruno Haible  <bruno@clisp.org>
20505
20506         New include file "iconveh.h".
20507         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
20508         * lib/striconveh.h: Include it.
20509         (enum iconv_ilseq_handler): Remove definition.
20510         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
20511         striconveh.h.
20512         * lib/striconveha.c: Include striconveh.h.
20513         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
20514         * modules/striconveh (Files): Add lib/iconveh.h.
20515         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
20516         lib/striconveh.h.
20517
20518 2009-04-10  Bruno Haible  <bruno@clisp.org>
20519
20520         * lib/uniconv.h: Update comment.
20521
20522 2009-04-10  Bruno Haible  <bruno@clisp.org>
20523
20524         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
20525         always.
20526         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20527         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20528         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20529         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
20530         "unistring-notinline.h", so that the function gets defined always.
20531         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20532         * lib/unistr/u8-uctomb.c: Likewise.
20533         * lib/unistr/u16-mbtouc.c: Likewise.
20534         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20535         * lib/unistr/u16-uctomb.c: Likewise.
20536         * lib/unistr/u32-mbtouc.c: Likewise.
20537         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20538         * lib/unistr/u32-uctomb.c: Likewise.
20539
20540 2009-04-10  Bruno Haible  <bruno@clisp.org>
20541
20542         Mark 'utime' obsolete.
20543         * modules/utime (Status, Notice): New sections.
20544         Suggested by Jim Meyering.
20545
20546         Fix cross-compile guess for utime test.
20547         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
20548         autoconf.
20549         * doc/posix-functions/utime.texi: Give more precisions.
20550         Reported by Jan <ipif@ymail.com>.
20551
20552 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
20553
20554         filevercmp: correct today's change
20555         * lib/filevercmp.c: Also handle coreutils' test inputs.
20556         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
20557
20558         Fix regression in 'filevercmp' module. Thanks Sven Joachim
20559         for reporting it.
20560         * lib/filevercmp.c: Special handle for "", "." and "..".
20561         * tests/test-filevercmp.c: Enlarge the set suite.
20562
20563 2009-04-07  Jim Meyering  <meyering@redhat.com>
20564
20565         useless-if-before-free: show how to remove braced useless free, too
20566         * build-aux/useless-if-before-free: still only in a comment, though.
20567
20568 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
20569
20570         maint.mk: import changes to syntax-check macros from coreutils
20571         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
20572         Use them in the relevant macros.
20573
20574 2009-04-06  Bruno Haible  <bruno@clisp.org>
20575
20576         Fix unportable use of bit-fields.
20577         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
20578         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
20579         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
20580
20581 2009-04-06  Bruno Haible  <bruno@clisp.org>
20582
20583         Avoid test failures on AIX and OSF/1.
20584         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
20585         that malloc(0) = NULL.
20586         * tests/unicase/test-u8-tolower.c (check): Likewise.
20587         * tests/unicase/test-u8-totitle.c (check): Likewise.
20588         * tests/unicase/test-u8-toupper.c (check): Likewise.
20589         * tests/unicase/test-u16-casefold.c (check): Likewise.
20590         * tests/unicase/test-u16-tolower.c (check): Likewise.
20591         * tests/unicase/test-u16-totitle.c (check): Likewise.
20592         * tests/unicase/test-u16-toupper.c (check): Likewise.
20593         * tests/unicase/test-u32-casefold.c (check): Likewise.
20594         * tests/unicase/test-u32-tolower.c (check): Likewise.
20595         * tests/unicase/test-u32-totitle.c (check): Likewise.
20596         * tests/unicase/test-u32-toupper.c (check): Likewise.
20597         * tests/uninorm/test-u8-nfc.c (check): Likewise.
20598         * tests/uninorm/test-u8-nfd.c (check): Likewise.
20599         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
20600         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
20601         * tests/uninorm/test-u16-nfc.c (check): Likewise.
20602         * tests/uninorm/test-u16-nfd.c (check): Likewise.
20603         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
20604         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
20605         * tests/uninorm/test-u32-nfc.c (check): Likewise.
20606         * tests/uninorm/test-u32-nfd.c (check): Likewise.
20607         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
20608         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
20609
20610 2009-04-05  Bruno Haible  <bruno@clisp.org>
20611
20612         Work around an autoconf limitation.
20613         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
20614         comment line if it would be longer than 3 KB.
20615
20616 2009-04-05  Bruno Haible  <bruno@clisp.org>
20617
20618         Avoid test failure with libiconv-1.13.
20619         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
20620         of the expected test results.
20621
20622 2009-04-05  Bruno Haible  <bruno@clisp.org>
20623
20624         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
20625         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
20626         that it should be installed.
20627
20628 2009-04-05  Bruno Haible  <bruno@clisp.org>
20629
20630         * gnulib-tool: New option --copy-file.
20631         (func_usage): Document it.
20632         (func_dest_tmpfilename): Moved out of func_import.
20633         (func_add_file, func_update_file): New functions, extracted from
20634         func_import.
20635         (func_import): Update.
20636
20637 2009-04-05  Karl Berry  <karl@gnu.org>
20638
20639         * README: prominently mention gnulib-tool.
20640         Rearrange sections so getting the code is near the top.
20641
20642 2009-04-05  Bruno Haible  <bruno@clisp.org>
20643
20644         * lib/unicase.h: Mention u*_cmp2.
20645         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20646         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
20647         * lib/unicase/ulc-casecmp.c: Likewise.
20648         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
20649         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
20650         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
20651         unistr/u8-cmp.
20652         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
20653         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
20654         unistr/u16-cmp.
20655         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
20656         unistr/u32-cmp.
20657
20658         * lib/uninorm.h: Mention u*_cmp2.
20659         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20660         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
20661         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
20662         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
20663         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
20664         unistr/u8-cmp.
20665         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
20666         unistr/u16-cmp.
20667         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
20668         unistr/u32-cmp.
20669
20670         New module 'unistr/u32-cmp2'.
20671         * lib/unistr/u32-cmp2.c: New file.
20672         * modules/unistr/u32-cmp2: New file.
20673
20674         New module 'unistr/u16-cmp2'.
20675         * lib/unistr/u16-cmp2.c: New file.
20676         * modules/unistr/u16-cmp2: New file.
20677
20678         New module 'unistr/u8-cmp2'.
20679         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
20680         * lib/unistr/u8-cmp2.c: New file.
20681         * lib/unistr/u-cmp2.h: New file.
20682         * modules/unistr/u8-cmp2: New file.
20683
20684 2009-04-05  Bruno Haible  <bruno@clisp.org>
20685
20686         * lib/unictype.h (uc_property_is_valid): New macro.
20687         * tests/unictype/test-pr_byname.c (main): Use it.
20688
20689         * lib/unistr.h: Doc fixes.
20690         * lib/uniconv.h: Doc fixes.
20691         * lib/unictype.h: Doc fixes.
20692
20693 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
20694
20695         Port coreutils 7.2 to Solaris 8.
20696
20697         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
20698         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
20699         for Solaris 8.  This is a bit of a hack, as it means it's the
20700         caller's responsibility to add -lnsl if needed, but most likely it
20701         won't be needed since only getaddrinfo uses this and getaddrinfo
20702         isn't needed on Solaris 8.
20703
20704         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
20705         problem to Solaris 8 encountered with coreutils 7.2, which
20706         resulted in a message "fnmatch.c:292: warning: passing argument 4
20707         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
20708         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
20709
20710 2009-04-03  Simon Josefsson  <simon@josefsson.org>
20711
20712         * m4/ld-version-script.m4: Add FIXME comment.
20713
20714 2009-04-02  Simon Josefsson  <simon@josefsson.org>
20715
20716         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
20717         SOVERSION variable.
20718
20719 2009-04-02  Bruno Haible  <bruno@clisp.org>
20720
20721         * Makefile (info, html, dvi, pdf): Combine the rules.
20722         Suggested by Jim Meyering.
20723
20724 2009-04-01  Bruno Haible  <bruno@clisp.org>
20725
20726         * Makefile (info, html, dvi, pdf): New targets.
20727         Reported by Reuben Thomas <rrt@sc3d.org>.
20728
20729 2009-04-01  Bruno Haible  <bruno@clisp.org>
20730
20731         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
20732         can be put into PATH.
20733         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
20734
20735 2009-04-01  Bruno Haible  <bruno@clisp.org>
20736
20737         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
20738
20739 2009-04-01  Bruno Haible  <bruno@clisp.org>
20740
20741         Rename module 'visibility'.
20742         * modules/lib-symbol-visibility: Renamed from modules/visibility.
20743         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
20744         * doc/gnulib.texi: Update.
20745         * MODULES.html.sh (Misc): Update.
20746         * NEWS: Mention the change.
20747
20748 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20749
20750         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
20751         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
20752         Eric Blake <ebb9@byu.net> for review.
20753         * MODULES.html.sh: Add lib-msvc-compat.
20754         * doc/gnulib.texi: Link to new section.
20755         * m4/ld-output-def.m4: New file.
20756         * doc/ld-output-def.texi: New file.
20757
20758 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20759
20760         Rename ld-version-script to lib-symbol-versions.  Suggested by
20761         Bruno Haible <bruno@clisp.org>.
20762         * modules/ld-version-script: Renamed to lib-symbol-versions.
20763         * doc/ld-version-script.texi: Fix module name.
20764         * MODULES.html.sh: Add lib-symbol-versions.
20765
20766 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20767
20768         * modules/u64-tests: New file.
20769         * tests/test-u64.c: New file.
20770
20771 2009-03-04  Simon Josefsson  <simon@josefsson.org>
20772
20773         * MODULES.html.sh: Mention u64.
20774         * modules/u64: New module.
20775         * modules/crypto/sha512: Depend on u64 module instead of providing
20776         u64.h.
20777
20778 2009-03-27  Eric Blake  <ebb9@byu.net>
20779
20780         test-strerror: make debugging EAI_SYSTEM easier
20781         * modules/getaddrinfo-tests (Depends-on): Add strerror.
20782         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
20783         failure was EAI_SYSTEM.
20784
20785 2009-03-25  Bruno Haible  <bruno@clisp.org>
20786
20787         Fix a problem with --enable-relocatable on Solaris 7.
20788         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
20789         since 2008-02-24.
20790
20791 2009-03-25  Eric Blake  <ebb9@byu.net>
20792
20793         test-sockets: avoid gcc warning
20794         * tests/test-sockets.c (main): Silence compiler warning.
20795
20796 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
20797
20798         New modules nproc, pthread, contributed by Glen Lenker.
20799
20800         * MODULES.html.sh: Add pthread, nproc.
20801         * lib/nproc.c: New file.
20802         * lib/nproc.h: New file.
20803         * lib/pthread.in.h: New file.
20804         * m4/pthread.m4: New file.
20805         * modules/nproc: New file.
20806         * modules/pthread: New file.
20807
20808 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20809
20810         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
20811         New variable.
20812
20813 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
20814
20815         filevercmp: handle simple~ and numbered.~3~ backup suffixes
20816         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
20817         * tests/test-filevercmp.c: Add tests for backup suffixes.
20818
20819 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20820
20821         * modules/stdlib (Depends-on): Add stdint, needed when defining
20822         struct random_data on, for example, HP-UX 10.20.  Reported by
20823         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20824
20825 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20826
20827         * lib/readline.c (readline): Call fflush on stdout after printing
20828         prompt.
20829
20830 2009-03-20  Bruno Haible  <bruno@clisp.org>
20831
20832         Remove dependency from 'close' module to -lws2_32 on native Windows.
20833         * lib/close-hook.h: New file.
20834         * lib/close-hook.c: New file.
20835         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
20836         w32sock.h.
20837         (_gl_close_fd_maybe_socket): Remove function.
20838         (rpl_close): Invoke execute_all_close_hooks instead of
20839         _gl_close_fd_maybe_socket.
20840         * lib/sockets.c: Include close-hook.h, w32sock.h.
20841         (close_fd_maybe_socket): New function, essentially from lib/close.c.
20842         (close_sockets_hook): New variable.
20843         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
20844         (gl_sockets_cleanup): Unregister it.
20845         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
20846         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
20847         * modules/close-hook: New file.
20848         * modules/close (Files): Remove lib/w32sock.h.
20849         (Depends-on): Add close-hook.
20850         (Link): Remove section.
20851         * modules/sockets (Files): Add lib/w32sock.h.
20852         (Depends-on): Add close-hook.
20853         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
20854         invocation.
20855         * NEWS: Mention that LIB_CLOSE is gone.
20856
20857 2009-03-23  Eric Blake  <ebb9@byu.net>
20858
20859         signal-tests: test previous patch
20860         * tests/test-signal.c: New file.
20861         * modules/signal-tests: Likewise.
20862
20863         signal.h: always support 'volatile sig_atomic_t'
20864         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
20865         (gl_SIGNAL_H_DEFAULTS): Add a default.
20866         * modules/signal (Makefile.am): Substitute if needed.
20867         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
20868         users can blindly add volatile.
20869         * doc/posix-headers/signal.texi (signal.h): Document it.
20870         Reported by Matthew Woehlke.
20871
20872 2009-03-23  Jim Meyering  <meyering@redhat.com>
20873
20874         pathmax: PATH_MAX: use pathconf only when available
20875         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
20876         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
20877         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
20878         This avoids a link failure in a PSP cross-compilation environment
20879         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
20880
20881         * lib/vasnprintf.c (divide): Fix typo in comment.
20882
20883 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20884
20885         * gnulib-tool (func_filter_filelist): Fix comment.
20886
20887 2009-03-20  Bruno Haible  <bruno@clisp.org>
20888
20889         Make sockets.h self-contained.
20890         * lib/sockets.c: Include sockets.h first.
20891         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
20892
20893 2009-03-19  Eric Blake  <ebb9@byu.net>
20894
20895         doc: mention more functions added in cygwin 1.7.0
20896         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
20897         addition.
20898         * doc/posix-functions/log2f.texi: Likewise.
20899
20900 2009-03-19  Jim Meyering  <meyering@redhat.com>
20901
20902         fsusage: avoid syntax error due to statement-before-declaration
20903         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
20904         after all declarations.  Reported by Matthew Woehlke in
20905         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
20906
20907 2009-03-18  Eric Blake  <ebb9@byu.net>
20908
20909         build-aux/compile: sync from automake
20910         * build-aux/compile: New file, from automake.
20911         * config/srclist.txt: Mention build-aux/compile.
20912
20913 2009-03-17  Bruno Haible  <bruno@clisp.org>
20914
20915         * lib/git-merge-changelog.c: Fix typo in comment.
20916         Reported by Reuben Thomas <rrt@sc3d.org>.
20917
20918 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
20919
20920         * m4/regex.m4: update and improve help for
20921         --without-included-regex.
20922
20923 2009-03-17  Simon Josefsson  <simon@josefsson.org>
20924
20925         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
20926         failure on missing include files.
20927
20928 2009-03-17  Eric Blake  <ebb9@byu.net>
20929
20930         doc: mention more functions added in cygwin 1.7.0
20931         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
20932         addition.
20933         * doc/posix-functions/fwscanf.texi: Likewise.
20934         * doc/posix-functions/swprintf.texi: Likewise.
20935         * doc/posix-functions/swscanf.texi: Likewise.
20936         * doc/posix-functions/vfwprintf.texi: Likewise.
20937         * doc/posix-functions/vfwscanf.texi: Likewise.
20938         * doc/posix-functions/vswprintf.texi: Likewise.
20939         * doc/posix-functions/vswscanf.texi: Likewise.
20940         * doc/posix-functions/vwprintf.texi: Likewise.
20941         * doc/posix-functions/vwscanf.texi: Likewise.
20942         * doc/posix-functions/wcscasecmp.texi: Likewise.
20943         * doc/posix-functions/wcsdup.texi: Likewise.
20944         * doc/posix-functions/wcsftime.texi: Likewise.
20945         * doc/posix-functions/wcsncasecmp.texi: Likewise.
20946         * doc/posix-functions/wprintf.texi: Likewise.
20947         * doc/posix-functions/wscanf.texi: Likewise.
20948         * doc/glibc-functions/gethostbyname2.texi: Likewise.
20949
20950 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20951
20952         maint.mk: really add $(AM_MAKEFLAGS)
20953         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
20954         was inadvertently omitted in the last commit.
20955         Spotted by Bruno Haible.
20956
20957         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
20958         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
20959         $(AM_MAKEFLAGS)' rather than plain `make'.
20960
20961         gnulib-tool: execute $MAKE not make
20962         * gnulib-tool: Default $MAKE to 'make'.
20963         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
20964         than make.  Initialize $MAKE in the do-autobuild script.
20965
20966         gnulib-tool: use $MAKE not make in generated files
20967         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
20968         make, in generated files.  Initialize $MAKE in the do-autobuild
20969         script.
20970
20971         * top/GNUmakefile (_have-git-version-gen): Fix typo.
20972
20973         GNUmakefile: disable parallelism only for multiple, recursive targets
20974         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
20975         additions in the Makefile.
20976         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
20977         by Automake.
20978         (.NOTPARALLEL): Only disable parallel builds if multiple targets
20979         are listed on the command line and at least one of them is
20980         listed in $(ALL_RECURSIVE_TARGETS).
20981
20982 2009-03-14  Bruno Haible  <bruno@clisp.org>
20983
20984         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
20985         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
20986         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
20987         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
20988         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
20989         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
20990         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
20991         unistr/u8-uctomb.
20992         * modules/unistr/u8-strchr (Depends-on): Likewise.
20993         * modules/unistr/u8-strrchr (Depends-on): Likewise.
20994         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
20995         unistr/u16-uctomb.
20996         * modules/unistr/u16-strchr (Depends-on): Likewise.
20997         * modules/unistr/u16-strrchr (Depends-on): Likewise.
20998
20999 2009-03-12  Bruno Haible  <bruno@clisp.org>
21000
21001         Work around select() bug on Interix 3.5.
21002         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21003         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21004         * m4/select.m4: New file.
21005         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21006         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21007         * modules/select (Files): Add m4/select.m4.
21008         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21009         * modules/nanosleep (Depends-on): Add select.
21010         * modules/poll (Depends-on): Likewise.
21011         * doc/posix-functions/select.texi: Mention the Interix bug.
21012         Reported by Markus Duft <mduft@gentoo.org>.
21013
21014         * lib/select.c: Renamed from lib/winsock-select.c.
21015         * modules/select (Files): Add lib/select.c, remove
21016         lib/winsock-select.c.
21017         (configure.ac): Update.
21018
21019 2009-03-12  Jim Meyering  <meyering@redhat.com>
21020
21021         avoid gcc warnings about unused macro definitions
21022         * lib/readtokens.c (STREQ): Remove unused definition.
21023         * lib/xmalloc.c (SIZE_MAX): Likewise.
21024         * lib/openat-die.c (N_): Likewise.
21025         * lib/mountlist.c (SIZE_MAX): Remove definition.
21026         Instead, include <stdint.h>.
21027         * lib/readutmp.c: Likewise.
21028         * modules/readutmp (Depends-on): Add stdint.
21029         * modules/mountlist (Depends-on): Add stdint.
21030         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21031
21032 2009-03-10  Bruno Haible  <bruno@clisp.org>
21033
21034         Tests for module 'mbmemcasecoll'.
21035         * modules/mbmemcasecoll-tests: New file.
21036         * tests/test-mbmemcasecoll1.sh: New file.
21037         * tests/test-mbmemcasecoll2.sh: New file.
21038         * tests/test-mbmemcasecoll3.sh: New file.
21039         * tests/test-mbmemcasecoll.c: New file.
21040
21041         New module 'mbmemcasecoll'.
21042         * lib/mbmemcasecoll.h: New file.
21043         * lib/mbmemcasecoll.c: New file.
21044         * modules/mbmemcasecoll: New file.
21045
21046         * tests/test-mbmemcasecmp.h: New file, extracted from
21047         tests/test-mbmemcasecmp.c.
21048         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21049         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21050         (main): Update.
21051         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21052
21053 2009-03-09  Bruno Haible  <bruno@clisp.org>
21054
21055         Tests for module 'mbmemcasecmp'.
21056         * modules/mbmemcasecmp-tests: New file.
21057         * tests/test-mbmemcasecmp1.sh: New file.
21058         * tests/test-mbmemcasecmp2.sh: New file.
21059         * tests/test-mbmemcasecmp3.sh: New file.
21060         * tests/test-mbmemcasecmp.c: New file.
21061
21062         New module 'mbmemcasecmp'.
21063         * lib/mbmemcasecmp.h: New file.
21064         * lib/mbmemcasecmp.c: New file.
21065         * modules/mbmemcasecmp: New file.
21066
21067 2009-03-09  Bruno Haible  <bruno@clisp.org>
21068
21069         Tests for module 'unicase/ulc-casecoll'.
21070         * modules/unicase/ulc-casecoll-tests: New file.
21071         * tests/unicase/test-ulc-casecoll1.sh: New file.
21072         * tests/unicase/test-ulc-casecoll2.sh: New file.
21073         * tests/unicase/test-ulc-casecoll.c: New file.
21074
21075         New module 'unicase/ulc-casecoll'.
21076         * lib/unicase.h (ulc_casecoll): New declaration.
21077         * lib/unicase/ulc-casecoll.c: New file.
21078         * modules/unicase/ulc-casecoll: New file.
21079
21080         New module 'unicase/ulc-casexfrm'.
21081         * lib/unicase.h (ulc_casexfrm): New declaration.
21082         * lib/unicase/ulc-casexfrm.c: New file.
21083         * modules/unicase/ulc-casexfrm: New file.
21084
21085 2009-03-09  Bruno Haible  <bruno@clisp.org>
21086
21087         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21088         invocations.
21089
21090         * m4/mbscasecmp.m4: Remove file.
21091         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21092         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21093
21094         * m4/mbscasestr.m4: Remove file.
21095         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21096         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21097
21098         * m4/mbschr.m4: Remove file.
21099         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21100         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21101
21102         * m4/mbscspn.m4: Remove file.
21103         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21104         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21105
21106         * m4/mbslen.m4: Remove file.
21107         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21108         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21109
21110         * m4/mbsncasecmp.m4: Remove file.
21111         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21112         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21113
21114         * m4/mbsnlen.m4: Remove file.
21115         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21116         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21117
21118         * m4/mbspbrk.m4: Remove file.
21119         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21120         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21121
21122         * m4/mbspcasecmp.m4: Remove file.
21123         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21124         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21125
21126         * m4/mbsrchr.m4: Remove file.
21127         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21128         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21129
21130         * m4/mbssep.m4: Remove file.
21131         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21132         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21133
21134         * m4/mbsspn.m4: Remove file.
21135         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21136         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21137
21138         * m4/mbsstr.m4: Remove file.
21139         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21140         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21141
21142         * m4/mbstok_r.m4: Remove file.
21143         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21144         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21145
21146         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21147
21148         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21149         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21150
21151         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21152
21153 2009-03-08  Bruno Haible  <bruno@clisp.org>
21154
21155         Tests for module 'unicase/ulc-casecmp'.
21156         * modules/unicase/ulc-casecmp-tests: New file.
21157         * tests/unicase/test-ulc-casecmp1.sh: New file.
21158         * tests/unicase/test-ulc-casecmp2.sh: New file.
21159         * tests/unicase/test-ulc-casecmp.c: New file.
21160
21161         New module 'unicase/ulc-casecmp'.
21162         * lib/unicase.h (ulc_casecmp): New declaration.
21163         * lib/unicase/ulc-casecmp.c: New file.
21164         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21165         'const SRC_UNIT *'.
21166         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21167         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21168         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21169         * modules/unicase/ulc-casecmp: New file.
21170
21171         Tests for module 'unicase/u32-is-cased'.
21172         * modules/unicase/u32-is-cased-tests: New file.
21173         * tests/unicase/test-u32-is-cased.c: New file.
21174
21175         Tests for module 'unicase/u16-is-cased'.
21176         * modules/unicase/u16-is-cased-tests: New file.
21177         * tests/unicase/test-u16-is-cased.c: New file.
21178
21179         Tests for module 'unicase/u8-is-cased'.
21180         * modules/unicase/u8-is-cased-tests: New file.
21181         * tests/unicase/test-u8-is-cased.c: New file.
21182         * tests/unicase/test-is-cased.h: New file.
21183
21184         New module 'unicase/u32-is-cased'.
21185         * lib/unicase/u32-is-cased.c: New file.
21186         * modules/unicase/u32-is-cased: New file.
21187
21188         New module 'unicase/u16-is-cased'.
21189         * lib/unicase/u16-is-cased.c: New file.
21190         * modules/unicase/u16-is-cased: New file.
21191
21192         New module 'unicase/u8-is-cased'.
21193         * lib/unicase/u8-is-cased.c: New file.
21194         * lib/unicase/u-is-cased.h: New file.
21195         * modules/unicase/u8-is-cased: New file.
21196
21197         Tests for module 'unicase/u32-is-casefolded'.
21198         * modules/unicase/u32-is-casefolded-tests: New file.
21199         * tests/unicase/test-u32-is-casefolded.c: New file.
21200
21201         Tests for module 'unicase/u16-is-casefolded'.
21202         * modules/unicase/u16-is-casefolded-tests: New file.
21203         * tests/unicase/test-u16-is-casefolded.c: New file.
21204
21205         Tests for module 'unicase/u8-is-casefolded'.
21206         * modules/unicase/u8-is-casefolded-tests: New file.
21207         * tests/unicase/test-u8-is-casefolded.c: New file.
21208         * tests/unicase/test-is-casefolded.h: New file.
21209
21210         New module 'unicase/u32-is-casefolded'.
21211         * lib/unicase/u32-is-casefolded.c: New file.
21212         * modules/unicase/u32-is-casefolded: New file.
21213
21214         New module 'unicase/u16-is-casefolded'.
21215         * lib/unicase/u16-is-casefolded.c: New file.
21216         * modules/unicase/u16-is-casefolded: New file.
21217
21218         New module 'unicase/u8-is-casefolded'.
21219         * lib/unicase/u8-is-casefolded.c: New file.
21220         * modules/unicase/u8-is-casefolded: New file.
21221
21222         Tests for module 'unicase/u32-is-titlecase'.
21223         * modules/unicase/u32-is-titlecase-tests: New file.
21224         * tests/unicase/test-u32-is-titlecase.c: New file.
21225
21226         Tests for module 'unicase/u16-is-titlecase'.
21227         * modules/unicase/u16-is-titlecase-tests: New file.
21228         * tests/unicase/test-u16-is-titlecase.c: New file.
21229
21230         Tests for module 'unicase/u8-is-titlecase'.
21231         * modules/unicase/u8-is-titlecase-tests: New file.
21232         * tests/unicase/test-u8-is-titlecase.c: New file.
21233         * tests/unicase/test-is-titlecase.h: New file.
21234
21235         New module 'unicase/u32-is-titlecase'.
21236         * lib/unicase/u32-is-titlecase.c: New file.
21237         * modules/unicase/u32-is-titlecase: New file.
21238
21239         New module 'unicase/u16-is-titlecase'.
21240         * lib/unicase/u16-is-titlecase.c: New file.
21241         * modules/unicase/u16-is-titlecase: New file.
21242
21243         New module 'unicase/u8-is-titlecase'.
21244         * lib/unicase/u8-is-titlecase.c: New file.
21245         * modules/unicase/u8-is-titlecase: New file.
21246
21247         Tests for module 'unicase/u32-is-lowercase'.
21248         * modules/unicase/u32-is-lowercase-tests: New file.
21249         * tests/unicase/test-u32-is-lowercase.c: New file.
21250
21251         Tests for module 'unicase/u16-is-lowercase'.
21252         * modules/unicase/u16-is-lowercase-tests: New file.
21253         * tests/unicase/test-u16-is-lowercase.c: New file.
21254
21255         Tests for module 'unicase/u8-is-lowercase'.
21256         * modules/unicase/u8-is-lowercase-tests: New file.
21257         * tests/unicase/test-u8-is-lowercase.c: New file.
21258         * tests/unicase/test-is-lowercase.h: New file.
21259
21260         New module 'unicase/u32-is-lowercase'.
21261         * lib/unicase/u32-is-lowercase.c: New file.
21262         * modules/unicase/u32-is-lowercase: New file.
21263
21264         New module 'unicase/u16-is-lowercase'.
21265         * lib/unicase/u16-is-lowercase.c: New file.
21266         * modules/unicase/u16-is-lowercase: New file.
21267
21268         New module 'unicase/u8-is-lowercase'.
21269         * lib/unicase/u8-is-lowercase.c: New file.
21270         * modules/unicase/u8-is-lowercase: New file.
21271
21272         Tests for module 'unicase/u32-is-uppercase'.
21273         * modules/unicase/u32-is-uppercase-tests: New file.
21274         * tests/unicase/test-u32-is-uppercase.c: New file.
21275
21276         Tests for module 'unicase/u16-is-uppercase'.
21277         * modules/unicase/u16-is-uppercase-tests: New file.
21278         * tests/unicase/test-u16-is-uppercase.c: New file.
21279
21280         Tests for module 'unicase/u8-is-uppercase'.
21281         * modules/unicase/u8-is-uppercase-tests: New file.
21282         * tests/unicase/test-u8-is-uppercase.c: New file.
21283         * tests/unicase/test-is-uppercase.h: New file.
21284
21285         New module 'unicase/u32-is-uppercase'.
21286         * lib/unicase/u32-is-uppercase.c: New file.
21287         * modules/unicase/u32-is-uppercase: New file.
21288
21289         New module 'unicase/u16-is-uppercase'.
21290         * lib/unicase/u16-is-uppercase.c: New file.
21291         * modules/unicase/u16-is-uppercase: New file.
21292
21293         New module 'unicase/u8-is-uppercase'.
21294         * lib/unicase/u8-is-uppercase.c: New file.
21295         * modules/unicase/u8-is-uppercase: New file.
21296
21297         New module 'unicase/u32-is-invariant'.
21298         * lib/unicase/u32-is-invariant.c: New file.
21299         * modules/unicase/u32-is-invariant: New file.
21300
21301         New module 'unicase/u16-is-invariant'.
21302         * lib/unicase/u16-is-invariant.c: New file.
21303         * modules/unicase/u16-is-invariant: New file.
21304
21305         New module 'unicase/u8-is-invariant'.
21306         * lib/unicase/u8-is-invariant.c: New file.
21307         * lib/unicase/invariant.h: New file.
21308         * lib/unicase/u-is-invariant.h: New file.
21309         * modules/unicase/u8-is-invariant: New file.
21310
21311         Tests for module 'unicase/u32-casecoll'.
21312         * modules/unicase/u32-casecoll-tests: New file.
21313         * tests/unicase/test-u32-casecoll.c: New file.
21314
21315         Tests for module 'unicase/u16-casecoll'.
21316         * modules/unicase/u16-casecoll-tests: New file.
21317         * tests/unicase/test-u16-casecoll.c: New file.
21318
21319         Tests for module 'unicase/u8-casecoll'.
21320         * modules/unicase/u8-casecoll-tests: New file.
21321         * tests/unicase/test-u8-casecoll.c: New file.
21322
21323         New module 'unicase/u32-casecoll'.
21324         * lib/unicase/u32-casecoll.c: New file.
21325         * modules/unicase/u32-casecoll: New file.
21326
21327         New module 'unicase/u16-casecoll'.
21328         * lib/unicase/u16-casecoll.c: New file.
21329         * modules/unicase/u16-casecoll: New file.
21330
21331         New module 'unicase/u8-casecoll'.
21332         * lib/unicase/u8-casecoll.c: New file.
21333         * lib/unicase/u-casecoll.h: New file.
21334         * modules/unicase/u8-casecoll: New file.
21335
21336         New module 'unicase/u32-casexfrm'.
21337         * lib/unicase/u32-casexfrm.c: New file.
21338         * modules/unicase/u32-casexfrm: New file.
21339
21340         New module 'unicase/u16-casexfrm'.
21341         * lib/unicase/u16-casexfrm.c: New file.
21342         * modules/unicase/u16-casexfrm: New file.
21343
21344         New module 'unicase/u8-casexfrm'.
21345         * lib/unicase/u8-casexfrm.c: New file.
21346         * lib/unicase/u-casexfrm.h: New file.
21347         * modules/unicase/u8-casexfrm: New file.
21348
21349         Tests for module 'unicase/u32-casecmp'.
21350         * modules/unicase/u32-casecmp-tests: New file.
21351         * tests/unicase/test-u32-casecmp.c: New file.
21352
21353         Tests for module 'unicase/u16-casecmp'.
21354         * modules/unicase/u16-casecmp-tests: New file.
21355         * tests/unicase/test-u16-casecmp.c: New file.
21356
21357         Tests for module 'unicase/u8-casecmp'.
21358         * modules/unicase/u8-casecmp-tests: New file.
21359         * tests/unicase/test-u8-casecmp.c: New file.
21360         * tests/unicase/test-casecmp.h: New file.
21361
21362         New module 'unicase/u32-casecmp'.
21363         * lib/unicase/u32-casecmp.c: New file.
21364         * modules/unicase/u32-casecmp: New file.
21365
21366         New module 'unicase/u16-casecmp'.
21367         * lib/unicase/u16-casecmp.c: New file.
21368         * modules/unicase/u16-casecmp: New file.
21369
21370         New module 'unicase/u8-casecmp'.
21371         * lib/unicase/u8-casecmp.c: New file.
21372         * lib/unicase/u-casecmp.h: New file.
21373         * modules/unicase/u8-casecmp: New file.
21374
21375         Tests for module 'unicase/u32-casefold'.
21376         * modules/unicase/u32-casefold-tests: New file.
21377         * tests/unicase/test-u32-casefold.c: New file.
21378
21379         Tests for module 'unicase/u16-casefold'.
21380         * modules/unicase/u16-casefold-tests: New file.
21381         * tests/unicase/test-u16-casefold.c: New file.
21382
21383         Tests for module 'unicase/u8-casefold'.
21384         * modules/unicase/u8-casefold-tests: New file.
21385         * tests/unicase/test-u8-casefold.c: New file.
21386
21387         New module 'unicase/u32-casefold'.
21388         * lib/unicase/u32-casefold.c: New file.
21389         * modules/unicase/u32-casefold: New file.
21390
21391         New module 'unicase/u16-casefold'.
21392         * lib/unicase/u16-casefold.c: New file.
21393         * modules/unicase/u16-casefold: New file.
21394
21395         New module 'unicase/u8-casefold'.
21396         * lib/unicase/u8-casefold.c: New file.
21397         * lib/unicase/u-casefold.h: New file.
21398         * modules/unicase/u8-casefold: New file.
21399
21400         New module 'unicase/tocasefold'.
21401         * lib/unicase/casefold.h: New file.
21402         * lib/unicase/tocasefold.c: New file.
21403         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21404         * modules/unicase/tocasefold: New file.
21405
21406         Tests for module 'unicase/u32-totitle'.
21407         * modules/unicase/u32-totitle-tests: New file.
21408         * tests/unicase/test-u32-totitle.c: New file.
21409
21410         Tests for module 'unicase/u16-totitle'.
21411         * modules/unicase/u16-totitle-tests: New file.
21412         * tests/unicase/test-u16-totitle.c: New file.
21413
21414         Tests for module 'unicase/u8-totitle'.
21415         * modules/unicase/u8-totitle-tests: New file.
21416         * tests/unicase/test-u8-totitle.c: New file.
21417
21418         New module 'unicase/u32-totitle'.
21419         * lib/unicase/u32-totitle.c: New file.
21420         * modules/unicase/u32-totitle: New file.
21421
21422         New module 'unicase/u16-totitle'.
21423         * lib/unicase/u16-totitle.c: New file.
21424         * modules/unicase/u16-totitle: New file.
21425
21426         New module 'unicase/u8-totitle'.
21427         * lib/unicase/u8-totitle.c: New file.
21428         * lib/unicase/u-totitle.h: New file.
21429         * modules/unicase/u8-totitle: New file.
21430
21431         Tests for module 'unicase/u32-tolower'.
21432         * modules/unicase/u32-tolower-tests: New file.
21433         * tests/unicase/test-u32-tolower.c: New file.
21434
21435         Tests for module 'unicase/u16-tolower'.
21436         * modules/unicase/u16-tolower-tests: New file.
21437         * tests/unicase/test-u16-tolower.c: New file.
21438
21439         Tests for module 'unicase/u8-tolower'.
21440         * modules/unicase/u8-tolower-tests: New file.
21441         * tests/unicase/test-u8-tolower.c: New file.
21442
21443         New module 'unicase/u32-tolower'.
21444         * lib/unicase/u32-tolower.c: New file.
21445         * modules/unicase/u32-tolower: New file.
21446
21447         New module 'unicase/u16-tolower'.
21448         * lib/unicase/u16-tolower.c: New file.
21449         * modules/unicase/u16-tolower: New file.
21450
21451         New module 'unicase/u8-tolower'.
21452         * lib/unicase/u8-tolower.c: New file.
21453         * modules/unicase/u8-tolower: New file.
21454
21455         Tests for module 'unicase/u32-toupper'.
21456         * modules/unicase/u32-toupper-tests: New file.
21457         * tests/unicase/test-u32-toupper.c: New file.
21458
21459         Tests for module 'unicase/u16-toupper'.
21460         * modules/unicase/u16-toupper-tests: New file.
21461         * tests/unicase/test-u16-toupper.c: New file.
21462
21463         Tests for module 'unicase/u8-toupper'.
21464         * modules/unicase/u8-toupper-tests: New file.
21465         * tests/unicase/test-u8-toupper.c: New file.
21466
21467         New module 'unicase/u32-toupper'.
21468         * lib/unicase/u32-toupper.c: New file.
21469         * modules/unicase/u32-toupper: New file.
21470
21471         New module 'unicase/u16-toupper'.
21472         * lib/unicase/u16-toupper.c: New file.
21473         * modules/unicase/u16-toupper: New file.
21474
21475         New module 'unicase/u8-toupper'.
21476         * lib/unicase/u8-toupper.c: New file.
21477         * modules/unicase/u8-toupper: New file.
21478
21479         New module 'unicase/u32-casemap'.
21480         * lib/unicase/u32-casemap.c: New file.
21481         * modules/unicase/u32-casemap: New file.
21482
21483         New module 'unicase/u16-casemap'.
21484         * lib/unicase/u16-casemap.c: New file.
21485         * modules/unicase/u16-casemap: New file.
21486
21487         New module 'unicase/u8-casemap'.
21488         * lib/unicase/unicasemap.h: New file.
21489         * lib/unicase/u8-casemap.c: New file.
21490         * lib/unicase/u-casemap.h: New file.
21491         * modules/unicase/u8-casemap: New file.
21492
21493         New module 'unicase/special-casing'.
21494         * lib/unicase/special-casing.h: New file.
21495         * lib/unicase/special-casing.c: New file.
21496         * lib/unicase/special-casing-table.gperf: New file, generated by
21497         gen-uni-tables.c.
21498         * modules/unicase/special-casing: New file.
21499
21500         Tests for module 'unicase/locale-language'.
21501         * modules/unicase/locale-language-tests: New file.
21502         * tests/unicase/test-locale-language.sh: New file.
21503         * tests/unicase/test-locale-language.c: New file.
21504
21505         New module 'unicase/locale-language'.
21506         * lib/unicase/locale-language.c: New file.
21507         * lib/unicase/locale-languages.gperf: New file.
21508         * modules/unicase/locale-language: New file.
21509
21510         Generate more tables for case conversion and case folding.
21511         * lib/gen-uni-tables.c (SCC_*): New enum items.
21512         (struct special_casing_rule): New type.
21513         (casing_rules, num_casing_rules, allocated_casing_rules): New
21514         variables.
21515         (add_casing_rule, fill_casing_rules): New functions.
21516         (struct casefold_rule): New type.
21517         (casefolding_rules, num_casefolding_rules,
21518         allocated_casefolding_rules): New variables.
21519         (fill_casefolding_rules): New function.
21520         (unicode_casefold): New variable.
21521         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
21522         sort_casing_rules, output_casing_rules): New functions.
21523         (main): Accept to more arguments: SpecialCasing.txt and
21524         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
21525         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
21526         Output mapping for casefolding.
21527
21528         * lib/unicase.h: Include stdbool.h, uninorm.h.
21529         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
21530         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
21531         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
21532         arguments.
21533         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
21534         resultp arguments.
21535         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
21536         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
21537         resultp arguments.
21538         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
21539         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
21540         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
21541         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
21542         declarations.
21543         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
21544
21545 2009-03-08  Bruno Haible  <bruno@clisp.org>
21546
21547         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21548         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
21549         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
21550         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21551
21552 2009-03-07  Bruno Haible  <bruno@clisp.org>
21553
21554         Adjust u*_normcmp, u*_normcoll API.
21555         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21556         u16_normcoll, u32_normcoll): Change failure conventions.
21557         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
21558         errno and return -1.
21559         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21560
21561 2009-03-07  Bruno Haible  <bruno@clisp.org>
21562
21563         Tests for module 'uninorm/u32-normcoll'.
21564         * modules/uninorm/u32-normcoll-tests: New file.
21565         * tests/uninorm/test-u32-normcoll.c: New file.
21566
21567         Tests for module 'uninorm/u16-normcoll'.
21568         * modules/uninorm/u16-normcoll-tests: New file.
21569         * tests/uninorm/test-u16-normcoll.c: New file.
21570
21571         Tests for module 'uninorm/u8-normcoll'.
21572         * modules/uninorm/u8-normcoll-tests: New file.
21573         * tests/uninorm/test-u8-normcoll.c: New file.
21574
21575 2009-03-07  Bruno Haible  <bruno@clisp.org>
21576
21577         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
21578         tests/uninorm/test-u32-normcmp.c.
21579         * tests/uninorm/test-u32-normcmp.c: Include it.
21580         (test_nonascii): New function, extracted from main. Add some more
21581         tests.
21582         (main): Invoke test_ascii and test_nonascii.
21583         * modules/uninorm/u32-normcmp-tests (Files): Add
21584         tests/uninorm/test-u32-normcmp.h.
21585         (Depends-on): Remove uninorm/u32-normcmp.
21586
21587         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
21588         tests/uninorm/test-u16-normcmp.c.
21589         * tests/uninorm/test-u16-normcmp.c: Include it.
21590         (test_nonascii): New function, extracted from main. Add some more
21591         tests.
21592         (main): Invoke test_ascii and test_nonascii.
21593         * modules/uninorm/u16-normcmp-tests (Files): Add
21594         tests/uninorm/test-u16-normcmp.h.
21595         (Depends-on): Remove uninorm/u16-normcmp.
21596
21597         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
21598         tests/uninorm/test-u8-normcmp.c.
21599         * tests/uninorm/test-u8-normcmp.c: Include it.
21600         (test_nonascii): New function, extracted from main. Add some more
21601         tests.
21602         (main): Invoke test_ascii and test_nonascii.
21603         * modules/uninorm/u8-normcmp-tests (Files): Add
21604         tests/uninorm/test-u8-normcmp.h.
21605         (Depends-on): Remove uninorm/u8-normcmp.
21606
21607 2009-03-07  Bruno Haible  <bruno@clisp.org>
21608
21609         New module 'uninorm/u32-normcoll'.
21610         * lib/uninorm/u32-normcoll.c: New file.
21611         * modules/uninorm/u32-normcoll: New file.
21612
21613         New module 'uninorm/u16-normcoll'.
21614         * lib/uninorm/u16-normcoll.c: New file.
21615         * modules/uninorm/u16-normcoll: New file.
21616
21617         New module 'uninorm/u8-normcoll'.
21618         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
21619         declarations.
21620         * lib/uninorm/u8-normcoll.c: New file.
21621         * lib/uninorm/u-normcoll.h: New file.
21622         * modules/uninorm/u8-normcoll: New file.
21623
21624         New module 'uninorm/u32-normxfrm'.
21625         * lib/uninorm/u32-normxfrm.c: New file.
21626         * modules/uninorm/u32-normxfrm: New file.
21627
21628         New module 'uninorm/u16-normxfrm'.
21629         * lib/uninorm/u16-normxfrm.c: New file.
21630         * modules/uninorm/u16-normxfrm: New file.
21631
21632         New module 'uninorm/u8-normxfrm'.
21633         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
21634         declarations.
21635         * lib/uninorm/u8-normxfrm.c: New file.
21636         * lib/uninorm/u-normxfrm.h: New file.
21637         * modules/uninorm/u8-normxfrm: New file.
21638
21639 2009-03-07  Bruno Haible  <bruno@clisp.org>
21640
21641         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
21642         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
21643         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
21644
21645 2009-03-07  Bruno Haible  <bruno@clisp.org>
21646
21647         New module 'memxfrm'.
21648         * lib/memxfrm.h: New file.
21649         * lib/memxfrm.c: New file.
21650         * modules/memxfrm: New file.
21651
21652 2009-03-07  Bruno Haible  <bruno@clisp.org>
21653
21654         New module 'memcmp2'.
21655         * lib/memcmp2.h: New file.
21656         * lib/memcmp2.c: New file.
21657         * modules/memcmp2: New file.
21658
21659 2009-03-07  Bruno Haible  <bruno@clisp.org>
21660
21661         Tests for module 'uninorm/decomposing-form'.
21662         * modules/uninorm/decomposing-form-tests: New file.
21663         * tests/uninorm/test-decomposing-form.c: New file.
21664
21665         New module 'uninorm/decomposing-form'.
21666         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
21667         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
21668         Add 'decomposing_variant' field.
21669         * lib/uninorm/decomposing-form.c: New file.
21670         * lib/uninorm/nfc.c (uninorm_nfc): Update.
21671         * lib/uninorm/nfd.c (uninorm_nfd): Update.
21672         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
21673         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
21674         * modules/uninorm/decomposing-form: New file.
21675         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
21676         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
21677
21678 2009-03-07  Bruno Haible  <bruno@clisp.org>
21679
21680         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
21681         strings.
21682
21683 2009-03-06  Bruno Haible  <bruno@clisp.org>
21684
21685         Tests for module 'uninorm/u32-normcmp'.
21686         * tests/uninorm/test-u32-normcmp.c: New file.
21687         * modules/uninorm/u32-normcmp-tests: New file.
21688
21689         Tests for module 'uninorm/u16-normcmp'.
21690         * tests/uninorm/test-u16-normcmp.c: New file.
21691         * modules/uninorm/u16-normcmp-tests: New file.
21692
21693         Tests for module 'uninorm/u8-normcmp'.
21694         * tests/uninorm/test-u8-normcmp.c: New file.
21695         * modules/uninorm/u8-normcmp-tests: New file.
21696
21697         New module 'uninorm/u32-normcmp'.
21698         * lib/uninorm/u32-normcmp.c: New file.
21699         * modules/uninorm/u32-normcmp: New file.
21700
21701         New module 'uninorm/u16-normcmp'.
21702         * lib/uninorm/u16-normcmp.c: New file.
21703         * modules/uninorm/u16-normcmp: New file.
21704
21705         New module 'uninorm/u8-normcmp'.
21706         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
21707         declarations.
21708         * lib/uninorm/u8-normcmp.c: New file.
21709         * lib/uninorm/u-normcmp.h: New file.
21710         * modules/uninorm/u8-normcmp: New file.
21711
21712 2009-03-06  Bruno Haible  <bruno@clisp.org>
21713
21714         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
21715         Reported by Eric Blake.
21716
21717 2009-03-06  Eric Blake  <ebb9@byu.net>
21718             Bruno Haible  <bruno@clisp.org>
21719
21720         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
21721         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
21722         condition.
21723         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21724         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
21725         condition.
21726         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21727
21728 2009-03-06  Eric Blake  <ebb9@byu.net>
21729
21730         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
21731         to avoid compiler warnings.
21732         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
21733
21734 2009-03-05  Bruno Haible  <bruno@clisp.org>
21735
21736         * tests/test-ftell.c (main): Disable test beyond end of file on
21737         FreeMiNT.
21738         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21739
21740 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
21741
21742         * lib/filevercmp.c: Move hidden files up in ordering.
21743         * tests/test-filevercmp.c: Add tests for hidden files.
21744
21745 2009-03-04  Bruno Haible  <bruno@clisp.org>
21746
21747         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
21748         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
21749         AM_CFLAGS.
21750         Reported by Simon Josefsson.
21751
21752 2009-03-03  Bruno Haible  <bruno@clisp.org>
21753
21754         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
21755         Reported by Simon Josefsson.
21756
21757         * doc/ld-version-script.texi: Update node reference.
21758
21759 2009-03-03  Bruno Haible  <bruno@clisp.org>
21760
21761         * modules/visibility (License): Change to 'unlimited'.
21762         Suggested by Simon Josefsson.
21763
21764 2009-03-03  Jim Meyering  <meyering@redhat.com>
21765
21766         unlinkdir: cannot_unlink_dir may modify process state
21767         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
21768         it's neither thread-safe nor appropriate for use in a library.
21769
21770 2009-03-03  Eric Blake  <ebb9@byu.net>
21771
21772         test-closein: silence test under Darwin
21773         * tests/test-closein.sh: Ignore stderr from cat, since we don't
21774         care if it dies from EPIPE or EBADF.
21775
21776 2009-03-03  Bruno Haible  <bruno@clisp.org>
21777
21778         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
21779         earlier.
21780         * doc/visibility.texi: Fix @node and @section.
21781
21782 2009-03-03  Simon Josefsson  <simon@josefsson.org>
21783
21784         * doc/gnulib.texi: Link to sections for ld version script and
21785         visibility.
21786         * doc/visibility.texi: Add @node and @section.
21787         * modules/ld-version-script: New module.
21788         * m4/ld-version-script.m4: New file.
21789         * doc/ld-version-script.texi: New file.
21790
21791 2009-03-02  David Lutterkort  <lutter@redhat.com>
21792
21793         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
21794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21795
21796 2009-03-02  Bruno Haible  <bruno@clisp.org>
21797
21798         * doc/visibility.texi: Mention libtool's -export-symbols option.
21799
21800 2009-03-02  Jim Meyering  <meyering@redhat.com>
21801
21802         announce-gen: new option: --no-print-checksums
21803         * build-aux/announce-gen (usage): Describe it.
21804         (print_checksums): Print a newline here, not in the [*] footnote.
21805         (main): Honor it.
21806
21807 2009-03-01  Bruno Haible  <bruno@clisp.org>
21808
21809         Use socklen_t in the native Windows replacements prototypes.
21810         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
21811         instead of 'int'.
21812         * lib/getsockopt.c (rpl_getsockopt): Likewise.
21813         * lib/setsockopt.c (rpl_setsockopt): Likewise.
21814         * modules/getsockopt (Depends-on): Add socklen.
21815         * modules/setsockopt (Depends-on): Add socklen.
21816
21817 2009-03-01  Bruno Haible  <bruno@clisp.org>
21818
21819         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
21820         least 4.2.
21821
21822 2009-03-01  Eric Blake  <ebb9@byu.net>
21823             Bruno Haible  <bruno@clisp.org>
21824
21825         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
21826         error messages.
21827         * lib/wait-process.c (wait_subprocess): Omit error message about
21828         deadly signal sent to the child of termsigp != NULL.
21829
21830 2009-03-01  Eric Blake  <ebb9@byu.net>
21831
21832         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
21833
21834 2009-03-01  Bruno Haible  <bruno@clisp.org>
21835
21836         Avoid a gcc warning.
21837         * tests/test-sched.c (b): Make global.
21838         Reported by Eric Blake.
21839
21840 2009-01-19  Martin Lambers  <marlam@marlam.de>
21841
21842         Provide POSIX semantics for socket timeout options on W32.
21843         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
21844         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
21845         * modules/setsockopt: Depend on sys_time module for struct timeval.
21846         * modules/getsockopt: Depend on sys_time module for struct timeval.
21847
21848 2009-03-01  Simon Josefsson  <simon@josefsson.org>
21849
21850         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
21851         __USE_GNU, for consistency with netdb.in.h.
21852         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21853
21854 2009-03-01  Bruno Haible  <bruno@clisp.org>
21855
21856         More support for FreeMiNT.
21857         * lib/fseeko.c (rpl_fseeko): Complete last commit.
21858         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21859
21860 2009-03-01  Bruno Haible  <bruno@clisp.org>
21861
21862         More support for FreeMiNT.
21863         * lib/fpurge.c (fpurge): Correct last commit.
21864         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21865
21866 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21867
21868         Fix unportable awk script in vc-list-files.
21869         * build-aux/vc-list-files: In the replacement awk script, use
21870         substr with a second argument of 1, not zero.
21871         Report by Simon Josefsson.
21872
21873 2009-02-28  Bruno Haible  <bruno@clisp.org>
21874
21875         More support for FreeMiNT.
21876         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
21877         to FreeMiNT today.
21878         * lib/fwriting.c (fwriting): Likewise.
21879         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
21880
21881 2009-02-28  Bruno Haible  <bruno@clisp.org>
21882
21883         * tests/test-freadseek.c (main): Disable test beyond end of file on
21884         FreeMiNT.
21885         * tests/test-ftello.c (main): Likewise.
21886         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21887
21888 2009-02-28  Bruno Haible  <bruno@clisp.org>
21889
21890         Add tentative support for FreeMiNT.
21891         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
21892         * lib/fpurge.c (fpurge): Likewise.
21893         * lib/freadable.c (freadable): Likewise.
21894         * lib/freading.c (freading): Likewise.
21895         * lib/freadptr.c (freadptr): Likewise.
21896         * lib/freadseek.c (freadptrinc): Likewise.
21897         * lib/fseeko.c (rpl_fseeko): Likewise.
21898         * lib/fseterr.c (fseterr): Likewise.
21899         * lib/fwritable.c (fwritable): Likewise.
21900         * lib/fwriting.c (fwriting): Likewise.
21901         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
21902         Hourihane.
21903         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21904
21905 2009-02-28  Bruno Haible  <bruno@clisp.org>
21906
21907         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
21908         SIGCHLD.
21909         Reported by Jim Meyering.
21910
21911 2009-02-28  Bruno Haible  <bruno@clisp.org>
21912
21913         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
21914         Mention the results of these tests on various platforms.
21915         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
21916         order.
21917         * doc/posix-functions/printf.texi: Likewise.
21918         * doc/posix-functions/snprintf.texi: Likewise.
21919         * doc/posix-functions/sprintf.texi: Likewise.
21920         * doc/posix-functions/vfprintf.texi: Likewise.
21921         * doc/posix-functions/vprintf.texi: Likewise.
21922         * doc/posix-functions/vsnprintf.texi: Likewise.
21923         * doc/posix-functions/vsprintf.texi: Likewise.
21924         * doc/glibc-functions/obstack_printf.texi: Likewise.
21925         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21926
21927 2009-02-28  Bruno Haible  <bruno@clisp.org>
21928
21929         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
21930         Reported by Loïc Minier <lool@dooz.org>.
21931
21932 2009-02-27  Bruno Haible  <bruno@clisp.org>
21933
21934         * gnulib-tool (func_import): Make the sed expression used to create the
21935         sed script for updating the .gitignore file POSIX compliant.
21936         Reported by Eric Blake.
21937
21938 2009-02-27  Bruno Haible  <bruno@clisp.org>
21939
21940         * gnulib-tool (sed): Don't alias as "sed --posix".
21941         Reported by Eric Blake.
21942
21943 2009-02-27  Bruno Haible  <bruno@clisp.org>
21944
21945         Avoid test link errors.
21946         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
21947         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
21948         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
21949         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
21950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21951
21952 2009-02-27  Bruno Haible  <bruno@clisp.org>
21953
21954         Avoid spurious "(cached)" in configure output.
21955         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
21956         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
21957         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21958         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21959         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21960         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21961         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21962         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21963         Reported by Eric Blake.
21964
21965 2009-02-27  Eric Blake  <ebb9@byu.net>
21966
21967         printf: fix regression in previous patch
21968         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
21969
21970 2009-02-27  Bruno Haible  <bruno@clisp.org>
21971
21972         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
21973         value.
21974         * lib/stdint.in.h: Likewise.
21975         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
21976
21977 2009-02-27  Eric Blake  <ebb9@byu.net>
21978
21979         doc: mention more functions added in cygwin 1.7.0
21980         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
21981         addition.
21982         * doc/posix-functions/open_wmemstream.texi: Likewise.
21983         * doc/posix-functions/wcsnlen.texi: Likewise.
21984         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21985         * doc/posix-functions/wcstod.texi: Likewise.
21986         * doc/posix-functions/wcstof.texi: Likewise.
21987         * doc/posix-functions/wcstoimax.texi: Likewise.
21988         * doc/posix-functions/wcstok.texi: Likewise.
21989         * doc/posix-functions/wcstoumax.texi: Likewise.
21990
21991         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
21992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
21993         * doc/posix-functions/fprintf.texi: Update.
21994         * doc/posix-functions/printf.texi: Update.
21995         * doc/posix-functions/snprintf.texi: Update.
21996         * doc/posix-functions/sprintf.texi: Update.
21997         * doc/posix-functions/vfprintf.texi: Update.
21998         * doc/posix-functions/vprintf.texi: Update.
21999         * doc/posix-functions/vsnprintf.texi: Update.
22000         * doc/posix-functions/vsprintf.texi: Update.
22001         * doc/glibc-functions/obstack_printf.texi: Update.
22002         * doc/glibc-functions/obstack_vprintf.texi: Update.
22003
22004 2009-02-26  Eric Blake  <ebb9@byu.net>
22005
22006         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22007         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22008         compilation bug by using runtime conversion.
22009         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22010         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22011         * modules/ceill-tests (Files): Use nan.h.
22012         * modules/floorl-tests (Files): Likewise.
22013         * modules/frexpl-tests (Files): Likewise.
22014         * modules/isnanl-tests (Files): Likewise.
22015         * modules/ldexpl-tests (Files): Likewise.
22016         * modules/roundl-tests (Files): Likewise.
22017         * modules/truncl-tests (Files): Likewise.
22018         * tests/test-ceill.c (main): Use a working NaN.
22019         * tests/test-floorl.c (main): Likewise.
22020         * tests/test-frexpl.c (main): Likewise.
22021         * tests/test-isnan.c (test_long_double): Likewise.
22022         * tests/test-isnanl.h (main): Likewise.
22023         * tests/test-ldexpl.h (main): Likewise.
22024         * tests/test-roundl.h (main): Likewise.
22025         * tests/test-truncl.h (main): Likewise.
22026         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22027
22028 2009-02-26  Eric Blake  <ebb9@byu.net>
22029             Bruno Haible  <bruno@clisp.org>
22030
22031         Work around a *printf bug with %ls on Solaris.
22032         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22033         precision is specified, sprintf stops converting the wide string
22034         argument when the number of bytes that have been produced by this
22035         conversion equals or exceeds the precision.
22036         * doc/posix-functions/fprintf.texi: Update.
22037         * doc/posix-functions/printf.texi: Update.
22038         * doc/posix-functions/snprintf.texi: Update.
22039         * doc/posix-functions/sprintf.texi: Update.
22040         * doc/posix-functions/vfprintf.texi: Update.
22041         * doc/posix-functions/vprintf.texi: Update.
22042         * doc/posix-functions/vsnprintf.texi: Update.
22043         * doc/posix-functions/vsprintf.texi: Update.
22044         * doc/glibc-functions/obstack_printf.texi: Update.
22045         * doc/glibc-functions/obstack_vprintf.texi: Update.
22046
22047 2009-02-26  Eric Blake  <ebb9@byu.net>
22048
22049         stdlib: favor compiler check of random.h
22050         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22051         to avoid an ObjC random.h installed by Swarm.
22052
22053 2009-02-26  Bruno Haible  <bruno@clisp.org>
22054
22055         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22056         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22057         Reported by Gary V. Vaughan <gary@gnu.org>.
22058
22059 2009-02-26  Bruno Haible  <bruno@clisp.org>
22060
22061         Fix *printf behaviour regarding the %ls directive.
22062         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22063         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22064         NEED_PRINTF_DIRECTIVE_LS.
22065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22066         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22067         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22068         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22069         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22070         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22071         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22072         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22073         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22074         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22075         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22076         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22077         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22079         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22080         * doc/posix-functions/fprintf.texi: Update.
22081         * doc/posix-functions/printf.texi: Update.
22082         * doc/posix-functions/snprintf.texi: Update.
22083         * doc/posix-functions/sprintf.texi: Update.
22084         * doc/posix-functions/vfprintf.texi: Update.
22085         * doc/posix-functions/vprintf.texi: Update.
22086         * doc/posix-functions/vsnprintf.texi: Update.
22087         * doc/posix-functions/vsprintf.texi: Update.
22088         * doc/glibc-functions/obstack_printf.texi: Update.
22089         * doc/glibc-functions/obstack_vprintf.texi: Update.
22090         Reported by Eric Blake.
22091
22092 2009-02-25  Bruno Haible  <bruno@clisp.org>
22093
22094         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22095         with known value.
22096         Reported by Gary V. Vaughan <gary@gnu.org>.
22097
22098 2009-02-25  Bruno Haible  <bruno@clisp.org>
22099
22100         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22101         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22102         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22103         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22104         Reported by Gary V. Vaughan <gary@gnu.org>.
22105
22106 2009-02-25  Bruno Haible  <bruno@clisp.org>
22107
22108         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22109         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22110         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22111         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22112         Reported by Gary V. Vaughan <gary@gnu.org>.
22113
22114 2009-02-25  Eric Blake  <ebb9@byu.net>
22115
22116         tests: skip fseek/ftell tests if ungetc is broken
22117         * m4/ungetc.m4: New file.
22118         * modules/fseek-tests: Split test, so ungetc dependency is
22119         separate from rest of test.
22120         * modules/fseeko-tests: Likewise.
22121         * modules/ftell-tests: Likewise.
22122         * modules/ftello-tests: Likewise.
22123         * tests/test-fseek.c (main): Isolate ungetc dependency.
22124         * tests/test-fseeko.c (main): Likewise.
22125         * tests/test-ftell.c (main): Likewise.
22126         * tests/test-ftello.c (main): Likewise.
22127         * tests/test-fseek2.sh: New file.
22128         * tests/test-fseeko2.sh: Likewise.
22129         * tests/test-ftell2.sh: Likewise.
22130         * tests/test-ftello2.sh: Likewise.
22131
22132 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
22133
22134         test-getaddrinfo: fix usage of skip return code 77
22135         * tests/test-gettaddrinfo.c: Return skip code 77 only
22136         for first occurance of skip (4x77 is not 77)
22137
22138 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22139
22140         strtod: avoid C99 decl-after-statement
22141         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22142
22143 2009-02-24  Eric Blake  <ebb9@byu.net>
22144
22145         strtod: detect HP-UX 11.31 bug
22146         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22147         Reported by Gary V. Vaughan.
22148
22149 2009-02-23  Bruno Haible  <bruno@clisp.org>
22150
22151         Fix invalid read past end of memory block.
22152         * lib/vasnprintf.c (DCHAR_SET): Define.
22153         (local_wcslen): Define only when needed.
22154         (local_strnlen, local_wcsnlen): New functions.
22155         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22156         directives that involve a conversion ourselves.
22157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22158         wcsnlen, mbrtowc, wcrtomb.
22159         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22160         * tests/test-vasprintf-posix.c (test_function): Likewise.
22161         * tests/test-snprintf-posix.h (test_function): Likewise.
22162         * tests/test-sprintf-posix.h (test_function): Likewise.
22163         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22164
22165 2009-02-22  Bruno Haible  <bruno@clisp.org>
22166
22167         Implement new clarified decomposition of Hangul syllables.
22168         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22169         of type LTV, return only a pairwise decomposition.
22170         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22171         Likewise.
22172         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22173         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22174         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22175
22176 2009-02-22  Bruno Haible  <bruno@clisp.org>
22177
22178         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22179         zero-length results and shrink excess allocated memory.
22180         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22181         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22182         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22183         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22184         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22185         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22186         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22187         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22188         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22189         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22190         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22191         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22192
22193 2009-02-21  Bruno Haible  <bruno@clisp.org>
22194
22195         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22196         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22197         spaces after a period. Put a space between a macro name and its
22198         argument list. Trivial rewordings.
22199         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22200         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22201         (main): Return 0 explicitly.
22202
22203 2009-02-21  Bruno Haible  <bruno@clisp.org>
22204
22205         Tests for module 'uninorm/filter'.
22206         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22207         * modules/uninorm/filter-tests: New file.
22208
22209         New module 'uninorm/filter'.
22210         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22211         uninorm_filter_flush, uninorm_filter_free): New declarations.
22212         * lib/uninorm/uninorm-filter.c: New file.
22213         * modules/uninorm/filter: New file.
22214
22215 2009-02-21  Bruno Haible  <bruno@clisp.org>
22216
22217         Tests for module 'uninorm/nfkc'.
22218         * tests/uninorm/test-nfkc.c: New file.
22219         * tests/uninorm/test-u8-nfkc.c: New file.
22220         * tests/uninorm/test-u16-nfkc.c: New file.
22221         * tests/uninorm/test-u32-nfkc.c: New file.
22222         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22223         * tests/uninorm/test-u32-nfkc-big.c: New file.
22224         * modules/uninorm/nfkc-tests: New file.
22225
22226         New module 'uninorm/nfkc'.
22227         * lib/uninorm/nfkc.c: New file.
22228         * modules/uninorm/nfkc: New file.
22229
22230         Tests for module 'uninorm/nfkd'.
22231         * tests/uninorm/test-nfkd.c: New file.
22232         * tests/uninorm/test-u8-nfkd.c: New file.
22233         * tests/uninorm/test-u16-nfkd.c: New file.
22234         * tests/uninorm/test-u32-nfkd.c: New file.
22235         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22236         * tests/uninorm/test-u32-nfkd-big.c: New file.
22237         * modules/uninorm/nfkd-tests: New file.
22238
22239         New module 'uninorm/nfkd'.
22240         * lib/uninorm/nfkd.c: New file.
22241         * modules/uninorm/nfkd: New file.
22242
22243         Tests for module 'uninorm/nfc'.
22244         * tests/uninorm/test-nfc.c: New file.
22245         * tests/uninorm/test-u8-nfc.c: New file.
22246         * tests/uninorm/test-u16-nfc.c: New file.
22247         * tests/uninorm/test-u32-nfc.c: New file.
22248         * tests/uninorm/test-u32-nfc-big.sh: New file.
22249         * tests/uninorm/test-u32-nfc-big.c: New file.
22250         * modules/uninorm/nfc-tests: New file.
22251
22252         New module 'uninorm/nfc'.
22253         * lib/uninorm/nfc.c: New file.
22254         * modules/uninorm/nfc: New file.
22255
22256         Tests for module 'uninorm/nfd'.
22257         * tests/uninorm/test-nfd.c: New file.
22258         * tests/uninorm/test-u8-nfd.c: New file.
22259         * tests/uninorm/test-u16-nfd.c: New file.
22260         * tests/uninorm/test-u32-nfd.c: New file.
22261         * tests/uninorm/test-u32-nfd-big.sh: New file.
22262         * tests/uninorm/test-u32-nfd-big.c: New file.
22263         * tests/uninorm/test-u32-normalize-big.h: New file.
22264         * tests/uninorm/test-u32-normalize-big.c: New file.
22265         * tests/uninorm/NormalizationTest.txt: New file, created from
22266         Unicode 5.1.0 NormalizationTest.txt.
22267         * modules/uninorm/nfd-tests: New file.
22268
22269         New module 'uninorm/nfd'.
22270         * lib/uninorm/nfd.c: New file.
22271         * modules/uninorm/nfd: New file.
22272
22273         New module 'uninorm/u32-normalize'.
22274         * lib/uninorm/u32-normalize.c: New file.
22275         * modules/uninorm/u32-normalize: New file.
22276
22277         New module 'uninorm/u16-normalize'.
22278         * lib/uninorm/u16-normalize.c: New file.
22279         * modules/uninorm/u16-normalize: New file.
22280
22281         New module 'uninorm/u8-normalize'.
22282         * lib/uninorm/u8-normalize.c: New file.
22283         * lib/uninorm/normalize-internal.h: New file.
22284         * lib/uninorm/u-normalize-internal.h: New file.
22285         * modules/uninorm/u8-normalize: New file.
22286
22287         New module 'uninorm/decompose-internal'.
22288         * lib/uninorm/decompose-internal.c: New file.
22289         * modules/uninorm/decompose-internal: New file.
22290
22291         Tests for module 'uninorm/composition'.
22292         * tests/uninorm/test-composition.c: New file.
22293         * modules/uninorm/composition-tests: New file.
22294
22295         New module 'uninorm/composition'.
22296         * lib/uninorm/composition.c: New file.
22297         * lib/uninorm/composition-table.gperf: New file, generated by
22298         gen-uni-tables.
22299         * modules/uninorm/composition: New file.
22300
22301         Tests for module 'uninorm/compat-decomposition'.
22302         * tests/uninorm/test-compat-decomposition.c: New file.
22303         * modules/uninorm/compat-decomposition-tests: New file.
22304
22305         New module 'uninorm/compat-decomposition'.
22306         * lib/uninorm/decompose-internal.h: New file.
22307         * lib/uninorm/compat-decomposition.c: New file.
22308         * modules/uninorm/compat-decomposition: New file.
22309
22310         Tests for module 'uninorm/canonical-decomposition'.
22311         * tests/uninorm/test-canonical-decomposition.c: New file.
22312         * modules/uninorm/canonical-decomposition-tests: New file.
22313
22314         New module 'uninorm/canonical-decomposition'.
22315         * lib/uninorm/canonical-decomposition.c: New file.
22316         * modules/uninorm/canonical-decomposition: New file.
22317
22318         Tests for module 'uninorm/decomposition'.
22319         * tests/uninorm/test-decomposition.c: New file.
22320         * modules/uninorm/decomposition-tests: New file.
22321
22322         New module 'uninorm/decomposition'.
22323         * lib/uninorm/decomposition.c: New file.
22324         * modules/uninorm/decomposition: New file.
22325
22326         New module 'uninorm/decomposition-table'.
22327         * lib/uninorm/decomposition-table.h: New file.
22328         * lib/uninorm/decomposition-table.c: New file.
22329         * lib/uninorm/decomposition-table1.h: New file, generated by
22330         gen-uni-tables.
22331         * lib/uninorm/decomposition-table2.h: New file, generated by
22332         gen-uni-tables.
22333         * modules/uninorm/decomposition-table: New file.
22334
22335         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22336         (UC_DECOMP_*): New enumeration items.
22337         (get_decomposition): New function.
22338         (struct decomp_table): New type.
22339         (output_decomposition, output_decomposition_tables): New functions.
22340         (unicode_composition_exclusions): New variable.
22341         (fill_composition_exclusions, debug_output_composition_tables): New
22342         functions.
22343         (main): Accept one more argument. Invoke fill_composition_exclusions.
22344         Output decomposition and composition tables.
22345
22346         New module 'uninorm/base'.
22347         * lib/uninorm.h: New file.
22348         * lib/unictype.h: Update comment.
22349         * modules/uninorm/base: New file.
22350
22351 2009-02-21  David Lutterkort  <lutter@redhat.com>
22352
22353         Tests for module 'safe-alloc'.
22354         * tests/test-safe-alloc.c: New file.
22355         * modules/safe-alloc-tests: New file.
22356
22357         New module 'safe-alloc'.
22358         * lib/safe-alloc.h: New file.
22359         * lib/safe-alloc.c: New file.
22360         * m4/safe-alloc.m4: New file.
22361         * modules/safe-alloc: New file.
22362         * doc/safe-alloc.texi: New file.
22363         * doc/gnulib.texi: Include it.
22364         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22365         safe-alloc.
22366
22367 2009-02-18  Bruno Haible  <bruno@clisp.org>
22368
22369         Fix link error on non-glibc systems.
22370         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22371         variable.
22372         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22373
22374 2009-02-18  Jim Meyering  <meyering@redhat.com>
22375
22376         fts: avoid used-uninitialized error due to recent change
22377         * lib/fts.c (fts_read): Guard uses of the new member,
22378         parent->fts_n_dirs_remaining, since it's not relevant for
22379         the parent of a directory specified on the command-line.
22380
22381 2009-02-17  James Youngman  <jay@gnu.org>
22382             Bruno Haible  <bruno@clisp.org>
22383
22384         * m4/include_next.m4: Reformulate comment.
22385
22386 2009-02-16  Jim Meyering  <meyering@redhat.com>
22387
22388         fts: add #if guards so that the fts_lgpl module still builds
22389         * lib/fts.c: Guard just-added hash-table-using parts with
22390         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22391         Reported by Simon Josefsson.
22392
22393 2009-02-15  Bruno Haible  <bruno@clisp.org>
22394
22395         * modules/array-mergesort-tests: New file.
22396         * tests/test-array-mergesort.c: New file.
22397
22398         New module 'array-mergesort'.
22399         * modules/array-mergesort: New file.
22400         * lib/array-mergesort.h: New file.
22401
22402 2009-02-15  Bruno Haible  <bruno@clisp.org>
22403
22404         Fix 2009-02-07 commit.
22405         * lib/gen-uni-tables.c (output_predicate, output_category,
22406         output_combclass, output_bidi_category, output_decimal_digit,
22407         output_digit, output_numeric, output_mirror, output_scripts,
22408         output_ident_category, output_simple_mapping): Fix format directives.
22409         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22410
22411 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22412
22413         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
22414         fixes are available from IBM.
22415
22416 2009-02-13  Jim Meyering  <meyering@redhat.com>
22417
22418         fts: arrange not to stat non-directories in more cases
22419         This makes GNU find (when it doesn't need to stat each file)
22420         *much* more efficient at traversing reiserfs file systems.
22421         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
22422         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
22423         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
22424         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
22425         (leaf_optimization_applies): New function.
22426         (LCO_hash, LCO_compare): New helper functions.
22427         (link_count_optimize_ok): New function.
22428         (fts_stat): Initialize new member (if dir).
22429         (fts_read): Decrement parent's fts_n_dirs_remaining count if
22430         we've just stat'ed a directory.  Skip the stat call when possible.
22431         ---
22432         Note this AFS-related exchange:
22433         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
22434         and note find's pioctl call in find/fstype.c.
22435         But that is necessary only if you want to enable the
22436         optimization for AFS, and for now, I don't.
22437
22438         fts: move a function definition "up" (no semantic change)
22439         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
22440         "up" to precede upcoming use of a related function.
22441
22442 2009-02-11  Jim Meyering  <meyering@redhat.com>
22443
22444         fts: correct internal computation of nlinks (optimization-related)
22445         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
22446         whether the current entry is a directory, so don't test it.
22447
22448 2009-02-10  Bruno Haible  <bruno@clisp.org>
22449
22450         Tests for module 'uniwbrk/ulc-wordbreaks'.
22451         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
22452         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
22453         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
22454
22455         Tests for module 'uniwbrk/u32-wordbreaks'.
22456         * modules/uniwbrk/u32-wordbreaks-tests: New file.
22457         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
22458
22459         Tests for module 'uniwbrk/u16-wordbreaks'.
22460         * modules/uniwbrk/u16-wordbreaks-tests: New file.
22461         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
22462
22463         Tests for module 'uniwbrk/u8-wordbreaks'.
22464         * modules/uniwbrk/u8-wordbreaks-tests: New file.
22465         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
22466
22467 2009-02-10  Bruno Haible  <bruno@clisp.org>
22468
22469         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
22470         property.
22471         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
22472         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
22473         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
22474
22475 2009-02-10  Simon Josefsson  <simon@josefsson.org>
22476
22477         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
22478         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
22479
22480 2009-02-10  Bruno Haible  <bruno@clisp.org>
22481
22482         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
22483         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
22484         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
22485         * lib/unilbrk/u8-possible-linebreaks.c: Update.
22486         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
22487         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
22488
22489 2009-02-09  Simon Josefsson  <simon@josefsson.org>
22490
22491         * lib/sockets.h (gl_fd_to_handle): New function.
22492
22493         * tests/test-sockets.c: Call gl_fd_to_handle.
22494
22495 2009-02-09  Bruno Haible  <bruno@clisp.org>
22496
22497         * doc/havelib.texi: Document the conventions on bi-arch systems.
22498
22499 2009-02-08  Bruno Haible  <bruno@clisp.org>
22500
22501         Document the AC_LIB_LINKFLAGS macro.
22502         * doc/havelib.texi: New file, mostly written on 2005-05-24.
22503         * doc/gnulib.texi: Include it.
22504
22505 2009-02-08  Bruno Haible  <bruno@clisp.org>
22506
22507         Fix wrong order of sections, compared to TOC.
22508         * doc/gnulib.texi: Include relocatable-maint.texi after the
22509         "Regular expressions" node, not before.
22510
22511 2009-02-08  Bruno Haible  <bruno@clisp.org>
22512
22513         Tests for module 'unicase/totitle'.
22514         * modules/unicase/totitle-tests: New file.
22515
22516         Tests for module 'unicase/tolower'.
22517         * modules/unicase/tolower-tests: New file.
22518
22519         Tests for module 'unicase/toupper'.
22520         * modules/unicase/toupper-tests: New file.
22521         * tests/unicase/test-mapping-part1.h: New file.
22522         * tests/unicase/test-mapping-part2.h: New file.
22523
22524         New module 'unicase/totitle'.
22525         * modules/unicase/totitle: New file.
22526         * lib/unicase/totitle.c: New file.
22527
22528         New module 'unicase/tolower'.
22529         * modules/unicase/tolower: New file.
22530         * lib/unicase/tolower.c: New file.
22531
22532         New module 'unicase/toupper'.
22533         * modules/unicase/toupper: New file.
22534         * lib/unicase/toupper.c: New file.
22535         * lib/unicase/simple-mapping.h: New file.
22536
22537         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
22538         (mapping_table): New structure.
22539         (output_simple_mapping): New function.
22540         (main): Invoke output_simple_mapping_test and output_simple_mapping.
22541         * modules/gen-uni-tables (Description): Update.
22542         * lib/unicase/toupper.h: New file, automatically generated by
22543         gen-uni-tables.
22544         * lib/unicase/tolower.h: New file, automatically generated by
22545         gen-uni-tables.
22546         * lib/unicase/totitle.h: New file, automatically generated by
22547         gen-uni-tables.
22548         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
22549         gen-uni-tables.
22550         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
22551         gen-uni-tables.
22552         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
22553         gen-uni-tables.
22554
22555         New module 'unicase/base'.
22556         * modules/unicase/base: New file.
22557         * lib/unicase.h: New file.
22558
22559 2009-02-08  Bruno Haible  <bruno@clisp.org>
22560
22561         New module 'uniwbrk/ulc-wordbreaks'.
22562         * modules/uniwbrk/ulc-wordbreaks: New file.
22563         * lib/uniwbrk/ulc-wordbreaks.c: New file.
22564
22565         New module 'uniwbrk/u32-wordbreaks'.
22566         * modules/uniwbrk/u32-wordbreaks: New file.
22567         * lib/uniwbrk/u32-wordbreaks.c: New file.
22568
22569         New module 'uniwbrk/u16-wordbreaks'.
22570         * modules/uniwbrk/u16-wordbreaks: New file.
22571         * lib/uniwbrk/u16-wordbreaks.c: New file.
22572
22573         New module 'uniwbrk/u8-wordbreaks'.
22574         * modules/uniwbrk/u8-wordbreaks: New file.
22575         * lib/uniwbrk/u8-wordbreaks.c: New file.
22576         * lib/uniwbrk/u-wordbreaks.h: New file.
22577
22578         New module 'uniwbrk/table'.
22579         * modules/uniwbrk/table: New file.
22580         * lib/uniwbrk/wbrktable.h: New file.
22581         * lib/uniwbrk/wbrktable.c: New file.
22582
22583         New module 'uniwbrk/wordbreak-property'.
22584         * modules/uniwbrk/wordbreak-property: New file.
22585         * lib/uniwbrk/wordbreak-property.c: New file.
22586
22587         * lib/gen-uni-tables.c (WBP_*): New enum items.
22588         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
22589         (unicode_org_wbp): New variable.
22590         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
22591         New functions.
22592         (wbp_table): New structure.
22593         (output_wbp, output_wbrk_tables): New functions.
22594         (main): Accept additional argument. Invoke fill_org_wbp,
22595         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
22596         output_wbrk_tables.
22597         * modules/gen-uni-tables (Description): Update.
22598         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
22599         gen-uni-tables.
22600
22601         New module 'uniwbrk/base'.
22602         * modules/uniwbrk/base: New file.
22603         * lib/uniwbrk.h: New file.
22604
22605 2009-02-08  Bruno Haible  <bruno@clisp.org>
22606
22607         Update to Unicode 5.1.0.
22608         * lib/gen-uni-tables.c (is_property_alphabetic): Include
22609         U+2185..U+2188.
22610         (is_property_default_ignorable_code_point): Don't include characters
22611         of category Cc or Cs and not-a-characters.
22612         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
22613         U+0D79, U+109E, U+109F, U+A60C.
22614         * lib/unictype/bidi_of.h: Regenerated.
22615         * lib/unictype/blocks.h: Regenerated.
22616         * lib/unictype/categ_C.h: Regenerated.
22617         * lib/unictype/categ_Cf.h: Regenerated.
22618         * lib/unictype/categ_Cn.h: Regenerated.
22619         * lib/unictype/categ_L.h: Regenerated.
22620         * lib/unictype/categ_Ll.h: Regenerated.
22621         * lib/unictype/categ_Lm.h: Regenerated.
22622         * lib/unictype/categ_Lo.h: Regenerated.
22623         * lib/unictype/categ_Lu.h: Regenerated.
22624         * lib/unictype/categ_M.h: Regenerated.
22625         * lib/unictype/categ_Mc.h: Regenerated.
22626         * lib/unictype/categ_Me.h: Regenerated.
22627         * lib/unictype/categ_Mn.h: Regenerated.
22628         * lib/unictype/categ_N.h: Regenerated.
22629         * lib/unictype/categ_Nd.h: Regenerated.
22630         * lib/unictype/categ_Nl.h: Regenerated.
22631         * lib/unictype/categ_No.h: Regenerated.
22632         * lib/unictype/categ_P.h: Regenerated.
22633         * lib/unictype/categ_Pd.h: Regenerated.
22634         * lib/unictype/categ_Pe.h: Regenerated.
22635         * lib/unictype/categ_Pf.h: Regenerated.
22636         * lib/unictype/categ_Pi.h: Regenerated.
22637         * lib/unictype/categ_Po.h: Regenerated.
22638         * lib/unictype/categ_Ps.h: Regenerated.
22639         * lib/unictype/categ_S.h: Regenerated.
22640         * lib/unictype/categ_Sk.h: Regenerated.
22641         * lib/unictype/categ_Sm.h: Regenerated.
22642         * lib/unictype/categ_So.h: Regenerated.
22643         * lib/unictype/categ_of.h: Regenerated.
22644         * lib/unictype/combining.h: Regenerated.
22645         * lib/unictype/ctype_alnum.h: Regenerated.
22646         * lib/unictype/ctype_alpha.h: Regenerated.
22647         * lib/unictype/ctype_graph.h: Regenerated.
22648         * lib/unictype/ctype_lower.h: Regenerated.
22649         * lib/unictype/ctype_print.h: Regenerated.
22650         * lib/unictype/ctype_punct.h: Regenerated.
22651         * lib/unictype/ctype_upper.h: Regenerated.
22652         * lib/unictype/decdigit.h: Regenerated.
22653         * lib/unictype/digit.h: Regenerated.
22654         * lib/unictype/mirror.h: Regenerated.
22655         * lib/unictype/numeric.h: Regenerated.
22656         * lib/unictype/pr_alphabetic.h: Regenerated.
22657         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
22658         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
22659         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
22660         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
22661         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
22662         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
22663         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
22664         * lib/unictype/pr_combining.h: Regenerated.
22665         * lib/unictype/pr_dash.h: Regenerated.
22666         * lib/unictype/pr_decimal_digit.h: Regenerated.
22667         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
22668         * lib/unictype/pr_deprecated.h: Regenerated.
22669         * lib/unictype/pr_diacritic.h: Regenerated.
22670         * lib/unictype/pr_extender.h: Regenerated.
22671         * lib/unictype/pr_format_control.h: Regenerated.
22672         * lib/unictype/pr_grapheme_base.h: Regenerated.
22673         * lib/unictype/pr_grapheme_extend.h: Regenerated.
22674         * lib/unictype/pr_grapheme_link.h: Regenerated.
22675         * lib/unictype/pr_id_continue.h: Regenerated.
22676         * lib/unictype/pr_id_start.h: Regenerated.
22677         * lib/unictype/pr_ideographic.h: Regenerated.
22678         * lib/unictype/pr_ignorable_control.h: Regenerated.
22679         * lib/unictype/pr_lowercase.h: Regenerated.
22680         * lib/unictype/pr_math.h: Regenerated.
22681         * lib/unictype/pr_numeric.h: Regenerated.
22682         * lib/unictype/pr_other_alphabetic.h: Regenerated.
22683         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
22684         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
22685         * lib/unictype/pr_other_id_continue.h: Regenerated.
22686         * lib/unictype/pr_other_lowercase.h: Regenerated.
22687         * lib/unictype/pr_other_math.h: Regenerated.
22688         * lib/unictype/pr_punctuation.h: Regenerated.
22689         * lib/unictype/pr_sentence_terminal.h: Regenerated.
22690         * lib/unictype/pr_soft_dotted.h: Regenerated.
22691         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
22692         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
22693         * lib/unictype/pr_unified_ideograph.h: Regenerated.
22694         * lib/unictype/pr_uppercase.h: Regenerated.
22695         * lib/unictype/pr_xid_continue.h: Regenerated.
22696         * lib/unictype/pr_xid_start.h: Regenerated.
22697         * lib/unictype/pr_zero_width.h: Regenerated.
22698         * lib/unictype/scripts.h: Regenerated.
22699         * lib/unictype/scripts_byname.gperf: Regenerated.
22700         * lib/unictype/sy_java_ident.h: Regenerated.
22701         * lib/unilbrk/lbrkprop1.h: Regenerated.
22702         * lib/unilbrk/lbrkprop2.h: Regenerated.
22703         * tests/unictype/test-categ_C.c: Regenerated.
22704         * tests/unictype/test-categ_Cf.c: Regenerated.
22705         * tests/unictype/test-categ_Cn.c: Regenerated.
22706         * tests/unictype/test-categ_L.c: Regenerated.
22707         * tests/unictype/test-categ_Ll.c: Regenerated.
22708         * tests/unictype/test-categ_Lm.c: Regenerated.
22709         * tests/unictype/test-categ_Lo.c: Regenerated.
22710         * tests/unictype/test-categ_Lu.c: Regenerated.
22711         * tests/unictype/test-categ_M.c: Regenerated.
22712         * tests/unictype/test-categ_Mc.c: Regenerated.
22713         * tests/unictype/test-categ_Me.c: Regenerated.
22714         * tests/unictype/test-categ_Mn.c: Regenerated.
22715         * tests/unictype/test-categ_N.c: Regenerated.
22716         * tests/unictype/test-categ_Nd.c: Regenerated.
22717         * tests/unictype/test-categ_Nl.c: Regenerated.
22718         * tests/unictype/test-categ_No.c: Regenerated.
22719         * tests/unictype/test-categ_P.c: Regenerated.
22720         * tests/unictype/test-categ_Pd.c: Regenerated.
22721         * tests/unictype/test-categ_Pe.c: Regenerated.
22722         * tests/unictype/test-categ_Pf.c: Regenerated.
22723         * tests/unictype/test-categ_Pi.c: Regenerated.
22724         * tests/unictype/test-categ_Po.c: Regenerated.
22725         * tests/unictype/test-categ_Ps.c: Regenerated.
22726         * tests/unictype/test-categ_S.c: Regenerated.
22727         * tests/unictype/test-categ_Sk.c: Regenerated.
22728         * tests/unictype/test-categ_Sm.c: Regenerated.
22729         * tests/unictype/test-categ_So.c: Regenerated.
22730         * tests/unictype/test-ctype_alnum.c: Regenerated.
22731         * tests/unictype/test-ctype_alpha.c: Regenerated.
22732         * tests/unictype/test-ctype_graph.c: Regenerated.
22733         * tests/unictype/test-ctype_lower.c: Regenerated.
22734         * tests/unictype/test-ctype_print.c: Regenerated.
22735         * tests/unictype/test-ctype_punct.c: Regenerated.
22736         * tests/unictype/test-ctype_upper.c: Regenerated.
22737         * tests/unictype/test-decdigit.h: Regenerated.
22738         * tests/unictype/test-digit.h: Regenerated.
22739         * tests/unictype/test-numeric.h: Regenerated.
22740         * tests/unictype/test-pr_alphabetic.c: Regenerated.
22741         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
22742         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
22743         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
22744         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
22745         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
22746         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
22747         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
22748         * tests/unictype/test-pr_combining.c: Regenerated.
22749         * tests/unictype/test-pr_dash.c: Regenerated.
22750         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
22751         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
22752         * tests/unictype/test-pr_deprecated.c: Regenerated.
22753         * tests/unictype/test-pr_diacritic.c: Regenerated.
22754         * tests/unictype/test-pr_extender.c: Regenerated.
22755         * tests/unictype/test-pr_format_control.c: Regenerated.
22756         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
22757         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
22758         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
22759         * tests/unictype/test-pr_id_continue.c: Regenerated.
22760         * tests/unictype/test-pr_id_start.c: Regenerated.
22761         * tests/unictype/test-pr_ideographic.c: Regenerated.
22762         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
22763         * tests/unictype/test-pr_lowercase.c: Regenerated.
22764         * tests/unictype/test-pr_math.c: Regenerated.
22765         * tests/unictype/test-pr_numeric.c: Regenerated.
22766         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
22767         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
22768         Regenerated.
22769         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
22770         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
22771         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
22772         * tests/unictype/test-pr_other_math.c: Regenerated.
22773         * tests/unictype/test-pr_punctuation.c: Regenerated.
22774         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
22775         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
22776         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
22777         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
22778         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
22779         * tests/unictype/test-pr_uppercase.c: Regenerated.
22780         * tests/unictype/test-pr_xid_continue.c: Regenerated.
22781         * tests/unictype/test-pr_xid_start.c: Regenerated.
22782         * tests/unictype/test-pr_zero_width.c: Regenerated.
22783
22784         Update to Unicode 5.1.0.
22785         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
22786         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
22787         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
22788         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
22789         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
22790         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
22791         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
22792         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
22793         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
22794         (nonspacing_table_ind): Update.
22795         * tests/uniwidth/test-uc_width2.sh: Update expected result.
22796
22797         Update to Unicode 5.1.0.
22798         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
22799         code transform.
22800         * lib/uniname/uniname.c (unicode_character_name,
22801         unicode_name_character): Add the range 0x1Fxxx to the code transform.
22802         * lib/uniname/uninames.h: Regenerated.
22803         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
22804
22805 2009-02-07  Bruno Haible  <bruno@clisp.org>
22806
22807         Merge gen-ctype and gen-lbrk into a single program.
22808         * lib/gen-uni-tables.c: New file, incorporating
22809         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
22810         Add directory prefixes to the names of the generated files.
22811         * lib/unictype/gen-ctype.c: Remove file.
22812         * lib/unilbrk/gen-lbrk.c: Remove file.
22813         * modules/gen-uni-tables: New file.
22814         * modules/unictype/gen-ctype: Remove file.
22815         * modules/unilbrk/gen-lbrk: Remove file.
22816
22817 2009-02-07  Bruno Haible  <bruno@clisp.org>
22818
22819         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
22820
22821         New module 'unistr/u32-strcoll'.
22822         * modules/unistr/u32-strcoll: New file.
22823         * lib/unistr/u32-strcoll.c: New file.
22824
22825         New module 'unistr/u16-strcoll'.
22826         * modules/unistr/u16-strcoll: New file.
22827         * lib/unistr/u16-strcoll.c: New file.
22828
22829         New module 'unistr/u8-strcoll'.
22830         * modules/unistr/u8-strcoll: New file.
22831         * lib/unistr/u8-strcoll.c: New file.
22832         * lib/unistr/u-strcoll.h: New file.
22833
22834 2009-02-07  Bruno Haible  <bruno@clisp.org>
22835
22836         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
22837         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
22838         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
22839         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
22840         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
22841         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
22842
22843 2009-02-07  Bruno Haible  <bruno@clisp.org>
22844
22845         Make 64-bit clean.
22846         * lib/unictype/gen-ctype.c (output_predicate, output_category,
22847         output_combclass, output_bidi_category, output_decimal_digit,
22848         output_digit, output_numeric, output_mirror, output_scripts,
22849         output_ident_category): Use proper width specifier in format strings.
22850
22851 2009-02-07  Bruno Haible  <bruno@clisp.org>
22852
22853         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
22854         failure behaviour.
22855
22856 2009-02-07  Jim Meyering  <meyering@redhat.com>
22857
22858         regex: avoid compilation failure with upcoming gcc-4.4
22859         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
22860         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
22861         "... error: integer overflow in preprocessor expression".
22862
22863 2009-02-05  Ben Pfaff  <blp@gnu.org>
22864
22865         Fix link errors on Windows when close module is used.
22866         * modules/close: Add $(LIB_CLOSE) to Link section.
22867         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
22868         $(LIB_CLOSE) on Windows.
22869
22870 2009-02-05  Jim Meyering  <meyering@redhat.com>
22871
22872         still avoid unused-parameter warnings, but do it cleanly
22873         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
22874         (get_fs_usage): Cast to void instead.
22875         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
22876         (dev_from_mount_options, read_file_system_list): Cast to void.
22877         Prompted by Bruno Haible.
22878
22879 2009-02-04  Jim Meyering  <meyering@redhat.com>
22880
22881         fsusage.c: correct copyright year
22882         * lib/fsusage.c: Reflect year in which the change is pushed into
22883
22884         avoid misc. warnings
22885         * lib/fsusage.c (UNUSED_PARAM): Define.
22886         (get_fs_usage): Mark parameter "disk" as unused.
22887         * lib/getugroups.c (getgrent): Use "void" in prototype.
22888         * lib/mountlist.c: Mark unused parameters.
22889         (read_file_system_list): Declare a local with "const".
22890         * lib/nanosleep.c (getnow): Declare static.
22891         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
22892
22893         dirfd: set errno upon failure
22894         * lib/dirfd.c: Include <errno.h>.
22895         Set errno to ENOTSUP when returning -1.
22896         * modules/dirfd (Depends-on): Add errno.
22897         Suggested by John Kodis <kodis@comcast.net>.
22898
22899 2009-02-01  Bruno Haible  <bruno@clisp.org>
22900
22901         Don't assume sizeof (long) >= sizeof (void *).
22902         * lib/memcmp.c: Include stdint.h.
22903         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
22904         srcp2 to 'const byte *'.
22905         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
22906         types to uintptr_t.
22907         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
22908         * modules/memcmp (Depends-on): Add stdint.
22909         Reported by Ozkan Sezer <sezeroz@gmail.com>.
22910
22911 2009-01-30  Eric Blake  <ebb9@byu.net>
22912
22913         fix more require-before-expand issues
22914         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
22915         expand, AC_PROG_AWK.
22916         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
22917
22918 2009-01-28  Eric Blake  <ebb9@byu.net>
22919
22920         version-etc: use consistent URL formatting
22921         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
22922         Improve formatting.  Use fputs for string without %.
22923
22924 2009-01-28  Jim Meyering  <meyering@redhat.com>
22925
22926         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
22927         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
22928         "underquoted definition of NAME" from autoconf-2.59.
22929
22930 2009-01-28  Bruno Haible  <bruno@clisp.org>
22931
22932         * doc/gnulib.texi: Add "Obsolete modules" to index.
22933
22934 2009-01-28  Jim Meyering  <meyering@redhat.com>
22935
22936         useless-if-before-free: recognize more variants
22937         * build-aux/useless-if-before-free: Also recognize e.g.,
22938         if (NULL != p) free (p);
22939
22940 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
22941
22942         test-getaddrinfo: skip (don't fail) this test when there's no network
22943         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
22944         on the presumption that it means you lack network access.
22945
22946 2009-01-26  Jim Meyering  <meyering@redhat.com>
22947
22948         fflush: avoid warnings on modern systems
22949         * lib/fflush.c (rpl_fflush): Move declarations of locals,
22950         pos and result, into scopes where they're used.
22951
22952 2009-01-26  Eric Blake  <ebb9@byu.net>
22953
22954         Silence warning reintroduced by recent extensions patch.
22955         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
22956         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
22957         autoconf.
22958
22959         Backport improved autoconf semantics of AC_DEFUN_ONCE.
22960         * m4/00gnulib.m4: New file.
22961         * gnulib-tool (func_get_filelist): Always use it.
22962         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
22963         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
22964
22965 2009-01-25  Bruno Haible  <bruno@clisp.org>
22966
22967         Make test-quotearg work on MacOS X and AIX.
22968         * tests/test-quotearg.sh: New file.
22969         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
22970         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
22971         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
22972         include <libintl.h>.
22973         (fake_locale): Remove variable.
22974         (gettext, dgettext, dcgettext): Remove functions.
22975         (main): Instead of setting a fake locale, set a real locale. Call
22976         textdomain and bindtextdomain.
22977         * modules/quotearg-tests (Files): Add the new files.
22978         (Depends-on): Add gettext, setenv, unsetenv.
22979         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22980         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
22981         Augment TESTS_ENVIRONMENT.
22982
22983 2009-01-25  Bruno Haible  <bruno@clisp.org>
22984
22985         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
22986         fr_FR.ISO8859-1 locale on MacOS X.
22987         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
22988         ja_JP.eucJP locale on MacOS X.
22989         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
22990         zh_CN.GB18030 locale on MacOS X.
22991
22992 2009-01-25  Bruno Haible  <bruno@clisp.org>
22993
22994         Avoid link errors on MacOS X 10.3.
22995         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
22996         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
22997
22998 2009-01-25  Bruno Haible  <bruno@clisp.org>
22999
23000         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23001         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23002         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23003         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23004         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23005         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23006         posix_spawnattr_init, posix_spawnattr_setsigmask,
23007         posix_spawnattr_setflags, posix_spawnattr_destroy.
23008
23009         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23010         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23011         * modules/execute (Files): Remove m4/posix_spawn.m4.
23012         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23013         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23014         posix_spawnattr_init, posix_spawnattr_setsigmask,
23015         posix_spawnattr_setflags, posix_spawnattr_destroy.
23016
23017 2009-01-25  Bruno Haible  <bruno@clisp.org>
23018
23019         * lib/glthread/threadlib.c: Include <stdlib.h>.
23020
23021 2009-01-25  Bruno Haible  <bruno@clisp.org>
23022
23023         * lib/glthread/threadlib.c (dummy): New declaration.
23024
23025 2009-01-25  Bruno Haible  <bruno@clisp.org>
23026
23027         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23028         multibyte characters also for the GB18030 encoding. Don't crash when
23029         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23030
23031 2009-01-25  Bruno Haible  <bruno@clisp.org>
23032
23033         Avoid redefining 'struct random_data' on OSF/1 5.1.
23034         * lib/stdlib.in.h: Include <random.h> if it exists.
23035         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23036         HAVE_RANDOM_H. Include <random.h> when testing whether
23037         'struct random_data' exists.
23038         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23039
23040 2009-01-25  Bruno Haible  <bruno@clisp.org>
23041
23042         Don't install charset.alias on MacOS X >= 10.3.
23043         * lib/localcharset.c (DARWIN7): New macro.
23044         (get_charset_aliases): Hardcode the result for Darwin7.
23045         * modules/localcharset (install-exec-local): Don't install
23046         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23047
23048 2009-01-25  Bruno Haible  <bruno@clisp.org>
23049
23050         Don't install charset.alias on mingw and Cygwin.
23051         * modules/localcharset (install-exec-local): Don't install
23052         charset.alias on mingw and Cygwin, if the file does not yet exist.
23053         The result for these platforms is hardcoded in localcharset.c.
23054
23055 2009-01-25  Bruno Haible  <bruno@clisp.org>
23056
23057         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23058         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23059         before requiring AC_USE_SYSTEM_EXTENSIONS.
23060
23061 2009-01-25  Jim Meyering  <meyering@redhat.com>
23062
23063         c-strtod: avoid warnings
23064         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23065         "assignment discards qualifiers from pointer target type" warnings.
23066
23067 2009-01-24  Bruno Haible  <bruno@clisp.org>
23068
23069         Add support for non-UTF-8 locales on MacOS X.
23070         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23071         canonical encodings. For Darwin 7 and newer, don't map traditional
23072         encodings to UTF-8.
23073         Reported by Vincent Lefevre <vincent@vinc17.org>
23074         at <http://savannah.gnu.org/bugs/?25235>.
23075
23076 2009-01-24  Bruno Haible  <bruno@clisp.org>
23077
23078         * doc/gnulib.texi (Obsolete modules): New section.
23079         Reported by Mike Frysinger <vapier@gentoo.org>.
23080
23081 2009-01-24  Bruno Haible  <bruno@clisp.org>
23082
23083         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23084         (%.dvi): New rule.
23085
23086 2009-01-24  Bruno Haible  <bruno@clisp.org>
23087
23088         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23089         Reported by Eric Blake.
23090
23091 2009-01-24  Bruno Haible  <bruno@clisp.org>
23092
23093         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23094         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23095         Reported by Gary V. Vaughan <gary@gnu.org>.
23096
23097 2009-01-24  Bruno Haible  <bruno@clisp.org>
23098
23099         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23100
23101 2009-01-23  Bruno Haible  <bruno@clisp.org>
23102
23103         Make c-strtod, c-strtold usable in libraries.
23104         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23105         (C_STRTOD): Call strdup instead of xstrdup.
23106         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23107         * modules/c-strtold (Depends-on): Likewise.
23108         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23109         * NEWS: Mention the change.
23110         Reported by Michael Gold <mgold@ncf.ca>.
23111
23112 2009-01-23  Jim Meyering  <meyering@redhat.com>
23113
23114         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23115         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23116         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23117
23118 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23119
23120         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23121         GNU CoreUtils.
23122         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23123         * modules/version-etc (Description): Update.
23124
23125 2009-01-22  Bruno Haible  <bruno@clisp.org>
23126
23127         Cache the C locale object.
23128         * lib/c-strtod.c (c_locale_cache): New variable.
23129         (c_locale): New function.
23130         (C_STRTOD): Use it, and don't call freelocale.
23131         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23132         Suggested by Paolo Bonzini.
23133
23134 2009-01-21  Bruno Haible  <bruno@clisp.org>
23135
23136         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23137         conditions other than overflow.
23138
23139 2009-01-21  Bruno Haible  <bruno@clisp.org>
23140
23141         * lib/c-strtod.c: Include errno.h.
23142         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23143         value from STRTOD_L and STRTOD.
23144
23145 2009-01-21  Bruno Haible  <bruno@clisp.org>
23146         and Jim Meyering  <meyering@redhat.com>
23147
23148         nanosleep: skip configure test (fail it) for apple universal builds
23149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23150         universal builds, assume that nanosleep does not work.
23151         * modules/nanosleep (Depends-on): Add multiarch.
23152
23153         mktime: skip configure test (fail it) for apple universal builds
23154         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23155         universal builds, assume that mktime does not work.
23156         * modules/mktime (Depends-on): Add multiarch.
23157
23158 2009-01-21  Eric Blake  <ebb9@byu.net>
23159
23160         multiarch: avoid expand-before-require warning
23161         * modules/multiarch (configure.ac): Require, rather than expand,
23162         gl_MULTIARCH.
23163         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23164         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23165         enforce that all clients require it.  Partial reversion of
23166         2008-12-29 patch.
23167
23168         error: avoid expand-before-require warning
23169         * modules/errno (configure.ac): Require, rather than expand,
23170         gl_HEADER_ERRNO_H.
23171         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23172         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23173         enforce that all clients require it.
23174
23175         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23176         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23177         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23178         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23179
23180 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23181
23182         Revert:
23183         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23184
23185         regex: do not depend on obsolete modules.
23186         * modules/regex: Remove memcmp and memmove.
23187
23188 2009-01-20  Bruno Haible  <bruno@clisp.org>
23189
23190         Make the 'link' module link on Windows NT 4.
23191         * lib/link.c (_WIN32_WINNT): Don't define.
23192         (CreateHardLinkFuncType): New type.
23193         (CreateHardLinkFunc, initialized): New variables.
23194         (initialize): New function.
23195         (link): Invoke CreateHardLink indirectly through the function pointer.
23196
23197 2009-01-20  Bruno Haible  <bruno@clisp.org>
23198
23199         Fix compilation failure on mingw.
23200         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23201
23202 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23203
23204         * doc/c-strtod.texi: Mention a couple of restrictions.
23205
23206 2009-01-20  Jim Meyering  <meyering@redhat.com>
23207
23208         gettimeofday: move more declarations out of functions
23209         * lib/gettimeofday.c: Move extern declarations of tzset and
23210         gmtime out of containing functions.  Prompted by Bruno Haible.
23211
23212 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23213
23214         regex: do not depend on obsolete modules.
23215         * modules/regex: Remove memcmp and memmove.
23216
23217 2009-01-19  Bruno Haible  <bruno@clisp.org>
23218
23219         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23220         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23221         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23222         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23223         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23224
23225 2009-01-19  Bruno Haible  <bruno@clisp.org>
23226
23227         * tests/test-link.c: Include <errno.h>.
23228         (main): Exit with code 77 when a hard link cannot be created due to
23229         the file system.
23230         * tests/test-link.sh: Skip test when a hard link cannot be created due
23231         to the file system.
23232         Suggested by Eric Blake.
23233
23234 2009-01-19  Martin Lambers  <marlam@marlam.de>
23235
23236         * modules/link-tests: New file.
23237         * tests/test-link.sh: New file.
23238         * tests/test-link.c: New file.
23239
23240 2009-01-19  Eric Blake  <ebb9@byu.net>
23241
23242         doc: mention another function added in cygwin 1.7.0
23243         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23244         Another new function in cygwin 1.7.
23245
23246 2009-01-19  Bruno Haible  <bruno@clisp.org>
23247
23248         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23249         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
23250         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
23251         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23252         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23253         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23254         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23255         * m4/md4.m4 (gl_MD4): Likewise.
23256         * m4/md5.m4 (gl_MD5): Likewise.
23257         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
23258         * m4/sha1.m4 (gl_SHA1): Likewise.
23259         * m4/sha256.m4 (gl_SHA256): Likewise.
23260         * m4/sha512.m4 (gl_SHA512): Likewise.
23261
23262 2009-01-19  Bruno Haible  <bruno@clisp.org>
23263
23264         * modules/uniname/uniname-tests (Depends-on): Add progname.
23265         * tests/uniname/test-uninames.c: Include progname.h.
23266         (main): Call set_program_name.
23267
23268         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
23269         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
23270         (main): Call set_program_name.
23271
23272         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
23273         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
23274         (main): Call set_program_name.
23275
23276         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
23277         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
23278         (main): Call set_program_name.
23279
23280         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
23281         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
23282         (main): Call set_program_name.
23283
23284         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23285         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23286         (main): Call set_program_name.
23287
23288         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23289         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23290         (main): Call set_program_name.
23291
23292         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23293         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23294         (main): Call set_program_name.
23295
23296         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23297         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23298         (main): Call set_program_name.
23299
23300 2009-01-19  Eric Blake  <ebb9@byu.net>
23301
23302         test-unistd: test previous patch
23303         * tests/test-unistd.c: Test *_FILENO macros.
23304
23305         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23306         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23307         Guarantee a definition.
23308         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23309         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23310         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23311         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23312         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23313         Likewise.
23314         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23315         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23316         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23317         Likewise.
23318         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23319         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23320         (STDERR_FILENO): Likewise.
23321         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23322         (STDERR_FILENO): Likewise.
23323         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23324         (STDERR_FILENO): Likewise.
23325         Reported by Elbert Pol.
23326
23327 2009-01-19  Eric Blake  <ebb9@byu.net>
23328
23329         doc: mention more functions added in cygwin 1.7.0
23330         * doc/posix-functions/abort.texi (abort): Update wording related
23331         to cygwin.
23332         * doc/posix-functions/daylight.texi (daylight): Likewise.
23333         * doc/posix-functions/optarg.texi (optarg): Likewise.
23334         * doc/posix-functions/optarg.texi (opterr): Likewise.
23335         * doc/posix-functions/optarg.texi (optind): Likewise.
23336         * doc/posix-functions/optarg.texi (optopt): Likewise.
23337         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23338         worked in 1.5.x, and was withdrawn in 1.7.
23339         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23340         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23341         cygwin versions.
23342         * doc/posix-functions/perror.texi (perror): Likewise.
23343         * doc/posix-functions/printf.texi (printf): Likewise.
23344         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23345         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23346         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23347         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23348         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23349         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23350         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23351         Likewise.
23352         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23353         Likewise.
23354         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23355         this function.
23356         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23357         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23358         Likewise.
23359         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23360         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23361         * doc/posix-functions/confstr.texi (confstr): Likewise.
23362         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23363         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23364         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23365         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23366         * doc/posix-functions/fputws.texi (fputws): Likewise.
23367         * doc/posix-functions/fwide.texi (fwide): Likewise.
23368         * doc/posix-functions/getwc.texi (getwc): Likewise.
23369         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23370         * doc/posix-functions/putwc.texi (putwc): Likewise.
23371         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23372         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23373         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23374         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23375         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23376         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23377         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23378         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23379         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23380         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23381         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23382
23383 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23384
23385         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23386         * lib/ioctl.c: Include <sys/ioctl.h>.
23387
23388 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23389
23390         * modules/getdate-tests (Depends-on): Add progname.
23391         * tests/test-getdate.c: Use progname module, to avoid link errors
23392         on non-glibc systems.
23393
23394 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23395
23396         * modules/filenamecat-tests (Depends-on): Add progname.
23397         * modules/fstrcmp-tests (Depends-on): Likewise.
23398
23399         * tests/test-filenamecat.c: Use progname module, to avoid link
23400         errors on non-glibc systems.
23401         * tests/test-fstrcmp.c: Likewise.
23402
23403 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23404
23405         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23406         * lib/gettimeofday.c: Move extern declaration out of function.
23407
23408 2009-01-18  Bruno Haible  <bruno@clisp.org>
23409
23410         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23411         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23412         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
23413
23414 2009-01-18  Bruno Haible  <bruno@clisp.org>
23415
23416         * lib/strftime.c (MEMPCPY): Remove unused macro.
23417         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
23418
23419 2009-01-18  Martin Lambers  <marlam@marlam.de>
23420
23421         New module 'link'.
23422         * lib/unistd.in.h (link): New declaration.
23423         * lib/link.c: New file.
23424         * m4/link.m4: New file.
23425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
23426         HAVE_LINK.
23427         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
23428         * modules/link: New file.
23429         * doc/posix-functions/link.texi: Mention the new module.
23430
23431 2009-01-18  Bruno Haible  <bruno@clisp.org>
23432
23433         * tests/test-avltree_list.c (main): Call set_program_name.
23434         * tests/test-avltree_oset.c (main): Likewise.
23435         * tests/test-obstack-printf.c: Include progname.h.
23436         (main): Call set_program_name.
23437         * tests/test-quotearg.c: Include progname.h.
23438         (main): Call set_program_name.
23439         * tests/test-xmemdup0.c: Include progname.h.
23440         (main): Call set_program_name.
23441
23442 2009-01-18  Bruno Haible  <bruno@clisp.org>
23443
23444         New module 'alphasort'.
23445         * lib/dirent.in.h (alphasort): New declaration.
23446         * lib/alphasort.c: New file, from glibc with modifications.
23447         * m4/alphasort.m4: New file.
23448         * modules/alphasort: New file.
23449         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
23450         HAVE_ALPHASORT.
23451         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
23452         HAVE_ALPHASORT.
23453         * doc/posix-functions/alphasort.texi: Mention the new module and the
23454         portability problems.
23455
23456 2009-01-18  Bruno Haible  <bruno@clisp.org>
23457
23458         New module 'scandir'.
23459         * lib/dirent.in.h (scandir): New declaration.
23460         * lib/scandir.c: New file, from glibc with modifications.
23461         * m4/scandir.m4: New file.
23462         * modules/scandir: New file.
23463         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
23464         HAVE_SCANDIR.
23465         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
23466         HAVE_SCANDIR.
23467         * doc/posix-functions/scandir.texi: Mention the new module and the
23468         portability problems.
23469
23470 2009-01-17  Bruno Haible  <bruno@clisp.org>
23471
23472         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
23473         Update documentation.
23474         (func_remove_suffix): Escape all dots in the suffix. Update
23475         documentation.
23476         (func_filter_filelist): Update documentation.
23477         Reported by Ralf Wildenhues.
23478
23479 2009-01-17  Bruno Haible  <bruno@clisp.org>
23480
23481         * modules/dprintf-posix-tests: New file.
23482         * tests/test-dprintf-posix.sh: New file.
23483         * tests/test-dprintf-posix.c: New file.
23484
23485         New modules 'dprintf', 'dprintf-posix'.
23486         * lib/stdio.in.h (dprintf): New declaration.
23487         * lib/dprintf.c: New file.
23488         * m4/dprintf.m4: New file.
23489         * m4/dprintf-posix.m4: New file.
23490         * modules/dprintf: New file.
23491         * modules/dprintf-posix: New file.
23492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
23493         HAVE_DPRINTF, REPLACE_DPRINTF.
23494         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
23495         HAVE_DPRINTF, REPLACE_DPRINTF.
23496         * doc/posix-functions/dprintf.texi: Mention the new modules.
23497
23498 2009-01-17  Bruno Haible  <bruno@clisp.org>
23499
23500         * modules/vdprintf-posix-tests: New file.
23501         * tests/test-vdprintf-posix.sh: New file.
23502         * tests/test-vdprintf-posix.c: New file.
23503
23504         New modules 'vdprintf', 'vdprintf-posix'.
23505         * lib/stdio.in.h (vdprintf): New declaration.
23506         * lib/vdprintf.c: New file.
23507         * m4/vdprintf.m4: New file.
23508         * m4/vdprintf-posix.m4: New file.
23509         * modules/vdprintf: New file.
23510         * modules/vdprintf-posix: New file.
23511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
23512         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23513         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
23514         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23515         * doc/posix-functions/vdprintf.texi: Mention the new modules.
23516
23517 2009-01-17  Bruno Haible  <bruno@clisp.org>
23518
23519         Fix replacement of fopen on mingw.
23520         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
23521         mingw.
23522
23523 2009-01-17  Bruno Haible  <bruno@clisp.org>
23524
23525         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
23526         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
23527
23528 2009-01-17  Bruno Haible  <bruno@clisp.org>
23529
23530         Avoid test-fflush2.sh failure on mingw.
23531         * tests/test-fflush2.c: Include binary-io.h.
23532         (main): Put standard input into binary mode.
23533         * modules/fflush-tests (Depends-on): Add binary-io.
23534
23535 2009-01-17  Bruno Haible  <bruno@clisp.org>
23536
23537         * lib/wchar.in.h: In another particular situation, include only the
23538         system's <wchar.h> file.
23539         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
23540         Reported by Albert Chin-A-Young <china@thewrittenword.com>
23541         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
23542
23543 2009-01-17  Bruno Haible  <bruno@clisp.org>
23544
23545         Support for stripping executables in --enable-relocatable.
23546         * build-aux/install-reloc: Expect one more argument, or an environment
23547         variable RELOC_STRIP_PROG. If set, strip the destination program and
23548         its wrapper.
23549         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
23550         RELOC_STRIP_PROG.
23551         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
23552         to set RELOCATABLE_STRIP.
23553         * NEWS: Mention the new Makefile requirement.
23554
23555 2009-01-17  Bruno Haible  <bruno@clisp.org>
23556
23557         * build-aux/install-reloc: Remove debugging information left over by
23558         C compiler on MacOS X.
23559
23560 2009-01-17  Bruno Haible  <bruno@clisp.org>
23561
23562         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
23563         * lib/progreloc.c (find_executable): Fix type of pointer passed to
23564         _NSGetExecutablePath.
23565
23566 2009-01-16  Jim Meyering  <meyering@redhat.com>
23567
23568         strerror: avoid warnings about discarding "const"
23569         * lib/strerror.c (rpl_strerror): Instead of returning a const
23570         string from each and every "case", use a variable, and add a single
23571         cast after the switch.
23572
23573 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
23574
23575         * lib/arpa_inet.in.h: Add extern "C" block for C++.
23576
23577 2009-01-16  Bruno Haible  <bruno@clisp.org>
23578
23579         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
23580         array initializer syntax that also works in C++ mode.
23581         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23582
23583 2009-01-16  Jim Meyering  <meyering@redhat.com>
23584
23585         poll: suppress a warning
23586         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
23587         to ignore "...unsigned expression < 0 is always false" warnings.
23588
23589 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
23590
23591         poll: remove declarations of unused variables
23592         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
23593         sockbuf and optlen.
23594
23595 2009-01-15  Bruno Haible  <bruno@clisp.org>
23596
23597         Make fflush-after-ungetc POSIX compliant on BSD systems.
23598         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
23599         (clear_ungetc_buffer): Implement also for other systems.
23600         (rpl_fflush): On glibc systems, invoke
23601         clear_ungetc_buffer_preserving_position. Otherwise, invoke
23602         clear_ungetc_buffer after fetching the stream's position, not before.
23603
23604 2009-01-15  Bruno Haible  <bruno@clisp.org>
23605
23606         Make fflush-after-ungetc POSIX compliant on glibc systems.
23607         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
23608         after ungetc.
23609         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
23610         (rpl_fflush): On glibc systems, simply call the system's fflush
23611         function after clearing the ungetc buffer.
23612         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
23613         Instead, lseek only to the end of file, then use the system's fseeko
23614         for the rest. On glibc systems, reset the EOF indicator bit.
23615
23616 2009-01-15  Jim Meyering  <meyering@redhat.com>
23617
23618         openmp.m4: revert quote-adding change, for portability to older autoconf
23619         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
23620         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
23621         Simon Josefsson noticed the problem when using autoconf-2.61.
23622
23623 2009-01-15  Bruno Haible  <bruno@clisp.org>
23624
23625         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
23626         * tests/test-fflush2.c (ASSERT): Always fail.
23627         (main): Add two tests for fflush() after ungetc(), taking into account
23628         the Austin Group's clarification.
23629         Suggested by Eric Blake.
23630
23631 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
23632
23633         mktime.m4: remove K&R-style function prototypes
23634         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
23635         for the Sun C++ compiler.
23636
23637 2009-01-14  Bruno Haible  <bruno@clisp.org>
23638
23639         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
23640         while including <wchar.h>.
23641         * lib/wchar.in.h: In two particular situations on HP-UX, include only
23642         the system's <wchar.h> file.
23643         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23644
23645 2009-01-14  Bruno Haible  <bruno@clisp.org>
23646
23647         * m4/csharp.m4: Don't mention gettext on the serial number line.
23648         * m4/csharpexec.m4: Likewise.
23649         * m4/eaccess.m4: Likewise.
23650         * m4/javaexec.m4: Likewise.
23651         * m4/sig_atomic_t.m4: Likewise.
23652         * m4/tmpdir.m4: Likewise.
23653         * m4/intldir.m4: Bump gettext version.
23654         * m4/lib-ld.m4: Likewise.
23655
23656 2009-01-14  Bruno Haible  <bruno@clisp.org>
23657
23658         * lib/progname.c (set_program_name): Add more comments.
23659         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23660
23661 2009-01-14  Simon Josefsson  <simon@josefsson.org>
23662
23663         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
23664         were sys/stat.h does not define it.
23665
23666 2009-01-14  Jim Meyering  <meyering@redhat.com>
23667
23668         many *.m4 files: improve m4 quoting
23669         99% of this change was performed by running the following commands:
23670         git ls-files | grep '\.m4$' | xargs perl -pi \
23671           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
23672           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23673           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23674           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
23675         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
23676         The remainder were to add Copyright dates, increment serial numbers,
23677         undo some changes in comments, exclude m4/intl.m4, and add quotes
23678         around the "1" in ",1" where the unusual spacing prohibited the
23679         above regexps from doing the job.  For more details, see
23680         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
23681         * m4/acl.m4: Modified.
23682         * m4/afs.m4: Likewise.
23683         * m4/alloca.m4: Likewise.
23684         * m4/argp.m4: Likewise.
23685         * m4/argz.m4: Likewise.
23686         * m4/atexit.m4: Likewise.
23687         * m4/bison-i18n.m4: Likewise.
23688         * m4/bison.m4: Likewise.
23689         * m4/byteswap.m4: Likewise.
23690         * m4/c-stack.m4: Likewise.
23691         * m4/c-strtod.m4: Likewise.
23692         * m4/calloc.m4: Likewise.
23693         * m4/canonicalize-lgpl.m4: Likewise.
23694         * m4/chown.m4: Likewise.
23695         * m4/clock_time.m4: Likewise.
23696         * m4/codeset.m4: Likewise.
23697         * m4/copy-file.m4: Likewise.
23698         * m4/csharp.m4: Likewise.
23699         * m4/csharpcomp.m4: Likewise.
23700         * m4/csharpexec.m4: Likewise.
23701         * m4/d-ino.m4: Likewise.
23702         * m4/d-type.m4: Likewise.
23703         * m4/dirfd.m4: Likewise.
23704         * m4/double-slash-root.m4: Likewise.
23705         * m4/eaccess.m4: Likewise.
23706         * m4/eealloc.m4: Likewise.
23707         * m4/environ.m4: Likewise.
23708         * m4/errno_h.m4: Likewise.
23709         * m4/euidaccess.m4: Likewise.
23710         * m4/execute.m4: Likewise.
23711         * m4/fatal-signal.m4: Likewise.
23712         * m4/fchdir.m4: Likewise.
23713         * m4/fcntl_h.m4: Likewise.
23714         * m4/fileblocks.m4: Likewise.
23715         * m4/filenamecat.m4: Likewise.
23716         * m4/findprog.m4: Likewise.
23717         * m4/flexmember.m4: Likewise.
23718         * m4/fnmatch.m4: Likewise.
23719         * m4/fopen.m4: Likewise.
23720         * m4/fpending.m4: Likewise.
23721         * m4/fprintf-posix.m4: Likewise.
23722         * m4/free.m4: Likewise.
23723         * m4/frexp.m4: Likewise.
23724         * m4/frexpl.m4: Likewise.
23725         * m4/fsusage.m4: Likewise.
23726         * m4/ftruncate.m4: Likewise.
23727         * m4/gc-camellia.m4: Likewise.
23728         * m4/gc-random.m4: Likewise.
23729         * m4/gc.m4: Likewise.
23730         * m4/getaddrinfo.m4: Likewise.
23731         * m4/getcwd-abort-bug.m4: Likewise.
23732         * m4/getcwd-path-max.m4: Likewise.
23733         * m4/getdate.m4: Likewise.
23734         * m4/getdomainname.m4: Likewise.
23735         * m4/getgroups.m4: Likewise.
23736         * m4/gethostname.m4: Likewise.
23737         * m4/gethrxtime.m4: Likewise.
23738         * m4/getline.m4: Likewise.
23739         * m4/getloadavg.m4: Likewise.
23740         * m4/getndelim2.m4: Likewise.
23741         * m4/getpass.m4: Likewise.
23742         * m4/gettext.m4: Likewise.
23743         * m4/gettime.m4: Likewise.
23744         * m4/gettimeofday.m4: Likewise.
23745         * m4/gnulib-common.m4: Likewise.
23746         * m4/group-member.m4: Likewise.
23747         * m4/host-os.m4: Likewise.
23748         * m4/iconv.m4: Likewise.
23749         * m4/iconv_open.m4: Likewise.
23750         * m4/inet_ntop.m4: Likewise.
23751         * m4/inet_pton.m4: Likewise.
23752         * m4/inline.m4: Likewise.
23753         * m4/intldir.m4: Likewise.
23754         * m4/intlmacosx.m4: Likewise.
23755         * m4/intmax.m4: Likewise.
23756         * m4/intmax_t.m4: Likewise.
23757         * m4/inttypes.m4: Likewise.
23758         * m4/inttypes_h.m4: Likewise.
23759         * m4/inttypes-pri.m4: Likewise.
23760         * m4/isapipe.m4: Likewise.
23761         * m4/isnand.m4: Likewise.
23762         * m4/isnanf.m4: Likewise.
23763         * m4/isnanl.m4: Likewise.
23764         * m4/javacomp.m4: Likewise.
23765         * m4/javaexec.m4: Likewise.
23766         * m4/jm-winsz1.m4: Likewise.
23767         * m4/jm-winsz2.m4: Likewise.
23768         * m4/lchown.m4: Likewise.
23769         * m4/lcmessage.m4: Likewise.
23770         * m4/ldexpl.m4: Likewise.
23771         * m4/lib-ld.m4: Likewise.
23772         * m4/lib-link.m4: Likewise.
23773         * m4/libsigsegv.m4: Likewise.
23774         * m4/link-follow.m4: Likewise.
23775         * m4/localcharset.m4: Likewise.
23776         * m4/locale-fr.m4: Likewise.
23777         * m4/locale-ja.m4: Likewise.
23778         * m4/locale-tr.m4: Likewise.
23779         * m4/locale-zh.m4: Likewise.
23780         * m4/lock.m4: Likewise.
23781         * m4/longlong.m4: Likewise.
23782         * m4/ls-mntd-fs.m4: Likewise.
23783         * m4/lstat.m4: Likewise.
23784         * m4/malloc.m4: Likewise.
23785         * m4/mathl.m4: Likewise.
23786         * m4/mbrtowc.m4: Likewise.
23787         * m4/mbstate_t.m4: Likewise.
23788         * m4/mbswidth.m4: Likewise.
23789         * m4/memchr.m4: Likewise.
23790         * m4/memcmp.m4: Likewise.
23791         * m4/memcpy.m4: Likewise.
23792         * m4/memmem.m4: Likewise.
23793         * m4/memmove.m4: Likewise.
23794         * m4/mempcpy.m4: Likewise.
23795         * m4/memrchr.m4: Likewise.
23796         * m4/memset.m4: Likewise.
23797         * m4/minmax.m4: Likewise.
23798         * m4/mkdir-slash.m4: Likewise.
23799         * m4/mkdtemp.m4: Likewise.
23800         * m4/mktime.m4: Likewise.
23801         * m4/mmap-anon.m4: Likewise.
23802         * m4/mountlist.m4: Likewise.
23803         * m4/nanosleep.m4: Likewise.
23804         * m4/nls.m4: Likewise.
23805         * m4/nocrash.m4: Likewise.
23806         * m4/open.m4: Likewise.
23807         * m4/openat.m4: Likewise.
23808         * m4/openmp.m4: Likewise.
23809         * m4/pathmax.m4: Likewise.
23810         * m4/perl.m4: Likewise.
23811         * m4/physmem.m4: Likewise.
23812         * m4/pipe.m4: Likewise.
23813         * m4/po.m4: Likewise.
23814         * m4/poll.m4: Likewise.
23815         * m4/posixtm.m4: Likewise.
23816         * m4/posixver.m4: Likewise.
23817         * m4/printf-frexp.m4: Likewise.
23818         * m4/printf-frexpl.m4: Likewise.
23819         * m4/printf-posix.m4: Likewise.
23820         * m4/printf-posix-rpl.m4: Likewise.
23821         * m4/printf.m4: Likewise.
23822         * m4/progtest.m4: Likewise.
23823         * m4/putenv.m4: Likewise.
23824         * m4/readline.m4: Likewise.
23825         * m4/readlink.m4: Likewise.
23826         * m4/readutmp.m4: Likewise.
23827         * m4/realloc.m4: Likewise.
23828         * m4/regex.m4: Likewise.
23829         * m4/relocatable.m4: Likewise.
23830         * m4/relocatable-lib.m4: Likewise.
23831         * m4/rename-dest-slash.m4: Likewise.
23832         * m4/rename.m4: Likewise.
23833         * m4/rmdir-errno.m4: Likewise.
23834         * m4/rmdir.m4: Likewise.
23835         * m4/roundf.m4: Likewise.
23836         * m4/roundl.m4: Likewise.
23837         * m4/rpmatch.m4: Likewise.
23838         * m4/save-cwd.m4: Likewise.
23839         * m4/selinux-selinux-h.m4: Likewise.
23840         * m4/setenv.m4: Likewise.
23841         * m4/settime.m4: Likewise.
23842         * m4/sig2str.m4: Likewise.
23843         * m4/sig_atomic_t.m4: Likewise.
23844         * m4/signalblocking.m4: Likewise.
23845         * m4/signbit.m4: Likewise.
23846         * m4/sigpipe.m4: Likewise.
23847         * m4/sockets.m4: Likewise.
23848         * m4/sockpfaf.m4: Likewise.
23849         * m4/st_dm_mode.m4: Likewise.
23850         * m4/stat-time.m4: Likewise.
23851         * m4/stdbool.m4: Likewise.
23852         * m4/stdint.m4: Likewise.
23853         * m4/stdint_h.m4: Likewise.
23854         * m4/stpcpy.m4: Likewise.
23855         * m4/stpncpy.m4: Likewise.
23856         * m4/strcase.m4: Likewise.
23857         * m4/strchrnul.m4: Likewise.
23858         * m4/strcspn.m4: Likewise.
23859         * m4/strdup.m4: Likewise.
23860         * m4/strftime.m4: Likewise.
23861         * m4/strndup.m4: Likewise.
23862         * m4/strnlen.m4: Likewise.
23863         * m4/strpbrk.m4: Likewise.
23864         * m4/strptime.m4: Likewise.
23865         * m4/strsep.m4: Likewise.
23866         * m4/strtod.m4: Likewise.
23867         * m4/strtoimax.m4: Likewise.
23868         * m4/strtok_r.m4: Likewise.
23869         * m4/strtol.m4: Likewise.
23870         * m4/strtoll.m4: Likewise.
23871         * m4/strtoul.m4: Likewise.
23872         * m4/strtoull.m4: Likewise.
23873         * m4/strtoumax.m4: Likewise.
23874         * m4/strverscmp.m4: Likewise.
23875         * m4/threadlib.m4: Likewise.
23876         * m4/timegm.m4: Likewise.
23877         * m4/tm_gmtoff.m4: Likewise.
23878         * m4/tmpdir.m4: Likewise.
23879         * m4/tmpfile.m4: Likewise.
23880         * m4/tzset.m4: Likewise.
23881         * m4/uintmax_t.m4: Likewise.
23882         * m4/unlinkdir.m4: Likewise.
23883         * m4/unlocked-io.m4: Likewise.
23884         * m4/uptime.m4: Likewise.
23885         * m4/userspec.m4: Likewise.
23886         * m4/utimbuf.m4: Likewise.
23887         * m4/utime.m4: Likewise.
23888         * m4/utimes-null.m4: Likewise.
23889         * m4/utimes.m4: Likewise.
23890         * m4/vararrays.m4: Likewise.
23891         * m4/vasnprintf.m4: Likewise.
23892         * m4/vfprintf-posix.m4: Likewise.
23893         * m4/vprintf-posix.m4: Likewise.
23894         * m4/wait-process.m4: Likewise.
23895         * m4/wchar_t.m4: Likewise.
23896         * m4/wint_t.m4: Likewise.
23897         * m4/write-any-file.m4: Likewise.
23898         * m4/yield.m4: Likewise.
23899
23900 2009-01-13  Bruno Haible  <bruno@clisp.org>
23901
23902         Avoid test-copy-file.sh failures when ACL support insufficient.
23903         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
23904         TESTS_ENVIRONMENT.
23905         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
23906         Reported by Jim Meyering.
23907
23908 2009-01-13  Bruno Haible  <bruno@clisp.org>
23909
23910         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
23911         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
23912         * modules/unistdio/u8-printf-parse (Files): Likewise.
23913         * modules/unistdio/u32-printf-parse (Files): Likewise.
23914         * modules/unistdio/ulc-printf-parse (Files): Likewise.
23915
23916 2009-01-13  Simon Josefsson  <simon@josefsson.org>
23917
23918         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
23919         and m4/inttypes_h.m4 too.
23920
23921 2009-01-12  Eric Blake  <ebb9@byu.net>
23922
23923         tests: IRIX 6.2 cc can't compile -0.0 into .data
23924         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
23925         rather than at compile-time.
23926         * tests/test-floorl.c (minus_zero): Likewise.
23927         * tests/test-frexpl.c (minus_zero): Likewise.
23928         * tests/test-isnan.c (minus_zerol): Likewise.
23929         * tests/test-isnanl.h (minus_zero): Likewise.
23930         * tests/test-ldexpl.c (minus_zero): Likewise.
23931         * tests/test-roundl.c (minus_zero): Likewise.
23932         * tests/test-signbit.c (minus_zerol): Likewise.
23933         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23934         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23935         * tests/test-truncl.c (minus_zero): Likewise.
23936         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23937         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23938         Reported by Tom G. Christensen and Nelson H. F. Beebe.
23939
23940 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23941
23942         regex: fix glibc bug 9697
23943         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
23944         handling.
23945
23946 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23947
23948         regex: fix glibc bug 697
23949         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
23950         being NULL also if there are no backreferences.
23951
23952 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23953
23954         regex: merge glibc changes
23955         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
23956         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
23957         re_string_skip_chars, re_string_reconstruct): Likewise.
23958         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
23959
23960 2009-01-07  Jim Meyering  <meyering@redhat.com>
23961
23962         poll: filter through cppi
23963         * lib/poll.c: Indent cpp directives to reflect nesting.
23964
23965 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
23966
23967         poll: don't return uninitialized
23968         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
23969
23970 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
23971
23972         avoid compile failure on AIX 6.1
23973         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
23974         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
23975
23976 2009-01-04  Jim Meyering  <meyering@redhat.com>
23977
23978         remove duplicate inclusion of <stdio.h>
23979         * tests/test-fprintf-posix.c: Likewise.
23980         * tests/test-printf-posix.c: Likewise.
23981         * tests/test-snprintf-posix.c: Likewise.
23982         * tests/test-sprintf-posix.c: Likewise.
23983         * tests/test-vasprintf-posix.c: Likewise.
23984         * tests/test-vfprintf-posix.c: Likewise.
23985         * tests/test-vprintf-posix.c: Likewise.
23986         * tests/test-vsnprintf-posix.c: Likewise.
23987         * tests/test-vsprintf-posix.c: Likewise.
23988
23989 2009-01-03  Jim Meyering  <meyering@redhat.com>
23990
23991         gnulib-tool: fix sed-based filtering
23992         * gnulib-tool (func_filter_filelist): Remove extra backslash
23993         in sed_fff_filter definition.
23994
23995 2009-01-02  Jim Meyering  <meyering@redhat.com>
23996
23997         strftime: avoid compilation failure on Solaris 2.6
23998         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
23999         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24000         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24001         be available.  Reported by Tom G. Christensen.  Details in
24002         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24003
24004 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24005             Bruno Haible  <bruno@clisp.org>
24006
24007         Speed up gnulib-tool by doing more string processing through shell
24008         built-ins.
24009         * gnulib-tool (fast_func_append): New variable.
24010         (func_remove_prefix, func_remove_suffix): New functions.
24011         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24012         (func_filter_filelist): New function.
24013         (func_get_dependencies): Use func_remove_suffix instead of sed.
24014         (func_get_automake_snippet): Use func_filter_filelist instead of a
24015         subshell and sed invocation.
24016
24017 2009-01-01  Bruno Haible  <bruno@clisp.org>
24018
24019         Fix a security bug.
24020         * gnulib-tool (func_import, import, update): Don't allow the characters
24021         '"', '$', '`', '\' in macro arguments that become part of commands that
24022         are evaluated.
24023
24024 2009-01-01  Bruno Haible  <bruno@clisp.org>
24025
24026         * gnulib-tool (func_reset_sigpipe): Add more comments.
24027
24028 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24029
24030         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24031         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24032         already know the answer.
24033
24034 2009-01-01  Jim Meyering  <meyering@redhat.com>
24035
24036         * lib/version-etc.c (version_etc_va): Update copyright year.
24037
24038 2008-12-30  Bruno Haible  <bruno@clisp.org>
24039
24040         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24041         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24042         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24043
24044 2008-12-29  Eric Blake  <ebb9@byu.net>
24045
24046         multiarch: avoid autoconf AC_REQUIRE bug
24047         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24048         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24049         2.63 and older.
24050         Reported by Bruno Haible, and analyzed in
24051         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24052
24053 2008-12-29  Bruno Haible  <bruno@clisp.org>
24054
24055         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24056         files in subdirectories correctly.
24057         Reported by Ralf Wildenhues.
24058
24059 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24060
24061         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24062         rather than 'join FILE -', for Solaris join.
24063
24064 2008-12-29  Bruno Haible  <bruno@clisp.org>
24065
24066         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24067         quoting.
24068         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24069         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24070         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24071         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24072         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24073         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24074         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24075         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24076         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24077         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24078         * m4/nls.m4 (AM_NLS): Likewise.
24079         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24080         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24081         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24082         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24083         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24084         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24085         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24086         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24087         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24088         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24089         * m4/xsize.m4 (gl_XSIZE): Likewise.
24090         Suggested by Jim Meyering.
24091
24092 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24093
24094         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24095         * lib/parse-duration.c: use a switch instead of cascading if's.
24096
24097 2008-12-29  Eric Blake  <ebb9@byu.net>
24098
24099         wchar.h: supply WEOF on Irix 5.3
24100         * lib/wchar.in.h (wint_t): Also supply WEOF.
24101         * lib/wctype.in.h (wint_t): Likewise.
24102         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24103         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24104         Reported by Tom G. Christensen.
24105
24106 2008-12-26  Bruno Haible  <bruno@clisp.org>
24107
24108         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24109         i486, i586, i686.
24110
24111 2008-12-26  Bruno Haible  <bruno@clisp.org>
24112
24113         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24114
24115 2008-12-26  Bruno Haible  <bruno@clisp.org>
24116
24117         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24118         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24119         not __STDC_CONSTANT_MACROS.
24120         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24121
24122 2008-12-25  Bruno Haible  <bruno@clisp.org>
24123
24124         Add support for universal builds to vasnprintf.
24125         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24126         universal builds, guess no.
24127         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24128         * modules/vasprintf-posix (Depends-on): Likewise.
24129         * modules/fprintf-posix (Depends-on): Likewise.
24130         * modules/vfprintf-posix (Depends-on): Likewise.
24131         * modules/snprintf-posix (Depends-on): Likewise.
24132         * modules/vsnprintf-posix (Depends-on): Likewise.
24133         * modules/sprintf-posix (Depends-on): Likewise.
24134         * modules/vsprintf-posix (Depends-on): Likewise.
24135         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24136         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24137         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24138         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24139         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24140         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24141         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24142
24143         Add support for universal builds to <inttypes.h>.
24144         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24145         _SCNu64_PREFIX): In Apple
24146         universal builds, define directly, using _LP64.
24147         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24148         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24149         * modules/inttypes (Depends-on): Add multiarch.
24150         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24151
24152         Add support for universal builds to <stdint.h>.
24153         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24154         universal builds, define directly, using _LP64.
24155         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24156         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24157         and size_t.
24158         * modules/stdint (Depends-on): Add multiarch.
24159         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24160
24161         New module 'multiarch'.
24162         * modules/multiarch: New file.
24163         * m4/multiarch.m4: New file.
24164
24165 2008-12-25  Bruno Haible  <bruno@clisp.org>
24166
24167         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24168
24169 2008-12-25  Bruno Haible  <bruno@clisp.org>
24170
24171         * modules/btowc (License): Relicense under LGPLv2+.
24172         * modules/mbsinit (License): Likewise.
24173         * modules/mbrtowc (License): Likewise.
24174         * modules/wcrtomb (License): Likewise.
24175         * modules/streq (License): Likewise.
24176         Reported by David Lutterkort <lutter@redhat.com>.
24177
24178 2008-12-23  Bruno Haible  <bruno@clisp.org>
24179
24180         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24181
24182 2008-12-23  Bruno Haible  <bruno@clisp.org>
24183
24184         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24185         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24186         GETADDRINFO_LIB, not in LIBS.
24187         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24188         * modules/canon-host (Link): Likewise.
24189         * NEWS: Mention the change.
24190         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24191         GETADDRINFO_LIB.
24192
24193 2008-12-22  Bruno Haible  <bruno@clisp.org>
24194
24195         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24196         * doc/posix-functions/iswalpha_l.texi: Likewise.
24197         * doc/posix-functions/iswblank_l.texi: Likewise.
24198         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24199         * doc/posix-functions/iswctype_l.texi: Likewise.
24200         * doc/posix-functions/iswdigit_l.texi: Likewise.
24201         * doc/posix-functions/iswgraph_l.texi: Likewise.
24202         * doc/posix-functions/iswlower_l.texi: Likewise.
24203         * doc/posix-functions/iswprint_l.texi: Likewise.
24204         * doc/posix-functions/iswpunct_l.texi: Likewise.
24205         * doc/posix-functions/iswspace_l.texi: Likewise.
24206         * doc/posix-functions/iswupper_l.texi: Likewise.
24207         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24208         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24209         * doc/posix-functions/open_wmemstream.texi: Likewise.
24210         * doc/posix-functions/swscanf.texi: Likewise.
24211         * doc/posix-functions/towctrans_l.texi: Likewise.
24212         * doc/posix-functions/towlower.texi: Likewise.
24213         * doc/posix-functions/towlower_l.texi: Likewise.
24214         * doc/posix-functions/towupper.texi: Likewise.
24215         * doc/posix-functions/towupper_l.texi: Likewise.
24216         * doc/posix-functions/vfwprintf.texi: Likewise.
24217         * doc/posix-functions/vfwscanf.texi: Likewise.
24218         * doc/posix-functions/vswscanf.texi: Likewise.
24219         * doc/posix-functions/vwprintf.texi: Likewise.
24220         * doc/posix-functions/vwscanf.texi: Likewise.
24221         * doc/posix-functions/wcpcpy.texi: Likewise.
24222         * doc/posix-functions/wcpncpy.texi: Likewise.
24223         * doc/posix-functions/wcscasecmp.texi: Likewise.
24224         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24225         * doc/posix-functions/wcscoll_l.texi: Likewise.
24226         * doc/posix-functions/wcsdup.texi: Likewise.
24227         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24228         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24229         * doc/posix-functions/wcsnlen.texi: Likewise.
24230         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24231         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24232         * doc/posix-functions/wctrans_l.texi: Likewise.
24233         * doc/posix-functions/wctype_l.texi: Likewise.
24234         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24235         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24236         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24237         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24238         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24239         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24240         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24241         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24242         * doc/glibc-functions/wcschrnul.texi: Likewise.
24243         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24244         * doc/glibc-functions/wcstod_l.texi: Likewise.
24245         * doc/glibc-functions/wcstof_l.texi: Likewise.
24246         * doc/glibc-functions/wcstol_l.texi: Likewise.
24247         * doc/glibc-functions/wcstold_l.texi: Likewise.
24248         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24249         * doc/glibc-functions/wcstoq.texi: Likewise.
24250         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24251         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24252         * doc/glibc-functions/wcstouq.texi: Likewise.
24253         * doc/glibc-functions/wmempcpy.texi: Likewise.
24254
24255 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
24256             Eric Blake  <ebb9@byu.net>
24257             Paolo Bonzini  <bonzini@gnu.org>
24258             Bruno Haible  <bruno@clisp.org>
24259
24260         Make c-stack work on Haiku.
24261         * lib/c-stack.c (SA_ONSTACK): Define fallback.
24262         (c_stack_action): Use SA_ONSTACK flag.
24263
24264 2008-12-22  Bruno Haible  <bruno@clisp.org>
24265
24266         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
24267
24268 2008-12-22  Bruno Haible  <bruno@clisp.org>
24269
24270         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
24271         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
24272         being overridden.
24273         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
24274         New macros.
24275         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
24276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
24277         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
24278         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
24279
24280 2008-12-22  Bruno Haible  <bruno@clisp.org>
24281
24282         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
24283         from test code.
24284
24285 2008-12-22  Eric Blake  <ebb9@byu.net>
24286
24287         Avoid gcc warnings on cygwin.
24288         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24289         Avoid unused variable.
24290         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24291         Likewise.
24292
24293 2008-12-22  Bruno Haible  <bruno@clisp.org>
24294
24295         Remove HAVE_MBRTOWC conditionals.
24296         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24297         (mbscasecmp): Assume mbrtowc function.
24298         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24299         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24300         * lib/mbschr.c: Include mbuiter.h unconditionally.
24301         (mbschr): Assume mbrtowc function.
24302         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24303         (mbscspn): Assume mbrtowc function.
24304         * lib/mbslen.c: Include mbuiter.h unconditionally.
24305         (mbslen): Assume mbrtowc function.
24306         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24307         (mbsncasecmp): Assume mbrtowc function.
24308         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24309         (mbsnlen): Assume mbrtowc function.
24310         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24311         (mbspbrk): Assume mbrtowc function.
24312         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24313         (mbspcasecmp): Assume mbrtowc function.
24314         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24315         (mbsrchr): Assume mbrtowc function.
24316         * lib/mbssep.c: Include mbuiter.h unconditionally.
24317         (mbssep): Assume mbrtowc function.
24318         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24319         (mbsspn): Assume mbrtowc function.
24320         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24321         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24322         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24323         (mbstok_r): Assume mbrtowc function.
24324         * lib/propername.c: Include mbuiter.h unconditionally.
24325         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24326         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24327         (trim2): Assume mbrtowc function.
24328         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24329         (mbsnwidth): Assume mbrtowc function.
24330         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24331         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24332         fallback definitions.
24333         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24334
24335 2008-12-22  Bruno Haible  <bruno@clisp.org>
24336
24337         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24338
24339 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24340
24341         * modules/regex: Request emulations for the mb*/wc* functions we need.
24342         * m4/regex.m4: Don't look for those functions here.
24343         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24344
24345 2008-12-22  Bruno Haible  <bruno@clisp.org>
24346
24347         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24348
24349 2008-12-21  Bruno Haible  <bruno@clisp.org>
24350
24351         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24352         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24353         (Include): Remove conditionalization.
24354         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24355         (Include): Remove conditionalization.
24356         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24357         (Include): Remove conditionalization.
24358         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24359         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24360         * NEWS: Mention the change.
24361         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24362         via Sergey Poznyakoff <gray@gnu.org.ua>.
24363
24364 2008-12-21  Bruno Haible  <bruno@clisp.org>
24365
24366         * MODULES.html.sh (Extended multibyte and wide character utilities
24367         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24368         wcrtomb, wcsrtombs.
24369         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24370         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24371         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24372         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24373
24374 2008-12-21  Bruno Haible  <bruno@clisp.org>
24375
24376         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24377
24378 2008-12-21  Bruno Haible  <bruno@clisp.org>
24379
24380         * modules/wcsnrtombs-tests: New file.
24381         * tests/test-wcsnrtombs1.sh: New file.
24382         * tests/test-wcsnrtombs2.sh: New file.
24383         * tests/test-wcsnrtombs3.sh: New file.
24384         * tests/test-wcsnrtombs4.sh: New file.
24385         * tests/test-wcsnrtombs.c: New file.
24386
24387         New module 'wcsnrtombs'.
24388         * lib/wchar.in.h (wcsnrtombs): New declaration.
24389         * lib/wcsnrtombs.c: New file.
24390         * lib/wcsrtombs-state.c: New file.
24391         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24392         (internal_state): Remove variable.
24393         * m4/wcsnrtombs.m4: New file.
24394         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24395         compilation units.
24396         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24397         HAVE_WCSNRTOMBS.
24398         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24399         HAVE_WCSNRTOMBS.
24400         * modules/wcsnrtombs: New file.
24401         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24402         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24403
24404 2008-12-21  Bruno Haible  <bruno@clisp.org>
24405
24406         * modules/wcsrtombs-tests: New file.
24407         * tests/test-wcsrtombs1.sh: New file.
24408         * tests/test-wcsrtombs2.sh: New file.
24409         * tests/test-wcsrtombs3.sh: New file.
24410         * tests/test-wcsrtombs4.sh: New file.
24411         * tests/test-wcsrtombs.c: New file.
24412
24413         New module 'wcsrtombs'.
24414         * lib/wchar.in.h (wcsrtombs): New declaration.
24415         * lib/wcsrtombs.c: New file.
24416         * m4/wcsrtombs.m4: New file.
24417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
24418         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
24420         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24421         * modules/wcsrtombs: New file.
24422         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
24423         bugs.
24424
24425 2008-12-21  Bruno Haible  <bruno@clisp.org>
24426
24427         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
24428         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
24429         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
24430         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
24431         if not correct.
24432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
24433         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
24434         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24435         m4/locale-zh.m4, m4/codeset.m4.
24436         * doc/posix-functions/wcrtomb.texi: Document the bug.
24437
24438 2008-12-21  Bruno Haible  <bruno@clisp.org>
24439
24440         Work around a btowc() bug on IRIX 6.5.
24441         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
24442         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
24443         REPLACE_WTOBC if not.
24444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
24445         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
24446         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
24447
24448 2008-12-21  Bruno Haible  <bruno@clisp.org>
24449
24450         * modules/wcrtomb-tests: New file.
24451         * tests/test-wcrtomb.sh: New file.
24452         * tests/test-wcrtomb.c: New file.
24453
24454         New module 'wcrtomb'.
24455         * lib/wchar.in.h (wcrtomb): New declaration.
24456         * lib/wcrtomb.c: New file.
24457         * m4/wcrtomb.m4: New file.
24458         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
24459         HAVE_WCRTOMB.
24460         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
24461         HAVE_WCRTOMB.
24462         * modules/wcrtomb: New file.
24463         * doc/posix-functions/wcrtomb.texi: Mention the new module.
24464
24465 2008-12-21  Bruno Haible  <bruno@clisp.org>
24466
24467         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
24468         * modules/mbsrtowcs (Files): Likewise.
24469         * modules/wctob (Files): Likewise.
24470         * modules/c-strcase-tests (Files): Likewise.
24471         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24472         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24473         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24474         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24475         * modules/vasnprintf-posix-tests (Files): Likewise.
24476
24477 2008-12-21  William Pursell  <bill.pursell@gmail.com>
24478
24479         gitlog-to-changelog: pass all command-line arguments to git-log
24480         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
24481         it is sometimes convenient to filter the commits in various ways.
24482         gitlog-to-changelog only allows --since to specify a start date,
24483         but git-log itself supports many other filtering mechanisms.
24484         At the moment, I want to filter by branch name.  Rather than
24485         adding a --branch option to gitlog-to-changelog, it seems more
24486         flexible to simply pass all options directly to git-log and let
24487         git do the work.  Notice that this effectively makes --since a
24488         redundant option for gitlog-to-changelog, but removing it would
24489         require current usage to change since calls would then require
24490         an additional '--'.
24491
24492 2008-12-21  Bruno Haible  <bruno@clisp.org>
24493
24494         * modules/mbsnrtowcs-tests: New file.
24495         * tests/test-mbsnrtowcs1.sh: New file.
24496         * tests/test-mbsnrtowcs2.sh: New file.
24497         * tests/test-mbsnrtowcs3.sh: New file.
24498         * tests/test-mbsnrtowcs4.sh: New file.
24499         * tests/test-mbsnrtowcs.c: New file.
24500
24501         New module 'mbsnrtowcs'.
24502         * lib/wchar.in.h (mbsnrtowcs): New declaration.
24503         * lib/mbsnrtowcs.c: New file.
24504         * lib/mbsrtowcs-state.c: New file.
24505         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
24506         (internal_state): Remove variable.
24507         * m4/mbsnrtowcs.m4: New file.
24508         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
24509         compilation units.
24510         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
24511         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24512         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
24513         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24514         * modules/mbsnrtowcs: New file.
24515         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
24516         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
24517         portability problem.
24518
24519 2008-12-21  Bruno Haible  <bruno@clisp.org>
24520
24521         Work around mbsrtowcs bug.
24522         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
24523         (gl_FUNC_MBSRTOWCS): Invoke it.
24524         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24525         m4/locale-zh.m4.
24526         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
24527
24528 2008-12-21  Bruno Haible  <bruno@clisp.org>
24529
24530         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
24531
24532 2008-12-21  Bruno Haible  <bruno@clisp.org>
24533
24534         Update doc for AIX.
24535         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
24536         16-bit wchar_t type.
24537         * doc/posix-functions/btowc.texi: Likewise.
24538         * doc/posix-functions/fgetwc.texi: Likewise.
24539         * doc/posix-functions/fgetws.texi: Likewise.
24540         * doc/posix-functions/fputwc.texi: Likewise.
24541         * doc/posix-functions/fputws.texi: Likewise.
24542         * doc/posix-functions/fwide.texi: Likewise.
24543         * doc/posix-functions/fwprintf.texi: Likewise.
24544         * doc/posix-functions/fwscanf.texi: Likewise.
24545         * doc/posix-functions/getwchar.texi: Likewise.
24546         * doc/posix-functions/getwc.texi: Likewise.
24547         * doc/posix-functions/iswalnum.texi: Likewise.
24548         * doc/posix-functions/iswalpha.texi: Likewise.
24549         * doc/posix-functions/iswblank.texi: Likewise.
24550         * doc/posix-functions/iswcntrl.texi: Likewise.
24551         * doc/posix-functions/iswctype.texi: Likewise.
24552         * doc/posix-functions/iswdigit.texi: Likewise.
24553         * doc/posix-functions/iswgraph.texi: Likewise.
24554         * doc/posix-functions/iswlower.texi: Likewise.
24555         * doc/posix-functions/iswprint.texi: Likewise.
24556         * doc/posix-functions/iswpunct.texi: Likewise.
24557         * doc/posix-functions/iswspace.texi: Likewise.
24558         * doc/posix-functions/iswupper.texi: Likewise.
24559         * doc/posix-functions/iswxdigit.texi: Likewise.
24560         * doc/posix-functions/mbrtowc.texi: Likewise.
24561         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24562         * doc/posix-functions/mbstowcs.texi: Likewise.
24563         * doc/posix-functions/mbtowc.texi: Likewise.
24564         * doc/posix-functions/putwchar.texi: Likewise.
24565         * doc/posix-functions/putwc.texi: Likewise.
24566         * doc/posix-functions/swprintf.texi: Likewise.
24567         * doc/posix-functions/tolower.texi: Likewise.
24568         * doc/posix-functions/toupper.texi: Likewise.
24569         * doc/posix-functions/towctrans.texi: Likewise.
24570         * doc/posix-functions/ungetwc.texi: Likewise.
24571         * doc/posix-functions/vswprintf.texi: Likewise.
24572         * doc/posix-functions/wcrtomb.texi: Likewise.
24573         * doc/posix-functions/wcscat.texi: Likewise.
24574         * doc/posix-functions/wcschr.texi: Likewise.
24575         * doc/posix-functions/wcscmp.texi: Likewise.
24576         * doc/posix-functions/wcscoll.texi: Likewise.
24577         * doc/posix-functions/wcscpy.texi: Likewise.
24578         * doc/posix-functions/wcscspn.texi: Likewise.
24579         * doc/posix-functions/wcsftime.texi: Likewise.
24580         * doc/posix-functions/wcslen.texi: Likewise.
24581         * doc/posix-functions/wcsncat.texi: Likewise.
24582         * doc/posix-functions/wcsncmp.texi: Likewise.
24583         * doc/posix-functions/wcsncpy.texi: Likewise.
24584         * doc/posix-functions/wcspbrk.texi: Likewise.
24585         * doc/posix-functions/wcsrchr.texi: Likewise.
24586         * doc/posix-functions/wcsrtombs.texi: Likewise.
24587         * doc/posix-functions/wcsspn.texi: Likewise.
24588         * doc/posix-functions/wcsstr.texi: Likewise.
24589         * doc/posix-functions/wcstod.texi: Likewise.
24590         * doc/posix-functions/wcstof.texi: Likewise.
24591         * doc/posix-functions/wcstoimax.texi: Likewise.
24592         * doc/posix-functions/wcstok.texi: Likewise.
24593         * doc/posix-functions/wcstold.texi: Likewise.
24594         * doc/posix-functions/wcstoll.texi: Likewise.
24595         * doc/posix-functions/wcstol.texi: Likewise.
24596         * doc/posix-functions/wcstombs.texi: Likewise.
24597         * doc/posix-functions/wcstoull.texi: Likewise.
24598         * doc/posix-functions/wcstoul.texi: Likewise.
24599         * doc/posix-functions/wcstoumax.texi: Likewise.
24600         * doc/posix-functions/wcswidth.texi: Likewise.
24601         * doc/posix-functions/wcsxfrm.texi: Likewise.
24602         * doc/posix-functions/wctob.texi: Likewise.
24603         * doc/posix-functions/wctomb.texi: Likewise.
24604         * doc/posix-functions/wctrans.texi: Likewise.
24605         * doc/posix-functions/wctype.texi: Likewise.
24606         * doc/posix-functions/wcwidth.texi: Likewise.
24607         * doc/posix-functions/wmemchr.texi: Likewise.
24608         * doc/posix-functions/wmemcmp.texi: Likewise.
24609         * doc/posix-functions/wmemcpy.texi: Likewise.
24610         * doc/posix-functions/wmemmove.texi: Likewise.
24611         * doc/posix-functions/wmemset.texi: Likewise.
24612         * doc/posix-functions/wprintf.texi: Likewise.
24613         * doc/posix-functions/wscanf.texi: Likewise.
24614
24615 2008-12-21  Bruno Haible  <bruno@clisp.org>
24616
24617         Update doc for HP-UX 11.11.
24618         * doc/posix-functions/btowc.texi: Clarify that the function is missing
24619         in HP-UX version 11.00, not in all versions of HP-UX 11.
24620         * doc/posix-functions/fwide.texi: Likewise.
24621         * doc/posix-functions/fwprintf.texi: Likewise.
24622         * doc/posix-functions/fwscanf.texi: Likewise.
24623         * doc/posix-functions/inet_ntop.texi: Likewise.
24624         * doc/posix-functions/inet_pton.texi: Likewise.
24625         * doc/posix-functions/mbrlen.texi: Likewise.
24626         * doc/posix-functions/mbrtowc.texi: Likewise.
24627         * doc/posix-functions/mbsinit.texi: Likewise.
24628         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24629         * doc/posix-functions/swprintf.texi: Likewise.
24630         * doc/posix-functions/swscanf.texi: Likewise.
24631         * doc/posix-functions/towctrans.texi: Likewise.
24632         * doc/posix-functions/vfwprintf.texi: Likewise.
24633         * doc/posix-functions/vswprintf.texi: Likewise.
24634         * doc/posix-functions/vwprintf.texi: Likewise.
24635         * doc/posix-functions/wcrtomb.texi: Likewise.
24636         * doc/posix-functions/wcsrtombs.texi: Likewise.
24637         * doc/posix-functions/wcsstr.texi: Likewise.
24638         * doc/posix-functions/wctob.texi: Likewise.
24639         * doc/posix-functions/wctrans.texi: Likewise.
24640         * doc/posix-functions/wmemchr.texi: Likewise.
24641         * doc/posix-functions/wmemcmp.texi: Likewise.
24642         * doc/posix-functions/wmemcpy.texi: Likewise.
24643         * doc/posix-functions/wmemmove.texi: Likewise.
24644         * doc/posix-functions/wmemset.texi: Likewise.
24645         * doc/posix-functions/wprintf.texi: Likewise.
24646         * doc/posix-functions/wscanf.texi: Likewise.
24647
24648 2008-12-21  Bruno Haible  <bruno@clisp.org>
24649
24650         Work around a portability problem.
24651         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
24652         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
24653
24654 2008-12-20  Bruno Haible  <bruno@clisp.org>
24655
24656         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
24657         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
24658         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
24659         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
24660         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
24661
24662         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
24663         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
24664         set.
24665         (GNULIB_defined_mbstate_t): New macro.
24666         (mbsinit): Redefine if REPLACE_MBSINIT is set.
24667         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
24668         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
24669         reuses the system's mbrtowc function but works around the bugs.
24670         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
24671         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
24672         macros.
24673         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
24674         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
24675         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
24676         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
24677         REPLACE_MBSINIT if mbsinit needs to be overridden.
24678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
24679         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24680         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
24681         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24682         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24683         m4/locale-zh.m4.
24684         (Depends): Add mbsinit.
24685         * modules/mbsinit (Depends): Add mbrtowc.
24686         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
24687
24688 2008-12-20  Bruno Haible  <bruno@clisp.org>
24689
24690         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
24691         so that there are no conversion errors on AIX.
24692         * tests/test-mbsrtowcs.c (main): LIkewise.
24693
24694 2008-12-20  Bruno Haible  <bruno@clisp.org>
24695
24696         Work around wctob bug on Solaris <= 9.
24697         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
24698         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
24699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
24700         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
24701         * modules/wctob (Files): Add m4/locale-fr.m4.
24702         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
24703
24704 2008-12-20  Bruno Haible  <bruno@clisp.org>
24705
24706         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
24707         /dev/null.
24708         * tests/test-select-in.sh: Likewise.
24709         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24710
24711 2008-12-20  Bruno Haible  <bruno@clisp.org>
24712
24713         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
24714         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
24715         Cygwin 1.5.x.
24716
24717 2008-12-20  Bruno Haible  <bruno@clisp.org>
24718
24719         Ensure mbstate_t is defined on HP-UX 11.11.
24720         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
24721         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
24722         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
24723         AC_USE_SYSTEM_EXTENSIONS.
24724         * modules/fnmatch (Depends-on): Add extensions.
24725         * modules/mbrlen (Depends-on): Likewise.
24726         * modules/mbrtowc (Depends-on): Likewise.
24727         * modules/mbsinit (Depends-on): Likewise.
24728         * modules/mbsrtowcs (Depends-on): Likewise.
24729         * modules/mbswidth (Depends-on): Likewise.
24730         * modules/quotearg (Depends-on): Likewise.
24731         * modules/strftime (Depends-on): Likewise.
24732
24733 2008-12-20  Bruno Haible  <bruno@clisp.org>
24734
24735         Ensure wctob is declared on IRIX 6.5.
24736         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
24737         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
24738         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
24739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
24740         of HAVE_WCTOB.
24741         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
24742         HAVE_WCTOB.
24743         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
24744
24745 2008-12-19  Bruno Haible  <bruno@clisp.org>
24746
24747         * modules/mbsrtowcs-tests: New file.
24748         * tests/test-mbsrtowcs1.sh: New file.
24749         * tests/test-mbsrtowcs2.sh: New file.
24750         * tests/test-mbsrtowcs3.sh: New file.
24751         * tests/test-mbsrtowcs4.sh: New file.
24752         * tests/test-mbsrtowcs.c: New file.
24753
24754         New module 'mbsrtowcs'.
24755         * lib/wchar.in.h (mbsrtowcs): New declaration.
24756         * lib/mbsrtowcs.c: New file.
24757         * m4/mbsrtowcs.m4: New file.
24758         * modules/mbsrtowcs: New file.
24759         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
24760         HAVE_MBSRTOWCS.
24761         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
24762         HAVE_MBSRTOWCS.
24763         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
24764
24765 2008-12-19  Bruno Haible  <bruno@clisp.org>
24766
24767         New module 'mbrlen'.
24768         * lib/wchar.in.h (mbrlen): New declaration.
24769         * lib/mbrlen.c: New file.
24770         * m4/mbrlen.m4: New file.
24771         * modules/mbrlen: New file.
24772         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
24773         HAVE_MBRLEN.
24774         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
24775         HAVE_MBRLEN.
24776         * doc/posix-functions/mbrlen.texi: Document the new module.
24777
24778 2008-12-19  Bruno Haible  <bruno@clisp.org>
24779
24780         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
24781         * modules/mbrtowc (Depends-on): Add verify.
24782         Suggested by Paul Eggert.
24783
24784 2008-12-18  Bruno Haible  <bruno@clisp.org>
24785
24786         * modules/mbsinit-tests: New file.
24787         * tests/test-mbsinit.sh: New file.
24788         * tests/test-mbsinit.c: New file.
24789
24790 2008-12-18  Bruno Haible  <bruno@clisp.org>
24791
24792         * modules/mbrtowc-tests: New file.
24793         * tests/test-mbrtowc1.sh: New file.
24794         * tests/test-mbrtowc2.sh: New file.
24795         * tests/test-mbrtowc3.sh: New file.
24796         * tests/test-mbrtowc4.sh: New file.
24797         * tests/test-mbrtowc.c: New file.
24798
24799         New module 'mbrtowc'.
24800         * lib/wchar.in.h (mbstate_t): Override when the system does not have
24801         mbsinit and mbrtowc.
24802         (mbrtowc): New declaration.
24803         * lib/mbrtowc.c: New file.
24804         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
24805         * modules/mbrtowc: New file.
24806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
24807         HAVE_MBRTOWC.
24808         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
24809         HAVE_MBRTOWC.
24810         * doc/posix-functions/mbrtowc.texi: Document the new module.
24811
24812 2008-12-18  Bruno Haible  <bruno@clisp.org>
24813
24814         New module 'wctob'.
24815         * lib/wchar.in.h (wctob): New declaration.
24816         * lib/wctob.c: New file.
24817         * m4/wctob.m4: New file.
24818         * modules/wctob: New file.
24819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
24820         HAVE_WCTOB.
24821         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
24822         * doc/posix-functions/wctob.texi: Document the new module.
24823
24824 2008-12-18  Bruno Haible  <bruno@clisp.org>
24825
24826         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
24827         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
24828
24829 2008-12-18  Simon Josefsson  <simon@josefsson.org>
24830
24831         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
24832         G. Christensen" <tgc@jupiterrise.com>.
24833
24834         * lib/flock.c: Need to include errno.h.  Reported by "Tom
24835         G. Christensen" <tgc@jupiterrise.com>.
24836
24837         * lib/flock.c: Need to include string.h.  Reported by "Tom
24838         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
24839         <ebb9@byu.net>.
24840
24841 2008-12-18  Bruno Haible  <bruno@clisp.org>
24842
24843         * m4/locale-ja.m4: New file, from GNU gettext.
24844
24845 2008-12-17  Bruno Haible  <bruno@clisp.org>
24846
24847         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
24848         Suggested by Eric Blake.
24849
24850 2008-12-17  Bruno Haible  <bruno@clisp.org>
24851
24852         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
24853
24854 2008-12-17  Bruno Haible  <bruno@clisp.org>
24855
24856         * lib/mbsinit.c: Include verify.h. Verify an assumption.
24857         * modules/mbsinit (Depends-on): Add verify.
24858         Suggested by Paul Eggert.
24859
24860 2008-12-17  Bruno Haible  <bruno@clisp.org>
24861
24862         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
24863         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
24864         gl_FUNC_MBRTOWC.
24865         * m4/mbiter.m4 (gl_MBITER): LIkewise.
24866         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
24867         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
24868         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
24869         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
24870         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
24871         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
24872         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
24873         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
24874         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
24875         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
24876         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
24877         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
24878         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
24879         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
24880         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24881         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
24882         * modules/trim (configure.ac): Likewise.
24883
24884 2008-12-17  Bruno Haible  <bruno@clisp.org>
24885
24886         * modules/btowc-tests: New file.
24887         * tests/test-btowc1.sh: New file.
24888         * tests/test-btowc2.sh: New file.
24889         * tests/test-btowc.c: New file.
24890
24891         New module 'btowc'.
24892         * lib/wchar.in.h (btowc): New declaration.
24893         * lib/btowc.c: New file.
24894         * m4/btowc.m4: New file.
24895         * modules/btowc: New file.
24896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
24897         HAVE_BTOWC.
24898         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
24899         * doc/posix-functions/btowc.texi: Document the new module.
24900
24901 2008-12-17  Bruno Haible  <bruno@clisp.org>
24902
24903         New module 'mbsinit'.
24904         * lib/wchar.in.h (mbsinit): New declaration.
24905         * lib/mbsinit.c: New file.
24906         * m4/mbsinit.m4: New file.
24907         * modules/mbsinit: New file.
24908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
24909         HAVE_MBSINIT.
24910         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
24911         HAVE_MBSINIT.
24912         * doc/posix-functions/mbsinit.texi: Document the new module.
24913
24914 2008-12-16  Bruno Haible  <bruno@clisp.org>
24915
24916         * lib/unistd.in.h: Add comment.
24917         * tests/test-environ.c: Don't include <stdlib.h>.
24918
24919 2008-12-16  Bruno Haible  <bruno@clisp.org>
24920
24921         * lib/parse-duration.h (parse_duration): Document return value
24922         convention.
24923         * lib/parse-duration.c: Include specification header first. Add
24924         comments.
24925         (_): Remove macro.
24926         (parse_year_month_day, parse_hour_minute_second): Move side effects
24927         outside of strchr call.
24928         (parse_non_iso8601): Move side effects outside of isspace call.
24929         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
24930         call.
24931
24932 2008-12-16  Bruno Haible  <bruno@clisp.org>
24933
24934         * tests/test-parse-duration.sh: Produce no output when the test
24935         succeeds.
24936
24937 2008-12-16  Bruno Haible  <bruno@clisp.org>
24938
24939         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
24940         expressions.
24941
24942 2008-12-15  Bruno Haible  <bruno@clisp.org>
24943
24944         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
24945         * doc/glibc-functions/flistxattr.texi: Likewise.
24946         * doc/glibc-functions/fopencookie.texi: Likewise.
24947         * doc/glibc-functions/fremovexattr.texi: Likewise.
24948         * doc/glibc-functions/fsetxattr.texi: Likewise.
24949         * doc/glibc-functions/getxattr.texi: Likewise.
24950         * doc/glibc-functions/lgetxattr.texi: Likewise.
24951         * doc/glibc-functions/listxattr.texi: Likewise.
24952         * doc/glibc-functions/llistxattr.texi: Likewise.
24953         * doc/glibc-functions/lremovexattr.texi: Likewise.
24954         * doc/glibc-functions/lsetxattr.texi: Likewise.
24955         * doc/glibc-functions/removexattr.texi: Likewise.
24956         * doc/glibc-functions/setxattr.texi: Likewise.
24957         * doc/posix-functions/open_memstream.texi: Likewise.
24958
24959 2008-12-15  Eric Blake  <ebb9@byu.net>
24960
24961         Update doc for cygwin 1.7.
24962         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
24963         functions.
24964         * doc/posix-functions/fchmodat.texi: Likewise.
24965         * doc/posix-functions/fchownat.texi: Likewise.
24966         * doc/posix-functions/fdopendir.texi: Likewise.
24967         * doc/posix-functions/fmemopen.texi: Likewise.
24968         * doc/posix-functions/freeaddrinfo.texi: Likewise.
24969         * doc/posix-functions/fstatat.texi: Likewise.
24970         * doc/posix-functions/futimens.texi: Likewise.
24971         * doc/posix-functions/gai_strerror.texi: Likewise.
24972         * doc/posix-functions/getaddrinfo.texi: Likewise.
24973         * doc/posix-functions/getnameinfo.texi: Likewise.
24974         * doc/posix-functions/if_freenameindex.texi: Likewise.
24975         * doc/posix-functions/if_indextoname.texi: Likewise.
24976         * doc/posix-functions/if_nameindex.texi: Likewise.
24977         * doc/posix-functions/if_nametoindex.texi: Likewise.
24978         * doc/posix-functions/insque.texi: Likewise.
24979         * doc/posix-functions/linkat.texi: Likewise.
24980         * doc/posix-functions/llrint.texi: Likewise.
24981         * doc/posix-functions/llrintf.texi: Likewise.
24982         * doc/posix-functions/llrintl.texi: Likewise.
24983         * doc/posix-functions/lockf.texi: Likewise.
24984         * doc/posix-functions/lrintl.texi: Likewise.
24985         * doc/posix-functions/mkdirat.texi: Likewise.
24986         * doc/posix-functions/mkfifoat.texi: Likewise.
24987         * doc/posix-functions/mknodat.texi: Likewise.
24988         * doc/posix-functions/mq_close.texi: Likewise.
24989         * doc/posix-functions/mq_getattr.texi: Likewise.
24990         * doc/posix-functions/mq_notify.texi: Likewise.
24991         * doc/posix-functions/mq_open.texi: Likewise.
24992         * doc/posix-functions/mq_receive.texi: Likewise.
24993         * doc/posix-functions/mq_send.texi: Likewise.
24994         * doc/posix-functions/mq_setattr.texi: Likewise.
24995         * doc/posix-functions/mq_timedreceive.texi: Likewise.
24996         * doc/posix-functions/mq_timedsend.texi: Likewise.
24997         * doc/posix-functions/mq_unlink.texi: Likewise.
24998         * doc/posix-functions/open_memstream.texi: Likewise.
24999         * doc/posix-functions/openat.texi: Likewise.
25000         * doc/posix-functions/posix_fadvise.texi: Likewise.
25001         * doc/posix-functions/posix_fallocate.texi: Likewise.
25002         * doc/posix-functions/posix_madvise.texi: Likewise.
25003         * doc/posix-functions/posix_memalign.texi: Likewise.
25004         * doc/posix-functions/posix_openpt.texi: Likewise.
25005         * doc/posix-functions/readlinkat.texi: Likewise.
25006         * doc/posix-functions/remque.texi: Likewise.
25007         * doc/posix-functions/renameat.texi: Likewise.
25008         * doc/posix-functions/rintl.texi: Likewise.
25009         * doc/posix-functions/sem_unlink.texi: Likewise.
25010         * doc/posix-functions/shm_open.texi: Likewise.
25011         * doc/posix-functions/shm_unlink.texi: Likewise.
25012         * doc/posix-functions/signgam.texi: Likewise.
25013         * doc/posix-functions/sigset.texi: Likewise.
25014         * doc/posix-functions/stpcpy.texi: Likewise.
25015         * doc/posix-functions/stpncpy.texi: Likewise.
25016         * doc/posix-functions/strerror.texi: Likewise.
25017         * doc/posix-functions/strtod.texi: Likewise.
25018         * doc/posix-functions/symlinkat.texi: Likewise.
25019         * doc/posix-functions/unlinkat.texi: Likewise.
25020         * doc/posix-functions/utimensat.texi: Likewise.
25021         * doc/glibc-functions/bindresvport.texi: Likewise.
25022         * doc/glibc-functions/dn_expand.texi: Likewise.
25023         * doc/glibc-functions/exp10.texi: Likewise.
25024         * doc/glibc-functions/exp10f.texi: Likewise.
25025         * doc/glibc-functions/fgetxattr.texi: Likewise.
25026         * doc/glibc-functions/flistxattr.texi: Likewise.
25027         * doc/glibc-functions/fopencookie.texi: Likewise.
25028         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25029         * doc/glibc-functions/fremovexattr.texi: Likewise.
25030         * doc/glibc-functions/fsetxattr.texi: Likewise.
25031         * doc/glibc-functions/getifaddrs.texi: Likewise.
25032         * doc/glibc-functions/getxattr.texi: Likewise.
25033         * doc/glibc-functions/lgetxattr.texi: Likewise.
25034         * doc/glibc-functions/listxattr.texi: Likewise.
25035         * doc/glibc-functions/llistxattr.texi: Likewise.
25036         * doc/glibc-functions/lremovexattr.texi: Likewise.
25037         * doc/glibc-functions/lsetxattr.texi: Likewise.
25038         * doc/glibc-functions/pow10.texi: Likewise.
25039         * doc/glibc-functions/pow10f.texi: Likewise.
25040         * doc/glibc-functions/rcmd_af.texi: Likewise.
25041         * doc/glibc-functions/removexattr.texi: Likewise.
25042         * doc/glibc-functions/res_init.texi: Likewise.
25043         * doc/glibc-functions/res_mkquery.texi: Likewise.
25044         * doc/glibc-functions/res_query.texi: Likewise.
25045         * doc/glibc-functions/res_querydomain.texi: Likewise.
25046         * doc/glibc-functions/res_send.texi: Likewise.
25047         * doc/glibc-functions/rresvport_af.texi: Likewise.
25048         * doc/glibc-functions/setxattr.texi: Likewise.
25049         * doc/glibc-functions/strcasestr.texi: Likewise.
25050
25051 2008-12-15  Bruno Haible  <bruno@clisp.org>
25052
25053         Fix compilation error on OSF/1 4.0.
25054         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25055         <sys/time.h>, simply delegate to the system header.
25056         Reported by Daniel Richard G. <oss@teragram.com>.
25057
25058 2008-12-15  Bruno Haible  <bruno@clisp.org>
25059
25060         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25061         * doc/posix-functions/fchmodat.texi: Likewise.
25062         * doc/posix-functions/fchownat.texi: Likewise.
25063         * doc/posix-functions/fdopendir.texi: Likewise.
25064         * doc/posix-functions/fstatat.texi: Likewise.
25065         * doc/posix-functions/mkdirat.texi: Likewise.
25066         * doc/posix-functions/unlinkat.texi: Likewise.
25067
25068 2008-12-14  Bruno Haible  <bruno@clisp.org>
25069
25070         Update doc for POSIX:2008.
25071         * doc/posix-functions/faccessat.texi: New file.
25072         * doc/posix-functions/fchmodat.texi: New file.
25073         * doc/posix-functions/fchownat.texi: New file.
25074         * doc/posix-functions/fdopendir.texi: New file.
25075         * doc/posix-functions/fstatat.texi: New file.
25076         * doc/posix-functions/futimens.texi: New file.
25077         * doc/posix-functions/linkat.texi: New file.
25078         * doc/posix-functions/mkdirat.texi: New file.
25079         * doc/posix-functions/mkfifoat.texi: New file.
25080         * doc/posix-functions/mknodat.texi: New file.
25081         * doc/posix-functions/open_wmemstream.texi: New file.
25082         * doc/posix-functions/openat.texi: New file.
25083         * doc/posix-functions/psiginfo.texi: New file.
25084         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25085         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25086         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25087         * doc/posix-functions/readlinkat.texi: New file.
25088         * doc/posix-functions/renameat.texi: New file.
25089         * doc/posix-functions/strerror_l.texi: New file.
25090         * doc/posix-functions/symlinkat.texi: New file.
25091         * doc/posix-functions/unlinkat.texi: New file.
25092         * doc/posix-functions/utimensat.texi: New file.
25093         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25094
25095 2008-12-14  Bruno Haible  <bruno@clisp.org>
25096
25097         Update doc for POSIX:2008.
25098         * doc/posix-functions/alphasort.texi: Renamed from
25099         doc/glibc-functions/alphasort.texi.
25100         * doc/posix-functions/dirfd.texi: Renamed from
25101         doc/glibc-functions/dirfd.texi.
25102         * doc/posix-functions/dprintf.texi: Renamed from
25103         doc/glibc-functions/dprintf.texi.
25104         * doc/posix-functions/duplocale.texi: Renamed from
25105         doc/glibc-functions/duplocale.texi.
25106         * doc/posix-functions/fexecve.texi: Renamed from
25107         doc/glibc-functions/fexecve.texi.
25108         * doc/posix-functions/fmemopen.texi: Renamed from
25109         doc/glibc-functions/fmemopen.texi.
25110         * doc/posix-functions/freelocale.texi: Renamed from
25111         doc/glibc-functions/freelocale.texi.
25112         * doc/posix-functions/getdate_err.texi: Renamed from
25113         doc/glibc-functions/getdate_err.texi.
25114         * doc/posix-functions/isalnum_l.texi: Renamed from
25115         doc/glibc-functions/isalnum_l.texi.
25116         * doc/posix-functions/isalpha_l.texi: Renamed from
25117         doc/glibc-functions/isalpha_l.texi.
25118         * doc/posix-functions/isblank_l.texi: Renamed from
25119         doc/glibc-functions/isblank_l.texi.
25120         * doc/posix-functions/iscntrl_l.texi: Renamed from
25121         doc/glibc-functions/iscntrl_l.texi.
25122         * doc/posix-functions/isdigit_l.texi: Renamed from
25123         doc/glibc-functions/isdigit_l.texi.
25124         * doc/posix-functions/isgraph_l.texi: Renamed from
25125         doc/glibc-functions/isgraph_l.texi.
25126         * doc/posix-functions/islower_l.texi: Renamed from
25127         doc/glibc-functions/islower_l.texi.
25128         * doc/posix-functions/isprint_l.texi: Renamed from
25129         doc/glibc-functions/isprint_l.texi.
25130         * doc/posix-functions/ispunct_l.texi: Renamed from
25131         doc/glibc-functions/ispunct_l.texi.
25132         * doc/posix-functions/isspace_l.texi: Renamed from
25133         doc/glibc-functions/isspace_l.texi.
25134         * doc/posix-functions/isupper_l.texi: Renamed from
25135         doc/glibc-functions/isupper_l.texi.
25136         * doc/posix-functions/iswalnum_l.texi: Renamed from
25137         doc/glibc-functions/iswalnum_l.texi.
25138         * doc/posix-functions/iswalpha_l.texi: Renamed from
25139         doc/glibc-functions/iswalpha_l.texi.
25140         * doc/posix-functions/iswblank_l.texi: Renamed from
25141         doc/glibc-functions/iswblank_l.texi.
25142         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25143         doc/glibc-functions/iswcntrl_l.texi.
25144         * doc/posix-functions/iswctype_l.texi: Renamed from
25145         doc/glibc-functions/iswctype_l.texi.
25146         * doc/posix-functions/iswdigit_l.texi: Renamed from
25147         doc/glibc-functions/iswdigit_l.texi.
25148         * doc/posix-functions/iswgraph_l.texi: Renamed from
25149         doc/glibc-functions/iswgraph_l.texi.
25150         * doc/posix-functions/iswlower_l.texi: Renamed from
25151         doc/glibc-functions/iswlower_l.texi.
25152         * doc/posix-functions/iswprint_l.texi: Renamed from
25153         doc/glibc-functions/iswprint_l.texi.
25154         * doc/posix-functions/iswpunct_l.texi: Renamed from
25155         doc/glibc-functions/iswpunct_l.texi.
25156         * doc/posix-functions/iswspace_l.texi: Renamed from
25157         doc/glibc-functions/iswspace_l.texi.
25158         * doc/posix-functions/iswupper_l.texi: Renamed from
25159         doc/glibc-functions/iswupper_l.texi.
25160         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25161         doc/glibc-functions/iswxdigit_l.texi.
25162         * doc/posix-functions/isxdigit_l.texi: Renamed from
25163         doc/glibc-functions/isxdigit_l.texi.
25164         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25165         doc/glibc-functions/mbsnrtowcs.texi.
25166         * doc/posix-functions/mkdtemp.texi: Renamed from
25167         doc/glibc-functions/mkdtemp.texi.
25168         * doc/posix-functions/newlocale.texi: Renamed from
25169         doc/glibc-functions/newlocale.texi.
25170         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25171         doc/glibc-functions/nl_langinfo_l.texi.
25172         * doc/posix-functions/open_memstream.texi: Renamed from
25173         doc/glibc-functions/open_memstream.texi.
25174         * doc/posix-functions/opterr.texi: Renamed from
25175         doc/glibc-functions/opterr.texi.
25176         * doc/posix-functions/optind.texi: Renamed from
25177         doc/glibc-functions/optind.texi.
25178         * doc/posix-functions/optopt.texi: Renamed from
25179         doc/glibc-functions/optopt.texi.
25180         * doc/posix-functions/psignal.texi: Renamed from
25181         doc/glibc-functions/psignal.texi.
25182         * doc/posix-functions/scandir.texi: Renamed from
25183         doc/glibc-functions/scandir.texi.
25184         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25185         doc/glibc-functions/sched_get_priority_min.texi.
25186         * doc/posix-functions/signgam.texi: Renamed from
25187         doc/glibc-functions/signgam.texi.
25188         * doc/posix-functions/stpcpy.texi: Renamed from
25189         doc/glibc-functions/stpcpy.texi.
25190         * doc/posix-functions/stpncpy.texi: Renamed from
25191         doc/glibc-functions/stpncpy.texi.
25192         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25193         doc/glibc-functions/strcasecmp_l.texi.
25194         * doc/posix-functions/strcoll_l.texi: Renamed from
25195         doc/glibc-functions/strcoll_l.texi.
25196         * doc/posix-functions/strfmon_l.texi: Renamed from
25197         doc/glibc-functions/strfmon_l.texi.
25198         * doc/posix-functions/strftime_l.texi: Renamed from
25199         doc/glibc-functions/strftime_l.texi.
25200         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25201         doc/glibc-functions/strncasecmp_l.texi.
25202         * doc/posix-functions/strndup.texi: Renamed from
25203         doc/glibc-functions/strndup.texi.
25204         * doc/posix-functions/strnlen.texi: Renamed from
25205         doc/glibc-functions/strnlen.texi.
25206         * doc/posix-functions/strsignal.texi: Renamed from
25207         doc/glibc-functions/strsignal.texi.
25208         * doc/posix-functions/strxfrm_l.texi: Renamed from
25209         doc/glibc-functions/strxfrm_l.texi.
25210         * doc/posix-functions/timer_gettime.texi: Renamed from
25211         doc/glibc-functions/timer_gettime.texi.
25212         * doc/posix-functions/tolower_l.texi: Renamed from
25213         doc/glibc-functions/tolower_l.texi.
25214         * doc/posix-functions/toupper_l.texi: Renamed from
25215         doc/glibc-functions/toupper_l.texi.
25216         * doc/posix-functions/towctrans_l.texi: Renamed from
25217         doc/glibc-functions/towctrans_l.texi.
25218         * doc/posix-functions/towlower_l.texi: Renamed from
25219         doc/glibc-functions/towlower_l.texi.
25220         * doc/posix-functions/towupper_l.texi: Renamed from
25221         doc/glibc-functions/towupper_l.texi.
25222         * doc/posix-functions/uselocale.texi: Renamed from
25223         doc/glibc-functions/uselocale.texi.
25224         * doc/posix-functions/vdprintf.texi: Renamed from
25225         doc/glibc-functions/vdprintf.texi.
25226         * doc/posix-functions/wcpcpy.texi:
25227         Renamed from doc/glibc-functions/wcpcpy.texi.
25228         * doc/posix-functions/wcpncpy.texi: Renamed from
25229         doc/glibc-functions/wcpncpy.texi.
25230         * doc/posix-functions/wcscasecmp.texi: Renamed from
25231         doc/glibc-functions/wcscasecmp.texi.
25232         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25233         doc/glibc-functions/wcscasecmp_l.texi.
25234         * doc/posix-functions/wcscoll_l.texi: Renamed from
25235         doc/glibc-functions/wcscoll_l.texi.
25236         * doc/posix-functions/wcsdup.texi: Renamed from
25237         doc/glibc-functions/wcsdup.texi.
25238         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25239         doc/glibc-functions/wcsncasecmp.texi.
25240         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25241         doc/glibc-functions/wcsncasecmp_l.texi.
25242         * doc/posix-functions/wcsnlen.texi: Renamed from
25243         doc/glibc-functions/wcsnlen.texi.
25244         * doc/posix-functions/wcsnrtombs.texi: Renamed from
25245         doc/glibc-functions/wcsnrtombs.texi.
25246         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
25247         doc/glibc-functions/wcsxfrm_l.texi.
25248         * doc/posix-functions/wctrans_l.texi: Renamed from
25249         doc/glibc-functions/wctrans_l.texi.
25250         * doc/posix-functions/wctype_l.texi: Renamed from
25251         doc/glibc-functions/wctype_l.texi.
25252         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25253         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
25254         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
25255         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
25256         these subsections.
25257         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
25258         Remove sections.
25259
25260 2008-12-14  Bruno Haible  <bruno@clisp.org>
25261
25262         Update doc for POSIX:2008.
25263         * doc/posix-functions/*.texi: Update URL of POSIX specification.
25264
25265 2008-12-14  Bruno Haible  <bruno@clisp.org>
25266
25267         Update doc for POSIX:2008.
25268         * doc/pastposix-functions/bcmp.texi: Renamed from
25269         doc/posix-functions/bcmp.texi.
25270         * doc/pastposix-functions/bcopy.texi: Renamed from
25271         doc/posix-functions/bcopy.texi.
25272         * doc/pastposix-functions/bsd_signal.texi: Renamed from
25273         doc/posix-functions/bsd_signal.texi.
25274         * doc/pastposix-functions/bzero.texi: Renamed from
25275         doc/posix-functions/bzero.texi.
25276         * doc/pastposix-functions/ecvt.texi: Renamed from
25277         doc/posix-functions/ecvt.texi.
25278         * doc/pastposix-functions/fcvt.texi: Renamed from
25279         doc/posix-functions/fcvt.texi.
25280         * doc/pastposix-functions/ftime.texi: Renamed from
25281         doc/posix-functions/ftime.texi.
25282         * doc/pastposix-functions/gcvt.texi: Renamed from
25283         doc/posix-functions/gcvt.texi.
25284         * doc/pastposix-functions/getcontext.texi: Renamed from
25285         doc/posix-functions/getcontext.texi.
25286         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25287         doc/posix-functions/gethostbyaddr.texi.
25288         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25289         doc/posix-functions/gethostbyname.texi.
25290         * doc/pastposix-functions/getwd.texi: Renamed from
25291         doc/posix-functions/getwd.texi.
25292         * doc/pastposix-functions/h_errno.texi: Renamed from
25293         doc/posix-functions/h_errno.texi.
25294         * doc/pastposix-functions/index.texi: Renamed from
25295         doc/posix-functions/index.texi.
25296         * doc/pastposix-functions/makecontext.texi: Renamed from
25297         doc/posix-functions/makecontext.texi.
25298         * doc/pastposix-functions/mktemp.texi: Renamed from
25299         doc/posix-functions/mktemp.texi.
25300         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25301         doc/posix-functions/pthread_attr_getstackaddr.texi.
25302         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25303         doc/posix-functions/pthread_attr_setstackaddr.texi.
25304         * doc/pastposix-functions/rindex.texi: Renamed from
25305         doc/posix-functions/rindex.texi.
25306         * doc/pastposix-functions/scalb.texi: Renamed from
25307         doc/posix-functions/scalb.texi.
25308         * doc/pastposix-functions/setcontext.texi: Renamed from
25309         doc/posix-functions/setcontext.texi.
25310         * doc/pastposix-functions/swapcontext.texi: Renamed from
25311         doc/posix-functions/swapcontext.texi.
25312         * doc/pastposix-functions/ualarm.texi: Renamed from
25313         doc/posix-functions/ualarm.texi.
25314         * doc/pastposix-functions/usleep.texi: Renamed from
25315         doc/posix-functions/usleep.texi.
25316         * doc/pastposix-functions/vfork.texi: Renamed from
25317         doc/posix-functions/vfork.texi.
25318         * doc/pastposix-functions/wcswcs.texi: Renamed from
25319         doc/posix-functions/wcswcs.texi.
25320         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25321         (Function Substitutes): Update.
25322
25323 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25324
25325         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25326         m4/strerror.m4.
25327
25328 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25329             Bruno Haible  <bruno@clisp.org>
25330
25331         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25332
25333 2008-12-13  Bruno Haible  <bruno@clisp.org>
25334
25335         * modules/strtoull (Depends-on): Remove unistd.
25336
25337 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25338
25339         * modules/strtoull (Depends-on): Add stdlib.
25340
25341 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25342
25343         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25344
25345 2008-12-10  Jim Meyering  <meyering@redhat.com>
25346
25347         gl_ASSERT: don't say assertions are disabled when they're not
25348         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25349         "checking whether to enable assertions... no", when they are in
25350         fact enabled.  This is solely a bug in the output of configure.
25351         In spite of saying "no", NDEBUG was not defined in that case.
25352         Also, as noted by Eric Blake, leave assertions enabled upon
25353         --enable-assert=INVALID.
25354
25355 2008-12-10  Bruno Haible  <bruno@clisp.org>
25356
25357         Change MODULES.html to refer to POSIX:2008 where possible.
25358         * MODULES.html.sh (POSIX2008_URL): New variable.
25359         (posix_headers): Remove sys/timeb, ucontext.
25360         (posix2001_headers): New variable.
25361         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25362         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25363         index, makecontext, mktemp, pthread_attr_getstackaddr,
25364         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25365         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25366         (posix2001_functions): New variable.
25367         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25368         otherwise.
25369
25370 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25371
25372         add missing include to parse-duration.c
25373         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25374         * modules/parse-duration (Depends-on): Add xalloc.
25375
25376         fix sed script reading maint.mk
25377         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25378         (syntax-check-rules): Use it.
25379
25380 2008-12-09  Bruno Haible  <bruno@clisp.org>
25381
25382         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25383         MacOS X 10.4/PowerPC.
25384         Reported by Simon Josefsson.
25385
25386 2008-12-08  Jim Meyering  <meyering@redhat.com>
25387
25388         work around mingw's lack of some S_IF definitions
25389         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25390         Reported by Simon Josefsson.
25391
25392 2008-12-08  Bruno Haible  <bruno@clisp.org>
25393
25394         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25395         applied to variables. Needed on MacOS X 10.4/PowerPC.
25396         Reported by Simon Josefsson.
25397
25398 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25399         and Eric Blake  <ebb9@byu.net>
25400
25401         assert: honor --enable-assert
25402         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25403         order to honor --enable-assert, rather than treating it as a
25404         synonym for --disable-assert.
25405
25406 2008-12-08  Jim Meyering  <meyering@redhat.com>
25407
25408         * lib/posixtm.c: Remove now-useless declaration of mktime.
25409
25410         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25411
25412 2008-12-07  Bruno Haible  <bruno@clisp.org>
25413
25414         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
25415         test_once): Mark functions as static.
25416         * tests/test-tls.c (test_tls): Likewise.
25417
25418 2008-12-07  Bruno Haible  <bruno@clisp.org>
25419
25420         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
25421         iconv_register_autodetect.
25422
25423 2008-12-07  Jim Meyering  <meyering@redhat.com>
25424
25425         posixtm.c: avoid a warning
25426         * lib/posixtm.c (posixtime): Don't initialize tm0.
25427         It's no longer needed to placate gcc4's -Wuninitialized,
25428         and the attempt to placate would elicit a new warning.
25429
25430         unicodeio.c: mark unused parameters
25431         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25432         (fallback_failure_callback): Likewise.
25433
25434 2008-12-07  Bruno Haible  <bruno@clisp.org>
25435
25436         * gnulib-tool (func_create_testdir): When building the tests
25437         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
25438         Reported by Simon Josefsson.
25439
25440 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25441
25442         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
25443
25444 2008-12-06  Bruno Haible  <bruno@clisp.org>
25445
25446         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
25447         Suggested by Eric Blake.
25448
25449 2008-12-06  Bruno Haible  <bruno@clisp.org>
25450
25451         Fix a c-stack test failure on MacOS X.
25452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
25453         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
25454         handler for SIGBUS as well.
25455         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
25456         install a signal handler for SIGBUS as well.
25457         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
25458
25459 2008-12-06  Bruno Haible  <bruno@clisp.org>
25460
25461         Advocacy documentation.
25462         * doc/gnulib-intro.texi (Benefits): New section.
25463         * doc/gnulib.texi: Update.
25464
25465 2008-12-06  Bruno Haible  <bruno@clisp.org>
25466
25467         Document the 'manywarnings' module.
25468         * doc/manywarnings.texi: New file.
25469         * doc/gnulib.texi: Include it.
25470
25471 2008-12-05  Eric Blake  <ebb9@byu.net>
25472
25473         tests: silence some gcc warnings
25474         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
25475         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
25476         type mismatches.
25477
25478 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25479             Bruno Haible  <bruno@clisp.org>
25480
25481         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
25482
25483 2008-11-29  Jim Meyering  <meyering@redhat.com>
25484
25485         unicodeio.c: mark unused parameters
25486         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25487         (fallback_failure_callback): Likewise.
25488
25489         fts: fix a thinko
25490         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
25491         (set_stat_type): Return S_IF*-valued "type" directly.
25492         Prompted by James Youngman's spotting a related bug.
25493         Confirmed by further testing through find.
25494
25495         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
25496         * lib/fts.c (D_TYPE): Define.
25497         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
25498         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
25499         (s_ifmt_shift_bits): New function.
25500         (set_stat_type): New function.
25501         (fts_build): When not calling fts_stat, call set_stat_type
25502         to propagate dirent.d_type info to fts_read caller.
25503         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
25504         fts_statp->st_mode type information may be valid.
25505
25506 2008-11-28  Simon Josefsson  <simon@josefsson.org>
25507
25508         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
25509         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
25510         <sds@gnu.org>.
25511
25512 2008-11-20  Bruno Haible  <bruno@clisp.org>
25513
25514         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
25515         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
25516         INCLUDE_NEXT.
25517         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
25518         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
25519         * modules/math (Makefile.am): Substitute
25520         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
25521         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25522
25523 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25524             Bruno Haible  <bruno@clisp.org>
25525
25526         * lib/stdint.in.h: Define all type macros so that their expansion is
25527         a single typedef'ed token. Fixes a compilation failure in Boost which
25528         does "using ::int8_t;".
25529
25530 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25531
25532         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
25533         gl_MANYWARN_ALL_GCC.
25534         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
25535         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
25536         * modules/manywarnings: New file.
25537         * MODULES.html.sh: Mention manywarnings module.
25538
25539 2008-11-18  Bruno Haible  <bruno@clisp.org>
25540
25541         * doc/gnulib-tool.texi (Unit tests): New section.
25542
25543 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25544
25545         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
25546         paths like 'lib/po/foo.po'.
25547
25548 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25549
25550         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
25551         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
25552
25553 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25554
25555         * m4/warnings.m4: Use CPPFLAGS to really check whether the
25556         parameter works.
25557
25558 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25559
25560         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
25561
25562 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25563
25564         * modules/parse-duration-tests: New file.
25565         * tests/test-parse-duration.sh: New file.
25566         * tests/test-parse-duration.c: New file.
25567
25568         New module 'parse-duration'.
25569         * lib/parse-duration.h: New file.
25570         * lib/parse-duration.c: New file.
25571         * modules/parse-duration: New file.
25572
25573 2008-11-17  Bruno Haible  <bruno@clisp.org>
25574
25575         * tests/test-select-out.sh: Comment out the first pipe test.
25576         Reported by Simon Josefsson.
25577
25578 2008-11-17  Bruno Haible  <bruno@clisp.org>
25579
25580         * modules/getaddrinfo (Depends-on): Add servent, hostent.
25581         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
25582         gl_HOSTENT.
25583
25584 2008-11-17  Bruno Haible  <bruno@clisp.org>
25585
25586         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
25587         -lnetwork and -lnet. Needed for Haiku and BeOS.
25588
25589 2008-11-16  Bruno Haible  <bruno@clisp.org>
25590
25591         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
25592
25593 2008-11-16  Bruno Haible  <bruno@clisp.org>
25594
25595         Avoid test failure on Haiku.
25596         * tests/test-fsync.c: Include <errno.h>.
25597         (main): Don't require that fsync (0) fails.
25598
25599 2008-11-15  Bruno Haible  <bruno@clisp.org>
25600
25601         New module 'hostent'.
25602         * modules/hostent: New file.
25603         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
25604
25605 2008-11-15  Bruno Haible  <bruno@clisp.org>
25606
25607         New module 'servent'.
25608         * modules/servent: New file.
25609         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
25610
25611 2008-11-15  Bruno Haible  <bruno@clisp.org>
25612
25613         Avoid generating same test program with two different rules.
25614         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
25615         test-frexp to test-frexp-nolibm.
25616         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
25617         test-frexpl to test-frexpl-nolibm.
25618
25619 2008-11-15  Bruno Haible  <bruno@clisp.org>
25620
25621         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
25622         $(FREXPL_LIBM).
25623
25624 2008-11-15  Bruno Haible  <bruno@clisp.org>
25625
25626         * lib/netdb.in.h: Activate the definitions also when the system's
25627         <netdb.h> has 'struct addrinfo'.
25628         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
25629         EAI_OVERFLOW or AI_NUMERICSERV.
25630         * doc/posix-headers/netdb.texi: Document the problem.
25631
25632 2008-11-15  Bruno Haible  <bruno@clisp.org>
25633
25634         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
25635
25636         Make the 'sched' module work on platforms where <sched.h> exists but
25637         is incomplete (such as Haiku).
25638         * lib/sched.in.h; Include the system's <sched.h> if it exists.
25639         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
25640         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
25641         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
25642         HAVE_STRUCT_SCHED_PARAM.
25643         * modules/sched (Depends-on): Add include_next.
25644         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
25645         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
25646         * doc/posix-headers/sched.texi: Document the issue.
25647
25648 2008-11-13  Jim Meyering  <meyering@redhat.com>
25649
25650         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
25651         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
25652         test would fail due to the difference in the Report bugs to ...
25653         line.  The expected address is empty, "<>", while the actual
25654         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
25655
25656 2008-11-12  Bruno Haible  <bruno@clisp.org>
25657
25658         lstat: don't compile lstat.c on systems lacking lstat
25659         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
25660         which don't have lstat; this is handled by lib/sys_stat.in.h already.
25661         Reported by Daniel P. Berrange via Jim Meyering.
25662
25663 2008-11-12  Jim Meyering  <meyering@redhat.com>
25664
25665         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
25666
25667 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25668
25669         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
25670         instead.
25671
25672 2008-11-12  Bruno Haible  <bruno@clisp.org>
25673
25674         * lib/unicodeio.c: Include unistr.h.
25675         (utf8_wctomb): Remove function.
25676         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
25677
25678 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25679
25680         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
25681         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
25682         <bruno@clisp.org>.
25683         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
25684
25685 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25686
25687         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
25688         * doc/gnulib.texi: Add section for warnings.
25689
25690 2008-11-11  Bruno Haible  <bruno@clisp.org>
25691
25692         * lib/sockets.h: Add a comment.
25693
25694 2008-11-11  Karl Berry  <karl@gnu.org>
25695
25696         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
25697
25698 2008-11-11  Eric Blake  <ebb9@byu.net>
25699
25700         fdl.texi: avoid git symlinks
25701         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
25702
25703 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25704
25705         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
25706
25707 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25708
25709         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
25710         (gl_WARN_ADD): Substitute $2 if literal.
25711
25712 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25713
25714         * m4/warning.m4: Remove.
25715
25716 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25717
25718         * m4/warnings.m4: Almost complete rewrite. :-)
25719
25720 2008-11-10  Simon Josefsson  <simon@josefsson.org>
25721
25722         * modules/warnings: New module.
25723         * m4/warnings.m4: New file.
25724         * MODULES.html.sh: Mention warnings module.
25725         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
25726         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25727
25728 2008-11-10  Eric Blake  <ebb9@byu.net>
25729
25730         fdl.texi: make a symlink to the latest version
25731         * doc/standards.texi: Revert today's earlier change.
25732         * doc/fdl-1.2.texi: Rename from old fdl.texi...
25733         * doc/fdl.texi: ...and replace this with a symlink to the newer
25734         fdl-1.3.texi.
25735
25736 2008-11-10  Bruno Haible  <bruno@clisp.org>
25737
25738         * tests/test-select-fd.c (main): Accept the result file name as fourth
25739         argument.
25740         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
25741         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
25742
25743 2008-11-10  Bruno Haible  <bruno@clisp.org>
25744
25745         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
25746         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
25747         as autoconf-substituted macros.
25748         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
25749         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
25750         gl_NETDB_H_DEFAULTS. Set these variables.
25751         * modules/netdb (Makefile.am): Substitute these variables.
25752
25753 2008-11-10  Eric Blake  <ebb9@byu.net>
25754
25755         standards.texi: include correct file for FDL 1.3
25756         * doc/standards.texi (GNU Free Documentation License): Change
25757         include file to pull in FDL 1.3, not 1.2.
25758
25759         fdl.texi: revert accidental change to license
25760         * doc/fdl.texi: This is FDL 1.2, not 1.3.
25761
25762 2008-11-10  Bruno Haible  <bruno@clisp.org>
25763
25764         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
25765         cross-compiling guesses also when the native compile gives no result.
25766
25767 2008-11-10  Bruno Haible  <bruno@clisp.org>
25768
25769         * lib/spawni.c (__spawni): Force variable into the stack.
25770
25771 2008-11-10  Bruno Haible  <bruno@clisp.org>
25772
25773         Add support for Haiku.
25774         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
25775         glibc and BeOS, but also on Haiku.
25776         * lib/fpurge.c (fpurge): Likewise.
25777         * lib/freadable.c (freadable): Likewise.
25778         * lib/freadahead.c (freadahead): Likewise.
25779         * lib/freading.c (freading): Likewise.
25780         * lib/freadptr.c (freadptr): Likewise.
25781         * lib/freadseek.c (freadptrinc): Likewise.
25782         * lib/fseeko.c (rpl_fseeko): Likewise.
25783         * lib/fseterr.c (fseterr): Likewise.
25784         * lib/fwritable.c (fwritable): Likewise.
25785         * lib/fwriting.c (fwriting): Likewise.
25786         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
25787
25788 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25789
25790         * lib/config.charset: Treat Haiku like BeOS.
25791
25792 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25793
25794         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
25795         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
25796
25797 2008-11-08  Bruno Haible  <bruno@clisp.org>
25798
25799         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
25800         AC_CACHE_CHECK.
25801
25802 2008-11-08  Bruno Haible  <bruno@clisp.org>
25803
25804         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
25805
25806 2008-11-08  Bruno Haible  <bruno@clisp.org>
25807
25808         * tests/test-select-fd.c: New file.
25809         * tests/test-select-in.sh: New file.
25810         * tests/test-select-out.sh: New file.
25811         * tests/test-select-stdin.c: New file.
25812         * modules/select-tests (Files): Add the new files.
25813         (Depends-on): Add gettimeofday.
25814         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
25815         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
25816         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
25817
25818 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
25819             Bruno Haible  <bruno@clisp.org>
25820
25821         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
25822
25823 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
25824
25825         * build-aux/pmccabe2html: Added support for C++ source files.
25826
25827 2008-11-05  Ben Pfaff  <blp@gnu.org>
25828
25829         Fix lib/close.c build on Windows.
25830         * modules/close (Files): Add lib/w32sock.h.
25831
25832 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
25833
25834         Accept Bison's NEWS format.
25835         * build-aux/announce-gen (print_news_deltas): Tweak
25836         $re_prefix.
25837
25838 2008-11-04  Bruno Haible  <bruno@clisp.org>
25839
25840         * modules/random_r (Maintainer): Add glibc.
25841
25842 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25843
25844         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
25845         by karl@freefriends.org (Karl Berry).
25846         * doc/alloca.texi: Likewise.
25847         * doc/c-ctype.texi: Likewise.
25848         * doc/c-strcase.texi: Likewise.
25849         * doc/c-strcaseeq.texi: Likewise.
25850         * doc/c-strcasestr.texi: Likewise.
25851         * doc/c-strstr.texi: Likewise.
25852         * doc/c-strtod.texi: Likewise.
25853         * doc/c-strtold.texi: Likewise.
25854         * doc/ctime.texi: Likewise.
25855         * doc/error.texi: Likewise.
25856         * doc/fdl.texi: Likewise.
25857         * doc/gcd.texi: Likewise.
25858         * doc/getdate.texi: Likewise.
25859         * doc/gnulib-intro.texi: Likewise.
25860         * doc/gnulib-tool.texi: Likewise.
25861         * doc/gnulib.texi: Likewise.
25862         * doc/inet_ntoa.texi: Likewise.
25863         * doc/maintain.texi: Likewise.
25864         * doc/make-stds.texi: Likewise.
25865         * doc/quote.texi: Likewise.
25866         * doc/regexprops-generic.texi: Likewise.
25867         * doc/standards.texi: Likewise.
25868         * doc/verify.texi: Likewise.
25869         * doc/visibility.texi: Likewise.
25870         * doc/gnulib.texi (GNU Free Documentation License): Include
25871         fdl-1.3.texi instead of fdl.texi.
25872
25873 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25874
25875         * doc/fdl-1.3.texi: New file, from
25876         <http://www.gnu.org/licenses/fdl-1.3.texi>.
25877         * modules/fdl-1.3: Add.
25878         * MODULES.html.sh: Add fdl-1.3.
25879
25880 2008-11-03  Bruno Haible  <bruno@clisp.org>
25881
25882         Make determination of absolute name of header file work with AIX xlc.
25883         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
25884         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
25885         preprocessing.
25886         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25887         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
25888
25889 2008-11-03  Simon Josefsson  <simon@josefsson.org>
25890
25891         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
25892         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
25893         <ludo@gnu.org>.
25894
25895 2008-11-02  Bruno Haible  <bruno@clisp.org>
25896
25897         Mark 'strpbrk' obsolete.
25898         * modules/strpbrk (Status, Notice): New sections.
25899         * modules/strtok_r (Depends-on): Add strpbrk.
25900
25901 2008-11-02  Bruno Haible  <bruno@clisp.org>
25902
25903         Mark 'strdup' obsolete.
25904         * modules/strdup (Status, Notice): New sections.
25905         * modules/findprog (Depends-on): Add strdup.
25906         * modules/getaddrinfo (Depends-on): Likewise.
25907         * modules/localename (Depends-on): Likewise.
25908         * modules/relocatable-lib (Depends-on): Likewise.
25909         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
25910         * modules/relocatable-prog (Depends-on): Likewise.
25911         * modules/trim (Depends-on): Likewise.
25912         * modules/unictype/gen-ctype (Depends-on): Likewise.
25913         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
25914
25915 2008-11-02  Bruno Haible  <bruno@clisp.org>
25916
25917         Mark 'strcspn' obsolete.
25918         * modules/strcspn (Status, Notice): New sections.
25919
25920 2008-11-02  Bruno Haible  <bruno@clisp.org>
25921
25922         Mark 'rmdir' obsolete.
25923         * modules/rmdir (Status, Notice): New sections.
25924         * modules/clean-temp (Depends-on): Add rmdir.
25925         * modules/openat (Depends-on): Likewise.
25926
25927 2008-11-02  Bruno Haible  <bruno@clisp.org>
25928
25929         Mark 'raise' obsolete.
25930         * modules/raise (Status, Notice): New sections.
25931         (Include): Specify <signal.h>.
25932         * modules/stdio (Depends-on): Add raise.
25933         * modules/write (Depends-on): Likewise.
25934
25935 2008-11-02  Bruno Haible  <bruno@clisp.org>
25936
25937         Mark 'memset' obsolete.
25938         * modules/memset (Status, Notice): New sections.
25939
25940 2008-11-02  Bruno Haible  <bruno@clisp.org>
25941
25942         Mark 'memmove' obsolete.
25943         * modules/memmove (Status, Notice): New sections.
25944         * modules/argp (Depends-on): Add memmove.
25945         * modules/argz (Depends-on): Likewise.
25946         * modules/canonicalize (Depends-on): Likewise.
25947         * modules/canonicalize-lgpl (Depends-on): Likewise.
25948         * modules/fts (Depends-on): Likewise.
25949         * modules/getcwd (Depends-on): Likewise.
25950         * modules/human (Depends-on): Likewise.
25951         * modules/regex (Depends-on): Likewise.
25952         * modules/striconveh (Depends-on): Likewise.
25953         * modules/trim (Depends-on): Likewise.
25954         * modules/unistr/u8-move (Depends-on): Likewise.
25955         * modules/unistr/u16-move (Depends-on): Likewise.
25956         * modules/unistr/u32-move (Depends-on): Likewise.
25957
25958 2008-11-02  Bruno Haible  <bruno@clisp.org>
25959
25960         Mark 'memcpy' obsolete.
25961         * modules/memcpy (Status, Notice): New sections.
25962
25963 2008-11-02  Bruno Haible  <bruno@clisp.org>
25964
25965         Mark 'memcmp' obsolete.
25966         * modules/memcmp (Status, Notice): New sections.
25967         * modules/argmatch (Depends-on): Add memchr.
25968         * modules/backupfile (Depends-on): Likewise.
25969         * modules/c-strcasestr (Depends-on): Likewise.
25970         * modules/crypto/des (Depends-on): Likewise.
25971         * modules/csharpcomp (Depends-on): Likewise.
25972         * modules/fnmatch (Depends-on): Likewise.
25973         * modules/git-merge-changelog (Depends-on): Likewise.
25974         * modules/isnand (Depends-on): Likewise.
25975         * modules/isnand-nolibm (Depends-on): Likewise.
25976         * modules/isnanf (Depends-on): Likewise.
25977         * modules/isnanf-nolibm (Depends-on): Likewise.
25978         * modules/isnanl (Depends-on): Likewise.
25979         * modules/isnanl-nolibm (Depends-on): Likewise.
25980         * modules/mbchar (Depends-on): Likewise.
25981         * modules/memcoll (Depends-on): Likewise.
25982         * modules/quotearg (Depends-on): Likewise.
25983         * modules/regex (Depends-on): Likewise.
25984         * modules/relocatable-prog (Depends-on): Likewise.
25985         * modules/same (Depends-on): Likewise.
25986         * modules/signbit (Depends-on): Likewise.
25987         * modules/strcasestr-simple (Depends-on): Likewise.
25988         * modules/unictype/gen-ctype (Depends-on): Likewise.
25989         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
25990         * modules/uniname/uniname (Depends-on): Likewise.
25991         * modules/unistr/u8-cmp (Depends-on): Likewise.
25992
25993 2008-11-02  Bruno Haible  <bruno@clisp.org>
25994
25995         Mark 'memchr' obsolete.
25996         * modules/memchr (Status, Notice): New sections.
25997         * modules/argp (Depends-on): Add memchr.
25998         * modules/base64 (Depends-on): Likewise.
25999         * modules/c-strcasestr (Depends-on): Likewise.
26000         * modules/chdir-long (Depends-on): Likewise.
26001         * modules/fnmatch (Depends-on): Likewise.
26002         * modules/getsubopt (Depends-on): Likewise.
26003         * modules/git-merge-changelog (Depends-on): Likewise.
26004         * modules/glob (Depends-on): Likewise.
26005         * modules/strcasestr-simple (Depends-on): Likewise.
26006         * modules/strnlen (Depends-on): Likewise.
26007
26008 2008-11-02  Bruno Haible  <bruno@clisp.org>
26009
26010         Mark 'atexit' obsolete.
26011         * modules/atexit (Status, Notice): New sections.
26012         * modules/chdir-long (Depends-on): Add atexit.
26013         * modules/wait-process (Depends-on): Likewise.
26014
26015 2008-11-02  Bruno Haible  <bruno@clisp.org>
26016
26017         * gnulib-tool: New option --with-obsolete.
26018         (func_usage): Document it.
26019         (func_modules_transitive_closure): Drop obsolete dependencies if
26020         incobsolete is not true.
26021         (func_import): Read and save the incobsolete variable to the cache.
26022
26023 2008-11-02  Bruno Haible  <bruno@clisp.org>
26024
26025         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26026         * gnulib-tool: New option --extract-status.
26027         (func_usage): Document it.
26028         (sed_extract_prog): Recognize it.
26029         (func_get_status): New function.
26030
26031 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26032
26033         * modules/sockets (License): Change from LGPL to LGPLv2+.
26034
26035 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26036
26037         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26038
26039 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26040
26041         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26042         Mention times and sys_times.
26043         * modules/sys_times, modules/sys_times-tests: New modules.
26044         * modules/times, modules/times-tests: Likewise
26045         * m4/sys_times_h.m4: New file.
26046         * lib/sys_times.in.h: Likewise
26047         * lib/times.c: Likewise.
26048         * tests/test-sys_times.c: Likewise.
26049         * tests/test-times.c: Likewise.
26050         * doc/posix-headers/sys_times.texi: Update.
26051         * doc/posix-functions/times.texi: Update.
26052
26053 2008-10-28  Jim Meyering  <meyering@redhat.com>
26054
26055         * modules/tempname (Depends-on): Add lstat.
26056
26057         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26058
26059 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26060
26061         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26062         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26063         using idiom used elsewhere in gnulib.
26064
26065 2008-10-27  Jim Meyering  <meyering@redhat.com>
26066
26067         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26068
26069 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26070
26071         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26072         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26073         programs.
26074         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26075
26076 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26077
26078         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26079
26080 2008-10-27  Bruno Haible  <bruno@clisp.org>
26081
26082         * tests/test-lstat.c: Include <stdio.h>.
26083
26084 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26085
26086         * modules/lstat-tests: New module.
26087         * tests/test-lstat.c: New file.
26088
26089 2008-10-26  Jim Meyering  <meyering@redhat.com>
26090
26091         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26092
26093 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26094             Bruno Haible  <bruno@clisp.org>
26095
26096         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26097         * modules/configmake (Include): Add a note that the include must come
26098         after all system headers.
26099         * lib/javaversion.c: Include configmake.h after all other includes.
26100
26101 2008-10-26  Bruno Haible  <bruno@clisp.org>
26102
26103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26104         HAVE_STRUCT_RANDOM_DATA to 1.
26105         (gl_STDLIB_H): Simplify.
26106
26107 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26108
26109         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26110         substitute HAVE_STRUCT_RANDOM_DATA.
26111         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26112         random_data.
26113         * modules/stdlib (Makefile.am): Substitute
26114         HAVE_STRUCT_RANDOM_DATA.
26115
26116 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26117
26118         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26119         * doc/gnulib-intro.texi (Copyright): Likewise.
26120
26121 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26122
26123         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26124         findings.
26125
26126 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26127             Bruno Haible  <bruno@clisp.org>
26128
26129         * lib/unistd.in.h: Include <winsock2.h>.
26130         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26131         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26132         Provide dummy declarations.
26133         (gethostname): Override.
26134         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26135         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26136         gl_PREREQ_SYS_H_WINSOCK2.
26137         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26138         * doc/posix-functions/gethostname.texi: More details.
26139
26140 2008-10-25  Bruno Haible  <bruno@clisp.org>
26141
26142         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26143         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26144         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26145
26146         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26147         here ...
26148         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26149         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26150         gl_UNISTD_H_DEFAULTS.
26151
26152 2008-10-25  Eric Blake  <ebb9@byu.net>
26153
26154         signbit: avoid spurious compiler failure
26155         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26156         declarations inside function.
26157
26158 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26159             Bruno Haible  <bruno@clisp.org>
26160
26161         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26162         * modules/random_r (Depends-on): Add stdint.
26163
26164 2008-10-24  Bruno Haible  <bruno@clisp.org>
26165
26166         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26167         Eggert.
26168         * modules/strerror (License): Likewise.
26169
26170 2008-10-24  Jim Meyering  <meyering@redhat.com>
26171
26172         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26173         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26174
26175 2008-10-24  Eric Blake  <ebb9@byu.net>
26176
26177         getgroups: fix compilation when getgroups is available
26178         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26179         but with <config.h> override of getgroups disabled.
26180
26181 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26182
26183         * doc/gnulib.texi (Header files): Add note about C++ problems.
26184         Explained by Bruno Haible <bruno@clisp.org>.
26185
26186 2008-10-23  Bruno Haible  <bruno@clisp.org>
26187
26188         Define a dummy SA_NODEFER macro on Interix.
26189         * lib/signal.in.h (SA_NODEFER): Define fallback.
26190         Reported by Aleksey Cheusov <cheusov@tut.by> via
26191         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26192
26193 2008-10-23  Bruno Haible  <bruno@clisp.org>
26194
26195         * modules/freadahead (License): Change to LGPLv2+.
26196         Suggested by Simon Josefsson.
26197
26198 2008-10-23  Jim Meyering  <meyering@redhat.com>
26199
26200         random_r: new module
26201         * modules/random_r: New file.
26202         * m4/random_r.m4: New file.
26203         * lib/random_r.c: New file, from glibc.
26204         * modules/random_r-tests: New file.
26205         * tests/test-random_r.c: New file.
26206         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26207          Declare.
26208         (RAND_MAX): Define.
26209         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26210         * modules/stdlib: Substitute them, too.
26211         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26212         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26213         * doc/glibc-functions/random_r.texi: Likewise.
26214         * doc/glibc-functions/setstate_r.texi: Likewise.
26215         * doc/glibc-functions/srandom_r.texi: Likewise.
26216         * config/srclist.txt: Mention it.
26217
26218 2008-10-23  David Lutterkort  <lutter@redhat.com>
26219
26220         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26221         link requirement
26222
26223 2008-10-23  Jim Meyering  <meyering@redhat.com>
26224
26225         selinux-h: mark parameters of stub functions as intentionally unused
26226         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26227         * lib/se-context.in.h: Likewise.
26228
26229 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26230
26231         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26232
26233 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26234
26235         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26236
26237 2008-10-22  Eric Blake  <ebb9@byu.net>
26238
26239         glthread/thread: avoid compiler warning
26240         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26241         Add unreachable abort to silence compiler.
26242
26243 2008-10-22  Eric Blake  <ebb9@byu.net>
26244
26245         netdb: also supply struct addrinfo for cygwin 1.5.x
26246         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
26247         older cygwin.
26248         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
26249         cygwin.
26250         * doc/posix-headers/netdb.texi (netdb.h): Document this.
26251
26252 2008-10-22  Bruno Haible  <bruno@clisp.org>
26253
26254         * users.txt: Update entry about pspp.
26255
26256 2008-10-21  Bruno Haible  <bruno@clisp.org>
26257
26258         Simplification.
26259         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
26260         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
26261
26262         Simplification.
26263         * lib/ioctl.c (ioctl): Don't undefine.
26264         * lib/socket.c (socket): Don't undefine.
26265
26266         Remove unused module indicator macros.
26267         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
26268         GNULIB_$1 as a C macro.
26269
26270         * doc/posix-functions/close.texi: Undo last change.
26271         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
26272         Windows platforms.
26273
26274 2008-10-21  Bruno Haible  <bruno@clisp.org>
26275
26276         Add gethostname() declaration to <unistd.h>.
26277         * lib/unistd.in.h (gethostname): New declaration.
26278         * lib/gethostname.c: Include <unistd.h>.
26279         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
26280         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
26281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
26282         and HAVE_GETHOSTNAME.
26283         * modules/gethostname (Depends-on): Add unistd.
26284         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26285         (Include): Specify <unistd.h>.
26286         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26287         HAVE_GETHOSTNAME.
26288         * tests/test-gethostname.c: Include <unistd.h> first.
26289
26290 2008-10-21  Bruno Haible  <bruno@clisp.org>
26291
26292         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26293         * modules/select-tests (Depends-on): Likewise.
26294         Reported by Simon Josefsson.
26295
26296 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26297
26298         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26299         * lib/accept.c: New file, based on winsock.c.
26300         * lib/bind.c: New file, based on winsock.c.
26301         * lib/connect.c: New file, based on winsock.c.
26302         * lib/getpeername.c: New file, based on winsock.c.
26303         * lib/getsockname.c: New file, based on winsock.c.
26304         * lib/getsockopt.c: New file, based on winsock.c.
26305         * lib/ioctl.c: New file, based on winsock.c.
26306         * lib/listen.c: New file, based on winsock.c.
26307         * lib/recv.c: New file, based on winsock.c.
26308         * lib/recvfrom.c: New file, based on winsock.c.
26309         * lib/send.c: New file, based on winsock.c.
26310         * lib/sendto.c: New file, based on winsock.c.
26311         * lib/setsockopt.c: New file, based on winsock.c.
26312         * lib/shutdown.c: New file, based on winsock.c.
26313         * lib/socket.c: New file, based on winsock.c.
26314         * lib/w32sock.h: New file, based on winsock.c.
26315         * lib/winsock.c: Remove file.
26316         * modules/accept: Likewise.
26317         * modules/bind: Likewise.
26318         * modules/connect: Likewise.
26319         * modules/getpeername: Likewise.
26320         * modules/getsockname: Likewise.
26321         * modules/getsockopt: Likewise.
26322         * modules/ioctl: Likewise.
26323         * modules/listen: Likewise.
26324         * modules/recv: Likewise.
26325         * modules/recvfrom: Likewise.
26326         * modules/send: Likewise.
26327         * modules/sendto: Likewise.
26328         * modules/setsockopt: Likewise.
26329         * modules/shutdown: Likewise.
26330         * modules/socket: Use socket.c instead of winsock.c.
26331         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26332         * doc/posix-functions/accept.texi: Doc fix.
26333         * doc/posix-functions/bind.texi: Doc fix.
26334         * doc/posix-functions/close.texi: Doc fix.
26335         * doc/posix-functions/connect.texi: Doc fix.
26336         * doc/posix-functions/getpeername.texi: Doc fix.
26337         * doc/posix-functions/getsockname.texi: Doc fix.
26338         * doc/posix-functions/getsockopt.texi: Doc fix.
26339         * doc/posix-functions/ioctl.texi: Doc fix.
26340         * doc/posix-functions/listen.texi: Doc fix.
26341         * doc/posix-functions/recv.texi: Doc fix.
26342         * doc/posix-functions/recvfrom.texi: Doc fix.
26343         * doc/posix-functions/send.texi: Doc fix.
26344         * doc/posix-functions/sendto.texi: Doc fix.
26345         * doc/posix-functions/setsockopt.texi: Doc fix.
26346         * doc/posix-functions/shutdown.texi: Doc fix.
26347         * doc/posix-functions/socket.texi: Doc fix.
26348
26349 2008-10-20  Bruno Haible  <bruno@clisp.org>
26350
26351         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26352         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26353         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26354         as an alias for SIGABRT.
26355         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26356         (sigaction): Map it to SIGABRT.
26357         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26358
26359 2008-10-20  Bruno Haible  <bruno@clisp.org>
26360
26361         * lib/fts.c: Don't include lstat.h.
26362         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26363
26364         Move the lstat() declaration to <sys/stat.h>.
26365         * lib/lstat.h: Remove file.
26366         * lib/sys_stat.in.h: Add special invocation convention.
26367         (lstat): New declaration.
26368         * lib/lstat.c (orig_lstat): New function.
26369         (rpl_lstat): Use orig_lstat instead of lstat.
26370         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26371         AC_C_INLINE. Set REPLACE_LSTAT.
26372         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26373         and REPLACE_LSTAT.
26374         * modules/lstat (Files): Remove lib/lstat.h.
26375         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26376         (Include): Specify <sys/stat.h> instead of lstat.h.
26377         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26378         REPLACE_LSTAT.
26379         * NEWS: Mention the change.
26380
26381 2008-10-20  Bruno Haible  <bruno@clisp.org>
26382
26383         * modules/posix_spawn-tests: New file.
26384         * tests/test-posix_spawn3.c: New file.
26385
26386 2008-10-20  Bruno Haible  <bruno@clisp.org>
26387
26388         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26389         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26390         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26391         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26392         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26393
26394 2008-10-20  Bruno Haible  <bruno@clisp.org>
26395
26396         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26397         of posix_spawn on AIX 5.3.
26398
26399 2008-10-20  Bruno Haible  <bruno@clisp.org>
26400
26401         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26402
26403 2008-10-20  Bruno Haible  <bruno@clisp.org>
26404
26405         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26406         of AC_LANG_PROGRAM.
26407
26408 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26409
26410         * lib/netdb.in.h: Don't define GNU specific constants until they
26411         are supported or needed.  Reported by Bruno Haible
26412         <bruno@clisp.org>.
26413
26414 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26415
26416         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
26417
26418 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26419
26420         * lib/getaddrinfo.h: Remove file.
26421         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
26422         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
26423         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
26424         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
26425         * modules/netdb: Substitute GNULIB_GETADDRINFO.
26426         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
26427         * tests/test-getaddrinfo.c: Likewise.
26428         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
26429         * NEWS: Mention change.
26430
26431 2008-10-19  Bruno Haible  <bruno@clisp.org>
26432
26433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
26434
26435 2008-10-19  Bruno Haible  <bruno@clisp.org>
26436
26437         * lib/wait-process.c: Include simply <sys/wait.h>.
26438         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
26439         WIFSTOPPED): Remove fallback definitions.
26440         * modules/wait-process (Depends-on): Add sys_wait.
26441
26442         New module 'sys_wait'.
26443         * modules/sys_wait: New file.
26444         * lib/sys_wait.in.h: New file, partially copied from
26445         lib/wait-process.c.
26446         * m4/sys_wait_h.m4: New file.
26447         * doc/posix-headers/sys_wait.texi: Mention the new module.
26448
26449 2008-10-19  Bruno Haible  <bruno@clisp.org>
26450
26451         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
26452
26453 2008-10-19  Bruno Haible  <bruno@clisp.org>
26454
26455         Assume that waitpid() fills an 'int' status, not a 'union wait'.
26456         * lib/wait-process.c (WAIT_T): Remove type.
26457         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
26458         (wait_subprocess): Update.
26459
26460 2008-10-19  Bruno Haible  <bruno@clisp.org>
26461
26462         New module 'atoll'.
26463         * modules/atoll: New file.
26464         * lib/stdlib.in.h (atoll): New declaration.
26465         * lib/atoll.c: New file, from glibc with modifications.
26466         * m4/atoll.m4: New file.
26467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
26468         HAVE_ATOLL.
26469         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
26470         * doc/posix-functions/atoll.texi: Mention the new module.
26471
26472 2008-10-19  Bruno Haible  <bruno@clisp.org>
26473
26474         Add strtoull() declaration to <stdlib.h>.
26475         * lib/stdlib.in.h (strtoull): New declaration.
26476         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26477         Set HAVE_STRTOULL.
26478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
26479         HAVE_STRTOULL.
26480         * modules/strtoull (Depends-on): Add stdlib.
26481         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26482         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
26483         HAVE_STRTOULL.
26484
26485 2008-10-19  Bruno Haible  <bruno@clisp.org>
26486
26487         Add strtoll() declaration to <stdlib.h>.
26488         * lib/stdlib.in.h (strtoll): New declaration.
26489         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26490         Set HAVE_STRTOLL.
26491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
26492         HAVE_STRTOLL.
26493         * modules/strtoll (Depends-on): Add stdlib.
26494         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26495         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
26496
26497 2008-10-19  Bruno Haible  <bruno@clisp.org>
26498
26499         * modules/bcopy (Depends-on): Add strings.
26500         (Include): Specify <strings.h>.
26501
26502 2008-10-19  Bruno Haible  <bruno@clisp.org>
26503
26504         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
26505
26506 2008-10-19  Bruno Haible  <bruno@clisp.org>
26507
26508         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
26509         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26510         mingw.
26511
26512 2008-10-19  Bruno Haible  <bruno@clisp.org>
26513
26514         * lib/atanl.c: Don't include isnanl.h.
26515         * lib/cosl.c: Likewise.
26516         * lib/ldexpl.c: Likewise.
26517         * lib/logl.c: Likewise.
26518         * lib/sinl.c: Likewise.
26519         * lib/sqrtl.c: Likewise.
26520         * lib/tanl.c: Likewise.
26521
26522         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
26523         * lib/isnanf.h: Remove file.
26524         * lib/isnand.h: Remove file.
26525         * lib/isnanl.h: Remove file.
26526         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
26527         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
26528         macros.
26529         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
26530         HAVE_ISNANF, don't define it as a C macro.
26531         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
26532         HAVE_ISNAND, don't define it as a C macro.
26533         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
26534         HAVE_ISNANL, don't define it as a C macro.
26535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
26536         HAVE_ISNAN[FDL].
26537         * modules/isnanf (Files): Remove lib/isnanf.h.
26538         (Depends-on): Add math.
26539         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26540         (Include): Specify <math.h> instead of isnanf.h.
26541         * modules/isnand (Files): Remove lib/isnand.h.
26542         (Depends-on): Add math.
26543         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26544         (Include): Specify <math.h> instead of isnand.h.
26545         * modules/isnanl (Files): Remove lib/isnanl.h.
26546         (Depends-on): Add math.
26547         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26548         (Include): Specify <math.h> instead of isnanl.h.
26549         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
26550         HAVE_ISNAN[FDL].
26551         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
26552         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
26553         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
26554         * NEWS: Mention the change.
26555
26556 2008-10-18  Bruno Haible  <bruno@clisp.org>
26557
26558         Add getusershell(), setusershell(), endusershell() declarations to
26559         <unistd.h>.
26560         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
26561         declarations.
26562         * lib/getusershell.c: Include unistd.h.
26563         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
26564         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26565         HAVE_GETUSERSHELL.
26566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
26567         and HAVE_GETUSERSHELL.
26568         * modules/getusershell (Depends-on): Add unistd, extensions.
26569         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26570         (Include): Specify <unistd.h>.
26571         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
26572         HAVE_GETUSERSHELL.
26573
26574 2008-10-18  Bruno Haible  <bruno@clisp.org>
26575
26576         Add a getloadavg() declaration to <stdlib.h>.
26577         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
26578         getloadavg declaration.
26579         (getloadavg): New declaration.
26580         * lib/getloadavg.c: Include <stdlib.h> first.
26581         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
26582         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
26583         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
26584         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
26585         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26586         * modules/getloadavg (Depends-on): Add stdlib, extensions.
26587         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26588         (Include): Specify <stdlib.h>.
26589         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
26590         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26591
26592 2008-10-18  Bruno Haible  <bruno@clisp.org>
26593
26594         * lib/dirchownmod.c: Don't include lchmod.h.
26595
26596         Move the lchmod() declaration to <sys/stat.h>.
26597         * lib/lchmod.h: Remove file.
26598         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
26599         (lchmod): New declaration, moved here from lib/lchown.h.
26600         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
26601         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
26602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
26603         and HAVE_LCHMOD.
26604         * modules/lchmod (Files): Remove lib/lchmod.h.
26605         (Depends-on): Add sys_stat, extensions.
26606         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26607         (Include): Specify <sys/stat.h> instead of lchmod.h.
26608         * modules/sys_stat (Depends-on): Add link-warning.
26609         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
26610         definition of GL_LINK_WARNING.
26611         * NEWS: Mention the change.
26612
26613 2008-10-18  Bruno Haible  <bruno@clisp.org>
26614
26615         * lib/fchdir.c: Don't include dirfd.h.
26616         * lib/fts.c: Likewise.
26617         * lib/getcwd.c: Likewise.
26618         * lib/glob.c: Likewise.
26619
26620         Move the dirfd() declaration to <dirent.h>.
26621         * lib/dirfd.h: Remove file.
26622         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
26623         (dirfd): New declaration.
26624         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
26625         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
26626         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
26627         HAVE_DECL_DIRFD.
26628         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
26629         HAVE_DECL_DIRFD.
26630         * modules/dirfd (Files): Remove lib/dirfd.h.
26631         (Depends-on): Add dirent, extensions.
26632         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
26633         (Include): Specify <dirent.h> instead of dirfd.h.
26634         * modules/dirent (Depends-on): Add link-warning.
26635         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
26636         definition of GL_LINK_WARNING.
26637         * NEWS: Mention the change.
26638
26639 2008-10-18  Bruno Haible  <bruno@clisp.org>
26640
26641         Move the euidaccess() declaration to <unistd.h>.
26642         * lib/euidaccess.h: Remove file.
26643         * lib/unistd.in.h (euidaccess): New declaration.
26644         * lib/euidaccess.c: Don't include euidaccess.h.
26645         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
26646         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
26647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
26648         and HAVE_EUIDACCESS.
26649         * modules/euidaccess (Files): Remove lib/euidaccess.h.
26650         (Depends-on): Add unistd.
26651         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26652         (Include): Specify <unistd.h> instead of euidaccess.h.
26653         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
26654         HAVE_EUIDACCESS.
26655         * NEWS: Mention the change.
26656
26657 2008-10-18  Bruno Haible  <bruno@clisp.org>
26658
26659         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
26660
26661         Move the getdomainname() declaration to <unistd.h>.
26662         * lib/getdomainname.h: Remove file.
26663         * lib/unistd.in.h (getdomainname): New declaration.
26664         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
26665         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26666         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26667         HAVE_GETDOMAINNAME.
26668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26669         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
26670         * modules/getdomainname (Files): Remove lib/getdomainname.h.
26671         (Depends-on): Add unistd, extensions.
26672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26673         (Includes): Specify <unistd.h> instead of getdomainname.h.
26674         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
26675         HAVE_GETDOMAINNAME.
26676         * NEWS: Mention the change.
26677
26678 2008-10-18  Bruno Haible  <bruno@clisp.org>
26679
26680         * modules/dirent: New file.
26681         * m4/dirent_h.m4: New file.
26682         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
26683         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
26684         * modules/fchdir (Files): Remove lib/dirent.in.h.
26685         (Depends-on): Add dirent.
26686         (Makefile.am): Move rules to modules/dirent.
26687         * doc/posix-headers/dirent.texi: Mention the new module.
26688
26689 2008-10-18  Bruno Haible  <bruno@clisp.org>
26690
26691         Avoid -Wunused-parameter warnings in public gnulib header files.
26692         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
26693         macro.
26694         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
26695
26696 2008-10-18  Bruno Haible  <bruno@clisp.org>
26697
26698         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
26699         * doc/glibc-functions/error.texi: Mention the module 'error'.
26700         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
26701         * doc/glibc-functions/getdomainname.texi: Mention the module
26702         'getdomainname'.
26703         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
26704         * doc/glibc-functions/getpagesize.texi: Mention the module
26705         'getpagesize'.
26706         * doc/glibc-functions/getusershell.texi: Mention the module
26707         'getusershell'.
26708         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
26709         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
26710         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
26711         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
26712         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
26713         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
26714         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
26715         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
26716         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
26717         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
26718         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
26719         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
26720         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
26721         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
26722
26723 2008-10-17  Bruno Haible  <bruno@clisp.org>
26724
26725         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
26726         HP-UX and IRIX, use -0.0L.
26727         * tests/test-ceill.c (minus_zero): Likewise.
26728         * tests/test-floorl.c (minus_zero): Likewise.
26729         * tests/test-frexpl.c (minus_zero): Likewise.
26730         * tests/test-isnan.c (minus_zerol): Likewise.
26731         * tests/test-isnanl.h (minus_zero): Likewise.
26732         * tests/test-ldexpl.c (minus_zero): Likewise.
26733         * tests/test-roundl.c (minus_zero): Likewise.
26734         * tests/test-signbit.c (minus_zerol): Likewise.
26735         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26736         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26737         * tests/test-truncl.c (minus_zero): Likewise.
26738         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26739         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26740         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
26741         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
26742
26743 2008-10-17  Bruno Haible  <bruno@clisp.org>
26744
26745         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
26746         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
26747         that it gets activated only for gcc >= 3.0.
26748         * lib/dirent.in.h: Likewise.
26749         * lib/errno.in.h: Likewise.
26750         * lib/fcntl.in.h: Likewise.
26751         * lib/float.in.h: Likewise.
26752         * lib/iconv.in.h: Likewise.
26753         * lib/inttypes.in.h: Likewise.
26754         * lib/locale.in.h: Likewise.
26755         * lib/math.in.h: Likewise.
26756         * lib/netdb.in.h: Likewise.
26757         * lib/netinet_in.in.h: Likewise.
26758         * lib/search.in.h: Likewise.
26759         * lib/signal.in.h: Likewise.
26760         * lib/spawn.in.h: Likewise.
26761         * lib/stdarg.in.h: Likewise.
26762         * lib/stdint.in.h: Likewise.
26763         * lib/stdio.in.h: Likewise.
26764         * lib/stdlib.in.h: Likewise.
26765         * lib/string.in.h: Likewise.
26766         * lib/strings.in.h: Likewise.
26767         * lib/sys_file.in.h: Likewise.
26768         * lib/sys_ioctl.in.h: Likewise.
26769         * lib/sys_select.in.h: Likewise.
26770         * lib/sys_socket.in.h: Likewise.
26771         * lib/sys_stat.in.h: Likewise.
26772         * lib/sys_time.in.h: Likewise.
26773         * lib/sysexits.in.h: Likewise.
26774         * lib/time.in.h: Likewise.
26775         * lib/unistd.in.h: Likewise.
26776         * lib/wchar.in.h: Likewise.
26777         * lib/wctype.in.h: Likewise.
26778         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26779
26780 2008-10-17  Jim Meyering  <meyering@redhat.com>
26781
26782         ignore-value: don't depend on inline module
26783         * modules/ignore-value (Depends-on): Remove 'inline'.
26784         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
26785         Suggestion from Bruno Haible.
26786
26787 2008-10-17  Bruno Haible  <bruno@clisp.org>
26788
26789         New implementation of condition variables for Win32.
26790         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
26791         (gl_linked_waitqueue_t): New type.
26792         (gl_cond_t): Use it.
26793         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
26794         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
26795         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
26796         (glthread_cond_init_func, glthread_cond_wait_func,
26797         glthread_cond_timedwait_func, glthread_cond_signal_func,
26798         glthread_cond_broadcast_func, glthread_cond_destroy_func):
26799         Reimplemented on the basis of gl_linked_waitqueue_t.
26800         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
26801         gl_waitqueue_t.
26802         (gl_rwlock_t): Update.
26803         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
26804
26805 2008-10-17  Simon Josefsson  <simon@josefsson.org>
26806
26807         * modules/recvfrom (Depends-on): Add dependency on getpeername.
26808         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26809
26810 2008-10-17  Jim Meyering  <meyering@redhat.com>
26811
26812         ignore-value: new module
26813         * modules/ignore-value: New file.
26814         * lib/ignore-value.h: New file.
26815         * MODULES.html.sh (Compiler warning management): New section,
26816         just for this module.  More to come.
26817
26818 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26819
26820         open-safer.c: avoid 'signed and unsigned in conditional...' warning
26821         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
26822         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
26823
26824 2008-10-16  Jim Meyering  <meyering@redhat.com>
26825
26826         openat-die.c: avoid 'no previous prototype' warning
26827         * lib/openat-die.c: Include "openat.h".
26828         Reported by Reuben Thomas <rrt@sc3d.org>.
26829
26830 2008-10-16  Simon Josefsson  <simon@josefsson.org>
26831
26832         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
26833         * lib/netdb.in.h: Fix typo.
26834         Reported by Bruno Haible  <bruno@clisp.org>
26835
26836         * lib/netdb.in.h: Include sys/socket.h for platforms without
26837         netdb.h, to get structures like hostent on MinGW.
26838         * modules/netdb (Depends-on): Add sys_socket.
26839
26840 2008-10-15  Simon Josefsson  <simon@josefsson.org>
26841
26842         * modules/netdb, modules/netdb-tests: New file.
26843         * m4/netdb_h.m4: New file.
26844         * lib/netdb.in.h: Add, currently just an empty file pending
26845         definitions.
26846         * tests/test-netdb.c: New file.
26847         * doc/posix-headers/netdb.texi: Mention that we replace it if
26848         needed.
26849         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26850         netdb.
26851
26852 2008-10-15  Simon Josefsson  <simon@josefsson.org>
26853
26854         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
26855         with code.
26856
26857 2008-10-13  Bruno Haible  <bruno@clisp.org>
26858
26859         * lib/glthread/cond.c (glthread_cond_wait_func,
26860         glthread_cond_timedwait_func): Add a comment.
26861
26862 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26863
26864         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
26865         * tests/test-select.c: Likewise,
26866
26867 2008-10-13  Bruno Haible  <bruno@clisp.org>
26868
26869         * lib/glthread/cond.c (glthread_cond_wait_func,
26870         glthread_cond_timedwait_func): Fix variable name.
26871         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26872
26873 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
26874
26875         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
26876         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
26877         struct sockaddr.sa_len.
26878         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
26879
26880 2008-10-13  Simon Josefsson  <simon@josefsson.org>
26881
26882         * build-aux/pmccabe2html: Add css and css_url parameters.
26883
26884 2008-10-12  Bruno Haible  <bruno@clisp.org>
26885
26886         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
26887         calling aclx_get.
26888         Reported by Rainer Tammer <tammer@tammer.net>.
26889
26890 2008-10-12  Bruno Haible  <bruno@clisp.org>
26891
26892         Use msvcrt aware primitives for creation/termination of Win32 threads.
26893         * lib/glthread/thread.c: Include <process.h>.
26894         (glthread_create_func): Use _beginthreadex instead of CreateThread.
26895         (wrapper_func): Update signature.
26896         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
26897
26898 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26899             Bruno Haible  <bruno@clisp.org>
26900
26901         Provide a Win32 implementation of the 'cond' module.
26902         * lib/glthread/cond.h [USE_WIN32]: New implementation.
26903         * lib/glthread/cond.c (glthread_cond_init_func,
26904         glthread_cond_wait_func, glthread_cond_timedwait_func,
26905         glthread_cond_signal_func, glthread_cond_broadcast_func,
26906         glthread_cond_destroy_func) [USE_WIN32]: New functions.
26907         * modules/cond (Dependencies): Add gettimeofday.
26908
26909 2008-10-11  Bruno Haible  <bruno@clisp.org>
26910
26911         Make sleep work on older versions of mingw.
26912         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
26913         only whether it exists.
26914         * doc/posix-functions/sleep.texi: Mention the problem with older
26915         versions of mingw.
26916
26917 2008-10-11  Bruno Haible  <bruno@clisp.org>
26918
26919         New module 'shutdown'.
26920         * modules/shutdown: New file.
26921         * lib/sys_socket.in.h (shutdown): New declaration.
26922         * lib/winsock.c (shutdown): New function.
26923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26924         GNULIB_SHUTDOWN.
26925         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
26926         * doc/posix-functions/shutdown.texi: Document the new module.
26927
26928 2008-10-11  Jim Meyering  <meyering@redhat.com>
26929
26930         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
26931
26932 2008-10-11  Bruno Haible  <bruno@clisp.org>
26933
26934         New module 'fclose'.
26935         * modules/fclose: New file.
26936         * lib/stdio.in.h (fclose): New declaration.
26937         * lib/fclose.c: New file.
26938         * m4/fclose.m4: New file.
26939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
26940         REPLACE_FCLOSE.
26941         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
26942         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
26943         REPLACE_FCLOSE.
26944         * modules/close (Depends-on): fclose.
26945         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
26946
26947 2008-10-11  Bruno Haible  <bruno@clisp.org>
26948
26949         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
26950         set errno and don't call _close.
26951
26952 2008-10-10  Bruno Haible  <bruno@clisp.org>
26953
26954         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
26955         ACL, not afterwards. Fixes test failure on Cygwin.
26956
26957 2008-10-09  Ben Pfaff  <blp@gnu.org>
26958
26959         * build-aux/announce-gen: Fix gnulib version related part of usage
26960         message.  Die with a useful error message if no tarballs are
26961         found.
26962
26963 2008-10-10  Jim Meyering  <meyering@redhat.com>
26964
26965         bootstrap: use git's --depth=N option only if it's supported
26966         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
26967         recognize the --depth option.  Reported by Pádraig Brady.
26968
26969 2008-10-09  Bruno Haible  <bruno@clisp.org>
26970
26971         New module 'ioctl'.
26972         * modules/ioctl: New file.
26973         * lib/sys_socket.in.h (ioctl): Remove declaration.
26974         * lib/winsock.c: Include <sys/ioctl.h>.
26975         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
26976         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26977         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
26978         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
26979         * doc/posix-functions/ioctl.texi: Mention the new module.
26980
26981 2008-10-09  Bruno Haible  <bruno@clisp.org>
26982
26983         New module 'sys_ioctl'.
26984         * lib/sys_ioctl.in.h: New file.
26985         * m4/sys_ioctl_h.m4: New file.
26986         * modules/sys_ioctl: New file.
26987         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
26988
26989 2008-10-09  Bruno Haible  <bruno@clisp.org>
26990
26991         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
26992         * lib/winsock.c: Include <stdarg.h>.
26993         (rpl_ioctl): Change to second argument 'int' and then varargs.
26994
26995 2008-10-09  Bruno Haible  <bruno@clisp.org>
26996
26997         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
26998         when the sys_socket module is present and the system has <winsock2.h>.
26999
27000 2008-10-09  Bruno Haible  <bruno@clisp.org>
27001
27002         * doc/posix-functions/close.texi: Mention module 'close' instead of
27003         module 'sys_socket'.
27004
27005 2008-10-09  Bruno Haible  <bruno@clisp.org>
27006
27007         * doc/glibc-headers/sys_ioctl.texi: New file.
27008         * doc/gnulib.texi: Include it.
27009
27010 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27011             Bruno Haible  <bruno@clisp.org>
27012
27013         Combine the two replacements of 'close'.
27014         * lib/sys_socket.in.h (close): Define to a reminder to include
27015         <unistd.h>.
27016         (_gl_close_fd_maybe_socket): New declaration.
27017         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27018         * lib/winsock.c (close): Remove undefinition.
27019         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27020         needed for the gnulib module 'close'.
27021         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27022         define to an error symbol or to a warning, if suitable.
27023         * lib/close.c: Include <sys/socket.h>.
27024         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27025         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27026         UNISTD_H_HAVE_WINSOCK2_H.
27027         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27029         UNISTD_H_HAVE_WINSOCK2_H.
27030         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27031         (configure.ac): Set a module indicator.
27032         (Makefile.am): Substitute GNULIB_CLOSE.
27033         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27034         * modules/poll-tests (Depends-on): Add close.
27035         * modules/select-tests (Depends-on): Likewise.
27036
27037 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27038             Bruno Haible  <bruno@clisp.org>
27039
27040         New module 'close'.
27041         * modules/close: New file.
27042         * lib/unistd.in.h (close): Move declaration out of the
27043         FCHDIR_REPLACEMENT scope.
27044         (_gl_unregister_fd): New declaration.
27045         * lib/close.c: New file.
27046         * lib/fchdir.c (rpl_close): Remove function.
27047         * m4/close.m4: New file.
27048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27049         close.
27050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27051         REPLACE_CLOSE.
27052         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27053         REPLACE_CLOSE.
27054         * modules/fchdir (Depends-on): Add close.
27055
27056 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27057             Bruno Haible  <bruno@clisp.org>
27058
27059         * lib/fcntl.in.h (open): Simplify conditionals.
27060         (_gl_register_fd): New declaration.
27061         * lib/fchdir.c (rpl_open): Remove function.
27062         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27063         also.
27064         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27066         open.
27067
27068 2008-10-09  Jim Meyering  <meyering@redhat.com>
27069
27070         GNUmakefile: use the more name-space-friendly "_version"
27071         * top/GNUmakefile (_dummy): Update.
27072         (_version): Rename from "version".
27073
27074 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27075             Bruno Haible  <bruno@clisp.org>
27076
27077         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27078         rpl_close.
27079         (_gl_register_fd): New function, extracted from rpl_open.
27080         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27081         (rpl_open, rpl_opendir): Use _gl_register_fd.
27082
27083 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27084
27085         Fix organization of 'open' replacement.
27086         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27087         (gl_FUNC_OPEN): Use it.
27088         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27089
27090 2008-10-08  Bruno Haible  <bruno@clisp.org>
27091
27092         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27093
27094 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27095
27096         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27097         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27098         listen).
27099
27100 2008-10-08  Eric Blake  <ebb9@byu.net>
27101
27102         GNUmakefile: add 'make version' target
27103         * top/GNUmakefile (_curr-ver): Split version update rules...
27104         (version): ...into a target.
27105
27106 2008-10-07  Bruno Haible  <bruno@clisp.org>
27107
27108         Use a more portable replacement expression for -0.0L.
27109         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27110         instead of -0.0L. Fix m4 quotation.
27111
27112         * tests/test-signbit.c: Include <float.h>.
27113         (minus_zero): New variable.
27114         (test_signbitl): Use minus_zero instead of -zero.
27115         * modules/signbit-tests (Depends-on): Add float.
27116
27117         * tests/test-ceill.c: Include <float.h>.
27118         (zero): Remove variable.
27119         (minus_zero): New variable.
27120         (main): Use minus_zero instead of -zero.
27121         * modules/ceill-tests (Depends-on): Add float.
27122
27123         * tests/test-floorl.c: Include <float.h>.
27124         (zero): Remove variable.
27125         (minus_zero): New variable.
27126         (main): Use minus_zero instead of -zero.
27127         * modules/floorl-tests (Depends-on): Add float.
27128
27129         * tests/test-roundl.c: Include <float.h>.
27130         (zero): Remove variable.
27131         (minus_zero): New variable.
27132         (main): Use minus_zero instead of -zero.
27133         * modules/roundl-tests (Depends-on): Add float.
27134
27135         * tests/test-truncl.c: Include <float.h>.
27136         (zero): Remove variable.
27137         (minus_zero): New variable.
27138         (main): Use minus_zero instead of -zero.
27139         * modules/truncl-tests (Depends-on): Add float.
27140
27141         * tests/test-frexpl.c (zero): Remove variable.
27142         (minus_zero): New variable.
27143         (main): Use minus_zero instead of -zero.
27144         * modules/frexpl-tests (Depends-on): Add float.
27145
27146         * tests/test-isnan.c (zerol): Remove variable.
27147         (minus_zerol): New variable.
27148         (test_long_double): Use minus_zerol instead of -zerol.
27149         * modules/isnan-tests (Depends-on): Add float.
27150
27151         * tests/test-isnanl.h (zero): Remove variable.
27152         (minus_zero): New variable.
27153         (main): Use minus_zero instead of -zero.
27154         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27155         * modules/isnanl-tests (Depends-on): Add float.
27156
27157         * tests/test-ldexpl.c (zero): Remove variable.
27158         (minus_zero): New variable.
27159         (main): Use minus_zero instead of -zero.
27160         * modules/ldexpl-tests (Depends-on): Add float.
27161
27162         * tests/test-snprintf-posix.h (zerol): Remove variable.
27163         (minus_zerol): New variable.
27164         (test_function): Use minus_zerol instead of -zerol.
27165         * modules/snprintf-posix-tests (Depends-on): Add float.
27166         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27167
27168         * tests/test-sprintf-posix.h (zerol): Remove variable.
27169         (minus_zerol): New variable.
27170         (test_function): Use minus_zerol instead of -zerol.
27171         * modules/sprintf-posix-tests (Depends-on): Add float.
27172         * modules/vsprintf-posix-tests (Depends-on): Add float.
27173
27174         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27175         (minus_zerol): New variable.
27176         (test_function): Use minus_zerol instead of -zerol.
27177         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27178
27179         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27180         (minus_zerol): New variable.
27181         (test_function): Use minus_zerol instead of -zerol.
27182         * modules/vasprintf-posix-tests (Depends-on): Add float.
27183
27184 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27185
27186         * MODULES.html.sh (Support for building documentation): Mention
27187         pmccabe2html.  Sort entries.
27188
27189         Add pmccabe2html module, from gnupdf.
27190         * build-aux/pmccabe.css: New file.
27191         * build-aux/pmccabe2html: New file.
27192         * m4/pmccabe2html.m4: New file.
27193         * modules/pmccabe2html: New file.
27194
27195 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27196
27197         flock: new module
27198         * MODULES.html.sh: Add to list of modules.
27199         * lib/flock.c: flock implementation for Windows and Unix systems
27200         which have fcntl.
27201         * doc/glibc-functions/flock.texi: Update documentation.
27202         * lib/sys_file.in.h: <sys/file.h> header file.
27203         * m4/flock.m4: M4 macros.
27204         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27205         * modules/flock: flock module.
27206         * modules/flock-tests: flock tests module.
27207         * modules/sys_file: sys/file.h module.
27208         * tests/test-flock.c: test suite for flock.
27209
27210 2008-10-06  Jim Meyering  <meyering@redhat.com>
27211
27212         bootstrap: check for LT_INIT more portably still ;-)
27213         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27214         Spotted by Bruno Haible.
27215
27216 2008-10-06  Eric Blake  <ebb9@byu.net>
27217
27218         test-signbit: avoid tripping Irix cc bug on -0.0L
27219         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27220         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27221         entire testsuite consistent and avoids an Irix 6.2 bug.
27222
27223 2008-10-05  Bruno Haible  <bruno@clisp.org>
27224             Jim Meyering  <jim@meyering.net>
27225
27226         Add an option for ignoring EPIPE during close_stdout.
27227         * lib/closeout.h: Include <stdbool.h>.
27228         (close_stdout_set_ignore_EPIPE): New declaration.
27229         * lib/closeout.c: Include <stdbool.h>.
27230         (ignore_EPIPE): New variable.
27231         (close_stdout_set_ignore_EPIPE): New function.
27232         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27233         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27234         failure.
27235         * modules/closeout (Depends-on): Add stdbool.
27236
27237 2008-10-05  Bruno Haible  <bruno@clisp.org>
27238
27239         * modules/accept: New file.
27240         * modules/bind: New file.
27241         * modules/connect: New file.
27242         * modules/getpeername: New file.
27243         * modules/getsockname: New file.
27244         * modules/getsockopt: New file.
27245         * modules/listen: New file.
27246         * modules/recv: New file.
27247         * modules/recvfrom: New file.
27248         * modules/send: New file.
27249         * modules/sendto: New file.
27250         * modules/setsockopt: New file.
27251         * modules/socket: New file.
27252         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
27253         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27254         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
27255         the particular module is requested. Add a link warning when the
27256         particular module is not requested.
27257         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
27258         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
27259         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
27260         the particular module is requested.
27261         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
27262         gl_SYS_SOCKET_H_DEFAULTS): New macros.
27263         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
27264         * modules/sys_socket (Depends-on): Add link-warning.
27265         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
27266         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
27267         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
27268         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
27269         GL_LINK_WARNING.
27270         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
27271         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
27272         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
27273         * doc/posix-functions/getpeername.texi: Mention the new module
27274         'getpeername'.
27275         * doc/posix-functions/getsockname.texi: Mention the new module
27276         'getsockname'.
27277         * doc/posix-functions/getsockopt.texi: Mention the new module
27278         'getsockopt'.
27279         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
27280         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
27281         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
27282         * doc/posix-functions/send.texi: Mention the new module 'send'.
27283         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
27284         * doc/posix-functions/setsockopt.texi: Mention the new module
27285         'setsockopt'.
27286         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27287         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27288         listen, connect, accept.
27289         * modules/select-tests (Depends-on): Likewise.
27290
27291 2008-10-05  Bruno Haible  <bruno@clisp.org>
27292
27293         * lib/winsock.c (strerror): Remove unused #undef.
27294         (rpl_close): Remove unused local variable.
27295
27296         * modules/sys_socket (Depends-on); Add errno.
27297
27298 2008-10-05  Bruno Haible  <bruno@clisp.org>
27299
27300         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27301         (select): Add a link warning when the 'select' module is not used.
27302         * modules/sys_select (Depends-on): Add link-warning.
27303         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27304         Suggested by Paolo Bonzini.
27305
27306 2008-10-05  Jim Meyering  <meyering@redhat.com>
27307
27308         bootstrap: check for LT_INIT more portably
27309         * build-aux/bootstrap: Avoid using grep -E, since it's not
27310         portable enough.  Suggestion from Bruno Haible.
27311
27312 2008-10-05  Bruno Haible  <bruno@clisp.org>
27313
27314         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27315         as being fixed by gnulib.
27316
27317 2008-10-05  Bruno Haible  <bruno@clisp.org>
27318
27319         * modules/select-tests: New file, mostly copied from
27320         modules/sys_select-tests.
27321         * tests/test-select.c: New file, mostly copied from
27322         tests/test-sys_select.c.
27323         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27324         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27325         (Makefile.am): Remove test_sys_select_LDADD.
27326
27327         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27328         to an undefined symbol, for an error message.
27329         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27330         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27331         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27332         winsock-select.c here.
27333         * modules/sys_select (Files): Remove lib/winsock-select.c.
27334         (Depends-on): Remove alloca.
27335         (Makefile.am): Substitute GNULIB_SELECT.
27336         * modules/select: New file.
27337         * doc/posix-functions/select.texi: Update.
27338
27339 2008-10-05  Bruno Haible  <bruno@clisp.org>
27340
27341         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27342         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27343         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27344         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27345         getdtablesize.
27346         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27347         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27348
27349 2008-10-05  Bruno Haible  <bruno@clisp.org>
27350
27351         * modules/getdtablesize-tests: New file.
27352         * tests/test-getdtablesize.c: New file.
27353
27354         New module 'getdtablesize'.
27355         * lib/unistd.in.h (getdtablesize): New declaration.
27356         * lib/getdtablesize.c: New file.
27357         * m4/getdtablesize.m4: New file.
27358         * modules/getdtablesize: New file.
27359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27360         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27361         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27362         HAVE_GETDTABLESIZE.
27363         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27364
27365 2008-10-05  Bruno Haible  <bruno@clisp.org>
27366
27367         * modules/sched (Makefile.am): Fix typo.
27368         Reported by Simon Josefsson.
27369
27370 2008-10-05  Jim Meyering  <meyering@redhat.com>
27371
27372         bootstrap: check for LT_INIT, too
27373         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27374         are deprecated.  Suggestion from Ralf Wildenhues.
27375
27376 2008-10-05  Bruno Haible  <bruno@clisp.org>
27377
27378         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27379         overriding them by ours.
27380         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27381
27382 2008-10-05  Jim Meyering  <meyering@redhat.com>
27383
27384         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27385         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27386         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27387
27388 2008-10-04  Bruno Haible  <bruno@clisp.org>
27389
27390         * modules/dup2 (License): Change to LGPLv2+.
27391         * modules/sleep (License): Likewise.
27392         * modules/perror (License): Likewise.
27393         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27394         Blake.
27395         * modules/signal (License): Likewise.
27396         * modules/sigprocmask (License): Likewise.
27397         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27398         Meyering.
27399
27400 2008-10-04  Bruno Haible  <bruno@clisp.org>
27401
27402         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27403         Reported by Rainer Tammer <tammer@tammer.net>.
27404
27405 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27406             Bruno Haible  <bruno@clisp.org>
27407
27408         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27409         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27410         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27411
27412 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
27413
27414         filevercmp: new module
27415         * lib/filevercmp.h: New function filevercmp comparing version strings.
27416         * lib/filevercmp.c: Implementation of filevercmp function.
27417         * modules/filevercmp: Module metadata.
27418         * tests/test-filevercmp.c: Unit test for new module.
27419         * modules/filevercmp-tests: Unit test metadata.
27420         * MODULES.html.sh: Add filevercmp module.
27421
27422 2008-10-03  Bruno Haible  <bruno@clisp.org>
27423
27424         * lib/c-ctype.h: Add comment.
27425         Reported by Jim Meyering.
27426
27427 2008-10-02  Bruno Haible  <bruno@clisp.org>
27428
27429         * modules/posix_spawn-internal (Depends-on): Add 'open'.
27430
27431 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27432
27433         * build-aux/bootstrap: Allow renaming bootstrap, and change the
27434         name of bootstrap.conf accordingly.
27435
27436 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27437
27438         * build-aux/bootstrap: Install git-merge-changelog configuration
27439         items into .gitconfig if needed.
27440
27441 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27442
27443         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
27444         git repository, and initialize/update it accordingly.
27445
27446 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
27447
27448         * modules/fsync-tests: New file.
27449         * tests/test-fsync.c: New file.
27450
27451         New module 'fsync'.
27452         * lib/fsync.c: New file.
27453         * m4/fsync.m4: New file.
27454         * modules/fsync: New file.
27455         * lib/unistd.in.h (fsync): New declaration.
27456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
27457         GNULIB_FSYNC and HAVE_FSYNC.
27458         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
27459         * MODULES.html.sh (posix_functions): Add fsync.
27460         * doc/posix-functions/fsync.texi: Mention the new module.
27461
27462 2008-10-02  Jim Meyering  <meyering@redhat.com>
27463
27464         fts.c: sync with similar code from coreutils' remove.c
27465         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
27466         Guard also with "#if defined __linux__", since for now at least,
27467         this code is Linux-kernel-specific.
27468
27469 2008-10-02  Jim Meyering  <meyering@redhat.com>
27470
27471         fts: bug fixes
27472         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
27473         Include <sys/vfs.h>, not <sys/statfs.h>.
27474
27475         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
27476         Include <sys/vfs.h>, not <sys/statfs.h>.
27477
27478 2008-10-01  Bruno Haible  <bruno@clisp.org>
27479
27480         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
27481         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
27482         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
27483         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
27484         * doc/posix-functions/posix_spawnp.texi: Likewise.
27485         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
27486         whether posix_spawn actually works.
27487         * m4/pipe.m4 (gl_PIPE): Likewise.
27488         * modules/execute (Files): Add m4/posix_spawn.m4.
27489         * modules/pipe (Files): Add m4/posix_spawn.m4.
27490         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
27491
27492 2008-10-01  Jim Meyering  <meyering@redhat.com>
27493
27494         remove trailing spaces
27495         * NEWS: Likewise.
27496         * lib/poll.c (poll): Likewise.
27497         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
27498         * lib/winsock.c (rpl_close): Likewise.
27499         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
27500         * modules/yield: Likewise.
27501         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
27502         * tests/test-sys_select.c (connect_to_socket): Likewise.
27503
27504         fts.c: adjust a new interface to be more generally useful
27505         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
27506         (fts_build): Adjust caller.
27507
27508 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27509
27510         * modules/cond-tests: New file.
27511         * tests/test-cond.c: New file.
27512
27513 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27514             Bruno Haible  <bruno@clisp.org>
27515
27516         * modules/cond (Dependencies): Add errno, time.
27517         * lib/glthread/cond.h: Include <time.h>.
27518         (gl_cond_define, gl_cond_define_initialized): Use the same definition
27519         across platforms.
27520
27521 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27522             Bruno Haible  <bruno@clisp.org>
27523
27524         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
27525
27526 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27527             Bruno Haible  <bruno@clisp.org>
27528
27529         * modules/tls-tests (Depends-on): Add thread, yield.
27530         (configure.ac): Remove all checks.
27531         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
27532         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27533         gl_thread_self): Remove definitions. Include glthread/thread.h and
27534         glthread/yield.h instead.
27535         (test_tls): Pass an additional NULL argument to gl_thread_join.
27536
27537 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27538             Bruno Haible  <bruno@clisp.org>
27539
27540         * modules/lock-tests (Depends-on): Add thread, yield.
27541         (configure.ac): Remove all checks.
27542         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
27543         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27544         gl_thread_self): Remove definitions. Include glthread/thread.h and
27545         glthread/yield.h instead.
27546         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
27547         additional NULL argument to gl_thread_join.
27548
27549 2008-09-30  Bruno Haible  <bruno@clisp.org>
27550
27551         Fix the Win32 implementation of the 'thread' module.
27552         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
27553         pointer type.
27554         (gl_thread_self): Invoke gl_thread_self_func.
27555         (gl_thread_self_func): New declaration.
27556         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
27557         (do_init_self_key, init_self_key): New functions.
27558         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
27559         Remove some fields.
27560         (running_threads, running_lock): Remove variables.
27561         (get_current_thread_handle): New function.
27562         (gl_thread_self_func, wrapper_func, glthread_create_func,
27563         glthread_join_func, gl_thread_exit_func): Largely rewritten and
27564         simplified.
27565
27566 2008-09-30  Bruno Haible  <bruno@clisp.org>
27567
27568         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
27569         files.
27570
27571 2008-09-30  Jim Meyering  <meyering@redhat.com>
27572
27573         fts.m4: correct the test for statfs.f_type
27574         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
27575         when checking for statfs.f_type.
27576
27577 2008-09-15  Simon Josefsson  <simon@josefsson.org>
27578
27579         tests: avoid some compiler warnings
27580         * tests/test-memchr.c (main): Pass NULL indirectly.
27581         * tests/test-getdate.c (main): Remove unused variable 'ret'.
27582
27583 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
27584
27585         getdate.y: disallow countable dayshifts like "4 yesterday ago"
27586         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
27587         exactly specified dayshifts.
27588         (dayshift): New rule.
27589         (rel): Add dayshift.
27590         (relative_time_table) [tomorrow, yesterday, today, now]:
27591         Use tDAY_SHIFT in place of tDAY_UNIT.
27592         * tests/test-getdate.c: Add tests for now-disallowed countable
27593         dayshifts, e.g., "4 yesterday ago".
27594
27595 2008-09-29  Bruno Haible  <bruno@clisp.org>
27596
27597         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
27598         * tests/test-posix_spawn1.in.sh: Renamed from
27599         tests/test-posix_spawn.in.sh.
27600         * tests/test-posix_spawn2.c: New file.
27601         * tests/test-posix_spawn2.in.sh: New file.
27602         * modules/posix_spawnp-tests (Files): Update.
27603         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
27604
27605 2008-09-29  Bruno Haible  <bruno@clisp.org>
27606
27607         Propagate effects of putenv/setenv/unsetenv to child processes.
27608         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
27609         * lib/pipe.c (create_pipe): Likewise.
27610
27611 2008-09-29  Bruno Haible  <bruno@clisp.org>
27612
27613         Enable use of shell scripts as executables in mingw.
27614         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
27615         run the program as a shell script.
27616         * lib/pipe.c (create_pipe): Likewise.
27617         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
27618         resulting array.
27619
27620 2008-09-29  Eric Blake  <ebb9@byu.net>
27621
27622         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
27623
27624 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
27625
27626         * doc/posix-functions/accept.texi: Update mingw problems.
27627         * doc/posix-functions/bind.texi: Update mingw problems.
27628         * doc/posix-functions/close.texi: Update mingw problems.
27629         * doc/posix-functions/connect.texi: Update mingw problems.
27630         * doc/posix-functions/getpeername.texi: Update mingw problems.
27631         * doc/posix-functions/getsockname.texi: Update mingw problems.
27632         * doc/posix-functions/getsockopt.texi: Update mingw problems.
27633         * doc/posix-functions/ioctl.texi: Update mingw problems.
27634         * doc/posix-functions/listen.texi: Update mingw problems.
27635         * doc/posix-functions/recv.texi: Update mingw problems.
27636         * doc/posix-functions/recvfrom.texi: Update mingw problems.
27637         * doc/posix-functions/select.texi: Update mingw problems.
27638         * doc/posix-functions/send.texi: Update mingw problems.
27639         * doc/posix-functions/sendto.texi: Update mingw problems.
27640         * doc/posix-functions/setsockopt.texi: Update mingw problems.
27641         * doc/posix-functions/socket.texi: Update mingw problems.
27642
27643 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
27644             Bruno Haible  <bruno@clisp.org>
27645
27646         * lib/sys_select.in.h: Include sys/time.h.
27647         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
27648         * modules/sys_select: Depend on sys_time.
27649         * tests/test-sys_select.c: Test that sys/select.h defines struct
27650         timeval fully.
27651
27652 2008-09-29  Bruno Haible  <bruno@clisp.org>
27653
27654         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
27655         * lib/sys_select.in.h: Likewise.
27656
27657 2008-09-29  Bruno Haible  <bruno@clisp.org>
27658
27659         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
27660
27661 2008-09-29  Bruno Haible  <bruno@clisp.org>
27662
27663         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
27664         Set LIBSOCKET instead of augmenting LIBS.
27665         * modules/sockets (Link): New section.
27666         * modules/sockets-tests (test_sockets_LDADD): New variable.
27667         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
27668         * modules/poll-tests (test_poll_LDADD): New variable.
27669         * NEWS: Document the change.
27670
27671 2008-09-29  Bruno Haible  <bruno@clisp.org>
27672
27673         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
27674         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
27675         ARPA_INET_H directly.
27676         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27677
27678 2008-09-28  Bruno Haible  <bruno@clisp.org>
27679
27680         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
27681         from gl_HEADER_SYS_SOCKET.
27682         (gl_HEADER_SYS_SOCKET): Invoke it.
27683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27684
27685 2008-09-28  Bruno Haible  <bruno@clisp.org>
27686
27687         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
27688         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
27689         Needed on OSF/1 4.0.
27690
27691 2008-09-28  Bruno Haible  <bruno@clisp.org>
27692
27693         Override open more carefully.
27694         * lib/open.c (orig_open): New function.
27695         (rpl_open): Use orig_open instead of open.
27696         * lib/fcntl.in.h: Add special invocation convention.
27697         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
27698         (gl_FUNC_OPEN): Invoke it.
27699
27700         Override freopen more carefully.
27701         * lib/freopen.c (orig_freopen): New function.
27702         (rpl_freopen): Use orig_freopen instead of freopen.
27703         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
27704         (gl_FUNC_FREOPEN): Invoke it.
27705
27706         Override fopen more carefully.
27707         * lib/fopen.c (orig_fopen): New function.
27708         (rpl_fopen): Use orig_fopen instead of fopen.
27709         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
27710         (gl_FUNC_FOPEN): Invoke it.
27711         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
27712
27713 2008-09-28  Bruno Haible  <bruno@clisp.org>
27714
27715         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
27716         SIGPIPE.
27717
27718 2008-09-28  Bruno Haible  <bruno@clisp.org>
27719
27720         * tests/test-sigaction.c (handler, main): Disable the check whether
27721         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
27722         glibc systems with LinuxThreads.
27723
27724 2008-09-28  Bruno Haible  <bruno@clisp.org>
27725
27726         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
27727
27728         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
27729         with AIX xlc.
27730         * lib/fcntl.in.h (open): Likewise.
27731         Reported by Rainer Tammer <tammer@tammer.net>.
27732
27733 2008-09-28  Bruno Haible  <bruno@clisp.org>
27734
27735         * modules/posix_spawnp-tests: New file.
27736         * tests/test-posix_spawn.c: New file.
27737         * tests/test-posix_spawn.in.sh: New file.
27738
27739         New module 'posix_spawnp'.
27740         * modules/posix_spawnp: New file.
27741         * lib/spawnp.c: New file, from GNU libc with modifications.
27742         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
27743
27744         New module 'posix_spawn'.
27745         * modules/posix_spawn: New file.
27746         * lib/spawn.c: New file, from GNU libc with modifications.
27747         * doc/posix-functions/posix_spawn.texi: Mention the new module.
27748
27749         New module 'posix_spawnattr_destroy'.
27750         * modules/posix_spawnattr_destroy: New file.
27751         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
27752         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
27753         module.
27754
27755         New module 'posix_spawnattr_setsigmask'.
27756         * modules/posix_spawnattr_setsigmask: New file.
27757         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
27758         modifications.
27759         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
27760         new module.
27761
27762         New module 'posix_spawnattr_getsigmask'.
27763         * modules/posix_spawnattr_getsigmask: New file.
27764         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
27765         modifications.
27766         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
27767         new module.
27768
27769         New module 'posix_spawnattr_setsigdefault'.
27770         * modules/posix_spawnattr_setsigdefault: New file.
27771         * lib/spawnattr_setdefault.c: New file, from GNU libc with
27772         modifications.
27773         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
27774         new module.
27775
27776         New module 'posix_spawnattr_getsigdefault'.
27777         * modules/posix_spawnattr_getsigdefault: New file.
27778         * lib/spawnattr_getdefault.c: New file, from GNU libc with
27779         modifications.
27780         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
27781         new module.
27782
27783         New module 'posix_spawnattr_setschedpolicy'.
27784         * modules/posix_spawnattr_setschedpolicy: New file.
27785         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
27786         modifications.
27787         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
27788         new module.
27789
27790         New module 'posix_spawnattr_getschedpolicy'.
27791         * modules/posix_spawnattr_getschedpolicy: New file.
27792         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
27793         modifications.
27794         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
27795         new module.
27796
27797         New module 'posix_spawnattr_setschedparam'.
27798         * modules/posix_spawnattr_setschedparam: New file.
27799         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
27800         modifications.
27801         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
27802         new module.
27803
27804         New module 'posix_spawnattr_getschedparam'.
27805         * modules/posix_spawnattr_getschedparam: New file.
27806         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
27807         modifications.
27808         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
27809         new module.
27810
27811         New module 'posix_spawnattr_setpgroup'.
27812         * modules/posix_spawnattr_setpgroup: New file.
27813         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
27814         modifications.
27815         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
27816         module.
27817
27818         New module 'posix_spawnattr_getpgroup'.
27819         * modules/posix_spawnattr_getpgroup: New file.
27820         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
27821         modifications.
27822         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
27823         module.
27824
27825         New module 'posix_spawnattr_setflags'.
27826         * modules/posix_spawnattr_setflags: New file.
27827         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
27828         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
27829         module.
27830
27831         New module 'posix_spawnattr_getflags'.
27832         * modules/posix_spawnattr_getflags: New file.
27833         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
27834         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
27835         module.
27836
27837         New module 'posix_spawnattr_init'.
27838         * modules/posix_spawnattr_init: New file.
27839         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
27840         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
27841         module.
27842
27843         New module 'posix_spawn_file_actions_destroy'.
27844         * modules/posix_spawn_file_actions_destroy: New file.
27845         * lib/spawn_faction_destroy.c: New file, from GNU libc with
27846         modifications.
27847         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
27848         the new module.
27849
27850         New module 'posix_spawn_file_actions_addopen'.
27851         * modules/posix_spawn_file_actions_addopen: New file.
27852         * lib/spawn_faction_addopen.c: New file, from GNU libc with
27853         modifications.
27854         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27855         the new module.
27856
27857         New module 'posix_spawn_file_actions_adddup2'.
27858         * modules/posix_spawn_file_actions_adddup2: New file.
27859         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
27860         modifications.
27861         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27862         the new module.
27863
27864         New module 'posix_spawn_file_actions_addclose'.
27865         * modules/posix_spawn_file_actions_addclose: New file.
27866         * lib/spawn_faction_addclose.c: New file, from GNU libc with
27867         modifications.
27868         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27869         the new module.
27870
27871         New module 'posix_spawn_file_actions_init'.
27872         * modules/posix_spawn_file_actions_init: New file.
27873         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
27874         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
27875         new module.
27876
27877         New module 'posix_spawn-internal'.
27878         * modules/posix_spawn-internal: New file.
27879         * lib/spawn_int.h: New file, from GNU libc with modifications.
27880         * lib/spawni.c: New file, from GNU libc with modifications.
27881         * m4/posix_spawn.m4: New file.
27882
27883         New module 'spawn'.
27884         * modules/spawn: New file.
27885         * lib/spawn.in.h: New file, from GNU libc with modifications.
27886         * m4/spawn_h.m4: New file.
27887         * doc/posix-headers/spawn.texi: Mention the new module.
27888
27889 2008-09-28  Bruno Haible  <bruno@clisp.org>
27890
27891         * modules/sched-tests: New file.
27892         * tests/test-sched.c: New file.
27893
27894         New module 'sched'.
27895         * modules/sched: New file.
27896         * lib/sched.in.h: New file.
27897         * m4/sched_h.m4: New file.
27898         * doc/posix-headers/sched.texi: Mention the new module.
27899
27900 2008-09-27  Eric Blake  <ebb9@byu.net>
27901
27902         Fix previous patch, and tweak references to $0.
27903         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
27904         (func_version, func_gnulib_dir): Don't call this program
27905         gnulib-tool.
27906         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
27907         with using $0 in function.
27908         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
27909         (func_fatal_error): Reuse the name the user invoked us with.
27910
27911 2008-09-27  Bruno Haible  <bruno@clisp.org>
27912
27913         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
27914         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
27915         (gl_ICONV_H): Not here.
27916         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27917         instead of assigning ICONV_H directly.
27918
27919         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
27920         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
27921         WCHAR_H directly.
27922
27923 2008-09-27  Bruno Haible  <bruno@clisp.org>
27924
27925         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
27926         * modules/arpa_inet (Depends-on): Add link-warning.
27927         (Makefile.am): Insert the definition of GL_LINK-WARNING.
27928         * modules/unistd (Makefile.am): Likewise.
27929
27930 2008-09-26  Bruno Haible  <bruno@clisp.org>
27931
27932         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
27933         variables.
27934         (func_version): Essentially copied from gnulib-tool.
27935         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
27936         func_readlink): Copied from gnulib-tool.
27937
27938 2008-09-26  Bruno Haible  <bruno@clisp.org>
27939
27940         * gnulib-tool (func_version): Change directory to $gnulib_dir before
27941         invoking git-version-gen.
27942
27943 2008-09-26  Bruno Haible  <bruno@clisp.org>
27944
27945         * posix-modules: Update to directory names changed on 2008-01-19.
27946         Remove commas in output before splitting into words. No more need to
27947         avoid 'ftruncate' since 2007-02-19.
27948
27949 2008-09-26  Bruno Haible  <bruno@clisp.org>
27950
27951         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
27952
27953 2008-09-26  Bruno Haible  <bruno@clisp.org>
27954
27955         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
27956         * modules/fwriteerror (Depends-on): Add errno.
27957
27958 2008-09-26  Bruno Haible  <bruno@clisp.org>
27959
27960         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
27961         * tests/test-vc-list-files-cvs.sh: Likewise.
27962
27963 2008-09-26  Bruno Haible  <bruno@clisp.org>
27964
27965         * doc/posix-headers/sys_resource.texi: Reorder items.
27966
27967 2008-09-26  Jim Meyering  <meyering@redhat.com>
27968
27969         fts: tweak inode comparison function
27970         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
27971         inode numbers, as documented.
27972
27973         fts: sort dirent entries on inode number before traversing
27974         This avoids a quadratic, seek-related performance penalty when
27975         operating on a directory containing many entries (measurable at 10k;
27976         3.5 hours at 2 million entries with a cold cache) on certain types
27977         of file systems, including ext3 and ext4, but not tmpfs.
27978         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
27979         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
27980         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
27981         (fs_handles_readdir_ordered_dirents_efficiently): New function.
27982         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
27983         (fts_build): Set the stat.st_ino member from D_INO.
27984         If it is likely to be useful, sort dirent entries on inode number.
27985
27986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
27987         and the struct statfs.f_type member.
27988         * modules/fts (Depends-on): Add d-ino.
27989
27990 2008-09-26  Bruno Haible  <bruno@clisp.org>
27991
27992         * modules/sigpipe-die (Depends-on): Add sigpipe.
27993
27994         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
27995         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
27996         and GNULIB_STDIO_H_SIGPIPE are set.
27997         * lib/stdio-write.c: New file.
27998         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
27999         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28000         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28001         REPLACE_STDIO_WRITE_FUNCS.
28002         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28003         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28004         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28005         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28006         * modules/stdio (Files): Add lib/stdio-write.c.
28007         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28008         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28009         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28010         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28011         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28012         REPLACE_FPRINTF_POSIX.
28013         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28014         REPLACE_PRINTF_POSIX.
28015         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28016         REPLACE_VFPRINTF_POSIX.
28017         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28018         REPLACE_VPRINTF_POSIX.
28019         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28020         SIGPIPE issue.
28021         * doc/posix-functions/fputc.texi: Likewise.
28022         * doc/posix-functions/fputs.texi: Likewise.
28023         * doc/posix-functions/fwrite.texi: Likewise.
28024         * doc/posix-functions/printf.texi: Likewise.
28025         * doc/posix-functions/putc.texi: Likewise.
28026         * doc/posix-functions/putchar.texi: Likewise.
28027         * doc/posix-functions/puts.texi: Likewise.
28028         * doc/posix-functions/vfprintf.texi: Likewise.
28029         * doc/posix-functions/vprintf.texi: Likewise.
28030
28031         * modules/safe-write (Depends-on): Add write.
28032
28033         * modules/sigpipe-tests: New file.
28034         * tests/test-sigpipe.c: New file.
28035         * tests/test-sigpipe.sh: New file.
28036
28037         * modules/write: New file.
28038         * lib/unistd.in.h: Include <sys/types.h>.
28039         (write): New declaration.
28040         * lib/write.c: New file.
28041         * m4/write.m4: New file.
28042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28043         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28044         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28045         GNULIB_WRITE, REPLACE_WRITE.
28046         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28047         and the SIGPIPE issue.
28048
28049         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28050         (raise): New declaration.
28051         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28052         (ext_signal): New function.
28053         (rpl_raise): New function.
28054         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28055         GNULIB_SIGNAL_H_SIGPIPE.
28056         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28057         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28058
28059         * modules/sigpipe: New file.
28060         * m4/sigpipe.m4: New file.
28061
28062 2008-09-25  Derek Price  <derek@ximbiot.com>
28063             Bruno Haible  <bruno@clisp.org>
28064
28065         * gnulib-tool (func_import): Report all license incompatibilities, not
28066         just the first one.
28067
28068 2008-09-25  Bruno Haible  <bruno@clisp.org>
28069
28070         * gnulib-tool (func_import): When computing the edits, consider not
28071         only the Makefile.ams that exist but also those that will be generated.
28072
28073 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28074
28075         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28076         fixes gnulib-tool --test warning about duplicate dependency.
28077
28078 2008-09-25  Bruno Haible  <bruno@clisp.org>
28079
28080         * gnulib-tool: Don't ask the user to perform edits in the generated
28081         Makefile.ams.
28082         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28083         apply to the Makefile.am being generated.
28084         (func_emit_tests_Makefile_am): Execute edits that apply to the
28085         Makefile.am being generated.
28086         (func_import): Setup list of Makefile.am edits before emitting the
28087         Makefile.ams, not at the end.
28088         (func_create_testdir): Update.
28089         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28090
28091 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28092
28093         * gnulib-tool (func_import): Store the --tests-base option in the
28094         comment in gnulib-cache.m4.
28095
28096 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28097
28098         * NEWS: Document increased portability that sys_select now provides.
28099
28100         * lib/sys_select.in.h: Install select wrapper.
28101         * lib/sys_socket.in.h: Use more descriptive name when there is no
28102         select wrapper.
28103         * lib/winsock-select.c: New.
28104         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28105         Require gl_HEADER_SYS_SOCKET.
28106         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28107         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28108         * tests/test-sys_select.c: Add functional tests.
28109
28110 2008-09-24  Eric Blake  <ebb9@byu.net>
28111
28112         open, fopen: close fd leak in last patch
28113         * lib/open.c (rpl_open): Close fd before returning error.
28114         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28115         * doc/posix-functions/open.texi (open): Document that Irix also
28116         has the bug.
28117         * doc/posix-functions/fopen.texi (fopen): Likewise.
28118         Reported by Paolo Bonzini.
28119
28120 2008-09-24  Bruno Haible  <bruno@clisp.org>
28121
28122         Ensure that a filename ending in a slash cannot be used to access a
28123         non-directory.
28124         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28125         to check whether it's really a directory.
28126         * lib/fopen.c: Include fcntl.h, unistd.h.
28127         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28128         and fdopen().
28129         * modules/fopen (Depends-on): Add unistd.
28130         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28131         * tests/test-fopen.c (main): Likewise.
28132         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28133         * doc/posix-functions/fopen.texi: Likewise.
28134         Reported by Eric Blake.
28135
28136 2008-09-23  Eric Blake  <ebb9@byu.net>
28137
28138         c-stack: avoid compiler optimizations when provoking overflow
28139         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28140         recursion harder to optimize, to ensure a stack overflow occurs.
28141         * tests/test-c-stack.c (recurse): Likewise.
28142         Borrowed from libsigsegv.
28143
28144         c-stack: work around Irix sigaltstack bug
28145         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28146         whether sigaltstack uses wrong end of stack_t (copied in part from
28147         libsigsegv).
28148         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28149         Irix bug, without requiring an over-allocation.
28150         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28151         bug.
28152
28153         fopen: document mingw bug on directories
28154         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28155         not allowing a stream visiting a directory, even though reading
28156         from such a stream is not portable.
28157
28158 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28159
28160         * lib/poll.c: Rewrite.
28161         * modules/poll: Depend on alloca.
28162
28163 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28164
28165         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28166         instead define prototypes for a full set of wrappers.  Ensure
28167         that Cygwin does not use the compatibility code, which is only
28168         for MinGW.
28169         * lib/winsock.c: New.
28170         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28171         * modules/sys_socket: Add lib/winsock.c.
28172
28173         * modules/poll-tests: Add errno and perror.
28174         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28175
28176 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28177
28178         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28179
28180 2008-09-23  Bruno Haible  <bruno@clisp.org>
28181
28182         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28183         * doc/glibc-functions/*: Likewise.
28184
28185 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28186
28187         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28188         success.
28189
28190 2008-09-22  Eric Blake  <ebb9@byu.net>
28191             Bruno Haible  <bruno@clisp.org>
28192
28193         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28194         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28195         supply %A but mishandle pseudo-NaN.
28196         Reported by Simon Josefsson.
28197
28198 2008-09-21  Bruno Haible  <bruno@clisp.org>
28199
28200         * tests/test-lock.c (main): Tweak skip message.
28201         * tests/test-tls.c (main): Likewise.
28202
28203 2008-09-21  Bruno Haible  <bruno@clisp.org>
28204
28205         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28206         whether 'struct sigaction' has sa_sigaction here...
28207         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28208         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28209
28210 2008-09-21  Bruno Haible  <bruno@clisp.org>
28211
28212         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28213         section.
28214         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28215         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28216         the new section.
28217         (Support for obsolete systems lacking POSIX:2001): New section.
28218         (String handling <string.h>): Move strdup to the new section.
28219         Suggested by Simon Josefsson and Paolo Bonzini.
28220
28221 2008-09-21  Bruno Haible  <bruno@clisp.org>
28222
28223         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28224         exponents in %e and %g results on 'long double'. Needed for mingw's
28225         improved *printf functions.
28226         * tests/test-vasprintf-posix.c (test_function): Likewise.
28227         * tests/test-snprintf-posix.h (test_function): Likewise.
28228         * tests/test-sprintf-posix.h (test_function): Likewise.
28229         Reported by Eric Blake.
28230
28231 2008-09-21  Bruno Haible  <bruno@clisp.org>
28232
28233         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28234         * tests/test-sprintf-posix.h (test_function): Likewise.
28235
28236 2008-09-21  Bruno Haible  <bruno@clisp.org>
28237
28238         * modules/getpass (Depends-on): Add strdup-posix.
28239
28240         New module 'strdup-posix'.
28241         * modules/strdup-posix: New file.
28242         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28243         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28245         REPLACE_STRDUP.
28246         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
28247         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
28248         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28249         strdup-posix.
28250
28251         * modules/strdup (Depends-on): Remove malloc-posix.
28252
28253 2008-09-20  Bruno Haible  <bruno@clisp.org>
28254
28255         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
28256         Wildenhues.
28257
28258 2008-09-20  Bruno Haible  <bruno@clisp.org>
28259
28260         Ensure that wint_t gets defined on IRIX 5.3.
28261         * lib/wchar.in.h (wint_t): Define if not defined by the system.
28262         * lib/wctype.in.h (wint_t): Likewise.
28263         (__wctype_wint_t): Remove type.
28264         (isw*): Use wint_t instead of __wctype_wint_t.
28265         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
28266         * modules/wchar (Files): Add m4/wint_t.m4.
28267         (Makefile.am): Substitute HAVE_WINT_T.
28268         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
28269         * tests/test-wctype.c: Check that wint_t is defined.
28270         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
28271         * doc/posix-headers/wctype.texi: Likewise.
28272         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28273
28274 2008-09-18  Bruno Haible  <bruno@clisp.org>
28275
28276         * gnulib-tool (func_exit): Update comment.
28277
28278 2008-09-18  Simon Josefsson  <simon@josefsson.org>
28279
28280         * modules/getaddrinfo (Depends-on): Remove strdup, this module
28281         assumes strdup exists and does not depend on strdup to return
28282         ENOMEM on out of memory conditions.
28283
28284 2008-09-18  Bruno Haible  <bruno@clisp.org>
28285
28286         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
28287         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28288         digits for the exponent.
28289
28290 2008-09-18  Jim Meyering  <meyering@redhat.com>
28291             Bruno Haible  <bruno@clisp.org>
28292
28293         * lib/vasnprintf.c (decimal_point_char): Define also if
28294         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28295
28296 2008-09-16  Bruno Haible  <bruno@clisp.org>
28297         and Eric Blake  <ebb9@byu.net>
28298
28299         vasnprintf: support Irix 5.3
28300         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28301         that mishandle long double infinity.
28302         Reported by Tom G. Christensen.
28303
28304 2008-09-16  Bruno Haible  <bruno@clisp.org>
28305
28306         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28307         Solaris 9.
28308         * doc/glibc-functions/alphasort.texi: Likewise.
28309         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28310
28311 2008-09-16  Jim Meyering  <meyering@redhat.com>
28312
28313         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28314         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28315         a umask modification leak out of a subshell.  Otherwise, the
28316         opensolaris /bin/sh would be accepted and thus cause unwarranted
28317         failures in the coreutils test suite.
28318
28319 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28320
28321         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28322         to succeed.
28323
28324 2008-09-16  Jim Meyering  <meyering@redhat.com>
28325
28326         avoid spurious test failure when library is built without ACL support
28327         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28328         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28329         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28330         * tests/test-copy-acl.sh: Likewise.
28331
28332 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28333
28334         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28335         based on character occurrence counts.
28336
28337 2008-09-15  Eric Blake  <ebb9@byu.net>
28338
28339         tests: avoid some compiler warnings
28340         * tests/test-memchr.c (main): Pass NULL indirectly.
28341         * tests/test-closein.c (main): Avoid unused variable.
28342
28343 2008-09-15  Bruno Haible  <bruno@clisp.org>
28344
28345         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28346         are missing on OpenBSD 4.0 individually.
28347         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28348
28349 2008-09-15  Bruno Haible  <bruno@clisp.org>
28350
28351         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28352         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28353         * doc/posix-functions/perror.texi: Likewise.
28354         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28355         is missing.
28356         Reported by Eric Blake.
28357
28358         * lib/errno.in.h: Use replacement values >= 2000.
28359         Reported by Eric Blake.
28360
28361 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28362
28363         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28364         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28365         limit.
28366         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28367         compareseq was aborted.
28368
28369 2008-09-14  Bruno Haible  <bruno@clisp.org>
28370
28371         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28372         yvec_edit_count.
28373         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28374         (fstrcmp_bounded): Simplify result computation accordingly.
28375
28376 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28377
28378         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28379         (fstrcmp): Define in terms of fstrcmp_bounded.
28380         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28381         lower_bound argument.
28382         Return quickly if the result is certainly < lower_bound.
28383         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28384
28385 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28386
28387         * lib/diffseq.h (EARLY_ABORT): New macro.
28388         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28389         evaluates to true.
28390
28391 2008-09-14  Bruno Haible  <bruno@clisp.org>
28392
28393         * modules/perror-tests: New file.
28394         * tests/test-perror.sh: New file.
28395         * tests/test-perror.c: New file.
28396
28397         New module 'perror'.
28398         * lib/stdio.in.h (perror): New declaration.
28399         * lib/perror.c: New file.
28400         * m4/perror.m4: New file.
28401         * modules/perror: New file.
28402         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28403         * doc/posix-functions/perror.texi: Mention the perror module.
28404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28405         REPLACE_PERROR.
28406         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28407         REPLACE_PERROR.
28408
28409 2008-09-14  Bruno Haible  <bruno@clisp.org>
28410
28411         * modules/stdio (Makefile.am): Reorder to match the order in
28412         lib/stdio.in.h.
28413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28414
28415 2008-09-13  Bruno Haible  <bruno@clisp.org>
28416
28417         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
28418
28419 2008-09-13  Bruno Haible  <bruno@clisp.org>
28420
28421         Extend strerror to cover the added errno values.
28422         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
28423         (rpl_strerror): Provide error messages for the added errno values and
28424         for the WSA* values.
28425         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
28426         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
28427         strerror.
28428         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
28429         * modules/strerror (Depends-on): Add errno.
28430         * doc/posix-functions/strerror.texi: Document the change.
28431         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
28432         and EOVERFLOW.
28433
28434 2008-09-13  Bruno Haible  <bruno@clisp.org>
28435
28436         * modules/EOVERFLOW: Remove file.
28437         * m4/eoverflow.m4: Remove file.
28438         * modules/EOVERFLOW-tests: Remove file.
28439         * tests/test-EOVERFLOW.c: Remove file.
28440         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
28441         * modules/ftell (Depends-on): Likewise.
28442         * modules/getdelim (Depends-on): Likewise.
28443         * modules/getugroups (Depends-on): Likewise.
28444         * modules/poll (Depends-on): Likewise.
28445         * modules/snprintf (Depends-on): Likewise.
28446         * modules/sprintf-posix (Depends-on): Likewise.
28447         * modules/vasnprintf (Depends-on): Likewise.
28448         * modules/vasprintf (Depends-on): Likewise.
28449         * modules/vfprintf-posix (Depends-on): Likewise.
28450         * modules/vsnprintf (Depends-on): Likewise.
28451         * modules/vsprintf-posix (Depends-on): Likewise.
28452         * modules/xvasprintf (Depends-on): Likewise.
28453         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28454         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
28455         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
28456         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
28457         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28458         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
28459         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
28460         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
28461         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28462         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
28463         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
28464         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
28465         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28466         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
28467         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
28468         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
28469         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28470         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
28471         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
28472         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
28473         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28474         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
28475         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
28476         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
28477         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
28478         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28479         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
28480         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
28481         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
28482         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
28483         * MODULES.html.sh: Remove EOVERFLOW.
28484         * NEWS: Mention the change.
28485
28486 2008-09-13  Bruno Haible  <bruno@clisp.org>
28487
28488         * modules/errno-tests: New file.
28489         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
28490
28491         * lib/errno.in.h: New file.
28492         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
28493         * modules/errno: New file.
28494         * doc/posix-headers/errno.texi: Update documentation.
28495         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
28496
28497 2008-09-13  Bruno Haible  <bruno@clisp.org>
28498
28499         * tests/test-poll.c: Use #if for native Windows, rather than testing
28500         __MSVCRT__.
28501
28502 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28503             Bruno Haible  <bruno@clisp.org>
28504
28505         * lib/glob.c: Don't include <pwd.h> on native Windows.
28506         (WINDOWS32): New macro.
28507         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
28508
28509 2008-09-13  Bruno Haible  <bruno@clisp.org>
28510
28511         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
28512         (ETIMEDOUT): Remove macro.
28513         (glthread_cond_timedwait_multithreaded): New declaration.
28514         (glthread_cond_timedwait): Use it.
28515         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28516         (glthread_cond_timedwait_multithreaded): New function.
28517
28518 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28519
28520         * modules/poll-tests: Do not check for io.h.
28521         * tests/test-poll.c: Check for __MSVCRT__ instead.
28522
28523 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28524
28525         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
28526         * modules/poll-tests: Add inet_pton, stdbool, sockets.
28527         * tests/test-poll.c: Use them.  Use _pipe on Windows.
28528
28529 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28530
28531         * modules/poll-tests: New.
28532         * tests/test-poll.c: New.
28533
28534 2008-09-12  Eric Blake  <ebb9@byu.net>
28535
28536         frexp: test for NetBSD failure on -0.0
28537         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
28538         not all, bugs from NetBSD 3.0 have been fixed.
28539         * doc/posix-functions/frexp.texi (frexp): Document bug.
28540         Reported by Thomas Klausner.
28541
28542         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
28543         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
28544         literal -0.0.
28545         Reported by Jonathan C. Patschke <jp@centtech.com>.
28546
28547 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28548
28549         * lib/glthread/cond.h: Use dummy implementation also if
28550         USE_WIN32_THREADS.
28551
28552 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28553
28554         * modules/fnmatch-posix (License): Change to LGPLv2+.
28555         * modules/fnmatch-gnu (License): Likewise.
28556
28557 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28558
28559         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
28560
28561 2008-09-11  Jim Meyering  <meyering@redhat.com>
28562
28563         * users.txt: Add gtk-vnc.
28564
28565 2008-09-08  Simon Josefsson  <simon@josefsson.org>
28566
28567         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
28568         rotate amounts.
28569
28570         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
28571         required for 16-bit and 8-bit rotates.
28572         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
28573         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
28574         UINT8_MAX instead of hard-coded constants.
28575         Suggested by Paul Eggert.
28576
28577 2008-09-07  Bruno Haible  <bruno@clisp.org>
28578
28579         * tests/test-striconveh.c (main): Check behaviour when converting from
28580         UTF-7.
28581
28582         Make striconveh work better with stateful encodings.
28583         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
28584         that iconv does not increment the inptr when returning -1/EINVAL.
28585
28586 2008-09-07  Bruno Haible  <bruno@clisp.org>
28587
28588         * build-aux/config.rpath: Update according to libtool-2.2.6.
28589         * build-aux/config.libpath: Likewise.
28590
28591 2008-09-06  Bruno Haible  <bruno@clisp.org>
28592
28593         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
28594         * lib/freadptr.c (freadptr): Likewise.
28595         * lib/freadseek.c (freadptrinc): Likewise.
28596         Reported by Simon Josefsson.
28597
28598 2008-09-06  Bruno Haible  <bruno@clisp.org>
28599
28600         * modules/freadptr (License): Change to LGPLv2+.
28601         * modules/freadseek (License): Likewise.
28602         Suggested by Eric Blake.
28603
28604         * modules/memchr2 (License): Change to LGPLv2+.
28605         Approved by Eric Blake.
28606
28607 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28608             Bruno Haible  <bruno@clisp.org>
28609
28610         Make gnulib-tool work with native 'sed' on AIX.
28611         * gnulib-tool (sed_noop): New variable.
28612         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
28613         func_add_or_update, func_create_testdir): Use it to initialize sed
28614         script variables.
28615         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28616
28617 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
28618             Bruno Haible  <bruno@clisp.org>
28619
28620         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
28621         also works after #include directives.
28622
28623 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
28624
28625         getdate.y: reject an out-of-range timezone value
28626         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
28627         the range [-24...+24].  When specified with only one or two digits,
28628         * tests/test-getdate.c: Tests for the fix.
28629         * doc/getdate.texi: Document this change.
28630
28631 2008-09-03  Bruno Haible  <bruno@clisp.org>
28632
28633         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
28634
28635 2008-09-02  Simon Josefsson  <simon@josefsson.org>
28636
28637         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
28638         <bruce.korb@gmail.com> with ideas from Ben Pfaff
28639         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
28640         Blake <ebb9@byu.net>.
28641
28642         * tests/test-bitrotate.c: Add more test vectors.
28643
28644 2008-09-02  Eric Blake  <ebb9@byu.net>
28645
28646         vasnprintf-posix: handle large precision via %.*d
28647         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
28648         when handling it ourselves.
28649         * tests/test-vasnprintf-posix.c (test_function): Add test.
28650         * tests/test-snprintf-posix.h (test_function): Likewise.
28651         * tests/test-sprintf-posix.h (test_function): Likewise.
28652         * tests/test-vasprintf-posix.c (test_function): Likewise.
28653         Reported by Alain Guibert.
28654
28655 2008-09-01  Eric Blake  <ebb9@byu.net>
28656
28657         c-stack: make configure-time check more robust
28658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
28659         successful sigaction call.
28660         Reported by Tom G. Christensen.
28661
28662 2008-09-01  Bruno Haible  <bruno@clisp.org>
28663
28664         New module 'findprog-lgpl'.
28665         * modules/findprog-lgpl: New file.
28666         * lib/findprog-lgpl.c: New file.
28667         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
28668         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
28669         to decide whether to use strdup or xstrdup, concatenated_filename or
28670         xconcatenated_filename.
28671
28672 2008-09-01  Bruno Haible  <bruno@clisp.org>
28673
28674         Split module 'concat-filename' into 'concat-filename' (LGPL) and
28675         'xconcat-filename' (GPL).
28676         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
28677         (License): Change to LGPLv2+.
28678         * modules/xconcat-filename: New file.
28679         * lib/concat-filename.h (concatenated_filename): Change specification.
28680         (xconcatenated_filename): New declaration.
28681         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
28682         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
28683         memory situations.
28684         * lib/xconcat-filename.c: New file.
28685         * NEWS: Mention the change.
28686         * lib/findprog.c: Include concat-filename.h, not filename.h.
28687         (find_in_path): Use xconcatenated_filename instead of
28688         concatenated_filename.
28689         * lib/javacomp.c: Include concat-filename.h, not filename.h.
28690         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28691         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28692         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28693         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
28694         instead of concatenated_filename.
28695         * lib/javaexec.c: Include concat-filename.h, not filename.h.
28696         (execute_java_class): Use xconcatenated_filename instead of
28697         concatenated_filename.
28698         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
28699         * modules/javacomp (Depends-on): Likewise.
28700         * modules/javaexec (Depends-on): Likewise.
28701
28702 2008-09-01  Bruno Haible  <bruno@clisp.org>
28703
28704         Split module 'filename' into 'filename' and 'concat-filename'.
28705         * modules/filename: Keep only lib/filename.h.
28706         (License): Change to LGPLv2+.
28707         * modules/concat-filename: New file, extracted from modules/filename.
28708         * lib/filename.h (concatenated_filename): Remove declaration.
28709         * lib/concat-filename.h: New file, extracted from lib/filename.h.
28710         * lib/concat-filename.c: Include concat-filename.h.
28711         * NEWS: Mention the change.
28712
28713 2008-09-01  Simon Josefsson  <simon@josefsson.org>
28714
28715         * lib/bitrotate.h (rotl8, rotr8): Add.
28716
28717         * modules/bitrotate (configure.ac): Need
28718         AC_REQUIRE([AC_C_INLINE]).
28719         (Description): Mention stdint.h.  Reported by Bruno Haible
28720         <bruno@clisp.org>.
28721
28722         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
28723         Paolo Bonzini <bonzini@gnu.org>.
28724
28725 2008-08-31  Bruno Haible  <bruno@clisp.org>
28726
28727         Assume Solaris specific bi-arch conventions on Solaris systems.
28728         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
28729         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
28730         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
28731         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
28732         like acl_libdirstem.
28733         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
28734         acl_libdirstem.
28735         * NEWS: Mention the change.
28736         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
28737
28738 2008-08-31  Jim Meyering  <meyering@redhat.com>
28739
28740         * lib/strftime.h: Add comments describing the two added arguments.
28741
28742         remove duplicate #include directives
28743         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
28744         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
28745
28746 2008-08-31  Bruno Haible  <bruno@clisp.org>
28747
28748         New module 'sigpipe-die'.
28749         * modules/sigpipe-die: New file.
28750         * lib/sigpipe-die.h: New file.
28751         * lib/sigpipe-die.c: New file.
28752         * MODULES.html.sh (Signal handling): Add sigpipe-die.
28753
28754 2008-08-31  Bruno Haible  <bruno@clisp.org>
28755
28756         Don't override previously installed signal handlers.
28757         * lib/fatal-signal.c (saved_sigactions): New variable.
28758         (uninstall_handlers): Reset the signal to the saved handler, not
28759         to SIG_DFL (except when ignored).
28760         (install_handlers): Save the previous handlers.
28761
28762 2008-08-30  Bruno Haible  <bruno@clisp.org>
28763
28764         * gnulib-tool (func_reset_sigpipe): New function.
28765         (func_get_automake_snippet, func_modules_transitive_closure,
28766         func_import): Invoke it before a join command that reads from stdin,
28767         to avoid "echo: write error: Broken pipe" error messages on stderr.
28768         Reported by Sam Steingold <sds@gnu.org>.
28769
28770 2008-08-30  Bruno Haible  <bruno@clisp.org>
28771
28772         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
28773         Code copied from m4/open.m4.
28774         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
28775         access and the filename ends in a slash. Code copied from lib/open.c.
28776         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
28777         * tests/test-fopen.c (main): Check against bug with trailing slash.
28778
28779 2008-08-29  Bruno Haible  <bruno@clisp.org>
28780
28781         Avoid some "gcc -pedantic" warnings.
28782         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
28783         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
28784         * lib/dirent.in.h: Likewise.
28785         * lib/fcntl.in.h: Likewise.
28786         * lib/float.in.h: Likewise.
28787         * lib/iconv.in.h: Likewise.
28788         * lib/inttypes.in.h: Likewise.
28789         * lib/locale.in.h: Likewise.
28790         * lib/math.in.h: Likewise.
28791         * lib/netinet_in.in.h: Likewise.
28792         * lib/search.in.h: Likewise.
28793         * lib/signal.in.h: Likewise.
28794         * lib/stdarg.in.h: Likewise.
28795         * lib/stdint.in.h: Likewise.
28796         * lib/stdio.in.h: Likewise.
28797         * lib/stdlib.in.h: Likewise.
28798         * lib/string.in.h: Likewise.
28799         * lib/strings.in.h: Likewise.
28800         * lib/sys_select.in.h: Likewise.
28801         * lib/sys_socket.in.h: Likewise.
28802         * lib/sys_stat.in.h: Likewise.
28803         * lib/sys_time.in.h: Likewise.
28804         * lib/sysexits.in.h: Likewise.
28805         * lib/time.in.h: Likewise.
28806         * lib/unistd.in.h: Likewise.
28807         * lib/wchar.in.h: Likewise.
28808         * lib/wctype.in.h: Likewise.
28809         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
28810         * modules/fchdir (Makefile.am): Likewise.
28811         * modules/fcntl (Makefile.am): Likewise.
28812         * modules/float (Makefile.am): Likewise.
28813         * modules/iconv_open (Makefile.am): Likewise.
28814         * modules/inttypes (Makefile.am): Likewise.
28815         * modules/locale (Makefile.am): Likewise.
28816         * modules/math (Makefile.am): Likewise.
28817         * modules/netinet_in (Makefile.am): Likewise.
28818         * modules/search (Makefile.am): Likewise.
28819         * modules/signal (Makefile.am): Likewise.
28820         * modules/stdarg (Makefile.am): Likewise.
28821         * modules/stdint (Makefile.am): Likewise.
28822         * modules/stdio (Makefile.am): Likewise.
28823         * modules/stdlib (Makefile.am): Likewise.
28824         * modules/string (Makefile.am): Likewise.
28825         * modules/strings (Makefile.am): Likewise.
28826         * modules/sys_select (Makefile.am): Likewise.
28827         * modules/sys_socket (Makefile.am): Likewise.
28828         * modules/sys_stat (Makefile.am): Likewise.
28829         * modules/sys_time (Makefile.am): Likewise.
28830         * modules/sysexits (Makefile.am): Likewise.
28831         * modules/time (Makefile.am): Likewise.
28832         * modules/unistd (Makefile.am): Likewise.
28833         * modules/wchar (Makefile.am): Likewise.
28834         * modules/wctype (Makefile.am): Likewise.
28835         Reported by Reuben Thomas <rrt@sc3d.org>.
28836
28837 2008-08-29  Bruno Haible  <bruno@clisp.org>
28838
28839         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
28840         any more.
28841
28842 2008-08-29  Simon Josefsson  <simon@josefsson.org>
28843
28844         * MODULES.html.sh (Misc): Add bitrotate.
28845
28846         * modules/bitrotate: New file.
28847
28848         * lib/bitrotate.h: New file.
28849
28850         * modules/bitrotate-tests: New file.
28851
28852         * tests/test-bitrotate.c: New file.
28853
28854         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
28855         on the bitrotate module.
28856
28857         * lib/arctwo.c: Use new bitrotate module.
28858
28859 2008-08-29  Jim Meyering  <meyering@redhat.com>
28860
28861         bootstrap: merge changes from coreutils
28862         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
28863         of copied files.  Remove a kludge, now that this is fixed.
28864         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
28865         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
28866         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
28867
28868 2008-08-29  Bruno Haible  <bruno@clisp.org>
28869
28870         * MODULES.html.sh: Remove --cvs-urls option.
28871
28872 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
28873
28874         maint.mk: adjust to file name change
28875         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
28876
28877 2008-08-28  Jim Meyering  <meyering@redhat.com>
28878
28879         * modules/getndelim2 (License): Relicense to LGPLv2+.
28880         Approved by Richard Stallman for the version of 1995, and by
28881         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
28882
28883 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
28884
28885         * lib/getdelim.c (flockfile, funlockfile): Make all of them
28886         dummy if one is not available.  Do not touch them if
28887         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
28888         (getc_maybe_unlocked): New.
28889         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
28890
28891 2008-08-26  Eric Blake  <ebb9@byu.net>
28892
28893         doc/INSTALL: resync from autoconf
28894         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
28895         (INSTALL_PRELUDE): Delete; this is done more efficiently by
28896         moving...
28897         * install.texi [!autoconf]: ...here.  Resync from autoconf.
28898         * INSTALL: Regenerate.
28899         * INSTALL.ISO: New file.
28900         * INSTALL.UTF-8: Likewise.
28901
28902 2008-08-26  Jim Meyering  <meyering@redhat.com>
28903
28904         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
28905         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
28906         these definitions conditional, so that they may be overridden, too.
28907
28908 2008-08-26  Bruno Haible  <bruno@clisp.org>
28909
28910         Generate INSTALL file variants with prettier quotes.
28911         * doc/Makefile (INSTALL_PRELUDE): New macro.
28912         (INSTALL): Use it.
28913         (INSTALL.ISO, INSTALL.UTF-8): New rules.
28914
28915 2008-08-26  Bruno Haible  <bruno@clisp.org>
28916
28917         Run makeinfo in an English locale.
28918         * doc/Makefile (MAKEINFO): New variable.
28919
28920 2008-08-26  Bruno Haible  <bruno@clisp.org>
28921
28922         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
28923         Suggested by Eric Blake.
28924
28925 2008-08-25  Bruno Haible  <bruno@clisp.org>
28926
28927         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
28928
28929 2008-08-25  Eric Blake  <ebb9@byu.net>
28930
28931         c-stack: test that stack overflow can be caught
28932         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
28933         that platform allows handling stack overflow; at least OS/2 EMX
28934         has sigaltstack, but crashes before transferring control to
28935         handler on stack overflow.
28936         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
28937         check for HAVE_STACK_OVERFLOW_HANDLING.
28938         Reported by Elbert Pol.
28939
28940 2008-08-25  Bruno Haible  <bruno@clisp.org>
28941
28942         * doc/posix-functions/strftime.texi: Fix description of strftime
28943         module.
28944
28945 2008-08-24  Bruno Haible  <bruno@clisp.org>
28946
28947         * tests/uniwidth/test-uc_width2.c: New file.
28948         * tests/uniwidth/test-uc_width2.sh: New file.
28949         * modules/uniwidth/width-tests (Files): Add the new files.
28950         (TESTS): Add uniwidth/test-uc_width2.sh.
28951         (TESTS_ENVIRONMENT): New variable.
28952         (check_PROGRAMS): Add test-uc_width2.
28953         (test_uc_width2_SOURCES): New variable.
28954
28955         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
28956         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
28957         not 0x00AB.
28958         Reported by Alexander V. Lukyanov <lav@netis.ru>.
28959
28960 2008-08-22  Eric Blake  <ebb9@byu.net>
28961
28962         test-lock, test-tls: mention why a test is skipped
28963         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
28964         skipped.
28965         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
28966
28967         count-one-bits: relax license
28968         * modules/count-one-bits (License): Relicense to LGPLv2+.
28969         Suggested by Ludovic Courtès, approved by Ben Pfaff.
28970
28971 2008-08-22  Andreas Schwab  <schwab@suse.de>
28972
28973         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28974         Remove spurious space in assignment.
28975
28976 2008-08-21  Simon Josefsson  <simon@josefsson.org>
28977
28978         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
28979         Paul Eggert <eggert@CS.UCLA.EDU>.
28980
28981 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
28982
28983         * modules/gettext: Add m4/threadlib.m4.
28984
28985 2008-08-19  Eric Blake  <ebb9@byu.net>
28986
28987         test-c-stack: fix compilation failure on FreeBSD 5.0
28988         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
28989         headers before <sys/resource.h>.
28990         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
28991         the bug.
28992         Reported by Nelson H. F. Beebe.
28993
28994         strverscmp: migrate from "strverscmp.h" to <string.h>
28995         * modules/string (Makefile.am): Add new hooks.
28996         * modules/strverscmp (Files): Remove strverscmp.h.
28997         (Depends-on): Add string.
28998         (configure.ac): Add indicator.
28999         (Include): Mention new header.
29000         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29001         defaults.
29002         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29003         results.
29004         * lib/strverscmp.h: Delete.
29005         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29006         * tests/test-strverscmp.c (includes): Adjust client.
29007         * lib/check-version.c (includes): Likewise.
29008         * NEWS: Document the change.
29009
29010         strverscmp: add unit test
29011         * modules/strverscmp-tests: New file.
29012         * tests/test-strverscmp.c: Likewise.
29013
29014 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29015
29016         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29017         regarding Windows crypto stuff, from Mono.
29018
29019 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29020
29021         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29022         if present, for intel RND.  Return error on failures.
29023
29024 2008-08-18  Ben Pfaff  <blp@gnu.org>
29025
29026         gitlog-to-changelog: give better diagnostic for failed pipe-open
29027         * build-aux/gitlog-to-changelog: Improve error message: suggest
29028         that the version of Git may be too old.
29029
29030 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29031
29032         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29033         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29034
29035 2008-08-18  Bruno Haible  <bruno@clisp.org>
29036
29037         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29038         pthread_in_use().
29039
29040 2008-08-18  Bruno Haible  <bruno@clisp.org>
29041
29042         * lib/glthread/threadlib.c: Include <pthread.h>.
29043
29044 2008-08-18  Bruno Haible  <bruno@clisp.org>
29045
29046         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29047         glthread_recursive_lock_* macros.
29048         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29049         Fix syntax error.
29050
29051 2008-08-18  Bruno Haible  <bruno@clisp.org>
29052
29053         * lib/glthread/thread.c: Avoid forcing a context switch right after
29054         thread creation.
29055
29056 2008-08-17  Bruno Haible  <bruno@clisp.org>
29057
29058         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29059         * lib/glthread/thread.h: Provide Win32 specific implementation.
29060         * modules/thread (Files): Add lib/glthread/thread.c.
29061         (Depends-on): Add lock.
29062         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29063
29064 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29065
29066         New module 'yield'.
29067         * modules/yield: New file.
29068         * lib/glthread/yield.h: New file.
29069         * m4/yield.m4: New file.
29070         * MODULES.html.sh (Multithreading): Add yield.
29071
29072 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29073
29074         New module 'thread'.
29075         * modules/thread: New file.
29076         * lib/glthread/thread.h: New file.
29077         * m4/thread.m4: New file.
29078         * MODULES.html.sh (Multithreading): Add thread.
29079
29080 2008-08-17  Bruno Haible  <bruno@clisp.org>
29081
29082         * lib/glthread/lock.h: Include <stdlib.h> always.
29083         * lib/glthread/tls.h: Likewise.
29084         * lib/glthread/cond.h: Likewise.
29085
29086 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29087
29088         New module 'cond'.
29089         * modules/cond: New file.
29090         * lib/glthread/cond.h: New file.
29091         * lib/glthread/cond.c: New file.
29092         * m4/cond.m4: New file.
29093         * MODULES.html.sh (Multithreading): Add cond.
29094
29095 2008-08-16  Eric Blake  <ebb9@byu.net>
29096
29097         c-stack: fix regression on Irix 5.3 from 2008-06-21
29098         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29099         sa_sigaction...
29100         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29101         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29102         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29103         * modules/signal (Makefile.am): Use the value.
29104         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29105         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29106         * doc/posix-headers/signal.texi (signal.h): Document this
29107         portability issue.
29108         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29109         Reported by Tom G. Christensen.
29110
29111 2008-08-17  Bruno Haible  <bruno@clisp.org>
29112
29113         New module 'threadlib'.
29114         * modules/threadlib: New file.
29115         * lib/glthread/threadlib.c: New file, extracted from
29116         lib/glthread/lock.c.
29117         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29118         functions.
29119         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29120         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29121         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29122         macros.
29123         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29124         (gl_DISABLE_THREADS): Remove macro.
29125         * modules/lock (Files): Remove build-aux/config.rpath.
29126         (Depends-on): Remove havelib. Add threadlib.
29127         (configure.ac-early): Remove section.
29128         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29129         * modules/tls (Depends-on): Remove lock. Add threadlib.
29130         (Link): New section, copied from threadlib.
29131         * MODULES.html.sh (Multithreading): Add threadlib.
29132
29133 2008-08-14  Bruno Haible  <bruno@clisp.org>
29134
29135         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29136         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29137         glthread_rwlock_unlock, glthread_rwlock_destroy,
29138         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29139         glthread_recursive_lock_destroy): Define as macros always.
29140         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29141         glthread_lock_lock.
29142         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29143         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29144         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29145         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29146         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29147         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29148         (glthread_recursive_lock_lock_func): Renamed from
29149         glthread_recursive_lock_lock.
29150         (glthread_recursive_lock_unlock_func): Renamed from
29151         glthread_recursive_lock_unlock.
29152         (glthread_recursive_lock_destroy_func): Renamed from
29153         glthread_recursive_lock_destroy.
29154
29155 2008-08-14  Bruno Haible  <bruno@clisp.org>
29156
29157         * lib/glthread/lock.h: Renamed from lib/lock.h.
29158         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29159         * lib/glthread/tls.h: Renamed from lib/tls.h.
29160         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29161         * lib/fstrcmp.c: Update includes.
29162         * lib/strsignal.c: Update includes.
29163         * modules/lock (Files, Makefile.am): Update.
29164         (Include): Change to "glthread/lock.h".
29165         * modules/tls (Files, Makefile.am): Update.
29166         (Include): Change to "glthread/tls.h".
29167         * tests/test-lock.c: Update includes.
29168         * tests/test-tls.c: Update includes.
29169         * NEWS: Mention the renamed header files.
29170
29171 2008-08-11  Jim Meyering  <meyering@redhat.com>
29172
29173         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29174
29175 2008-08-11  Eric Blake  <ebb9@byu.net>
29176
29177         test-c-stack: avoid C99-ism
29178         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29179         before statement.
29180         Reported by Alain Guibert.
29181
29182 2008-08-10  Jim Meyering  <meyering@redhat.com>
29183
29184         ensure that return value of uinttostr et al are not ignored
29185         * lib/inttostr.h (__GNUC_PREREQ): Define.
29186         (__attribute_warn_unused_result__): Define.
29187         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29188
29189 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29190
29191         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29192         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29193
29194 2008-08-07  Jim Meyering  <meyering@redhat.com>
29195
29196         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29197
29198         * modules/mkstemp (License): Relicense under LGPLv2+.
29199         * modules/tempname (License): Likewise.
29200
29201 2008-08-06  Bruno Haible  <bruno@clisp.org>
29202
29203         * lib/poll.c (poll): Further micro-optimization.
29204
29205 2008-08-06  Jim Meyering  <meyering@redhat.com>
29206
29207         inet_pton.c: use locale-independent tolower
29208         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29209         (inet_pton6): Use c_tolower rather than tolower.
29210         * modules/inet_pton (Depends-on): Add c-ctype.
29211
29212 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29213
29214         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29215         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29216
29217 2008-08-06  Jim Meyering  <meyering@redhat.com>
29218
29219         * modules/inet_pton (License): Relicense under LGPLv2+.
29220
29221 2008-08-03  Bruno Haible  <bruno@clisp.org>
29222
29223         Additional non-aborting API for lock and tls.
29224         * lib/lock.h: Include <errno.h>.
29225         (glthread_lock_init): New macro/function.
29226         (gl_lock_init): Define as wrapper around glthread_lock_init.
29227         (glthread_lock_lock): New macro/function.
29228         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29229         (glthread_lock_unlock): New macro/function.
29230         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29231         (glthread_lock_destroy): New macro/function.
29232         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29233         (glthread_rwlock_init): New macro/function.
29234         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29235         (glthread_rwlock_rdlock): New macro/function.
29236         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29237         (glthread_rwlock_wrlock): New macro/function.
29238         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29239         (glthread_rwlock_unlock): New macro/function.
29240         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29241         (glthread_rwlock_destroy): New macro/function.
29242         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29243         (glthread_recursive_lock_init): New macro/function.
29244         (gl_recursive_lock_init): Define as wrapper around
29245         glthread_recursive_lock_init.
29246         (glthread_recursive_lock_lock): New macro/function.
29247         (gl_recursive_lock_lock): Define as wrapper around
29248         glthread_recursive_lock_lock.
29249         (glthread_recursive_lock_unlock): New macro/function.
29250         (gl_recursive_lock_unlock): Define as wrapper around
29251         glthread_recursive_lock_unlock.
29252         (glthread_recursive_lock_destroy): New macro/function.
29253         (gl_recursive_lock_destroy): Define as wrapper around
29254         glthread_recursive_lock_destroy.
29255         (glthread_once): New macro/function.
29256         (gl_once): Define as wrapper around glthread_once.
29257         Update function declarations.
29258         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
29259         glthread_rwlock_init. Return error code.
29260         (glthread_rwlock_rdlock_multithreaded): Renamed from
29261         glthread_rwlock_rdlock. Return error code.
29262         (glthread_rwlock_wrlock_multithreaded): Renamed from
29263         glthread_rwlock_wrlock. Return error code.
29264         (glthread_rwlock_unlock_multithreaded): Renamed from
29265         glthread_rwlock_unlock. Return error code.
29266         (glthread_rwlock_destroy_multithreaded): Renamed from
29267         glthread_rwlock_destroy. Return error code.
29268         (glthread_recursive_lock_init_multithreaded): Renamed from
29269         glthread_recursive_lock_init. Return error code.
29270         (glthread_recursive_lock_lock_multithreaded): Renamed from
29271         glthread_recursive_lock_lock. Return error code.
29272         (glthread_recursive_lock_unlock_multithreaded): Renamed from
29273         glthread_recursive_lock_unlock. Return error code.
29274         (glthread_recursive_lock_destroy_multithreaded): Renamed from
29275         glthread_recursive_lock_destroy. Return error code.
29276         (glthread_once_call): Make static.
29277         (glthread_once_multithreaded): Renamed from glthread_once.
29278         * lib/tls.h: Include <errno.h>.
29279         (glthread_tls_key_init): New macro/function.
29280         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
29281         (glthread_tls_set): New macro/function.
29282         (gl_tls_set): Define as wrapper around glthread_tls_set.
29283         (glthread_tls_key_destroy): New macro/function.
29284         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29285         Update function declarations.
29286         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29287         glthread_tls_get.
29288         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29289
29290 2008-08-04  Eric Blake  <ebb9@byu.net>
29291
29292         gnumakefile: use space, not TAB, outside of targets
29293         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29294
29295 2008-08-02  Jim Meyering  <meyering@redhat.com>
29296
29297         getdate.y: avoid locale-dependent date parsing failure
29298         In Turkish locales, getdate would fail to recognize keywords
29299         containing a lowercase "i".  The solution is not to rely on
29300         locale-sensitive case-conversion.
29301         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29302         (lookup_word): Use c_toupper in place of toupper.
29303         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29304         Reported by Vefa Bicakci <bicave@superonline.com> in
29305         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29306         * modules/getdate (Depends-on): Add c-ctype.
29307
29308 2008-08-02  Bruno Haible  <bruno@clisp.org>
29309
29310         * gnulib-tool (func_import): When updating or creating a .gitignore
29311         file, prepend each added line with a slash, and ignore leading slashes
29312         from the existing lines.
29313         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29314
29315 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29316
29317         Portability fix for GNU make 3.79.1.
29318         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29319         versions do not understand.
29320
29321 2008-08-01  Bruno Haible  <bruno@clisp.org>
29322
29323         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29324         * tests/test-isnanf.h (zero): New variable.
29325         (main): Avoid literal -0.0f.
29326         * tests/test-isnand.h (zero): New variable.
29327         (main): Avoid literal -0.0.
29328         * tests/test-isnanl.h (zero): New variable.
29329         (main): Avoid literal -0.0L.
29330         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29331         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29332         -0.0, -0.0L.
29333         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29334         (test_signbitd): Avoid literal -0.0.
29335         (test_signbitl): Avoid literal -0.0L.
29336         * tests/test-ceilf1.c (zero): New variable.
29337         (main): Avoid literal -0.0f.
29338         * tests/test-ceill.c (zero): New variable.
29339         (main): Avoid literal -0.0L.
29340         * tests/test-floorf1.c (zero): New variable.
29341         (main): Avoid literal -0.0f.
29342         * tests/test-floorl.c (zero): New variable.
29343         (main): Avoid literal -0.0L.
29344         * tests/test-roundf1.c (zero): New variable.
29345         (main): Avoid literal -0.0f.
29346         * tests/test-round1.c (zero): New variable.
29347         (main): Avoid literal -0.0.
29348         * tests/test-roundl.c (zero): New variable.
29349         (main): Avoid literal -0.0L.
29350         * tests/test-truncf1.c (zero): New variable.
29351         (main): Avoid literal -0.0f.
29352         * tests/test-trunc1.c (zero): New variable.
29353         (main): Avoid literal -0.0.
29354         * tests/test-truncl.c (zero): New variable.
29355         (main): Avoid literal -0.0L.
29356         * tests/test-frexp.c (zero): New variable.
29357         (main): Avoid literal -0.0.
29358         * tests/test-frexpl.c (zero): New variable.
29359         (main): Avoid literal -0.0L.
29360         * tests/test-ldexpl.c (zero): New variable.
29361         (main): Avoid literal -0.0L.
29362         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29363         (zerod, zerol): New variables.
29364         (test_function): Avoid literals -0.0, -0.0L.
29365         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29366         (zerod, zerol): New variables.
29367         (test_function): Avoid literals -0.0, -0.0L.
29368         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29369         (zerod, zerol): New variables.
29370         (test_function): Avoid literals -0.0, -0.0L.
29371         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29372         (zerod, zerol): New variables.
29373         (test_function): Avoid literals -0.0, -0.0L.
29374         * tests/test-strtod.c (zero): New variable.
29375         (main): Avoid literal -0.0.
29376         Reported by Jonathan C. Patschke <jp@centtech.com>.
29377
29378 2008-07-31  Jim Meyering  <meyering@redhat.com>
29379
29380         sha256.h: correct definition of SHA224_DIGEST_SIZE
29381         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29382         Reported by Paulie Pena IV <paulie4@gmail.com>.
29383         Define as 224 / 8, rather than as a literal.
29384         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29385         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29386         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29387
29388 2008-07-31  Bruno Haible  <bruno@clisp.org>
29389
29390         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29391         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29392         Reported by Jonathan Patschke <jp@centtech.com>.
29393
29394 2008-07-31  Bruno Haible  <bruno@clisp.org>
29395
29396         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29397         Reported by Paolo Bonzini <bonzini@gnu.org>.
29398
29399 2008-07-30  Eric Blake  <ebb9@byu.net>
29400
29401         test-strtod: allow compilation without -lm
29402         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29403         Reported by Dennis Clarke <blastwave@gmail.com>.
29404
29405 2008-07-28  Jim Meyering  <meyering@redhat.com>
29406
29407         bootstrap: work also when there are no .po files in po/
29408         * build-aux/bootstrap (update_po_files): Complete the change
29409         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29410
29411 2008-07-27  Jim Meyering  <meyering@redhat.com>
29412
29413         * users.txt: Add zile.
29414
29415 2008-07-26  Ben Pfaff  <blp@gnu.org>
29416
29417         Add missing dependencies on new m4/exponent[fdl].m4 files.
29418         * modules/isnanf-nolibm: Add m4/exponentf.m4.
29419         * modules/isnand-nolibm: Add m4/exponentd.m4.
29420         * modules/isnanl-nolibm: Add m4/exponentl.m4.
29421         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
29422         m4/isnan[fdl].m4, because the macros actually used moved.
29423         Reported by Jim Meyering.
29424
29425 2008-07-14  Ben Pfaff  <blp@gnu.org>
29426
29427         Add isinf module.
29428         * lib/isinf.c: New file.
29429         * lib/math.in.h: Define isinf macro if we have decided to replace
29430         it.
29431         * m4/isinf.m4: New file.
29432         * m4/math_h.m4: Initialize and substitute variables for isinf
29433         module.
29434         * modules/isinf: New file.
29435         * modules/isinf-tests: New file.
29436         * modules/math: Add substitutions for new module.
29437         * tests/test-isinf.c: New file.
29438         * doc/posix-functions/isinf.texi: Mention new module.
29439         * MODULES.html.sh: Mention new module.
29440
29441 2008-07-14  Ben Pfaff  <blp@gnu.org>
29442
29443         Factor out some macros for use by additional modules.
29444         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
29445         exponentf.m4.
29446         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
29447         exponentd.m4.
29448         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
29449         file exponentl.m4.
29450         * m4/exponentf.m4: New file.
29451         * m4/exponentd.m4: New file.
29452         * m4/exponentl.m4: New file.
29453         * modules/isnanf: Use new file m4/exponentf.m4.
29454         * modules/isnand: Use new file m4/exponentd.m4.
29455         * modules/isnanl: Use new file m4/exponentl.m4.
29456
29457 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
29458
29459         mktime.c: normalize tp->tm_isdst value to -1/0/1.
29460         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
29461         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
29462         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
29463
29464         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
29465         readlink on platforms without PATH_MAX.
29466
29467 2008-07-21  Eric Blake  <ebb9@byu.net>
29468
29469         Warn, not fail, on stale version.
29470         * top/GNUmakefile (_curr-ver): Tone down previous patch.
29471
29472         Don't allow installation with stale devel version number.
29473         * top/GNUmakefile (_is-install-target): New macro.
29474         (_curr-ver): Forbid installation with stale version number.
29475
29476 2008-07-20  Bruno Haible  <bruno@clisp.org>
29477
29478         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
29479         TESTS_ENVIRONMENT.
29480         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
29481
29482 2008-07-20  Bruno Haible  <bruno@clisp.org>
29483
29484         * lib/c-stack.h (c_stack_action): Add documentation.
29485         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
29486
29487 2008-07-20  Bruno Haible  <bruno@clisp.org>
29488
29489         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
29490         * modules/readlink (License): Likewise.
29491
29492 2008-07-17  Eric Blake  <ebb9@byu.net>
29493
29494         * modules/c-stack (Link): Fix typo.
29495
29496         Make c-stack use libsigsegv, when available.
29497         * modules/c-stack (Depends-on): Add libsigsegv.
29498         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
29499         needed.
29500         * lib/c-stack.c (SIGSTKSZ): Define fallback.
29501         (segv_handler, overflow_handler, c_stack_action)
29502         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
29503         implementation when libsigsegv is available, but only when using
29504         the library is necessary.
29505         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
29506         comment, explaining why XSI check fails on Linux.
29507         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
29508         * tests/test-c-stack2.sh: Tweak skip message.
29509         * NEWS: Document new link-time requirements.
29510
29511 2008-07-16  Eric Blake  <ebb9@byu.net>
29512
29513         c-stack: Expose false positives when not using libsigsegv.
29514         * modules/c-stack-tests (Files): Expand test.
29515         * tests/test-c-stack.c (main): Add means to conditionally trigger
29516         non-overflow SIGSEGV.
29517         * tests/test-c-stack2.sh: New file.
29518
29519 2008-07-14  Bruno Haible  <bruno@clisp.org>
29520
29521         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
29522         Reported by Eric Blake.
29523
29524 2008-07-14  Sam Steingold  <sds@gnu.org>
29525             Bruno Haible  <bruno@clisp.org>
29526
29527         New module libsigsegv.
29528         * modules/libsigsegv: New file.
29529         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
29530         modifications.
29531         * MODULES.html.sh (Signal handling): New section.
29532
29533 2008-07-14  Bruno Haible  <bruno@clisp.org>
29534
29535         * modules/unictype/ctype-* (Description): Add the word "function".
29536         Improves the resulting doc in MODULES.html.
29537
29538 2008-07-12  Ben Pfaff  <blp@gnu.org>
29539
29540         Add longlong module.
29541         * modules/longlong: New file.
29542
29543 2008-07-12  Bruno Haible  <bruno@clisp.org>
29544
29545         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
29546         to empty.
29547
29548 2008-07-10  Ben Pfaff  <blp@gnu.org>
29549
29550         Add isnan module.
29551         * doc/posix-functions/isnan.texi: Mention new module.
29552         * lib/math.in.h: Define isnan macro if we have decided to replace
29553         it.
29554         * m4/isnan.m4: New file.
29555         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
29556         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
29557         also.
29558         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
29559         redundancy.
29560         * m4/math_h.m4: Initialize and substitute variables for isnan
29561         module.
29562         * modules/isnan: New file.
29563         * modules/isnan-tests: New file.
29564         * modules/math: Add substitutions for new module.
29565         * tests/test-isnan.c: New file.
29566         * MODULES.html.sh: Mention new module.
29567
29568 2008-07-10  Ben Pfaff  <blp@gnu.org>
29569
29570         Add isnanf module.
29571         * lib/isnanf.m4: New file.
29572         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
29573         (gl_HAVE_ISNANF_IN_LIBM): New macro.
29574         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
29575         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
29576         * modules/isnanf: New file.
29577         * modules/isnanf-tests: New file.
29578         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
29579         files.
29580         * tests/test-isnanf-nolibm.c: factored most of its contents into
29581         new file tests/test-isnanf.h.
29582         * tests/test-isnanf.h: New file.
29583         * tests/test-isnanf.c: New file.
29584         * MODULES.html.sh: Mention new module.
29585         * doc/glibc-functions/isnanf.texi: Mention new module.
29586
29587 2008-07-10  Ben Pfaff  <blp@gnu.org>
29588
29589         Add isnand module.
29590         * lib/isnand.h: New file.
29591         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
29592         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
29593         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
29594         functionality also.
29595         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
29596         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
29597         (gl_HAVE_ISNAND_IN_LIBM): New macro.
29598         * modules/isnand: New file.
29599         * modules/isnand-tests: New file.
29600         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
29601         files.
29602         * tests/test-isnand-nolibm.c: factored most of its contents into
29603         new file tests/test-isnand.h.
29604         * tests/test-isnand.h: New file.
29605         * tests/test-isnand.c: New file.
29606         * MODULES.html.sh: Mention new module.
29607
29608 2008-07-10  Ben Pfaff  <blp@gnu.org>
29609
29610         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
29611         * lib/isnand.h: Rename lib/isnand-nolibm.h.
29612         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
29613         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
29614         * modules/isnanf-nolibm: Update references to renamed files.
29615         * modules/isnand-nolibm: Likewise.
29616         * modules/isnanf-nolibm-tests: Likewise.
29617         * modules/isnand-nolibm-tests: Likewise.
29618         * lib/frexp.c: Likewise.
29619         * lib/isfinite.c: Likewise.
29620         * lib/signbitd.c: Likewise.
29621         * lib/signbitf.c: Likewise.
29622         * lib/vasnprintf.c: Likewise.
29623         * tests/test-ceilf1.c: Likewise.
29624         * tests/test-ceilf2.c: Likewise.
29625         * tests/test-floorf1.c: Likewise.
29626         * tests/test-floorf2.c: Likewise.
29627         * tests/test-frexp.c: Likewise.
29628         * tests/test-round1.c: Likewise.
29629         * tests/test-round2.c: Likewise.
29630         * tests/test-roundf1.c: Likewise.
29631         * tests/test-strtod.c: Likewise.
29632         * tests/test-trunc1.c: Likewise.
29633         * tests/test-trunc2.c: Likewise.
29634         * tests/test-truncf1.c: Likewise.
29635         * tests/test-truncf2.c: Likewise.
29636         * NEWS: Mention the renamed header files.
29637
29638 2008-07-11  Jim Meyering  <meyering@redhat.com>
29639
29640         vc-list-files: make the last-resort awk code more portable
29641         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
29642         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
29643         does not support it.
29644
29645 2008-07-10  Eric Blake  <ebb9@byu.net>
29646
29647         Work with tar's bootstrap.
29648         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
29649         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
29650         an m4 comment.
29651
29652 2008-07-09  Jim Meyering  <meyering@redhat.com>
29653
29654         posix-shell.m4: fix typo that made this test malfunction
29655         * m4/posix-shell.m4: Remove capitalization in variable name.
29656
29657 2008-07-08  Bruno Haible  <bruno@clisp.org>
29658
29659         * m4/onceonly.m4: Update comments.
29660         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29661
29662 2008-07-04  Jim Meyering  <meyering@redhat.com>
29663
29664         * users.txt: Add vc-dwim.
29665         (bison, coreutils): Use the gitweb URL.
29666
29667 2008-07-03  Jim Meyering  <meyering@redhat.com>
29668
29669         * users.txt: Add libffcall.  From Sam Steingold.
29670
29671 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
29672
29673         getdate.y: do not ignore TZ with relative day, month or year offset
29674         * lib/getdate.y (get_date): Move the tz-handling block to follow the
29675         relative-date-handling, since otherwise, the latter would clobber the
29676         sole output (an updated Start value) of the tz-handling block.
29677         * tests/test-getdate.c: Tests for the fix
29678
29679 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29680
29681         Recognize 'foo_LIBRARIES += libgnu.a'.
29682         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
29683         makefile snippet has already specified an installation location,
29684         also using '+='.
29685
29686 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
29687
29688         getdate.y: factor out common actions
29689         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
29690         Use them in place of open-coded actions.
29691
29692 2008-07-01  Simon Josefsson  <simon@josefsson.org>
29693
29694         Add self-test for getdate module.
29695         * modules/getdate-tests: New file.
29696         * tests/test-getdate.c: New file.
29697
29698 2008-06-29  Bruno Haible  <bruno@clisp.org>
29699
29700         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
29701         .gitignore.
29702         Reported by Sylvain Beucler <beuc@beuc.net>.
29703
29704 2008-06-29  Bruno Haible  <bruno@clisp.org>
29705
29706         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
29707         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
29708
29709 2008-06-29  Bruno Haible  <bruno@clisp.org>
29710
29711         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
29712         EXTRA_DIST.
29713         Reported by Sylvain Beucler <beuc@beuc.net>.
29714
29715 2008-06-26  Jim Meyering  <meyering@redhat.com>
29716
29717         make several modules depend on the "open" module
29718         This provides slightly increased consistency when opening-for-write
29719         the name of a non-directory spelled with a trailing slash.
29720         * modules/chdir-safer: Likewise.
29721         * modules/chown: Likewise.
29722         * modules/clean-temp: Likewise.
29723         * modules/copy-file: Likewise.
29724         * modules/fchdir: Likewise.
29725         * modules/fcntl-safer: Likewise.
29726         * modules/pipe: Likewise.
29727         * modules/utime: Likewise.
29728         Prompted by Eric Blake and Bruno Haible.
29729
29730 2008-06-24  Andreas Schwab  <schwab@suse.de>
29731
29732         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
29733         literals can be used as initializers for global variables.
29734
29735 2008-06-23  Eric Blake  <ebb9@byu.net>
29736
29737         Make gnulib-cache.m4 easier to diff.
29738         * gnulib-tool (func_import): Allow newlines when reading cached
29739         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
29740
29741 2008-06-23  Bruno Haible  <bruno@clisp.org>
29742
29743         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
29744         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
29745         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
29746         m4/signalblocking.m4.
29747         (gl_PREREQ_SIGACTION): Don't invoke it.
29748         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
29749         gl_PREREQ_SIG_HANDLER_H.
29750         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29751         Don't check for sigaction here.
29752
29753 2008-06-23  Bruno Haible  <bruno@clisp.org>
29754
29755         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
29756         (install_handlers): Don't set the SA_RESETHAND flag.
29757
29758 2008-06-23  Bruno Haible  <bruno@clisp.org>
29759
29760         * m4/sigaction.m4: Comment fixes.
29761         * lib/signal.in.h: Likewise.
29762
29763 2008-06-23  Eric Blake  <ebb9@byu.net>
29764
29765         Fix typo.
29766         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
29767
29768         Avoid SA_ namespace.
29769         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
29770         Reported by Ralf Wildenhues.
29771
29772         Avoid test failure due to SA_RESTORER.
29773         * tests/test-sigaction.c (SA_MASK): New macro.
29774         (main): Avoid failing due to extension flags being set.
29775         Reported by Jim Meyering.
29776
29777         Revert use of sig-handler.h in sigprocmask.c.
29778         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
29779         it requires the existence of struct sigaction.
29780         * lib/sigprocmask.c (handler_t): Restore typedef.
29781         (rpl_signal, old_handlers): Use local type.
29782
29783 2008-06-22  Bruno Haible  <bruno@clisp.org>
29784
29785         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
29786         conditionally.
29787         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29788
29789 2008-06-22  Bruno Haible  <bruno@clisp.org>
29790
29791         * doc/posix-functions/siginterrupt.texi: Move note.
29792
29793         * lib/signal.in.h (SA_RESTART): New macro.
29794         * lib/sigaction.c: Update comment.
29795
29796         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
29797
29798         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
29799         (gl_PREREQ_SIGPROCMASK): Invoke it.
29800         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
29801
29802         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
29803
29804         * lib/sigprocmask.c: Update a comment.
29805
29806 2008-06-21  Eric Blake  <ebb9@byu.net>
29807
29808         Use sigaction module rather than signal().
29809         * modules/c-stack (Depends-on): Add sigaction.
29810         * modules/fatal-signal (Depends-on): Likewise.
29811         * modules/nanosleep (Depends-on): Likewise.
29812         * modules/sigprocmask (Files): Add sig-handler.h.
29813         * modules/sigaction (Files): Likewise.
29814         * lib/sig-handler.h (get_handler): New file, suggested by Paul
29815         Eggert.
29816         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
29817         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
29818         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
29819         (init_fatal_signals): Likewise.
29820         * lib/nanosleep.c (rpl_nanosleep): Likewise.
29821         (siginterrupt): Delete fallback.
29822         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
29823         instead.
29824         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
29825         siginterrupt.
29826
29827         New module sigaction, for mingw.
29828         * modules/sigaction: New module...
29829         * modules/sigaction-tests: ...and its test.
29830         * m4/sigaction.m4: New file.
29831         * lib/sigaction.c: Likewise.
29832         * tests/test-sigaction.c: Likewise.
29833         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
29834         * modules/signal (Makefile.am): Likewise.
29835         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
29836         needed.
29837         * doc/posix-headers/signal.texi (signal.h): Mention provided
29838         types.
29839         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
29840         that sigaction is preferable.
29841         * doc/posix-functions/sigaction.texi (sigaction): Mention new
29842         module.
29843         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29844         sigaction.
29845
29846         Improve robustness of sigprocmask by overriding signal.
29847         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
29848         is in use.
29849         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
29850         (SIGKILL, SIGSTOP): Provide fallbacks.
29851         (rpl_signal): Implement.
29852         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
29853         signal can be called inside handlers.
29854
29855         Fix nanosleep module on mingw.
29856         * modules/nanosleep (Depends-on): Add sys_select.
29857         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
29858
29859         Fix licensing of sigprocmask.
29860         * modules/raise (License): Relicense as LGPL.
29861
29862 2008-06-21  Bruno Haible  <bruno@clisp.org>
29863
29864         * lib/propername.c (proper_name_utf8): Don't use the transliterated
29865         result if it contains question marks.
29866         Reported by Michael Geng <linux@michaelgeng.de>.
29867
29868 2008-06-19  Bruno Haible  <bruno@clisp.org>
29869
29870         Fix CVS-ism.
29871         * doc/gnulib.texi: Include updated-stamp.texi.
29872         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
29873         (updated-stamp.texi): New rule.
29874         (gnulib.info): Depend on it.
29875         * doc/.gitignore: Add updated-stamp.texi.
29876         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
29877
29878 2008-06-19  Bruno Haible  <bruno@clisp.org>
29879
29880         * doc/Makefile (gnulib.info): Update and simplify dependencies.
29881         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29882
29883 2008-06-19  Eric Blake  <ebb9@byu.net>
29884
29885         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
29886         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
29887         Reported by Stepan Kasal.
29888
29889 2008-06-18  Bruno Haible  <bruno@clisp.org>
29890
29891         * lib/fatal-signal.c (init_fatal_signals): Add comment.
29892         Reported by Eric Blake.
29893
29894 2008-06-18  Eric Blake  <ebb9@byu.net>
29895
29896         Work around cygwin 1.5.25 strsignal bug.
29897         * tests/test-strsignal.c: Allow for const char *.
29898         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
29899
29900 2008-06-18  Simon Josefsson  <simon@josefsson.org>
29901
29902         * users.txt: Update URL to article and add author/date
29903         information.
29904
29905 2008-06-17  Bruno Haible  <bruno@clisp.org>
29906
29907         New macro gl_DISABLE_THREADS.
29908         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
29909         if the user did not pass --enable-threads or --disable-threads option.
29910         (gl_DISABLE_THREADS): New macro.
29911         Reported by Eric Blake <ebb9@byu.net>.
29912
29913 2008-06-17  Bruno Haible  <bruno@clisp.org>
29914
29915         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
29916         when the macro ignores it.
29917         Based on a patch by Eric Blake <ebb9@byu.net>.
29918
29919 2008-06-17  Bruno Haible  <bruno@clisp.org>
29920
29921         * modules/tls (License): Change to LGPLv2+.
29922         Reported by Eric Blake.
29923
29924 2008-06-17  Eric Blake  <ebb9@byu.net>
29925
29926         Simplify c-stack prerequisites.
29927         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
29928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
29929         no longer requires <ucontext.h> to exist.  Optimize setrlimit
29930         check.
29931         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
29932         <sys/resource.h>.
29933
29934         Move c-stack test into testsuite.
29935         * modules/c-stack-tests: New file.
29936         * lib/c-stack.c [DEBUG]: Move test program...
29937         * tests/test-c-stack.c: ...into this new file.  Skip rather than
29938         fail test if sigaltstack is lacking.
29939         * tests/test-c-stack.sh: New driver file.
29940
29941 2008-06-16  Eric Blake  <ebb9@byu.net>
29942
29943         Use raise module consistently.
29944         * modules/fatal-signal (Depends-on): Add raise.
29945         * modules/sigprocmask (Depends-on): Likewise.
29946         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
29947         * lib/sigprocmask.c (sigprocmask): Likewise.
29948         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29949         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
29950
29951         Fix compliance bug in sigpending.
29952         * lib/sigprocmask.c (sigpending): Return pending array via
29953         parameter, not return value.
29954
29955 2008-06-14  Eric Blake  <ebb9@byu.net>
29956
29957         Improve obstack-printf test code.
29958         * tests/test-obstack-printf.c (test_function): Fix comment, and
29959         simplify usage of obstack_* in macros.  Add a test for coverage.
29960         Reported by Bruno Haible.
29961
29962 2008-06-14  Bruno Haible  <bruno@clisp.org>
29963
29964         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
29965         array size as a constant, not as a const variable.
29966         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
29967         AC_USE_SYSTEM_EXTENSIONS.
29968         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29969         Test whether the obstack_printf function actually exists.
29970         * modules/obstack-printf (Depends-on): Add extensions.
29971         (Include): Remove obstack.h.
29972         * modules/obstack-printf-posix (Depends-on): Add extensions.
29973         (Include): Remove obstack.h.
29974
29975 2008-06-13  Eric Blake  <ebb9@byu.net>
29976
29977         Add obstack-printf and obstack-printf-posix modules.
29978         * modules/obstack-printf: New file.
29979         * modules/obstack-printf-posix: Likewise.
29980         * MODULES.html.sh (Misc): Mention them.
29981         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29982         Likewise.
29983         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29984         Likewise.
29985         * modules/stdio (Makefile.am): Accomodate new modules.
29986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29987         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
29988         Declare.
29989         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
29990         functions.
29991         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
29992         (gl_REPLACE_OBSTACK_PRINTF): New macros
29993         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
29994         * tests/test-obstack-printf.c: New file.
29995         * modules/obstack-printf-tests: Likewise.
29996         * modules/obstack-printf-posix-tests: Likewise.
29997
29998 2008-06-11  Bruno Haible  <bruno@clisp.org>
29999
30000         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30001         * lib/open.c: Include errno.h.
30002         (open): Fail when attempting to write to a file that has a trailing
30003         slash.
30004         * tests/test-open.c (main): Test against trailing slash bug.
30005         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30006
30007 2008-06-10  Bruno Haible  <bruno@clisp.org>
30008
30009         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30010         for $? to work inside the trap command, with various /bin/sh-s.
30011         * tests/test-vc-list-files-cvs.sh: Likewise.
30012
30013 2008-06-10  Bruno Haible  <bruno@clisp.org>
30014
30015         * lib/acl-internal.h: Don't include gettext.h here.
30016         * lib/set-mode-acl.c: Include gettext.h here.
30017         * lib/copy-acl.c: Likewise.
30018
30019 2008-06-10  Bruno Haible  <bruno@clisp.org>
30020
30021         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30022         * lib/wait-process.c (wait_subprocess): Likewise.
30023         * lib/execute.h (execute): Add termsigp argument.
30024         * lib/execute.c (execute): Likewise.
30025         * lib/csharpcomp.c (compile_csharp_using_pnet,
30026         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30027         * lib/csharpexec.c (execute_csharp_using_pnet,
30028         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30029         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30030         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30031         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30032         is_jikes_present): Update.
30033         * lib/javaexec.c (execute_java_class): Update.
30034         * lib/javaversion.c (execute_and_read_line): Update.
30035         * NEWS: Document the changes.
30036         Reported by Eric Blake.
30037
30038 2008-06-10  Eric Blake  <ebb9@byu.net>
30039
30040         Add missing include.
30041         * tests/test-strstr.c (includes): Add <signal.h>.
30042         * tests/test-strcasestr.c (includes): Likewise.
30043         * tests/test-memmem.c (includes): Likewise.
30044
30045 2008-06-10  Bruno Haible  <bruno@clisp.org>
30046
30047         * lib/wait-process.c (wait_subprocess): Add an assertion.
30048
30049 2008-06-10  Bruno Haible  <bruno@clisp.org>
30050
30051         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30052
30053 2008-06-10  Bruno Haible  <bruno@clisp.org>
30054
30055         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30056         using alarm().
30057         * tests/test-strcasestr.c (main): Likewise.
30058         * tests/test-strstr.c (main): Likewise.
30059
30060 2008-06-09  Bruno Haible  <bruno@clisp.org>
30061
30062         Work around the Solaris 10 ACE ACLs ABI change.
30063         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30064         declare if ACL_NO_TRIVIAL is present.
30065         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30066         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30067         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30068         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30069         define if ACL_NO_TRIVIAL is present.
30070         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30071         and use the current ABI.
30072         (file_has_acl): Use same #if condition as elsewhere.
30073         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30074         in use, and use the current ABI.
30075         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30076         Reported by Jim Meyering.
30077
30078 2008-06-09  Eric Blake  <ebb9@byu.net>
30079
30080         Work around environments that (stupidly) ignore SIGALRM.
30081         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30082         before using alarm().
30083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30084         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30085         Reported by Ian Beckwith <ianb@erislabs.net>.
30086
30087         Produce autobuild blurb earlier in log.
30088         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30089
30090 2008-06-09  Jim Meyering  <meyering@redhat.com>
30091         and OndÅ™ej Vašík  <ovasik@redhat.com>
30092
30093         utimens.c: correct kernel bug work-around
30094         OndÅ™ej Vašík found that the invalid return value of 280 indicates
30095         failure, not success, and the kernel bug we're trying to work
30096         around affects not just the utimensat call, but also the fallback
30097         futimens call.
30098         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30099         not success.
30100         [HAVE_FUTIMENS]: Use the same work-around, here.
30101
30102 2008-06-09  Jim Meyering  <meyering@redhat.com>
30103
30104         add more guards around definition of ACE_-related code
30105         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30106         ALLOW and ACE_OWNER are also defined.
30107
30108 2008-06-08  Bruno Haible  <bruno@clisp.org>
30109
30110         * lib/acl-internal.h: Add me as co-author.
30111         * lib/file-has-acl.c: Likewise.
30112         * lib/set-mode-acl.c: Likewise.
30113         * lib/copy-acl.c: Likewise.
30114
30115 2008-06-08  Bruno Haible  <bruno@clisp.org>
30116
30117         Add support for AIX ACLs.
30118         * lib/acl-internal.h (acl_nontrivial): New declaration.
30119         * lib/file-has-acl.c (acl_nontrivial): New function.
30120         (file_has_acl): Add implementation using AIX 4 ACL API.
30121         * lib/set-mode-acl.c (qset_acl): Likewise.
30122         * lib/copy-acl.c (qcopy_acl): Likewise.
30123
30124 2008-06-08  Bruno Haible  <bruno@clisp.org>
30125
30126         Add support for HP-UX ACLs.
30127         * lib/acl-internal.h (acl_nontrivial): New declaration.
30128         * lib/file-has-acl.c (acl_nontrivial): New function.
30129         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30130         * lib/set-mode-acl.c (qset_acl): Likewise.
30131         * lib/copy-acl.c (qcopy_acl): Likewise.
30132
30133 2008-06-08  Bruno Haible  <bruno@clisp.org>
30134
30135         Add support for Cygwin ACLs.
30136         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30137         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30138         the chmod_or_fchmod call.
30139         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30140
30141 2008-06-08  Bruno Haible  <bruno@clisp.org>
30142
30143         Fix bug with setuid modes in Solaris 10+ code.
30144         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30145         succeeded, when the mode contains some special bits.
30146
30147 2008-06-08  Bruno Haible  <bruno@clisp.org>
30148
30149         Add support for Solaris 7..10 ACLs.
30150         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30151         declarations.
30152         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30153         functions.
30154         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30155         * lib/set-mode-acl.c (qset_acl): Likewise.
30156         * lib/copy-acl.c (qcopy_acl): Likewise.
30157
30158 2008-06-08  Bruno Haible  <bruno@clisp.org>
30159
30160         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30161         declaration.
30162         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30163         (acl_access_nontrivial): Remove MacOS X case.
30164         (file_has_acl): Use acl_extended_nontrivial.
30165         * lib/copy-acl.c (qcopy_acl): Likewise.
30166
30167 2008-06-08  Bruno Haible  <bruno@clisp.org>
30168
30169         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30170
30171 2008-06-08  Jim Meyering  <meyering@redhat.com>
30172
30173         * modules/acl (Maintainer): Add Bruno Haible.
30174
30175 2008-06-07  Bruno Haible  <bruno@clisp.org>
30176
30177         Improve support for Tru64 ACLs.
30178         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30179         ACL on OSF/1.
30180
30181 2008-06-07  Bruno Haible  <bruno@clisp.org>
30182
30183         Add support for MacOS X ACLs.
30184         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30185         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30186         * lib/set-mode-acl.c (qset_acl): Likewise.
30187         * lib/copy-acl.c (qcopy_acl): Likewise.
30188
30189 2008-06-07  Bruno Haible  <bruno@clisp.org>
30190
30191         Fix memory leak introduced on 2008-05-22.
30192         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30193         use.
30194
30195 2008-06-07  Bruno Haible  <bruno@clisp.org>
30196
30197         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30198         to construct an empty ACL.
30199
30200 2008-06-07  Bruno Haible  <bruno@clisp.org>
30201
30202         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30203         precisely.
30204         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30205
30206 2008-06-07  Bruno Haible  <bruno@clisp.org>
30207
30208         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30209         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30210
30211 2008-06-07  Bruno Haible  <bruno@clisp.org>
30212
30213         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30214         regardless of POSIX.
30215         * doc/posix-functions/_longjmp.texi: Likewise.
30216         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30217         SystemV platform in this case.
30218
30219 2008-06-06  Eric Blake  <ebb9@byu.net>
30220
30221         Document abort() bugs.
30222         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30223
30224         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30225         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30226         sigsetjmp.
30227         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30228         siglongjmp, but only as a macro.
30229         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30230         is obsolete.
30231         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30232
30233         Tweak documentation to cover cygwin argz bugs.
30234         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30235         argz bug fix; no code change needed since no cygwin releases
30236         occurred between the last fix and the bug being tested.
30237         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30238         module and recently fixed cygwin bugs.
30239         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30240         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30241         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30242         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30243         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30244         Likewise.
30245         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
30246         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
30247         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
30248         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
30249         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
30250         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
30251         Likewise.
30252
30253         Avoid gcc warning on cygwin.
30254         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
30255         !ACL_NO_TRIVIAL]: Avoid unused variable.
30256
30257 2008-06-05  Eric Blake  <ebb9@byu.net>
30258
30259         Be tolerant of UNKNOWN version in gnulib-tool test dir.
30260         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
30261         git-version-gen fails to come up with a version.
30262         Reported by Simon Josefsson.
30263
30264 2008-06-05  Jim Meyering  <meyering@redhat.com>
30265             Paul Eggert  <eggert@cs.ucla.edu>
30266
30267         utimens.c: work around a probable Linux kernel bug
30268         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
30269         appears to be a kernel bug that causes utimensat to return 280
30270         instead of 0, indicating success.
30271
30272 2008-06-04  Bruno Haible  <bruno@clisp.org>
30273
30274         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
30275         2008-06-01 commit.
30276
30277 2008-06-04  Bruno Haible  <bruno@clisp.org>
30278
30279         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
30280         * lib/file-has-acl.c (acl_access_nontrivial): New function.
30281         (file_has_acl): Use it. Save errno afterwards.
30282         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
30283
30284 2008-06-03  Bruno Haible  <bruno@clisp.org>
30285
30286         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30287         draft code. Simplify #ifs.
30288         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30289         Put Solaris code after POSIX-draft code. Fix comments regarding
30290         Solaris 10, HP-UX. Mention Cygwin.
30291         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30292
30293 2008-06-03  Eric Blake  <ebb9@byu.net>
30294
30295         Provide fallback for older kernels.
30296         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30297         Provide runtime fallback if kernel lacks support.
30298         Reported by Mike Frysinger.
30299
30300 2008-06-02  Bruno Haible  <bruno@clisp.org>
30301
30302         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30303         it exists.
30304
30305 2008-06-02  Bruno Haible  <bruno@clisp.org>
30306
30307         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30308         * lib/copy-acl.c (qcopy_acl): Update comment.
30309
30310 2008-06-02  Bruno Haible  <bruno@clisp.org>
30311
30312         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30313         like ACL APIs.
30314
30315 2008-06-02  Bruno Haible  <bruno@clisp.org>
30316
30317         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30318         * tests/test-set-mode-acl.sh: Likewise.
30319         * tests/test-copy-acl.sh: Likewise.
30320         * tests/test-copy-file.sh: Likewise.
30321
30322 2008-06-02  Bruno Haible  <bruno@clisp.org>
30323
30324         * tests/test-file-has-acl.sh: Remove unused code.
30325
30326 2008-06-01  Bruno Haible  <bruno@clisp.org>
30327
30328         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30329         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30330         messages.
30331         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30332
30333 2008-06-01  Bruno Haible  <bruno@clisp.org>
30334
30335         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30336         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30337         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30338         APIs.
30339         * modules/acl-tests (configure.ac): Remove tests now contained in
30340         m4/acl.m4.
30341
30342 2008-06-02  Jim Meyering  <meyering@redhat.com>
30343
30344         announce-gen: use a better key-server host name
30345         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30346         it may be more consistently reliable.  Suggested by Werner Koch
30347         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30348
30349 2008-06-01  Bruno Haible  <bruno@clisp.org>
30350
30351         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30352         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30353
30354 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30355
30356         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30357
30358 2008-06-01  Bruno Haible  <bruno@clisp.org>
30359
30360         New ACL tests.
30361         * tests/test-file-has-acl.sh: New file.
30362         * tests/test-file-has-acl.c: New file.
30363         * tests/test-set-mode-acl.sh: New file.
30364         * tests/test-set-mode-acl.c: New file.
30365         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30366         * tests/test-copy-acl.c: New file.
30367         * modules/acl-tests: New file, based on modules/copy-file-tests.
30368         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30369         (Depends-on): Add acl-tests.
30370         (configure.ac): Remove checks.
30371         (Makefile.am): Don't create test-sameacls program here any more.
30372
30373 2008-06-01  Bruno Haible  <bruno@clisp.org>
30374
30375         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30376         * tests/test-sameacls.c: Include progname.h.
30377         (main): Invoke set_program_name. Portability fixes for MacOS X,
30378         Solaris, HP-UX.
30379
30380 2008-06-01  Bruno Haible  <bruno@clisp.org>
30381
30382         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30383         function.
30384         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30385
30386 2008-06-01  Bruno Haible  <bruno@clisp.org>
30387
30388         * modules/rpmatch (Depends-on): Add strdup.
30389
30390 2008-06-01  Bruno Haible  <bruno@clisp.org>
30391
30392         * lib/pipe.c: Include unistd-safer.h.
30393         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30394         * modules/pipe (Depends-on): Add unistd-safer.
30395
30396 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30397
30398         * modules/autobuild (configure.ac): Call AB_INIT.
30399
30400 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30401
30402         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30403         Suggested by Bruno Haible <bruno@clisp.org>.
30404
30405 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30406
30407         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30408         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30409         <bruno@clisp.org>.
30410
30411 2008-05-29  Eric Blake  <ebb9@byu.net>
30412
30413         Prefer new POSIX 200x interfaces over futimesat.
30414         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
30415         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
30416         when available.
30417         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
30418
30419 2008-05-28  Bruno Haible  <bruno@clisp.org>
30420
30421         * modules/stpcpy (License): Change to LGPLv2+.
30422         Requested by David Lutterkort <dlutter@redhat.com>.
30423
30424 2008-05-27  Bruno Haible  <bruno@clisp.org>
30425
30426         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
30427         current mingw.
30428         Reported by Jose E. Marchesi <jemarch@gnu.org>.
30429
30430 2008-05-27  Bruno Haible  <bruno@clisp.org>
30431
30432         * modules/iconv_open (Link): New section, from module 'iconv'.
30433         * modules/striconv (Link): Likewise.
30434         * modules/striconveh (Link): Likewise.
30435         * modules/xstriconv (Link): Likewise.
30436         * modules/unicodeio (Link): Likewise.
30437         * modules/propername (Link): Likewise.
30438         Reported by Jim Meyering.
30439
30440 2008-05-26  Jim Meyering  <meyering@redhat.com>
30441
30442         sha256: do not artificially restrict buffer length to be < 2^32
30443         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
30444         uint32_t to size_t.
30445         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
30446         to match.
30447
30448         avoid unaligned access errors, e.g., on sparc
30449         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
30450         direct access through a possibly-unaligned uint64* pointer.
30451         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
30452         direct access through a possibly-unaligned uint32* pointer.
30453         Prompted by this patch from Tom "spot" Callaway:
30454         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
30455
30456         sha512.c: fix typo in comment
30457         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
30458
30459 2008-05-25  Bruno Haible  <bruno@clisp.org>
30460
30461         * lib/set-mode-acl.c: Renamed from lib/acl.c.
30462         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
30463         (Makefile.am): Update lib_SOURCES.
30464
30465 2008-05-25  Bruno Haible  <bruno@clisp.org>
30466
30467         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
30468
30469 2008-05-25  Jim Meyering  <meyering@redhat.com>
30470
30471         useless-if-before-free: freed expr may have white-space differences
30472         * build-aux/useless-if-before-free: Recognize cases in which the
30473         freed expression differs from the tested one in embedded white
30474         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30475         $1 was used, so we can't make any regexp shy.  Improved tests now
30476         detect this.
30477
30478         useless-if-before-free: accept white space in the expression.
30479         * build-aux/useless-if-before-free: For now, any white space
30480         in the expression must be identical in the free argument.
30481
30482         useless-if-before-free: efficiency tweak
30483         * build-aux/useless-if-before-free: Make the expression-matching
30484         regexp "shy".
30485         Make the *outer* regexp shy, not the expr-matching one.
30486
30487         update code-in-comment to accept cast of free arg
30488         * build-aux/useless-if-before-free: Update regexp.
30489
30490 2008-05-25  Bruno Haible  <bruno@clisp.org>
30491
30492         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
30493         * modules/copy-file-tests (Files, Makefile.am): Update.
30494         * tests/test-copy-file.c (func_test_copy): Update.
30495
30496 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
30497
30498         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
30499
30500 2008-05-23  Bruno Haible  <bruno@clisp.org>
30501
30502         Improve support for ACLs on OSF/1.
30503         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
30504         Remove fallback for unknown flavors of ACLs.
30505
30506 2008-05-22  Bruno Haible  <bruno@clisp.org>
30507
30508         Add support for ACLs on OSF/1.
30509         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30510         replacements.
30511         (acl_free_text): New macro fallback.
30512         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
30513         acl_free.
30514         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
30515         acl_free_text function. Require AC_C_INLINE.
30516
30517 2008-05-22  Bruno Haible  <bruno@clisp.org>
30518
30519         Make copy_acl work on MacOS X 10.5.
30520         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
30521         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
30522         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
30523         If MODE_INSIDE_ACL, don't assume that every system has the same text
30524         representation for ACLs as FreeBSD.
30525         * lib/copy-acl.c (copy_acl): Add support for platforms with
30526         !MODE_INSIDE_ACL.
30527         * lib/file-has-acl.c (file_has_acl): Likewise.
30528         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
30529         FreeBSD, MacOS X, or IRIX, respectively.
30530
30531 2008-05-22  Bruno Haible  <bruno@clisp.org>
30532
30533         * lib/acl.h: Don't include <sys/acl.h>.
30534         (GETACLCNT): Move fallback to lib/acl-internal.h.
30535         * lib/acl-internal.h: Include <sys/acl.h> here.
30536         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
30537
30538 2008-05-22  Bruno Haible  <bruno@clisp.org>
30539
30540         Split off copy_acl function to separate file.
30541         * lib/copy-acl.c: New file, extracted from lib/acl.c.
30542         * lib/acl.c (copy_acl): Moved function to separate file.
30543         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
30544         * modules/acl (Files): Add lib/copy-acl.c.
30545         (Makefiles.am): Augment lib_SOURCES.
30546
30547 2008-05-22  Bruno Haible  <bruno@clisp.org>
30548
30549         * modules/copy-file-tests: New file.
30550         * tests/test-copy-file.sh: New file.
30551         * tests/test-copy-file.c: New file.
30552         * tests/test-copy-file-sameacls.c: New file.
30553
30554 2008-05-22  Eric Blake  <ebb9@byu.net>
30555
30556         Avoid gcc warning.
30557         * tests/test-memcmp.c (main): Pass NULL indirectly.
30558
30559 2008-05-21  Bruno Haible  <bruno@clisp.org>
30560
30561         Add reference doc about ACLs.
30562         * doc/acl-resources.txt: New file.
30563         * doc/acl-cygwin.txt: New file.
30564
30565 2008-05-21  Bruno Haible  <bruno@clisp.org>
30566
30567         Avoid one more warning from gcc.
30568         * lib/vasnprintf.c (IF_LINT): Update comments.
30569         (VASNPRINTF): Use it also for the 'prefix' array initializer.
30570
30571 2008-05-21  Jim Meyering  <meyering@redhat.com>
30572
30573         avoid a warning from gcc
30574         * lib/vasnprintf.c (IF_LINT): Define.
30575         (scale10_round_decimal_long_double):
30576         Use it to avoid a "may be used uninitialized" warning.
30577         (scale10_round_decimal_double): Likewise.
30578
30579 2008-05-21  Simon Josefsson  <simon@josefsson.org>
30580
30581         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
30582         declared.
30583
30584 2008-05-20  Bruno Haible  <bruno@clisp.org>
30585
30586         * tests/test-memcmp.c (main): Test also the sign of the result. Test
30587         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
30588
30589 2008-05-20  Simon Josefsson  <simon@josefsson.org>
30590
30591         * modules/memcmp-tests: New file.
30592         * tests/test-memcmp.c: New file.
30593
30594 2008-05-19  Bruno Haible  <bruno@clisp.org>
30595
30596         * modules/propername (Notice, configure.ac): Put quoted "..." into
30597         --keyword option.
30598         * lib/propername.h: Update comments accordingly.
30599         Reported by Eric Blake.
30600
30601 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
30602
30603         * modules/getpass-gnu (Depends-on): Add fseeko.
30604
30605 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30606
30607         * modules/base64-tests: New file.
30608
30609 2008-05-19  Bo Borgerson <gigabo@gmail.com>
30610
30611         * lib/base64.c (base64_decode_ctx): If a decode context structure
30612         was passed in use it to ignore newlines.  If a context structure
30613         was _not_ passed in, continue to treat newlines as garbage (this
30614         is the historical behavior).  Formerly base64_decode.
30615         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30616         takes a decode context structure.
30617         * lib/base64.h (base64_decode): Macro for four-argument calls.
30618         (base64_decode_alloc): Likewise.
30619         * lib/base64.c (base64_decode_ctx): If a decode context structure
30620         was passed in use it to ignore newlines.  If a context structure
30621         was _not_ passed in, continue to treat newlines as garbage (this
30622         is the historical behavior).  Formerly base64_decode.
30623         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30624         takes a decode context structure.
30625         * lib/base64.h (base64_decode): Macro for four-argument calls.
30626         (base64_decode_alloc): Likewise.
30627
30628 2008-05-19  Jim Meyering  <meyering@redhat.com>
30629
30630         avoid a warning from gcc
30631         * lib/trim.c (IF_LINT): Define.
30632         (trim2): Use it to avoid a "may be used uninitialized" warning.
30633
30634         Fix doc typo.
30635         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
30636
30637 2008-05-19  Bruno Haible  <bruno@clisp.org>
30638
30639         * doc/glibc-functions/getpass.texi: Document limits of other
30640         implementations.
30641
30642 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30643             Bruno Haible <bruno@clisp.org>
30644
30645         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
30646
30647 2008-05-18  Bruno Haible  <bruno@clisp.org>
30648
30649         * modules/propername: New file, from GNU gettext.
30650         * lib/propername.h: New file, from GNU gettext.
30651         * lib/propername.c: New file, from GNU gettext.
30652         * MODULES.html.sh (Internationalization functions): Add propername.
30653
30654 2008-05-16  Jim Meyering  <meyering@redhat.com>
30655             Bruno Haible  <bruno@clisp.org>
30656
30657         Avoid some warnings from "gcc -Wshadow".
30658         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
30659
30660 2008-05-15  Eric Blake  <ebb9@byu.net>
30661
30662         Extend previous patch to cygwin 1.7.0.
30663         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
30664         fast implementation in cygwin >= 1.7.0.
30665         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30667
30668 2008-05-15  Bruno Haible  <bruno@clisp.org>
30669
30670         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
30671         implementation in glibc >= 2.9.
30672         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30673         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30674
30675 2008-05-15  Bruno Haible  <bruno@clisp.org>
30676
30677         * MODULES.html.sh (Internationalization functions): Remove linebreak.
30678         (Unicode string functions): Add unilbrk/*.
30679         Reported by Karl Berry.
30680
30681 2008-05-15  Eric Blake  <ebb9@byu.net>
30682
30683         Fix violation of <stdbool.h> replacement in regex.
30684         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
30685         * lib/regexec.c (re_search_internal): Likewise.
30686         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
30687
30688 2008-05-15  Jim Meyering  <meyering@redhat.com>
30689
30690         avoid distracting test output when git or cvs is not found
30691         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
30692         * tests/test-vc-list-files-git.sh: Likewise.
30693
30694 2008-05-15  Eric Blake  <ebb9@byu.net>
30695
30696         Glibc finally accepted the memmem speedup code, bugzilla #5514.
30697         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
30698         glibc version.
30699         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30700         * doc/posix-functions/strstr.texi (strstr): Likewise.
30701         * lib/str-two-way.h (MAX): Sychronize with glibc.
30702
30703 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
30704
30705         * lib/regcomp.c (optimize_utf8): Add a note on why we test
30706         opr.ctx_type.
30707         (calc_first): Initialize constraint field.
30708         (duplicate_node_closure): Use it instead of special casing ANCHORS.
30709         Fix grammar.
30710         (duplicate_node): Merge constraint field for all node types.
30711         (calc_eclosure_iter): Look at constraint field for all node types.
30712         * lib/regex_internal.c (create_cd_newstate): Don't look at
30713         opr.ctx_type.
30714
30715 2008-05-14  Bruno Haible  <bruno@clisp.org>
30716
30717         Help GCC to do better code generation.
30718         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
30719         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30720         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
30721         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
30722         Declare with attribute 'malloc' if supported.
30723
30724 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
30725
30726         use "echo STR|wc -c" rather than unportable "expr length STR"
30727         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
30728         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
30729
30730 2008-05-14  Jim Meyering  <meyering@redhat.com>
30731
30732         use dd ibs=$n count=1 ... rather than less-portable head -c$n
30733         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
30734         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
30735         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
30736         via Collin Lasse.
30737
30738 2008-05-14  Eric Blake  <ebb9@byu.net>
30739
30740         Avoid quadratic growth in gl_LIBSOURCES.
30741         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
30742         Suggested by Bruno Haible.
30743
30744         Test xmemdup0.
30745         * modules/xmemdup0-tests: New file.
30746         * tests/test-xmemdup0.c: Likewise.
30747
30748 2008-05-13  Eric Blake  <ebb9@byu.net>
30749
30750         Split xmemdup0 into its own module.
30751         * modules/xmemdup0: New file.
30752         * lib/xmemdup0.h: Likewise.
30753         * lib/xmemdup0.c: Likewise.
30754         * MODULES.html.sh (Memory management functions): Add xmemdup0.
30755         * lib/xalloc.h (xmemdup0): Remove.
30756         * lib/xmalloc.c (xmemdup0): Likewise.
30757
30758 2008-05-13  Eric Blake  <ebb9@byu.net>
30759             Bruno Haible  <bruno@clisp.org>
30760
30761         Reduce number of forks required during autoconf.
30762         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
30763         and gl_LIBSOURCES_DIR.
30764         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
30765         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
30766         m4_syscmd per file.
30767         <m4_foreach_w>: Move...
30768         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
30769
30770 2008-05-13  Eric Blake  <ebb9@byu.net>
30771
30772         * gnulib-tool: Fix various comment typos.
30773
30774 2008-05-12  Bruno Haible  <bruno@clisp.org>
30775
30776         Tailor the linebreaking algorithm.
30777         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
30778
30779 2008-05-12  Bruno Haible  <bruno@clisp.org>
30780
30781         Update to Unicode 5.0.0.
30782         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30783         LBP_JV, LBP_JT. Redistribute values.
30784         (unilbrk_table): Change size.
30785         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
30786         Unicode TR#14 rev. 22.
30787         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30788         LBP_JV, LBP_JT. Redistribute values.
30789         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
30790         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
30791         Update.
30792         * lib/unilbrk/lbrkprop1.h: Regenerated.
30793         * lib/unilbrk/lbrkprop2.h: Regenerated.
30794         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
30795         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
30796         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
30797         Likewise.
30798         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
30799         Likewise.
30800         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
30801         result.
30802         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
30803         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
30804         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
30805         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
30806         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
30807         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
30808
30809 2008-05-11  Bruno Haible  <bruno@clisp.org>
30810
30811         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
30812
30813 2008-05-11  Bruno Haible  <bruno@clisp.org>
30814
30815         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
30816         * modules/unilbrk/gen-lbrk: New file.
30817
30818 2008-05-11  Bruno Haible  <bruno@clisp.org>
30819
30820         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
30821         * m4/sha512.m4 (gl_SHA512): Likewise.
30822
30823 2008-05-11  Jim Meyering  <meyering@redhat.com>
30824
30825         New modules: crypto/sha256, crypto/sha512 (from coreutils)
30826         * modules/crypto/sha256: New file.
30827         * modules/crypto/sha512: Likewise.
30828         * lib/sha256.c: Likewise.
30829         * lib/sha256.h: Likewise.
30830         * lib/sha512.c: Likewise.
30831         * lib/sha512.h: Likewise.
30832         * lib/u64.h: Likewise.
30833         * m4/sha256.m4: Likewise.
30834         * m4/sha512.m4: Likewise.
30835         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
30836
30837 2008-05-10  Bruno Haible  <bruno@clisp.org>
30838
30839         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
30840         (Input/Output <stdio.h>): Add xprintf.
30841         (Signal handling <signal.h>): Add strsignal.
30842         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
30843         (Core language properties): Add func.
30844         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
30845         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
30846         strings.
30847         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
30848         (Input/output): New section.
30849         (File system functions): Add openat-die, stat-macros.
30850         (Networking functions): Add sockets.
30851         (Unicode string functions): Add unictype/*.
30852         (Support for building libraries and executables): Add gperf.
30853         (Support for building documentation): Add agpl-3.0.
30854         (Misc): Add nocrash.
30855
30856 2008-05-10  Bruno Haible  <bruno@clisp.org>
30857
30858         * modules/unictype/gen-ctype: New file.
30859
30860 2008-05-10  Jim Meyering  <meyering@redhat.com>
30861
30862         Make chdir-safer.c more efficient on a system with no symlinks.
30863         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
30864         also if ELOOP is zero.  Suggested by Bruno Haible.
30865
30866         Make chdir-safer.c slightly safer.
30867         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
30868         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
30869
30870         Avoid compile failure on systems without ELOOP (like mingw).
30871         * lib/chdir-safer.c (ELOOP): Define if not already defined.
30872         Reported by Bruno Haible.
30873
30874 2008-05-10  Bruno Haible  <bruno@clisp.org>
30875
30876         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
30877         (is_utf8_encoding): Use a case-insensitive comparison.
30878         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
30879         streq.
30880
30881 2008-05-10  Bruno Haible  <bruno@clisp.org>
30882
30883         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
30884         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
30885         * lib/unilbrk/ulc-common.h (iconv_string_length,
30886         iconv_string_keeping_offsets): Remove declarations.
30887         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
30888         Don't include <iconv.h>, streq.h, xsize.h.
30889         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
30890         conversion.
30891         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
30892         <iconv.h>, streq.h, xsize.h.
30893         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
30894         conversion.
30895         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
30896         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
30897         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
30898         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
30899
30900 2008-05-10  Bruno Haible  <bruno@clisp.org>
30901
30902         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
30903         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
30904
30905         * modules/unilbrk/u32-width-linebreaks-tests: New file.
30906         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
30907
30908         * modules/unilbrk/u16-width-linebreaks-tests: New file.
30909         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
30910
30911         * modules/unilbrk/u8-width-linebreaks-tests: New file.
30912         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
30913
30914         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
30915         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
30916
30917         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
30918         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
30919
30920         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
30921         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
30922
30923         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
30924         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
30925
30926 2008-05-10  Bruno Haible  <bruno@clisp.org>
30927
30928         Split up 'linebreak' module.
30929         * lib/unilbrk.h: New file, based on lib/linebreak.h.
30930         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
30931         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
30932         modifications.
30933         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
30934         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
30935         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
30936         lib/linebreak.c.
30937         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
30938         lib/linebreak.c.
30939         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
30940         lib/linebreak.c.
30941         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
30942         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
30943         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
30944         lib/linebreak.c.
30945         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
30946         lib/linebreak.c.
30947         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
30948         lib/linebreak.c.
30949         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
30950         lib/linebreak.c.
30951         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
30952         lib/linebreak.c.
30953         * modules/unilbrk/base: New file.
30954         * modules/unilbrk/tables: New file.
30955         * modules/unilbrk/u8-possible-linebreaks: New file.
30956         * modules/unilbrk/u16-possible-linebreaks: New file.
30957         * modules/unilbrk/u32-possible-linebreaks: New file.
30958         * modules/unilbrk/ulc-common: New file.
30959         * modules/unilbrk/ulc-possible-linebreaks: New file.
30960         * modules/unilbrk/u8-width-linebreaks: New file.
30961         * modules/unilbrk/u16-width-linebreaks: New file.
30962         * modules/unilbrk/u32-width-linebreaks: New file.
30963         * modules/unilbrk/ulc-width-linebreaks: New file.
30964         * lib/linebreak.h: Remove file.
30965         * lib/linebreak.c: Remove file.
30966         * m4/linebreak.m4: Remove file.
30967         * modules/linebreak: Remove file.
30968         * NEWS: Mention the changes.
30969
30970 2008-05-09  Eric Blake  <ebb9@byu.net>
30971
30972         Add xmemdup0.
30973         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
30974         implementation.
30975         * lib/xmalloc.c (xmemdup0): New C implementation.
30976
30977 2008-05-08  Bruno Haible  <bruno@clisp.org>
30978
30979         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
30980
30981 2008-05-07  Eric Blake  <ebb9@byu.net>
30982
30983         Support cross-compilation of <wctype.h>.
30984         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
30985         AC_CACHE_CHECK.
30986
30987 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
30988
30989         * build-aux/vc-list-files: Add support for bzr.
30990
30991 2008-05-03  Jim Meyering  <meyering@redhat.com>
30992
30993         avoid failed assertion with tight malloc
30994         * tests/test-getndelim2.c: Correct an off-by-one assertion.
30995
30996 2008-05-03  Simon Josefsson  <simon@josefsson.org>
30997
30998         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
30999         are needed from arpa/inet.h.
31000         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31001         Reported by Bruno Haible.
31002
31003 2008-05-02  Jim Meyering  <meyering@redhat.com>
31004
31005         avoid compilation error on FreeBSD 6
31006         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31007
31008 2008-05-01  Jim Meyering  <meyering@redhat.com>
31009
31010         useless-if-before-free: correct --help's exit status description
31011         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31012         for one or more matches, etc.  Reported by Bruno Haible.
31013
31014         vc-list-files: make the stand-alone gnulib test work
31015         * modules/vc-list-files-tests (configure.ac):
31016         Define and AC_SUBST abs_aux_dir.
31017         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31018         $(abs_top_srcdir) to each script and having each of them
31019         duplicate the work of setting PATH, set PATH here, using
31020         the new variable, abs_aux_dir instead.
31021         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31022         * tests/test-vc-list-files-git.sh: Likewise.
31023         Reported by Bruno Haible.
31024
31025 2008-05-01  Bruno Haible  <bruno@clisp.org>
31026
31027         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31028         reallocation. Rename 'done' to 'found_delimiter'.
31029
31030 2008-05-01  Jim Meyering  <meyering@redhat.com>
31031
31032         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31033         * build-aux/vc-list-files: Use `...`, not $(...).
31034
31035 2008-04-30  Jim Meyering  <meyering@redhat.com>
31036
31037         add tests for vc-list-files
31038         * modules/vc-list-files-tests: New module.
31039         * tests/test-vc-list-files-cvs.sh: New file.
31040         * tests/test-vc-list-files-git.sh: New file.
31041
31042         avoid a warning from gcc
31043         * lib/getndelim2.c (IF_LINT): Define.
31044         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31045
31046         vc-list-files: work properly with build-aux/cvsu, too
31047         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31048         to all cvs-based clauses.
31049
31050         vc-list-files: work properly in the CVS+awk case, too
31051         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31052
31053         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31054         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31055         take more than one file argument, so .  Add quotes, just in case $dir
31056         ever contains a shell meta-character.  Prompted by Soren Hansen in
31057         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31058
31059 2008-04-29  Eric Blake  <ebb9@byu.net>
31060
31061         Optimize getndelim2 to use block operations when possible.
31062         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31063         freadseek, and memchr2.
31064         * lib/getndelim2.c (getndelim2): Use them for block reads.
31065
31066 2008-04-29  Bruno Haible  <bruno@clisp.org>
31067
31068         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31069         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31070         * modules/inet_ntop (Depends-on): Add extensions.
31071         * modules/inet_pton (Depends-on): Likewise.
31072         Reported by Simon Josefsson.
31073
31074 2008-04-29  Jim Meyering  <meyering@redhat.com>
31075
31076         When the is more than one match in a block, match all of them.
31077         * build-aux/useless-if-before-free: Iterate through each block
31078         until there are no more matches.
31079
31080         Fix broken useless-if-before-free script.
31081         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31082         the expression to match cast of argument to free-like function.
31083
31084 2008-04-29  Eric Blake  <ebb9@byu.net>
31085
31086         Use new header.
31087         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31088
31089 2008-04-29  Jim Meyering  <meyering@redhat.com>
31090
31091         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31092         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31093         by gnulib to exist and to declare e.g., inet_ntop.
31094         Don't include "inet_ntop.h", now removed.
31095
31096         * m4/arpa_inet_h.m4: Remove trailing blanks.
31097
31098 2008-04-29  Eric Blake  <ebb9@byu.net>
31099
31100         Silence valgrind on safe reads beyond potential array bounds.
31101         * lib/rawmemchr.valgrind: New file.
31102         * lib/strchrnul.valgrind: Likewise.
31103         * modules/rawmemchr (Files): Distribute new file.
31104         * modules/strchrnul (Files): Likewise.
31105         Suggested by Bruno Haible.
31106
31107 2008-04-29  Bruno Haible  <bruno@clisp.org>
31108
31109         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31110         (inet_ntop, inet_pton): Change portability warning's wording.
31111         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31112         Invoke gl_CHECK_NEXT_HEADERS.
31113         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31114         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31115         set ARPA_INET_H.
31116         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31117         * modules/arpa_inet (Description): No longer only for systems that
31118         lack it.
31119         (Depends-on): Add include_next.
31120         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31121         HAVE_ARPA_INET_H.
31122
31123 2008-04-29  Jim Meyering  <meyering@redhat.com>
31124
31125         * modules/mkdir (License): Re-license as LGPLv2+.
31126
31127 2008-04-29  Bruno Haible  <bruno@clisp.org>
31128
31129         * modules/rawmemchr (Maintainer): Set to Eric.
31130         * modules/strchrnul (Maintainer): Likewise.
31131
31132 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31133
31134         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31135         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31136
31137         * modules/arpa_inet (arpa/inet.h): Use them.
31138
31139 2008-04-28  Eric Blake  <ebb9@byu.net>
31140
31141         Test getndelim2.
31142         * modules/getndelim2-tests: New file.
31143         * tests/test-getndelim2.c: Likewise.
31144         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31145         stream.
31146         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31147
31148         * MODULES.html.sh: Document new module.
31149
31150 2008-04-20  Bruno Haible  <bruno@clisp.org>
31151
31152         * lib/c-stack.c (die): Use raise.
31153         * modules/c-stack (Depends-on): Add raise.
31154
31155 2008-04-28  Bruno Haible  <bruno@clisp.org>
31156
31157         Expect rpmatch to be declared.
31158         * lib/yesno.c (rpmatch): Remove declaration.
31159
31160         Declare rpmatch.
31161         * lib/stdlib.in.h (rpmatch): New declaration.
31162         * lib/rpmatch.c: Include <stdlib.h> first.
31163         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31164         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31166         HAVE_RPMATCH.
31167         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31168         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31169         (Include): Set to <stdlib.h>.
31170         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31171         HAVE_RPMATCH.
31172         * NEWS: Document the change.
31173
31174 2008-04-28  Bruno Haible  <bruno@clisp.org>
31175
31176         Change rpmatch to use nl_langinfo when appropriate.
31177         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31178         (N_): New macro.
31179         (localized_pattern): New function/macro.
31180         (try): Remove match, nomatch arguments. Copy the pattern into safe
31181         memory before caching it.
31182         (rpmatch): Use localized_pattern. Add translator comments.
31183         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31184         Suggested by Eric Blake.
31185         * modules/rpmatch (Depends-on): Add stdbool.
31186
31187 2008-04-28  Eric Blake  <ebb9@byu.net>
31188
31189         Add rawmemchr module, matching glibc.
31190         * modules/string (Makefile.am): New indicator.
31191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31192         * lib/string.in.h (rawmemchr): Declare when appropriate.
31193         * modules/rawmemchr: New file.
31194         * m4/rawmemchr.m4: Likewise.
31195         * lib/rawmemchr.c: Likewise.
31196         * modules/rawmemchr-tests: Likewise.
31197         * tests/test-rawmemchr.c: Likewise.
31198         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31199         module.
31200         * modules/strchrnul (Depends-on): Add rawmemchr.
31201         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31202
31203         Whitespace cleanup.
31204         * tests/test-strchrnul.c: Reindent.
31205         * lib/strchrnul.c: Likewise.
31206
31207         Optimize and test strchrnul.
31208         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31209         * modules/strchrnul-tests: New file.
31210         * tests/test-strchrnul.c: Likewise.
31211
31212         Remove intprops dependency.
31213         * modules/memchr (Depends-on): Remove intprops.
31214         * modules/memrchr (Depends-on): Likewise.
31215         * modules/memchr2 (Depends-on): Likewise.
31216         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31217         * lib/memrchr.c (__memrchr): Likewise.
31218         * lib/memrchr2.c (memchr2): Likewise.
31219         Reported by Simon Josefsson.
31220
31221 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31222
31223         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31224         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31225
31226 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31227
31228         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31229
31230         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31231
31232         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31233
31234         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31235         declarations.
31236         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31237
31238         * m4/inet_pton.m4: Don't check for header files.
31239
31240         * m4/inet_ntop.m4: Don't check for header files.
31241
31242 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31243
31244         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
31245         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
31246         trigger for cygwin).
31247         Reported by Bruno Haible  <bruno@clisp.org>.
31248
31249 2008-04-28  Bruno Haible  <bruno@clisp.org>
31250
31251         * doc/posix-functions/strdup.texi: Mention mingw problem.
31252
31253 2008-04-27  Bruno Haible  <bruno@clisp.org>
31254
31255         * modules/stat-time-tests (Depends-on): Add sleep.
31256         * tests/test-stat-time.c (force_unlink): New function.
31257         (cleanup): Use it.
31258         (test_mtime): Remove the ctime related tests.
31259         (test_ctime): New function, containing the ctime related tests.
31260         (main): Call test_ctime, except on native Windows platforms.
31261
31262 2008-04-27  Bruno Haible  <bruno@clisp.org>
31263
31264         * lib/rpmatch.c (rpmatch): Add some comments.
31265         Reported by James Youngman <jay@gnu.org>.
31266
31267 2008-04-27  Bruno Haible  <bruno@clisp.org>
31268
31269         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
31270         quiet NaNs.
31271
31272 2008-04-27  Bruno Haible  <bruno@clisp.org>
31273
31274         Make test-yesno.sh work on mingw.
31275         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
31276         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
31277         (main): Set stdin to binary mode.
31278         * modules/yesno-tests (Depends-on): Add binary-io.
31279
31280 2008-04-27  Bruno Haible  <bruno@clisp.org>
31281
31282         Fix 'isfinite' on x86, x86_64, ia64 platforms.
31283         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
31284         argument that lie outside the IEEE 854 domain.
31285         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31286         (gl_ISFINITE): Use it.
31287         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31288
31289 2008-04-27  Bruno Haible  <bruno@clisp.org>
31290
31291         Allow local renaming in config.h.
31292         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31293
31294 2008-04-27  Bruno Haible  <bruno@clisp.org>
31295
31296         * lib/memchr.c (__memchr): Change type of 'i'.
31297         * lib/memchr2.c (memchr2): Likewise.
31298
31299 2008-04-26  Eric Blake  <ebb9@byu.net>
31300         and Bruno Haible  <bruno@clisp.org>
31301
31302         Optimize and test memrchr.
31303         * modules/memrchr (Depends-on): Add intprops.
31304         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31305         * modules/memrchr-tests: New file.
31306         * tests/test-memrchr.c: New file.
31307
31308 2008-04-26  Bruno Haible  <bruno@clisp.org>
31309
31310         Add tentative support for DragonFly BSD.
31311         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31312         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31313         fp.
31314         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31315         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31316         * lib/fpurge.c (fpurge): Likewise.
31317         * lib/freadable.c (freaadable): Likewise.
31318         * lib/freadahead.c (freadahead): Likewise.
31319         * lib/freading.c (freading): Likewise.
31320         * lib/freadptr.c (freadptr): Likewise.
31321         * lib/freadseek.c (freadptrinc): Likewise.
31322         * lib/fseeko.c (fseeko): Likewise.
31323         * lib/fseterr.c (fseterr): Likewise.
31324         * lib/fwritable.c (fwritable): Likewise.
31325         * lib/fwriting.c (fwriting): Likewise.
31326
31327 2008-04-26  Bruno Haible  <bruno@clisp.org>
31328
31329         * lib/stdio-impl.h: New file.
31330         * lib/fbufmode.c: Include stdio-impl.h.
31331         (fbufmode): Use fp_, remove redundant #defines.
31332         * lib/fflush.c: Include stdio-impl.h.
31333         (clear_ungetc_buffer): Remove redundant #defines.
31334         * lib/fpurge.c: Include stdio-impl.h.
31335         (fpurge): Remove redundant #defines.
31336         * lib/freadable.c: Include stdio-impl.h.
31337         (freadable): Remove redundant #defines.
31338         * lib/freadahead.c: Include stdio-impl.h.
31339         (freadahead): Remove redundant #defines.
31340         * lib/freading.c: Include stdio-impl.h.
31341         (freading): Remove redundant #defines.
31342         * lib/freadptr.c: Include stdio-impl.h.
31343         (freadptr): Remove redundant #defines.
31344         * lib/freadseek.c: Include stdio-impl.h.
31345         (freadptrinc): Remove redundant #defines.
31346         * lib/fseeko.c: Include stdio-impl.h.
31347         (rpl_fseeko): Remove redundant #defines.
31348         * lib/fseterr.c: Include stdio-impl.h.
31349         (fseterr): Remove redundant #defines.
31350         * lib/fwritable.c: Include stdio-impl.h.
31351         (fwritable: Remove redundant #defines.
31352         * lib/fwriting.c: Include stdio-impl.h.
31353         (fwriting): Remove redundant #defines.
31354         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31355         * modules/fflush (Files): Likewise.
31356         * modules/fpurge (Files): Likewise.
31357         * modules/freadable (Files): Likewise.
31358         * modules/freadahead (Files): Likewise.
31359         * modules/freading (Files): Likewise.
31360         * modules/freadptr (Files): Likewise.
31361         * modules/freadseek (Files): Likewise.
31362         * modules/fseeko (Files): Likewise.
31363         * modules/fseterr (Files): Likewise.
31364         * modules/fwritable (Files): Likewise.
31365         * modules/fwriting (Files): Likewise.
31366
31367 2008-04-26  Bruno Haible  <bruno@clisp.org>
31368
31369         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31370         restore_seek_optimization, update_fpos_cache): New functions, extracted
31371         from rpl_fflush.
31372         (rpl_fflush): Use them.
31373         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31374         (gl_REPLACE_FFLUSH): Use it.
31375
31376 2008-04-26  Bruno Haible  <bruno@clisp.org>
31377
31378         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31379         on Solaris.
31380         * tests/test-xstrtoimax.sh: Likewise.
31381         * tests/test-xstrtoumax.sh: Likewise.
31382         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31383
31384 2008-04-26  Bruno Haible  <bruno@clisp.org>
31385
31386         * modules/memchr-tests: New file.
31387         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31388
31389 2008-04-26  Eric Blake  <ebb9@byu.net>
31390             Bruno Haible  <bruno@clisp.org>
31391
31392         * lib/memchr.c: Include intprops.h.
31393         (__memchr): Optimize parallel detection of matching bytes. Rename local
31394         variables. Add explanatory comments.
31395
31396 2008-04-26  Bruno Haible  <bruno@clisp.org>
31397
31398         Fix module 'memchr', broken since 2000-10-28.
31399         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31400
31401 2008-04-26  Bruno Haible  <bruno@clisp.org>
31402
31403         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31404         comments.
31405
31406 2008-04-25  Eric Blake  <ebb9@byu.net>
31407
31408         Use native fstatat on cygwin 1.7.0.
31409         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31410         first.
31411
31412 2008-04-23  Eric Blake  <ebb9@byu.net>
31413
31414         Improve memchr2 performance.
31415         * lib/memchr2.c (memchr2): Further optimize parallel detection of
31416         NUL bytes.
31417         * modules/memchr2 (Depends-on): Use intprops.h.
31418
31419 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31420
31421         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
31422         an inline function instead of a CPP macro.  Patch by Ben Pfaff
31423         <blp@cs.stanford.edu>.
31424
31425 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31426
31427         * lib/arpa_inet.in.h: New file.
31428
31429         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
31430         (Makefile.am): Sed in substitute header file.
31431
31432         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
31433         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
31434
31435         * modules/inet_ntop (configure.ac): Use
31436         gl_ARPA_INET_MODULE_INDICATOR.
31437
31438         * modules/inet_pton (configure.ac): Use
31439         gl_ARPA_INET_MODULE_INDICATOR.
31440
31441 2008-04-22  Jim Meyering  <meyering@redhat.com>
31442
31443         * modules/verify (License): Re-license as LGPLv2+.
31444
31445 2008-04-22  Simon Josefsson  <simon@josefsson.org>
31446
31447         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
31448         parameter to void* as per POSIX standard (MinGW uses char*).
31449
31450 2008-04-21  Bruno Haible  <bruno@clisp.org>
31451
31452         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31453         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31454         Define to replacements if REPLACE_ISWCNTRL is 1.
31455         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
31456         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
31457         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
31458         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
31459         what it fixes.
31460         * doc/posix-functions/iswalpha.texi: Likewise.
31461         * doc/posix-functions/iswblank.texi: Likewise.
31462         * doc/posix-functions/iswcntrl.texi: Likewise.
31463         * doc/posix-functions/iswdigit.texi: Likewise.
31464         * doc/posix-functions/iswgraph.texi: Likewise.
31465         * doc/posix-functions/iswlower.texi: Likewise.
31466         * doc/posix-functions/iswprint.texi: Likewise.
31467         * doc/posix-functions/iswpunct.texi: Likewise.
31468         * doc/posix-functions/iswspace.texi: Likewise.
31469         * doc/posix-functions/iswupper.texi: Likewise.
31470         * doc/posix-functions/iswxdigit.texi: Likewise.
31471         Reported by Alain Guibert.
31472
31473 2008-04-21  Bruno Haible  <bruno@clisp.org>
31474
31475         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
31476         Patch by Alain Guibert.
31477
31478 2008-04-21  Bruno Haible  <bruno@clisp.org>
31479
31480         Fix test failures on mingw.
31481         * tests/test-xstrtol.c (print_no_progname): New function.
31482         (main): Install it in error_print_progname hook.
31483         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
31484         * tests/test-xstrtoimax.sh: Likewise.
31485         * tests/test-xstrtoumax.sh: Likewise.
31486
31487 2008-04-21  Bruno Haible  <bruno@clisp.org>
31488
31489         Fix test failure on mingw.
31490         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
31491
31492 2008-04-21  Bruno Haible  <bruno@clisp.org>
31493
31494         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
31495         Actually assign a value.
31496
31497 2008-04-20  Bruno Haible  <bruno@clisp.org>
31498
31499         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
31500         take 2.
31501         * lib/canonicalize.c (canonicalize_file_name): Elide if the
31502         'canonicalize-lgpl' module is also used.
31503         * lib/canonicalize-lgpl.c: Undo last change.
31504         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
31505
31506 2008-04-20  Bruno Haible  <bruno@clisp.org>
31507
31508         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
31509         config.h. Provide _mkdir based fallback for mingw.
31510         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
31511         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
31512         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
31513         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
31514         rather than defining mkdir in config.h.
31515         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
31516         (gl_SYS_STAT_H_DEFAULTS): New macro.
31517         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
31518         HAVE_IO_H any more.
31519         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
31520         HAVE_DECL_MKDIR and HAVE_IO_H.
31521
31522 2008-04-20  Bruno Haible  <bruno@clisp.org>
31523
31524         * lib/isapipe.c: Port to native Windows platforms.
31525
31526 2008-04-20  Bruno Haible  <bruno@clisp.org>
31527
31528         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
31529
31530 2008-04-21  Eric Blake  <ebb9@byu.net>
31531
31532         Work around preprocessors that don't handle UINTMAX_MAX.
31533         * lib/memchr2.c (memchr2): Avoid embedded #if.
31534         Reported by Alain Guibert, fix suggested by Bruno Haible.
31535
31536 2008-04-21  Simon Josefsson  <simon@josefsson.org>
31537
31538         * doc/posix-functions/strftime.texi (strftime): Explain better
31539         Windows incompatibility.  Suggested by Micah Cowan
31540         <micah@cowan.name>.
31541
31542 2008-04-20  Bruno Haible  <bruno@clisp.org>
31543
31544         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
31545         unistr/u8-mblen.
31546
31547 2008-04-20  Bruno Haible  <bruno@clisp.org>
31548
31549         Fix test failure on platforms with non-GNU iconv.
31550         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
31551         (U_TO_U8): Use it, rather than u16_to_u8.
31552         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
31553         units at the end of the input string.
31554         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
31555
31556 2008-04-20  Bruno Haible  <bruno@clisp.org>
31557
31558         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
31559         when the resulting length is 0.
31560         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
31561
31562 2008-04-20  Bruno Haible  <bruno@clisp.org>
31563
31564         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
31565         works.
31566         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
31567
31568 2008-04-20  Bruno Haible  <bruno@clisp.org>
31569
31570         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
31571         * modules/tsearch-tests (configure.ac): Test for initstate function.
31572
31573 2008-04-20  Bruno Haible  <bruno@clisp.org>
31574
31575         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
31576         for nlink_t if missing.
31577         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
31578
31579 2008-04-19  Bruno Haible  <bruno@clisp.org>
31580
31581         Work around snprintf bug on Linux libc5.
31582         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
31583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31584         gl_SNPRINTF_SIZE1.
31585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31586         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
31587         that test failed.
31588         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31589         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
31590         * modules/snprintf (Files): Add m4/printf.m4.
31591         * modules/vsnprintf (Files): Likewise.
31592         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
31593         * doc/posix-functions/vsnprintf.texi: Likewise.
31594
31595 2008-04-19  Bruno Haible  <bruno@clisp.org>
31596
31597         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
31598         from 0.0058 to less than 10^-7.
31599
31600 2008-04-19  Bruno Haible  <bruno@clisp.org>
31601
31602         Fix rounding when a precision is given.
31603         * lib/vasnprintf.c (is_borderline): New function.
31604         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
31605         9...9x.
31606         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
31607         %e, %g.
31608         * tests/test-vasprintf-posix.c (test_function): Likewise.
31609         * tests/test-snprintf-posix.h (test_function): Likewise.
31610         * tests/test-sprintf-posix.h (test_function): Likewise.
31611         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
31612         * tests/test-printf-posix.h (test_function): Likewise.
31613         * tests/test-printf-posix.output: Update.
31614         Reported by John Darrington <john@darrington.wattle.id.au> via
31615         Ben Pfaff <blp@cs.stanford.edu>.
31616
31617 2008-04-18  Simon Josefsson  <simon@josefsson.org>
31618
31619         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
31620         Suggested by Bruno Haible <bruno@clisp.org>.
31621
31622 2008-04-17  Bruno Haible  <bruno@clisp.org>
31623
31624         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
31625         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
31626         implementation.
31627         Patch by Bruce Merry <bmerry@gmail.com>.
31628
31629 2008-04-17  Simon Josefsson  <simon@josefsson.org>
31630
31631         * doc/posix-functions/strftime.texi (strftime): Mention that %e
31632         doesn't work under Windows.
31633
31634 2008-04-16  Bruno Haible  <bruno@clisp.org>
31635
31636         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
31637         New macros.
31638         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
31639         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
31640         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
31641         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
31642         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
31643         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
31644         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
31645         macros.
31646         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
31647         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
31648         Northern Sotho, Uighur.
31649
31650 2008-04-16  Bruno Haible  <bruno@clisp.org>
31651
31652         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
31653         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
31654         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
31655         Reported by Daniel Bergström <daniel@octocode.com>.
31656
31657 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
31658             Bruno Haible  <bruno@clisp.org>
31659
31660         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
31661         function.
31662         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
31663         New functions, mostly extracted from gl_locale_name_default.
31664         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
31665
31666 2008-04-16  Eric Blake  <ebb9@byu.net>
31667
31668         Adjust strtod detection to catch glibc 2.7 bug.
31669         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
31670         Reported by John Gatewood Ham.
31671
31672 2008-04-16  Bruno Haible  <bruno@clisp.org>
31673
31674         Add tentative support for Linux libc5.
31675         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
31676         * lib/fpurge.c (fpurge): Likewise.
31677         * lib/freadable.c (freadable): Likewise.
31678         * lib/freadahead.c (freadahead): Likewise.
31679         * lib/freading.c (freading): Likewise.
31680         * lib/freadptr.c (freadptr): Likewise.
31681         * lib/freadseek.c (freadptrinc): Likewise.
31682         * lib/fseeko.c (rpl_fseeko): Likewise.
31683         * lib/fseterr.c (fseterr): Likewise.
31684         * lib/fwritable.c (fwritable): Likewise.
31685         * lib/fwriting.c (fwriting): Likewise.
31686         Reported by Alain Guibert <alguibert+bts@free.fr>.
31687
31688 2008-04-15  Bruno Haible  <bruno@clisp.org>
31689
31690         * modules/mathl (configure.ac): Define module indicator.
31691
31692 2008-04-15  Bruno Haible  <bruno@clisp.org>
31693
31694         * lib/logl.c (logl): Remove unused variables.
31695
31696 2008-04-15  Bruno Haible  <bruno@clisp.org>
31697
31698         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
31699         fails.
31700
31701 2008-04-15  Bruno Haible  <bruno@clisp.org>
31702
31703         * lib/trim.c (trim2): Fix argument of isspace() macro.
31704
31705 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
31706
31707         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
31708         to 0.
31709         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
31710
31711 2008-04-14  Bruno Haible  <bruno@clisp.org>
31712
31713         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
31714         AC_LANG_PROGRAM argument.
31715         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
31716         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
31717         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31718         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31719         * m4/math_h.m4 (gl_MATH_H): Likewise.
31720         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
31721         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31722         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31723         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
31724         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
31725         * m4/regex.m4 (gl_REGEX): Likewise.
31726         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
31727         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
31728         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31729         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
31730         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31731         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31732         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31733         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31734
31735 2008-04-14  Jim Meyering  <meyering@redhat.com>
31736
31737         test-strtod: fix typos: s/abs/fabs/
31738         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
31739
31740 2008-04-13  Bruno Haible  <bruno@clisp.org>
31741
31742         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
31743         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
31744         module is also used and while not building the reloc-wrapper.
31745
31746 2008-04-13  Bruno Haible  <bruno@clisp.org>
31747
31748         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
31749
31750 2008-04-13  Bruno Haible  <bruno@clisp.org>
31751
31752         Fix AIX compilation failure introduced on 2008-04-02.
31753         * tests/test-frexp.c (exp): Undefine before redefining.
31754         * tests/test-frexpl.c (exp): Likewise.
31755
31756 2008-04-13  Bruno Haible  <bruno@clisp.org>
31757
31758         Work around a HP-UX stdio bug.
31759         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
31760         * tests/test-ftello.c (main): Likewise.
31761         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
31762         * doc/posix-functions/ftello.texi: Likewise.
31763
31764 2008-04-13  Bruno Haible  <bruno@clisp.org>
31765
31766         Make test-signbit pass on HP-UX/hppa.
31767         * tests/test-signbit.c (minus_zerol): New variable.
31768         (test_signbitl): Use it.
31769
31770 2008-04-13  Bruno Haible  <bruno@clisp.org>
31771
31772         Make truncl work on OSF/1 4.0.
31773         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
31774         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31775         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
31777         HAVE_DECL_TRUNCL.
31778         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
31779         HAVE_DECL_TRUNCL.
31780         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
31781
31782 2008-04-13  Bruno Haible  <bruno@clisp.org>
31783
31784         * lib/unictype.h: Remove trailing comma from enumeration definitions.
31785
31786 2008-04-13  Bruno Haible  <bruno@clisp.org>
31787
31788         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
31789         expression, so as to avoid HP-UX 11 cc compiler bug.
31790
31791 2008-04-13  Bruno Haible  <bruno@clisp.org>
31792
31793         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
31794
31795 2008-04-13  Bruno Haible  <bruno@clisp.org>
31796
31797         * lib/git-merge-changelog.c: Remove empty declaration outside of
31798         functions.
31799
31800 2008-04-13  Bruno Haible  <bruno@clisp.org>
31801
31802         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
31803
31804 2008-04-13  Bruno Haible  <bruno@clisp.org>
31805
31806         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
31807         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
31808         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
31809         also if it exists but lacks definitions of the SHUT_* macros.
31810         * modules/sys_socket (Description): Update.
31811         Reported by Elbert Pol <e.pol@chello.nl>.
31812
31813 2008-04-13  Bruno Haible  <bruno@clisp.org>
31814
31815         * lib/localcharset.c (OS2): Don't redefine if already defined.
31816         Reported by Elbert Pol <e.pol@chello.nl>.
31817
31818 2008-04-13  Bruno Haible  <bruno@clisp.org>
31819
31820         * lib/binary-io.h [__EMX__]: Include <io.h>.
31821         Reported by Elbert Pol <e.pol@chello.nl>.
31822
31823 2008-04-12  Bruno Haible  <bruno@clisp.org>
31824
31825         * lib/fpucw.h: Enable the definitions also for x86_64.
31826         Needed for NetBSD/x86_64.
31827         Reported by Thomas Klausner <tk@giga.or.at>.
31828
31829 2008-04-12  Bruno Haible  <bruno@clisp.org>
31830
31831         * tests/test-strtod.c: Include isnand.h.
31832         (main): Use isnand instead of isnan.
31833         Reported by Jim Meyering.
31834
31835 2008-04-12  Bruno Haible  <bruno@clisp.org>
31836
31837         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
31838         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31839
31840 2008-04-12  Jim Meyering  <meyering@redhat.com>
31841
31842         * m4/math_h.m4 (gl_MATH_H): Fix typos.
31843
31844 2008-04-12  Bruno Haible  <bruno@clisp.org>
31845
31846         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
31847         Reported by Elbert Pol <e.pol@chello.nl>.
31848
31849 2008-04-12  Eric Blake  <ebb9@byu.net>
31850
31851         Work around Solaris 10 math.h bug.
31852         * m4/math_h.m4 (gl_MATH_H): Check for bug.
31853         (gl_MATH_H_DEFAULTS): Set up default.
31854         * modules/math (Makefile.am): Replace new indicators.
31855         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
31856         * tests/test-math.c (main): Test this.
31857         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
31858         * doc/posix-headers/math.texi (math.h): Mention bug.
31859         Reported by Nelson H. F. Beebe and Jim Meyering.
31860
31861 2008-04-11  Bruno Haible  <bruno@clisp.org>
31862
31863         Adapt to future versions of Apple GCC.
31864         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
31865         Reported by Peter O'Gorman <peter@pogma.com>.
31866
31867 2008-04-11  Bruno Haible  <bruno@clisp.org>
31868
31869         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
31870
31871 2008-04-11  Bruno Haible  <bruno@clisp.org>
31872
31873         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
31874
31875         * modules/getaddrinfo-tests (Makefile.am): Define
31876         test_getaddrinfo_LDADD.
31877
31878 2008-04-11  Bruno Haible  <bruno@clisp.org>
31879
31880         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
31881         (init): Fix syntax error.
31882         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
31883         is declared.
31884
31885 2008-04-11  Bruno Haible  <bruno@clisp.org>
31886
31887         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
31888         * modules/glob (Depends-on): Add stdbool.
31889
31890 2008-04-11  Bruno Haible  <bruno@clisp.org>
31891
31892         * lib/trim.c: Include <string.h>.
31893
31894 2008-04-11  Eric Blake  <ebb9@byu.net>
31895
31896         Avoid compile failure on OS/2.
31897         * lib/regex_internal.h (internal_function): Disable optimization
31898         on OS/2 (__EMX__), where it caused compiler error.
31899         Reported by Elbert Pol.
31900
31901 2008-04-11  Bruno Haible  <bruno@clisp.org>
31902
31903         Flush the standard error stream before aborting. Needed on mingw.
31904         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
31905         * tests/test-array_list.c (ASSERT): Likewise.
31906         * tests/test-array_oset.c (ASSERT): Likewise.
31907         * tests/test-avltree_list.c (ASSERT): Likewise.
31908         * tests/test-avltree_oset.c (ASSERT): Likewise.
31909         * tests/test-avltreehash_list.c (ASSERT): Likewise.
31910         * tests/test-binary-io.c (ASSERT): Likewise.
31911         * tests/test-byteswap.c (ASSERT): Likewise.
31912         * tests/test-c-ctype.c (ASSERT): Likewise.
31913         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
31914         * tests/test-c-strcasestr.c (ASSERT): Likewise.
31915         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
31916         * tests/test-c-strstr.c (ASSERT): Likewise.
31917         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
31918         * tests/test-canonicalize.c (ASSERT): Likewise.
31919         * tests/test-carray_list.c (ASSERT): Likewise.
31920         * tests/test-ceilf1.c (ASSERT): Likewise.
31921         * tests/test-ceilf2.c (ASSERT): Likewise.
31922         * tests/test-ceill.c (ASSERT): Likewise.
31923         * tests/test-count-one-bits.c (ASSERT): Likewise.
31924         * tests/test-fbufmode.c (ASSERT): Likewise.
31925         * tests/test-fflush2.c (ASSERT): Likewise.
31926         * tests/test-floorf1.c (ASSERT): Likewise.
31927         * tests/test-floorf2.c (ASSERT): Likewise.
31928         * tests/test-floorl.c (ASSERT): Likewise.
31929         * tests/test-fopen.c (ASSERT): Likewise.
31930         * tests/test-fpending.c (ASSERT): Likewise.
31931         * tests/test-fprintf-posix.c (ASSERT): Likewise.
31932         * tests/test-fpurge.c (ASSERT): Likewise.
31933         * tests/test-freadable.c (ASSERT): Likewise.
31934         * tests/test-freadahead.c (ASSERT): Likewise.
31935         * tests/test-freading.c (ASSERT): Likewise.
31936         * tests/test-freadptr.c (ASSERT): Likewise.
31937         * tests/test-freadptr2.c (ASSERT): Likewise.
31938         * tests/test-freadseek.c (ASSERT): Likewise.
31939         * tests/test-freopen.c (ASSERT): Likewise.
31940         * tests/test-frexp.c (ASSERT): Likewise.
31941         * tests/test-frexpl.c (ASSERT): Likewise.
31942         * tests/test-fseek.c (ASSERT): Likewise.
31943         * tests/test-fseeko.c (ASSERT): Likewise.
31944         * tests/test-fstrcmp.c (ASSERT): Likewise.
31945         * tests/test-ftell.c (ASSERT): Likewise.
31946         * tests/test-ftello.c (ASSERT): Likewise.
31947         * tests/test-func.c (ASSERT): Likewise.
31948         * tests/test-fwritable.c (ASSERT): Likewise.
31949         * tests/test-fwriting.c (ASSERT): Likewise.
31950         * tests/test-getdelim.c (ASSERT): Likewise.
31951         * tests/test-getline.c (ASSERT): Likewise.
31952         * tests/test-i-ring.c (ASSERT): Likewise.
31953         * tests/test-iconv-utf.c (ASSERT): Likewise.
31954         * tests/test-iconv.c (ASSERT): Likewise.
31955         * tests/test-isfinite.c (ASSERT): Likewise.
31956         * tests/test-isnand.c (ASSERT): Likewise.
31957         * tests/test-isnanf.c (ASSERT): Likewise.
31958         * tests/test-isnanl.h (ASSERT): Likewise.
31959         * tests/test-ldexpl.c (ASSERT): Likewise.
31960         * tests/test-linked_list.c (ASSERT): Likewise.
31961         * tests/test-linkedhash_list.c (ASSERT): Likewise.
31962         * tests/test-localename.c (ASSERT): Likewise.
31963         * tests/test-lseek.c (ASSERT): Likewise.
31964         * tests/test-mbscasecmp.c (ASSERT): Likewise.
31965         * tests/test-mbscasestr1.c (ASSERT): Likewise.
31966         * tests/test-mbscasestr2.c (ASSERT): Likewise.
31967         * tests/test-mbscasestr3.c (ASSERT): Likewise.
31968         * tests/test-mbscasestr4.c (ASSERT): Likewise.
31969         * tests/test-mbschr.c (ASSERT): Likewise.
31970         * tests/test-mbscspn.c (ASSERT): Likewise.
31971         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
31972         * tests/test-mbspbrk.c (ASSERT): Likewise.
31973         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
31974         * tests/test-mbsrchr.c (ASSERT): Likewise.
31975         * tests/test-mbsspn.c (ASSERT): Likewise.
31976         * tests/test-mbsstr1.c (ASSERT): Likewise.
31977         * tests/test-mbsstr2.c (ASSERT): Likewise.
31978         * tests/test-mbsstr3.c (ASSERT): Likewise.
31979         * tests/test-memchr2.c (ASSERT): Likewise.
31980         * tests/test-memmem.c (ASSERT): Likewise.
31981         * tests/test-open.c (ASSERT): Likewise.
31982         * tests/test-printf-frexp.c (ASSERT): Likewise.
31983         * tests/test-printf-frexpl.c (ASSERT): Likewise.
31984         * tests/test-printf-posix.c (ASSERT): Likewise.
31985         * tests/test-quotearg.c (ASSERT): Likewise.
31986         * tests/test-rbtree_list.c (ASSERT): Likewise.
31987         * tests/test-rbtree_oset.c (ASSERT): Likewise.
31988         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
31989         * tests/test-round1.c (ASSERT): Likewise.
31990         * tests/test-roundf1.c (ASSERT): Likewise.
31991         * tests/test-roundl.c (ASSERT): Likewise.
31992         * tests/test-signbit.c (ASSERT): Likewise.
31993         * tests/test-sleep.c (ASSERT): Likewise.
31994         * tests/test-snprintf-posix.c (ASSERT): Likewise.
31995         * tests/test-snprintf.c (ASSERT): Likewise.
31996         * tests/test-sprintf-posix.c (ASSERT): Likewise.
31997         * tests/test-stat-time.c (ASSERT): Likewise.
31998         * tests/test-strcasestr.c (ASSERT): Likewise.
31999         * tests/test-strerror.c (ASSERT): Likewise.
32000         * tests/test-striconv.c (ASSERT): Likewise.
32001         * tests/test-striconveh.c (ASSERT): Likewise.
32002         * tests/test-striconveha.c (ASSERT): Likewise.
32003         * tests/test-strsignal.c (ASSERT): Likewise.
32004         * tests/test-strstr.c (ASSERT): Likewise.
32005         * tests/test-strtod.c (ASSERT): Likewise.
32006         * tests/test-trunc1.c (ASSERT): Likewise.
32007         * tests/test-trunc2.c (ASSERT): Likewise.
32008         * tests/test-truncf1.c (ASSERT): Likewise.
32009         * tests/test-truncf2.c (ASSERT): Likewise.
32010         * tests/test-truncl.c (ASSERT): Likewise.
32011         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32012         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32013         * tests/test-vasnprintf.c (ASSERT): Likewise.
32014         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32015         * tests/test-vasprintf.c (ASSERT): Likewise.
32016         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32017         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32018         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32019         * tests/test-vsnprintf.c (ASSERT): Likewise.
32020         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32021         * tests/test-wcwidth.c (ASSERT): Likewise.
32022         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32023         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32024         * tests/test-xvasprintf.c (ASSERT): Likewise.
32025         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32026         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32027         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32028         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32029         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32030         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32031         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32032         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32033         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32034         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32035         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32036         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32037         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32038         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32039         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32040         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32041         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32042         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32043         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32044         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32045         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32046         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32047         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32048         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32049         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32050         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32051         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32052         * tests/unictype/test-combining.c (ASSERT): Likewise.
32053         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32054         * tests/unictype/test-digit.c (ASSERT): Likewise.
32055         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32056         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32057         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32058         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32059         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32060         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32061         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32062         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32063         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32064         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32065         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32066         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32067         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32068         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32069         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32070         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32071         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32072         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32073         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32074         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32075         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32076         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32077         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32078         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32079         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32080         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32081         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32082         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32083         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32084         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32085         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32086         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32087         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32088         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32089         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32090         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32091         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32092         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32093         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32094         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32095         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32096         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32097         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32098         Reported by Eric Blake.
32099
32100 2008-04-11  Bruno Haible  <bruno@clisp.org>
32101
32102         * lib/wchar.in.h: Tweak comment.
32103
32104 2008-04-11  Bruno Haible  <bruno@clisp.org>
32105
32106         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32107         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32108         gl_COMMON.
32109         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32110
32111 2008-04-11  Bruno Haible  <bruno@clisp.org>
32112
32113         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32114
32115 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32116
32117         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32118         of attempting to use non-existing /dev/*random.  Based on patch
32119         from Adam Strzelecki <ono@java.pl> in
32120         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32121
32122 2008-04-08  Bruno Haible  <bruno@clisp.org>
32123
32124         Add tentative support for emx+gcc.
32125         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32126         * lib/fpurge.c (fpurge): Likewise.
32127         * lib/freadable.c (freadable): Likewise.
32128         * lib/freadahead.c (freadahead): Likewise.
32129         * lib/freading.c (freading): Likewise.
32130         * lib/freadptr.c (freadptr): Likewise.
32131         * lib/freadseek.c (freadptrinc): Likewise.
32132         * lib/fseeko.c (rpl_fseeko): Likewise.
32133         * lib/fseterr.c (fseterr): Likewise.
32134         * lib/fwritable.c (fwritable): Likewise.
32135         * lib/fwriting.c (fwriting): Likewise.
32136         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32137
32138 2008-04-09  Eric Blake  <ebb9@byu.net>
32139
32140         Avoid some autoconf warnings.
32141         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32142         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32143         * m4/afs.m4 (gl_AFS): Likewise.
32144         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32145         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32146         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32147         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32148         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32149         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32150         (AC_CHECK_DECLS_ONCE): Likewise.
32151         Rename file...
32152         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32153         gnulib-tool requires autoconf 2.59 or better.
32154         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32155
32156 2008-04-08  Eric Blake  <ebb9@byu.net>
32157
32158         Use 'git describe --match' if present (added in git 1.5.5).
32159         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32160         if possible.
32161
32162 2008-04-08  Bruno Haible  <bruno@clisp.org>
32163
32164         Add tentative support for OpenServer.
32165         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32166         _ptr, _cnt.
32167         * lib/fpurge.c (fpurge): Likewise.
32168         * lib/freadable.c (freadable): Likewise.
32169         * lib/freadahead.c (freadahead): Likewise.
32170         * lib/freading.c (freading): Likewise.
32171         * lib/freadptr.c (freadptr): Likewise.
32172         * lib/freadseek.c (freadptrinc): Likewise.
32173         * lib/fseeko.c (rpl_fseeko): Likewise.
32174         * lib/fseterr.c (fseterr): Likewise.
32175         * lib/fwritable.c (fwritable): Likewise.
32176         * lib/fwriting.c (fwriting): Likewise.
32177         Reported by Roger Cornelius <rac@tenzing.org> and
32178         Brian K. White <brian@aljex.com>.
32179
32180 2008-04-06  Jim Meyering  <meyering@redhat.com>
32181
32182         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32183
32184 2008-04-06  Bruno Haible  <bruno@clisp.org>
32185
32186         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32187         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32188         * tests/test-printf-posix.sh: Likewise.
32189         * tests/test-vfprintf-posix.sh: Likewise.
32190         * tests/test-vprintf-posix.sh: Likewise.
32191         * tests/test-xprintf-posix.sh: Likewise.
32192
32193 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32194
32195         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32196         hide error from 'ls', needed on OS/2.
32197         Report by Elbert Pol <elbert.pol@gmail.com>.
32198
32199 2008-04-04  Eric Blake  <ebb9@byu.net>
32200
32201         Make test-fseeko.c failures meaningful.
32202         * tests/test-fseeko.c: Print line number on failure.
32203         * tests/test-fseek.c: Likewise.
32204         Reported by Nelson H. F. Beebe.
32205
32206         Improve strtod bug detection check.
32207         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32208         required for Solaris 10.
32209         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32210
32211 2008-04-04  Bruno Haible  <bruno@clisp.org>
32212
32213         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32214         by m4/setenv.m4.
32215
32216 2008-04-03  Eric Blake  <ebb9@byu.net>
32217
32218         Ensure sane .version contents.
32219         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32220         version string.
32221         * build-aux/git-version-gen: Improve documentation.
32222
32223         Make GNU make output nicer.
32224         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32225         MAKECMDGOALS to enforce message for all command line targets.  Set
32226         srcdir for use in maint.mk.
32227
32228         Another maintainer tweak.
32229         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32230         a target that regenerates version.
32231
32232 2008-04-03  Jim Meyering  <meyering@redhat.com>
32233
32234         vc-list-files: don't cause coreutils "make po-check" failure
32235         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32236
32237 2008-04-03  Eric Blake  <ebb9@byu.net>
32238
32239         Allow VPATH usage of vc-list-files.
32240         * build-aux/vc-list-files (scriptversion): Add timestamp.
32241         (options): Add --help, --version, -C.
32242         (CVS): Support installed cvsu.
32243
32244 2008-04-02  Bruno Haible  <bruno@clisp.org>
32245
32246         Avoid some "statement with no effect" warnings from gcc.
32247         * tests/test-wctype.c (main): Explicitly ignore unused values.
32248         Reported by Jim Meyering.
32249
32250 2008-04-02  Jim Meyering  <meyering@redhat.com>
32251
32252         Avoid some warnings from "gcc -Wshadow".
32253         * tests/test-frexp.c (exp): Define to a different identifier.
32254         * tests/test-frexpl.c (exp): Likewise.
32255
32256 2008-04-03  Jim Meyering  <meyering@redhat.com>
32257
32258         bootstrap: remove dangling *.[ch] symlinks from lib
32259         * build-aux/bootstrap [dangling symlink removal]: Move find's
32260         -depth option to precede all others, to avoid a warning.
32261         Remove *.[ch] files too, and from "$source_base" (usually lib/).
32262
32263 2008-04-02  Bruno Haible  <bruno@clisp.org>
32264
32265         Avoid some warnings from "gcc -Wshadow".
32266         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
32267         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
32268         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
32269         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
32270         Reported by Jim Meyering.
32271
32272 2008-04-01  Bruno Haible  <bruno@clisp.org>
32273
32274         Fix test to work on IRIX 6.5 with cc.
32275         * tests/test-math.c (numeric_equal): New function.
32276         (main): Use it.
32277
32278 2008-04-01  Bruno Haible  <bruno@clisp.org>
32279
32280         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
32281
32282 2008-04-01  Bruno Haible  <bruno@clisp.org>
32283
32284         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32285         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32286         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32287         (Depends-on): Remove math.
32288
32289         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32290         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32291         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32292         (Depends-on): Remove math.
32293
32294         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32295         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32296         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32297         (Depends-on): Remove math.
32298         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32299         (Depends-on): Remove math.
32300
32301         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32302         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32303         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32304         (Depends-on): Remove math.
32305         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32306         (Depends-on): Remove math.
32307
32308         * tests/test-round1.c: Include nan.h.
32309         (main): Use NaNd instead of NAN.
32310         * modules/round-tests (Files): Add tests/nan.h.
32311
32312         * tests/test-trunc1.c: Include nan.h.
32313         (main): Use NaNd instead of NAN.
32314         * modules/trunc-tests (Files): Add tests/nan.h.
32315
32316         * tests/test-roundf1.c: Include nan.h.
32317         (main): Use NaNf instead of NAN.
32318         * modules/roundf-tests (Files): Add tests/nan.h.
32319
32320         * tests/test-truncf1.c: Include nan.h.
32321         (main): Use NaNf instead of NAN.
32322         * modules/truncf-tests (Files): Add tests/nan.h.
32323
32324         * tests/test-ceilf1.c: Include nan.h.
32325         (main): Use NaNf instead of NAN.
32326         * modules/ceilf-tests (Files): Add tests/nan.h.
32327
32328         * tests/test-floorf1.c: Include nan.h.
32329         (main): Use NaNf instead of NAN.
32330         * modules/floorf-tests (Files): Add tests/nan.h.
32331
32332         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32333         (main): Use NaNf instead of NAN.
32334         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32335
32336         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32337         (main): Use NaNd instead of NAN.
32338         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32339
32340         * tests/test-frexp.c: Include nan.h.
32341         (main): Use NaNd instead of NAN.
32342         * modules/frexp-tests (Files): Add tests/nan.h.
32343
32344         * lib/isnan.c: Don't include <math.h>.
32345         (FUNC): Don't use NAN macro.
32346         * modules/isnand-nolibm (Depends-on): Remove math.
32347         * modules/isnanf-nolibm (Depends-on): Remove math.
32348         * modules/isnanl (Depends-on): Remove math.
32349         * modules/isnanl-nolibm (Depends-on): Remove math.
32350
32351         * tests/nan.h: New file.
32352
32353 2008-04-01  Eric Blake  <ebb9@byu.net>
32354
32355         Fix typos.
32356         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32357         values to be the right type.
32358
32359         For now, cater to gnulib strtod inaccuracies.
32360         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32361         fractional results.  While not as nice from a QoI perspective, it
32362         is a quicker patch than correctly implementing decimal to binary
32363         rounding.
32364
32365 2008-03-31  Eric Blake  <ebb9@byu.net>
32366
32367         Guarantee a definition of NAN.
32368         * lib/math.in.h (NAN): Define if missing.
32369         * tests/test-math.c (main): Test it.
32370         * doc/posix-headers/math.texi (math.h): Document this.
32371         * lib/isnan.c (rpl_isnand): Use it.
32372         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32373         * tests/test-floorf1.c (NaN): Likewise.
32374         * tests/test-frexp.c (NaN): Likewise.
32375         * tests/test-isnand.c (NaN): Likewise.
32376         * tests/test-isnanf.c (NaN): Likewise.
32377         * tests/test-round1.c (NaN): Likewise.
32378         * tests/test-roundf1.c (NaN): Likewise.
32379         * tests/test-snprintf-posix.h (NaN): Likewise.
32380         * tests/test-sprintf-posix.h (NaN): Likewise.
32381         * tests/test-trunc1.c (NaN): Likewise.
32382         * tests/test-truncf1.c (NaN): Likewise.
32383         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32384         * tests/test-vasprintf-posix.c (NaN): Likewise.
32385         * modules/isnand-nolibm (Depends-on): Add math.
32386         * modules/isnanf-nolibm (Depends-on): Likewise.
32387         * modules/isnanl (Depends-on): Likewise.
32388         * modules/isnanl-nolibm (Depends-on): Likewise.
32389         * modules/snprintf-posix-tests (Depends-on): Likewise.
32390         * modules/sprintf-posix-tests (Depends-on): Likewise.
32391         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32392         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32393         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32394         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32395
32396 2008-03-31  Bruno Haible  <bruno@clisp.org>
32397
32398         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32399         * doc/posix-functions/strtod.texi: Likewise.
32400
32401 2008-03-31  Bruno Haible  <bruno@clisp.org>
32402
32403         * tests/test-strtod.c (main): Don't use C99 syntax.
32404
32405 2008-03-31  Bruno Haible  <bruno@clisp.org>
32406
32407         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32408         Reported by Eric Blake.
32409
32410 2008-03-31  Jim Meyering  <meyering@redhat.com>
32411
32412         Don't compare actual signbit return values.
32413         * tests/test-strtod.c (main): Rather, compare only their
32414         zero/non-zero nature.
32415
32416 2008-03-31  Eric Blake  <ebb9@byu.net>
32417
32418         More strtod documentation.
32419         * doc/posix-functions/strtod.texi (strtod): Interpret more test
32420         failures as distinct bugs.
32421
32422 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32423
32424         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
32425         Problem reported by Erik Benada in
32426         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
32427
32428 2008-03-30  Bruno Haible  <bruno@clisp.org>
32429
32430         * tests/test-strtod.c: Add comments about which assertion fails on which
32431         platform.
32432         * doc/posix-functions/strtod.texi: Add info about many more platforms.
32433
32434 2008-03-30  Eric Blake  <ebb9@byu.net>
32435
32436         Test signbit behavior on zeros.
32437         * tests/test-signbit.c (test_signbitf): Add tests for zero.
32438         (test_signbitd, test_signbitl): Likewise.
32439
32440         More strtod touchups.
32441         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
32442         sign of negative underflow, for now.  Use .5, not .1.
32443         * doc/posix-functions/strtod.texi (strtod): Mention these
32444         limitations.
32445         Reported by Jim Meyering.
32446
32447 2008-03-30  Bruno Haible  <bruno@clisp.org>
32448
32449         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
32450         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
32451
32452 2008-03-30  Bruno Haible  <bruno@clisp.org>
32453
32454         Avoid failure when attempting to return empty iconv results on some
32455         platforms.
32456         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
32457         allocation, don't report ENOMEM when the resulting string is empty.
32458
32459 2008-03-30  Bruno Haible  <bruno@clisp.org>
32460
32461         Fix buffer overrun.
32462         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
32463         Don't consider the width for tmp_length. Check count against tmp_length
32464         before doing the padding. Ensure enough allocation during padding.
32465
32466 2008-03-30  Eric Blake  <ebb9@byu.net>
32467
32468         strtod touchups.
32469         * lib/strtod.c (strtod): Avoid compiler warnings.
32470         Reported by Jim Meyering.
32471
32472 2008-03-30  Bruno Haible  <bruno@clisp.org>
32473
32474         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
32475         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
32476         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
32477         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32478         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
32479         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
32480         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
32481         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
32482
32483         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
32484         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
32485         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
32486         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
32487         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
32488         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
32489         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
32490         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
32491
32492         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
32493         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
32494         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
32495         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
32496         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
32497         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
32498         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
32499         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
32500
32501         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
32502         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
32503
32504         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
32505         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
32506
32507         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
32508         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
32509
32510         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
32511         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
32512         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
32513
32514         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
32515         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
32516         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
32517
32518         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
32519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
32520         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
32521
32522         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
32523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
32524         * modules/vasprintf (Depends-on): Add EOVERFLOW.
32525
32526         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
32527         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
32528         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
32529         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
32530         (Depends-on): Add EOVERFLOW.
32531         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
32532         (Depends-on): Add EOVERFLOW.
32533         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32534         (Depends-on): Add EOVERFLOW.
32535         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32536         (Depends-on): Add EOVERFLOW.
32537         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32538         (Depends-on): Add EOVERFLOW.
32539         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32540         (Depends-on): Add EOVERFLOW.
32541         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32542         (Depends-on): Add EOVERFLOW.
32543         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32544         (Depends-on): Add EOVERFLOW.
32545
32546         * lib/sprintf.c (EOVERFLOW): Remove fallback.
32547         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
32548         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
32549
32550         * lib/snprintf.c (EOVERFLOW): Remove fallback.
32551         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
32552         * modules/snprintf (Depends-on): Add EOVERFLOW.
32553
32554         * lib/poll.c (EOVERFLOW): Remove fallback.
32555         * modules/poll (Depends-on): Add EOVERFLOW.
32556
32557         * lib/getugroups.c (EOVERFLOW): Remove fallback.
32558         * modules/getugroups (Depends-on): Add EOVERFLOW.
32559
32560         * lib/getdelim.c (EOVERFLOW): Remove fallback.
32561         * modules/getdelim (Depends-on): Add EOVERFLOW.
32562
32563         * lib/ftell.c (EOVERFLOW): Remove fallback.
32564         * modules/ftell (Depends-on): Add EOVERFLOW.
32565
32566         * lib/fprintf.c (EOVERFLOW): Remove fallback.
32567         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
32568         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
32569
32570         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
32571
32572         * modules/EOVERFLOW-tests: New file.
32573         * tests/test-EOVERFLOW.c: New file.
32574
32575         * modules/EOVERFLOW: New file.
32576         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
32577
32578 2008-03-30  Bruno Haible  <bruno@clisp.org>
32579
32580         Fix bug introduced on 2007-06-10.
32581         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
32582         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
32583
32584 2008-03-30  Bruno Haible  <bruno@clisp.org>
32585
32586         Improve freadseek's efficiency after ungetc.
32587         * lib/freadseek.c: Include freadahead.h.
32588         (freadptrinc): New function, extracted from freadseek.
32589         (freadseek): Use it in a loop. Use freadahead to determine the number
32590         of loop iterations.
32591         * modules/freadseek (Depends-on): Add freadahead.
32592         (configure.ac): Require AC_C_INLINE.
32593
32594 2008-03-30  Bruno Haible  <bruno@clisp.org>
32595
32596         * lib/freadseek.c (freadseek): Don't ignore the return value of
32597         freadptr.
32598
32599 2008-03-29  Eric Blake  <ebb9@byu.net>
32600
32601         Add hex float support.
32602         * modules/strtod (Depends-on): Add c-ctype.
32603         (Link): Mention POW_LIB.
32604         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
32605         whitespace between 'e' and exponent.
32606         * tests/test-strtod.c (main): Enable hex float tests.
32607         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
32608         now provides.
32609
32610         Document various strtod bugs, with some fixes.
32611         * doc/posix-functions/strtod.texi (strtod): Document bugs with
32612         "-0x", "inf", "nan", and hex constants.
32613         * doc/posix-functions/atof.texi (atof): Likewise.
32614         * modules/stdlib (Makefile.am): Support strtod.
32615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32616         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
32617         detect additional strtod bugs.
32618         * lib/stdlib.in.h (rpl_strtod): Add declarations.
32619         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
32620         bool where appropriate.  Parse 'inf' and 'nan'.
32621         * tests/test-strtod.c: New file.
32622         * modules/strtod (Depends-on): Add stdbool, stdlib.
32623         (configure.ac): Turn on module indicator.
32624         * modules/strtod-tests: New module.
32625
32626 2008-03-29  Eric Blake  <ebb9@byu.net>
32627
32628         Fix ftell on mingw.
32629         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
32630         * modules/ftell-tests (Depends-on): Add binary-io.
32631         * modules/ftello-tests (Depends-on): Likewise.
32632         * tests/test-ftell.c (main): Enhance test to cover behavior after
32633         ungetc.  Enforce binary mode.
32634         * tests/test-ftello.c (main): Likewise.
32635
32636         Pass test-freadseek on cygwin.
32637         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
32638         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
32639         ungetc buffer.
32640
32641         * tests/test-fflush2.c (main): Fix typo.
32642
32643 2008-03-29  Bruno Haible  <bruno@clisp.org>
32644
32645         * tests/test-fflush2.c (main): Temporarily disable the contents of
32646         this test.
32647         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
32648         Reported by Eric Blake.
32649
32650 2008-03-28  Simon Josefsson  <simon@josefsson.org>
32651
32652         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
32653         (GC_SHA224_DIGEST_SIZE): Add.
32654
32655         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
32656         (gc_hash_digest_length): Likewise.
32657         (gc_hash_buffer): Likewise.
32658
32659 2008-03-25  Bruno Haible  <bruno@clisp.org>
32660
32661         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
32662         detail which gettext release to use.
32663         Reported by Simon Josefsson.
32664
32665 2008-03-26  Jim Meyering  <meyering@redhat.com>
32666
32667         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
32668         * modules/gnumakefile (clean-GNUmakefile): Also, use
32669         test ... && ... || : syntax rather than if-then ... fi.
32670
32671         gnumakefile: Don't double-quote-expand $(VPATH) value.
32672         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
32673
32674 2008-03-24  Eric Blake  <ebb9@byu.net>
32675
32676         Alter GNUmakefile to install into top directory.
32677         * modules/maintainer-makefile: Split, and add dependency...
32678         * modules/gnumakefile: to this new module.
32679         * build-aux/GNUmakefile: Move...
32680         * top/GNUmakefile: ...here.
32681         * build-aux/maint.mk: Move...
32682         * top/maint.mk: ...here.
32683         * MODULES.html.sh (Support for maintaining...): Document new
32684         module.
32685
32686 2008-03-23  Bruno Haible  <bruno@clisp.org>
32687
32688         * gnulib-tool: New options --vc-files, --no-vc-files.
32689         (func_usage): Document them.
32690         (vc_files): New variable.
32691         (func_import): Consider vc_files.
32692         (func_create_testdir): Set vc_files to empty.
32693         Suggested by Jim Meyering and Karl Berry.
32694
32695 2008-03-23  Bruno Haible  <bruno@clisp.org>
32696
32697         Fix regex compilation error on HP-UX 11.
32698         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
32699         * modules/regex (Files): Add m4/mbstate_t.m4.
32700         Reported by Ton Voon <ton.voon@altinity.com>.
32701
32702 2008-03-23  Bruno Haible  <bruno@clisp.org>
32703
32704         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
32705
32706 2008-03-23  Eric Blake  <ebb9@byu.net>
32707             Bruno Haible  <bruno@clisp.org>
32708
32709         Install files from top/ in the destination directory.
32710         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32711         augmentation also for the files from top/.
32712         (func_import, func_create_testdir): Rewrite file names:
32713         top/filename -> filename.
32714
32715 2008-03-23  Bruno Haible  <bruno@clisp.org>
32716
32717         Tweak "gnulib --version" output.
32718         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
32719
32720 2008-03-23  Bruno Haible  <bruno@clisp.org>
32721
32722         Tweak "gnulib --version" output.
32723         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
32724         rather than contents of ChangeLog, when possible.
32725
32726 2008-03-21  Eric Blake  <ebb9@byu.net>
32727
32728         More --version tweaks.
32729         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
32730         date of last ChangeLog entry.
32731
32732 2008-03-21  Jim Meyering  <meyering@redhat.com>
32733
32734         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
32735
32736 2008-03-20  Eric Blake  <ebb9@byu.net>
32737
32738         VPATH fix.
32739         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
32740
32741 2008-03-20  Simon Josefsson  <simon@josefsson.org>
32742
32743         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
32744         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
32745
32746 2008-03-20  Eric Blake  <ebb9@byu.net>
32747
32748         Sync GNUmakefile with coreutils.
32749         * build-aux/GNUmakefile (have-Makefile): Rename...
32750         (_have-Makefile): ...to this, for namespace consideration.
32751         (GNUmakefile.cfg): Include, if present.
32752         (_autoreconf): Define a default.
32753         (_is-dist-target): New rule for rebuilds to pick up intra-release
32754         version.
32755         (maint-cfg.mk): Rename...
32756         (cfg.mk): ...to this.
32757
32758 2008-03-18  Jim Meyering  <meyering@redhat.com>
32759
32760         New script and module: mktempd
32761         * MODULES.html.sh (maint+release support): Add mktempd.
32762         * build-aux/mktempd: New file.
32763         * modules/mktempd: New file.
32764
32765 2008-03-15  Jim Meyering  <meyering@redhat.com>
32766
32767         Undo last change.
32768         * lib/sha1.c, lib/md5.c: 63 != ~63.
32769         Reported by Andreas Schwab.
32770
32771         sha1.c, md5.c: Hoist a redundant expression.
32772         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
32773         "ctx->buflen" only once, before calling *_process_block.
32774         * lib/md5.c (md5_process_bytes): Likewise.
32775
32776 2008-03-14  Eric Blake  <ebb9@byu.net>
32777
32778         Bump copyright year in files generated by gnulib-tool.
32779         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
32780         gnulib-tool, rather than hard-coding it.
32781
32782         Fix 'gnulib-tool --version' output to work with git.
32783         * gnulib-tool (func_gnulib_dir): New function, extracted from...
32784         (startup): ...here.
32785         (func_version): Use it to invoke git-version-gen, rather than
32786         relying on CVS keyword expansion.  Modernize wording.
32787         (cvsdatestamp, last_checkin_date, version): Kill unused
32788         variables.
32789
32790 2008-03-12  Jim Meyering  <meyering@redhat.com>
32791
32792         Recognize optional cast of the argument to free.
32793         * build-aux/useless-if-before-free: Update regexps.
32794
32795         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
32796
32797 2008-03-11  Bruno Haible  <bruno@clisp.org>
32798
32799         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
32800         by a single package.
32801         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
32802         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
32803         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
32804         Reported by Sam Steingold <sds@gnu.org>.
32805
32806 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32807
32808         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
32809         repositories.
32810
32811 2008-03-11  Bruno Haible  <bruno@clisp.org>
32812
32813         Avoid conflicts between local macro definitions.
32814         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32815         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
32816
32817 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
32818             Bruno Haible  <bruno@clisp.org>
32819
32820         Make va_copy work with some version of xlc on AIX 5.1.
32821         * lib/stdarg.in.h: New file.
32822         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
32823         On AIX, use a <stdarg.h> file substitute.
32824         * modules/stdarg (Files): Add lib/stdarg.in.h.
32825         (Depends-on): Add include_next.
32826         (Makefile.am): Build a stdarg.h substitute if requested.
32827         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
32828
32829 2008-03-10  Bruno Haible  <bruno@clisp.org>
32830
32831         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
32832         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32833         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
32834
32835 2008-03-10  Bruno Haible  <bruno@clisp.org>
32836
32837         * modules/stdlib (Depends-on): Add include_next, remove
32838         absolute-header.
32839
32840 2008-03-09  Bruno Haible  <bruno@clisp.org>
32841
32842         * lib/freadahead.h (freadahead): Document more precisely.
32843         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
32844         the sum of both buffer sizes.
32845         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
32846         * NEWS: Document the change.
32847
32848 2008-03-09  Bruno Haible  <bruno@clisp.org>
32849
32850         Extend freadptr to return also the buffer size.
32851         * lib/freadptr.h (freadptr): Add sizep argument.
32852         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
32853         (freadptr): Add sizep argument. Determine buffer size like freadahead
32854         does.
32855         * tests/test-freadptr.c: Don't include freadahead.h.
32856         (main): Adapt for new calling convention of freadptr.
32857         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
32858         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
32859         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
32860         tests/test-freadptr2.sh.
32861         (Depends): Remove freadahead.
32862         (TESTS): Add test-freadptr2.sh.
32863         (check_PROGRAMS): Add test-freadptr2.
32864
32865 2008-03-09  Bruno Haible  <bruno@clisp.org>
32866
32867         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
32868         Report and solution by Simon Josefsson.
32869
32870 2008-03-06  Bruno Haible  <bruno@clisp.org>
32871
32872         Make fflush after ungetc work on BSD platforms.
32873         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
32874         * tests/test-fflush2.c: New file.
32875         * tests/test-fflush2.sh: New file.
32876         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
32877         tests/test-fflush2.c.
32878         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
32879         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
32880
32881 2008-03-06  Eric Blake  <ebb9@byu.net>
32882
32883         Likewise for ftello.
32884         * modules/ftello (Dependencies): Add extensions.
32885         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
32886
32887 2008-03-06  Bruno Haible  <bruno@clisp.org>
32888
32889         * modules/fseeko (Dependencies): Add extensions.
32890         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
32891         Needed on glibc systems.
32892
32893 2008-03-06  Bruno Haible  <bruno@clisp.org>
32894
32895         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
32896         email address.
32897         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32898
32899 2008-03-06  Bruno Haible  <bruno@clisp.org>
32900
32901         * users.txt: Add libgnupdf.
32902
32903 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32904
32905         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
32906         (Header File Substitutes, Function Substitutes,
32907         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
32908         (Build robot for gnulib): Fix typo.
32909
32910 2008-03-06  Bruno Haible  <bruno@clisp.org>
32911
32912         * doc/gnulib-tool.texi (VCS Issues): Small updates.
32913         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32914
32915 2008-03-06  Bruno Haible  <bruno@clisp.org>
32916
32917         * doc/func.texi: New file, extracted from doc/gnulib.texi.
32918         * doc/gnulib.texi: Include it.
32919
32920 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32921
32922         * modules/func (License): Change license to unlimited; there was
32923         no LGPL parts in the module anyway.
32924
32925 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32926
32927         * modules/__func__: Renamed to modules/func.
32928         * modules/__func__-tests: Renamed to modules/func-tests.
32929         * tests/test-__func__.c: Renamed to tests/test-func.c.
32930         * m4/__func__.m4: Renamed to m4/func.m4.
32931         * doc/gnulib.texi (__func__): Section renamed to func.
32932         Suggested by Eric Blake <ebb9@byu.net>.
32933
32934 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32935
32936         * doc/gnulib.texi (__func__): Use C99 terminology when talking
32937         about __func__.  Make example self-contained.  Suggested by Eric
32938         Blake <ebb9@byu.net>.
32939
32940         * tests/test-__func__.c (main): Avoid extraneous () around __func.
32941         Suggested by Eric Blake <ebb9@byu.net>.
32942
32943 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32944
32945         * modules/__func__: New file.
32946         * modules/__func__-tests: New file.
32947         * tests/test-__func__.c: New file.
32948         * m4/__func__.m4: New file.
32949         * doc/gnulib.texi (__func__): Document __func__ module.
32950
32951 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32952
32953         * modules/byteswap (License): Re-license as LGPLv2+.
32954
32955 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32956
32957         * doc/Makefile: Add pdf target.
32958
32959 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32960
32961         * modules/inline (License): Use 'unlimited', since there are only
32962         *.m4 files in this module.
32963
32964 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
32965             Bruno Haible  <bruno@clisp.org>
32966
32967         Add support for HP C 7.1 on OpenVMS 8.3.
32968         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
32969
32970 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
32971
32972         Update VMS specifics.
32973         * lib/getopt.c [VMS]: Remove include of unixlib.h.
32974
32975 2008-03-02  Jim Meyering  <meyering@redhat.com>
32976
32977         Remove the last dependency on the "free" module.
32978         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
32979         Reported by Bob Proulx.
32980
32981         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
32982
32983         Remove useless "if" tests before free.  Deprecate "free" module.
32984         * doc/posix-functions/free.texi: Mention that this
32985         module is no longer useful.
32986         * modules/free (Notice): Say this module is obsolete.
32987         * modules/readutmp (Depends-on): Remove free.
32988         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
32989         * lib/putenv.c (putenv): Likewise.
32990         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
32991         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
32992         * tests/test-c-strcasestr.c (main): Likewise.
32993         * tests/test-c-strstr.c (main): Likewise.
32994         * tests/test-mbscasestr1.c (main): Likewise.
32995         * tests/test-mbscasestr2.c (main): Likewise.
32996         * tests/test-mbsstr1.c (main): Likewise.
32997         * tests/test-mbsstr2.c (main): Likewise.
32998         * tests/test-memmem.c (main): Likewise.
32999         * tests/test-strcasestr.c (main): Likewise.
33000         * tests/test-striconv.c (main): Likewise.
33001         * tests/test-striconveh.c (main): Likewise.
33002         * tests/test-striconveha.c (main): Likewise.
33003         * tests/test-strstr.c (main): Likewise.
33004
33005         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33006
33007         bootstrap: sync from coreutils again
33008         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33009
33010 2008-03-01  Jim Meyering  <meyering@redhat.com>
33011
33012         bootstrap: sync from coreutils
33013         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33014         also when the target doesn't exist.
33015
33016 2008-03-01  Eric Blake  <ebb9@byu.net>
33017
33018         Fix bugs in last patch.
33019         * lib/memchr2.c (memchr2): Fix typo.
33020         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33021         extension.
33022         Reported by Bruce Korb.
33023
33024         New module 'memchr2'.
33025         * modules/memchr2: New file.
33026         * modules/memchr2-tests: Likewise.
33027         * lib/memchr2.h: Likewise.
33028         * lib/memchr2.c: Likewise, based on memchr.c.
33029         * tests/test-memchr2.c: New test.
33030         * MODULES.html.sh (String handling): Add memchr2.
33031
33032 2008-02-29  Bruno Haible  <bruno@clisp.org>
33033
33034         * modules/freadseek-tests: New file.
33035         * tests/test-freadseek.sh: New file.
33036         * tests/test-freadseek.c: New file.
33037
33038         New module 'freadseek'.
33039         * modules/freadseek: New file.
33040         * lib/freadseek.h: New file.
33041         * lib/freadseek.c: New file.
33042         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33043
33044 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33045
33046         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33047         wydawca.
33048
33049         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33050         program_invocation_name and program_invocation_short_name are
33051         present.
33052
33053 2008-02-28  Bruno Haible  <bruno@clisp.org>
33054
33055         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33056         * tests/test-freadptr.sh: Also test non-seekable stdin.
33057
33058 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33059
33060         * build-aux/bootstrap (source_base, m4_base)
33061         (doc_base, tests_base): New variables.
33062         (gnulib_tool_options): Do not hardcode base directories, use
33063         the above variables instead.
33064
33065 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33066
33067         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33068
33069 2008-02-28  Bruno Haible  <bruno@clisp.org>
33070
33071         * modules/freadptr-tests: New file.
33072         * tests/test-freadptr.sh: New file.
33073         * tests/test-freadptr.c: New file.
33074
33075         New module 'freadptr'.
33076         * modules/freadptr: New file.
33077         * lib/freadptr.h: New file.
33078         * lib/freadptr.c: New file.
33079         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33080
33081 2008-02-26  Karl Berry  <karl@freefriends.org>
33082
33083         Sync from Libtool:
33084         * libltdl/argz.c (argz_add, argz_count): New functions.
33085         * libltdl/argz.in.h: Declare them.
33086         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33087
33088 2008-02-22  Bruno Haible  <bruno@clisp.org>
33089
33090         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33091         is a pointer type.  Needed for HP-UX 10.
33092         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33093         * doc/posix-functions/gmtime_r.texi: Likewise.
33094         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33095
33096 2008-02-24  Bruno Haible  <bruno@clisp.org>
33097
33098         * modules/environ-tests: New file.
33099         * tests/test-environ.c: New file.
33100
33101         New module 'environ'.
33102         * modules/environ: New file.
33103         * lib/unistd.in.h (environ): New declaration.
33104         * m4/environ.m4: New file.
33105         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33106         after use.
33107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33108         HAVE_DECL_ENVIRON.
33109         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33110         HAVE_DECL_ENVIRON.
33111         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33112         wrong claim that 'environ' is missing on some systems.
33113         * modules/execute (Depends-on): Add environ.
33114         * lib/execute.c (environ): Remove fallback declaration.
33115         * modules/pipe (Depends-on): Add environ.
33116         * lib/pipe.c (environ): Remove fallback declaration.
33117         * modules/setenv (Depends-on): Add environ.
33118         * lib/setenv.c (environ): Remove fallback declaration.
33119         * modules/unsetenv (Depends-on): Add environ.
33120         * lib/unsetenv.c (environ): Remove fallback declaration.
33121         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33122         m4/environ.m4.
33123         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33124         (gl_PREREQ_UNSETENV): Likewise.
33125
33126 2008-02-24  Bruno Haible  <bruno@clisp.org>
33127
33128         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33129
33130 2008-02-20  Bob Proulx  <bob@proulx.com>
33131
33132         Enable use of older two part flavor 'git describe'.
33133         * build-aux/git-version-gen: If using the older two part flavor of
33134         git version then recreate the third part now present in the
33135         newer three part flavor of git describe.
33136
33137 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33138
33139         * lib/fts.c (fts_build): Typo correction to comment.
33140
33141 2008-02-17  Bruno Haible  <bruno@clisp.org>
33142
33143         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33144         generating no-op conflicts.
33145
33146 2008-02-17  Bruno Haible  <bruno@clisp.org>
33147
33148         Speed up by 10%.
33149         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33150         result_entries, rather than an index-based loop.
33151
33152 2008-02-17  Bruno Haible  <bruno@clisp.org>
33153
33154         Speed up by 25%.
33155         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33156         'hashcode_cached'.
33157         (entry_create): New function.
33158         (entry_hashcode): Use the cached hashcode if possible.
33159         (read_changelog_file, try_split_merged_entry): Use entry_create.
33160
33161 2008-02-17  Bruno Haible  <bruno@clisp.org>
33162
33163         Speed up from O(n^2) to O(n) for long ChangeLog files.
33164         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33165         (read_changelog_file): Change implementation of entries_reversed list
33166         to rbtreehash.
33167         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33168
33169 2008-02-17  Bruno Haible  <bruno@clisp.org>
33170
33171         New option --split-merged-entry.
33172         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33173         (find_paragraph_end, try_split_merged_entry): New functions.
33174         (long_options): Add option --split-merged-entry.
33175         (usage): Document option --split-merged-entry.
33176         (main): Implement option --split-merged-entry.
33177         Reported by Eric Blake.
33178
33179 2008-02-17  Bruno Haible  <bruno@clisp.org>
33180
33181         * lib/git-merge-changelog.c: Include c-strstr.h.
33182         (main): Support the "git pull --rebase" situation.
33183         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33184         Reported by Eric Blake.
33185
33186 2008-02-16  Eric Blake  <ebb9@byu.net>
33187
33188         Avoid doubling \ in common case of "c-maybe" quoting style.
33189         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33190         eliding outer quotes.
33191         * lib/quotearg.h: Document this.
33192         * tests/test-quotearg.c (result_strings, inputs, results_g)
33193         (flag_results, locale_results): Test it by adding a new string to
33194         each test group.
33195         (compare_strings): Test new string.
33196
33197 2008-02-13  Eric Blake  <ebb9@byu.net>
33198
33199         Avoid trigraph quoting in default output.
33200         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33201         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33202         unless explicitly requested.
33203         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33204
33205 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33206
33207         Don't rely on signed integer overflowing to negative value.
33208         * lib/getugroups.c (getugroups): Include <limits.h>.
33209         Instead, compare against INT_MAX, and increment only if the test passes.
33210
33211 2008-02-13  Jim Meyering  <meyering@redhat.com>
33212         and Eric Blake  <ebb9@byu.net>
33213
33214         Avoid shadowing warning and compile errors on Linux.
33215         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33216         forwarding macros on Linux.
33217         (dcgettext): Define a stub, for Linux.
33218         (results_g, main): Avoid warnings.
33219
33220 2008-02-12  Eric Blake  <ebb9@byu.net>
33221
33222         Silence warning in last patch.
33223         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33224
33225         Quotearg part 4: add tests, fix c-maybe colon quoting.
33226         * lib/quotearg.h: Improve documentation.
33227         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33228         escapes when adding outer quotes.  When quoting trigraphs, use
33229         valid C notation.  When quoting NUL, omit extra characters if next
33230         character is not digit.  Alter prototype.
33231         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33232         callers.
33233         * modules/quotearg-tests: New module.
33234         * tests/test-quotearg.c: New test.
33235
33236 2008-02-07  Eric Blake  <ebb9@byu.net>
33237
33238         Quotearg part 3: add flag to control outer quote elision.
33239         * lib/quotearg.h (c_maybe_quoting_style): New style.
33240         (enum quoting_flags): Better documentation of flags.
33241         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33242         c-maybe style.
33243         (quotearg_buffer_restyled): Handle new flag to elide outer
33244         quotes.
33245
33246         Quotearg part 2: add flag that can control NUL elision.
33247         * lib/quotearg.h (set_quoting_flags): New prototype.
33248         * lib/quotearg.c (struct quoting_options): Add flag field.
33249         (set_quoting_flags): New function.
33250         (quotearg_buffer_restyled): Add flags parameter.
33251         (quotearg_alloc_mem): Set the flag if length cannot be returned.
33252         (quotearg_n_options): Set the flag, since length cannot be
33253         returned.
33254         (quoting_options_from_style): Default flags correctly.
33255
33256         Quotearg part 1: more wrappers, restore quotearg_char state.
33257         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
33258         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
33259         (quotearg_colon_mem): New wrappers.
33260         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
33261         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
33262         functions.
33263         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
33264         (quotearg_colon_mem): New functions.
33265
33266 2008-02-11  Bruno Haible  <bruno@clisp.org>
33267
33268         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
33269         library in the current directory: it does not work with parallel make.
33270         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33271
33272 2008-02-11  Bruno Haible  <bruno@clisp.org>
33273
33274         * .gitattributes: New file.
33275
33276 2008-02-11  Jim Meyering  <meyering@redhat.com>
33277
33278         useless-if-before-free: Fix reversed exit values.
33279         * build-aux/useless-if-before-free: Use correct values
33280         for EXIT_MATCH and EXIT_NO_MATCH.
33281
33282         * build-aux/useless-if-before-free: Close stdout carefully.
33283
33284 2008-02-10  Bruno Haible  <bruno@clisp.org>
33285
33286         New module 'git-merge-changelog'.
33287         * modules/git-merge-changelog: New file.
33288         * lib/git-merge-changelog.c: New file.
33289
33290 2008-02-10  Jim Meyering  <meyering@redhat.com>
33291
33292         useless-if-before-free: New option: --list (-l).
33293
33294         useless-if-before-free: Don't exit immediately upon open failure.
33295         * build-aux/useless-if-before-free: Exit 2 for errors.
33296         Upon failure to open a file, don't exit immediately.
33297         Rather, just warn and continue with any remaining files.
33298
33299 2008-02-10  Bruno Haible  <bruno@clisp.org>
33300
33301         New abstract list operation 'node_set_value'.
33302         * lib/gl_list.h (gl_list_node_set_value): New function.
33303         (struct gl_list_implementation): New field node_set_value.
33304         * lib/gl_list.c (gl_list_node_set_value): New function.
33305         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33306         (gl_array_list_implementation): Update.
33307         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33308         (gl_carray_list_implementation): Update.
33309         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33310         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33311         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33312         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33313         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33314         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33315         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33316         Update.
33317         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33318         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33319         (gl_sublist_list_implementation): Update.
33320
33321 2008-02-10  Bruno Haible  <bruno@clisp.org>
33322
33323         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33324         Needed when ELEMENT is #defined to 'some_type *'.
33325
33326 2008-02-10  Jim Meyering  <meyering@redhat.com>
33327
33328         New script and module: useless-if-before-free
33329         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33330         * build-aux/useless-if-before-free: New file.
33331         * modules/useless-if-before-free: New file.
33332
33333         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33334
33335         xstrtol_error: Fix typo.
33336         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33337         s/exit_failure/exit_status/.
33338
33339 2008-02-09  Jim Meyering  <meyering@redhat.com>
33340
33341         New script and module: gitlog-to-changelog
33342         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33343         * modules/gitlog-to-changelog: New file.
33344         * build-aux/gitlog-to-changelog: New file.
33345
33346 2008-02-08  Jim Meyering  <meyering@redhat.com>
33347
33348         Avoid two "parameter unused" warnings.
33349         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33350         Mark "st" as used.
33351
33352         Use "git COMMAND", not "git-COMMAND".
33353         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33354         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33355         * build-aux/git-version-gen: Use "git status", not "git-status".
33356
33357 2008-02-07  Bruno Haible  <bruno@clisp.org>
33358
33359         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33360         Avoids a crash on Windows Vista.
33361         Reported by Adam Strzelecki <ono@java.pl> via
33362         Simon Josefsson <simon@josefsson.org>.
33363
33364 2008-02-06  Bruno Haible  <bruno@clisp.org>
33365
33366         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33367         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33368         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33370         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33371         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33372         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33373         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33374         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33376         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33377         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33380         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33381         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33382         left-adjust flag.
33383         * tests/test-snprintf-posix.h (test_function): Likewise.
33384         * tests/test-sprintf-posix.h (test_function): Likewise.
33385         * tests/test-vasprintf-posix.c (test_function): Likewise.
33386         * doc/posix-functions/fprintf.texi: Update.
33387         * doc/posix-functions/printf.texi: Update.
33388         * doc/posix-functions/snprintf.texi: Update.
33389         * doc/posix-functions/sprintf.texi: Update.
33390         * doc/posix-functions/vfprintf.texi: Update.
33391         * doc/posix-functions/vprintf.texi: Update.
33392         * doc/posix-functions/vsnprintf.texi: Update.
33393         * doc/posix-functions/vsprintf.texi: Update.
33394         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33395
33396 2008-02-06  Bruno Haible  <bruno@clisp.org>
33397
33398         Fix bug introduced on 2008-01-26.
33399         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33400
33401 2008-02-06  Bruno Haible  <bruno@clisp.org>
33402
33403         Fix bug introduced on 2007-06-10.
33404         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33405         !NEED_PRINTF_FLAG_ZERO.
33406
33407 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33408
33409         getloadavg: use libperfstat on AIX5
33410         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33411
33412 2008-02-03  Bruno Haible  <bruno@clisp.org>
33413
33414         * lib/diffseq.h: Add comments about required #includes.
33415         Reported by Michael Biggs <gnulib@doubleplum.net>.
33416
33417 2008-02-01  Bruno Haible  <bruno@clisp.org>
33418
33419         * users.txt: Add gnuit.
33420
33421 2008-01-31  Bruno Haible  <bruno@clisp.org>
33422
33423         * lib/md4.c (set_uint32): Mark as inline.
33424         * lib/md5.c (set_uint32): Likewise.
33425         * lib/sha1.c (set_uint32): Likewise.
33426         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
33427         * m4/md5.m4 (gl_MD5): Likewise.
33428         * m4/sha1.m4 (gl_SHA1): Likewise.
33429
33430 2008-01-31  Jim Meyering  <meyering@redhat.com>
33431
33432         Use "sizeof VAR", rather than a literal "4".
33433         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
33434         * lib/md4.c (md4_read_ctx): Likewise.
33435         * lib/sha1.c (sha1_read_ctx): Likewise.
33436
33437 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33438
33439         * tests/test-sha1.c: New file, based on test-md5.c.
33440
33441         * modules/crypto/sha1-tests: New file.
33442
33443 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33444
33445         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
33446
33447 2008-01-31  Jim Meyering  <meyering@redhat.com>
33448
33449         Prefer "sizeof v" over the equivalent "4".
33450         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
33451         * lib/md5.c (set_uint32): Likewise.
33452         * lib/sha1.c (set_uint32): Likewise.
33453
33454 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33455
33456         * lib/sha1.c (set_uint32): Mark function as static.
33457
33458 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33459
33460         md2: clarify comments to say that alignment is not required.
33461         * lib/md2.h: Remove warning about alignment in comment.
33462         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
33463         never been required.
33464
33465 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33466
33467         md4: adapt alignment constraint fix from sha1.
33468         * lib/md4.c (set_uint32): New function, from sha1.c
33469         (md4_read_ctx): Use it.
33470         (md4_finish_ctx): Doc fix.
33471         * lib/md4.h: Doc fix.
33472
33473 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33474
33475         md5: adapt alignment constraint fix from sha1.
33476         * lib/md5.c (set_uint32): New function, from sha1.c
33477         (md5_read_ctx): Use it.
33478         (md5_finish_ctx): Doc fix.
33479         * lib/md5.h: Doc fix.
33480
33481 2008-01-30  Peter Palfrader  <weasel@debian.org>
33482
33483         sha1: remove the result buffer alignment constraint
33484         * lib/sha1.c (set_uint32): New function.
33485         (sha1_read_ctx): Rewrite to remove the result buffer alignment
33486         constraint.
33487         (sha1_finish_ctx): Remove comment warning about alignment constraint.
33488         * lib/sha1.h: Likewise.
33489
33490 2008-01-30  Andreas Schwab  <schwab@suse.de>
33491             Bruno Haible  <bruno@clisp.org>
33492
33493         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
33494         correct definition of LDBL_MIN_EXP.
33495
33496 2008-01-30  Karl Berry  <karl@gnu.org>
33497
33498         * config/srclist-update: try to preserve x bit on updates.
33499         * config/srclistvars.sh: update for karl.
33500
33501 2008-01-29  Jim Meyering  <meyering@redhat.com>
33502
33503         vasnprintf.c: Avoid warning about unused label
33504         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
33505         "overflow" label definition and associated code with the
33506         same cpp condition that guards the sole use of that label.
33507
33508 2008-01-26  Bruno Haible  <bruno@clisp.org>
33509
33510         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
33511         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
33512         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
33513         * lib/isnanl-nolibm.h (isnanl): Likewise.
33514         Reported by Paul Eggert <eggert@cs.ucla.edu>.
33515
33516 2008-01-26  Bruno Haible  <bruno@clisp.org>
33517
33518         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
33519         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
33520
33521 2008-01-26  Bruno Haible  <bruno@clisp.org>
33522
33523         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
33524         GCC >= 4.0 built-in.
33525         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
33526
33527 2008-01-26  Bruno Haible  <bruno@clisp.org>
33528
33529         Rename isnan, applicable to 'double' only, to isnand.
33530         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
33531         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
33532         (configure.ac): Update.
33533         (Include): Replace "isnan.h" with "isnand.h".
33534         * m4/isnand.m4: Renamed from m4/isnan.m4.
33535         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
33536         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
33537         instead of isnan.c.
33538         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
33539         instead of HAVE_ISNAN_IN_LIBC.
33540         (isnand): Renamed from isnan.
33541         * lib/isnand.c: New file.
33542         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
33543         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
33544         (Makefile.am): Update.
33545         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
33546         Include isnand.h instead of isnan.h.
33547         (main): Test isnand instead of isnan.
33548         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
33549         isnan-nolibm.
33550         * modules/frexp (Depends-on): Likewise.
33551         * modules/frexp-tests (Depends-on): Likewise.
33552         * modules/frexp-nolibm (Depends-on): Likewise.
33553         * modules/frexp-nolibm-tests (Depends-on): Likewise.
33554         * modules/isfinite (Depends-on): Likewise.
33555         * modules/round-tests (Depends-on): Likewise.
33556         * modules/signbit (Depends-on): Likewise.
33557         * modules/signbit-tests (Depends-on): Likewise.
33558         * modules/snprintf-posix (Depends-on): Likewise.
33559         * modules/sprintf-posix (Depends-on): Likewise.
33560         * modules/trunc-tests (Depends-on): Likewise.
33561         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33562         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33563         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33564         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33565         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33566         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33567         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33568         * modules/vasnprintf-posix (Depends-on): Likewise.
33569         * modules/vasprintf-posix (Depends-on): Likewise.
33570         * modules/vfprintf-posix (Depends-on): Likewise.
33571         * modules/vsnprintf-posix (Depends-on): Likewise.
33572         * modules/vsprintf-posix (Depends-on): Likewise.
33573         * lib/frexp.c: Include isnand.h instead of isnan.h.
33574         (ISNAN): Set to isnand instead of isnan.
33575         * lib/isfinite.c: Include isnand.h instead of isnan.h.
33576         (gl_isfinited): Use isnand instead of isnan.
33577         * lib/signbitd.c: Include isnand.h instead of isnan.h.
33578         (gl_signbitd): Use isnand instead of isnan.
33579         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
33580         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
33581         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
33582         (main): Use isnand instead of isnan.
33583         * tests/test-round1.c: Include isnand.h.
33584         (main): Use isnand instead of isnan.
33585         * tests/test-round2.c: Include isnand.h instead of isnan.h.
33586         (ISNAN): Set to isnand instead of isnan.
33587         * tests/test-trunc1.c: Include isnand.h.
33588         (main): Use isnand instead of isnan.
33589         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
33590         (equal): Use isnand instead of isnan.
33591         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
33592         isnand-nolibm.
33593         * NEWS: Mention the change.
33594
33595 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33596             Bruno Haible  <bruno@clisp.org>
33597
33598         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
33599         the GCC builtins for signbits are present and set
33600         REPLACE_SIGNBIT_USING_GCC if so.
33601         * lib/math.in.h (signbit): Define using GCC builtins if
33602         REPLACE_SIGNBIT_USING_GCC is set.
33603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
33604         REPLACE_SIGNBIT_USING_GCC.
33605         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
33606
33607 2008-01-25  Jim Meyering  <meyering@redhat.com>
33608
33609         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
33610         * lib/poll.c: Include <config.h>, not "config.h".
33611         * tests/test-getaddrinfo.c: Likewise.
33612
33613 2008-01-25  Simon Josefsson  <simon@josefsson.org>
33614
33615         * modules/sockets-tests: New file.
33616
33617 2008-01-24  Simon Josefsson  <simon@josefsson.org>
33618
33619         * modules/sockets: New module, can be used to call WSA_Startup and
33620         WSA_Cleanup when needed.
33621
33622         * lib/sockets.h, lib/sockets.c: New files.
33623
33624         * m4/sockets.m4: New file.
33625
33626         * tests/test-sockets.c: New file.
33627
33628 2008-01-19  Bruno Haible  <bruno@clisp.org>
33629
33630         * doc/posix-headers: Renamed from doc/headers.
33631         * doc/posix-functions: Renamed from doc/functions.
33632         * doc/gnulib.texi: Update.
33633
33634 2008-01-19  Bruno Haible  <bruno@clisp.org>
33635
33636         * doc/glibc-functions/strcasestr.texi: Include contents of
33637         doc/functions/strcasestr.texi, fixing the list of platforms.
33638         * doc/functions/strcasestr.texi: Remove file.
33639
33640 2008-01-19  Bruno Haible  <bruno@clisp.org>
33641
33642         * doc/glibc-functions/memmem.texi: Include contents of
33643         doc/functions/memmem.texi.
33644         * doc/functions/memmem.texi: Remove file.
33645
33646 2008-01-18  Bruno Haible  <bruno@clisp.org>
33647
33648         * doc/glibc-functions/*.texi: New files.
33649         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
33650         to use the new files.
33651
33652 2008-01-17  Bruno Haible  <bruno@clisp.org>
33653
33654         * tests/test-gethostname.c (main): Fix printf statement.
33655
33656 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33657
33658         * modules/gethostname-tests: New file.
33659
33660         * tests/test-gethostname.c: New file.
33661
33662 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33663
33664         * lib/gethostname.c: Include string.h unconditionally, strncpy is
33665         used by the UNAME case.  Reported by Bruno Haible
33666         <bruno@clisp.org>.
33667
33668 2008-01-17  Eric Blake  <ebb9@byu.net>
33669
33670         Convert c-strcasestr to be more efficient.
33671         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
33672         (Depends-on): Add c-strcase, remove malloca, strnlen.
33673         * tests/test-c-strcasestr.c (main): Enhance test.
33674         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
33675
33676 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
33677
33678         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
33679         Use it in creating po/Makevars.
33680
33681 2008-01-15  Simon Josefsson  <simon@josefsson.org>
33682
33683         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
33684         Applications that requires it should initialize libgcrypt
33685         manually.
33686
33687 2008-01-16  Simon Josefsson  <simon@josefsson.org>
33688
33689         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
33690
33691 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
33692
33693         Fix problem with getdate on mingw32 reported by Simon Josefsson
33694         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
33695         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
33696         tzname", when deciding whether to declare tzname.
33697         * lib/strftime.c (tzname): Likewise.
33698
33699 2008-01-15  Bruno Haible  <bruno@clisp.org>
33700
33701         Work around a MacOS X 10.5 bug in frexpl().
33702         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
33703         * doc/functions/frexpl.texi: Document the bug.
33704         Reported by Elias Pipping <pipping@gentoo.org>.
33705
33706 2008-01-14  Eric Blake  <ebb9@byu.net>
33707
33708         Touch up previous patch.
33709         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
33710         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
33711
33712         Convert strcasestr module to use Two-Way algorithm.
33713         * modules/strcasestr-simple: New module, based on the old
33714         strcasestr, but with Two-Way rather than KMP.
33715         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
33716         * lib/string.in.h (rpl_strcasestr): Declare.
33717         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
33718         performance.
33719         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
33720         * modules/string (Makefile.am): Support strcasestr.
33721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33722         * modules/strcasestr-tests (Depends-on): Check for alarm.
33723         * tests/test-strcasestr.c: Augment test.
33724         * lib/str-two-way.h: Clean up stray macro.
33725         * NEWS: Document new module.
33726         * MODULES.html.sh (string handling): Likewise.
33727         * doc/functions/strcasestr.texi: New file.
33728         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
33729         here, since it is not a POSIX function.
33730
33731 2008-01-14  Colin Watson  <cjwatson@debian.org>
33732             Bruno Haible  <bruno@clisp.org>
33733
33734         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
33735         works fine; if not, set REPLACE_STRSIGNAL.
33736         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
33737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33738         REPLACE_STRSIGNAL.
33739         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
33740         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
33741         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
33742
33743 2008-01-14  Bruno Haible  <bruno@clisp.org>
33744
33745         * modules/strsignal (Include): Change to <string.h>.
33746
33747 2008-01-14  Colin Watson  <cjwatson@debian.org>
33748
33749         * modules/argp (Notice): Add a notice recommending to change
33750         XGETTEXT_OPTIONS.
33751         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
33752
33753 2008-01-13  Colin Watson  <cjwatson@debian.org>
33754
33755         * modules/strsignal-tests: New file.
33756         * tests/test-strsignal.c: New file.
33757
33758         * lib/strsignal.c: New file, from glibc with modifications.
33759         * lib/siglist.h: New file, from glibc with modifications.
33760         * lib/string.in.h (strsignal): New declaration.
33761         * m4/strsignal.m4: New file.
33762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33763         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
33764         * modules/strsignal: New file.
33765         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
33766         HAVE_DECL_STRSIGNAL.
33767
33768 2008-01-13  Bruno Haible  <bruno@clisp.org>
33769
33770         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
33771         locale encoding is not ASCII. Needed for OpenBSD 4.0.
33772         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33773         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33774
33775 2008-01-13  Bruno Haible  <bruno@clisp.org>
33776
33777         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
33778         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
33779         * lib/argp.h (__attribute__): Likewise.
33780         * lib/c-stack.c (__attribute__): Likewise.
33781         * lib/error.h (__attribute__): Likewise.
33782         * lib/fts.c (__attribute__): Likewise.
33783         * lib/openat.h (__attribute__): Likewise.
33784         * lib/stdio.in.h (__attribute__): Likewise.
33785         * lib/string.in.h (__attribute__): Likewise.
33786         * lib/utimens.c (__attribute__): Likewise.
33787         * lib/vasnprintf.h (__attribute__): Likewise.
33788         * lib/xalloc.h (__attribute__): Likewise.
33789         * lib/xprintf.h (__attribute__): Likewise.
33790         * lib/xstrtol.h (__attribute__): Likewise.
33791         * lib/xvasprintf.h (__attribute__): Likewise.
33792
33793 2008-01-12  Bruno Haible  <bruno@clisp.org>
33794
33795         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
33796         * doc/glibc-headers/a.out.texi: New file.
33797         * doc/glibc-headers/aliases.texi: New file.
33798         * doc/glibc-headers/alloca.texi: New file.
33799         * doc/glibc-headers/ar.texi: New file.
33800         * doc/glibc-headers/argp.texi: New file.
33801         * doc/glibc-headers/argz.texi: New file.
33802         * doc/glibc-headers/byteswap.texi: New file.
33803         * doc/glibc-headers/crypt.texi: New file.
33804         * doc/glibc-headers/endian.texi: New file.
33805         * doc/glibc-headers/envz.texi: New file.
33806         * doc/glibc-headers/err.texi: New file.
33807         * doc/glibc-headers/error.texi: New file.
33808         * doc/glibc-headers/execinfo.texi: New file.
33809         * doc/glibc-headers/fpu_control.texi: New file.
33810         * doc/glibc-headers/fstab.texi: New file.
33811         * doc/glibc-headers/fts.texi: New file.
33812         * doc/glibc-headers/getopt.texi: New file.
33813         * doc/glibc-headers/ieee754.texi: New file.
33814         * doc/glibc-headers/ifaddrs.texi: New file.
33815         * doc/glibc-headers/libintl.texi: New file.
33816         * doc/glibc-headers/mcheck.texi: New file.
33817         * doc/glibc-headers/mntent.texi: New file.
33818         * doc/glibc-headers/obstack.texi: New file.
33819         * doc/glibc-headers/paths.texi: New file.
33820         * doc/glibc-headers/printf.texi: New file.
33821         * doc/glibc-headers/pty.texi: New file.
33822         * doc/glibc-headers/resolv.texi: New file.
33823         * doc/glibc-headers/shadow.texi: New file.
33824         * doc/glibc-headers/sysexits.texi: New file.
33825         * doc/glibc-headers/ttyent.texi: New file.
33826
33827 2008-01-12  Jim Meyering  <meyering@redhat.com>
33828
33829         announce-gen: emit Gnulib's git-based version string.
33830         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
33831         New option --gnulib-version=V, where V is expected to be
33832         the output of running git describe in the gnulib directory.
33833         (get_tool_versions): Request feedback on xdelta.  I suspect it's
33834         not useful, and plan to stop publishing an xdelta file with each
33835         coreutils release.
33836
33837         * build-aux/announce-gen: Also check for lzma-compressed files.
33838
33839 2008-01-11  Bruno Haible  <bruno@clisp.org>
33840
33841         * tests/test-memmem.c (main): Increase maximum allowed time.
33842         * tests/test-strstr.c (main): Likewise.
33843
33844 2008-01-11  Bruno Haible  <bruno@clisp.org>
33845
33846         * doc/functions/memmem.texi: Add more precisions about platforms.
33847         * doc/functions/strstr.texi: Likewise.
33848
33849 2008-01-10  Eric Blake  <ebb9@byu.net>
33850
33851         * m4/strstr.m4: Delete cruft from copy-n-paste.
33852         Reported by Bruno Haible.
33853
33854 2008-01-10  Bruno Haible  <bruno@clisp.org>
33855
33856         Make c-strstr rely on strstr.
33857         * lib/c-strstr.c: Don't include str-kmp.h.
33858         (c_strstr): Define in terms of strstr.
33859         * modules/c-strstr (Files): Remove lib/str-kmp.h.
33860         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
33861
33862 2008-01-10  Bruno Haible  <bruno@clisp.org>
33863
33864         * doc/gnulib.texi (String Functions in C Locale): New section.
33865         * doc/c-ctype.texi: New file.
33866         * doc/c-strcase.texi: New file.
33867         * doc/c-strcaseeq.texi: New file.
33868         * doc/c-strcasestr.texi: New file.
33869         * doc/c-strstr.texi: New file.
33870         * doc/c-strtod.texi: New file.
33871         * doc/c-strtold.texi: New file.
33872
33873 2008-01-10  Eric Blake  <ebb9@byu.net>
33874
33875         * lib/relocatable.h: Fix a comment.
33876
33877 2008-01-10  Eric Blake  <ebb9@byu.net>
33878
33879         Share two-way algorithm.
33880         * lib/str-two-way.h: New file, merged from...
33881         * lib/memmem.c: ...here...
33882         * lib/strstr.c: ...and here.
33883         * modules/memmem (Files): Use it.
33884         * modules/strstr (Files): Likewise.
33885
33886         Avoid quadratic strstr implementations.
33887         * lib/strstr.c: New file.
33888         * m4/strstr.m4: Likewise.
33889         * modules/strstr: Likewise.
33890         * modules/strstr-tests: Likewise.
33891         * tests/test-strstr.c: Likewise.
33892         * lib/string.in.h (rpl_strstr): Declare.
33893         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
33894         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
33895         * modules/string (Makefile.am): Likewise.
33896         * MODULES.html.sh (string handling): Mention new module.
33897         * doc/functions/strstr.texi (strstr): Document the bug.
33898
33899 2008-01-10  Bruno Haible  <bruno@clisp.org>
33900
33901         * lib/relocatable.h (relocate): State whether result is freshly
33902         allocated or not.
33903         * lib/relocatable.c (relocate): Return a freshly allocated string
33904         instead of a pointer to a privately held string.
33905         Reported by Sylvain Beucler <beuc@gnu.org>.
33906
33907 2008-01-10  Colin Watson  <cjwatson@debian.org>
33908
33909         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
33910         s/S_ISNLK/S_ISLNK/.
33911
33912 2008-01-09  Bruno Haible  <bruno@clisp.org>
33913
33914         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
33915         and other files.
33916         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
33917         if it's only a guess.
33918         * modules/memmem: Simplify by depending on memmem-simple.
33919
33920 2008-01-09  Bruno Haible  <bruno@clisp.org>
33921
33922         Work around OpenBSD 4.0 tdelete() bug.
33923         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
33924         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
33925         macros and don't redefine the enum values.
33926         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
33927         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
33928         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
33929
33930 2008-01-09  Bruno Haible  <bruno@clisp.org>
33931
33932         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
33933         (main): Don't perform the tests if setlocale did not install a UTF-8
33934         locale. Needed on OpenBSD 4.0.
33935         * modules/wcwidth-tests (Depends-on): Add localcharset.
33936
33937 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33938
33939         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
33940         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
33941         * NEWS: announce this.
33942         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
33943
33944 2008-01-09  Simon Josefsson  <simon@josefsson.org>
33945         and Eric Blake  <ebb9@byu.net>
33946
33947         Add memmem-simple module.
33948         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
33949         (gl_FUNC_MEMMEM): Separate performance from presence checks.
33950         * modules/memmem-simple: New file.
33951         * modules/memmem (Description): Tweak.
33952         * MODULES.html.sh (string handling): Mention new module.
33953         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
33954         addressed by memmem-simple.
33955         * NEWS: Document the difference.
33956
33957 2008-01-09  Eric Blake  <ebb9@byu.net>
33958
33959         Give gcc some memmem optimization hints.
33960         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
33961         (strcasestr): Declare as pure.
33962         * modules/memmem (Maintainer): Claim my implementation.
33963
33964 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33965
33966         Support AIX 6.1 and higher.
33967         * build-aux/config.libpath: Likewise.
33968         * build-aux/config.rpath: Likewise.
33969
33970 2008-01-08  Jim Meyering  <meyering@redhat.com>
33971             Bruno Haible  <bruno@clisp.org>
33972
33973         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
33974         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
33975         Reported by Peter Fales in
33976         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
33977
33978 2008-01-08  Bruno Haible  <bruno@clisp.org>
33979
33980         * modules/unictype/category-of (Depends-on): Add
33981         unictype/category-none.
33982         * modules/unictype/category-and-tests (Depends-on): Add
33983         unictype/category-{L,N,Lu,Nd}.
33984         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
33985         * modules/unictype/category-or-tests (Depends-on): Add
33986         unictype/category-{L,N}.
33987         * modules/unictype/category-name-tests (Depends-on): Add
33988         unictype/category-{Z,Nl}.
33989         Reported by Simon Josefsson.
33990
33991 2008-01-08  Bruno Haible  <bruno@clisp.org>
33992
33993         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
33994         convention better.
33995         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
33996         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
33997         Reported by Peter Miller <millerp@canb.auug.org.au>.
33998
33999 2008-01-08  Eric Blake  <ebb9@byu.net>
34000
34001         Rewrite memmem to guarantee linear complexity without malloc.
34002         * lib/memmem.c (memmem): Use Two-Way rather than
34003         Knuth-Morris-Pratt, to allow O(1) space usage.
34004         (critical_factorization, two_way_short_needle)
34005         (two_way_long_needle): New functions.
34006         (knuth_morris_pratt): Delete.
34007         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34008         Add stdint.
34009         * tests/test-memmem.c (main): Add tests for periodic needle and
34010         sublinear performance.
34011         * doc/functions/memmem.texi (memmem): Document other deficiencies
34012         in cygwin and older glibc.
34013
34014 2008-01-08  Bruno Haible  <bruno@clisp.org>
34015
34016         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34017         augmentation.
34018
34019 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34020
34021         Add a configure time option: --disable-acl.
34022         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34023         AC_ARG_ENABLE(acl).
34024
34025 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34026
34027         * tests/test-localename.c: Don't include obsolete "setenv.h".
34028
34029         * modules/localename-tests (Depends-on): Need unsetenv.
34030
34031 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34032
34033         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34034
34035 2008-01-06  Colin Watson  <cjwatson@debian.org>
34036
34037         * users.txt: Add man-db.
34038
34039 2008-01-07  Bruno Haible  <bruno@clisp.org>
34040
34041         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34042         previous section name.
34043
34044 2008-01-07  Bruno Haible  <bruno@clisp.org>
34045
34046         * lib/progname.c (set_program_name): Don't strip off a leading
34047         "lt-" prefix outside a .libs directory.
34048         Suggested by Paul Eggert.
34049
34050 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34051             Bruno Haible  <bruno@clisp.org>
34052
34053         Improve memory cleanup in 'relocatable' module.
34054         * lib/relocatable.h (compute_curr_prefix): Change return type to
34055         'char *'.
34056         * lib/relocatable.c (compute_curr_prefix): Change return type to
34057         'char *'. Free curr_installdir after use.
34058         (relocate): Free curr_prefix_better after use.
34059         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34060
34061 2008-01-01  Bruno Haible  <bruno@clisp.org>
34062
34063         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34064         failure on older glibc systems.
34065         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34066
34067 2008-01-05  Eric Blake  <ebb9@byu.net>
34068
34069         Avoid quadratic system memmem.
34070         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34071         Reported by Ralf Wildenhues.
34072
34073         Fix memmem test for mingw.
34074         * modules/memmem-tests (configure.ac): Check for alarm.
34075         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34076         it.
34077         * doc/functions/memmem.texi: New file.
34078         * doc/gnulib.texi (Function Substitutes): Add memmem.
34079         Reported by Bruno Haible.
34080
34081 2008-01-04  Bruno Haible  <bruno@clisp.org>
34082
34083         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34084         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34085         gl_HEADER_STRING_H_DEFAULTS.
34086
34087 2008-01-04  Eric Blake  <ebb9@byu.net>
34088
34089         Shorten duration of memmem test.
34090         * tests/test-memmem.c (main): Use alarm to declare failure if test
34091         is taking too long.
34092         Reported by Ralf Wildenhues.
34093
34094 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34095
34096         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34097         string, needed by strerror.
34098
34099 2008-01-03  Colin Watson  <cjwatson@debian.org>
34100             Bruno Haible  <bruno@clisp.org>
34101
34102         * doc/gnulib-tool.texi (Localization): New section.
34103
34104 2008-01-02  Bruno Haible  <bruno@clisp.org>
34105
34106         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34107         variables to 'unsigned char *' type.
34108         Reported by Paul Eggert.
34109
34110 2008-01-02  Jim Meyering  <jim@meyering.net>
34111
34112         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34113
34114 2007-12-31  Jim Meyering  <jim@meyering.net>
34115
34116         Avoid use of private FTS type name.
34117         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34118
34119 2007-12-30  Karl Berry  <karl@gnu.org>
34120
34121         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34122         work around defect in Texinfo and/or the standalone Info browser.
34123
34124 2007-12-30  Bruno Haible  <bruno@clisp.org>
34125
34126         Unify 5 copies of the KMP code.
34127         * lib/str-kmp.h: New file.
34128         * lib/c-strcasestr.c: Include str-kmp.h.
34129         (knuth_morris_pratt): Remove function.
34130         (c_strcasestr): Update.
34131         * lib/c-strstr.c: Include str-kmp.h.
34132         (knuth_morris_pratt): Remove function.
34133         (c_strcasestr): Update.
34134         * lib/mbscasestr.c: Include str-kmp.h.
34135         (knuth_morris_pratt_unibyte): Remove function.
34136         * lib/mbsstr.c: Include str-kmp.h.
34137         (knuth_morris_pratt_unibyte): Remove function.
34138         * lib/strcasestr.c: Include str-kmp.h.
34139         (knuth_morris_pratt): Remove function.
34140         (strcasestr): Update.
34141         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34142         * modules/c-strstr (Files): Likewise.
34143         * modules/mbscasestr (Files): Likewise.
34144         * modules/mbsstr (Files): Likewise.
34145         * modules/strcasestr (Files): Likewise.
34146         Suggested by Paul Eggert.
34147
34148 2007-12-30  Bruno Haible  <bruno@clisp.org>
34149
34150         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34151         defined.
34152
34153 2007-12-30  Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/xmalloca.h: Include xalloc.h.
34156         (xnmalloca): New macro.
34157
34158 2007-12-30  Bruno Haible  <bruno@clisp.org>
34159
34160         * lib/malloca.h (nmalloca): New macro.
34161         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34162         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34163         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34164         knuth_morris_pratt_multibyte): Likewise.
34165         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34166         knuth_morris_pratt_multibyte): Likewise.
34167         * lib/memmem.c (knuth_morris_pratt): Likewise.
34168         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34169
34170 2007-12-25  Bruno Haible  <bruno@clisp.org>
34171
34172         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34173         * lib/glob.c: Don't include openat.h.
34174         (link_exists2_p): Add back the code that deals with the
34175         !GLOB_ALTDIRFUNC case.
34176         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34177         let it do the filename concatenation.
34178         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34179         * modules/glob (Depends-on): Remove openat.
34180
34181 2007-12-31  Bruno Haible  <bruno@clisp.org>
34182
34183         * modules/dirfd (License): Change to LGPLv2+.
34184         Approved by Jim Meyering.
34185
34186 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34187
34188         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34189         when multiplying M by sizeof (size_t).
34190
34191 2007-12-10  Martin Lambers  <marlam@marlam.de>
34192
34193         Override getpagesize on mingw.
34194         * lib/getpagesize.c: New file.
34195         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34196         * modules/getpagesize (Files): Add lib/getpagesize.c.
34197         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34199         REPLACE_GETPAGESIZE.
34200         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34201
34202 2007-12-25  Bruno Haible  <bruno@clisp.org>
34203
34204         * modules/localcharset (Notice): New field.
34205         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34206         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34207
34208 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34209             Bruno Haible  <bruno@clisp.org>
34210
34211         Avoid using the syntax symbol() in formatted documentation.
34212         * MODULES.html.sh (func_module): When replacing symbol() with a
34213         hyperlink, remove the parentheses. Show an error if some remain.
34214         Recognize and render the '...' syntax.
34215         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34216         Rework. Add paragraph about GCC's inlining.
34217         * doc/alloca.texi: Likewise.
34218         * doc/error.texi: Remove parentheses from symbol reference.
34219         * doc/gnulib-intro.texi: Likewise.
34220         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34221         * modules/fnmatch (Description): Reword to say "the ... function".
34222         * modules/full-read (Description): Likewise.
34223         * modules/full-write (Description): Likewise.
34224         * modules/safe-read (Description): Likewise.
34225         * modules/safe-write (Description): Likewise.
34226         * modules/strchrnul (Description): Likewise.
34227         * modules/trim (Description): Likewise.
34228         * modules/error (Description): Remove parentheses from symbol
34229         references.
34230         * modules/verror (Description): Likewise.
34231         Reported by Karl Berry.
34232
34233 2007-12-25  Bruno Haible  <bruno@clisp.org>
34234
34235         Fixup after 2007-10-16 commit.
34236         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34237
34238 2007-12-24  Bruno Haible  <bruno@clisp.org>
34239
34240         Make --enable-relocatable work with DESTDIR.
34241         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34242         to compute installdir from destprog.
34243         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34244         also set the RELOC_DESTDIR variable.
34245         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34246
34247 2007-12-24  Bruno Haible  <bruno@clisp.org>
34248
34249         Fix link error due to xalloc_die().
34250         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
34251         of xreadlink.
34252         * lib/relocwrapper.c: Update comments.
34253         * build-aux/install-reloc: Remove xreadlink.c from file list.
34254         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
34255         xreadlink.c.
34256         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34257
34258 2007-12-24  Bruno Haible  <bruno@clisp.org>
34259
34260         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
34261         * lib/setenv.h: Remove file.
34262         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
34263         lib/setenv.h.
34264         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
34265         (Depends-on): Add stdlib.
34266         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
34267         gl_FUNC_UNSETENV.
34268         (Include): Replace setenv.h with <stdlib.h>.
34269         * modules/unsetenv: New file.
34270         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
34271         * lib/unsetenv.c: Include <stdlib.h> first.
34272         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
34273         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
34274         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
34275         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
34276         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
34277         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34278         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
34279         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34280         * doc/functions/unsetenv.texi: Update.
34281         * modules/xsetenv (Depends-on): Add unsetenv.
34282         * modules/getdate (Depends-on): Likewise.
34283         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
34284         * lib/xsetenv.c: Don't include setenv.h.
34285         * lib/getdate.y: Likewise.
34286         * lib/relocwrapper.c: Likewise.
34287         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34288         (Depends-on): Add stdlib.
34289         * NEWS: Mention the changes.
34290         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34291
34292 2007-12-23  Bruno Haible  <bruno@clisp.org>
34293
34294         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34295         indentation.
34296
34297 2007-12-23  Bruno Haible  <bruno@clisp.org>
34298
34299         * lib/c-strcasestr.c: Add more comments.
34300         * lib/c-strstr.c: Likewise.
34301         * lib/mbscasestr.c: Likewise.
34302         * lib/mbsstr.c: Likewise.
34303         * lib/strcasestr.c: Likewise.
34304         * lib/memmem.c: Likewise.
34305
34306 2007-12-23  Bruno Haible  <bruno@clisp.org>
34307
34308         * tests/test-memmem.c: Include <string.h> first.
34309
34310 2007-12-22  Bruno Haible  <bruno@clisp.org>
34311
34312         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34313         the contents of $testsbase.
34314         Reported by Ralf Wildenhues.
34315
34316 2007-12-22  Bruno Haible  <bruno@clisp.org>
34317
34318         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34319         two variables local_ldadd_before, local_ldadd_last.
34320
34321 2007-12-20  Eric Blake  <ebb9@byu.net>
34322
34323         Work around circular library issue when cross-compiling.
34324         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34325         that progname.o does not need to pull in rpl_memcmp.
34326
34327 2007-12-19  Eric Blake  <ebb9@byu.net>
34328
34329         Fix memmem to avoid O(n^2) worst-case complexity.
34330         * lib/memmem.c (knuth_morris_pratt): New function.
34331         (memmem): Use it if first few naive iterations fail.
34332         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34333         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34334         * modules/memchr (License): Likewise.
34335         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34336         malloca.
34337         * tests/test-memmem.c: Rewrite, borrowing ideas from
34338         test-mbsstr1.c; the old version wouldn't even compile!
34339         * modules/memmem-tests: New file.
34340         * lib/string.in.h (rpl_memmem): Add declaration.
34341         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34342         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34343         REPLACE_MEMMEM.
34344
34345 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34346
34347         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34348         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34349         before any system include files, and undef after them all.  This
34350         should fix a problem on VMS reported by John E. Malmberg in
34351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34352
34353 2007-12-17  Eric Blake  <ebb9@byu.net>
34354
34355         Revert addition of verify, for BSD/OS.
34356         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34357         can't handle large files, for the sake of obsolete platforms.
34358         * modules/fseeko (Depends-on): Remove verify.
34359         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34360         * doc/functions/ftello.texi (ftello): Likewise.
34361         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34362         Reported by Larry Jones.
34363
34364 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34365
34366         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34367         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34368
34369 2007-12-17  Jim Meyering  <meyering@redhat.com>
34370
34371         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34372         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34373         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34374         * modules/getcwd (Depends-on): Add openat.
34375         Reported by Petr Salinger.
34376
34377 2007-12-17  Bruno Haible  <bruno@clisp.org>
34378
34379         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34380         avoid a segmentation fault of the configure test on x86_64 systems.
34381
34382 2007-12-15  Jim Meyering  <meyering@redhat.com>
34383
34384         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34385
34386 2007-12-13  Eric Blake  <ebb9@byu.net>
34387
34388         Another fseek test.
34389         * tests/test-fseek.c (main): Also test ungetc handling.
34390         * tests/test-fseeko.c (main): Likewise.
34391         * modules/fseeko (Depends-on): Add verify.
34392         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34393         large.
34394         Reported by Larry Jones.
34395
34396         Fix fseeko on mingw.
34397         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34398         seek.
34399
34400         Beef up fseek tests.
34401         * tests/test-fseek.c (main): Also test eof handling.
34402         * tests/test-fseeko.c (main): Likewise.
34403         Reported by Larry Jones.
34404
34405 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34406
34407         Fix fseeko on BSD-based platforms.
34408         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34409         successful seek.
34410
34411 2007-12-12  Eric Blake  <ebb9@byu.net>
34412
34413         Allow circular dependency of separate libtests.a
34414         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
34415         when use_libtests.
34416
34417 2007-12-11  Eric Blake  <ebb9@byu.net>
34418
34419         Fix bug with -0.0L in previous patch.
34420         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
34421         * tests/test-isnan.c (main): Also test on zeroes.
34422         * tests/test-isnanf.c (main): Likewise.
34423         * tests/test-isnanl.h (main): Likewise.
34424
34425         Detect pseudo-denormals on x86 even when cross-compiling.
34426         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
34427         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
34428         invalid bit patterns that happen to satisfy ==.
34429
34430         Avoid link failures with separate libtests.a.
34431         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
34432         last, to satisfy circular dependencies.
34433
34434 2007-12-11  Eric Blake  <ebb9@byu.net>
34435         and Bruno Haible  <bruno@clisp.org>
34436
34437         Fix OpenBSD 4.0 <float.h> handling of long double.
34438         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
34439         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
34440         * doc/headers/float.texi (float.h): Document OpenBSD bug.
34441
34442 2007-12-11  Jim Meyering  <meyering@redhat.com>
34443
34444         * users.txt: Add libvirt.
34445
34446         Support versions of autoconf prior to 2.59c.
34447         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
34448         if it is not already defined.
34449
34450 2007-12-09  Bruno Haible  <bruno@clisp.org>
34451
34452         Let 'gnulib-tool --import' collect sources needed for the tests in
34453         tests/ rather than in lib/.
34454         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
34455         argument. If true, add rules to generate libtests.a, and put libtests.a
34456         into $(LDADD). Consider source files in subdirectories and set
34457         uses_subdirs.
34458         (func_emit_initmacro_start, func_emit_initmacro_end,
34459         func_emit_initmacro_done): Pass all arguments explicitly.
34460         (func_import): Determine two module lists main_modules,
34461         testsrelated_modules. Determine use_libtests. Determine two variables
34462         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
34463         instead of just sed_transform_lib_file. Determine two variables
34464         main_files and testsrelated_files. Compute 'files' as the union of
34465         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
34466         func_add_or_update. In the generated gnulib-comp.m4, collect the
34467         object files for tests/ in different variables than those for lib/.
34468         Substitute LIBTESTS_LIBDEPS.
34469         (func_create_testdir): Combine the uses_subdirs results from
34470         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
34471
34472 2007-12-09  Bruno Haible  <bruno@clisp.org>
34473
34474         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
34475         the build-aux directory.
34476
34477 2007-12-09  Bruno Haible  <bruno@clisp.org>
34478
34479         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
34480         introduced on 2006-09-09.
34481
34482 2007-12-07  Jim Meyering  <meyering@redhat.com>
34483
34484         Let these macros work also with autoconf-2.59.
34485         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
34486         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
34487         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34488
34489 2007-12-06  Jim Meyering  <meyering@redhat.com>
34490
34491         Avoid a configure-time syntax error in gl_FUNC_ACL.
34492         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
34493         function in each branch, before testing the cache variable.
34494
34495 2007-12-04  Eric Blake  <ebb9@byu.net>
34496
34497         Make scripts executable.
34498         * build-aux/config.guess: Add execute permissions.
34499         * build-aux/config.sub: Likewise.
34500         * build-aux/gendocs.sh: Likewise.
34501
34502         Fix frexp on mingw.
34503         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
34504         cross-compiling.
34505         * doc/functions/frexp.texi (frexp): Document the bug.
34506
34507         Make cygwin fseeko check more reliable.
34508         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
34509         version numbers, rather than unrelated feature check.
34510         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
34511         * doc/functions/ftello.texi (ftello): Likewise.
34512         Reported by Bruno Haible.
34513
34514         * m4/strerror.m4: Bump version number.
34515
34516 2007-12-03  Bruno Haible  <bruno@clisp.org>
34517
34518         * doc/functions/mprotect.texi: Mention the mingw problem.
34519
34520 2007-12-03  Eric Blake  <ebb9@byu.net>
34521
34522         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
34523         REPLACE_STRERROR is initialized before this macro.
34524
34525 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34526
34527         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
34528         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
34529         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
34530         put -lsec in even for programs other than 'ls'.  This fixes a problem
34531         for gettext reported by Bruno Haible in
34532         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
34533         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
34534         Add support for Solaris 10.  This isn't efficient, but should get the
34535         job done for now.
34536
34537 2007-12-03  James Youngman  <jay@gnu.org>
34538
34539         * doc/regexprops-generic.texi: change "an close-group" to "a
34540         close-group" and "illegal" to "not allowed".
34541
34542 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34543
34544         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
34545         pr_byname.h. Needed for the rare case when the maintainer has done
34546         "make maintainer-clean" in the source directory and then attempts a
34547         build outside the source directory.
34548         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
34549         scripts_byname.h.
34550
34551 2007-12-02  Martin Lambers <marlam@marlam.de>
34552             Bruno Haible  <bruno@clisp.org>
34553
34554         * lib/getpagesize.h: Remove file.
34555         * lib/unistd.in.h: Include declaration of getpagesize here.
34556         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
34557         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
34558         HAVE_SYS_PARAM_H.
34559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
34560         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34561         * modules/getpagesize (Files): Remove lib/getpagesize.h.
34562         (Depends-on): Add unistd.
34563         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34564         (Include): Use <unistd.h> instead of getpagesize.h.
34565         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
34566         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34567         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
34568         gl_GETPAGESIZE invocation, already handled by module dependency.
34569         * lib/pagealign_alloc.c: Don't include getpagesize.h.
34570
34571 2007-12-02  Bruno Haible  <bruno@clisp.org>
34572
34573         * modules/strings-tests: New file.
34574         * tests/test-strings.c: New file.
34575
34576         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
34577         * lib/strings.in.h: New file.
34578         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
34579         * m4/strings_h.m4: New file.
34580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
34581         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
34582         * modules/strings: New file.
34583         * modules/string (Makefile.am): Update.
34584         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
34585         Reported by Karl Berry.
34586
34587 2007-12-01  Eric Blake  <ebb9@byu.net>
34588
34589         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
34590         accomodate fix in cygwin 1.5.25.
34591
34592 2007-12-01  Jim Meyering  <meyering@redhat.com>
34593
34594         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
34595         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
34596         that would inhibit utf8-optimization of a regexp containing line-
34597         or buffer-anchors, e.g., `^', `$'.
34598
34599 2007-11-30  Bruno Haible  <bruno@clisp.org>
34600
34601         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
34602         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
34603         glthread_recursive_lock_init.
34604         * lib/lock.c (glthread_recursive_lock_init)
34605         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
34606         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34607
34608 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34609
34610         New function qset_acl, like set_acl but with syscall semantics.
34611         * lib/acl.h (qset_acl): New decl.
34612         * lib/acl.c (qset_acl): New function.
34613         (set_acl): Use new function.  Use more-consistent diagnostics.
34614
34615 2007-11-28  Jim Meyering  <meyering@redhat.com>
34616
34617         * modules/physmem (License): Change from GPL to LGPLv2+.
34618
34619 2007-11-26  Bruno Haible  <bruno@clisp.org>
34620
34621         * lib/vasnprintf.c (decode_long_double): Don't abort if the
34622         'long double' type has excess precision.
34623         Reported by Jim Meyering in
34624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
34625
34626 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34627
34628         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
34629         Sync from <http://gnu.org/licenses>.
34630         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
34631         with license text from same location.
34632         * doc/maintain.texi, doc/standards.texi:  Sync from
34633         <http://savannah.gnu.org/projects/gnustandards>.
34634
34635 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
34636         and Jim Meyering  <meyering@redhat.com>
34637
34638         Adjust getdate' grammar to accept a slightly more regular language.
34639         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
34640         Before, the former was rejected.
34641         * lib/getdate.y (digits_to_date_time): New function, factored
34642         out of ...
34643         (number): ...here.  Just call digits_to_date_time.
34644         (hybrid): New non-terminal to handle an <unsigned number,
34645         signed relative offset> sequence consistently.
34646
34647 2007-11-18  Jim Meyering  <meyering@redhat.com>
34648
34649         Pull my changes from coreutils:
34650         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
34651         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
34652         use of $gnulib_tool_option_extras, so that it's separated from the
34653         preceding argument.
34654
34655         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
34656         * build-aux/bootstrap (cp_mark_as_generated): Create any required
34657         parent destination directories before copying a file into place.
34658
34659 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
34660
34661         bootstrap: work also with 4-argument variant of AC_INIT
34662         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
34663
34664 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34665
34666         Port test-getaddrinfo to Solaris.
34667         Problem reported by Bruno Haible in
34668         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
34669         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
34670         explanation of setting 'hints'.
34671         Don't reject an implementation merely because it returns EAI_SERVICE.
34672         (EAI_SERVICE): Define to 0 if not defined.
34673
34674 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34675
34676         The license of gnu-make and posix-shell is now "GPLed build tool".
34677         * modules/gnu-make (License): Likewise.
34678         * modules/posix-shell (License): Likewise.
34679
34680         New module posix-shell, for determining a POSIX shell
34681         or perhaps something that is close enough to a POSIX shell.
34682         * m4/posix-shell.m4: New file.
34683         * modules/posix-shell: New file.
34684
34685         * MODULES.html.sh: Mention new module.
34686
34687         New module gnu-make, for determining whether we're using GNU Make.
34688         * m4/gnu-make.m4: New file.
34689         * modules/gnu-make: New file.
34690         * MODULES.html.sh: Mention new module.
34691
34692 2007-11-14  Jim Meyering  <meyering@redhat.com>
34693
34694         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
34695         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
34696         use this macro to create a function _definition_.
34697         Remove useless "#undef ARGMATCH_DIE".
34698
34699 2007-11-14  Bruno Haible  <bruno@clisp.org>
34700
34701         * lib/config.charset: Update for OpenBSD 4.1.
34702         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
34703
34704 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
34705
34706         Document 64-bit #if problems in stdint.texi.
34707         * doc/headers/stdint.texi (stdint.h): Mention problems with
34708         64-bit-#if, and how to work around them.
34709
34710         Don't insist on 'long long int' support in the preprocessor.  It
34711         breaks too many things.  For example, PRIdMAX still uses a 'long
34712         long int' format with the latest Sun compiler, even though
34713         HAVE_LONG_LONG_INT isn't defined due to that compiler's
34714         preprocessor problem.  This causes the latest coreutils to dump
34715         core on Solaris 10 sparc with the Sun C compiler.
34716         Instead, fix the 2007-10-16 problem in a different way, by evaluating
34717         the troublesome expressions at configure-time, not at #if-time.
34718         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
34719         preprocessor.
34720         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
34721         compile-time C checks, done at 'configure'-time.
34722         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
34723         * modules/inttypes (Makefile): Substitute the new symbols that
34724         gl_INTTYPES_H now generates.
34725         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
34726
34727 2007-11-12  Bruno Haible  <bruno@clisp.org>
34728
34729         Tests for Unicode character classification functions.
34730
34731         * modules/unictype/bidicategory-byname-tests: New file.
34732         * modules/unictype/bidicategory-name-tests: New file.
34733         * modules/unictype/bidicategory-of-tests: New file.
34734         * modules/unictype/bidicategory-test-tests: New file.
34735         * modules/unictype/block-list-tests: New file.
34736         * modules/unictype/block-of-tests: New file.
34737         * modules/unictype/block-test-tests: New file.
34738         * modules/unictype/category-C-tests: New file.
34739         * modules/unictype/category-Cc-tests: New file.
34740         * modules/unictype/category-Cf-tests: New file.
34741         * modules/unictype/category-Cn-tests: New file.
34742         * modules/unictype/category-Co-tests: New file.
34743         * modules/unictype/category-Cs-tests: New file.
34744         * modules/unictype/category-L-tests: New file.
34745         * modules/unictype/category-Ll-tests: New file.
34746         * modules/unictype/category-Lm-tests: New file.
34747         * modules/unictype/category-Lo-tests: New file.
34748         * modules/unictype/category-Lt-tests: New file.
34749         * modules/unictype/category-Lu-tests: New file.
34750         * modules/unictype/category-M-tests: New file.
34751         * modules/unictype/category-Mc-tests: New file.
34752         * modules/unictype/category-Me-tests: New file.
34753         * modules/unictype/category-Mn-tests: New file.
34754         * modules/unictype/category-N-tests: New file.
34755         * modules/unictype/category-Nd-tests: New file.
34756         * modules/unictype/category-Nl-tests: New file.
34757         * modules/unictype/category-No-tests: New file.
34758         * modules/unictype/category-P-tests: New file.
34759         * modules/unictype/category-Pc-tests: New file.
34760         * modules/unictype/category-Pd-tests: New file.
34761         * modules/unictype/category-Pe-tests: New file.
34762         * modules/unictype/category-Pf-tests: New file.
34763         * modules/unictype/category-Pi-tests: New file.
34764         * modules/unictype/category-Po-tests: New file.
34765         * modules/unictype/category-Ps-tests: New file.
34766         * modules/unictype/category-S-tests: New file.
34767         * modules/unictype/category-Sc-tests: New file.
34768         * modules/unictype/category-Sk-tests: New file.
34769         * modules/unictype/category-Sm-tests: New file.
34770         * modules/unictype/category-So-tests: New file.
34771         * modules/unictype/category-Z-tests: New file.
34772         * modules/unictype/category-Zl-tests: New file.
34773         * modules/unictype/category-Zp-tests: New file.
34774         * modules/unictype/category-Zs-tests: New file.
34775         * modules/unictype/category-and-not-tests: New file.
34776         * modules/unictype/category-and-tests: New file.
34777         * modules/unictype/category-byname-tests: New file.
34778         * modules/unictype/category-name-tests: New file.
34779         * modules/unictype/category-none-tests: New file.
34780         * modules/unictype/category-of-tests: New file.
34781         * modules/unictype/category-or-tests: New file.
34782         * modules/unictype/category-test-withtable-tests: New file.
34783         * modules/unictype/combining-class-tests: New file.
34784         * modules/unictype/ctype-alnum-tests: New file.
34785         * modules/unictype/ctype-alpha-tests: New file.
34786         * modules/unictype/ctype-blank-tests: New file.
34787         * modules/unictype/ctype-cntrl-tests: New file.
34788         * modules/unictype/ctype-digit-tests: New file.
34789         * modules/unictype/ctype-graph-tests: New file.
34790         * modules/unictype/ctype-lower-tests: New file.
34791         * modules/unictype/ctype-print-tests: New file.
34792         * modules/unictype/ctype-punct-tests: New file.
34793         * modules/unictype/ctype-space-tests: New file.
34794         * modules/unictype/ctype-upper-tests: New file.
34795         * modules/unictype/ctype-xdigit-tests: New file.
34796         * modules/unictype/decimal-digit-tests: New file.
34797         * modules/unictype/digit-tests: New file.
34798         * modules/unictype/mirror-tests: New file.
34799         * modules/unictype/numeric-tests: New file.
34800         * modules/unictype/property-alphabetic-tests: New file.
34801         * modules/unictype/property-ascii-hex-digit-tests: New file.
34802         * modules/unictype/property-bidi-arabic-digit-tests: New file.
34803         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
34804         * modules/unictype/property-bidi-block-separator-tests: New file.
34805         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
34806         * modules/unictype/property-bidi-common-separator-tests: New file.
34807         * modules/unictype/property-bidi-control-tests: New file.
34808         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
34809         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
34810         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
34811         * modules/unictype/property-bidi-european-digit-tests: New file.
34812         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
34813         * modules/unictype/property-bidi-left-to-right-tests: New file.
34814         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
34815         * modules/unictype/property-bidi-other-neutral-tests: New file.
34816         * modules/unictype/property-bidi-pdf-tests: New file.
34817         * modules/unictype/property-bidi-segment-separator-tests: New file.
34818         * modules/unictype/property-bidi-whitespace-tests: New file.
34819         * modules/unictype/property-byname-tests: New file.
34820         * modules/unictype/property-combining-tests: New file.
34821         * modules/unictype/property-composite-tests: New file.
34822         * modules/unictype/property-currency-symbol-tests: New file.
34823         * modules/unictype/property-dash-tests: New file.
34824         * modules/unictype/property-decimal-digit-tests: New file.
34825         * modules/unictype/property-default-ignorable-code-point-tests: New file.
34826         * modules/unictype/property-deprecated-tests: New file.
34827         * modules/unictype/property-diacritic-tests: New file.
34828         * modules/unictype/property-extender-tests: New file.
34829         * modules/unictype/property-format-control-tests: New file.
34830         * modules/unictype/property-grapheme-base-tests: New file.
34831         * modules/unictype/property-grapheme-extend-tests: New file.
34832         * modules/unictype/property-grapheme-link-tests: New file.
34833         * modules/unictype/property-hex-digit-tests: New file.
34834         * modules/unictype/property-hyphen-tests: New file.
34835         * modules/unictype/property-id-continue-tests: New file.
34836         * modules/unictype/property-id-start-tests: New file.
34837         * modules/unictype/property-ideographic-tests: New file.
34838         * modules/unictype/property-ids-binary-operator-tests: New file.
34839         * modules/unictype/property-ids-trinary-operator-tests: New file.
34840         * modules/unictype/property-ignorable-control-tests: New file.
34841         * modules/unictype/property-iso-control-tests: New file.
34842         * modules/unictype/property-join-control-tests: New file.
34843         * modules/unictype/property-left-of-pair-tests: New file.
34844         * modules/unictype/property-line-separator-tests: New file.
34845         * modules/unictype/property-logical-order-exception-tests: New file.
34846         * modules/unictype/property-lowercase-tests: New file.
34847         * modules/unictype/property-math-tests: New file.
34848         * modules/unictype/property-non-break-tests: New file.
34849         * modules/unictype/property-not-a-character-tests: New file.
34850         * modules/unictype/property-numeric-tests: New file.
34851         * modules/unictype/property-other-alphabetic-tests: New file.
34852         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
34853         * modules/unictype/property-other-grapheme-extend-tests: New file.
34854         * modules/unictype/property-other-id-continue-tests: New file.
34855         * modules/unictype/property-other-id-start-tests: New file.
34856         * modules/unictype/property-other-lowercase-tests: New file.
34857         * modules/unictype/property-other-math-tests: New file.
34858         * modules/unictype/property-other-uppercase-tests: New file.
34859         * modules/unictype/property-paired-punctuation-tests: New file.
34860         * modules/unictype/property-paragraph-separator-tests: New file.
34861         * modules/unictype/property-pattern-syntax-tests: New file.
34862         * modules/unictype/property-pattern-white-space-tests: New file.
34863         * modules/unictype/property-private-use-tests: New file.
34864         * modules/unictype/property-punctuation-tests: New file.
34865         * modules/unictype/property-quotation-mark-tests: New file.
34866         * modules/unictype/property-radical-tests: New file.
34867         * modules/unictype/property-sentence-terminal-tests: New file.
34868         * modules/unictype/property-soft-dotted-tests: New file.
34869         * modules/unictype/property-space-tests: New file.
34870         * modules/unictype/property-terminal-punctuation-tests: New file.
34871         * modules/unictype/property-test-tests: New file.
34872         * modules/unictype/property-titlecase-tests: New file.
34873         * modules/unictype/property-unassigned-code-value-tests: New file.
34874         * modules/unictype/property-unified-ideograph-tests: New file.
34875         * modules/unictype/property-uppercase-tests: New file.
34876         * modules/unictype/property-variation-selector-tests: New file.
34877         * modules/unictype/property-white-space-tests: New file.
34878         * modules/unictype/property-xid-continue-tests: New file.
34879         * modules/unictype/property-xid-start-tests: New file.
34880         * modules/unictype/property-zero-width-tests: New file.
34881         * modules/unictype/scripts-tests: New file.
34882         * modules/unictype/syntax-c-ident-tests: New file.
34883         * modules/unictype/syntax-c-whitespace-tests: New file.
34884         * modules/unictype/syntax-java-ident-tests: New file.
34885         * modules/unictype/syntax-java-whitespace-tests: New file.
34886         * tests/unictype/test-bidi_byname.c: New file.
34887         * tests/unictype/test-bidi_name.c: New file.
34888         * tests/unictype/test-bidi_of.c: New file.
34889         * tests/unictype/test-bidi_test.c: New file.
34890         * tests/unictype/test-block_list.c: New file.
34891         * tests/unictype/test-block_of.c: New file.
34892         * tests/unictype/test-block_test.c: New file.
34893         * tests/unictype/test-categ_and.c: New file.
34894         * tests/unictype/test-categ_and_not.c: New file.
34895         * tests/unictype/test-categ_byname.c: New file.
34896         * tests/unictype/test-categ_name.c: New file.
34897         * tests/unictype/test-categ_none.c: New file.
34898         * tests/unictype/test-categ_of.c: New file.
34899         * tests/unictype/test-categ_or.c: New file.
34900         * tests/unictype/test-categ_test_withtable.c: New file.
34901         * tests/unictype/test-combining.c: New file.
34902         * tests/unictype/test-decdigit.c: New file.
34903         * tests/unictype/test-digit.c: New file.
34904         * tests/unictype/test-mirror.c: New file.
34905         * tests/unictype/test-numeric.c: New file.
34906         * tests/unictype/test-pr_byname.c: New file.
34907         * tests/unictype/test-pr_test.c: New file.
34908         * tests/unictype/test-predicate-part1.h: New file.
34909         * tests/unictype/test-predicate-part2.h: New file.
34910         * tests/unictype/test-scripts.c: New file.
34911         * tests/unictype/test-sy_c_ident.c: New file.
34912         * tests/unictype/test-sy_java_ident.c: New file.
34913
34914         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
34915         for Unicode 5.0.0.
34916         * tests/unictype/test-categ_Cc.c: Likewise.
34917         * tests/unictype/test-categ_Cf.c: Likewise.
34918         * tests/unictype/test-categ_Cn.c: Likewise.
34919         * tests/unictype/test-categ_Co.c: Likewise.
34920         * tests/unictype/test-categ_Cs.c: Likewise.
34921         * tests/unictype/test-categ_L.c: Likewise.
34922         * tests/unictype/test-categ_Ll.c: Likewise.
34923         * tests/unictype/test-categ_Lm.c: Likewise.
34924         * tests/unictype/test-categ_Lo.c: Likewise.
34925         * tests/unictype/test-categ_Lt.c: Likewise.
34926         * tests/unictype/test-categ_Lu.c: Likewise.
34927         * tests/unictype/test-categ_M.c: Likewise.
34928         * tests/unictype/test-categ_Mc.c: Likewise.
34929         * tests/unictype/test-categ_Me.c: Likewise.
34930         * tests/unictype/test-categ_Mn.c: Likewise.
34931         * tests/unictype/test-categ_N.c: Likewise.
34932         * tests/unictype/test-categ_Nd.c: Likewise.
34933         * tests/unictype/test-categ_Nl.c: Likewise.
34934         * tests/unictype/test-categ_No.c: Likewise.
34935         * tests/unictype/test-categ_P.c: Likewise.
34936         * tests/unictype/test-categ_Pc.c: Likewise.
34937         * tests/unictype/test-categ_Pd.c: Likewise.
34938         * tests/unictype/test-categ_Pe.c: Likewise.
34939         * tests/unictype/test-categ_Pf.c: Likewise.
34940         * tests/unictype/test-categ_Pi.c: Likewise.
34941         * tests/unictype/test-categ_Po.c: Likewise.
34942         * tests/unictype/test-categ_Ps.c: Likewise.
34943         * tests/unictype/test-categ_S.c: Likewise.
34944         * tests/unictype/test-categ_Sc.c: Likewise.
34945         * tests/unictype/test-categ_Sk.c: Likewise.
34946         * tests/unictype/test-categ_Sm.c: Likewise.
34947         * tests/unictype/test-categ_So.c: Likewise.
34948         * tests/unictype/test-categ_Z.c: Likewise.
34949         * tests/unictype/test-categ_Zl.c: Likewise.
34950         * tests/unictype/test-categ_Zp.c: Likewise.
34951         * tests/unictype/test-categ_Zs.c: Likewise.
34952         * tests/unictype/test-ctype_alnum.c: Likewise.
34953         * tests/unictype/test-ctype_alpha.c: Likewise.
34954         * tests/unictype/test-ctype_blank.c: Likewise.
34955         * tests/unictype/test-ctype_cntrl.c: Likewise.
34956         * tests/unictype/test-ctype_digit.c: Likewise.
34957         * tests/unictype/test-ctype_graph.c: Likewise.
34958         * tests/unictype/test-ctype_lower.c: Likewise.
34959         * tests/unictype/test-ctype_print.c: Likewise.
34960         * tests/unictype/test-ctype_punct.c: Likewise.
34961         * tests/unictype/test-ctype_space.c: Likewise.
34962         * tests/unictype/test-ctype_upper.c: Likewise.
34963         * tests/unictype/test-ctype_xdigit.c: Likewise.
34964         * tests/unictype/test-decdigit.h: Likewise.
34965         * tests/unictype/test-digit.h: Likewise.
34966         * tests/unictype/test-numeric.h: Likewise.
34967         * tests/unictype/test-pr_alphabetic.c: Likewise.
34968         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
34969         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
34970         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
34971         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
34972         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
34973         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
34974         * tests/unictype/test-pr_bidi_control.c: Likewise.
34975         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
34976         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
34977         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
34978         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
34979         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
34980         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
34981         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
34982         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
34983         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
34984         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
34985         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
34986         * tests/unictype/test-pr_combining.c: Likewise.
34987         * tests/unictype/test-pr_composite.c: Likewise.
34988         * tests/unictype/test-pr_currency_symbol.c: Likewise.
34989         * tests/unictype/test-pr_dash.c: Likewise.
34990         * tests/unictype/test-pr_decimal_digit.c: Likewise.
34991         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
34992         * tests/unictype/test-pr_deprecated.c: Likewise.
34993         * tests/unictype/test-pr_diacritic.c: Likewise.
34994         * tests/unictype/test-pr_extender.c: Likewise.
34995         * tests/unictype/test-pr_format_control.c: Likewise.
34996         * tests/unictype/test-pr_grapheme_base.c: Likewise.
34997         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
34998         * tests/unictype/test-pr_grapheme_link.c: Likewise.
34999         * tests/unictype/test-pr_hex_digit.c: Likewise.
35000         * tests/unictype/test-pr_hyphen.c: Likewise.
35001         * tests/unictype/test-pr_id_continue.c: Likewise.
35002         * tests/unictype/test-pr_id_start.c: Likewise.
35003         * tests/unictype/test-pr_ideographic.c: Likewise.
35004         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35005         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35006         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35007         * tests/unictype/test-pr_iso_control.c: Likewise.
35008         * tests/unictype/test-pr_join_control.c: Likewise.
35009         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35010         * tests/unictype/test-pr_line_separator.c: Likewise.
35011         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35012         * tests/unictype/test-pr_lowercase.c: Likewise.
35013         * tests/unictype/test-pr_math.c: Likewise.
35014         * tests/unictype/test-pr_non_break.c: Likewise.
35015         * tests/unictype/test-pr_not_a_character.c: Likewise.
35016         * tests/unictype/test-pr_numeric.c: Likewise.
35017         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35018         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35019         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35020         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35021         * tests/unictype/test-pr_other_id_start.c: Likewise.
35022         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35023         * tests/unictype/test-pr_other_math.c: Likewise.
35024         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35025         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35026         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35027         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35028         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35029         * tests/unictype/test-pr_private_use.c: Likewise.
35030         * tests/unictype/test-pr_punctuation.c: Likewise.
35031         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35032         * tests/unictype/test-pr_radical.c: Likewise.
35033         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35034         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35035         * tests/unictype/test-pr_space.c: Likewise.
35036         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35037         * tests/unictype/test-pr_titlecase.c: Likewise.
35038         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35039         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35040         * tests/unictype/test-pr_uppercase.c: Likewise.
35041         * tests/unictype/test-pr_variation_selector.c: Likewise.
35042         * tests/unictype/test-pr_white_space.c: Likewise.
35043         * tests/unictype/test-pr_xid_continue.c: Likewise.
35044         * tests/unictype/test-pr_xid_start.c: Likewise.
35045         * tests/unictype/test-pr_zero_width.c: Likewise.
35046         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35047         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35048
35049 2007-11-12  Bruno Haible  <bruno@clisp.org>
35050
35051         Unicode character classification functions.
35052         * lib/unictype.h: New file.
35053         * modules/unictype/base: New file.
35054         * modules/unictype/category-L: New file.
35055         * modules/unictype/category-Lu: New file.
35056         * modules/unictype/category-Ll: New file.
35057         * modules/unictype/category-Lt: New file.
35058         * modules/unictype/category-Lm: New file.
35059         * modules/unictype/category-Lo: New file.
35060         * modules/unictype/category-M: New file.
35061         * modules/unictype/category-Mn: New file.
35062         * modules/unictype/category-Mc: New file.
35063         * modules/unictype/category-Me: New file.
35064         * modules/unictype/category-N: New file.
35065         * modules/unictype/category-Nd: New file.
35066         * modules/unictype/category-Nl: New file.
35067         * modules/unictype/category-No: New file.
35068         * modules/unictype/category-P: New file.
35069         * modules/unictype/category-Pc: New file.
35070         * modules/unictype/category-Pd: New file.
35071         * modules/unictype/category-Ps: New file.
35072         * modules/unictype/category-Pe: New file.
35073         * modules/unictype/category-Pi: New file.
35074         * modules/unictype/category-Pf: New file.
35075         * modules/unictype/category-Po: New file.
35076         * modules/unictype/category-S: New file.
35077         * modules/unictype/category-Sm: New file.
35078         * modules/unictype/category-Sc: New file.
35079         * modules/unictype/category-Sk: New file.
35080         * modules/unictype/category-So: New file.
35081         * modules/unictype/category-Z: New file.
35082         * modules/unictype/category-Zs: New file.
35083         * modules/unictype/category-Zl: New file.
35084         * modules/unictype/category-Zp: New file.
35085         * modules/unictype/category-C: New file.
35086         * modules/unictype/category-Cc: New file.
35087         * modules/unictype/category-Cf: New file.
35088         * modules/unictype/category-Cs: New file.
35089         * modules/unictype/category-Co: New file.
35090         * modules/unictype/category-Cn: New file.
35091         * modules/unictype/category-or: New file.
35092         * modules/unictype/category-of: New file.
35093         * modules/unictype/category-test: New file.
35094         * modules/unictype/category-test-withtable: New file.
35095         * modules/unictype/category-byname: New file.
35096         * modules/unictype/category-none: New file.
35097         * modules/unictype/category-and: New file.
35098         * modules/unictype/category-and-not: New file.
35099         * modules/unictype/category-name: New file.
35100         * modules/unictype/combining-class: New file.
35101         * modules/unictype/category-all: New file.
35102         * modules/unictype/bidicategory-all: New file.
35103         * modules/unictype/bidicategory-byname: New file.
35104         * modules/unictype/bidicategory-name: New file.
35105         * modules/unictype/bidicategory-of: New file.
35106         * modules/unictype/bidicategory-test: New file.
35107         * modules/unictype/decimal-digit: New file.
35108         * modules/unictype/digit: New file.
35109         * modules/unictype/numeric: New file.
35110         * modules/unictype/mirror: New file.
35111         * modules/unictype/property-white-space: New file.
35112         * modules/unictype/property-alphabetic: New file.
35113         * modules/unictype/property-other-alphabetic: New file.
35114         * modules/unictype/property-not-a-character: New file.
35115         * modules/unictype/property-default-ignorable-code-point: New file.
35116         * modules/unictype/property-other-default-ignorable-code-point: New
35117         file.
35118         * modules/unictype/property-deprecated: New file.
35119         * modules/unictype/property-logical-order-exception: New file.
35120         * modules/unictype/property-variation-selector: New file.
35121         * modules/unictype/property-private-use: New file.
35122         * modules/unictype/property-unassigned-code-value: New file.
35123         * modules/unictype/property-uppercase: New file.
35124         * modules/unictype/property-other-uppercase: New file.
35125         * modules/unictype/property-lowercase: New file.
35126         * modules/unictype/property-other-lowercase: New file.
35127         * modules/unictype/property-titlecase: New file.
35128         * modules/unictype/property-soft-dotted: New file.
35129         * modules/unictype/property-id-start: New file.
35130         * modules/unictype/property-other-id-start: New file.
35131         * modules/unictype/property-id-continue: New file.
35132         * modules/unictype/property-other-id-continue: New file.
35133         * modules/unictype/property-xid-start: New file.
35134         * modules/unictype/property-xid-continue: New file.
35135         * modules/unictype/property-pattern-white-space: New file.
35136         * modules/unictype/property-pattern-syntax: New file.
35137         * modules/unictype/property-join-control: New file.
35138         * modules/unictype/property-grapheme-base: New file.
35139         * modules/unictype/property-grapheme-extend: New file.
35140         * modules/unictype/property-other-grapheme-extend: New file.
35141         * modules/unictype/property-grapheme-link: New file.
35142         * modules/unictype/property-bidi-control: New file.
35143         * modules/unictype/property-bidi-left-to-right: New file.
35144         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35145         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35146         * modules/unictype/property-bidi-european-digit: New file.
35147         * modules/unictype/property-bidi-eur-num-separator: New file.
35148         * modules/unictype/property-bidi-eur-num-terminator: New file.
35149         * modules/unictype/property-bidi-arabic-digit: New file.
35150         * modules/unictype/property-bidi-common-separator: New file.
35151         * modules/unictype/property-bidi-block-separator: New file.
35152         * modules/unictype/property-bidi-segment-separator: New file.
35153         * modules/unictype/property-bidi-whitespace: New file.
35154         * modules/unictype/property-bidi-non-spacing-mark: New file.
35155         * modules/unictype/property-bidi-boundary-neutral: New file.
35156         * modules/unictype/property-bidi-pdf: New file.
35157         * modules/unictype/property-bidi-embedding-or-override: New file.
35158         * modules/unictype/property-bidi-other-neutral: New file.
35159         * modules/unictype/property-hex-digit: New file.
35160         * modules/unictype/property-ascii-hex-digit: New file.
35161         * modules/unictype/property-ideographic: New file.
35162         * modules/unictype/property-unified-ideograph: New file.
35163         * modules/unictype/property-radical: New file.
35164         * modules/unictype/property-ids-binary-operator: New file.
35165         * modules/unictype/property-ids-trinary-operator: New file.
35166         * modules/unictype/property-zero-width: New file.
35167         * modules/unictype/property-space: New file.
35168         * modules/unictype/property-non-break: New file.
35169         * modules/unictype/property-iso-control: New file.
35170         * modules/unictype/property-format-control: New file.
35171         * modules/unictype/property-dash: New file.
35172         * modules/unictype/property-hyphen: New file.
35173         * modules/unictype/property-punctuation: New file.
35174         * modules/unictype/property-line-separator: New file.
35175         * modules/unictype/property-paragraph-separator: New file.
35176         * modules/unictype/property-quotation-mark: New file.
35177         * modules/unictype/property-sentence-terminal: New file.
35178         * modules/unictype/property-terminal-punctuation: New file.
35179         * modules/unictype/property-currency-symbol: New file.
35180         * modules/unictype/property-math: New file.
35181         * modules/unictype/property-other-math: New file.
35182         * modules/unictype/property-paired-punctuation: New file.
35183         * modules/unictype/property-left-of-pair: New file.
35184         * modules/unictype/property-combining: New file.
35185         * modules/unictype/property-composite: New file.
35186         * modules/unictype/property-decimal-digit: New file.
35187         * modules/unictype/property-numeric: New file.
35188         * modules/unictype/property-diacritic: New file.
35189         * modules/unictype/property-extender: New file.
35190         * modules/unictype/property-ignorable-control: New file.
35191         * modules/unictype/property-test: New file.
35192         * modules/unictype/property-byname: New file.
35193         * modules/unictype/property-all: New file.
35194         * modules/unictype/scripts: New file.
35195         * modules/unictype/scripts-all: New file.
35196         * modules/unictype/block-of: New file.
35197         * modules/unictype/block-test: New file.
35198         * modules/unictype/block-list: New file.
35199         * modules/unictype/block-all: New file.
35200         * modules/unictype/syntax-c-whitespace: New file.
35201         * modules/unictype/syntax-java-whitespace: New file.
35202         * modules/unictype/syntax-c-ident: New file.
35203         * modules/unictype/syntax-java-ident: New file.
35204         * modules/unictype/ctype-alnum: New file.
35205         * modules/unictype/ctype-alpha: New file.
35206         * modules/unictype/ctype-cntrl: New file.
35207         * modules/unictype/ctype-digit: New file.
35208         * modules/unictype/ctype-graph: New file.
35209         * modules/unictype/ctype-lower: New file.
35210         * modules/unictype/ctype-print: New file.
35211         * modules/unictype/ctype-punct: New file.
35212         * modules/unictype/ctype-space: New file.
35213         * modules/unictype/ctype-upper: New file.
35214         * modules/unictype/ctype-xdigit: New file.
35215         * modules/unictype/ctype-blank: New file.
35216         * lib/unictype/bidi_byname.c: New file.
35217         * lib/unictype/bidi_name.c: New file.
35218         * lib/unictype/bidi_of.c: New file.
35219         * lib/unictype/bidi_test.c: New file.
35220         * lib/unictype/bitmap.h: New file.
35221         * lib/unictype/block_test.c: New file.
35222         * lib/unictype/blocks.c: New file.
35223         * lib/unictype/categ_C.c: New file.
35224         * lib/unictype/categ_Cc.c: New file.
35225         * lib/unictype/categ_Cf.c: New file.
35226         * lib/unictype/categ_Cn.c: New file.
35227         * lib/unictype/categ_Co.c: New file.
35228         * lib/unictype/categ_Cs.c: New file.
35229         * lib/unictype/categ_L.c: New file.
35230         * lib/unictype/categ_Ll.c: New file.
35231         * lib/unictype/categ_Lm.c: New file.
35232         * lib/unictype/categ_Lo.c: New file.
35233         * lib/unictype/categ_Lt.c: New file.
35234         * lib/unictype/categ_Lu.c: New file.
35235         * lib/unictype/categ_M.c: New file.
35236         * lib/unictype/categ_Mc.c: New file.
35237         * lib/unictype/categ_Me.c: New file.
35238         * lib/unictype/categ_Mn.c: New file.
35239         * lib/unictype/categ_N.c: New file.
35240         * lib/unictype/categ_Nd.c: New file.
35241         * lib/unictype/categ_Nl.c: New file.
35242         * lib/unictype/categ_No.c: New file.
35243         * lib/unictype/categ_P.c: New file.
35244         * lib/unictype/categ_Pc.c: New file.
35245         * lib/unictype/categ_Pd.c: New file.
35246         * lib/unictype/categ_Pe.c: New file.
35247         * lib/unictype/categ_Pf.c: New file.
35248         * lib/unictype/categ_Pi.c: New file.
35249         * lib/unictype/categ_Po.c: New file.
35250         * lib/unictype/categ_Ps.c: New file.
35251         * lib/unictype/categ_S.c: New file.
35252         * lib/unictype/categ_Sc.c: New file.
35253         * lib/unictype/categ_Sk.c: New file.
35254         * lib/unictype/categ_Sm.c: New file.
35255         * lib/unictype/categ_So.c: New file.
35256         * lib/unictype/categ_Z.c: New file.
35257         * lib/unictype/categ_Zl.c: New file.
35258         * lib/unictype/categ_Zp.c: New file.
35259         * lib/unictype/categ_Zs.c: New file.
35260         * lib/unictype/categ_and.c: New file.
35261         * lib/unictype/categ_and_not.c: New file.
35262         * lib/unictype/categ_byname.c: New file.
35263         * lib/unictype/categ_name.c: New file.
35264         * lib/unictype/categ_none.c: New file.
35265         * lib/unictype/categ_of.c: New file.
35266         * lib/unictype/categ_or.c: New file.
35267         * lib/unictype/categ_test.c: New file.
35268         * lib/unictype/combining.c: New file.
35269         * lib/unictype/ctype_alnum.c: New file.
35270         * lib/unictype/ctype_alpha.c: New file.
35271         * lib/unictype/ctype_blank.c: New file.
35272         * lib/unictype/ctype_cntrl.c: New file.
35273         * lib/unictype/ctype_digit.c: New file.
35274         * lib/unictype/ctype_graph.c: New file.
35275         * lib/unictype/ctype_lower.c: New file.
35276         * lib/unictype/ctype_print.c: New file.
35277         * lib/unictype/ctype_punct.c: New file.
35278         * lib/unictype/ctype_space.c: New file.
35279         * lib/unictype/ctype_upper.c: New file.
35280         * lib/unictype/ctype_xdigit.c: New file.
35281         * lib/unictype/decdigit.c: New file.
35282         * lib/unictype/digit.c: New file.
35283         * lib/unictype/identsyntaxmap.h: New file.
35284         * lib/unictype/mirror.c: New file.
35285         * lib/unictype/numeric.c: New file.
35286         * lib/unictype/pr_alphabetic.c: New file.
35287         * lib/unictype/pr_ascii_hex_digit.c: New file.
35288         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35289         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35290         * lib/unictype/pr_bidi_block_separator.c: New file.
35291         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35292         * lib/unictype/pr_bidi_common_separator.c: New file.
35293         * lib/unictype/pr_bidi_control.c: New file.
35294         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35295         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35296         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35297         * lib/unictype/pr_bidi_european_digit.c: New file.
35298         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35299         * lib/unictype/pr_bidi_left_to_right.c: New file.
35300         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35301         * lib/unictype/pr_bidi_other_neutral.c: New file.
35302         * lib/unictype/pr_bidi_pdf.c: New file.
35303         * lib/unictype/pr_bidi_segment_separator.c: New file.
35304         * lib/unictype/pr_bidi_whitespace.c: New file.
35305         * lib/unictype/pr_byname.c: New file.
35306         * lib/unictype/pr_byname.gperf: New file.
35307         * lib/unictype/pr_combining.c: New file.
35308         * lib/unictype/pr_composite.c: New file.
35309         * lib/unictype/pr_currency_symbol.c: New file.
35310         * lib/unictype/pr_dash.c: New file.
35311         * lib/unictype/pr_decimal_digit.c: New file.
35312         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35313         * lib/unictype/pr_deprecated.c: New file.
35314         * lib/unictype/pr_diacritic.c: New file.
35315         * lib/unictype/pr_extender.c: New file.
35316         * lib/unictype/pr_format_control.c: New file.
35317         * lib/unictype/pr_grapheme_base.c: New file.
35318         * lib/unictype/pr_grapheme_extend.c: New file.
35319         * lib/unictype/pr_grapheme_link.c: New file.
35320         * lib/unictype/pr_hex_digit.c: New file.
35321         * lib/unictype/pr_hyphen.c: New file.
35322         * lib/unictype/pr_id_continue.c: New file.
35323         * lib/unictype/pr_id_start.c: New file.
35324         * lib/unictype/pr_ideographic.c: New file.
35325         * lib/unictype/pr_ids_binary_operator.c: New file.
35326         * lib/unictype/pr_ids_trinary_operator.c: New file.
35327         * lib/unictype/pr_ignorable_control.c: New file.
35328         * lib/unictype/pr_iso_control.c: New file.
35329         * lib/unictype/pr_join_control.c: New file.
35330         * lib/unictype/pr_left_of_pair.c: New file.
35331         * lib/unictype/pr_line_separator.c: New file.
35332         * lib/unictype/pr_logical_order_exception.c: New file.
35333         * lib/unictype/pr_lowercase.c: New file.
35334         * lib/unictype/pr_math.c: New file.
35335         * lib/unictype/pr_non_break.c: New file.
35336         * lib/unictype/pr_not_a_character.c: New file.
35337         * lib/unictype/pr_numeric.c: New file.
35338         * lib/unictype/pr_other_alphabetic.c: New file.
35339         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35340         * lib/unictype/pr_other_grapheme_extend.c: New file.
35341         * lib/unictype/pr_other_id_continue.c: New file.
35342         * lib/unictype/pr_other_id_start.c: New file.
35343         * lib/unictype/pr_other_lowercase.c: New file.
35344         * lib/unictype/pr_other_math.c: New file.
35345         * lib/unictype/pr_other_uppercase.c: New file.
35346         * lib/unictype/pr_paired_punctuation.c: New file.
35347         * lib/unictype/pr_paragraph_separator.c: New file.
35348         * lib/unictype/pr_pattern_syntax.c: New file.
35349         * lib/unictype/pr_pattern_white_space.c: New file.
35350         * lib/unictype/pr_private_use.c: New file.
35351         * lib/unictype/pr_punctuation.c: New file.
35352         * lib/unictype/pr_quotation_mark.c: New file.
35353         * lib/unictype/pr_radical.c: New file.
35354         * lib/unictype/pr_sentence_terminal.c: New file.
35355         * lib/unictype/pr_soft_dotted.c: New file.
35356         * lib/unictype/pr_space.c: New file.
35357         * lib/unictype/pr_terminal_punctuation.c: New file.
35358         * lib/unictype/pr_test.c: New file.
35359         * lib/unictype/pr_titlecase.c: New file.
35360         * lib/unictype/pr_unassigned_code_value.c: New file.
35361         * lib/unictype/pr_unified_ideograph.c: New file.
35362         * lib/unictype/pr_uppercase.c: New file.
35363         * lib/unictype/pr_variation_selector.c: New file.
35364         * lib/unictype/pr_white_space.c: New file.
35365         * lib/unictype/pr_xid_continue.c: New file.
35366         * lib/unictype/pr_xid_start.c: New file.
35367         * lib/unictype/pr_zero_width.c: New file.
35368         * lib/unictype/scripts.c: New file.
35369         * lib/unictype/sy_c_ident.c: New file.
35370         * lib/unictype/sy_c_whitespace.c: New file.
35371         * lib/unictype/sy_java_ident.c: New file.
35372         * lib/unictype/sy_java_whitespace.c: New file.
35373
35374         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35375         Unicode 5.0.0.
35376         * lib/unictype/blocks.h: Likewise.
35377         * lib/unictype/categ_C.h: Likewise.
35378         * lib/unictype/categ_Cc.h: Likewise.
35379         * lib/unictype/categ_Cf.h: Likewise.
35380         * lib/unictype/categ_Cn.h: Likewise.
35381         * lib/unictype/categ_Co.h: Likewise.
35382         * lib/unictype/categ_Cs.h: Likewise.
35383         * lib/unictype/categ_L.h: Likewise.
35384         * lib/unictype/categ_Ll.h: Likewise.
35385         * lib/unictype/categ_Lm.h: Likewise.
35386         * lib/unictype/categ_Lo.h: Likewise.
35387         * lib/unictype/categ_Lt.h: Likewise.
35388         * lib/unictype/categ_Lu.h: Likewise.
35389         * lib/unictype/categ_M.h: Likewise.
35390         * lib/unictype/categ_Mc.h: Likewise.
35391         * lib/unictype/categ_Me.h: Likewise.
35392         * lib/unictype/categ_Mn.h: Likewise.
35393         * lib/unictype/categ_N.h: Likewise.
35394         * lib/unictype/categ_Nd.h: Likewise.
35395         * lib/unictype/categ_Nl.h: Likewise.
35396         * lib/unictype/categ_No.h: Likewise.
35397         * lib/unictype/categ_P.h: Likewise.
35398         * lib/unictype/categ_Pc.h: Likewise.
35399         * lib/unictype/categ_Pd.h: Likewise.
35400         * lib/unictype/categ_Pe.h: Likewise.
35401         * lib/unictype/categ_Pf.h: Likewise.
35402         * lib/unictype/categ_Pi.h: Likewise.
35403         * lib/unictype/categ_Po.h: Likewise.
35404         * lib/unictype/categ_Ps.h: Likewise.
35405         * lib/unictype/categ_S.h: Likewise.
35406         * lib/unictype/categ_Sc.h: Likewise.
35407         * lib/unictype/categ_Sk.h: Likewise.
35408         * lib/unictype/categ_Sm.h: Likewise.
35409         * lib/unictype/categ_So.h: Likewise.
35410         * lib/unictype/categ_Z.h: Likewise.
35411         * lib/unictype/categ_Zl.h: Likewise.
35412         * lib/unictype/categ_Zp.h: Likewise.
35413         * lib/unictype/categ_Zs.h: Likewise.
35414         * lib/unictype/categ_of.h: Likewise.
35415         * lib/unictype/combining.h: Likewise.
35416         * lib/unictype/ctype_alnum.h: Likewise.
35417         * lib/unictype/ctype_alpha.h: Likewise.
35418         * lib/unictype/ctype_blank.h: Likewise.
35419         * lib/unictype/ctype_cntrl.h: Likewise.
35420         * lib/unictype/ctype_digit.h: Likewise.
35421         * lib/unictype/ctype_graph.h: Likewise.
35422         * lib/unictype/ctype_lower.h: Likewise.
35423         * lib/unictype/ctype_print.h: Likewise.
35424         * lib/unictype/ctype_punct.h: Likewise.
35425         * lib/unictype/ctype_space.h: Likewise.
35426         * lib/unictype/ctype_upper.h: Likewise.
35427         * lib/unictype/ctype_xdigit.h: Likewise.
35428         * lib/unictype/decdigit.h: Likewise.
35429         * lib/unictype/digit.h: Likewise.
35430         * lib/unictype/mirror.h: Likewise.
35431         * lib/unictype/numeric.h: Likewise.
35432         * lib/unictype/pr_alphabetic.h: Likewise.
35433         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35434         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35435         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35436         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35437         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35438         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35439         * lib/unictype/pr_bidi_control.h: Likewise.
35440         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35441         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35442         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35443         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35444         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35445         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35446         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35447         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35448         * lib/unictype/pr_bidi_pdf.h: Likewise.
35449         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35450         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35451         * lib/unictype/pr_combining.h: Likewise.
35452         * lib/unictype/pr_composite.h: Likewise.
35453         * lib/unictype/pr_currency_symbol.h: Likewise.
35454         * lib/unictype/pr_dash.h: Likewise.
35455         * lib/unictype/pr_decimal_digit.h: Likewise.
35456         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35457         * lib/unictype/pr_deprecated.h: Likewise.
35458         * lib/unictype/pr_diacritic.h: Likewise.
35459         * lib/unictype/pr_extender.h: Likewise.
35460         * lib/unictype/pr_format_control.h: Likewise.
35461         * lib/unictype/pr_grapheme_base.h: Likewise.
35462         * lib/unictype/pr_grapheme_extend.h: Likewise.
35463         * lib/unictype/pr_grapheme_link.h: Likewise.
35464         * lib/unictype/pr_hex_digit.h: Likewise.
35465         * lib/unictype/pr_hyphen.h: Likewise.
35466         * lib/unictype/pr_id_continue.h: Likewise.
35467         * lib/unictype/pr_id_start.h: Likewise.
35468         * lib/unictype/pr_ideographic.h: Likewise.
35469         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35470         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35471         * lib/unictype/pr_ignorable_control.h: Likewise.
35472         * lib/unictype/pr_iso_control.h: Likewise.
35473         * lib/unictype/pr_join_control.h: Likewise.
35474         * lib/unictype/pr_left_of_pair.h: Likewise.
35475         * lib/unictype/pr_line_separator.h: Likewise.
35476         * lib/unictype/pr_logical_order_exception.h: Likewise.
35477         * lib/unictype/pr_lowercase.h: Likewise.
35478         * lib/unictype/pr_math.h: Likewise.
35479         * lib/unictype/pr_non_break.h: Likewise.
35480         * lib/unictype/pr_not_a_character.h: Likewise.
35481         * lib/unictype/pr_numeric.h: Likewise.
35482         * lib/unictype/pr_other_alphabetic.h: Likewise.
35483         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35484         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35485         * lib/unictype/pr_other_id_continue.h: Likewise.
35486         * lib/unictype/pr_other_id_start.h: Likewise.
35487         * lib/unictype/pr_other_lowercase.h: Likewise.
35488         * lib/unictype/pr_other_math.h: Likewise.
35489         * lib/unictype/pr_other_uppercase.h: Likewise.
35490         * lib/unictype/pr_paired_punctuation.h: Likewise.
35491         * lib/unictype/pr_paragraph_separator.h: Likewise.
35492         * lib/unictype/pr_pattern_syntax.h: Likewise.
35493         * lib/unictype/pr_pattern_white_space.h: Likewise.
35494         * lib/unictype/pr_private_use.h: Likewise.
35495         * lib/unictype/pr_punctuation.h: Likewise.
35496         * lib/unictype/pr_quotation_mark.h: Likewise.
35497         * lib/unictype/pr_radical.h: Likewise.
35498         * lib/unictype/pr_sentence_terminal.h: Likewise.
35499         * lib/unictype/pr_soft_dotted.h: Likewise.
35500         * lib/unictype/pr_space.h: Likewise.
35501         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35502         * lib/unictype/pr_titlecase.h: Likewise.
35503         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35504         * lib/unictype/pr_unified_ideograph.h: Likewise.
35505         * lib/unictype/pr_uppercase.h: Likewise.
35506         * lib/unictype/pr_variation_selector.h: Likewise.
35507         * lib/unictype/pr_white_space.h: Likewise.
35508         * lib/unictype/pr_xid_continue.h: Likewise.
35509         * lib/unictype/pr_xid_start.h: Likewise.
35510         * lib/unictype/pr_zero_width.h: Likewise.
35511         * lib/unictype/scripts.h: Likewise.
35512         * lib/unictype/scripts_byname.gperf: Likewise.
35513         * lib/unictype/sy_c_ident.h: Likewise.
35514         * lib/unictype/sy_c_whitespace.h: Likewise.
35515         * lib/unictype/sy_java_ident.h: Likewise.
35516         * lib/unictype/sy_java_whitespace.h: Likewise.
35517
35518         * lib/unictype/Makefile: New file.
35519         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
35520         glibc.
35521         * lib/unictype/3level.h: New file, copied from glibc.
35522         * lib/unictype/3levelbit.h: New file.
35523
35524 2007-11-11  Bruno Haible  <bruno@clisp.org>
35525
35526         * modules/gperf: New file.
35527         * modules/iconv_open (Depends-on): Add it.
35528         (Makefile.am): Remove the GPERF definition.
35529
35530 2007-11-11  Bruno Haible  <bruno@clisp.org>
35531
35532         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
35533         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
35534
35535 2007-11-11  Bruno Haible  <bruno@clisp.org>
35536
35537         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
35538         (usage): Remove function.
35539
35540 2007-11-11  Bruno Haible  <bruno@clisp.org>
35541
35542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
35543         gl_FUNC_CEILF_LIBS.
35544         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
35545         gl_FUNC_CEIL_LIBS.
35546         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
35547         gl_FUNC_CEILL_LIBS.
35548         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
35549         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
35550         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
35551
35552 2007-11-11  Bruno Haible  <bruno@clisp.org>
35553
35554         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
35555         roundf were declared but do not exist on functions.
35556         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
35557         roundl were declared but do not exist on functions.
35558         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
35559         HAVE_FLOORL_AND_CEILL, respectively.
35560         Needed for Sun C on Solaris 10.
35561
35562 2007-11-11  Bruno Haible  <bruno@clisp.org>
35563
35564         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
35565         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
35566         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
35567         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
35568         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
35569         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
35570         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
35571         HAVE_DECL_ROUNDF.
35572         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
35573         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
35574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
35575         of HAVE_DECL_ROUND*.
35576         * modules/math (Makefile.am): Update.
35577
35578 2007-11-10  Bruno Haible  <bruno@clisp.org>
35579
35580         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
35581         ptrdiff_t as m4/intl.m4.
35582
35583 2007-11-10  Jim Meyering  <meyering@redhat.com>
35584
35585         Avoid link failure for the argmatch test.
35586         * tests/test-argmatch.c (usage): Define function to avoid a link
35587         failure: argmatch_die requires a usage function.
35588
35589 2007-11-09  Bruno Haible  <bruno@clisp.org>
35590
35591         * doc/functions/snprintf.texi: Mention BeOS deficiency.
35592         * doc/functions/vsnprintf.texi: Likewise.
35593         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
35594         with a size argument < 2.
35595
35596 2007-11-09  Bruno Haible  <bruno@clisp.org>
35597
35598         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
35599         buffer. Fixes an inefficiency introduced on 2007-11-03.
35600
35601 2007-11-09  Bruno Haible  <bruno@clisp.org>
35602
35603         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
35604         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
35605
35606 2007-11-08  Jim Meyering  <meyering@redhat.com>
35607
35608         Change cache variable name prefix "jm_" to "gl_" everywhere.
35609         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
35610         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
35611         * m4/uptime.m4: s/gl_/jm_/
35612
35613 2007-11-07  Bruno Haible  <bruno@clisp.org>
35614
35615         Update to GNU gettext 0.17.
35616         * m4/intl.m4: Update to GNU gettext 0.17.
35617         * m4/po.m4: Likewise.
35618         * modules/gettext (Files): Remove m4/ulonglong.m4.
35619         (configure.ac): Require gettext infrastructure from version 0.17.
35620
35621 2007-11-06  Bruno Haible  <bruno@clisp.org>
35622
35623         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
35624         symbolic values are not defined in a public header.
35625         * lib/freadable.c (freadable) [QNX]: Likewise.
35626         * lib/freadahead.c (freadahead) [QNX]: Likewise.
35627         * lib/freading.c (freading) [QNX]: Likewise.
35628         * lib/fseterr.c (fseterr) [QNX]: Likewise.
35629         * lib/fwritable.c (fwritable) [QNX]: Likewise.
35630         * lib/fwriting.c (fwriting) [QNX]: Likewise.
35631         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
35632         Reported by Alain Magloire.
35633
35634         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
35635
35636 2007-11-05  Bruno Haible  <bruno@clisp.org>
35637
35638         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
35639         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
35640         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
35641         Reported by Eric Blake.
35642
35643 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35644             Bruno Haible  <bruno@clisp.org>
35645
35646         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
35647         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
35648         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
35649         (malloc): Undefine also before including <stdlib.h>.
35650         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
35651         Needed on OSF/1 4.0.
35652
35653 2007-11-05  Jim Meyering  <meyering@redhat.com>
35654
35655         git-version-gen: sync from coreutils.
35656         * build-aux/git-version-gen: Add comments.
35657         Change the first '-' to '.' in the snapshot version string,
35658         e.g., 6.9-377-08144 -> 6.9.377-08144
35659         Remove first parameter.
35660         Don't declare a version "-dirty" merely because a time
35661         stamp has changed.
35662
35663 2007-11-04  Bruno Haible  <bruno@clisp.org>
35664
35665         * lib/lock.h: Protect all macro definitions containing an 'if'
35666         statement through a "do { ... } while (0)".
35667         * lib/tls.h: Likewise.
35668
35669 2007-11-04  Bruno Haible  <bruno@clisp.org>
35670
35671         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
35672
35673 2007-11-04  Bruno Haible  <bruno@clisp.org>
35674
35675         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
35676         * modules/fprintf-posix (Depends-on): Add nocrash.
35677         * modules/snprintf-posix (Depends-on): Likewise.
35678         * modules/sprintf-posix (Depends-on): Likewise.
35679         * modules/vasnprintf-posix (Depends-on): Likewise.
35680         * modules/vasprintf-posix (Depends-on): Likewise.
35681         * modules/vfprintf-posix (Depends-on): Likewise.
35682         * modules/vsnprintf-posix (Depends-on): Likewise.
35683         * modules/vsprintf-posix (Depends-on): Likewise.
35684         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35685         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35686         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35687         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35688         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35689         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35690         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35691
35692 2007-11-04  Bruno Haible  <bruno@clisp.org>
35693
35694         * modules/nocrash: New file.
35695         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
35696         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
35697
35698 2007-11-04  Bruno Haible  <bruno@clisp.org>
35699
35700         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
35701         precision handling.
35702         * tests/test-vasprintf-posix.c (test_function): Likewise.
35703         * tests/test-snprintf-posix.h (test_function): Likewise.
35704         * tests/test-sprintf-posix.h (test_function): Likewise.
35705
35706         Fix *printf behaviour for large precisions on mingw and BeOS.
35707         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
35708         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
35709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
35710         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35711         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35712         gl_PRINTF_PRECISION and test its result. Invoke
35713         gl_PREREQ_VASNPRINTF_PRECISION.
35714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35715         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35716         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35717         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35718         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35720         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35721         * doc/functions/fprintf.texi: Update.
35722         * doc/functions/printf.texi: Update.
35723         * doc/functions/snprintf.texi: Update.
35724         * doc/functions/sprintf.texi: Update.
35725         * doc/functions/vfprintf.texi: Update.
35726         * doc/functions/vprintf.texi: Update.
35727         * doc/functions/vsnprintf.texi: Update.
35728         * doc/functions/vsprintf.texi: Update.
35729
35730 2007-11-04  Bruno Haible  <bruno@clisp.org>
35731
35732         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
35733
35734 2007-11-04  Bruno Haible  <bruno@clisp.org>
35735
35736         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
35737         Reported by Sylvain Beucler <beuc@gnu.org>.
35738
35739 2007-11-03  Bruno Haible  <bruno@clisp.org>
35740
35741         * tests/test-fprintf-posix2.sh: New file.
35742         * tests/test-fprintf-posix2.c: New file.
35743         * modules/fprintf-posix-tests (Files): Add them.
35744         (TESTS): Add test-fprintf-posix2.sh.
35745         (configure.ac): Check for getrlimit and setrlimit.
35746         (check_PROGRAMS): Add test-fprintf-posix2.
35747
35748         * tests/test-printf-posix2.sh: New file.
35749         * tests/test-printf-posix2.c: New file.
35750         * modules/printf-posix-tests (Files): Add them.
35751         (TESTS): Add test-printf-posix2.sh.
35752         (configure.ac): Check for getrlimit and setrlimit.
35753         (check_PROGRAMS): Add test-printf-posix2.
35754
35755         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
35756         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
35757         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
35758         (decode_double): New function, copied from decode_long_double.
35759         (scale10_round_decimal_decoded): New function, extracted from
35760         scale10_round_decimal_long_double.
35761         (scale10_round_decimal_long_double): Use it.
35762         (scale10_round_decimal_double): New function.
35763         (floorlog10): New function.
35764         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
35765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
35766         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35767         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35768         gl_PRINTF_ENOMEM and test its result. Invoke
35769         gl_PREREQ_VASNPRINTF_ENOMEM.
35770         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35772         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35773         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35774         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35775         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35776         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35777         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
35778         * modules/snprintf-posix (Depends-on): Likewise.
35779         * modules/sprintf-posix (Depends-on): Likewise.
35780         * modules/vasnprintf-posix (Depends-on): Likewise.
35781         * modules/vasprintf-posix (Depends-on): Likewise.
35782         * modules/vfprintf-posix (Depends-on): Likewise.
35783         * modules/vsnprintf-posix (Depends-on): Likewise.
35784         * modules/vsprintf-posix (Depends-on): Likewise.
35785         * doc/functions/fprintf.texi: Update.
35786         * doc/functions/printf.texi: Update.
35787         * doc/functions/snprintf.texi: Update.
35788         * doc/functions/sprintf.texi: Update.
35789         * doc/functions/vfprintf.texi: Update.
35790         * doc/functions/vprintf.texi: Update.
35791         * doc/functions/vsnprintf.texi: Update.
35792         * doc/functions/vsprintf.texi: Update.
35793
35794 2007-11-03  Bruno Haible  <bruno@clisp.org>
35795
35796         * modules/frexp-nolibm-tests: New file.
35797
35798         * modules/frexp-nolibm: New file.
35799         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
35800
35801 2007-11-03  Bruno Haible  <bruno@clisp.org>
35802
35803         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
35804         value is C99 compliant.
35805         Needed for OSF/1 5.1.
35806
35807 2007-11-03  Bruno Haible  <bruno@clisp.org>
35808
35809         Fix out-of-memory handling of vasnprintf.
35810         * lib/printf-parse.c: Include <errno.h>.
35811         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
35812         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
35813         is already set.
35814
35815 2007-11-02  Eric Blake  <ebb9@byu.net>
35816
35817         Fix tests on cygwin.
35818         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
35819
35820 2007-11-01  Bruno Haible  <bruno@clisp.org>
35821
35822         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
35823         warning.
35824         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
35825         needed for POSIX compatibility.
35826
35827 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
35828
35829         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
35830         for compatibility with GNU.
35831
35832 2007-11-01  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
35835         (putenv): Renamed from rpl_putenv. Change argument type from
35836         'const char *' to 'char *'.
35837         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
35838         of defining putenv in config.h, just set REPLACE_PUTENV.
35839         * modules/putenv (Depends-on): Add stdlib.
35840         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35841         (Include): Use <stdlib.h>.
35842         * lib/stdlib.in.h (putenv): New declaration.
35843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
35844         REPLACE_PUTENV.
35845         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
35846         REPLACE_PUTENV.
35847         Needed for MacOS X 10.5.0.
35848         Reported by Peter O'Gorman <peter@pogma.com>.
35849
35850 2007-11-01  Jim Meyering  <meyering@redhat.com>
35851
35852         Treat an empty date string exactly like "0".
35853         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
35854         if the remaining date string (to be parsed) is empty, use "0".
35855         Reported by Mischa Molhoek and discussed in this thread:
35856         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
35857
35858 2007-10-31  Bruno Haible  <bruno@clisp.org>
35859
35860         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
35861         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
35862         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
35863         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
35864         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
35865         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
35866
35867 2007-10-31  Bruno Haible  <bruno@clisp.org>
35868
35869         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
35870         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
35871         (AC_TYPE_LONG_LONG_INT): Use it.
35872         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
35873         it as well.
35874         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
35875         to m4/longlong.m4.
35876         * modules/stdint (Files): Remove m4/ulonglong.m4.
35877         * modules/strtoull (Files): Use m4/longlong.m4 instead of
35878         m4/ulonglong.m4.
35879         * modules/strtoumax (Files): Likewise.
35880
35881 2007-10-30  Bruno Haible  <bruno@clisp.org>
35882
35883         * modules/xvasprintf-posix: New file.
35884         Suggested by Eric Blake.
35885
35886 2007-10-30  Bruno Haible  <bruno@clisp.org>
35887
35888         * modules/xprintf-posix-tests: New file.
35889         * tests/test-xprintf-posix.sh: New file.
35890         * tests/test-xprintf-posix.c: New file.
35891         * tests/test-xfprintf-posix.c: New file.
35892
35893         * modules/xprintf-posix: New file.
35894
35895 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35896
35897         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
35898         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
35899         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
35900
35901 2007-10-29  Bruno Haible  <bruno@clisp.org>
35902
35903         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
35904         contain the special marker '_cv_'.
35905         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35906         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35907         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35908         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
35909         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35910         Reported by Ralf Wildenhues.
35911
35912 2007-10-29  Bruno Haible  <bruno@clisp.org>
35913
35914         * gnulib-tool (func_import): When --lgpl is not specified, set
35915         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
35916         GPLv3.
35917         Reported by Simon Josefsson.
35918
35919 2007-10-28  Bruno Haible  <bruno@clisp.org>
35920
35921         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
35922         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
35923         HAVE_DECL_ISFINITE.
35924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
35925         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
35926         HAVE_DECL_ISFINITE.
35927
35928 2007-10-28  Bruno Haible  <bruno@clisp.org>
35929
35930         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
35931         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
35932
35933 2007-10-28  Bruno Haible  <bruno@clisp.org>
35934
35935         Fix link errors with Sun C 5.0 on Solaris 10.
35936         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
35937         function is declared but not present in the compiler's libm.
35938         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35939         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35940         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
35941         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
35942         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
35943         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
35944         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
35945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
35946         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
35947         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
35948         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
35949         HAVE_DECL_FLOORL.
35950
35951 2007-10-28  Bruno Haible  <bruno@clisp.org>
35952
35953         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
35954         gl_FUNC_FLOORL. Cache the result.
35955         (gl_FUNC_FLOORL): Use it.
35956         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
35957         gl_FUNC_CEILL. Cache the result.
35958         (gl_FUNC_CEILL): Use it.
35959
35960         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
35961         gl_FUNC_FLOOR. Cache the result.
35962         (gl_FUNC_FLOOR): Use it.
35963         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
35964         gl_FUNC_CEIL. Cache the result.
35965         (gl_FUNC_CEIL): Use it.
35966
35967         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
35968         gl_FUNC_FLOORF. Cache the result.
35969         (gl_FUNC_FLOORF): Use it.
35970         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
35971         gl_FUNC_CEILF. Cache the result.
35972         (gl_FUNC_CEILF): Use it.
35973
35974 2007-10-28  Bruno Haible  <bruno@clisp.org>
35975
35976         * gnulib-tool: Allow specifying the LGPL version number through
35977         --lgpl=2 or --lgpl=3.
35978         (func_usage): Document --lgpl with argument.
35979         Handle --lgpl=... arguments.
35980         (func_import): Recognize also gl_LGPL calls with an argument. When
35981         --lgpl=2 is used and the module's license is just LGPL, report an
35982         error. Set sed_transform_lib_file according to the lgpl variable. In
35983         the generated files, use --lgpl or gl_LGPL invocations with argument,
35984         if necessary.
35985         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
35986         an LGPv2+ license.
35987         * doc/gnulib-tool.texi (Modified imports): Update explanation of
35988         gl_LGPL macro.
35989
35990 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35991             Bruno Haible  <bruno@clisp.org>
35992
35993         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
35994         (u16_uctomb_aux): Likewise.
35995         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
35996         !HAVE_INLINE.
35997         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
35998
35999 2007-10-28  Bruno Haible  <bruno@clisp.org>
36000
36001         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36002         Invoke AM_GETTEXT_OPTION if it exists.
36003         * modules/vasprintf: Likewise.
36004         * modules/verror: Likewise.
36005         * modules/xprintf: Likewise.
36006         * modules/xvasprintf: Likewise.
36007
36008 2007-10-27  Ben Pfaff  <blp@gnu.org>
36009
36010         * lib/math.in.h: Define isfinite macro and prototypes for
36011         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36012         implementations.
36013         * m4/math_h.m4: New substitutions for isfinite module.
36014         * lib/isfinite.c: New file.
36015         * m4/isfinite.m4: New file.
36016         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36017         * modules/isfinite: New file.
36018         * modules/isfinite-tests: New file.
36019         * tests/tests-isfinite.c: New file.
36020         * doc/functions/isfinite.texi: Mention isfinite module.
36021         * MODULES.html.sh: Mention new module.
36022
36023 2007-10-27  Ben Pfaff  <blp@gnu.org>
36024
36025         Ralf Wildenhues reported that Tru64 4.0D declares the round
36026         functions but does not have definitions.
36027         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36028         cannot be found in any library, set the output variable to
36029         "missing" instead of "".
36030         * m4/round.m4: Also use our substitute if we cannot find round in
36031         any library, even if it is declared.
36032         * m4/roundf.m4: Likewise for roundf.
36033         * m4/roundl.m4: Likewise for roundl.
36034         * lib/math.in.h: Undefine roundf, round, roundl before defining
36035         their replacements, to allow for hypothetical systems where these
36036         may be defined as macros but not available in libraries.
36037
36038 2007-10-27  Bruno Haible  <bruno@clisp.org>
36039
36040         * doc/gnulib.texi: Invoke @firstparagraphindent.
36041         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36042         changes in gnulib.
36043         (Source changes): New section.
36044
36045 2007-10-26  Bruno Haible  <bruno@clisp.org>
36046
36047         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36048         borrowed from autoconf.
36049
36050 2007-10-26  Bruno Haible  <bruno@clisp.org>
36051
36052         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36053         strerror returned the empty string. Needed on HP-UX 11.00.
36054
36055 2007-10-24  Micah Cowan  <micah@cowan.name>
36056
36057         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36058         * build-aux/bootstrap: Remove support for now-unnecessary option,
36059         --cvs-user, and envvars CVS_USER, CVS_RSH.
36060
36061 2007-10-24  Jim Meyering  <meyering@redhat.com>
36062
36063         Avoid diagnostics from sha1sum when there is no cached checksum.
36064         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36065         if the po.s1 file hasn't been created yet.
36066
36067         * build-aux/bootstrap: Sync from coreutils:
36068         2007-10-24  Jim Meyering  <meyering@redhat.com>
36069         Get gnulib from the git repository, not from an obsolete cvs one.
36070         * build-aux/bootstrap: Suggestion from Micah Cowan.
36071         2007-10-04  Jim Meyering  <jim@meyering.net>
36072         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36073         (update_po_files): Work also when there are no .po files in po/.
36074
36075 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36076
36077         * README: Append ".git" to git and cg examples.
36078         Problem reported by Benoit Sigoure.
36079
36080 2007-10-23  Micah Cowan  <micah@cowan.name>
36081
36082         * users.txt: Add wget.
36083
36084 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36085
36086         Fix linking of some unistdio tests on FreeBSD.
36087         * modules/unistdio/u16-vsnprintf-tests
36088         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36089         * modules/unistdio/u16-vsprintf-tests
36090         (test_u16_vsnprintf1_LDADD): Likewise.
36091         * modules/unistdio/u32-vsnprintf-tests
36092         (test_u32_vsnprintf1_LDADD): Likewise.
36093         * modules/unistdio/u32-vsprintf-tests
36094         (test_u32_vsprintf1_LDADD): Likewise.
36095         * modules/unistdio/u8-vsnprintf-tests
36096         (test_u8_vsnprintf1_LDADD): Likewise.
36097         * modules/unistdio/u8-vsprintf-tests
36098         (test_u8_vsprintf1_LDADD): Likewise.
36099         * modules/unistdio/ulc-vsnprintf-tests
36100         (test_ulc_vsnprintf1_LDADD): Likewise.
36101         * modules/unistdio/ulc-vsprintf-tests
36102         (test_ulc_vsprintf1_LDADD): Likewise.
36103
36104         Fix linking of some uniconv tests on FreeBSD.
36105         * modules/uniconv/u16-conv-from-enc-tests
36106         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36107         * modules/uniconv/u16-conv-to-enc-tests
36108         (test_u16_conv_to_enc_LDADD): Likewise.
36109         * modules/uniconv/u16-strconv-from-enc-tests
36110         (test_u16_strconv_from_enc_LDADD): Likewise.
36111         * modules/uniconv/u16-strconv-to-enc-tests
36112         (test_u16_strconv_to_enc_LDADD): Likewise.
36113         * modules/uniconv/u32-conv-from-enc-tests
36114         (test_u32_conv_from_enc_LDADD): Likewise.
36115         * modules/uniconv/u32-conv-to-enc-tests
36116         (test_u32_conv_to_enc_LDADD): Likewise.
36117         * modules/uniconv/u32-strconv-from-enc-tests
36118         (test_u32_strconv_from_enc_LDADD): Likewise.
36119         * modules/uniconv/u32-strconv-to-enc-tests
36120         (test_u32_strconv_to_enc_LDADD): Likewise.
36121         * modules/uniconv/u8-conv-from-enc-tests
36122         (test_u8_conv_from_enc_LDADD): Likewise.
36123         * modules/uniconv/u8-conv-to-enc-tests
36124         (test_u8_conv_to_enc_LDADD): Likewise.
36125         * modules/uniconv/u8-strconv-from-enc-tests
36126         (test_u8_strconv_from_enc_LDADD): Likewise.
36127         * modules/uniconv/u8-strconv-to-enc-tests
36128         (test_u8_strconv_to_enc_LDADD): Likewise.
36129
36130 2007-10-22  Bruno Haible  <bruno@clisp.org>
36131
36132         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36133         size.
36134
36135 2007-10-22  Eric Blake  <ebb9@byu.net>
36136
36137         Tweak x*printf documentation.
36138         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36139         variable name and comments.
36140         Suggested by Bruno Haible.
36141
36142 2007-10-22  Bruno Haible  <bruno@clisp.org>
36143
36144         * lib/acl.c (copy_acl): Fix file name in comment.
36145
36146 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36147
36148         Fix Tru64 problem with stdbool.h.
36149         * lib/stdbool.in.h (false, true):
36150         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36151         Don't declare as an enum in this situation; it runs afoul of Tru64.
36152         Problem reported by Steven M. Schweda in
36153         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36154
36155 2007-10-22  Eric Blake  <ebb9@byu.net>
36156
36157         Also wrap vf?printf.
36158         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36159         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36160         (xvprintf, xvfprintf): New functions.
36161
36162 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36163
36164         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36165         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36166
36167         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36168         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36169
36170 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36171
36172         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36173         by Bruno Haible.
36174
36175 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36176
36177         * lib/getloadavg.c
36178         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36179         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36180
36181         * tests/test-i-ring.c: Work for C89.
36182
36183 2007-10-22  Bruno Haible  <bruno@clisp.org>
36184
36185         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36186         -1u, in preprocessor expression, so that we don't test for the bug
36187         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36189
36190 2007-10-22  Eric Blake  <ebb9@byu.net>
36191
36192         * tests/test-yesno.sh: Silence stderr during test.
36193
36194 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36195
36196         * modules/crypto/gc-camellia: New file.
36197
36198         * m4/gc-camellia.m4: New file.
36199
36200         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36201
36202         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36203
36204 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36205
36206         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36207         --help to stdout.  Reported by sms@antinode.org (Steven
36208         M. Schweda).
36209
36210 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36211
36212         * users.txt: Fix link to libksba.
36213
36214 2007-10-21  Ben Pfaff  <blp@gnu.org>
36215
36216         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36217         round.c roundf implementation that depends on floorf and ceilf to
36218         be tested unconditionally.
36219
36220 2007-10-21  Ben Pfaff  <blp@gnu.org>
36221
36222         * m4/check-libm-func.m4: Removed.
36223         * m4/check-math-lib.m4: New file.
36224         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36225         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36226         definition and lack of AC_LIBOBJ([roundf]).
36227         * m4/roundl.m4: Ditto, and similarly for roundl.
36228         * modules/round: Reference new m4 file.
36229         * modules/roundf: Ditto.
36230         * modules/roundl: Ditto.
36231         * tests/test-round2.c (main): Use ROUND instead of round.
36232         Bug report from Bruno Haible.
36233
36234 2007-10-21  Bruno Haible  <bruno@clisp.org>
36235
36236         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36237         context.
36238
36239 2007-10-21  Bruno Haible  <bruno@clisp.org>
36240
36241         * tests/test-wcwidth.c (main): Allow negative result for some control
36242         characters.
36243
36244         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
36245         Needed on OSF/1 5.1.
36246
36247 2007-10-21  Bruno Haible  <bruno@clisp.org>
36248
36249         * tests/test-floorf1.c: Include isnanf.h.
36250         (main): Use isnanf() instead of isnan().
36251         * tests/test-ceilf1.c: Include isnanf.h.
36252         (main): Use isnanf() instead of isnan().
36253         * tests/test-truncf1.c: Include isnanf.h.
36254         (main): Use isnanf() instead of isnan().
36255         * tests/test-roundf1.c: Include isnanf.h.
36256         (main): Use isnanf() instead of isnan().
36257
36258 2007-10-21  Eric Blake  <ebb9@byu.net>
36259
36260         * users.txt: Update URL for m4.
36261
36262 2007-10-21  Bruno Haible  <bruno@clisp.org>
36263
36264         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
36265
36266 2007-10-21  Bruno Haible  <bruno@clisp.org>
36267
36268         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
36269         Git's management files if the CVS files are not present.
36270
36271 2007-10-20  Bruno Haible  <bruno@clisp.org>
36272
36273         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
36274         gcc-3.4.x.
36275
36276 2007-10-20  Ben Pfaff  <blp@gnu.org>
36277
36278         * lib/math.in.h: Declare round, roundf, roundl if we are providing
36279         implementations.
36280         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
36281         * lib/round.c: New file.
36282         * lib/roundf.c: New file.
36283         * lib/roundl.c: New file.
36284         * m4/round.m4: New file.
36285         * m4/roundf.m4: New file.
36286         * m4/roundl.m4: New file.
36287         * m4/check-libm-func-m4: New file.
36288         * modules/math: Replace round, roundf, roundl related @VARS@ in
36289         math.in.h.
36290         * modules/round: New file.
36291         * modules/round-tests: New file.
36292         * modules/roundf: New file.
36293         * modules/roundf-tests: New file.
36294         * modules/roundl: New file.
36295         * modules/roundl-tests: New file.
36296         * tests/test-round1.c: New file.
36297         * tests/test-round2.c: New file.
36298         * tests/test-roundf1.c: New file.
36299         * tests/test-roundf2.c: New file.
36300         * tests/test-roundl.c: New file.
36301         * doc/functions/round.texi: Mention round module.
36302         * doc/functions/roundf.texi: Mention roundf module.
36303         * doc/functions/roundl.texi: Mention roundl module.
36304         * MODULES.html.sh: Mention new modules.
36305         Thanks to Bruno Haible for suggestions.
36306
36307 2007-10-20  Jim Meyering  <meyering@redhat.com>
36308
36309         * lib/xprintf.c: Include <config.h> unconditionally.
36310
36311         Change xprintf's license to GPL.
36312         * modules/xprintf (License): s/LGPL/GPL/, since this module
36313         depends on modules (exit and exitfail) which are GPL.
36314         Suggestion from Bruno Haible.
36315
36316         xprintf fixes.
36317         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36318         Use a clearer diagnostic.
36319         Patch from Bruno Haible.
36320
36321 2007-10-20  Bruno Haible  <bruno@clisp.org>
36322
36323         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36324         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36325         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36326
36327 2007-10-20  Bruno Haible  <bruno@clisp.org>
36328
36329         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36330         precision in the comparison result > x - 1 or similar.
36331         * tests/test-ceilf2.c (correct_result_p): Likewise.
36332         * tests/test-truncf2.c (correct_result_p): Likewise.
36333         * tests/test-trunc2.c (correct_result_p): Likewise.
36334         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36335
36336 2007-10-20  Bruno Haible  <bruno@clisp.org>
36337
36338         * modules/ceil: New file.
36339         * m4/ceil.m4: New file.
36340         * doc/functions/ceil.texi: Mention the 'ceil' module.
36341
36342 2007-10-20  Bruno Haible  <bruno@clisp.org>
36343
36344         * modules/floor: New file.
36345         * m4/floor.m4: New file.
36346         * doc/functions/floor.texi: Mention the 'floor' module.
36347
36348 2007-10-20  Bruno Haible  <bruno@clisp.org>
36349
36350         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36351         of %a.
36352         * modules/floorf-tests (Depends-on): Likewise.
36353         * modules/truncf-tests (Depends-on): Likewise.
36354         * modules/trunc-tests (Depends-on): Likewise.
36355         Reported by Ben Pfaff.
36356
36357 2007-10-19  Jim Meyering  <meyering@redhat.com>
36358
36359         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36360         Don't bother testing specific errno values.  Just test ferror.
36361
36362         New module: xprintf
36363         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36364
36365 2007-10-19  Bruno Haible  <bruno@clisp.org>
36366
36367         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36368         syntax.
36369         * modules/javaexec (Makefile.am): Likewise.
36370         * modules/relocatable-prog (Makefile.am): Likewise.
36371         Suggested by Jim Meyering.
36372
36373 2007-10-18  Bruno Haible  <bruno@clisp.org>
36374
36375         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36376         Reported by Jim Meyering.
36377
36378 2007-10-18  Eric Blake  <ebb9@byu.net>
36379
36380         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36381
36382 2007-10-18  Bruno Haible  <bruno@clisp.org>
36383
36384         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36385         the format string into writable memory. Needed in Fortify conditions.
36386
36387 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36388             Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36391         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36392         * modules/trim (Depends-on): Add mbchar.
36393         (configure.ac): Add gl_FUNC_MBRTOWC.
36394         (Makefile.am): Augment lib_SOURCES.
36395
36396 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36397
36398         Modify glob.c to use fstatat and dirfd, to simplify it.
36399         Suggested by Eric Blake.
36400         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36401         Don't include <stdbool.h>; not used.
36402         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36403         (link_exists_p): Simplify implementation, since we can now assume
36404         dirfd and fstatat.
36405         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36406
36407 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36408
36409         * gnulib-tool (func_get_dependencies): Fix sed script to
36410         match only tests.
36411
36412 2007-10-17  Bruno Haible  <bruno@clisp.org>
36413
36414         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
36415         allow locale names without encoding suffix.
36416         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36417         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36418
36419 2007-10-16  Bruno Haible  <bruno@clisp.org>
36420
36421         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
36422         * lib/getgroups.c (getgroups): Likewise.
36423         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
36424
36425 2007-10-16  Bruno Haible  <bruno@clisp.org>
36426
36427         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
36428         * modules/malloc-posix (License): Likewise.
36429         * modules/realloc-posix (License): Likewise.
36430         * modules/calloc-posix (License): Likewise.
36431         * modules/intprops (License): Change from GPL to LGPL, with
36432         Paul Eggert's approval.
36433
36434 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36435
36436         Merge glibc changes into lib/glob.c.
36437
36438         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
36439         2007-10-15 04:59:03 UTC.  Here are the changes:
36440
36441         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
36442
36443         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
36444
36445         * lib/glob.c: Add some branch prediction throughout.
36446
36447         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
36448
36449         [BZ #5103]
36450         * lib/glob.c (glob): Recognize patterns starting \/.
36451
36452         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
36453
36454         [BZ #3996]
36455         * lib/glob.c (attribute_hidden): Define if not defined.
36456         (glob): Unescape dirname, filename or username when needed and not
36457         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
36458         is NULL.  Handle unescaped [ in pattern without closing ].
36459         Don't pass GLOB_CHECK down to recursive glob for directories.
36460         (__glob_pattern_type): New function.
36461         (__glob_pattern_p): Implement using __glob_pattern_type.
36462         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
36463         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
36464         Remove unreachable code.
36465
36466         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
36467
36468         * lib/glob.c (glob_in_dir): Add some comments and asserts to
36469         explain why there are no leaks.
36470
36471         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
36472
36473         [BZ #3253]
36474         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
36475         time, rather allocate increasingly bigger arrays of pointers, if
36476         possible with alloca, if too large with malloc.
36477
36478 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36479
36480         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
36481         Problem reported by H.Merijn Brand in
36482         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
36483         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
36484         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36485
36486 2007-10-15  Bruno Haible  <bruno@clisp.org>
36487
36488         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
36489         with explicit rpl_ prefix.
36490         * lib/fopen.c (fopen): Likewise.
36491         * lib/freopen.c (freopen): Likewise.
36492         * lib/iconv.c (iconv): Likewise.
36493         * lib/iconv_close.c (iconv_close): Likewise.
36494
36495 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36496
36497         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
36498
36499 2007-10-15  Bruno Haible  <bruno@clisp.org>
36500
36501         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
36502         <stddef.h> instead of <stdlib.h> since we only need NULL.
36503         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36504
36505 2007-10-15  Bruno Haible  <bruno@clisp.org>
36506
36507         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
36508         Replace paragraph talking about LIBOBJS.
36509         Reported by Colin Watson <cjwatson@debian.org>.
36510
36511 2007-10-15  Bruno Haible  <bruno@clisp.org>
36512
36513         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
36514         <stdlib.h> before using NULL.
36515
36516 2007-10-15  Simon Josefsson  <simon@josefsson.org>
36517
36518         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
36519         Reported by Albert Chin <china@thewrittenword.com>.
36520
36521 2007-10-14  Bruno Haible  <bruno@clisp.org>
36522
36523         * modules/iconv_open-utf-tests: New file.
36524         * tests/test-iconv-utf.c: New file.
36525
36526         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
36527         * modules/iconv_open-utf: New file.
36528         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
36529         (iconv, iconv_close): New declarations.
36530         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
36531         be defined.
36532         (iconv_open): Add special handling of conversion between UTF-8 and
36533         UTF-{16,32}{BE,LE}.
36534         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
36535         * lib/iconv_close.c: New file.
36536         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
36537         gl_FUNC_ICONV_OPEN.
36538         (gl_FUNC_ICONV_OPEN): Use it.
36539         (gl_FUNC_ICONV_OPEN_UTF): New macro.
36540         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
36541         and REPLACE_ICONV_UTF.
36542         * modules/iconv_open (Depends-on): Add c-strcase.
36543         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
36544         ICONV_CONST.
36545         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
36546
36547 2007-10-13  Albert Chin  <china@thewrittenword.com>
36548             Bruno Haible  <bruno@clisp.org>
36549
36550         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
36551         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
36552
36553 2007-10-13  Bruno Haible  <bruno@clisp.org>
36554
36555         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
36556         defined, use the ISO C99 inline semantics.
36557         * lib/argp.h (ARGP_EI): Likewise.
36558
36559 2007-10-13  Bruno Haible  <bruno@clisp.org>
36560
36561         Handle 'inline' change in gcc 4.3.0.
36562         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
36563         argp_fmtstream_write, argp_fmtstream_set_lmargin,
36564         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
36565         argp_fmtstream_point): Disable 'extern' declaration if the function
36566         definition is going to be provided inline.
36567         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
36568         semantics, not the ISO C99 inline semantics.
36569         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
36570         'extern' declaration if the function definition is going to be provided
36571         inline.
36572         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
36573         the GNU C inline semantics, not the ISO C99 inline semantics. With
36574         GCC 4.2, avoid a warning.
36575
36576 2007-10-13  Bruno Haible  <bruno@clisp.org>
36577
36578         * lib/freading.h (freading): Enable the use of __freading for
36579         glibc >= 2.7.
36580         * lib/freading.c (freading): Likewise.
36581
36582 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36583
36584         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
36585         "warning: C99 inline functions are not supported; using GNU89".
36586
36587 2007-10-12  Bruno Haible  <bruno@clisp.org>
36588
36589         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
36590         of 2.
36591         * tests/test-ceilf2.c: New file.
36592         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
36593
36594         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
36595         * modules/ceilf-tests: Update.
36596
36597 2007-10-12  Bruno Haible  <bruno@clisp.org>
36598
36599         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
36600         of 2.
36601         * tests/test-floorf2.c: New file.
36602         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
36603
36604         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
36605         * modules/floorf-tests: Update.
36606
36607 2007-10-12  Bruno Haible  <bruno@clisp.org>
36608
36609         * tests/test-trunc2.c: New file.
36610         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
36611
36612         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
36613         * modules/trunc-tests: Update.
36614
36615 2007-10-12  Bruno Haible  <bruno@clisp.org>
36616
36617         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
36618         of 2.
36619         * tests/test-truncf2.c: New file.
36620         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
36621
36622         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
36623         * modules/truncf-tests: Update.
36624
36625 2007-10-11  Eric Blake  <ebb9@byu.net>
36626
36627         Don't claim strerror is broken on Interix.
36628         * doc/functions/strerror.texi (strerror): Known broken systems are
36629         now Solaris 8, and not Interix.
36630         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
36631         Interix on cross-compile.
36632         Reported by Martin Koeppe in
36633         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
36634
36635 2007-10-11  Bruno Haible  <bruno@clisp.org>
36636
36637         * modules/i-ring-tests: New file.
36638         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
36639         instead of assert.
36640
36641 2007-10-11  Bruno Haible  <bruno@clisp.org>
36642
36643         * modules/filenamecat-tests: New file.
36644         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
36645         * lib/filenamecat.c: Remove test code.
36646
36647 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
36648
36649         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
36650
36651         * lib/strerror.c: Include <string.h> always, to test interface,
36652         and to remove the need for the dummy.
36653         Include intprops.h to compute width instead of doing it ourselves
36654         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
36655         (strerror): Define it to return NULL if there's no system strerror.
36656         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
36657         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
36658         ancient pre-strerror Unix systems well any more.  Saying "unknown
36659         system error" is enough.
36660         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
36661         simpler strerror.c implementation.
36662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
36663         Simplify the tests to reflect the simpler strerror implementation.
36664         * modules/strerror (Depends-on): Add intprops.
36665
36666 2007-10-09  Eric Blake  <ebb9@byu.net>
36667
36668         Silence test-fpending.
36669         * modules/fpending-tests (Files): Add wrapper script.
36670         * tests/test-fpending.sh: New file.
36671
36672 2007-10-09  Bruno Haible  <bruno@clisp.org>
36673
36674         * MODULES.html.sh (func_module): Don't create a hyperlink for
36675         function names like 'printf_frexp'.
36676         (Misc): Add crc, memxor.
36677         (Characteristics of floating types): New section.
36678         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
36679         isnanf-nolibm, signbit, trunc, truncf, truncl.
36680         (Enhancements for ISO C 99 functions): New subsection Input/output.
36681         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
36682         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
36683         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
36684         (Compatibility checks for POSIX:2001 functions): Add clock-time.
36685         (Enhancements for POSIX:2001 functions): Add chdir-long.
36686         (File system functions): Add areadlink, chdir-safer, read-file.
36687         Remove cycle-check.
36688         (File system as inode set): New section.
36689         (Date and time): Add gethrxtime.
36690         (Multithreading): Add openmp.
36691         (Internationalization functions): Add localename.
36692         (Unicode string functions): Add unistr/u*-mbsnlen.
36693         (Support for maintaining and releasing projects): Add git-version-gen.
36694         (Lone files): Remove directories.
36695
36696 2007-10-08  Ben Pfaff  <blp@gnu.org>
36697
36698         * lib/xmalloca.h: Fix typo in comment.
36699
36700 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36701
36702         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
36703         when avoiding problems with integer overflow.  Use a portable test
36704         instead.
36705
36706 2007-10-08  Simon Josefsson  <simon@josefsson.org>
36707
36708         * modules/dummy (License): Change to LGPLv2+.
36709         * modules/float (License): Likewise
36710         * modules/realloc (License): Likewise
36711         * modules/stdlib (License): Likewise
36712
36713 2007-10-07  Bruno Haible  <bruno@clisp.org>
36714
36715         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
36716         * floor.c (TWO_MANT_DIG): Likewise.
36717         * ceil.c (TWO_MANT_DIG): Likewise.
36718         Reported by Ben Pfaff.
36719
36720 2007-10-07  Bruno Haible  <bruno@clisp.org>
36721
36722         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
36723         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
36724         * lib/frexp.c (FUNC): Likewise.
36725         * lib/printf-frexp.h (printf_frexp): Likewise.
36726         * lib/printf-frexpl.h (printf_frexpl): Likewise.
36727         * lib/printf-frexp.c (FUNC): Likewise.
36728         Suggested by Jim Meyering.
36729
36730 2007-10-07  Jim Meyering  <meyering@redhat.com>
36731
36732         Make xnanosleep's integer overflow test more robust.
36733         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
36734         so that gcc-4.3.0 doesn't optimize away this test for overflow.
36735
36736 2007-10-07  Bruno Haible  <bruno@clisp.org>
36737
36738         * NEWS: Mention the license change.
36739
36740         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
36741         abbreviations in the modules files.
36742
36743         Change copyright notice from GPLv2+ to GPLv3+.
36744         * README: Change copyright notice.
36745         * MODULES.html.sh: Likewise.
36746         * build-aux/bootstrap.conf: Likewise.
36747         * build-aux/config.libpath: Likewise.
36748         * build-aux/csharpcomp.sh.in: Likewise.
36749         * build-aux/csharpexec.sh.in: Likewise.
36750         * build-aux/install-reloc: Likewise.
36751         * build-aux/javacomp.sh.in: Likewise.
36752         * build-aux/javaexec.sh.in: Likewise.
36753         * build-aux/ldd.sh.in: Likewise.
36754         * build-aux/reloc-ldflags: Likewise.
36755         * build-aux/relocatable.sh.in: Likewise.
36756         * build-aux/x-to-1.in: Likewise.
36757         * check-module: Likewise.
36758         * config/srclistvars.sh: Likewise.
36759         * gnulib-tool: Likewise.
36760         * lib/acl-internal.h: Likewise.
36761         * lib/acl.c: Likewise.
36762         * lib/acl.h: Likewise.
36763         * lib/acl_entries.c: Likewise.
36764         * lib/areadlink-with-size.c: Likewise.
36765         * lib/areadlink.c: Likewise.
36766         * lib/areadlink.h: Likewise.
36767         * lib/argmatch.c: Likewise.
36768         * lib/argmatch.h: Likewise.
36769         * lib/argp-ba.c: Likewise.
36770         * lib/argp-eexst.c: Likewise.
36771         * lib/argp-fmtstream.c: Likewise.
36772         * lib/argp-fmtstream.h: Likewise.
36773         * lib/argp-fs-xinl.c: Likewise.
36774         * lib/argp-help.c: Likewise.
36775         * lib/argp-namefrob.h: Likewise.
36776         * lib/argp-parse.c: Likewise.
36777         * lib/argp-pin.c: Likewise.
36778         * lib/argp-pv.c: Likewise.
36779         * lib/argp-pvh.c: Likewise.
36780         * lib/argp-xinl.c: Likewise.
36781         * lib/argp.h: Likewise.
36782         * lib/at-func.c: Likewise.
36783         * lib/atanl.c: Likewise.
36784         * lib/backupfile.c: Likewise.
36785         * lib/backupfile.h: Likewise.
36786         * lib/basename.c: Likewise.
36787         * lib/binary-io.h: Likewise.
36788         * lib/byteswap.in.h: Likewise.
36789         * lib/c-stack.c: Likewise.
36790         * lib/c-stack.h: Likewise.
36791         * lib/c-strcasestr.c: Likewise.
36792         * lib/c-strcasestr.h: Likewise.
36793         * lib/c-strstr.c: Likewise.
36794         * lib/c-strstr.h: Likewise.
36795         * lib/c-strtod.c: Likewise.
36796         * lib/calloc.c: Likewise.
36797         * lib/canon-host.c: Likewise.
36798         * lib/canon-host.h: Likewise.
36799         * lib/canonicalize-lgpl.c: Likewise.
36800         * lib/canonicalize.c: Likewise.
36801         * lib/canonicalize.h: Likewise.
36802         * lib/ceil.c: Likewise.
36803         * lib/ceilf.c: Likewise.
36804         * lib/ceill.c: Likewise.
36805         * lib/chdir-long.c: Likewise.
36806         * lib/chdir-long.h: Likewise.
36807         * lib/chdir-safer.c: Likewise.
36808         * lib/chdir-safer.h: Likewise.
36809         * lib/chown.c: Likewise.
36810         * lib/classpath.c: Likewise.
36811         * lib/classpath.h: Likewise.
36812         * lib/clean-temp.c: Likewise.
36813         * lib/clean-temp.h: Likewise.
36814         * lib/cloexec.c: Likewise.
36815         * lib/close-stream.c: Likewise.
36816         * lib/closein.c: Likewise.
36817         * lib/closein.h: Likewise.
36818         * lib/closeout.c: Likewise.
36819         * lib/closeout.h: Likewise.
36820         * lib/concat-filename.c: Likewise.
36821         * lib/copy-file.c: Likewise.
36822         * lib/copy-file.h: Likewise.
36823         * lib/count-one-bits.h: Likewise.
36824         * lib/crc.c: Likewise.
36825         * lib/crc.h: Likewise.
36826         * lib/creat-safer.c: Likewise.
36827         * lib/csharpcomp.c: Likewise.
36828         * lib/csharpcomp.h: Likewise.
36829         * lib/csharpexec.c: Likewise.
36830         * lib/csharpexec.h: Likewise.
36831         * lib/cycle-check.c: Likewise.
36832         * lib/cycle-check.h: Likewise.
36833         * lib/diacrit.c: Likewise.
36834         * lib/diacrit.h: Likewise.
36835         * lib/diffseq.h: Likewise.
36836         * lib/dirchownmod.c: Likewise.
36837         * lib/dirent.in.h: Likewise.
36838         * lib/dirfd.c: Likewise.
36839         * lib/dirfd.h: Likewise.
36840         * lib/dirname.c: Likewise.
36841         * lib/dirname.h: Likewise.
36842         * lib/dummy.c: Likewise.
36843         * lib/dup-safer.c: Likewise.
36844         * lib/dup2.c: Likewise.
36845         * lib/eealloc.h: Likewise.
36846         * lib/error.c: Likewise.
36847         * lib/error.h: Likewise.
36848         * lib/euidaccess.c: Likewise.
36849         * lib/exclude.c: Likewise.
36850         * lib/exclude.h: Likewise.
36851         * lib/execute.c: Likewise.
36852         * lib/execute.h: Likewise.
36853         * lib/exitfail.c: Likewise.
36854         * lib/exitfail.h: Likewise.
36855         * lib/expl.c: Likewise.
36856         * lib/fatal-signal.c: Likewise.
36857         * lib/fatal-signal.h: Likewise.
36858         * lib/fbufmode.c: Likewise.
36859         * lib/fbufmode.h: Likewise.
36860         * lib/fchdir.c: Likewise.
36861         * lib/fchmodat.c: Likewise.
36862         * lib/fchownat.c: Likewise.
36863         * lib/fcntl--.h: Likewise.
36864         * lib/fcntl-safer.h: Likewise.
36865         * lib/fcntl.in.h: Likewise.
36866         * lib/fd-safer.c: Likewise.
36867         * lib/fflush.c: Likewise.
36868         * lib/file-has-acl.c: Likewise.
36869         * lib/file-set.c: Likewise.
36870         * lib/file-type.c: Likewise.
36871         * lib/file-type.h: Likewise.
36872         * lib/fileblocks.c: Likewise.
36873         * lib/filemode.c: Likewise.
36874         * lib/filemode.h: Likewise.
36875         * lib/filename.h: Likewise.
36876         * lib/filenamecat.c: Likewise.
36877         * lib/filenamecat.h: Likewise.
36878         * lib/findprog.c: Likewise.
36879         * lib/findprog.h: Likewise.
36880         * lib/float.in.h: Likewise.
36881         * lib/floor.c: Likewise.
36882         * lib/floorf.c: Likewise.
36883         * lib/floorl.c: Likewise.
36884         * lib/fopen-safer.c: Likewise.
36885         * lib/fopen.c: Likewise.
36886         * lib/fpending.c: Likewise.
36887         * lib/fpending.h: Likewise.
36888         * lib/fprintf.c: Likewise.
36889         * lib/fprintftime.h: Likewise.
36890         * lib/fpucw.h: Likewise.
36891         * lib/fpurge.c: Likewise.
36892         * lib/fpurge.h: Likewise.
36893         * lib/freadable.c: Likewise.
36894         * lib/freadable.h: Likewise.
36895         * lib/freadahead.c: Likewise.
36896         * lib/freadahead.h: Likewise.
36897         * lib/freading.c: Likewise.
36898         * lib/freading.h: Likewise.
36899         * lib/free.c: Likewise.
36900         * lib/freopen.c: Likewise.
36901         * lib/frexp.c: Likewise.
36902         * lib/frexpl.c: Likewise.
36903         * lib/fseek.c: Likewise.
36904         * lib/fseterr.c: Likewise.
36905         * lib/fseterr.h: Likewise.
36906         * lib/fstatat.c: Likewise.
36907         * lib/fstrcmp.c: Likewise.
36908         * lib/fstrcmp.h: Likewise.
36909         * lib/fsusage.c: Likewise.
36910         * lib/fsusage.h: Likewise.
36911         * lib/ftell.c: Likewise.
36912         * lib/ftello.c: Likewise.
36913         * lib/fts-cycle.c: Likewise.
36914         * lib/fts.c: Likewise.
36915         * lib/fts_.h: Likewise.
36916         * lib/full-read.c: Likewise.
36917         * lib/full-read.h: Likewise.
36918         * lib/full-write.c: Likewise.
36919         * lib/full-write.h: Likewise.
36920         * lib/fwritable.c: Likewise.
36921         * lib/fwritable.h: Likewise.
36922         * lib/fwriteerror.c: Likewise.
36923         * lib/fwriteerror.h: Likewise.
36924         * lib/fwriting.c: Likewise.
36925         * lib/fwriting.h: Likewise.
36926         * lib/gcd.c: Likewise.
36927         * lib/gcd.h: Likewise.
36928         * lib/getcwd.c: Likewise.
36929         * lib/getdate.h: Likewise.
36930         * lib/getdate.y: Likewise.
36931         * lib/getdomainname.c: Likewise.
36932         * lib/getdomainname.h: Likewise.
36933         * lib/getgroups.c: Likewise.
36934         * lib/gethostname.c: Likewise.
36935         * lib/gethrxtime.c: Likewise.
36936         * lib/gethrxtime.h: Likewise.
36937         * lib/getloadavg.c: Likewise.
36938         * lib/getndelim2.c: Likewise.
36939         * lib/getndelim2.h: Likewise.
36940         * lib/getnline.c: Likewise.
36941         * lib/getnline.h: Likewise.
36942         * lib/getopt.c: Likewise.
36943         * lib/getopt.in.h: Likewise.
36944         * lib/getopt1.c: Likewise.
36945         * lib/getopt_int.h: Likewise.
36946         * lib/getpagesize.h: Likewise.
36947         * lib/getsubopt.c: Likewise.
36948         * lib/gettime.c: Likewise.
36949         * lib/getugroups.c: Likewise.
36950         * lib/getugroups.h: Likewise.
36951         * lib/getusershell.c: Likewise.
36952         * lib/gl_anyavltree_list1.h: Likewise.
36953         * lib/gl_anyavltree_list2.h: Likewise.
36954         * lib/gl_anyhash_list1.h: Likewise.
36955         * lib/gl_anyhash_list2.h: Likewise.
36956         * lib/gl_anylinked_list1.h: Likewise.
36957         * lib/gl_anylinked_list2.h: Likewise.
36958         * lib/gl_anyrbtree_list1.h: Likewise.
36959         * lib/gl_anyrbtree_list2.h: Likewise.
36960         * lib/gl_anytree_list1.h: Likewise.
36961         * lib/gl_anytree_list2.h: Likewise.
36962         * lib/gl_anytree_oset.h: Likewise.
36963         * lib/gl_anytreehash_list1.h: Likewise.
36964         * lib/gl_anytreehash_list2.h: Likewise.
36965         * lib/gl_array_list.c: Likewise.
36966         * lib/gl_array_list.h: Likewise.
36967         * lib/gl_array_oset.c: Likewise.
36968         * lib/gl_array_oset.h: Likewise.
36969         * lib/gl_avltree_list.c: Likewise.
36970         * lib/gl_avltree_list.h: Likewise.
36971         * lib/gl_avltree_oset.c: Likewise.
36972         * lib/gl_avltree_oset.h: Likewise.
36973         * lib/gl_avltreehash_list.c: Likewise.
36974         * lib/gl_avltreehash_list.h: Likewise.
36975         * lib/gl_carray_list.c: Likewise.
36976         * lib/gl_carray_list.h: Likewise.
36977         * lib/gl_linked_list.c: Likewise.
36978         * lib/gl_linked_list.h: Likewise.
36979         * lib/gl_linkedhash_list.c: Likewise.
36980         * lib/gl_linkedhash_list.h: Likewise.
36981         * lib/gl_list.c: Likewise.
36982         * lib/gl_list.h: Likewise.
36983         * lib/gl_oset.c: Likewise.
36984         * lib/gl_oset.h: Likewise.
36985         * lib/gl_rbtree_list.c: Likewise.
36986         * lib/gl_rbtree_list.h: Likewise.
36987         * lib/gl_rbtree_oset.c: Likewise.
36988         * lib/gl_rbtree_oset.h: Likewise.
36989         * lib/gl_rbtreehash_list.c: Likewise.
36990         * lib/gl_rbtreehash_list.h: Likewise.
36991         * lib/gl_sublist.c: Likewise.
36992         * lib/gl_sublist.h: Likewise.
36993         * lib/group-member.c: Likewise.
36994         * lib/group-member.h: Likewise.
36995         * lib/hard-locale.c: Likewise.
36996         * lib/hard-locale.h: Likewise.
36997         * lib/hash-pjw.c: Likewise.
36998         * lib/hash-pjw.h: Likewise.
36999         * lib/hash-triple.c: Likewise.
37000         * lib/hash.c: Likewise.
37001         * lib/hash.h: Likewise.
37002         * lib/human.c: Likewise.
37003         * lib/human.h: Likewise.
37004         * lib/i-ring.c: Likewise.
37005         * lib/i-ring.h: Likewise.
37006         * lib/idcache.c: Likewise.
37007         * lib/imaxabs.c: Likewise.
37008         * lib/imaxdiv.c: Likewise.
37009         * lib/inet_pton.c: Likewise.
37010         * lib/inet_pton.h: Likewise.
37011         * lib/intprops.h: Likewise.
37012         * lib/inttostr.c: Likewise.
37013         * lib/inttostr.h: Likewise.
37014         * lib/inttypes.in.h: Likewise.
37015         * lib/isapipe.c: Likewise.
37016         * lib/isdir.c: Likewise.
37017         * lib/isnan.c: Likewise.
37018         * lib/isnan.h: Likewise.
37019         * lib/isnanf.c: Likewise.
37020         * lib/isnanf.h: Likewise.
37021         * lib/isnanl-nolibm.h: Likewise.
37022         * lib/isnanl.c: Likewise.
37023         * lib/isnanl.h: Likewise.
37024         * lib/javacomp.c: Likewise.
37025         * lib/javacomp.h: Likewise.
37026         * lib/javaexec.c: Likewise.
37027         * lib/javaexec.h: Likewise.
37028         * lib/javaversion.c: Likewise.
37029         * lib/javaversion.h: Likewise.
37030         * lib/javaversion.java: Likewise.
37031         * lib/lbrkprop.h: Likewise.
37032         * lib/lchmod.h: Likewise.
37033         * lib/lchown.c: Likewise.
37034         * lib/ldexpl.c: Likewise.
37035         * lib/linebreak.c: Likewise.
37036         * lib/linebreak.h: Likewise.
37037         * lib/linebuffer.c: Likewise.
37038         * lib/linebuffer.h: Likewise.
37039         * lib/locale.in.h: Likewise.
37040         * lib/logl.c: Likewise.
37041         * lib/long-options.c: Likewise.
37042         * lib/long-options.h: Likewise.
37043         * lib/lstat.c: Likewise.
37044         * lib/lstat.h: Likewise.
37045         * lib/math.in.h: Likewise.
37046         * lib/mbchar.c: Likewise.
37047         * lib/mbchar.h: Likewise.
37048         * lib/mbfile.h: Likewise.
37049         * lib/mbiter.h: Likewise.
37050         * lib/mbscasecmp.c: Likewise.
37051         * lib/mbscasestr.c: Likewise.
37052         * lib/mbschr.c: Likewise.
37053         * lib/mbscspn.c: Likewise.
37054         * lib/mbslen.c: Likewise.
37055         * lib/mbsncasecmp.c: Likewise.
37056         * lib/mbsnlen.c: Likewise.
37057         * lib/mbspbrk.c: Likewise.
37058         * lib/mbspcasecmp.c: Likewise.
37059         * lib/mbsrchr.c: Likewise.
37060         * lib/mbssep.c: Likewise.
37061         * lib/mbsspn.c: Likewise.
37062         * lib/mbsstr.c: Likewise.
37063         * lib/mbstok_r.c: Likewise.
37064         * lib/mbswidth.c: Likewise.
37065         * lib/mbswidth.h: Likewise.
37066         * lib/mbuiter.h: Likewise.
37067         * lib/memcasecmp.c: Likewise.
37068         * lib/memcasecmp.h: Likewise.
37069         * lib/memchr.c: Likewise.
37070         * lib/memcmp.c: Likewise.
37071         * lib/memcoll.c: Likewise.
37072         * lib/memcoll.h: Likewise.
37073         * lib/memcpy.c: Likewise.
37074         * lib/memrchr.c: Likewise.
37075         * lib/mkancesdirs.c: Likewise.
37076         * lib/mkdir-p.c: Likewise.
37077         * lib/mkdir-p.h: Likewise.
37078         * lib/mkdir.c: Likewise.
37079         * lib/mkdirat.c: Likewise.
37080         * lib/mkdtemp.c: Likewise.
37081         * lib/mkstemp-safer.c: Likewise.
37082         * lib/mkstemp.c: Likewise.
37083         * lib/modechange.c: Likewise.
37084         * lib/modechange.h: Likewise.
37085         * lib/mountlist.c: Likewise.
37086         * lib/mountlist.h: Likewise.
37087         * lib/mpsort.c: Likewise.
37088         * lib/nanosleep.c: Likewise.
37089         * lib/obstack.c: Likewise.
37090         * lib/obstack.h: Likewise.
37091         * lib/open-safer.c: Likewise.
37092         * lib/open.c: Likewise.
37093         * lib/openat-die.c: Likewise.
37094         * lib/openat-priv.h: Likewise.
37095         * lib/openat-proc.c: Likewise.
37096         * lib/openat.c: Likewise.
37097         * lib/openat.h: Likewise.
37098         * lib/pagealign_alloc.c: Likewise.
37099         * lib/pagealign_alloc.h: Likewise.
37100         * lib/physmem.c: Likewise.
37101         * lib/physmem.h: Likewise.
37102         * lib/pipe-safer.c: Likewise.
37103         * lib/pipe.c: Likewise.
37104         * lib/pipe.h: Likewise.
37105         * lib/posixtm.c: Likewise.
37106         * lib/posixtm.h: Likewise.
37107         * lib/posixver.c: Likewise.
37108         * lib/printf-frexp.c: Likewise.
37109         * lib/printf-frexp.h: Likewise.
37110         * lib/printf-frexpl.c: Likewise.
37111         * lib/printf-frexpl.h: Likewise.
37112         * lib/printf.c: Likewise.
37113         * lib/progname.c: Likewise.
37114         * lib/progname.h: Likewise.
37115         * lib/progreloc.c: Likewise.
37116         * lib/putenv.c: Likewise.
37117         * lib/quote.c: Likewise.
37118         * lib/quote.h: Likewise.
37119         * lib/quotearg.c: Likewise.
37120         * lib/quotearg.h: Likewise.
37121         * lib/raise.c: Likewise.
37122         * lib/readline.c: Likewise.
37123         * lib/readline.h: Likewise.
37124         * lib/readlink.c: Likewise.
37125         * lib/readtokens.c: Likewise.
37126         * lib/readtokens.h: Likewise.
37127         * lib/readtokens0.c: Likewise.
37128         * lib/readtokens0.h: Likewise.
37129         * lib/readutmp.c: Likewise.
37130         * lib/readutmp.h: Likewise.
37131         * lib/realloc.c: Likewise.
37132         * lib/relocwrapper.c: Likewise.
37133         * lib/rename-dest-slash.c: Likewise.
37134         * lib/rename.c: Likewise.
37135         * lib/rmdir.c: Likewise.
37136         * lib/rpmatch.c: Likewise.
37137         * lib/safe-read.c: Likewise.
37138         * lib/safe-read.h: Likewise.
37139         * lib/safe-write.c: Likewise.
37140         * lib/safe-write.h: Likewise.
37141         * lib/same-inode.h: Likewise.
37142         * lib/same.c: Likewise.
37143         * lib/same.h: Likewise.
37144         * lib/save-cwd.c: Likewise.
37145         * lib/save-cwd.h: Likewise.
37146         * lib/savedir.c: Likewise.
37147         * lib/savedir.h: Likewise.
37148         * lib/savewd.c: Likewise.
37149         * lib/savewd.h: Likewise.
37150         * lib/search.in.h: Likewise.
37151         * lib/setenv.c: Likewise.
37152         * lib/setenv.h: Likewise.
37153         * lib/settime.c: Likewise.
37154         * lib/sh-quote.c: Likewise.
37155         * lib/sh-quote.h: Likewise.
37156         * lib/sig2str.c: Likewise.
37157         * lib/sig2str.h: Likewise.
37158         * lib/signal.in.h: Likewise.
37159         * lib/signbitd.c: Likewise.
37160         * lib/signbitf.c: Likewise.
37161         * lib/signbitl.c: Likewise.
37162         * lib/sigprocmask.c: Likewise.
37163         * lib/sincosl.c: Likewise.
37164         * lib/sleep.c: Likewise.
37165         * lib/sprintf.c: Likewise.
37166         * lib/sqrtl.c: Likewise.
37167         * lib/stat-time.h: Likewise.
37168         * lib/stdio--.h: Likewise.
37169         * lib/stdio-safer.h: Likewise.
37170         * lib/stdlib--.h: Likewise.
37171         * lib/stdlib-safer.h: Likewise.
37172         * lib/stdlib.in.h: Likewise.
37173         * lib/stpcpy.c: Likewise.
37174         * lib/stpncpy.c: Likewise.
37175         * lib/strchrnul.c: Likewise.
37176         * lib/strcspn.c: Likewise.
37177         * lib/strerror.c: Likewise.
37178         * lib/strftime.c: Likewise.
37179         * lib/strftime.h: Likewise.
37180         * lib/striconveh.c: Likewise.
37181         * lib/striconveh.h: Likewise.
37182         * lib/striconveha.c: Likewise.
37183         * lib/striconveha.h: Likewise.
37184         * lib/stripslash.c: Likewise.
37185         * lib/strnlen1.c: Likewise.
37186         * lib/strnlen1.h: Likewise.
37187         * lib/strtod.c: Likewise.
37188         * lib/strtoimax.c: Likewise.
37189         * lib/strtok_r.c: Likewise.
37190         * lib/strtol.c: Likewise.
37191         * lib/strtoll.c: Likewise.
37192         * lib/strtoul.c: Likewise.
37193         * lib/strtoull.c: Likewise.
37194         * lib/sysexits.in.h: Likewise.
37195         * lib/tempname.c: Likewise.
37196         * lib/tempname.h: Likewise.
37197         * lib/timespec.h: Likewise.
37198         * lib/tls.c: Likewise.
37199         * lib/tls.h: Likewise.
37200         * lib/tmpdir.c: Likewise.
37201         * lib/tmpdir.h: Likewise.
37202         * lib/tmpfile-safer.c: Likewise.
37203         * lib/tmpfile.c: Likewise.
37204         * lib/trigl.c: Likewise.
37205         * lib/trigl.h: Likewise.
37206         * lib/trim.c: Likewise.
37207         * lib/trim.h: Likewise.
37208         * lib/trunc.c: Likewise.
37209         * lib/truncf.c: Likewise.
37210         * lib/truncl.c: Likewise.
37211         * lib/tsearch.c: Likewise.
37212         * lib/unicodeio.c: Likewise.
37213         * lib/unicodeio.h: Likewise.
37214         * lib/unistd--.h: Likewise.
37215         * lib/unistd-safer.h: Likewise.
37216         * lib/unistdio/ulc-fprintf.c: Likewise.
37217         * lib/unistdio/ulc-vfprintf.c: Likewise.
37218         * lib/unlinkdir.c: Likewise.
37219         * lib/unlinkdir.h: Likewise.
37220         * lib/unlocked-io.h: Likewise.
37221         * lib/unsetenv.c: Likewise.
37222         * lib/userspec.c: Likewise.
37223         * lib/utime.c: Likewise.
37224         * lib/utimecmp.c: Likewise.
37225         * lib/utimecmp.h: Likewise.
37226         * lib/utimens.c: Likewise.
37227         * lib/verify.h: Likewise.
37228         * lib/verror.c: Likewise.
37229         * lib/verror.h: Likewise.
37230         * lib/version-etc-fsf.c: Likewise.
37231         * lib/version-etc.c: Likewise.
37232         * lib/version-etc.h: Likewise.
37233         * lib/vfprintf.c: Likewise.
37234         * lib/vprintf.c: Likewise.
37235         * lib/vsprintf.c: Likewise.
37236         * lib/w32spawn.h: Likewise.
37237         * lib/wait-process.c: Likewise.
37238         * lib/wait-process.h: Likewise.
37239         * lib/wcwidth.c: Likewise.
37240         * lib/write-any-file.c: Likewise.
37241         * lib/xalloc-die.c: Likewise.
37242         * lib/xalloc.h: Likewise.
37243         * lib/xasprintf.c: Likewise.
37244         * lib/xgetcwd.c: Likewise.
37245         * lib/xgetcwd.h: Likewise.
37246         * lib/xgetdomainname.c: Likewise.
37247         * lib/xgetdomainname.h: Likewise.
37248         * lib/xgethostname.c: Likewise.
37249         * lib/xmalloc.c: Likewise.
37250         * lib/xmalloca.c: Likewise.
37251         * lib/xmalloca.h: Likewise.
37252         * lib/xmemcoll.c: Likewise.
37253         * lib/xnanosleep.c: Likewise.
37254         * lib/xreadlink.c: Likewise.
37255         * lib/xreadlink.h: Likewise.
37256         * lib/xsetenv.c: Likewise.
37257         * lib/xsetenv.h: Likewise.
37258         * lib/xstriconv.c: Likewise.
37259         * lib/xstriconv.h: Likewise.
37260         * lib/xstrndup.c: Likewise.
37261         * lib/xstrndup.h: Likewise.
37262         * lib/xstrtod.c: Likewise.
37263         * lib/xstrtod.h: Likewise.
37264         * lib/xstrtol-error.c: Likewise.
37265         * lib/xstrtol.c: Likewise.
37266         * lib/xstrtol.h: Likewise.
37267         * lib/xtime.h: Likewise.
37268         * lib/xvasprintf.c: Likewise.
37269         * lib/xvasprintf.h: Likewise.
37270         * lib/yesno.c: Likewise.
37271         * lib/yesno.h: Likewise.
37272         * posix-modules: Likewise.
37273         * tests/test-alloca-opt.c: Likewise.
37274         * tests/test-arcfour.c: Likewise.
37275         * tests/test-arctwo.c: Likewise.
37276         * tests/test-argmatch.c: Likewise.
37277         * tests/test-argp-2.sh: Likewise.
37278         * tests/test-argp.c: Likewise.
37279         * tests/test-arpa_inet.c: Likewise.
37280         * tests/test-array_list.c: Likewise.
37281         * tests/test-array_oset.c: Likewise.
37282         * tests/test-atexit.c: Likewise.
37283         * tests/test-avltree_list.c: Likewise.
37284         * tests/test-avltree_oset.c: Likewise.
37285         * tests/test-avltreehash_list.c: Likewise.
37286         * tests/test-base64.c: Likewise.
37287         * tests/test-binary-io.c: Likewise.
37288         * tests/test-byteswap.c: Likewise.
37289         * tests/test-c-ctype.c: Likewise.
37290         * tests/test-c-strcasecmp.c: Likewise.
37291         * tests/test-c-strcasestr.c: Likewise.
37292         * tests/test-c-strncasecmp.c: Likewise.
37293         * tests/test-c-strstr.c: Likewise.
37294         * tests/test-canonicalize-lgpl.c: Likewise.
37295         * tests/test-canonicalize.c: Likewise.
37296         * tests/test-carray_list.c: Likewise.
37297         * tests/test-ceilf.c: Likewise.
37298         * tests/test-ceill.c: Likewise.
37299         * tests/test-count-one-bits.c: Likewise.
37300         * tests/test-crc.c: Likewise.
37301         * tests/test-dirname.c: Likewise.
37302         * tests/test-fbufmode.c: Likewise.
37303         * tests/test-fcntl.c: Likewise.
37304         * tests/test-fflush.c: Likewise.
37305         * tests/test-floorf.c: Likewise.
37306         * tests/test-floorl.c: Likewise.
37307         * tests/test-fopen.c: Likewise.
37308         * tests/test-fprintf-posix.c: Likewise.
37309         * tests/test-fprintf-posix.h: Likewise.
37310         * tests/test-fpurge.c: Likewise.
37311         * tests/test-freadable.c: Likewise.
37312         * tests/test-freadahead.c: Likewise.
37313         * tests/test-freading.c: Likewise.
37314         * tests/test-freopen.c: Likewise.
37315         * tests/test-frexp.c: Likewise.
37316         * tests/test-frexpl.c: Likewise.
37317         * tests/test-fseek.c: Likewise.
37318         * tests/test-fseeko.c: Likewise.
37319         * tests/test-fseterr.c: Likewise.
37320         * tests/test-fstrcmp.c: Likewise.
37321         * tests/test-ftell.c: Likewise.
37322         * tests/test-ftello.c: Likewise.
37323         * tests/test-fwritable.c: Likewise.
37324         * tests/test-fwriting.c: Likewise.
37325         * tests/test-getaddrinfo.c: Likewise.
37326         * tests/test-getpass.c: Likewise.
37327         * tests/test-gettimeofday.c: Likewise.
37328         * tests/test-hmac-md5.c: Likewise.
37329         * tests/test-hmac-sha1.c: Likewise.
37330         * tests/test-iconv.c: Likewise.
37331         * tests/test-iconvme.c: Likewise.
37332         * tests/test-inttypes.c: Likewise.
37333         * tests/test-isnan.c: Likewise.
37334         * tests/test-isnanf.c: Likewise.
37335         * tests/test-isnanl-nolibm.c: Likewise.
37336         * tests/test-isnanl.c: Likewise.
37337         * tests/test-isnanl.h: Likewise.
37338         * tests/test-ldexpl.c: Likewise.
37339         * tests/test-linked_list.c: Likewise.
37340         * tests/test-linkedhash_list.c: Likewise.
37341         * tests/test-locale.c: Likewise.
37342         * tests/test-localename.c: Likewise.
37343         * tests/test-lock.c: Likewise.
37344         * tests/test-lseek.c: Likewise.
37345         * tests/test-malloca.c: Likewise.
37346         * tests/test-math.c: Likewise.
37347         * tests/test-mbscasecmp.c: Likewise.
37348         * tests/test-mbscasestr1.c: Likewise.
37349         * tests/test-mbscasestr2.c: Likewise.
37350         * tests/test-mbscasestr3.c: Likewise.
37351         * tests/test-mbscasestr4.c: Likewise.
37352         * tests/test-mbschr.c: Likewise.
37353         * tests/test-mbscspn.c: Likewise.
37354         * tests/test-mbsncasecmp.c: Likewise.
37355         * tests/test-mbspbrk.c: Likewise.
37356         * tests/test-mbspcasecmp.c: Likewise.
37357         * tests/test-mbsrchr.c: Likewise.
37358         * tests/test-mbsspn.c: Likewise.
37359         * tests/test-mbsstr1.c: Likewise.
37360         * tests/test-mbsstr2.c: Likewise.
37361         * tests/test-mbsstr3.c: Likewise.
37362         * tests/test-md5.c: Likewise.
37363         * tests/test-memmem.c: Likewise.
37364         * tests/test-netinet_in.c: Likewise.
37365         * tests/test-open.c: Likewise.
37366         * tests/test-printf-frexp.c: Likewise.
37367         * tests/test-printf-frexpl.c: Likewise.
37368         * tests/test-printf-posix.c: Likewise.
37369         * tests/test-printf-posix.h: Likewise.
37370         * tests/test-rbtree_list.c: Likewise.
37371         * tests/test-rbtree_oset.c: Likewise.
37372         * tests/test-rbtreehash_list.c: Likewise.
37373         * tests/test-read-file.c: Likewise.
37374         * tests/test-rijndael.c: Likewise.
37375         * tests/test-search.c: Likewise.
37376         * tests/test-signbit.c: Likewise.
37377         * tests/test-sleep.c: Likewise.
37378         * tests/test-snprintf-posix.c: Likewise.
37379         * tests/test-snprintf-posix.h: Likewise.
37380         * tests/test-snprintf.c: Likewise.
37381         * tests/test-sprintf-posix.c: Likewise.
37382         * tests/test-sprintf-posix.h: Likewise.
37383         * tests/test-stat-time.c: Likewise.
37384         * tests/test-stdbool.c: Likewise.
37385         * tests/test-stdint.c: Likewise.
37386         * tests/test-stdio.c: Likewise.
37387         * tests/test-stdlib.c: Likewise.
37388         * tests/test-stpncpy.c: Likewise.
37389         * tests/test-strcasestr.c: Likewise.
37390         * tests/test-striconv.c: Likewise.
37391         * tests/test-striconveh.c: Likewise.
37392         * tests/test-striconveha.c: Likewise.
37393         * tests/test-string.c: Likewise.
37394         * tests/test-sys_select.c: Likewise.
37395         * tests/test-sys_socket.c: Likewise.
37396         * tests/test-sys_stat.c: Likewise.
37397         * tests/test-sys_time.c: Likewise.
37398         * tests/test-sysexits.c: Likewise.
37399         * tests/test-time.c: Likewise.
37400         * tests/test-tls.c: Likewise.
37401         * tests/test-trunc.c: Likewise.
37402         * tests/test-truncf.c: Likewise.
37403         * tests/test-truncl.c: Likewise.
37404         * tests/test-unistd.c: Likewise.
37405         * tests/test-vasnprintf-posix.c: Likewise.
37406         * tests/test-vasnprintf-posix2.c: Likewise.
37407         * tests/test-vasnprintf.c: Likewise.
37408         * tests/test-vasprintf-posix.c: Likewise.
37409         * tests/test-vasprintf.c: Likewise.
37410         * tests/test-verify.c: Likewise.
37411         * tests/test-vfprintf-posix.c: Likewise.
37412         * tests/test-vprintf-posix.c: Likewise.
37413         * tests/test-vsnprintf-posix.c: Likewise.
37414         * tests/test-vsnprintf.c: Likewise.
37415         * tests/test-vsprintf-posix.c: Likewise.
37416         * tests/test-wchar.c: Likewise.
37417         * tests/test-wctype.c: Likewise.
37418         * tests/test-wcwidth.c: Likewise.
37419         * tests/test-xstrtol.c: Likewise.
37420         * tests/test-xvasprintf.c: Likewise.
37421         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37422         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37423         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37424         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37425         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37426         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37427         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37428         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37429         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37430         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37431         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37432         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37433         * tests/uniname/test-uninames.c: Likewise.
37434         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37435         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
37436         * tests/unistdio/test-u16-printf1.h: Likewise.
37437         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37438         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37439         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37440         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37441         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37442         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37443         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37444         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
37445         * tests/unistdio/test-u32-printf1.h: Likewise.
37446         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37447         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37448         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37449         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37450         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37451         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37452         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37453         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
37454         * tests/unistdio/test-u8-printf1.h: Likewise.
37455         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37456         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37457         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37458         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37459         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37460         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37461         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37462         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
37463         * tests/unistdio/test-ulc-printf1.h: Likewise.
37464         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37465         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37466         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37467         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37468         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37469         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37470         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37471         * tests/uniwidth/test-u16-width.c: Likewise.
37472         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37473         * tests/uniwidth/test-u32-width.c: Likewise.
37474         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37475         * tests/uniwidth/test-u8-width.c: Likewise.
37476         * tests/uniwidth/test-uc_width.c: Likewise.
37477         * config/srclist-update: Likewise.
37478         (fixlicense): Update to GPLv3+.
37479
37480         Change copyright notice from LGPLv2.1+ to LGPLv3+.
37481         * tests/test-tsearch.c: Change copyright notice.
37482
37483         Change copyright notice from LGPLv2.0+ to LGPLv3+.
37484         * lib/c-strcaseeq.h: Change copyright notice.
37485         * lib/streq.h: Likewise.
37486         * lib/uniconv.h: Likewise.
37487         * lib/uniconv/u-conv-from-enc.h: Likewise.
37488         * lib/uniconv/u-conv-to-enc.h: Likewise.
37489         * lib/uniconv/u-strconv-from-enc.h: Likewise.
37490         * lib/uniconv/u-strconv-to-enc.h: Likewise.
37491         * lib/uniconv/u16-conv-from-enc.c: Likewise.
37492         * lib/uniconv/u16-conv-to-enc.c: Likewise.
37493         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
37494         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
37495         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
37496         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
37497         * lib/uniconv/u32-conv-from-enc.c: Likewise.
37498         * lib/uniconv/u32-conv-to-enc.c: Likewise.
37499         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
37500         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
37501         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
37502         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
37503         * lib/uniconv/u8-conv-from-enc.c: Likewise.
37504         * lib/uniconv/u8-conv-to-enc.c: Likewise.
37505         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
37506         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
37507         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
37508         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
37509         * lib/uniname.h: Likewise.
37510         * lib/uniname/uniname.c: Likewise.
37511         * lib/unistdio.h: Likewise.
37512         * lib/unistdio/u-asnprintf.h: Likewise.
37513         * lib/unistdio/u-asprintf.h: Likewise.
37514         * lib/unistdio/u-printf-args.c: Likewise.
37515         * lib/unistdio/u-printf-args.h: Likewise.
37516         * lib/unistdio/u-printf-parse.h: Likewise.
37517         * lib/unistdio/u-snprintf.h: Likewise.
37518         * lib/unistdio/u-sprintf.h: Likewise.
37519         * lib/unistdio/u-vasprintf.h: Likewise.
37520         * lib/unistdio/u-vsnprintf.h: Likewise.
37521         * lib/unistdio/u-vsprintf.h: Likewise.
37522         * lib/unistdio/u16-asnprintf.c: Likewise.
37523         * lib/unistdio/u16-asprintf.c: Likewise.
37524         * lib/unistdio/u16-printf-parse.c: Likewise.
37525         * lib/unistdio/u16-snprintf.c: Likewise.
37526         * lib/unistdio/u16-sprintf.c: Likewise.
37527         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
37528         * lib/unistdio/u16-u16-asprintf.c: Likewise.
37529         * lib/unistdio/u16-u16-snprintf.c: Likewise.
37530         * lib/unistdio/u16-u16-sprintf.c: Likewise.
37531         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
37532         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
37533         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
37534         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
37535         * lib/unistdio/u16-vasnprintf.c: Likewise.
37536         * lib/unistdio/u16-vasprintf.c: Likewise.
37537         * lib/unistdio/u16-vsnprintf.c: Likewise.
37538         * lib/unistdio/u16-vsprintf.c: Likewise.
37539         * lib/unistdio/u32-asnprintf.c: Likewise.
37540         * lib/unistdio/u32-asprintf.c: Likewise.
37541         * lib/unistdio/u32-printf-parse.c: Likewise.
37542         * lib/unistdio/u32-snprintf.c: Likewise.
37543         * lib/unistdio/u32-sprintf.c: Likewise.
37544         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
37545         * lib/unistdio/u32-u32-asprintf.c: Likewise.
37546         * lib/unistdio/u32-u32-snprintf.c: Likewise.
37547         * lib/unistdio/u32-u32-sprintf.c: Likewise.
37548         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
37549         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
37550         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
37551         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
37552         * lib/unistdio/u32-vasnprintf.c: Likewise.
37553         * lib/unistdio/u32-vasprintf.c: Likewise.
37554         * lib/unistdio/u32-vsnprintf.c: Likewise.
37555         * lib/unistdio/u32-vsprintf.c: Likewise.
37556         * lib/unistdio/u8-asnprintf.c: Likewise.
37557         * lib/unistdio/u8-asprintf.c: Likewise.
37558         * lib/unistdio/u8-printf-parse.c: Likewise.
37559         * lib/unistdio/u8-snprintf.c: Likewise.
37560         * lib/unistdio/u8-sprintf.c: Likewise.
37561         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
37562         * lib/unistdio/u8-u8-asprintf.c: Likewise.
37563         * lib/unistdio/u8-u8-snprintf.c: Likewise.
37564         * lib/unistdio/u8-u8-sprintf.c: Likewise.
37565         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
37566         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
37567         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
37568         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
37569         * lib/unistdio/u8-vasnprintf.c: Likewise.
37570         * lib/unistdio/u8-vasprintf.c: Likewise.
37571         * lib/unistdio/u8-vsnprintf.c: Likewise.
37572         * lib/unistdio/u8-vsprintf.c: Likewise.
37573         * lib/unistdio/ulc-asnprintf.c: Likewise.
37574         * lib/unistdio/ulc-asprintf.c: Likewise.
37575         * lib/unistdio/ulc-printf-parse.c: Likewise.
37576         * lib/unistdio/ulc-snprintf.c: Likewise.
37577         * lib/unistdio/ulc-sprintf.c: Likewise.
37578         * lib/unistdio/ulc-vasnprintf.c: Likewise.
37579         * lib/unistdio/ulc-vasprintf.c: Likewise.
37580         * lib/unistdio/ulc-vsnprintf.c: Likewise.
37581         * lib/unistdio/ulc-vsprintf.c: Likewise.
37582         * lib/unistr.h: Likewise.
37583         * lib/unistr/u-cpy-alloc.h: Likewise.
37584         * lib/unistr/u-cpy.h: Likewise.
37585         * lib/unistr/u-endswith.h: Likewise.
37586         * lib/unistr/u-move.h: Likewise.
37587         * lib/unistr/u-set.h: Likewise.
37588         * lib/unistr/u-startswith.h: Likewise.
37589         * lib/unistr/u-stpcpy.h: Likewise.
37590         * lib/unistr/u-stpncpy.h: Likewise.
37591         * lib/unistr/u-strcat.h: Likewise.
37592         * lib/unistr/u-strcpy.h: Likewise.
37593         * lib/unistr/u-strcspn.h: Likewise.
37594         * lib/unistr/u-strdup.h: Likewise.
37595         * lib/unistr/u-strlen.h: Likewise.
37596         * lib/unistr/u-strncat.h: Likewise.
37597         * lib/unistr/u-strncpy.h: Likewise.
37598         * lib/unistr/u-strnlen.h: Likewise.
37599         * lib/unistr/u-strpbrk.h: Likewise.
37600         * lib/unistr/u-strspn.h: Likewise.
37601         * lib/unistr/u-strstr.h: Likewise.
37602         * lib/unistr/u-strtok.h: Likewise.
37603         * lib/unistr/u16-check.c: Likewise.
37604         * lib/unistr/u16-chr.c: Likewise.
37605         * lib/unistr/u16-cmp.c: Likewise.
37606         * lib/unistr/u16-cpy-alloc.c: Likewise.
37607         * lib/unistr/u16-cpy.c: Likewise.
37608         * lib/unistr/u16-endswith.c: Likewise.
37609         * lib/unistr/u16-mblen.c: Likewise.
37610         * lib/unistr/u16-mbsnlen.c: Likewise.
37611         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37612         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37613         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37614         * lib/unistr/u16-mbtouc.c: Likewise.
37615         * lib/unistr/u16-mbtoucr.c: Likewise.
37616         * lib/unistr/u16-move.c: Likewise.
37617         * lib/unistr/u16-next.c: Likewise.
37618         * lib/unistr/u16-prev.c: Likewise.
37619         * lib/unistr/u16-set.c: Likewise.
37620         * lib/unistr/u16-startswith.c: Likewise.
37621         * lib/unistr/u16-stpcpy.c: Likewise.
37622         * lib/unistr/u16-stpncpy.c: Likewise.
37623         * lib/unistr/u16-strcat.c: Likewise.
37624         * lib/unistr/u16-strchr.c: Likewise.
37625         * lib/unistr/u16-strcmp.c: Likewise.
37626         * lib/unistr/u16-strcpy.c: Likewise.
37627         * lib/unistr/u16-strcspn.c: Likewise.
37628         * lib/unistr/u16-strdup.c: Likewise.
37629         * lib/unistr/u16-strlen.c: Likewise.
37630         * lib/unistr/u16-strmblen.c: Likewise.
37631         * lib/unistr/u16-strmbtouc.c: Likewise.
37632         * lib/unistr/u16-strncat.c: Likewise.
37633         * lib/unistr/u16-strncmp.c: Likewise.
37634         * lib/unistr/u16-strncpy.c: Likewise.
37635         * lib/unistr/u16-strnlen.c: Likewise.
37636         * lib/unistr/u16-strpbrk.c: Likewise.
37637         * lib/unistr/u16-strrchr.c: Likewise.
37638         * lib/unistr/u16-strspn.c: Likewise.
37639         * lib/unistr/u16-strstr.c: Likewise.
37640         * lib/unistr/u16-strtok.c: Likewise.
37641         * lib/unistr/u16-to-u32.c: Likewise.
37642         * lib/unistr/u16-to-u8.c: Likewise.
37643         * lib/unistr/u16-uctomb-aux.c: Likewise.
37644         * lib/unistr/u16-uctomb.c: Likewise.
37645         * lib/unistr/u32-check.c: Likewise.
37646         * lib/unistr/u32-chr.c: Likewise.
37647         * lib/unistr/u32-cmp.c: Likewise.
37648         * lib/unistr/u32-cpy-alloc.c: Likewise.
37649         * lib/unistr/u32-cpy.c: Likewise.
37650         * lib/unistr/u32-endswith.c: Likewise.
37651         * lib/unistr/u32-mblen.c: Likewise.
37652         * lib/unistr/u32-mbsnlen.c: Likewise.
37653         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37654         * lib/unistr/u32-mbtouc.c: Likewise.
37655         * lib/unistr/u32-mbtoucr.c: Likewise.
37656         * lib/unistr/u32-move.c: Likewise.
37657         * lib/unistr/u32-next.c: Likewise.
37658         * lib/unistr/u32-prev.c: Likewise.
37659         * lib/unistr/u32-set.c: Likewise.
37660         * lib/unistr/u32-startswith.c: Likewise.
37661         * lib/unistr/u32-stpcpy.c: Likewise.
37662         * lib/unistr/u32-stpncpy.c: Likewise.
37663         * lib/unistr/u32-strcat.c: Likewise.
37664         * lib/unistr/u32-strchr.c: Likewise.
37665         * lib/unistr/u32-strcmp.c: Likewise.
37666         * lib/unistr/u32-strcpy.c: Likewise.
37667         * lib/unistr/u32-strcspn.c: Likewise.
37668         * lib/unistr/u32-strdup.c: Likewise.
37669         * lib/unistr/u32-strlen.c: Likewise.
37670         * lib/unistr/u32-strmblen.c: Likewise.
37671         * lib/unistr/u32-strmbtouc.c: Likewise.
37672         * lib/unistr/u32-strncat.c: Likewise.
37673         * lib/unistr/u32-strncmp.c: Likewise.
37674         * lib/unistr/u32-strncpy.c: Likewise.
37675         * lib/unistr/u32-strnlen.c: Likewise.
37676         * lib/unistr/u32-strpbrk.c: Likewise.
37677         * lib/unistr/u32-strrchr.c: Likewise.
37678         * lib/unistr/u32-strspn.c: Likewise.
37679         * lib/unistr/u32-strstr.c: Likewise.
37680         * lib/unistr/u32-strtok.c: Likewise.
37681         * lib/unistr/u32-to-u16.c: Likewise.
37682         * lib/unistr/u32-to-u8.c: Likewise.
37683         * lib/unistr/u32-uctomb.c: Likewise.
37684         * lib/unistr/u8-check.c: Likewise.
37685         * lib/unistr/u8-chr.c: Likewise.
37686         * lib/unistr/u8-cmp.c: Likewise.
37687         * lib/unistr/u8-cpy-alloc.c: Likewise.
37688         * lib/unistr/u8-cpy.c: Likewise.
37689         * lib/unistr/u8-endswith.c: Likewise.
37690         * lib/unistr/u8-mblen.c: Likewise.
37691         * lib/unistr/u8-mbsnlen.c: Likewise.
37692         * lib/unistr/u8-mbtouc-aux.c: Likewise.
37693         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37694         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37695         * lib/unistr/u8-mbtouc.c: Likewise.
37696         * lib/unistr/u8-mbtoucr.c: Likewise.
37697         * lib/unistr/u8-move.c: Likewise.
37698         * lib/unistr/u8-next.c: Likewise.
37699         * lib/unistr/u8-prev.c: Likewise.
37700         * lib/unistr/u8-set.c: Likewise.
37701         * lib/unistr/u8-startswith.c: Likewise.
37702         * lib/unistr/u8-stpcpy.c: Likewise.
37703         * lib/unistr/u8-stpncpy.c: Likewise.
37704         * lib/unistr/u8-strcat.c: Likewise.
37705         * lib/unistr/u8-strchr.c: Likewise.
37706         * lib/unistr/u8-strcmp.c: Likewise.
37707         * lib/unistr/u8-strcpy.c: Likewise.
37708         * lib/unistr/u8-strcspn.c: Likewise.
37709         * lib/unistr/u8-strdup.c: Likewise.
37710         * lib/unistr/u8-strlen.c: Likewise.
37711         * lib/unistr/u8-strmblen.c: Likewise.
37712         * lib/unistr/u8-strmbtouc.c: Likewise.
37713         * lib/unistr/u8-strncat.c: Likewise.
37714         * lib/unistr/u8-strncmp.c: Likewise.
37715         * lib/unistr/u8-strncpy.c: Likewise.
37716         * lib/unistr/u8-strnlen.c: Likewise.
37717         * lib/unistr/u8-strpbrk.c: Likewise.
37718         * lib/unistr/u8-strrchr.c: Likewise.
37719         * lib/unistr/u8-strspn.c: Likewise.
37720         * lib/unistr/u8-strstr.c: Likewise.
37721         * lib/unistr/u8-strtok.c: Likewise.
37722         * lib/unistr/u8-to-u16.c: Likewise.
37723         * lib/unistr/u8-to-u32.c: Likewise.
37724         * lib/unistr/u8-uctomb-aux.c: Likewise.
37725         * lib/unistr/u8-uctomb.c: Likewise.
37726         * lib/unitypes.h: Likewise.
37727         * lib/uniwidth.h: Likewise.
37728         * lib/uniwidth/cjk.h: Likewise.
37729         * lib/uniwidth/u16-strwidth.c: Likewise.
37730         * lib/uniwidth/u16-width.c: Likewise.
37731         * lib/uniwidth/u32-strwidth.c: Likewise.
37732         * lib/uniwidth/u32-width.c: Likewise.
37733         * lib/uniwidth/u8-strwidth.c: Likewise.
37734         * lib/uniwidth/u8-width.c: Likewise.
37735         * lib/uniwidth/width.c: Likewise.
37736
37737 2007-10-07  Bruno Haible  <bruno@clisp.org>
37738
37739         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
37740         The file is still under LGPL (see modules/inttypes).
37741
37742 2007-10-06  Bruno Haible  <bruno@clisp.org>
37743
37744         * modules/trunc (Dependencies): Add 'extensions'.
37745         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
37746         Reported by Ben Pfaff <blp@gnu.org>.
37747
37748 2007-10-06  Bruno Haible  <bruno@clisp.org>
37749
37750         * modules/freopen-tests: New file.
37751         * tests/test-freopen.c: New file.
37752
37753         * modules/fopen-tests: New file.
37754         * tests/test-fopen.c: New file.
37755
37756         * modules/fopen: New file.
37757         * lib/fopen.c: New file.
37758         * m4/fopen.m4: New file.
37759         * modules/freopen: New file.
37760         * lib/freopen.c: New file.
37761         * m4/freopen.m4: New file.
37762         * lib/stdio.in.h (fopen, freopen): New declarations.
37763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
37764         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37765         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
37766         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37767         * doc/functions/fopen.texi: Mention the 'fopen' module.
37768         * doc/functions/freopen.texi: Mention the 'freopen' module.
37769
37770 2007-10-06  Bruno Haible  <bruno@clisp.org>
37771
37772         * modules/open-tests: New file.
37773         * tests/test-open.c: New file.
37774
37775         * modules/open: New file.
37776         * lib/open.c: New file.
37777         * m4/open.m4: New file.
37778         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
37779         lib/open.c does.
37780         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
37781         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
37782         macros.
37783         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
37784         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
37785         REPLACE_OPEN.
37786         * doc/functions/open.texi: Mention the 'open' module.
37787
37788 2007-10-04  Bruno Haible  <bruno@clisp.org>
37789
37790         * modules/ceill-tests: New file.
37791         * tests/test-ceill.c: New file.
37792
37793         * modules/ceill: New file.
37794         * lib/ceill.c: Replace entire file.
37795         * m4/ceill.m4: New file.
37796         * lib/math.in.h (ceill): Replace declaration.
37797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
37798         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
37799         * doc/functions/ceill.texi: Mention the 'ceill' module.
37800         * modules/mathl (Files): Remove lib/ceill.c.
37801         (Depends-on): Add ceill.
37802
37803 2007-10-04  Bruno Haible  <bruno@clisp.org>
37804
37805         * modules/ceilf-tests: New file.
37806         * tests/test-ceilf.c: New file.
37807
37808         * modules/ceilf: New file.
37809         * lib/ceil.c: New file.
37810         * lib/ceilf.c: New file.
37811         * m4/ceilf.m4: New file.
37812         * lib/math.in.h (ceilf): New declaration.
37813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
37814         HAVE_DECL_CEILF.
37815         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
37816         HAVE_DECL_CEILF.
37817         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
37818
37819 2007-10-04  Bruno Haible  <bruno@clisp.org>
37820
37821         * modules/floorl-tests: New file.
37822         * tests/test-floorl.c: New file.
37823
37824         * modules/floorl: New file.
37825         * lib/floorl.c: Replace entire file.
37826         * m4/floorl.m4: New file.
37827         * lib/math.in.h (floorl): Replace declaration.
37828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
37829         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
37830         * doc/functions/floorl.texi: Mention the 'floorl' module.
37831         * modules/mathl (Files): Remove lib/floorl.c.
37832         (Depends-on): Add floorl.
37833
37834 2007-10-04  Bruno Haible  <bruno@clisp.org>
37835
37836         * modules/floorf-tests: New file.
37837         * tests/test-floorf.c: New file.
37838
37839         * modules/floorf: New file.
37840         * lib/floor.c: New file.
37841         * lib/floorf.c: New file.
37842         * m4/floorf.m4: New file.
37843         * lib/math.in.h (floorf): New declaration.
37844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
37845         HAVE_DECL_FLOORF.
37846         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
37847         HAVE_DECL_FLOORF.
37848         * doc/functions/floorf.texi: Mention the 'floorf' module.
37849
37850 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
37851             Bruno Haible  <bruno@clisp.org>
37852
37853         Advertise for the Git server instead of the CVS server.
37854         * doc/gnulib-intro.texi (Steady Development): Mention the Git
37855         repository instead of the CVS one.
37856         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
37857         about all VCS systems generically.
37858         * doc/gnulib.texi (Introduction): Capitalize `Git'.
37859
37860 2007-10-04  Bruno Haible  <bruno@clisp.org>
37861
37862         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
37863         means.
37864         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
37865
37866 2007-10-04  Bruno Haible  <bruno@clisp.org>
37867
37868         * modules/truncl-tests: New file.
37869         * tests/test-truncl.c: New file.
37870
37871         * modules/truncl: New file.
37872         * lib/truncl.c: New file.
37873         * m4/truncl.m4: New file.
37874         * lib/math.in.h (truncl): New declaration.
37875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
37876         HAVE_DECL_TRUNCL.
37877         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
37878         HAVE_DECL_TRUNCL.
37879         * doc/functions/truncl.texi: Mention the 'truncl' module.
37880
37881 2007-10-04  Bruno Haible  <bruno@clisp.org>
37882
37883         * modules/truncf-tests: New file.
37884         * tests/test-truncf.c: New file.
37885
37886         * modules/truncf: New file.
37887         * lib/trunc.c: Make paramerizable through USE_* macros.
37888         * lib/truncf.c: New file.
37889         * m4/truncf.m4: New file.
37890         * lib/math.in.h (truncf): New declaration.
37891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
37892         HAVE_DECL_TRUNCF.
37893         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
37894         HAVE_DECL_TRUNCF.
37895         * doc/functions/truncf.texi: Mention the 'truncf' module.
37896
37897 2007-10-03  Bruno Haible  <bruno@clisp.org>
37898
37899         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
37900         augmentation also for tests modules.
37901         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
37902         * modules/atexit-tests (Makefile.am): Likewise.
37903         * modules/binary-io-tests (Makefile.am): Likewise.
37904         * modules/c-strcase-tests (Makefile.am): Likewise.
37905         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
37906         * modules/canonicalize-tests (Makefile.am): Likewise.
37907         * modules/closein-tests (Makefile.am): Likewise.
37908         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37909         * modules/freadahead-tests (Makefile.am): Likewise.
37910         * modules/fseek-tests (Makefile.am): Likewise.
37911         * modules/fseeko-tests (Makefile.am): Likewise.
37912         * modules/ftell-tests (Makefile.am): Likewise.
37913         * modules/ftello-tests (Makefile.am): Likewise.
37914         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
37915         * modules/isnanl-tests (Makefile.am): Likewise.
37916         * modules/lseek-tests (Makefile.am): Likewise.
37917         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37918         * modules/mbscasestr-tests (Makefile.am): Likewise.
37919         * modules/mbschr-tests (Makefile.am): Likewise.
37920         * modules/mbscspn-tests (Makefile.am): Likewise.
37921         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37922         * modules/mbspbrk-tests (Makefile.am): Likewise.
37923         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37924         * modules/mbsrchr-tests (Makefile.am): Likewise.
37925         * modules/mbsspn-tests (Makefile.am): Likewise.
37926         * modules/mbsstr-tests (Makefile.am): Likewise.
37927         * modules/printf-posix-tests (Makefile.am): Likewise.
37928         * modules/snprintf-posix-tests (Makefile.am): Likewise.
37929         * modules/sprintf-posix-tests (Makefile.am): Likewise.
37930         * modules/tsearch-tests (Makefile.am): Likewise.
37931         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37932         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37933         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37934         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37935         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37936         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37937         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37938         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37939         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
37940         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
37941         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37942         * modules/xstrtol-tests (Makefile.am): Likewise.
37943         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37944         * modules/yesno-tests (Makefile.am): Likewise.
37945
37946 2007-10-03  Bruno Haible  <bruno@clisp.org>
37947
37948         * modules/trunc-tests: New file.
37949         * tests/test-trunc.c: New file.
37950
37951         * modules/trunc: New file.
37952         * lib/trunc.c: New file.
37953         * m4/trunc.m4: New file.
37954         * lib/math.in.h (trunc): New declaration.
37955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
37956         HAVE_DECL_TRUNC.
37957         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
37958         HAVE_DECL_TRUNC.
37959         * doc/functions/trunc.texi: Mention the 'trunc' module.
37960
37961 2007-10-03  Bruno Haible  <bruno@clisp.org>
37962
37963         * tests/test-fpending.c: New file, mostly copied
37964         from coreutils/lib/t-fpending.c.
37965         * modules/fpending-tests: New file.
37966
37967 2007-10-03  Bruno Haible  <bruno@clisp.org>
37968
37969         Port the stdio extensions to QNX (untested).
37970         * lib/fseterr.c (fseterr): Add support for QNX.
37971         * lib/fbufmode.c (fbufmode): Likewise.
37972         * lib/freadable.c (freadable): Likewise.
37973         * lib/fwritable.c (fwritable): Likewise.
37974         * lib/freading.c (freading): Likewise.
37975         * lib/fwriting.c (fwriting): Likewise.
37976         * lib/freadahead.c (freadahed): Likewise.
37977         * lib/fpurge.c (fpurge): Likewise.
37978         * lib/fseeko.c (rpl_fseeko): Likewise.
37979
37980 2007-10-03  Bruno Haible  <bruno@clisp.org>
37981             Jim Meyering  <jim@meyering.net>
37982             Eric Blake  <ebb9@byu.net>
37983
37984         * doc/relocatable.texi: Use @command instead of @program.
37985
37986 2007-10-02  Jim Meyering  <jim@meyering.net>
37987
37988         Perform one more "_.h" -> ".in.h" substitution.
37989         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
37990         instead of unistd_.h here, too.
37991
37992 2007-10-01  Bruno Haible  <bruno@clisp.org>
37993
37994         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
37995         Needed for the alloca-opt module.
37996
37997 2007-09-30  Bruno Haible  <bruno@clisp.org>
37998
37999         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38000         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38001         alloca_.h.
38002         * lib/argz.in.h: Renamed from lib/argz_.h.
38003         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38004         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38005         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38006         byteswap_.h.
38007         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38008         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38009         dirent_.h.
38010         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38011         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38012         fcntl_.h.
38013         * lib/float.in.h: Renamed from lib/float_.h.
38014         * modules/float (Files, Makefile.am): Use float.in.h instead of
38015         float_.h.
38016         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38017         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38018         fnmatch_.h.
38019         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38020         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38021         getopt_.h.
38022         * lib/glob.in.h: Renamed from lib/glob_.h.
38023         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38024         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38025         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38026         iconv_.h.
38027         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38028         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38029         inttypes_.h.
38030         * lib/locale.in.h: Renamed from lib/locale_.h.
38031         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38032         locale_.h.
38033         * lib/math.in.h: Renamed from lib/math_.h.
38034         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38035         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38036         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38037         of netinet_in_.h. Add dependency.
38038         * lib/poll.in.h: Renamed from lib/poll_.h.
38039         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38040         * lib/search.in.h: Renamed from lib/search_.h.
38041         * modules/search (Files, Makefile.am): Use search.in.h instead of
38042         search_.h.
38043         * lib/signal.in.h: Renamed from lib/signal_.h.
38044         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38045         _signal.h.
38046         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38047         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38048         stdbool_.h.
38049         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38050         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38051         stdint_.h.
38052         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38053         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38054         stdio_.h.
38055         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38056         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38057         stdlib_.h.
38058         * lib/string.in.h: Renamed from lib/string_.h.
38059         * modules/string (Files, Makefile.am): Use string.in.h instead of
38060         string_.h.
38061         * doc/gnulib-tool.texi (Initial import): Update.
38062         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38063         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38064         of sys_select_.h. Add dependency.
38065         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38066         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38067         of sys_socket_.h.
38068         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38069         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38070         sys_stat_.h.
38071         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38072         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38073         sys_time_.h.
38074         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38075         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38076         sysexits_.h.
38077         * lib/time.in.h: Renamed from lib/time_.h.
38078         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38079         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38080         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38081         unistd_.h.
38082         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38083         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38084         wchar_.h.
38085         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38086         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38087         wctype_.h.
38088         * build-aux/bootstrap (slurp): Update.
38089         * lib/.cppi-disable: Update.
38090
38091 2007-09-30  Bruno Haible  <bruno@clisp.org>
38092
38093         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38094         Needed on BeOS.
38095
38096 2007-09-30  Bruno Haible  <bruno@clisp.org>
38097
38098         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38099
38100 2007-09-29  Bruno Haible  <bruno@clisp.org>
38101
38102         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38103
38104 2007-09-29  Bruno Haible  <bruno@clisp.org>
38105
38106         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38107         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38108         * build-aux/install-reloc: Compile also areadlink.c.
38109         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38110
38111 2007-09-29  Bruno Haible  <bruno@clisp.org>
38112
38113         * gnulib-tool (func_emit_initmacro_done): Indentation.
38114
38115 2007-09-29  Bruno Haible  <bruno@clisp.org>
38116
38117         * README: Add CVS checkout update instructions.
38118         Info from Bob Proulx <bob@proulx.com>.
38119
38120 2007-09-28  Eric Blake  <ebb9@byu.net>
38121
38122         Provide move-if-change.
38123         * build-aux/move-if-change: New file, based on best practice
38124         rather than any canonical upstream location.
38125
38126 2007-09-28  Jim Meyering  <jim@meyering.net>
38127
38128         Fix canonicalize loop-detection corner case.
38129         Do not attempt to stat the symlink values stored via seen_triple.
38130         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38131         on linux-2.6.18, (but not 2.6.22).
38132         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38133         triple_compare.  The former compares dev,ino,filename, while the latter
38134         would actually stat dirname(filename) when dev and ino were equal.
38135         * lib/hash-triple.c: Install <string.h>.
38136         (STREQ): Define.
38137         (triple_compare_ino_str): New function.
38138         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38139
38140 2007-09-28  Eric Blake  <ebb9@byu.net>
38141
38142         Enforce that AC_REPLACE_FUNCS files exist.
38143         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38144         override check for typos.
38145
38146         Fix test-closein on Solaris 10.
38147         * tests/test-closein.c (main): Don't assume stdin can be inherited
38148         closed on all systems.
38149         * tests/test-closein.sh: Likewise.
38150         Reported by Piotr Tarnowski.
38151
38152 2007-09-28  Jim Meyering  <jim@meyering.net>
38153
38154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38155
38156 2007-09-27  Jim Meyering  <jim@meyering.net>
38157
38158         canonicalize: Avoid a false-positive cycle failure.
38159         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38160         Sort.  Remove cycle-check.
38161         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38162         not cycle-check.h.
38163         (seen_triple): New function.
38164         (canonicalize_filename_mode): Use it instead of cycle-check.
38165         * tests/test-canonicalize.c: Add a test for this bug.
38166         * tests/test-canonicalize.sh: Set up and run the test.
38167
38168         New module, file-set, from coreutils.
38169         * modules/file-set: Define it.
38170         * lib/file-set.c, lib/file-set.h: Implement.
38171
38172         New module, hash-triple, from coreutils.
38173         * modules/hash-triple: Define it.
38174         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38175
38176 2007-09-25  Eric Blake  <ebb9@byu.net>
38177
38178         Fix strerror on Interix.
38179         * lib/string_.h (strerror): Declare replacement.
38180         * doc/functions/strerror.texi (strerror): Document the Interix
38181         shortcoming.
38182         * modules/string (Makefile.am): Support new hooks.
38183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38184         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38185         gl_FUNC_STRERROR_SEPARATE.
38186         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38187         * lib/strerror.c (rpl_strerror): Provide replacement.
38188         * modules/strerror (Depends-on): Add string.
38189         (configure.ac): Detect use of module.
38190         * tests/test-strerror.c: New file.
38191         * modules/strerror-tests: New test module.
38192         * modules/argp (Depends-on): Add strerror.
38193         * modules/error (Depends-on): Likewise.
38194         Reported by Martin Koeppe.
38195
38196 2007-09-24  Bruno Haible  <bruno@clisp.org>
38197
38198         * README: Update git instructions.
38199
38200 2007-09-24  Eric Blake  <ebb9@byu.net>
38201
38202         Revert fpending breakage from 2007-09-08.
38203         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38204         __fpending.c.
38205
38206 2007-09-24  Jim Meyering  <jim@meyering.net>
38207
38208         filenamecat.c: Add a test.
38209         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38210         showing how the function works when DIR is the empty string.
38211
38212 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38213
38214         * tests/test-canonicalize.sh: Turn on executable bit.
38215
38216 2007-09-19  Eric Blake  <ebb9@byu.net>
38217
38218         * README: Update CVS instructions.
38219
38220 2007-09-18  Bruno Haible  <bruno@clisp.org>
38221
38222         * modules/areadlink: New file.
38223         * lib/areadlink.h (areadlink): New declaration.
38224         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38225
38226 2007-09-17  Jim Meyering  <jim@meyering.net>
38227
38228         * lib/savewd.c (ESTALE) [!defined]: Define.
38229         Reported to be required on Interix by Martin Koeppe.
38230
38231 2007-09-17  Bruno Haible  <bruno@clisp.org>
38232
38233         * gnulib-tool (func_version): Use $version.
38234
38235 2007-09-16  Bruno Haible  <bruno@clisp.org>
38236
38237         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38238         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38239         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38240         Reported by Greg Schafer <gschafer@zip.com.au>.
38241
38242 2007-09-15  Bruno Haible  <bruno@clisp.org>
38243
38244         * gnulib-tool (sed): Try a little harder to make bash understand the
38245         alias.
38246         Reported by Bruce Korb <bruce.korb@gmail.com>.
38247
38248 2007-09-13  Eric Blake  <ebb9@byu.net>
38249
38250         * ChangeLog: Remove conflict markers.
38251
38252 2007-09-13  Simon Josefsson  <simon@josefsson.org>
38253
38254         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
38255         Reported by Bruno Haible <bruno@clisp.org>.
38256
38257 2007-09-12  Bruno Haible  <bruno@clisp.org>
38258
38259         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
38260         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
38261         is not defined.
38262
38263 2007-09-12  Eric Blake  <ebb9@byu.net>
38264
38265         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
38266         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
38267         Autoconf definition.
38268         * modules/euidaccess (Depends-on): Add extensions, for
38269         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
38270         * modules/fnmatch (Depends-on): Likewise.
38271         * modules/getaddrinfo (Depends-on): Likewise.
38272         * modules/getdelim (Depends-on): Likewise.
38273         * modules/getline (Depends-on): Likewise.
38274         * modules/getsubopt (Depends-on): Likewise.
38275         * modules/gettext (Depends-on): Likewise.
38276         * modules/group-member (Depends-on): Likewise.
38277         * modules/mbchar (Depends-on): Likewise.
38278         * modules/memmem (Depends-on): Likewise.
38279         * modules/mempcpy (Depends-on): Likewise.
38280         * modules/memrchr (Depends-on): Likewise.
38281         * modules/pagealign_alloc (Depends-on): Likewise.
38282         * modules/readutmp (Depends-on): Likewise.
38283         * modules/stpcpy (Depends-on): Likewise.
38284         * modules/stpncpy (Depends-on): Likewise.
38285         * modules/strchrnul (Depends-on): Likewise.
38286         * modules/strndup (Depends-on): Likewise.
38287         * modules/strsep (Depends-on): Likewise.
38288         * modules/strverscmp (Depends-on): Likewise.
38289         * modules/vasprintf (Depends-on): Likewise.
38290         * modules/wcwidth (Depends-on): Likewise.
38291         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38292         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38293         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38294         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38295         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38296         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38297         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38298         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38299         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38300         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38301         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38302         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38303         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38304         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38305         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38306         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38307         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38308         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38309         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38310         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38311         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38312         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38313         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38314         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38315         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38316         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38317         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38318         so that lock.m4 can be used in gettext without extensions module.
38319
38320 2007-09-11  Bruno Haible  <bruno@clisp.org>
38321
38322         * m4/isc-posix.m4: Remove file.
38323         Suggested by Eric Blake.
38324
38325 2007-09-11  Eric Blake  <ebb9@byu.net>
38326
38327         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38328
38329 2007-09-10  Bruno Haible  <bruno@clisp.org>
38330
38331         * posix-modules: Fix typo in error message.
38332         Reported by Matt <mkraai@beckman.com>.
38333
38334 2007-09-09  Bruno Haible  <bruno@clisp.org>
38335
38336         * doc/functions/getdelim.texi: Update list of platforms lacking the
38337         function.
38338         * doc/functions/getline.texi: Likewise.
38339
38340 2007-09-09  Jim Meyering  <jim@meyering.net>
38341
38342         * lib/hash.c (hash_initialize): Detect calloc failure.
38343         Reported by Bruno Haible.
38344
38345 2007-09-09  Bruno Haible  <bruno@clisp.org>
38346
38347         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38348         malloc or realloc fails.
38349
38350 2007-09-09  Bruno Haible  <bruno@clisp.org>
38351
38352         * modules/getcwd (Depends-on): Add malloc-posix.
38353         * modules/glob (Depends-on): Likewise.
38354         * modules/putenv (Depends-on): Likewise.
38355         * modules/strdup (Depends-on): Likewise.
38356         * modules/getdelim (Depends-on): Add realloc-posix.
38357         * modules/read-file (Depends-on): Likewise.
38358
38359 2007-09-09  Bruno Haible  <bruno@clisp.org>
38360
38361         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38362         (gl_FUNC_MALLOC_POSIX): Require it.
38363         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38364         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38365         * modules/realloc (Files): Add m4/malloc.m4.
38366         * modules/calloc (Files): Likewise.
38367
38368 2007-09-09  Bruno Haible  <bruno@clisp.org>
38369
38370         * modules/malloc-posix: New file.
38371         * modules/malloc (Depends-on): Add malloc-posix.
38372         * lib/malloc.c: Include errno.h.
38373         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38374         and a POSIX-compatible malloc into a single function. Set ENOMEM
38375         when returning NULL.
38376         * m4/malloc.m4: New file.
38377         * doc/functions/malloc.texi: Mention the malloc-posix module.
38378         * lib/stdlib_.h (malloc): New declaration.
38379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38380         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38381         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38382         and HAVE_MALLOC_POSIX.
38383
38384 2007-09-09  Bruno Haible  <bruno@clisp.org>
38385
38386         * modules/realloc-posix: New file.
38387         * modules/realloc (Depends-on): Add realloc-posix.
38388         * lib/realloc.c: Include errno.h.
38389         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38390         and a POSIX-compatible realloc into a single function. Set ENOMEM
38391         when returning NULL.
38392         * m4/realloc.m4: New file.
38393         * doc/functions/realloc.texi: Mention the realloc-posix module.
38394         * lib/stdlib_.h (realloc): New declaration.
38395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38396         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38397         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38398         and HAVE_REALLOC_POSIX.
38399
38400 2007-09-09  Bruno Haible  <bruno@clisp.org>
38401
38402         * modules/calloc-posix: New file.
38403         * modules/calloc (Depends-on): Add calloc-posix.
38404         * lib/calloc.c: Include errno.h.
38405         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38406         and a POSIX-compatible calloc into a single function. Set ENOMEM
38407         when returning NULL.
38408         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38409         * doc/functions/calloc.texi: Mention the calloc-posix module.
38410         * lib/stdlib_.h (calloc): New declaration.
38411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38412         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
38413         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
38414         and HAVE_CALLOC_POSIX.
38415
38416 2007-09-09  Bruno Haible  <bruno@clisp.org>
38417
38418         Allow for modules to show an arbitrary notice.
38419         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
38420         * gnulib-tool: New option --extract-notice.
38421         (func_usage): Document it.
38422         (sed_extract_prog): Update.
38423         (func_get_notice): New function.
38424         (func_modules_notice): New function.
38425         (func_import, func_create_testdir): Invoke it.
38426         Suggested by Jim Meyering.
38427
38428 2007-09-09  Bruno Haible  <bruno@clisp.org>
38429
38430         * gnulib-tool: New options --verbose, --quiet.
38431         (func_usage): Document them.
38432         (verbose): New variable.
38433         (func_execute_command): New function.
38434         (func_import): Don't show the module list and the file list if
38435         $verbose < 0.
38436         (func_create_testdir): Likewise. Use func_execute_command.
38437         (func_create_megatestdir): Use func_execute_command.
38438
38439 2007-09-08  Bruno Haible  <bruno@clisp.org>
38440
38441         * gnulib-tool (func_import): Prefer rsync over wget when available,
38442         for fetching the PO files.
38443
38444 2007-09-08  Bruno Haible  <bruno@clisp.org>
38445
38446         * posix-modules: New file. Portions copied from gnulib-tool.
38447         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
38448
38449 2007-09-08  Jim Meyering  <jim@meyering.net>
38450
38451         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
38452         * lib/fpending.h: Rename from __fpending.h.
38453         * lib/fpending.c: Rename from __fpending.c.
38454         Include "fpending.h", not "__fpending.h".
38455         * lib/__fpending.h, lib/__fpending.c: Remove files.
38456         * modules/fpending (Files): Reflect new file names.
38457         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
38458
38459 2007-09-08  Bruno Haible  <bruno@clisp.org>
38460
38461         * m4/inttypes-h.m4: Remove stub file.
38462
38463 2007-09-07  Simon Josefsson  <simon@josefsson.org>
38464
38465         * doc/headers/stdint.texi: Discuss #include_next issue.
38466
38467 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38468
38469         * build-aux/bootstrap: Remove obsolete comment about wget --help.
38470
38471 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38472
38473         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
38474         in variable name.
38475
38476 2007-09-03  Jim Meyering  <jim@meyering.net>
38477
38478         New module: git-version-gen.
38479         * modules/git-version-gen: New file.
38480
38481         Import changes from coreutils for bootstrap script.
38482
38483         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
38484
38485         bootstrap: uses rsync to download the .po files
38486         * build-aux/bootstrap (po_download_command_format): New global.
38487         (download_po_files): Use rsync.
38488         (update_po_files): Don't remove .po files after download,
38489         so future rsync runs can take advantage of the copies.
38490
38491         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
38492
38493         Solve the unnecessary-.po-file-regeneration problem once and for all.
38494         * build-aux/bootstrap (download_po_files): New function, renamed from
38495         get_translations.  Now, downloads, but doesn't update LINGUAS.
38496         (update_po_files): New function.
38497
38498         bootstrap: Ignore more.
38499         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
38500         uniwidth to e.g., lib/.gitignore.
38501         (slurp): Handle the sys_stat_.h -> sys mapping, too.
38502
38503         * build-aux/bootstrap: New setting: vc_ignore.
38504         (insert_sorted_if_absent): Create $file if absent.
38505         Adapt to new, possibly empty, list: $vc_ignore.
38506
38507         bootstrap: generate more ignorable names
38508         * build-aux/bootstrap (slurp): When generating ignorable names,
38509         also map .sin to .sed, .gperf to .c, and .y to .c.
38510
38511 2007-09-03  Jim Meyering  <jim@meyering.net>
38512
38513         * build-aux/git-version-gen: New file, from coreutils.  For details, see
38514         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
38515
38516 2007-09-02  Bruno Haible  <bruno@clisp.org>
38517
38518         Fix mis-recognition of 'mcs' on QNX 6.
38519         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
38520         output contains the string "Mono".
38521         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
38522         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
38523
38524 2007-09-01  Bruno Haible  <bruno@clisp.org>
38525
38526         Fix collision between uniwidth/* and linebreak modules.
38527         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
38528         u32_width): Remove declarations.
38529         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
38530         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
38531         streq3, streq2, streq1, streq0): Remove functions.
38532         (STREQ): Remove macro.
38533         (is_cjk_encoding): Remove function.
38534         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
38535         (uc_width, u8_width, u16_width, u32_width): Remove functions.
38536         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
38537         * NEWS: Document the change.
38538
38539 2007-09-01  Bruno Haible  <bruno@clisp.org>
38540
38541         * lib/streq.h: Add double-inclusion guard.
38542
38543 2007-09-01  Karl Berry  <karl@gnu.org>
38544
38545         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
38546
38547 2007-08-28  Jim Meyering  <jim@meyering.net>
38548
38549         Rename mreadlink_with_size to areadlink_with_size.
38550         * NEWS: Document the change.
38551         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
38552         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
38553         * lib/mreadlink.h: Rename this to...
38554         * lib/areadlink.h: ...this.
38555         * modules/mreadlink-with-size: Rename this to...
38556         * modules/areadlink-with-size: ...this.
38557         * lib/canonicalize.c: Reflect the renaming.
38558         * modules/canonicalize: Likewise.
38559
38560 2007-08-26  Bruno Haible  <bruno@clisp.org>
38561
38562         * gnulib-tool (func_import): When deciding which files to remove,
38563         consider also dangling symbolic links.
38564         Reported by Eric Blake.
38565
38566 2007-08-26  Bruno Haible  <bruno@clisp.org>
38567
38568         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
38569
38570 2007-08-23  Simon Josefsson  <simon@josefsson.org>
38571
38572         * lib/readline.c: Don't include getline.h, the prototype is now
38573         found in stdio.h.
38574
38575 2007-08-23  Jim Meyering  <jim@meyering.net>
38576
38577         Getdelim touchup.
38578         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
38579         around the funlockfile call, since funlockfile never sets errno.
38580         Don't set errno upon failed realloc.
38581
38582 2007-08-22  Eric Blake  <ebb9@byu.net>
38583
38584         Getline touchups.
38585         * lib/getdelim.c (getdelim): Revert regression that required *n to
38586         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
38587         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
38588         getdelim, rather than whether implementation is missing.
38589         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
38590         * lib/stdio_.h (getline): Also declare if replacement is
38591         required.
38592         * doc/functions/getdelim.texi: New file.
38593         * doc/functions/getline.texi: Likewise.
38594         * doc/gnulib.texi (Function Substitutes): Add new files.
38595         Reported by Bruno Haible.
38596
38597 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
38598
38599         * users.txt: Add Guile.
38600
38601 2007-08-22  Eric Blake  <ebb9@byu.net>
38602
38603         * tests/test-getdelim.c (main): Use remove, not unlink.
38604         * tests/test-getline.c (main): Likewise.
38605
38606         Move getline and getdelim into stdio.h, per POSIX 200x.
38607         * modules/getline (Files): Remove getline.h.
38608         (Depends-on): Add stdio.
38609         (configure.ac): Add module indicator.
38610         * modules/getdelim (Files): Remove getdelim.h.
38611         (Depends-on): Add stdio.
38612         (configure.ac): Add module indicator.
38613         * modules/stdio (Makefile.am): Work with new indicators.
38614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38615         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
38616         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38617         * lib/getdelim.h: Delete.
38618         * lib/getline.h: Delete.
38619         * lib/stdio_.h (getdelim, getline): Declare.
38620         * modules/getdelim-tests: New module.
38621         * modules/getline-tests: Likewise.
38622         * tests/test-getdelim.c: New file.
38623         * tests/test-getline.c: Likewise.
38624         * NEWS: Document the change.
38625         * lib/getline.c: Update choice of header.
38626         * lib/csharpcomp.c: Likewise.
38627         * lib/getpass.c: Likewise.
38628         * lib/javacomp.c: Likewise.
38629         * lib/javaversion.c: Likewise.
38630         * lib/yesno.c: Likewise.
38631         * lib/getdelim.c: Likewise.
38632         (getdelim): Set errno on failure, and avoid memory leak.
38633
38634 2007-08-19  Bruno Haible  <bruno@clisp.org>
38635
38636         * modules/closein (Depends-on): Add freadahead.
38637         * lib/closein.c: Include freadahead.h.
38638         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
38639         is zero.
38640
38641 2007-08-19  Bruno Haible  <bruno@clisp.org>
38642
38643         * modules/freadahead-tests: New file.
38644         * tests/test-freadahead.sh: New file.
38645         * tests/test-freadahead.c: New file.
38646
38647         * modules/freadahead: New file.
38648         * lib/freadahead.h: New file.
38649         * lib/freadahead.c: New file.
38650         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
38651         fbufmode, fpurge, freadable, fwritable.
38652
38653 2007-08-19  Eric Blake  <ebb9@byu.net>
38654
38655         Test yesno in combination with closein.
38656         * lib/yesno.c (yesno): Document use of stdin.
38657         * modules/yesno-tests (Files): New module.
38658         * tests/test-yesno.c (main): New file.
38659         * tests/test-yesno.sh: Likewise.
38660
38661 2007-08-19  Bruno Haible  <bruno@clisp.org>
38662
38663         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
38664         * lib/fseeko.c (rpl_fseeko): Likewise.
38665         * lib/fseterr.c (fseterr): Likewise.
38666
38667 2007-08-19  Bruno Haible  <bruno@clisp.org>
38668
38669         * tests/test-lseek.c (main): Disable a test for BeOS.
38670         * doc/functions/lseek.texi: Document the BeOS bug.
38671
38672 2007-08-19  Bruno Haible  <bruno@clisp.org>
38673             Eric Blake  <ebb9@byu.net>
38674
38675         * lib/lseek.c: Include <sys/stat.h>.
38676         (rpl_lseek): Add workaround code also for Unix platforms.
38677         Needed for BeOS.
38678         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
38679         * doc/functions/lseek.texi: Document BeOS definiency.
38680
38681 2007-08-18  Bruno Haible  <bruno@clisp.org>
38682
38683         * modules/fstrcmp-tests: New file.
38684         * tests/test-fstrcmp.c: New file.
38685
38686 2007-08-18  Bruno Haible  <bruno@clisp.org>
38687
38688         * modules/fstrcmp: New file, from GNU gettext with modifications.
38689         * lib/fstrcmp.h: New file, from GNU gettext.
38690         * lib/fstrcmp.c: New file, from GNU gettext.
38691         * MODULES.html.sh (String handling): Add fstrcmp.
38692
38693 2007-08-18  Bruno Haible  <bruno@clisp.org>
38694
38695         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
38696         'bool'.
38697         (diag, compareseq): Remove const from the ctxt argument.
38698         (USE_HEURISTIC): Undefine at the end.
38699
38700 2007-08-18  Jim Meyering  <jim@meyering.net>
38701
38702         New file: lib/idcache.h
38703         * NEWS: Mention the addition.
38704         * modules/idcache (Files): Add lib/idcache.h
38705         * lib/idcache.c: Include "idcache.h".
38706         Don't include <sys/types.h>.
38707         Add a FIXME comment.
38708         Move file-scoped "static" declarations to the top.
38709         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
38710
38711 2007-08-17  Bruno Haible  <bruno@clisp.org>
38712         and Paul Eggert  <eggert@cs.ucla.edu>
38713
38714         * MODULES.html.sh: Add diffseq.
38715         * modules/diffseq: New file.
38716         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
38717         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
38718
38719 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38720
38721         Import changes from coreutils for bootstrap script.
38722
38723         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
38724
38725         * build-aux/bootstrap (slurp): Work even in environments where
38726         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
38727         current code does not slurp files whose names start with ".", and
38728         this looks like it might be a troublesome area.
38729
38730         2007-07-11  Jim Meyering  <jim@meyering.net>
38731
38732         If there's a GPL vN copyright comment, require that N == 3.
38733
38734         2007-07-08  Jim Meyering  <jim@meyering.net>
38735
38736         Run the coreutils-specific code only if tests/Makefile.am.in exists.
38737         * build-aux/bootstrap (mam_template): Move definition out of loop.
38738
38739         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
38740
38741         * build-aux/bootstrap (symlink_to_dir): Rename function from
38742         symlink_to_gnulib.  Add a directory parameter.  Update all
38743         callers.
38744         (cp_mark_as_generated): Also check for -- and link to -- files in
38745         gl/.
38746
38747         2007-07-08  Jim Meyering  <jim@meyering.net>
38748
38749         Adapt to deeper hierarchy in gnulib.
38750         * build-aux/bootstrap (symlink_to_dir): If the destination
38751         directory doesn't exist, create it. This is required at least for
38752         "lib/uniwidth/cjk.h".
38753
38754         2007-05-15  Jim Meyering  <jim@meyering.net>
38755
38756         * build-aux/bootstrap: Now that generated Makefile.am files
38757         are no longer under version control, they must be created at
38758         bootstrap time.
38759
38760 2007-08-14  Ben Pfaff  <blp@gnu.org>
38761
38762         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
38763
38764 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38765
38766         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
38767         given the changes below.
38768         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
38769         even on hosts that have padding bits beyond the supported 64.
38770
38771 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38772
38773         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
38774         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
38775         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
38776         depends on it.
38777         (xstrtol_error): Remove.
38778         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
38779         but with a different signature.
38780         (ATTRIBUTE_NORETURN, __attribute__): New macros.
38781         * lib/xstrtol-error.c: Include exitfail.h.
38782         (xstrtol_fatal): New function, with a different signature from the
38783         old xstrtol_error, so that the caller need not worry about passing
38784         in an exit status, or about storage management of the option argument.
38785         (xstrtol_error): Now a static function.  Redo signature to
38786         implement xstrtol_fatal.  Output the correct number of hyphens in
38787         front of the option so that the caller need not worry about
38788         storage management.
38789         (N_): New macro.
38790         (_): Remove; not used now.
38791         * modules/xstrtol: Depend on getopt.
38792         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
38793         of old STRTOL_FATAL_ERROR macro.
38794         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
38795         of test program.
38796         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
38797         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
38798
38799 2007-08-08  Eric Blake  <ebb9@byu.net>
38800
38801         * lib/xstrtol-error.c: Add missing include.
38802
38803         Move xstrtol messages into gnulib domain, when --pobase is used.
38804         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
38805         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
38806         * modules/xstrtol (Files): Distribute new file.
38807         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
38808         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
38809         * tests/test-xstrtol.c: ...into new file.
38810         * tests/test-xstrtoul.c: Also test xstrtoul.
38811         * tests/test-xstrtoimax.c: Also test xstrtoimax.
38812         * tests/test-xstrtoumax.c: Also test xstrtoumax.
38813         * tests/test-xstrtol.sh: Drive the tests.
38814         * tests/test-xstrtoimax.sh: Likewise.
38815         * tests/test-xstrtoumax.sh: Likewise.
38816         * modules/xstrtol-tests: New module.
38817         * modules/xstrtoimax-tests: Likewise.
38818         * modules/xstrtoumax-tests: Likewise.
38819
38820 2007-08-08  Jim Meyering  <jim@meyering.net>
38821
38822         New function: mfile_name_concat.
38823         * lib/filenamecat.c (mfile_name_concat): New function, just like
38824         file_name_concat, but return NULL upon failure rather than exiting
38825         with a diagnostic.
38826         * lib/filenamecat.h: Declare it.
38827
38828 2007-08-07  Bruno Haible  <bruno@clisp.org>
38829
38830         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
38831         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
38832         warning from gcc.
38833         Reported by Eric Blake.
38834
38835 2007-08-07  Simon Josefsson  <simon@josefsson.org>
38836
38837         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
38838         * modules/crypto/arcfour (License): Likewise.
38839         * modules/crypto/des-tests (License): Likewise.
38840         * modules/crypto/gc-arctwo-tests (License): Likewise.
38841         * modules/crypto/gc-des-tests (License): Likewise.
38842         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
38843         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
38844         * modules/crypto/gc-md2-tests (License): Likewise.
38845         * modules/crypto/gc-md4-tests (License): Likewise.
38846         * modules/crypto/gc-md5-tests (License): Likewise.
38847         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
38848         * modules/crypto/gc-rijndael-tests (License): Likewise.
38849         * modules/crypto/gc-sha1-tests (License): Likewise.
38850         * modules/crypto/gc-tests (License): Likewise.
38851         * modules/crypto/hmac-md5 (License): Likewise.
38852         * modules/crypto/hmac-sha1 (License): Likewise.
38853         * modules/crypto/md2-tests (License): Likewise.
38854         * modules/crypto/md4-tests (License): Likewise.
38855         * modules/crypto/md5 (License): Likewise.
38856         * modules/crypto/rijndael (License): Likewise.
38857         * modules/crypto/sha1 (License): Likewise.
38858         * modules/memxor (License): Likewise.
38859
38860 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
38861         and Bruno Haible  <bruno@clisp.org>
38862
38863         * NEWS: Describe interface changes to human, xstrtol.
38864         * lib/human.h: Include <xstrtol.h>.
38865         (human_options): Return enum strtol_error, not int.  Remove
38866         bool arg; take int * instead.
38867         * lib/human.c: Don't include "gettext.h".
38868         (_): Remove; no longer used.
38869         Don't include <xstrtol.h>, since human.h does it.
38870         (human_options): Adjust to abovementioned interface changes.
38871         Do not report error to stderr; that's now the caller's
38872         responsibility.
38873         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
38874         interface change.
38875         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
38876         Str, Argument_type_string.  All uses changed.  Put " argument"
38877         in diagnostics to make them clearer.  Change wording of suffix
38878         message for clarity.
38879         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
38880         Argument_type_string.
38881         (STRTOL_FATAL_WARN): Remove; no longer used.
38882         * modules/human (Depends-on): Remove gettext-h.
38883
38884 2007-08-06  Simon Josefsson  <simon@josefsson.org>
38885
38886         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
38887
38888 2007-07-31  Bruno Haible  <bruno@clisp.org>
38889
38890         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
38891         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
38892         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
38893
38894 2007-07-31  Bruno Haible  <bruno@clisp.org>
38895
38896         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
38897         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
38898
38899 2007-07-30  Bruno Haible  <bruno@clisp.org>
38900
38901         * modules/base64 (License): Use the synonymous term "LGPLv2+".
38902         * modules/c-ctype (License): Likewise.
38903         * modules/c-strcase (License): Likewise.
38904         * modules/check-version (License): Likewise.
38905         * modules/iconv (License): Likewise.
38906         * modules/iconv_open (License): Likewise.
38907         * modules/read-file (License): Likewise.
38908         * modules/striconv (License): Likewise.
38909         * modules/strverscmp (License): Likewise.
38910         * modules/vasprintf (License): Likewise.
38911         * modules/crypto/des (License): Likewise.
38912         * modules/crypto/gc (License): Likewise.
38913         * modules/crypto/gc-arcfour (License): Likewise.
38914         * modules/crypto/gc-arctwo (License): Likewise.
38915         * modules/crypto/gc-des (License): Likewise.
38916         * modules/crypto/gc-hmac-md5 (License): Likewise.
38917         * modules/crypto/gc-hmac-sha1 (License): Likewise.
38918         * modules/crypto/gc-md2 (License): Likewise.
38919         * modules/crypto/gc-md4 (License): Likewise.
38920         * modules/crypto/gc-md5 (License): Likewise.
38921         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
38922         * modules/crypto/gc-random (License): Likewise.
38923         * modules/crypto/gc-rijndael (License): Likewise.
38924         * modules/crypto/gc-sha1 (License): Likewise.
38925         * modules/crypto/md2 (License): Likewise.
38926         * modules/crypto/md4 (License): Likewise.
38927
38928 2007-07-30  Jim Meyering  <jim@meyering.net>
38929
38930         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
38931         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
38932         it has valid stat data.  This bug would cause du not to count the
38933         sizes of inaccessible directories.
38934         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
38935         in <http://bugzilla.redhat.com/250077>.
38936
38937 2007-07-25  Peter O'Gorman  <peter@pogma.com>
38938             Bruno Haible  <bruno@clisp.org>
38939
38940         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
38941         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
38942         #include_next, gives a diagnostic about it, but reports no error in
38943         the exit code.
38944         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38945
38946 2007-07-24  Ben Pfaff  <blp@gnu.org>
38947
38948         Improve name: "count-one-bits" is better than "popcount".
38949         * MODULES.html.sh: Update name.
38950         * lib/popcount.h: Renamed lib/count-one-bits.h.
38951         (popcount): Renamed count_one_bits.
38952         (popcountl): Renamed count_one_bits_l.
38953         (popcountll): Renamed count_one_bits_ll.
38954         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
38955         * modules/popcount: Renamed module/count-one-bits.
38956         * modules/popcount-tests: Renamed module/count-one-bits-tests.
38957         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
38958
38959 2007-07-23  Ben Pfaff  <blp@gnu.org>
38960
38961         * lib/popcount.h (popcount32): Reduce size of constants, to allow
38962         better code generation, and add U to large constants to avoid
38963         warnings, in non-GCC case.
38964         Suggested by Bruno Haible.
38965
38966 2007-07-23  Ben Pfaff  <blp@gnu.org>
38967
38968         * lib/popcount.h: Use verify_true instead of if...abort.
38969         * modules/popcount: Depend on verify module.
38970         Suggested by Jim Meyering.
38971
38972 2007-07-23  Bruno Haible  <bruno@clisp.org>
38973
38974         * gnulib-tool (func_import): Create a .cvsignore file also when the
38975         directory is not yet in CVS but the toplevel directory is. When
38976         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
38977         Reported by Karl Berry.
38978
38979 2007-07-22  Ben Pfaff  <blp@gnu.org>
38980
38981         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
38982         case.
38983         Suggested by Eric Blake.
38984
38985 2007-07-22  Ben Pfaff  <blp@gnu.org>
38986
38987         New module: popcount.
38988         * MODULES.html.sh: Add popcount.
38989         * modules/popcount: New file.
38990         * modules/popcount-tests: New file.
38991         * tests/test-popcount.c: New file.
38992         * lib/popcount.h: New file.
38993         * m4/popcount.m4: New file.
38994
38995 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38996
38997         * build-aux/announce-gen: Update to GPLv3.
38998
38999         * build-aux/config.guess: Update from config.
39000
39001 2007-07-21  Bruno Haible  <bruno@clisp.org>
39002
39003         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39004         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39005
39006 2007-07-20  Jim Meyering  <jim@meyering.net>
39007
39008         * check-module: Diagnose a self-dependency.
39009
39010 2007-07-19  Bruno Haible  <bruno@clisp.org>
39011
39012         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39013         empty.
39014         Reported by Eric Blake.
39015
39016 2007-07-18  Bruno Haible  <bruno@clisp.org>
39017
39018         * gnulib-tool: New options --po-base, --po-domain.
39019         (func_usage): Document them.
39020         (pobase, po_domain): New variables.
39021         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39022         DEFAULT_TEXT_DOMAIN.
39023         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39024         (func_import): Consider pobase and po_domain. Create a po/ directory.
39025         (func_create_testdir): Set pobase and po_domain to empty.
39026         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39027         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39028
39029 2007-07-18  Bruno Haible  <bruno@clisp.org>
39030
39031         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39032         EXTRA_DIST augmentation for files in build-aux/.
39033
39034 2007-07-16  Bruno Haible  <bruno@clisp.org>
39035
39036         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39037         * modules/getdelim (License): Likewise.
39038
39039 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39040
39041         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39042         * modules/d-type (License): Likewise.
39043         * modules/extensions (License): Likewise.
39044         * modules/fnmatch (License): Likewise.
39045         * modules/fseeko (License): Likewise.
39046         * modules/getaddrinfo (License): Likewise.
39047         * modules/getline (License): Likewise.
39048         * modules/getlogin_r (License): Likewise.
39049         * modules/getpass (License): Likewise.
39050         * modules/gettimeofday (License): Likewise.
39051         * modules/glob (License): Likewise.
39052         * modules/inet_ntop (License): Likewise.
39053         * modules/malloc (License): Likewise.
39054         * modules/malloca (License): Likewise.
39055         * modules/memmem (License): Likewise.
39056         * modules/mempcpy (License): Likewise.
39057         * modules/memset (License): Likewise.
39058         * modules/minmax (License): Likewise.
39059         * modules/mktime (License): Likewise.
39060         * modules/netinet_in (License): Likewise.
39061         * modules/pathmax (License): Likewise.
39062         * modules/poll (License): Likewise.
39063         * modules/regex (License): Likewise.
39064         * modules/snprintf (License): Likewise.
39065         * modules/stdbool (License): Likewise.
39066         * modules/stdint (License): Likewise.
39067         * modules/stdio (License): Likewise.
39068         * modules/strcase (License): Likewise.
39069         * modules/strcasestr (License): Likewise.
39070         * modules/strdup (License): Likewise.
39071         * modules/string (License): Likewise.
39072         * modules/strndup (License): Likewise.
39073         * modules/strnlen (License): Likewise.
39074         * modules/strpbrk (License): Likewise.
39075         * modules/strptime (License): Likewise.
39076         * modules/strsep (License): Likewise.
39077         * modules/sys_select (License): Likewise.
39078         * modules/sys_socket (License): Likewise.
39079         * modules/sys_stat (License): Likewise.
39080         * modules/sys_time (License): Likewise.
39081         * modules/time (License): Likewise.
39082         * modules/time_r (License): Likewise.
39083         * modules/timegm (License): Likewise.
39084         * modules/unistd (License): Likewise.
39085         * modules/vsnprintf (License): Likewise.
39086         * modules/wctype (License): Likewise.
39087
39088 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39089
39090         * modules/argz (License): LGPLv2+.
39091
39092 2007-07-15  Karl Berry  <karl@gnu.org>
39093
39094         * doc/gnulib.texi: revise node structure per new fdl.texi.
39095
39096 2007-07-14  Bruno Haible  <bruno@clisp.org>
39097
39098         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39099         the output file.
39100         * lib/uniname/uninames.h: Regenerated.
39101
39102 2007-07-14  Karl Berry  <karl@gnu.org>
39103
39104         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39105         omitting sectioning and index commands.
39106
39107 2007-07-13  Bruno Haible  <bruno@clisp.org>
39108
39109         New gnulib-tool option --more-symlinks.
39110         * gnulib-tool (func_usage): Document --more-symlinks.
39111         (do_copyrights): New variable.
39112         Recognize option --more-symlinks.
39113         (func_import): Don't add a copyright notice transform to
39114         sed_transform_lib_file if do_copyrights is empty.
39115
39116 2007-07-13  Bruno Haible  <bruno@clisp.org>
39117
39118         * lib/vasnprintf.c (decimal_point_char): Define also if
39119         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39120         && !NEED_PRINTF_DIRECTIVE_A.
39121         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39122         Gary V. Vaughan <gary@gnu.org>.
39123
39124 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39125
39126         * lib/inttypes_.h: Undo previous change, since it was fixed
39127         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39128
39129 2007-07-13  Bruno Haible  <bruno@clisp.org>
39130
39131         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39132         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39133
39134 2007-07-13  Jim Meyering  <jim@meyering.net>
39135
39136         df: Don't fail for Tru64's "file-on-file mount".
39137         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39138         so we fall through and use statfs instead.  Details here:
39139         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39140         Reported by Albert Chin.
39141
39142 2007-07-13  Bruno Haible  <bruno@clisp.org>
39143
39144         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39145         * modules/configmake (License): Likewise.
39146         * modules/gettext (License): Likewise.
39147         * modules/gettext-h (License): Likewise.
39148         * modules/include_next (License): Likewise.
39149         * modules/link-warning (License): Likewise.
39150         * modules/localcharset (License): Likewise.
39151         * modules/localename (License): Likewise.
39152         * modules/lock (License): Likewise.
39153         * modules/relocatable-lib-lgpl (License): Likewise.
39154         * modules/size_max (License): Likewise.
39155         * modules/vasnprintf (License): Likewise.
39156         * modules/wchar (License): Likewise.
39157         * modules/xsize (License): Likewise.
39158
39159 2007-07-13  Bruno Haible  <bruno@clisp.org>
39160
39161         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39162         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39163
39164 2007-07-12  Bruno Haible  <bruno@clisp.org>
39165
39166         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39167         in the modules files.
39168
39169 2007-07-11  Karl Berry  <karl@gnu.org>
39170
39171         * MODULES.html.sh (func_module): use
39172          sed -e '\|^'"${includefile}"'$|d'
39173          instead of /.../d, to avoid errors on $includefile's containing /.
39174
39175 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39176
39177         * gnulib-tool (func_import): Avoid duplication of --avoid
39178         statements
39179         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39180         names to `_' in variable names.
39181
39182 2007-07-10  Eric Blake  <ebb9@byu.net>
39183
39184         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39185         * NEWS: Document this change.
39186
39187 2007-07-08  Bruno Haible  <bruno@clisp.org>
39188
39189         Update to Unicode 5.0.
39190         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39191         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39192         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39193         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39194         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39195         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39196         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39197         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39198         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39199         U+10A3F, U+1D242..U+1D244.
39200         (nonspacing_table_ind): Update.
39201         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39202         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39203
39204 2007-07-08  Bruno Haible  <bruno@clisp.org>
39205
39206         Update to Unicode 5.0.
39207         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39208         code transform. Extend the name index field of unicode_name_to_code and
39209         unicode_code_to_name from 16 to 24 bits.
39210         * lib/uniname/uniname.c (unicode_character_name,
39211         unicode_name_character): Add the range 0x12xxx to the code transform.
39212         * lib/uniname/uninames.h: Regenerated.
39213         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39214
39215 2007-07-07  Bruno Haible  <bruno@clisp.org>
39216
39217         * modules/wcwidth-tests: New file.
39218         * tests/test-wcwidth.c: New file.
39219
39220         Work around MacOS X wcwidth() bug.
39221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39222         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39223         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39224         original wcwidth in non-UTF-8 locales.
39225         * modules/wcwidth (Depends-on): Add localcharset, streq,
39226         uniwidth/width.
39227         * doc/functions/wcwidth.texi: Update.
39228
39229 2007-07-07  Bruno Haible  <bruno@clisp.org>
39230
39231         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39232         (wcwidth): New declaration.
39233         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39234         macros.
39235         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39236         here. Prepare for creating <wchar.h> unconditionally.
39237         * modules/wchar (Depends-on): Add link-warning.
39238         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39239         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39240         * lib/wcwidth.h: Remove file.
39241         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39242         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39243         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39244         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
39245         (Include): Replace wcwidth.h with <wchar.h>.
39246         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
39247         * lib/mbchar.h: Don't include wcwidth.h.
39248         * lib/mbswidth.c: Likewise.
39249         * NEWS: Mention the change.
39250
39251 2007-07-07  Bruno Haible  <bruno@clisp.org>
39252
39253         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
39254         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
39255         definition with an external declaration.
39256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
39257         defined as a function. Remove AC_C_INLINE requirement.
39258         * modules/wcwidth (Files): Add lib/wcwidth.c.
39259         (Makefile.am): Remove redundant statement.
39260
39261 2007-07-07  Bruno Haible  <bruno@clisp.org>
39262
39263         * MODULES.html.sh (Unicode string functions): Add the new modules.
39264
39265         * tests/uniwidth/test-u32-strwidth.c: New file.
39266         * modules/uniwidth/u32-strwidth-tests: New file.
39267
39268         * lib/uniwidth/u32-strwidth.c: New file.
39269         * modules/uniwidth/u32-strwidth: New file.
39270
39271         * tests/uniwidth/test-u16-strwidth.c: New file.
39272         * modules/uniwidth/u16-strwidth-tests: New file.
39273
39274         * lib/uniwidth/u16-strwidth.c: New file.
39275         * modules/uniwidth/u16-strwidth: New file.
39276
39277         * tests/uniwidth/test-u8-strwidth.c: New file.
39278         * modules/uniwidth/u8-strwidth-tests: New file.
39279
39280         * lib/uniwidth/u8-strwidth.c: New file.
39281         * modules/uniwidth/u8-strwidth: New file.
39282
39283         * tests/uniwidth/test-u32-width.c: New file.
39284         * modules/uniwidth/u32-width-tests: New file.
39285
39286         * lib/uniwidth/u32-width.c: New file.
39287         * modules/uniwidth/u32-width: New file.
39288
39289         * tests/uniwidth/test-u16-width.c: New file.
39290         * modules/uniwidth/u16-width-tests: New file.
39291
39292         * lib/uniwidth/u16-width.c: New file.
39293         * modules/uniwidth/u16-width: New file.
39294
39295         * tests/uniwidth/test-u8-width.c: New file.
39296         * modules/uniwidth/u8-width-tests: New file.
39297
39298         * lib/uniwidth/u8-width.c: New file.
39299         * modules/uniwidth/u8-width: New file.
39300
39301         * tests/uniwidth/test-uc_width.c: New file.
39302         * modules/uniwidth/width-tests: New file.
39303
39304         * lib/uniwidth/width.c: New file, from GNU libiconv.
39305         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39306         * modules/uniwidth/width: New file.
39307
39308         * lib/uniwidth.h: New file, from GNU libiconv.
39309         * modules/uniwidth/base: New file.
39310
39311 2007-07-07  Bruno Haible  <bruno@clisp.org>
39312
39313         * lib/uniname.h: New file, from GNU gettext.
39314         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39315         * lib/uniname/uninames.h: New file, from GNU gettext.
39316         * lib/uniname/uniname.c: New file, from GNU gettext.
39317         * tests/uniname/test-uninames.sh: New file.
39318         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39319         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39320         * modules/uniname/base: New file.
39321         * modules/uniname/uniname: New file.
39322         * modules/uniname/uniname-tests: New file.
39323         * MODULES.html.sh (Unicode string functions): Add the new modules.
39324
39325 2007-07-06  Bruno Haible  <bruno@clisp.org>
39326
39327         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39328
39329 2007-07-06  Bruno Haible  <bruno@clisp.org>
39330
39331         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39332         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39333         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39334         include <sys/time.h>.
39335         Reported by Eric Blake.
39336
39337 2007-07-06  Eric Blake  <ebb9@byu.net>
39338
39339         Fix testing canonicalize on cygwin.
39340         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39341         Revert patch from 2007-06-19.
39342         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39343         canonicalize module is also in use.
39344         * tests/test-canonicalize.c: New file.
39345         * tests/test-canonicalize.sh: Likewise.
39346         * modules/canonicalize-tests: Likewise.
39347
39348 2007-07-06  Jim Meyering  <jim@meyering.net>
39349
39350         * lib/getugroups.c (getugroups): Detect getgrent failure.
39351         Adjust comment to reflect reality: this function may return -1.
39352
39353 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39354
39355         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39356         the new TP address.
39357         (usage): Fix typo
39358         (gnulib_mk): New variable.
39359
39360 2007-07-05  Jim Meyering  <jim@meyering.net>
39361
39362         Don't let endgrent clobber errno, no matter how improbable.
39363         * lib/getugroups.c (getugroups): Save and restore errno around
39364         endgrent call.
39365
39366         Close the group DB even when failing with 2^31 or more members.
39367         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39368
39369 2007-07-04  Jim Meyering  <jim@meyering.net>
39370
39371         * lib/getugroups.h: New file.
39372         * lib/getugroups.c: Include "getugroups.h".
39373         Remove uses of "register" keyword.
39374         Move local variable, "cp", down into scope where used.
39375         Give "username" parameter the "const" attribute.
39376         * modules/getugroups (Files): Add lib/getugroups.h
39377
39378 2007-07-04  Karl Berry  <karl@gnu.org>
39379
39380         * MODULES.html.sh (func_all_modules): Complete rename of
39381         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39382
39383 2007-07-02  Bruno Haible  <bruno@clisp.org>
39384
39385         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39386         mode, when inttypes.h comes from gnulib.
39387         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39388
39389 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39390
39391         * NEWS: Mention lgpl module name change.
39392
39393         * modules/lgpl-2.1: Renamed from lgpl.
39394
39395         * NEWS: Mention gpl module name change.
39396
39397         * modules/gpl-3.0: New file, based on gpl-2.0.
39398
39399         * modules/gpl-2.0: Renamed from gpl.
39400
39401         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39402         doc/gpl-2.0.texi.
39403
39404 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39405
39406         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39407         #define __STDC_LIMIT_MACROS temporarily while including
39408         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39409         Problem reported by Joel E. Denny in
39410         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39411
39412 2007-07-01  Bruno Haible  <bruno@clisp.org>
39413
39414         * lib/unistdio.h: New file.
39415         * lib/unistdio/u-asnprintf.h: New file.
39416         * lib/unistdio/u-asprintf.h: New file.
39417         * lib/unistdio/u-printf-args.c: New file.
39418         * lib/unistdio/u-printf-args.h: New file.
39419         * lib/unistdio/u-printf-parse.h: New file.
39420         * lib/unistdio/u-snprintf.h: New file.
39421         * lib/unistdio/u-sprintf.h: New file.
39422         * lib/unistdio/u-vasprintf.h: New file.
39423         * lib/unistdio/u-vsnprintf.h: New file.
39424         * lib/unistdio/u-vsprintf.h: New file.
39425         * lib/unistdio/ulc-asnprintf.c: New file.
39426         * lib/unistdio/ulc-asprintf.c: New file.
39427         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
39428         * lib/unistdio/ulc-printf-parse.c: New file.
39429         * lib/unistdio/ulc-snprintf.c: New file.
39430         * lib/unistdio/ulc-sprintf.c: New file.
39431         * lib/unistdio/ulc-vasnprintf.c: New file.
39432         * lib/unistdio/ulc-vasprintf.c: New file.
39433         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
39434         * lib/unistdio/ulc-vsnprintf.c: New file.
39435         * lib/unistdio/ulc-vsprintf.c: New file.
39436         * lib/unistdio/u8-asnprintf.c: New file.
39437         * lib/unistdio/u8-asprintf.c: New file.
39438         * lib/unistdio/u8-printf-parse.c: New file.
39439         * lib/unistdio/u8-snprintf.c: New file.
39440         * lib/unistdio/u8-sprintf.c: New file.
39441         * lib/unistdio/u8-vasnprintf.c: New file.
39442         * lib/unistdio/u8-vasprintf.c: New file.
39443         * lib/unistdio/u8-vsnprintf.c: New file.
39444         * lib/unistdio/u8-vsprintf.c: New file.
39445         * lib/unistdio/u8-u8-asnprintf.c: New file.
39446         * lib/unistdio/u8-u8-asprintf.c: New file.
39447         * lib/unistdio/u8-u8-snprintf.c: New file.
39448         * lib/unistdio/u8-u8-sprintf.c: New file.
39449         * lib/unistdio/u8-u8-vasnprintf.c: New file.
39450         * lib/unistdio/u8-u8-vasprintf.c: New file.
39451         * lib/unistdio/u8-u8-vsnprintf.c: New file.
39452         * lib/unistdio/u8-u8-vsprintf.c: New file.
39453         * lib/unistdio/u16-asnprintf.c: New file.
39454         * lib/unistdio/u16-asprintf.c: New file.
39455         * lib/unistdio/u16-printf-parse.c: New file.
39456         * lib/unistdio/u16-snprintf.c: New file.
39457         * lib/unistdio/u16-sprintf.c: New file.
39458         * lib/unistdio/u16-vasnprintf.c: New file.
39459         * lib/unistdio/u16-vasprintf.c: New file.
39460         * lib/unistdio/u16-vsnprintf.c: New file.
39461         * lib/unistdio/u16-vsprintf.c: New file.
39462         * lib/unistdio/u16-u16-asnprintf.c: New file.
39463         * lib/unistdio/u16-u16-asprintf.c: New file.
39464         * lib/unistdio/u16-u16-snprintf.c: New file.
39465         * lib/unistdio/u16-u16-sprintf.c: New file.
39466         * lib/unistdio/u16-u16-vasnprintf.c: New file.
39467         * lib/unistdio/u16-u16-vasprintf.c: New file.
39468         * lib/unistdio/u16-u16-vsnprintf.c: New file.
39469         * lib/unistdio/u16-u16-vsprintf.c: New file.
39470         * lib/unistdio/u32-asnprintf.c: New file.
39471         * lib/unistdio/u32-asprintf.c: New file.
39472         * lib/unistdio/u32-printf-parse.c: New file.
39473         * lib/unistdio/u32-snprintf.c: New file.
39474         * lib/unistdio/u32-sprintf.c: New file.
39475         * lib/unistdio/u32-vasnprintf.c: New file.
39476         * lib/unistdio/u32-vasprintf.c: New file.
39477         * lib/unistdio/u32-vsnprintf.c: New file.
39478         * lib/unistdio/u32-vsprintf.c: New file.
39479         * lib/unistdio/u32-u32-asnprintf.c: New file.
39480         * lib/unistdio/u32-u32-asprintf.c: New file.
39481         * lib/unistdio/u32-u32-snprintf.c: New file.
39482         * lib/unistdio/u32-u32-sprintf.c: New file.
39483         * lib/unistdio/u32-u32-vasnprintf.c: New file.
39484         * lib/unistdio/u32-u32-vasprintf.c: New file.
39485         * lib/unistdio/u32-u32-vsnprintf.c: New file.
39486         * lib/unistdio/u32-u32-vsprintf.c: New file.
39487         * tests/unistdio/test-ulc-asnprintf1.c: New file.
39488         * tests/unistdio/test-ulc-asnprintf1.h: New file.
39489         * tests/unistdio/test-ulc-printf1.h: New file.
39490         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
39491         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
39492         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
39493         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
39494         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
39495         * tests/unistdio/test-ulc-vasprintf1.c: New file.
39496         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
39497         * tests/unistdio/test-ulc-vsprintf1.c: New file.
39498         * tests/unistdio/test-u8-asnprintf1.c: New file.
39499         * tests/unistdio/test-u8-asnprintf1.h: New file.
39500         * tests/unistdio/test-u8-printf1.h: New file.
39501         * tests/unistdio/test-u8-vasnprintf1.c: New file.
39502         * tests/unistdio/test-u8-vasnprintf2.c: New file.
39503         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
39504         * tests/unistdio/test-u8-vasnprintf3.c: New file.
39505         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
39506         * tests/unistdio/test-u8-vasprintf1.c: New file.
39507         * tests/unistdio/test-u8-vsnprintf1.c: New file.
39508         * tests/unistdio/test-u8-vsprintf1.c: New file.
39509         * tests/unistdio/test-u16-asnprintf1.c: New file.
39510         * tests/unistdio/test-u16-asnprintf1.h: New file.
39511         * tests/unistdio/test-u16-printf1.h: New file.
39512         * tests/unistdio/test-u16-vasnprintf1.c: New file.
39513         * tests/unistdio/test-u16-vasnprintf2.c: New file.
39514         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
39515         * tests/unistdio/test-u16-vasnprintf3.c: New file.
39516         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
39517         * tests/unistdio/test-u16-vasprintf1.c: New file.
39518         * tests/unistdio/test-u16-vsnprintf1.c: New file.
39519         * tests/unistdio/test-u16-vsprintf1.c: New file.
39520         * tests/unistdio/test-u32-asnprintf1.c: New file.
39521         * tests/unistdio/test-u32-asnprintf1.h: New file.
39522         * tests/unistdio/test-u32-printf1.h: New file.
39523         * tests/unistdio/test-u32-vasnprintf1.c: New file.
39524         * tests/unistdio/test-u32-vasnprintf2.c: New file.
39525         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
39526         * tests/unistdio/test-u32-vasnprintf3.c: New file.
39527         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
39528         * tests/unistdio/test-u32-vasprintf1.c: New file.
39529         * tests/unistdio/test-u32-vsnprintf1.c: New file.
39530         * tests/unistdio/test-u32-vsprintf1.c: New file.
39531         * modules/unistdio/base: New file.
39532         * modules/unistdio/u-printf-args: New file.
39533         * modules/unistdio/ulc-asnprintf: New file.
39534         * modules/unistdio/ulc-asprintf: New file.
39535         * modules/unistdio/ulc-fprintf: New file.
39536         * modules/unistdio/ulc-printf-parse: New file.
39537         * modules/unistdio/ulc-snprintf: New file.
39538         * modules/unistdio/ulc-sprintf: New file.
39539         * modules/unistdio/ulc-vasnprintf: New file.
39540         * modules/unistdio/ulc-vasprintf: New file.
39541         * modules/unistdio/ulc-vfprintf: New file.
39542         * modules/unistdio/ulc-vsnprintf: New file.
39543         * modules/unistdio/ulc-vsprintf: New file.
39544         * modules/unistdio/u8-asnprintf: New file.
39545         * modules/unistdio/u8-asprintf: New file.
39546         * modules/unistdio/u8-printf-parse: New file.
39547         * modules/unistdio/u8-snprintf: New file.
39548         * modules/unistdio/u8-sprintf: New file.
39549         * modules/unistdio/u8-vasnprintf: New file.
39550         * modules/unistdio/u8-vasprintf: New file.
39551         * modules/unistdio/u8-vsnprintf: New file.
39552         * modules/unistdio/u8-vsprintf: New file.
39553         * modules/unistdio/u8-u8-asnprintf: New file.
39554         * modules/unistdio/u8-u8-asprintf: New file.
39555         * modules/unistdio/u8-u8-snprintf: New file.
39556         * modules/unistdio/u8-u8-sprintf: New file.
39557         * modules/unistdio/u8-u8-vasnprintf: New file.
39558         * modules/unistdio/u8-u8-vasprintf: New file.
39559         * modules/unistdio/u8-u8-vsnprintf: New file.
39560         * modules/unistdio/u8-u8-vsprintf: New file.
39561         * modules/unistdio/u16-asnprintf: New file.
39562         * modules/unistdio/u16-asprintf: New file.
39563         * modules/unistdio/u16-printf-parse: New file.
39564         * modules/unistdio/u16-snprintf: New file.
39565         * modules/unistdio/u16-sprintf: New file.
39566         * modules/unistdio/u16-vasnprintf: New file.
39567         * modules/unistdio/u16-vasprintf: New file.
39568         * modules/unistdio/u16-vsnprintf: New file.
39569         * modules/unistdio/u16-vsprintf: New file.
39570         * modules/unistdio/u16-u16-asnprintf: New file.
39571         * modules/unistdio/u16-u16-asprintf: New file.
39572         * modules/unistdio/u16-u16-snprintf: New file.
39573         * modules/unistdio/u16-u16-sprintf: New file.
39574         * modules/unistdio/u16-u16-vasnprintf: New file.
39575         * modules/unistdio/u16-u16-vasprintf: New file.
39576         * modules/unistdio/u16-u16-vsnprintf: New file.
39577         * modules/unistdio/u16-u16-vsprintf: New file.
39578         * modules/unistdio/u32-asnprintf: New file.
39579         * modules/unistdio/u32-asprintf: New file.
39580         * modules/unistdio/u32-printf-parse: New file.
39581         * modules/unistdio/u32-snprintf: New file.
39582         * modules/unistdio/u32-sprintf: New file.
39583         * modules/unistdio/u32-vasnprintf: New file.
39584         * modules/unistdio/u32-vasprintf: New file.
39585         * modules/unistdio/u32-vsnprintf: New file.
39586         * modules/unistdio/u32-vsprintf: New file.
39587         * modules/unistdio/u32-u32-asnprintf: New file.
39588         * modules/unistdio/u32-u32-asprintf: New file.
39589         * modules/unistdio/u32-u32-snprintf: New file.
39590         * modules/unistdio/u32-u32-sprintf: New file.
39591         * modules/unistdio/u32-u32-vasnprintf: New file.
39592         * modules/unistdio/u32-u32-vasprintf: New file.
39593         * modules/unistdio/u32-u32-vsnprintf: New file.
39594         * modules/unistdio/u32-u32-vsprintf: New file.
39595         * modules/unistdio/ulc-asnprintf-tests: New file.
39596         * modules/unistdio/ulc-vasnprintf-tests: New file.
39597         * modules/unistdio/ulc-vasprintf-tests: New file.
39598         * modules/unistdio/ulc-vsnprintf-tests: New file.
39599         * modules/unistdio/ulc-vsprintf-tests: New file.
39600         * modules/unistdio/u8-asnprintf-tests: New file.
39601         * modules/unistdio/u8-vasnprintf-tests: New file.
39602         * modules/unistdio/u8-vasprintf-tests: New file.
39603         * modules/unistdio/u8-vsnprintf-tests: New file.
39604         * modules/unistdio/u8-vsprintf-tests: New file.
39605         * modules/unistdio/u16-asnprintf-tests: New file.
39606         * modules/unistdio/u16-vasnprintf-tests: New file.
39607         * modules/unistdio/u16-vasprintf-tests: New file.
39608         * modules/unistdio/u16-vsnprintf-tests: New file.
39609         * modules/unistdio/u16-vsprintf-tests: New file.
39610         * modules/unistdio/u32-asnprintf-tests: New file.
39611         * modules/unistdio/u32-vasnprintf-tests: New file.
39612         * modules/unistdio/u32-vasprintf-tests: New file.
39613         * modules/unistdio/u32-vsnprintf-tests: New file.
39614         * modules/unistdio/u32-vsprintf-tests: New file.
39615         * MODULES.html.sh (Unicode string functions): Add the new modules.
39616
39617 2007-07-01  Bruno Haible  <bruno@clisp.org>
39618
39619         * lib/sprintf.c (sprintf): Limit the available length estimation,
39620         to avoid address wraparound.
39621         * lib/vsprintf.c (vsprintf): Likewise.
39622         * modules/sprintf-posix (Dependencies): Add stdint.
39623         * modules/vsprintf-posix (Dependencies): Likewise.
39624
39625 2007-07-01  Bruno Haible  <bruno@clisp.org>
39626
39627         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
39628         Windows PATH as well. Conservative double-quoting. Comments.
39629
39630 2007-07-01  Bruno Haible  <bruno@clisp.org>
39631             Eric Blake  <ebb9@byu.net>
39632             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39633
39634         * gnulib-tool (self_abspathname): Fix algorithm to cope with
39635         empty components in $PATH, denoting '.'.
39636
39637 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39638
39639         * gnulib-tool: Fix indentation.
39640         (func_create_megatestdir): Likewise.
39641         Report by Bruno Haible.
39642
39643 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39644
39645         Sync from Automake.
39646         * build-aux/gnupload: Fix shell portability issues with for loops.
39647         Report by Karl Berry.
39648
39649 2007-06-29  Simon Josefsson  <simon@josefsson.org>
39650
39651         * build-aux/maint.mk (POURL): Use translationproject.org.
39652
39653 2007-06-27  Simon Josefsson  <simon@josefsson.org>
39654             Bruno Haible  <bruno@clisp.org>
39655
39656         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
39657         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
39658         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
39659         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
39660         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
39661
39662 2007-06-27  Bruno Haible  <bruno@clisp.org>
39663
39664         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
39665         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
39666
39667 2007-06-26  Karl Berry  <karl@gnu.org>
39668
39669         * MODULES.html.sh: remove xreadlink-with-size.
39670
39671 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39672
39673         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
39674         method that I hope also handles the double-include problem noted
39675         by Bruno Haible in
39676         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
39677
39678 2007-06-23  Bruno Haible  <bruno@clisp.org>
39679
39680         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39681         Don't let the 'mostlyclean' target fail if the last subdirectory could
39682         not be removed.
39683         Reported by Karl Berry.
39684
39685 2007-06-23  Bruno Haible  <bruno@clisp.org>
39686
39687         * gnulib-tool (echo): Add a speedier workaround for ksh.
39688         * tests/test-echo.sh: Likewise.
39689
39690 2007-06-23  Bruno Haible  <bruno@clisp.org>
39691
39692         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
39693         * tests/test-echo.sh: Likewise.
39694
39695 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39696
39697         * gnulib-tool (IFS): Initialize early, so we don't set it to
39698         empty later.
39699         (self_abspathname): Rewrite algorithm to set it, reindent.
39700         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
39701         (func_create_megatestdir): Merge some sed scripts.
39702
39703 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39704
39705         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
39706         exposed by Sun Studio 11 cc on Solaris 8.
39707
39708 2007-06-22  Bruno Haible  <bruno@clisp.org>
39709
39710         * gnulib-tool (echo): Ensure the echo primitive does not interpret
39711         backslashes.
39712         * tests/test-echo.sh: New file.
39713
39714 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39715
39716         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
39717         simplify `sed_replace_build_aux' scripts, they are portable but
39718         echoing them with `echo' is not.
39719         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
39720
39721 2007-06-21  Karl Berry  <karl@gnu.org>
39722
39723         * config/srclist.txt: guess we can't handle the licenses via
39724         srclist at the moment.
39725
39726 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39727
39728         * MODULES.html.sh: Add include_next.
39729         * modules/include_next: New file.
39730
39731 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39732
39733         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
39734         INCLUDE_NEXT.
39735         (gl_CHECK_NEXT_HEADERS): New macro.
39736         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
39737         the obsolescent gl_ABSOLUTE_HEADER.
39738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
39739         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
39740         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39741         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39742         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39743         * m4/math_h.m4 (gl_MATH_H): Likewise.
39744         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39745         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39746         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39747         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39748         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39749         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39750         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39751         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39753         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39754         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39755         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39756         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
39757         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39758         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39759         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39760         * m4/inttypes.m4 (gl_INTTYPES_H): Define
39761         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
39762         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
39763         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
39764         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
39765         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
39766         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
39767         * lib/float_.h: Likewise.
39768         * lib/inttypes_.h: Likewise.
39769         * lib/math_.h: Likewise.
39770         * lib/search_.h: Likewise.
39771         * lib/signal_.h: Likewise.
39772         * lib/stdint_.h: Likewise.
39773         * lib/stdio_.h: Likewise.
39774         * lib/stdlib_.h: Likewise.
39775         * lib/string_.h: Likewise.
39776         * lib/sys_stat_.h: Likewise.
39777         * lib/sys_time_.h: Likewise.
39778         * lib/time_.h: Likewise.
39779         * lib/unistd_.h: Likewise.
39780         * lib/wchar_.h: Likewise.
39781         * lib/wctype_.h: Likewise.
39782         * lib/dirent_.h: Likewise.
39783         * lib/iconv_.h: Likewise.
39784         * lib/locale_.h: Likewise.
39785         * lib/netinet_in_.h: Likewise.
39786         * lib/sys_select_.h: Likewise.
39787         * lib/sys_socket_.h: Likewise.
39788         * lib/sysexits_.h: Likewise.
39789         * modules/fcntl (Depends-on): Depend on include_next, not
39790         absolute_header.
39791         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
39792         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
39793         * modules/fchdir: Likewise.
39794         * modules/float: Likewise.
39795         * modules/iconv_open: Likewise.
39796         * modules/inttypes: Likewise.
39797         * modules/locale: Likewise.
39798         * modules/math: Likewise.
39799         * modules/netinet_in: Likewise.
39800         * modules/search: Likewise.
39801         * modules/signal: Likewise.
39802         * modules/stdint: Likewise.
39803         * modules/stdio: Likewise.
39804         * modules/stdlib: Likewise.
39805         * modules/string: Likewise.
39806         * modules/sys_select: Likewise.
39807         * modules/sys_socket: Likewise.
39808         * modules/sys_stat: Likewise.
39809         * modules/sys_time: Likewise.
39810         * modules/sysexits: Likewise.
39811         * modules/time: Likewise.
39812         * modules/unistd: Likewise.
39813         * modules/wchar: Likewise.
39814         * modules/wctype: Likewise.
39815         * modules/sys_stat: Change maintainer to "all".
39816         * modules/unistd: Likewise.
39817
39818 2007-06-20  Karl Berry  <karl@gnu.org>
39819
39820         * config/srclist.txt: track www changes in license files.
39821
39822 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
39823
39824         * build-aux/bootstrap: Remove stray dot.
39825         Make sure build_aux settings are honored when linking
39826         gnulib_extra_files.
39827
39828 2007-06-19  Eric Blake  <ebb9@byu.net>
39829
39830         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39831         Allow compilation on cygwin.
39832
39833 2007-06-19  Jim Meyering  <jim@meyering.net>
39834
39835         xreadlink-with-size: Remove module.  No longer used.
39836         Ex-callers now use xreadlink or mreadlink-with-size.
39837         * modules/xreadlink-with-size: Remove module.
39838         * lib/xreadlink-with-size.c: Remove file.
39839         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
39840         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
39841         just before the function definition *is* accurate.
39842
39843         Eliminate one way canonicalize_filename_mode could exit.
39844         * lib/canonicalize.c (canonicalize_filename_mode):
39845         Use mreadlink_with_size, not xreadlink_with_size.
39846
39847 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
39848
39849         Detect porting problems to FreeBSD/arm, which has time_t wider than
39850         long int.  Original problem reported for GNU diff by Xin Li in
39851         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
39852         * modules/getdate (Depends-on): Add intprops, verify.
39853         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
39854         is an integer type no wider than long int.
39855
39856 2007-06-18  Jim Meyering  <jim@meyering.net>
39857
39858         New module: mreadlink-with-size.
39859         * MODULES.html.sh: Add mreadlink-with-size.
39860         * modules/mreadlink-with-size: New module
39861         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
39862         not xreadlink-with-size.
39863         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
39864
39865 2007-06-16  Bruno Haible  <bruno@clisp.org>
39866
39867         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
39868         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
39869         Reported by Gary V. Vaughan <gary@gnu.org>.
39870
39871 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
39872
39873         Revamp lchown so that it lives in unistd.h where it belongs.
39874         * lib/lchown.h: Remove.
39875         * lib/dirchownmod.c: Don't include lib/lchown.h.
39876         * lib/fchownat.c: Likewise.
39877         * lib/openat.c: Likewise.
39878         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
39879         does not follow symlinks.
39880         (EOPNOTSUPP): Define if not defined.
39881         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
39882         is defined to 0.
39883         (lchown): New decl.
39884         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
39885         Do not check for lchown decl.
39886         Set REPLACE_LCHOWN.
39887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
39888         REPLACE_LCHOWN.
39889         * modules/chown: Make it clear it follows symlinks.
39890         * modules/lchown: Make it clear it doesn't follow symlinks.
39891         (Files): Remove lib/lchown.h
39892         (Depends-on): Add unistd.
39893         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
39894         (Include): Include <unistd.h>, not "lchown.h".
39895         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
39896         REPLACE_LCHOWN.
39897
39898 2007-06-15  Jim Meyering  <jim@meyering.net>
39899
39900         Change license (GPL to LGPL) of fsusage and dependents.
39901         * modules/fsusage (License): Change to LGPL.
39902         * modules/full-read (License): Likewise.
39903         * modules/full-write (License): Likewise.
39904         * modules/safe-read (License): Likewise.
39905         * modules/safe-write (License): Likewise.
39906
39907 2007-06-14  Ben Pfaff  <blp@gnu.org>
39908
39909         Missing part of allocsa -> malloca transition.
39910         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
39911         gl_MALLOCA.
39912
39913 2007-06-12  Bruno Haible  <bruno@clisp.org>
39914
39915         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
39916         to ia64, x86_64, i386.
39917         Reported by Eric Blake.
39918
39919 2007-06-12  Bruno Haible  <bruno@clisp.org>
39920
39921         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
39922         cross-compiling to x86_64.
39923
39924 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
39925
39926         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
39927         glitch reported by Ralf Wildenhues in
39928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
39929
39930         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
39931         Vin Shelton.
39932
39933 2007-06-11  Bruno Haible  <bruno@clisp.org>
39934
39935         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
39936         replacement string.
39937         Reported by Eric Blake.
39938
39939 2007-06-10  Bruno Haible  <bruno@clisp.org>
39940
39941         Prepare vasnprintf code for use with Unicode strings.
39942         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
39943         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
39944         TYPE_U32_STRING.
39945         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
39946         a_u32_string variants.
39947         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
39948         * lib/printf-args.c: Don't include config.h and the specification
39949         header if PRINTF_FETCHARGS is already defined.
39950         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
39951         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
39952         TYPE_U16_STRING, TYPE_U32_STRING.
39953         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
39954         u16_directive, u16_directives, u32_directive, u32_directives): New
39955         types.
39956         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
39957         New declarations.
39958         * lib/printf-parse.c: Don't include config.h and the specification
39959         header if PRINTF_PARSE is already defined. Eliminate the set of
39960         parameters for WIDE_CHAR_VERSION; the user of this file must provide
39961         them now. Include c-ctype.h.
39962         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
39963         directive and CHAR_T_ONLY_ASCII.
39964         * lib/vasnprintf.c: Don't include config.h and the specification header
39965         if VASNPRINTF is already defined.
39966         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
39967         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
39968         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
39969         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
39970         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
39971         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
39972         code accordingly.
39973         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
39974         pad_ourselves also in this case, with the 'c' and 's' directives, and
39975         with a different notion of "width".
39976         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
39977
39978 2007-06-10  Bruno Haible  <bruno@clisp.org>
39979
39980         * modules/unistr/u32-mbsnlen: New file.
39981         * lib/unistr/u32-mbsnlen.c: New file.
39982
39983         * modules/unistr/u16-mbsnlen: New file.
39984         * lib/unistr/u16-mbsnlen.c: New file.
39985
39986         * modules/unistr/u8-mbsnlen: New file.
39987         * lib/unistr/u8-mbsnlen.c: New file.
39988
39989         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
39990         declarations.
39991
39992 2007-06-10  Bruno Haible  <bruno@clisp.org>
39993
39994         * lib/string_.h (mbsnlen): New declaration.
39995         * lib/mbsnlen.c: New file.
39996         * m4/mbsnlen.m4: New file.
39997         * modules/mbsnlen: New file.
39998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
39999         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40000         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40001
40002 2007-06-10  Bruno Haible  <bruno@clisp.org>
40003
40004         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40005
40006 2007-06-10  Bruno Haible  <bruno@clisp.org>
40007
40008         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40009         * lib/mbuiter.h: Likewise.
40010
40011 2007-06-10  Bruno Haible  <bruno@clisp.org>
40012
40013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40014         declaration.
40015
40016 2007-06-10  Karl Berry  <karl@gnu.org>
40017
40018         * config/srclist.txt: remove gettext entries, Bruno prefers
40019         to update individually.
40020
40021 2007-06-10  Bruno Haible  <bruno@clisp.org>
40022
40023         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40024         'maxlen'. Ensure only length + width bytes are allocated, not
40025         length + 1 + width.
40026
40027 2007-06-09  Bruno Haible  <bruno@clisp.org>
40028
40029         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40030         (CHAR_T): Remove macro.
40031         (VASNPRINTF): Update.
40032
40033 2007-06-09  Bruno Haible  <bruno@clisp.org>
40034
40035         * MODULES.html.sh (Unicode string functions): Add the new modules.
40036
40037         * modules/uniconv/u32-conv-to-enc: New file.
40038         * lib/uniconv/u32-conv-to-enc.c: New file.
40039         * modules/uniconv/u32-conv-to-enc-tests: New file.
40040         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40041
40042         * modules/uniconv/u16-conv-to-enc: New file.
40043         * lib/uniconv/u16-conv-to-enc.c: New file.
40044         * lib/uniconv/u-conv-to-enc.h: New file.
40045         * modules/uniconv/u16-conv-to-enc-tests: New file.
40046         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40047
40048         * modules/uniconv/u8-conv-to-enc: New file.
40049         * lib/uniconv/u8-conv-to-enc.c: New file.
40050         * modules/uniconv/u8-conv-to-enc-tests: New file.
40051         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40052
40053         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40054         u32_conv_to_encoding): New declarations.
40055
40056 2007-06-09  Bruno Haible  <bruno@clisp.org>
40057
40058         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40059
40060 2007-06-09  Bruno Haible  <bruno@clisp.org>
40061
40062         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40063         * modules/malloca: Renamed from modules/allocsa, updated.
40064         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40065         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40066         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40067         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40068         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40069         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40070         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40071         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40072         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40073         * modules/c-strcasestr (Depends-on): Update.
40074         * lib/c-strcasestr.c: Update.
40075         * modules/c-strstr (Depends-on): Update.
40076         * lib/c-strstr.c: Update.
40077         * modules/canonicalize-lgpl (Depends-on): Update.
40078         * lib/canonicalize-lgpl.c: Update.
40079         * modules/clean-temp (Depends-on): Update.
40080         * lib/clean-temp.c: Update.
40081         * modules/csharpcomp (Depends-on): Update.
40082         * lib/csharpcomp.c: Update.
40083         * modules/csharpexec (Depends-on): Update.
40084         * lib/csharpexec.c: Update.
40085         * modules/javacomp (Depends-on): Update.
40086         * lib/javacomp.c: Update.
40087         * modules/javaexec (Depends-on): Update.
40088         * lib/javaexec.c: Update.
40089         * modules/mbscasestr (Depends-on): Update.
40090         * lib/mbscasestr.c: Update.
40091         * modules/mbsstr (Depends-on): Update.
40092         * lib/mbsstr.c: Update.
40093         * modules/setenv (Depends-on): Update.
40094         * lib/setenv.c: Update.
40095         * modules/strcasestr (Depends-on): Update.
40096         * lib/strcasestr.c: Update.
40097         * modules/striconveha (Depends-on): Update.
40098         * lib/striconveha.c: Update.
40099         * modules/relocatable-prog-wrapper (Files): Update.
40100         * lib/relocwrapper.c: Update.
40101         * build-aux/install-reloc: Update.
40102         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40103
40104 2007-06-08  Bruno Haible  <bruno@clisp.org>
40105
40106         Port to uClibc.
40107         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40108         * lib/fpurge.c (fpurge): Likewise.
40109         * lib/freading.c (freading): Likewise.
40110         * lib/fseeko.c (rpl_fseeko): Likewise.
40111         * lib/fseterr.c (fseterr): Likewise.
40112         * lib/fwriting.c (fwriting): Likewise.
40113         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40114
40115 2007-06-08  Bruno Haible  <bruno@clisp.org>
40116
40117         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40118         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40119         * modules/gettext (Files): Add m4/intlmacosx.m4.
40120
40121 2007-06-07  Bruno Haible  <bruno@clisp.org>
40122
40123         * modules/localename-tests: New file.
40124         * tests/test-localename.c: New file.
40125
40126         New module 'localename'.
40127         * lib/localename.h: New file.
40128         * lib/localename.c: New file, from GNU gettext.
40129         * m4/localename.m4: New file.
40130         * modules/localename: New file.
40131
40132 2007-06-07  Bruno Haible  <bruno@clisp.org>
40133
40134         Work around the lack of <wchar.h> on some builds of uClibc.
40135         * doc/headers/wchar.texi: Update.
40136         * lib/wchar_.h: Include <wchar.h> only if it exists.
40137         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40138         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40139         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40140         doesn't exist.
40141         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40142         * modules/mbfile (Depends-on): Add wchar.
40143         * modules/mbiter (Depends-on): Likewise.
40144         * modules/mbuiter (Depends-on): Likewise.
40145         Reported by Simon Josefsson.
40146
40147 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40148
40149         Work around problem reported by Steven M. Schweda in
40150         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40151         Tru64 5.1B with the Compaq compiler environment installed declares
40152         an 'isblank' function but does not define it in the C library.
40153         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40154         * lib/regex_internal.h (isblank): Likewise.
40155         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40156         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40157
40158 2007-06-05  Bruno Haible  <bruno@clisp.org>
40159
40160         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40161         ia64.
40162         * modules/printf-safe: New file.
40163         * modules/fprintf-posix (Depends-on): Add printf-safe.
40164         * modules/printf-posix (Depends-on): Likewise.
40165         * modules/snprintf-posix (Depends-on): Likewise.
40166         * modules/sprintf-posix (Depends-on): Likewise.
40167         * modules/vasnprintf-posix (Depends-on): Likewise.
40168         * modules/vasprintf-posix (Depends-on): Likewise.
40169         * modules/vfprintf-posix (Depends-on): Likewise.
40170         * modules/vprintf-posix (Depends-on): Likewise.
40171         * modules/vsnprintf-posix (Depends-on): Likewise.
40172         * modules/vsprintf-posix (Depends-on): Likewise.
40173         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40174         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40175         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40176         "no" on i386, x86_64, ia64.
40177         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40178         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40179         on i386, x86_64, ia64.
40180         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40181         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40182         on i386, x86_64, ia64.
40183         * tests/test-vasnprintf-posix.c: Include float.h.
40184         (LDBL80_WORDS): New macro.
40185         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40186         on i386, x86_64, ia64.
40187         * tests/test-vasprintf-posix.c: Include float.h.
40188         (LDBL80_WORDS): New macro.
40189         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40190         on i386, x86_64, ia64.
40191         * tests/test-snprintf-posix.c: Include float.h.
40192         * tests/test-sprintf-posix.c: Likewise.
40193         * tests/test-vsnprintf-posix.c: Likewise.
40194         * tests/test-vsprintf-posix.c: Likewise.
40195
40196 2007-06-05  Bruno Haible  <bruno@clisp.org>
40197
40198         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40199         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40200         non-IEEE numbers on i386, x86_64, ia64.
40201         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40202         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40203         * tests/test-isnanl.h: Include float.h.
40204         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40205
40206 2007-06-05  Bruno Haible  <bruno@clisp.org>
40207
40208         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40209         also the %a / %A. Handle the %a / %A code before this extra handling.
40210
40211 2007-06-05  Bruno Haible  <bruno@clisp.org>
40212
40213         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40214         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40215
40216 2007-06-05  Bruno Haible  <bruno@clisp.org>
40217
40218         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40219         typo in variable name.
40220
40221 2007-06-05  Eric Blake  <ebb9@byu.net>
40222
40223         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40224         Reported by Simon Josefsson.
40225
40226 2007-06-04  Bruno Haible  <bruno@clisp.org>
40227
40228         Avoid test failures on some PowerPC platforms.
40229         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40230         Define differently for PowerPC.
40231         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40232         Reported by Gary V. Vaughan <gary@gnu.org>.
40233
40234 2007-06-02  Bruno Haible  <bruno@clisp.org>
40235
40236         Fix test-stdint failure on FreeBSD/ia64.
40237         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40238         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40239         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40240         * doc/headers/stdint.texi: Update.
40241
40242 2007-06-01  Bruno Haible  <bruno@clisp.org>
40243
40244         * tests/test-binary-io.c (main): Pass a third argument to open().
40245         Reported by Gary V. Vaughan <gary@gnu.org>.
40246
40247 2007-06-01  Bruno Haible  <bruno@clisp.org>
40248
40249         * doc/functions/frexpl.texi: Update for mingw.
40250
40251 2007-06-01  Bruno Haible  <bruno@clisp.org>
40252
40253         * tests/test-lseek.c (main): Disable test of errno for invalid third
40254         argument.
40255         * doc/functions/lseek.texi: Update.
40256         Reported by Gary V. Vaughan <gary@gnu.org>.
40257
40258 2007-05-28  Bruno Haible  <bruno@clisp.org>
40259
40260         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
40261
40262 2007-05-31  Eric Blake  <ebb9@byu.net>
40263
40264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
40265         cross compiling.
40266
40267 2007-05-30  Eric Blake  <ebb9@byu.net>
40268         and Bruno Haible  <bruno@clisp.org>
40269
40270         Work around mingw test failures exposed by m4-1.4.9b.
40271         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
40272         * tests/test-unistd.c: Disable uid_t and git_t tests for the
40273         moment.
40274
40275 2007-05-30  Bruno Haible  <bruno@clisp.org>
40276
40277         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
40278         assuming that they are closed. Needed on HP-UX 11.
40279
40280 2007-05-29  Bruno Haible  <bruno@clisp.org>
40281
40282         Fix a problem with #include_next.
40283         * lib/dirent_.h: Split the double-inclusion guard.
40284         * lib/fcntl_.h: Likewise.
40285         * lib/float_.h: Likewise.
40286         * lib/iconv_.h: Likewise.
40287         * lib/inttypes_.h: Likewise.
40288         * lib/locale_.h: Likewise.
40289         * lib/math_.h: Likewise.
40290         * lib/netinet_in_.h: Likewise.
40291         * lib/search_.h: Likewise.
40292         * lib/signal_.h: Likewise.
40293         * lib/stdint_.h: Likewise.
40294         * lib/stdio_.h: Likewise.
40295         * lib/stdlib_.h: Likewise.
40296         * lib/string_.h: Likewise.
40297         * lib/sys_select_.h: Likewise.
40298         * lib/sys_socket_.h: Likewise.
40299         * lib/sys_stat_.h: Likewise.
40300         * lib/sys_time_.h: Likewise.
40301         * lib/sysexits_.h: Likewise.
40302         * lib/time_.h: Likewise.
40303         * lib/unistd_.h: Likewise.
40304         * lib/wchar_.h: Likewise.
40305         * lib/wctype_.h: Likewise.
40306
40307 2007-05-29  Bruno Haible  <bruno@clisp.org>
40308
40309         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40310         for the moment.
40311
40312 2007-05-29  Bruno Haible  <bruno@clisp.org>
40313
40314         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40315         invocation.
40316         Reported by Eric Blake.
40317
40318 2007-05-29  Bruno Haible  <bruno@clisp.org>
40319
40320         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40321         compiling case.
40322
40323 2007-05-29  Eric Blake  <ebb9@byu.net>
40324             Bruno Haible  <bruno@clisp.org>
40325
40326         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40327         cross compiles.
40328
40329 2007-05-28  Eric Blake  <ebb9@byu.net>
40330
40331         * modules/closein-tests (test_closein_LDADD): Support test on
40332         cygwin with libtool.
40333
40334 2007-05-28  Bruno Haible  <bruno@clisp.org>
40335
40336         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40337         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40338         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40339         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40340         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40341         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40342         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40343         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40344         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40345
40346 2007-05-28  Eric Blake  <ebb9@byu.net>
40347
40348         Unconditionally include <config.h> in unit tests.
40349         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40350         * tests/test-allocsa.c, tests/test-arcfour.c,
40351         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40352         tests/test-array_list.c, tests/test-array_oset.c,
40353         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40354         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40355         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40356         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40357         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40358         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40359         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40360         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40361         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40362         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40363         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40364         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40365         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40366         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40367         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40368         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40369         test-md5.c, test-memmem.c, test-printf-posix.c,
40370         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40371         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40372         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40373         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40374         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40375         test-vasnprintf-posix2.c, test-vasnprintf.c,
40376         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40377         test-vfprintf-posix.c, test-vprintf-posix.c,
40378         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40379         test-xvasprintf.c: Likewise.
40380
40381 2007-05-28  Bruno Haible  <bruno@clisp.org>
40382
40383         * gnulib-tool (func_import): Remember the --with-tests command-line
40384         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40385         Reported by Eric Blake.
40386
40387 2007-05-28  Bruno Haible  <bruno@clisp.org>
40388
40389         * modules/ftell-tests: New file.
40390         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40391         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40392
40393         * lib/ftell.c: New file.
40394         * modules/ftell: New file.
40395         * m4/ftell.m4: New file.
40396         * doc/functions/ftell.texi: Update.
40397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40398         REPLACE_FTELL.
40399         * lib/stdio_.h (rpl_ftell): New declaration.
40400         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40401         REPLACE_FTELL.
40402
40403 2007-05-28  Eric Blake  <ebb9@byu.net>
40404
40405         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40406
40407 2007-05-28  Bruno Haible  <bruno@clisp.org>
40408
40409         * modules/fseek-tests: New file.
40410         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40411         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40412
40413         * lib/fseek.c: New file.
40414         * modules/fseek: New file.
40415         * m4/fseek.m4: New file.
40416         * doc/functions/fseek.texi: Update.
40417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
40418         REPLACE_FSEEK.
40419         * lib/stdio_.h (rpl_fseek): New declaration.
40420         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
40421         REPLACE_FSEEK.
40422
40423 2007-05-28  Bruno Haible  <bruno@clisp.org>
40424
40425         * lib/stdio_.h (fflush): More comments.
40426
40427 2007-05-28  Bruno Haible  <bruno@clisp.org>
40428
40429         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
40430         runtime test.
40431
40432 2007-05-28  Eric Blake  <ebb9@byu.net>
40433
40434         Improve lseek module.
40435         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
40436         * lib/unistd_.h (lseek): Scale back link warning message.
40437         * tests/test-lseek.c: Beef up test.
40438         * tests/test-lseek.sh: Exercise more facets of lseek.
40439         Reported by Bruno Haible.
40440
40441 2007-05-28  Bruno Haible  <bruno@clisp.org>
40442
40443         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
40444         to define.
40445
40446 2007-05-27  Bruno Haible  <bruno@clisp.org>
40447
40448         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
40449
40450 2007-05-27  Bruno Haible  <bruno@clisp.org>
40451
40452         * modules/openmp: New file.
40453         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
40454         Noah Misch.
40455
40456 2007-05-26  Bruno Haible  <bruno@clisp.org>
40457
40458         * modules/chdir-long (Depends-on): Add fchdir.
40459         * modules/chdir-safer (Depends-on): Likewise.
40460         * modules/fts (Depends-on): Likewise.
40461         * modules/fts-lgpl (Depends-on): Likewise.
40462         * modules/openat (Depends-on): Likewise.
40463         * modules/savewd (Depends-on): Likewise.
40464
40465 2007-05-24  Eric Blake  <ebb9@byu.net>
40466
40467         Fix lseek on mingw.
40468         * modules/lseek: New module.
40469         * m4/lseek.m4: New file.
40470         * lib/lseek.c: New file.
40471         * modules/lseek-tests: New file.
40472         * tests/test-lseek.c: New file.
40473         * tests/test-lseek.sh: New file.
40474         * MODULES.html.sh: Document lseek module.
40475         * modules/fflush (Depends-on): Add lseek, fseeko.
40476         * modules/fseeko (Depends-on): Likewise.
40477         * modules/ftello (Depends-on): Likewise.
40478         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
40479         broken.
40480         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
40481         broken.
40482         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
40483         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
40484         * lib/ftello.c (rpl_ftello): Likewise.
40485         * tests/test-fseeko.c (main): Test this.
40486         * tests/test-fseeko.sh: Likewise.
40487         * tests/test-ftello.c (main): Likewise.
40488         * tests/test-ftello.sh: Likewise.
40489         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
40490         implies replacing fseek.
40491         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
40492         HAVE_FTELLO.
40493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
40494         * modules/unistd (Makefile.am): Likewise.
40495         * lib/unistd_.h (lseek): Declare a replacement.
40496         * doc/functions/lseek.texi (lseek): Document this fix.
40497         * doc/functions/fseek.texi (fseek): Likewise.
40498         * doc/functions/ftell.texi (ftell): Likewise.
40499
40500 2007-05-24  Bruno Haible  <bruno@clisp.org>
40501
40502         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
40503         in the printed representation of a NaN.
40504         * tests/test-vasprintf-posix.c (test_function): Likewise.
40505         * tests/test-snprintf-posix.h (test_function): Likewise.
40506         * tests/test-sprintf-posix.h (test_function): Likewise.
40507         Reported by Eric Blake.
40508
40509 2007-05-23  Eric Blake  <ebb9@byu.net>
40510
40511         Fix fseeko/ftello on cygwin 1.5.24.
40512         * doc/functions/fseeko.texi (fseeko): Document the fix.
40513         * doc/functions/ftello.texi (ftello): Document the fix.
40514         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
40515         * doc/functions/stdout.text (stdout): New file.
40516         * doc/functions/stderr.text (stderr): New file.
40517         * doc/gnulib.texi (Function Substitutes): Use new files.
40518         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
40519         prior to 1.7.0.
40520         * tests/test-ftello.c (main): Likewise for ftello.
40521         * tests/test-fseeko.sh: New file.
40522         * tests/test-ftello.sh: New file.
40523         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
40524         with seekable stdin.
40525         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
40526         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
40527         (gl_REPLACE_FSEEKO): New macro.
40528         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
40529         * modules/fseeko (Files): Distribute fseeko.c.
40530         * modules/ftello (Files): Distribute ftello.c.
40531         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
40532         mode.
40533         * lib/ftello.c (rpl_ftello): New file.
40534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
40535         fseeko, ftello.
40536         (gl_STDIN_LARGE_OFFSET): New macro.
40537         * modules/stdio (Makefile.am): Perform the replacement.
40538         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
40539
40540 2007-05-23  Bruno Haible  <bruno@clisp.org>
40541
40542         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
40543         GNULIB_POSIXCHECK is defined.
40544
40545 2007-05-21  Bruno Haible  <bruno@clisp.org>
40546
40547         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
40548         Check also the output for NaN arguments. When cross-compiling, guess
40549         no on IRIX.
40550         * lib/vasnprintf.c: Update comments.
40551         * tests/test-vasnprintf-posix.c (strisnan): New function.
40552         (test_function): Use it.
40553         * tests/test-vasprintf-posix.c (strisnan): New function.
40554         (test_function): Use it.
40555         * tests/test-snprintf-posix.h (strisnan): New function.
40556         (test_function): Use it.
40557         * tests/test-sprintf-posix.h (strisnan): New function.
40558         (test_function): Use it.
40559         Reported by Eric Blake.
40560
40561 2007-05-20  Bruno Haible  <bruno@clisp.org>
40562
40563         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
40564         numbers that fails on BeOS.
40565         * doc/functions/frexpl.texi: Update.
40566
40567 2007-05-20  Jim Meyering  <jim@meyering.net>
40568
40569         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
40570         forced upon us by glibc-2.6.
40571
40572 2007-05-20  Bruno Haible  <bruno@clisp.org>
40573
40574         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
40575         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
40576         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
40577         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
40578         NEED_PRINTF_INFINITE.
40579         (is_infinitel): New function.
40580         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
40581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
40582         gl_PREREQ_VASNPRINTF_INFINITE.
40583         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
40584         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40585         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
40586         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
40587         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
40588         gl_PREREQ_VASNPRINTF_INFINITE.
40589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40593         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40596         * doc/functions/fprintf.texi: Update.
40597         * doc/functions/printf.texi: Update.
40598         * doc/functions/snprintf.texi: Update.
40599         * doc/functions/sprintf.texi: Update.
40600         * doc/functions/vfprintf.texi: Update.
40601         * doc/functions/vprintf.texi: Update.
40602         * doc/functions/vsnprintf.texi: Update.
40603         * doc/functions/vsprintf.texi: Update.
40604
40605 2007-05-20  Bruno Haible  <bruno@clisp.org>
40606
40607         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
40608         was not found in libc.
40609         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40610
40611 2007-05-20  Bruno Haible  <bruno@clisp.org>
40612
40613         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40614         printed as "-nan" instead of "nan".
40615         * tests/test-vasprintf-posix.c (test_function): Likewise.
40616         * tests/test-snprintf-posix.h (test_function): Likewise.
40617         * tests/test-sprintf-posix.h (test_function): Likewise.
40618         Needed for HP-UX 11.
40619
40620 2007-05-20  Jim Meyering  <jim@meyering.net>
40621
40622         Fix buggy test for the fchownat-deref bug.
40623         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
40624         symlink required for the run-test.  Without it, this test would
40625         always declare that fchownat doesn't work, and client code would
40626         unnecessarily use the replacement function with fixed libc.
40627         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
40628         Reported by Greg Schafer.
40629
40630 2007-05-19  Bruno Haible  <bruno@clisp.org>
40631
40632         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
40633         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
40634         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
40635         Needed for IRIX 6.5 and Solaris 2.5.1.
40636
40637 2007-05-19  Bruno Haible  <bruno@clisp.org>
40638
40639         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
40640         (test_function): Skip tests involving -0.0 on platforms where
40641         -0.0 = 0.0.
40642         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
40643         (test_function): Skip tests involving -0.0 on platforms where
40644         -0.0 = 0.0.
40645         * tests/test-snprintf-posix.h (have_minus_zero): New function.
40646         (test_function): Skip tests involving -0.0 on platforms where
40647         -0.0 = 0.0.
40648         * tests/test-sprintf-posix.h (have_minus_zero): New function.
40649         (test_function): Skip tests involving -0.0 on platforms where
40650         -0.0 = 0.0.
40651         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
40652         tests.
40653         * tests/test-printf-posix.h (test_function): Likewise.
40654         * tests/test-printf-posix.output: Remove all -0.0 related results.
40655         Needed for IRIX 6.5.
40656
40657 2007-05-19  Bruno Haible  <bruno@clisp.org>
40658
40659         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40660         printed as "nan0x7fffffff" instead of "nan".
40661         * tests/test-vasprintf-posix.c (test_function): Likewise.
40662         * tests/test-snprintf-posix.h (test_function): Likewise.
40663         * tests/test-sprintf-posix.h (test_function): Likewise.
40664         * tests/test-fprintf-posix.h (NaN): Remove macro.
40665         (test_function): Remove all NaN related tests.
40666         * tests/test-printf-posix.h (NaN): Remove macro.
40667         (test_function): Remove all NaN related tests.
40668         * tests/test-printf-posix.output: Remove all NaN related results.
40669         Needed for IRIX 6.5.
40670
40671 2007-05-19  Bruno Haible  <bruno@clisp.org>
40672
40673         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
40674         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40675
40676 2007-05-19  Bruno Haible  <bruno@clisp.org>
40677
40678         * lib/float_.h: New file.
40679         * m4/float_h.m4: New file.
40680         * modules/float: New file.
40681         * modules/isnanl (Dependencies): Add float.
40682         * modules/isnanl-nolibm (Dependencies): Likewise.
40683         * modules/mathl (Dependencies): Likewise.
40684         * modules/printf-frexpl (Dependencies): Likewise.
40685         * modules/signbit (Dependencies): Likewise.
40686         * modules/vasnprintf (Dependencies): Likewise.
40687         * doc/headers/float.texi: Update.
40688
40689 2007-05-19  Jim Meyering  <jim@meyering.net>
40690
40691         * lib/utimens.c (gl_futimens): Rename from futimens,
40692         now that glibc-2.6 declares futimens.
40693         * lib/utimens.h: Likewise.
40694
40695 2007-05-19  Bruno Haible  <bruno@clisp.org>
40696
40697         Avoid test failures on mingw.
40698         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
40699         * tests/test-printf-posix.sh: Likewise.
40700         * tests/test-vfprintf-posix.sh: Likewise.
40701         * tests/test-vprintf-posix.sh: Likewise.
40702
40703 2007-05-19  Bruno Haible  <bruno@clisp.org>
40704
40705         Fix *printf result for NaN, Inf, -0.0 on mingw.
40706         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
40707         * lib/vasnprintf.c: Include math.h and isnan.h.
40708         (is_infinite_or_zero): New function.
40709         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
40710         values in the %f, %F, %e, %E, %g, %G directives.
40711         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
40712         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40713         gl_PRINTF_INFINITE and test its result. Invoke
40714         gl_PREREQ_VASNPRINTF_INFINITE.
40715         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40716         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40717         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40718         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40719         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40720         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40721         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40722         * doc/functions/fprintf.texi: Update.
40723         * doc/functions/printf.texi: Update.
40724         * doc/functions/snprintf.texi: Update.
40725         * doc/functions/sprintf.texi: Update.
40726         * doc/functions/vfprintf.texi: Update.
40727         * doc/functions/vprintf.texi: Update.
40728         * doc/functions/vsnprintf.texi: Update.
40729         * doc/functions/vsprintf.texi: Update.
40730
40731 2007-05-19  Bruno Haible  <bruno@clisp.org>
40732
40733         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
40734         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
40735         Instead of multiplying with 10^k, set extra_zeroes to k.
40736         (scale10_round_long_double): Remove function.
40737
40738 2007-05-18  Bruno Haible  <bruno@clisp.org>
40739
40740         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
40741         introduced on 2007-05-06.
40742
40743 2007-05-18  Bruno Haible  <bruno@clisp.org>
40744
40745         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
40746         %g directives.
40747         * tests/test-vasprintf-posix.c (test_function): Likewise.
40748         * tests/test-snprintf-posix.h (test_function): Likewise.
40749         * tests/test-sprintf-posix.h (test_function): Likewise.
40750
40751 2007-05-18  Bruno Haible  <bruno@clisp.org>
40752
40753         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
40754         (strmatch): New function.
40755         (test_function): Test the %f directive on numbers of various exponents.
40756         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
40757         (strmatch): New function.
40758         (test_function): Test the %f directive on numbers of various exponents.
40759         * tests/test-snprintf-posix.h (strmatch): New function.
40760         (test_function): Test the %f directive on numbers of various exponents.
40761         * tests/test-sprintf-posix.h (strmatch): New function.
40762         (test_function): Test the %f directive on numbers of various exponents.
40763         * tests/test-snprintf-posix.c (SIZEOF): New macro.
40764         * tests/test-sprintf-posix.c (SIZEOF): New macro.
40765         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
40766         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
40767
40768 2007-05-18  Bruno Haible  <bruno@clisp.org>
40769
40770         Add support for 'long double' number output.
40771         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
40772         * lib/vasnprintf.c: Include math.h and float+.h.
40773         (mp_limb_t): New type.
40774         (GMP_LIMB_BITS): New macro.
40775         (mp_twolimb_t): New type.
40776         (GMP_TWOLIMB_BITS): New macro.
40777         (mpn_t): New type.
40778         (multiply, divide, convert_to_decimal, decode_long_double,
40779         scale10_round_long_double, scale10_round_decimal_long_double,
40780         floorlog10l): New functions.
40781         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
40782         for the %f, %F, %e, %E, %g, %G directives.
40783         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
40784         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40785         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
40786         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
40787         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40788         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40789         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40790         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40791         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40792         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40793         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40794         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
40795         * modules/snprintf-posix (Depends-on): Likewise.
40796         * modules/sprintf-posix (Depends-on): Likewise.
40797         * modules/vasnprintf-posix (Depends-on): Likewise.
40798         * modules/vasprintf-posix (Depends-on): Likewise.
40799         * modules/vfprintf-posix (Depends-on): Likewise.
40800         * modules/vsnprintf-posix (Depends-on): Likewise.
40801         * modules/vsprintf-posix (Depends-on): Likewise.
40802         * modules/vasnprintf (Files): Add lib/float+.h.
40803         * doc/functions/fprintf.texi: Update.
40804         * doc/functions/printf.texi: Update.
40805         * doc/functions/snprintf.texi: Update.
40806         * doc/functions/sprintf.texi: Update.
40807         * doc/functions/vfprintf.texi: Update.
40808         * doc/functions/vprintf.texi: Update.
40809         * doc/functions/vsnprintf.texi: Update.
40810         * doc/functions/vsprintf.texi: Update.
40811
40812 2007-05-18  Bruno Haible  <bruno@clisp.org>
40813
40814         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
40815
40816 2007-05-18  Bruno Haible  <bruno@clisp.org>
40817
40818         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
40819         for printing 64-bit integers. Needed for mingw.
40820
40821 2007-05-18  Bruno Haible  <bruno@clisp.org>
40822
40823         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40824         gl_FUNC_FREXPL_WORKS.
40825         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
40826
40827 2007-05-18  Bruno Haible  <bruno@clisp.org>
40828
40829         * modules/frexpl-nolibm-tests: New file.
40830
40831         * modules/frexpl-nolibm: New file.
40832         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
40833
40834 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40835
40836         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
40837         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40838         GCC 4.2, which otherwise issues a lot of warnings.
40839         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
40840         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
40841         Likewise.
40842         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
40843         * modules/iconv_open (iconv.h): Likewise.
40844         * modules/locale (locale.h): Likewise.
40845         * modules/netinet_in (netinet/in.h): Likewise.
40846         * modules/sys_select (sys_select.h): Likewise.
40847         * modules/sys_socket (sys/socket.h): Likewise.
40848         * modules/sys_stat (sys/stat.h): Likewise.
40849         * modules/sysexits (sysexits.h): Likewise.
40850         * modules/unistd (unistd.h): Likewise.
40851
40852 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40853
40854         * modules/closein-tests (Makefile.am): Distribute
40855         `test-closein.sh'.
40856
40857 2007-05-17  Bruno Haible  <bruno@clisp.org>
40858
40859         * tests/test-printf-posix.output: Renamed from
40860         tests/test-fprintf-posix.out.
40861         * modules/fprintf-posix-tests: Update.
40862         * modules/printf-posix-tests: Update.
40863         * modules/vfprintf-posix-tests: Update.
40864         * modules/vprintf-posix-tests: Update.
40865         * tests/test-fprintf-posix.sh: Update.
40866         * tests/test-printf-posix.sh: Update.
40867         * tests/test-vfprintf-posix.sh: Update.
40868         * tests/test-vprintf-posix.sh: Update.
40869         Reported by Ralf Wildenhues.
40870
40871 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40872
40873         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
40874         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40875         GCC 4.2, which otherwise issues a lot of warnings.
40876         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
40877         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
40878         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
40879         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
40880         it should no longer be needed.
40881         * lib/string_.h: Likewise.
40882         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
40883         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
40884         * modules/inttypes (inttypes.h): Likewise.
40885         * modules/math (math.h): Likewise.
40886         * modules/search (search.h): Likewise.
40887         * modules/signal (signal.h): Likewise.
40888         * modules/stdint (stdint.h): Likewise.
40889         * modules/stdio (stdio.h): Likewise.
40890         * modules/stdlib (stdlib.h): Likewise.
40891         * modules/string (string.h): Likewise.
40892         * modules/sys_time (sys/time.h): Likewise.
40893         * modules/time (time.h): Likewise.
40894         * modules/wchar (wchar.h): Likewise.
40895         * modules/wctype (wtype.h): Likewise.
40896
40897 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40898
40899         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
40900
40901 2007-05-13  Bruno Haible  <bruno@clisp.org>
40902
40903         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
40904         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40905         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
40906         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
40907         (gl_PREREQ_STRTOK_R): Don't require it here.
40908
40909 2007-05-13  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
40912         when used in C++ mode.
40913
40914 2007-05-12  Bruno Haible  <bruno@clisp.org>
40915
40916         * lib/linebuffer.h: Tweak doc.
40917         * lib/linebuffer.c: Likewise.
40918
40919 2007-05-12  James Youngman  <jay@gnu.org>
40920
40921         * lib/linebuffer.c (readlinebuffer_delim): New function,
40922         like readlinebuffer, but use a caller-specified delimiter.
40923         (readlinebuffer): Just call readlinebuffer_delim with '\n'
40924         as the delimiter.
40925         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
40926
40927 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40928
40929         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
40930         * modules/openat (Files): Remove openat-die.c.
40931         (Depends-on): Add openat-die.
40932         * modules/openat-die: New module.
40933
40934 2007-05-06  Bruno Haible  <bruno@clisp.org>
40935
40936         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
40937         Update with info about Cygwin.
40938         * doc/functions/fprintf.texi: Update.
40939         * doc/functions/printf.texi: Update.
40940         * doc/functions/snprintf.texi: Update.
40941         * doc/functions/sprintf.texi: Update.
40942         * doc/functions/vfprintf.texi: Update.
40943         * doc/functions/vprintf.texi: Update.
40944         * doc/functions/vsnprintf.texi: Update.
40945         * doc/functions/vsprintf.texi: Update.
40946         Reported by Eric Blake.
40947
40948 2007-05-06  Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
40951         padding ourselves for the floating-point directives.
40952         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
40953         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
40954         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40955         gl_PRINTF_FLAG_ZERO and test its result. Invoke
40956         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
40957         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40958         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
40959         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40960         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40961         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40962         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40963         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40964         * tests/test-snprintf-posix.h (test_function): Also check the width
40965         and some flags in the %f directive.
40966         * tests/test-sprintf-posix.h (test_function): Likewise.
40967         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40968         * tests/test-vasprintf-posix.c (test_function): Likewise.
40969         * doc/functions/fprintf.texi: Update.
40970         * doc/functions/printf.texi: Update.
40971         * doc/functions/snprintf.texi: Update.
40972         * doc/functions/sprintf.texi: Update.
40973         * doc/functions/vfprintf.texi: Update.
40974         * doc/functions/vprintf.texi: Update.
40975         * doc/functions/vsnprintf.texi: Update.
40976         * doc/functions/vsprintf.texi: Update.
40977
40978 2007-05-06  Bruno Haible  <bruno@clisp.org>
40979
40980         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
40981         pass the ' flag character to sprintf or snprintf.
40982         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
40983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
40984         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40985         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
40986         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
40987         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40988         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
40989         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40990         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40991         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40992         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40993         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40994         * tests/test-snprintf-posix.h (test_function): Also check the grouping
40995         flag.
40996         * tests/test-sprintf-posix.h (test_function): Likewise.
40997         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40998         * tests/test-vasprintf-posix.c (test_function): Likewise.
40999         * doc/functions/fprintf.texi: Update.
41000         * doc/functions/printf.texi: Update.
41001         * doc/functions/snprintf.texi: Update.
41002         * doc/functions/sprintf.texi: Update.
41003         * doc/functions/vfprintf.texi: Update.
41004         * doc/functions/vprintf.texi: Update.
41005         * doc/functions/vsnprintf.texi: Update.
41006         * doc/functions/vsprintf.texi: Update.
41007
41008 2007-05-01  Bruno Haible  <bruno@clisp.org>
41009
41010         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41011
41012 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41013
41014         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41015         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41016
41017 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41018
41019         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41020         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41021         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41022
41023 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41024
41025         * lib/argp-help.c (struct hol_entry): New member `ord'.
41026         (HOL_ENTRY_PTRCMP): Use ord for comparison
41027         (hol_sort): Initialize ord.
41028
41029 2007-05-01  Bruno Haible  <bruno@clisp.org>
41030
41031         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41032         Reported by Eric Blake.
41033         * doc/gnulib.texi (Function Substitutes): Update.
41034
41035 2007-05-01  Bruno Haible  <bruno@clisp.org>
41036
41037         * doc/functions.texi: Remove file, now redundant through
41038         doc/functions/*.texi.
41039
41040 2007-05-01  Bruno Haible  <bruno@clisp.org>
41041
41042         * modules/argp (Depends-on): Add sleep.
41043
41044 2007-05-01  Bruno Haible  <bruno@clisp.org>
41045
41046         * modules/sleep-tests: New file.
41047         * tests/test-sleep.c: New file.
41048
41049         * modules/sleep: New file.
41050         * lib/sleep.c: New file.
41051         * m4/sleep.m4: New file.
41052         * lib/unistd_.h (sleep): New declaration.
41053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41054         HAVE_SLEEP.
41055         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41056         * doc/functions/sleep.texi: Document the sleep module.
41057
41058 2007-05-01  Bruno Haible  <bruno@clisp.org>
41059
41060         * lib/sigprocmask.h: Remove file.
41061         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41062         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41063         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41064         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41065         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41066         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41067         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41068         HAVE_SIGSET_T as a shell variable.
41069         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41070         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41071         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41072         (Depends-on): Add signal. Remove verify.
41073         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41074         (Include): Mention <signal.h> instead of sigprocmask.h.
41075         * NEWS: Mention the change.
41076         * lib/fatal-signal.c: Don't include sigprocmask.h.
41077
41078 2007-05-01  Bruno Haible  <bruno@clisp.org>
41079
41080         * modules/signal: New file.
41081         * lib/signal_.h: New file.
41082         * m4/signal_h.m4: New file.
41083
41084 2007-05-01  Bruno Haible  <bruno@clisp.org>
41085
41086         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41087         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41088         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41089         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41090
41091 2007-05-01  Bruno Haible  <bruno@clisp.org>
41092
41093         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41094         configure time.
41095         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41096         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41097         * modules/sys_stat (Makefile.am): Substitute their values into
41098         sys/stat.h.
41099
41100 2007-05-01  Bruno Haible  <bruno@clisp.org>
41101
41102         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41103         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41104         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41105
41106 2007-05-01  Bruno Haible  <bruno@clisp.org>
41107
41108         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41109         'assert' module here.
41110
41111 2007-05-01  Bruno Haible  <bruno@clisp.org>
41112
41113         * doc/functions/*.texi: New files.
41114         * doc/functions/google-ranking.txt: New file.
41115         * doc/gnulib.texi (Function Substitutes): New chapter.
41116         (ctime, inet_ntoa): Remove sections.
41117         * doc/ctime.texi: Remove file.
41118         * doc/inet_ntoa.texi: Remove file.
41119         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41120         dependencies.
41121         (%.info): New rule, specifying a --reference-limit.
41122
41123 2007-05-01  Bruno Haible  <bruno@clisp.org>
41124
41125         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41126
41127 2007-05-01  Bruno Haible  <bruno@clisp.org>
41128
41129         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41130         the portability of 'mkdir' to mingw systems.
41131
41132 2007-05-01  Bruno Haible  <bruno@clisp.org>
41133
41134         * doc/headers/google-ranking.txt: New file.
41135
41136 2007-04-30  Eric Blake  <ebb9@byu.net>
41137
41138         Prefer fseeko to fseek.
41139         * modules/getpass (Depends-on): Add fseeko.
41140         * lib/getpass.c (getpass): Use fseeko, not fseek.
41141
41142 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41143
41144         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41145         assumes the sorting is stable, while most qsort implementations
41146         are not.  Use argument addresses to ensure they never compare as
41147         equal.
41148
41149         * tests/test-argp-2.sh (usage-indent test): Fix output
41150         (func_compare): Restore diff options
41151         * tests/test-argp.c: Restore #include "progname.h"
41152
41153 2007-04-29  Bruno Haible  <bruno@clisp.org>
41154
41155         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41156         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41157         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41158         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41159         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41160         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41161         (TESTS, check_PROGRAMS): Add test-snprintf.
41162         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41163         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41164         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41165         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41166         assertions that fail on HP-UX, OSF/1, or IRIX.
41167         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41168
41169 2007-04-29  Bruno Haible  <bruno@clisp.org>
41170
41171         * MODULES.html.sh (posix_functions): Remove 'contents'.
41172
41173 2007-04-29  Karl Berry  <karl@gnu.org>
41174
41175         * config/srclist.txt (gendocs_template_min): new entry.
41176
41177 2007-04-29  Bruno Haible  <bruno@clisp.org>
41178
41179         Work around fpurge bug on BSD systems.
41180         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41181         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41182         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41183         fpurge to rpl_fpurge if the system already has this function.
41184         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41185         the case where the system already has this function. Correct invariants
41186         on BSD systems.
41187         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41188         BSD systems.
41189
41190 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41191
41192         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41193         proposed by Sven Verdoolaege.
41194
41195         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41196         options.
41197         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41198         (usage and help tests): Update
41199
41200 2007-04-29  Bruno Haible  <bruno@clisp.org>
41201
41202         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41203         Print more information in case of failure. Disable a test on BeOS.
41204
41205 2007-04-29  Bruno Haible  <bruno@clisp.org>
41206
41207         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41208         This helps debugging on systems on which no gdb is available.
41209
41210 2007-04-29  Bruno Haible  <bruno@clisp.org>
41211
41212         * lib/freading.h: Improve comments.
41213         * lib/fwriting.h: Likewise.
41214         * tests/test-freading.c (main): Don't check freading immediately after
41215         repositioning. Needed for glibc.
41216
41217 2007-04-29  Bruno Haible  <bruno@clisp.org>
41218
41219         * lib/freading.c (freading): Trivial simplification.
41220
41221 2007-04-28  Bruno Haible  <bruno@clisp.org>
41222
41223         * tests/test-fwriting.c (main): Also test the interaction between
41224         fflush and fwriting.
41225         * modules/fwriting-tests (Depends-on): Add fflush.
41226
41227         * tests/test-freading.c (main): Also test the interaction between
41228         fflush and freading.
41229         * modules/freading-tests (Depends-on): Add fflush.
41230
41231 2007-04-28  Bruno Haible  <bruno@clisp.org>
41232
41233         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41234         fseeko and ftello.
41235         Suggested by Eric Blake.
41236
41237 2007-04-28  Jim Meyering  <jim@meyering.net>
41238
41239         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41240         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41241         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41242
41243 2007-04-27  Eric Blake  <ebb9@byu.net>
41244
41245         * doc/headers/assert.texi (assert.h): Document assert module use.
41246
41247 2007-04-27  Bruno Haible  <bruno@clisp.org>
41248
41249         * doc/headers/*.texi: New files.
41250         * doc/gnulib.texi (Header File Substitutes): New chapter.
41251         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
41252         dependencies.
41253         (standards.info ,standards.html, standards.dvi): Update dependencies.
41254         (mostlyclean, clean): New targets.
41255
41256 2007-04-27  Bruno Haible  <bruno@clisp.org>
41257
41258         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
41259         * modules/sysexits (Files, Makefile.am): Update.
41260
41261         * lib/sys_socket_.h: Renamed from lib/socket_.h.
41262         * modules/sys_socket (Files, Makefile.am): Update.
41263
41264         * lib/sys_stat_.h: Renamed from lib/stat_.h.
41265         * modules/sys_stat (Files, Makefile.am): Update.
41266
41267 2007-04-27  Eric Blake  <ebb9@byu.net>
41268
41269         * lib/freading.h: Improve comments.
41270         * lib/fwriting.h: Likewise.
41271         * lib/fflush.c: Likewise.
41272
41273         Fix closein for mingw.
41274         * modules/closein-tests: Add tests for closein.
41275         * tests/test-closein.c: New file.
41276         * tests/test-closein.sh: Likewise.
41277         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
41278         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
41279
41280 2007-04-27  Bruno Haible  <bruno@clisp.org>
41281
41282         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
41283         version is < 6.
41284         * lib/math_.h [__DECC]: Likewise.
41285         * lib/stdio_.h [__DECC]: Likewise.
41286         * lib/stdlib_.h [__DECC]: Likewise.
41287         * lib/string_.h [__DECC]: Likewise.
41288         * lib/time_.h [__DECC]: Likewise.
41289         * lib/wchar_.h [__DECC]: Likewise.
41290         * lib/wctype_.h [__DECC]: Likewise.
41291
41292 2007-04-27  Bruno Haible  <bruno@clisp.org>
41293
41294         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41295
41296 2007-04-27  Bruno Haible  <bruno@clisp.org>
41297
41298         * lib/fflush.c: Add comments.
41299         * modules/fpurge-tests (Depends-on): Add fflush.
41300         * modules/freadable-tests (Depends-on): Likewise.
41301         * modules/fwritable-tests (Depends-on): Likewise.
41302
41303 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41304
41305         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41306         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41307         Report by Bruno Haible <bruno@clisp.org>.
41308
41309 2007-04-26  Eric Blake  <ebb9@byu.net>
41310
41311         Fix fflush on mingw.
41312         * modules/fflush (Depends-on): Add freading.
41313         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41314         but unread data.
41315
41316 2007-04-26  Eric Blake  <ebb9@byu.net>
41317         and Bruno Haible  <bruno@clisp.org>
41318
41319         Implement freading and fwriting.
41320         * lib/freading.c: New file.
41321         * lib/freading.h: Likewise.
41322         * m4/freading.m4: Likewise.
41323         * modules/freading: Likewise.
41324         * modules/freading-tests: Likewise.
41325         * tests/test-freading.c: Likewise.
41326         * lib/fwriting.c: New file.
41327         * lib/fwriting.h: Likewise.
41328         * m4/fwriting.m4: Likewise.
41329         * modules/fwriting: Likewise.
41330         * modules/fwriting-tests: Likewise.
41331         * tests/test-fwriting.c: Likewise.
41332         * MODULES.html.sh (File stream based Input/Output): Mention them.
41333
41334 2007-04-26  Bruno Haible  <bruno@clisp.org>
41335
41336         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41337         'long' when we assume it.
41338         Suggested by Eric Blake.
41339
41340 2007-04-26  Bruno Haible  <bruno@clisp.org>
41341
41342         Ensure fseeko, ftello are declared on glibc systems.
41343         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41344         * modules/fseeko (configure.ac-early): Likewise.
41345         * modules/ftello (configure.ac-early): Likewise.
41346         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41347         AC_FUNC_FSEEKO for this.
41348         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41349         (gl_CHECK_FSEEKO): Remove macro.
41350
41351 2007-04-26  Bruno Haible  <bruno@clisp.org>
41352
41353         * tests/test-fflush.c (main): Also check the ftell result after
41354         fflush and fseek/fseeko.
41355         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41356         file descriptor position cache in the stream.
41357         * lib/fseeko.c (rpl_fseeko): Likewise.
41358
41359 2007-04-26  Bruno Haible  <bruno@clisp.org>
41360
41361         * modules/fflush-tests (Depends-on): Add fseeko.
41362
41363 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41364             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41365
41366         * lib/argz_.h: ensure error_t definition is obtained in same
41367         mechanism system argz.h would have.
41368         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41369         argz facilities are known bad.  Err on the side of caution if
41370         cross-compiling.
41371
41372 2007-04-25  Eric Blake  <ebb9@byu.net>
41373
41374         * lib/fpurge.c (includes): Use stdlib.h for free.
41375         * tests/test-fflush.c (main): Also test fflush-fseeko.
41376
41377 2007-04-25  Bruno Haible  <bruno@clisp.org>
41378
41379         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41380         * lib/fseeko.c: New file.
41381         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41382         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41383         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41384         gl_FUNC_FSEEKO.
41385         (gl_FUNC_FSEEKO): Invoke it.
41386         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41387         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41388         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41389
41390 2007-04-25  Bruno Haible  <bruno@clisp.org>
41391
41392         * modules/fflush (Depends-on): Add ftello.
41393
41394 2007-04-25  Bruno Haible  <bruno@clisp.org>
41395
41396         * modules/ftello-tests: New file.
41397         * tests/test-ftello.c: New file.
41398
41399         * modules/ftello: New file.
41400         * m4/ftello.m4: New file.
41401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41402         HAVE_FTELLO.
41403         * lib/stdio_.h (ftello): New declaration.
41404         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41405         HAVE_FTELLO.
41406
41407 2007-04-25  Bruno Haible  <bruno@clisp.org>
41408
41409         * modules/fseeko-tests: New file.
41410         * tests/test-fseeko.c: New file.
41411
41412         * modules/fseeko: New file.
41413         * m4/fseeko.m4: New file.
41414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
41415         HAVE_FSEEKO.
41416         * lib/stdio_.h (fseeko): New declaration.
41417         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
41418         HAVE_FSEEKO.
41419
41420 2007-04-25  Bruno Haible  <bruno@clisp.org>
41421
41422         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
41423
41424 2007-04-25  Bruno Haible  <bruno@clisp.org>
41425
41426         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
41427         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
41428         * tests/test-unistd.c: Likewise.
41429         * tests/test-fcntl.c: Likewise.
41430
41431 2007-04-23  Eric Blake  <ebb9@byu.net>
41432
41433         * lib/fflush.c: Fix missing include.
41434         Reported by Bruno Haible.
41435
41436 2007-04-23  Bruno Haible  <bruno@clisp.org>
41437
41438         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
41439         Reported by Eric Blake.
41440
41441 2007-04-23  Bruno Haible  <bruno@clisp.org>
41442
41443         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
41444
41445 2007-04-23  Bruno Haible  <bruno@clisp.org>
41446
41447         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
41448
41449 2007-04-23  Bruno Haible  <bruno@clisp.org>
41450
41451         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
41452         Needed on HP-UX 11.
41453
41454 2007-04-16  Eric Blake  <ebb9@byu.net>
41455
41456         Make fflush rely on fpurge.
41457         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
41458         open coding all variants.
41459         * modules/fflush (Depends-on): Add fpurge and unistd.
41460         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
41461         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
41462
41463         Fix --with-tests compilation on cygwin.
41464         * modules/argmatch-tests (Makefile.am): List gnulib library first
41465         in LDADD.
41466         * modules/argp-tests (Makefile.am): Likewise.
41467         * modules/array-list-tests (Makefile.am): Likewise.
41468         * modules/array-oset-tests (Makefile.am): Likewise.
41469         * modules/avltree-list-tests (Makefile.am): Likewise.
41470         * modules/avltree-oset-tests (Makefile.am): Likewise.
41471         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41472         * modules/carray-list-tests (Makefile.am): Likewise.
41473         * modules/dirname-tests (Makefile.am): Likewise.
41474         * modules/frexp-tests (Makefile.am): Likewise.
41475         * modules/isnanl-tests (Makefile.am): Likewise.
41476         * modules/linked-list-tests (Makefile.am): Likewise.
41477         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41478         * modules/lock-tests (Makefile.am): Likewise.
41479         * modules/rbtree-list-tests (Makefile.am): Likewise.
41480         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41481         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41482         * modules/tls-tests (Makefile.am): Likewise.
41483         * modules/tsearch-tests (Makefile.am): Likewise.
41484         * modules/xvasprintf-tests (Makefile.am): Likewise.
41485
41486         Fix fpurge for cygwin.
41487         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
41488         value.
41489         * modules/fpurge-tests (Depends-on): Clean up trash.
41490
41491 2007-04-16  Simon Josefsson  <simon@josefsson.org>
41492
41493         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
41494
41495         * m4/autobuild.m4: Re-indent.
41496
41497 2007-04-13  Bruno Haible  <bruno@clisp.org>
41498
41499         * modules/fpurge-tests: New file.
41500         * tests/test-fpurge.c: New file.
41501
41502         * modules/fpurge: New file.
41503         * lib/fpurge.h: New file.
41504         * lib/fpurge.c: New file.
41505         * m4/fpurge.m4: New file.
41506
41507 2007-04-13  Bruno Haible  <bruno@clisp.org>
41508
41509         * modules/fbufmode-tests: New file.
41510         * tests/test-fbufmode.c: New file.
41511
41512         * modules/fbufmode: New file.
41513         * lib/fbufmode.h: New file.
41514         * lib/fbufmode.c: New file.
41515         * m4/fbufmode.m4: New file.
41516
41517 2007-04-13  Bruno Haible  <bruno@clisp.org>
41518
41519         * modules/fwritable-tests: New file.
41520         * tests/test-fwritable.c: New file.
41521
41522         * modules/fwritable: New file.
41523         * lib/fwritable.h: New file.
41524         * lib/fwritable.c: New file.
41525         * m4/fwritable.m4: New file.
41526
41527 2007-04-13  Bruno Haible  <bruno@clisp.org>
41528
41529         * modules/freadable-tests: New file.
41530         * tests/test-freadable.c: New file.
41531
41532         * modules/freadable: New file.
41533         * lib/freadable.h: New file.
41534         * lib/freadable.c: New file.
41535         * m4/freadable.m4: New file.
41536
41537 2007-04-13  Bruno Haible  <bruno@clisp.org>
41538
41539         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
41540         MOSTLYCLEANFILES.
41541
41542 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41543
41544         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
41545         gzip bootstrap.conf to avoid dragging in i18n machinery.
41546         (gnulib_tool_option): Use it.
41547
41548 2007-04-13  Bruno Haible  <bruno@clisp.org>
41549
41550         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
41551         %F directives.
41552         * tests/test-vasprintf-posix.c (test_function): Likewise.
41553         * tests/test-snprintf-posix.h (test_function): Likewise.
41554         * tests/test-sprintf-posix.h (test_function): Likewise.
41555         * tests/test-fprintf-posix.h (test_function): Likewise.
41556         * tests/test-printf-posix.h (test_function): Likewise.
41557         * tests/test-fprintf-posix.out: Likewise.
41558
41559 2007-04-13  Bruno Haible  <bruno@clisp.org>
41560
41561         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
41562         * modules/tls-tests (configure.ac): Likewise.
41563         Reported by Arto C. Nirkko <anirkko@insel.ch>.
41564
41565 2007-04-13  Bruno Haible  <bruno@clisp.org>
41566
41567         * lib/tls.c (glthread_tls_get): Fix return type.
41568         Patch by Arto C. Nirkko <anirkko@insel.ch>.
41569
41570 2007-04-12  Eric Blake  <ebb9@byu.net>
41571
41572         * modules/gettime (Depends-on): Remove gettime.
41573         Reported by Dmitry V. Levin.
41574
41575 2007-04-12  Bruno Haible  <bruno@clisp.org>
41576
41577         * modules/fflush (Include): Mention <stdio.h>.
41578         * modules/strtoimax (Include): Mention <inttypes.h>.
41579         * modules/strtoumax (Include): Likewise.
41580
41581 2007-04-12  Eric Blake  <ebb9@byu.net>
41582
41583         * .cvsignore: New file.
41584         * .gitignore: Likewise.
41585
41586 2007-04-12  Bruno Haible  <bruno@clisp.org>
41587
41588         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
41589         not before, since $(LDADD) often contains libgnu.a.
41590         * modules/striconv-tests (test_striconv_LDADD): Likewise.
41591         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
41592         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
41593         Needed on Cygwin.
41594
41595 2007-04-12  Eric Blake  <ebb9@byu.net>
41596
41597         Work around glibc's failure to flush stdin on fclose.
41598         * lib/closein.c (close_stdin): Flush stdin before closing.
41599
41600         Work around glibc's failure to reset seekable stdin on exit.
41601         * modules/closein: New module.
41602         * lib/closein.c: New file.
41603         * lib/closein.h: Likewise.
41604         * m4/closein.m4: Likewise.
41605         * MODULES.html.sh (File stream based Input/Output): Document it.
41606
41607 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41608
41609         * gnulib-tool: Rename generated 'autobuild' script to
41610         'do-autobuild' in --create-megatestdir output.
41611
41612         * doc/gnulib.texi (Build robot for gnulib): Fix.
41613
41614 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41615
41616         * modules/sysexits (Depends-on): Add absolute-header.
41617
41618 2007-04-12  Eric Blake  <ebb9@byu.net>
41619
41620         No need to preserve errno on success.
41621         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
41622         Reported by Bruno Haible.
41623
41624 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41625
41626         * MODULES.html.sh (Support for maintaining and releasing
41627         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
41628
41629 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41630
41631         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
41632
41633 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41634
41635         * modules/autobuild: New module.
41636
41637         * m4/autobuild.m4: New file.
41638
41639 2007-04-11  Bruno Haible  <bruno@clisp.org>
41640
41641         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
41642         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
41643         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
41644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
41645         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41646         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41647         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41649         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41650         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41651         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
41652         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41653         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
41655         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41656         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41657         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
41658         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41659         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
41661         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41662         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41663         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
41664         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41665         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
41667         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41668         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41669         Reported by Eric Blake.
41670
41671 2007-04-11  Bruno Haible  <bruno@clisp.org>
41672
41673         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
41674
41675 2007-04-10  Bruno Haible  <bruno@clisp.org>
41676
41677         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
41678         for NaN and Infinity. Needed on FreeBSD 6.1.
41679         * tests/test-vasnprintf-posix.c (test_function): Undo last change
41680         regarding results for "%010a" of Infinity and NaN.
41681         * tests/test-vasprintf-posix.c (test_function): Likewise.
41682         * tests/test-snprintf-posix.h (test_function): Likewise.
41683         * tests/test-sprintf-posix.h (test_function): Likewise.
41684         * tests/test-fprintf-posix.h (test_function): Likewise.
41685         * tests/test-printf-posix.h (test_function): Likewise.
41686         * tests/test-fprintf-posix.out: Likewise.
41687
41688 2007-04-10  Bruno Haible  <bruno@clisp.org>
41689
41690         * modules/locale-tests: New file.
41691         * tests/test-locale.c: New file.
41692
41693         * modules/locale: New file.
41694         * lib/locale_.h: New file.
41695         * m4/locale_h.m4: New file.
41696
41697 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
41698             Bruno Haible  <bruno@clisp.org>
41699
41700         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
41701         be determined, test for availability of the copysignf, copysign,
41702         copysignl functions.
41703         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
41704         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
41705         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
41706
41707 2007-04-09  Eric Blake  <ebb9@byu.net>
41708
41709         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
41710         * modules/stdio (Makefile.am): Support fflush.
41711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41712         * modules/fflush: New file.
41713         * lib/fflush.c: Likewise.
41714         * m4/fflush.m4: Likewise.
41715         * modules/fflush-tests: New test.
41716         * tests/test-fflush.c: Likewise.
41717         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
41718
41719 2007-04-06  Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
41722         (VASNPRINTF): Use signbit for faster determination whether to print a
41723         minus sign.
41724         * modules/vasnprintf (Files): Remove lib/float+.h.
41725         * modules/fprintf-posix (Depends-on): Add signbit.
41726         * modules/snprintf-posix (Depends-on): Likewise.
41727         * modules/sprintf-posix (Depends-on): Likewise.
41728         * modules/vasnprintf-posix (Depends-on): Likewise.
41729         * modules/vasprintf-posix (Depends-on): Likewise.
41730         * modules/vfprintf-posix (Depends-on): Likewise.
41731         * modules/vsnprintf-posix (Depends-on): Likewise.
41732         * modules/vsprintf-posix (Depends-on): Likewise.
41733
41734 2007-04-06  Bruno Haible  <bruno@clisp.org>
41735
41736         * tests/test-frexp.c (main): Test also the sign bit of zero results.
41737         * tests/test-frexpl.c (main): Likewise.
41738         * tests/test-ldexpl.c (main): Likewise.
41739         * modules/frexp-tests (Depends-on): Add signbit.
41740         * modules/frexpl-tests (Depdends-on): Likewise.
41741         * modules/ldexpl-tests (Depdends-on): Likewise.
41742
41743 2007-04-06  Bruno Haible  <bruno@clisp.org>
41744
41745         * modules/signbit-tests: New file.
41746         * tests/test-signbit.c: New file.
41747
41748         * modules/signbit: New file.
41749         * lib/signbitf.c: New file.
41750         * lib/signbitd.c: New file.
41751         * lib/signbitl.c: New file.
41752         * m4/signbit.m4: New file.
41753         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
41754         (signbit): New macro.
41755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
41756         REPLACE_SIGNBIT.
41757         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
41758         REPLACE_FREXPL into math.h.
41759
41760 2007-04-06  Bruno Haible  <bruno@clisp.org>
41761
41762         * modules/isnanf-nolibm-tests: New file.
41763         * tests/test-isnanf.c: New file.
41764
41765         * modules/isnanf-nolibm: New file.
41766         * lib/isnanf.h: New file.
41767         * lib/isnanf.c: New file.
41768         * lib/isnan.c: Consider the USE_FLOAT macro.
41769         * m4/isnanf.m4: New file.
41770
41771 2007-04-06  Bruno Haible  <bruno@clisp.org>
41772
41773         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
41774         (Link): New section.
41775
41776         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
41777
41778 2007-04-06  Bruno Haible  <bruno@clisp.org>
41779
41780         Assume the 'long double' type.
41781         * m4/longdouble.m4: Remove file.
41782         * config/srclist.txt: Don't mention longdouble.m4.
41783         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
41784         * lib/float+.h: Likewise.
41785         * lib/frexp.c: Likewise.
41786         * lib/printf-args.h: Likewise.
41787         * lib/printf-args.c: Likewise.
41788         * lib/printf-frexp.c: Likewise.
41789         * lib/printf-parse.c: Likewise.
41790         * lib/vasnprintf.c: Likewise.
41791         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
41792         * m4/intl.m4: Likewise.
41793         * m4/isnanl.m4: Likewise.
41794         * m4/printf.m4: Likewise.
41795         * m4/printf-frexpl.m4: Likewise.
41796         * m4/vasnprintf.m4: Likewise.
41797         * modules/allocsa (Files): Remove m4/longdouble.m4.
41798         * modules/gettext (Files): Likewise.
41799         * modules/relocatable-prog-wrapper (Files): Likewise.
41800         * modules/vasnprintf (Files): Likewise.
41801         * modules/isnanl (Files): Likewise.
41802         (Include): Simplify.
41803         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
41804         (Include): Simplify.
41805         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
41806         (Include): Simplify.
41807         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
41808         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41809         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
41810         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41811         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41812         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41813         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
41814         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41815         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41816         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41817         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
41818         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41819         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
41820         * tests/test-isnanl.c: Likewise.
41821         * tests/test-snprintf-posix.h: Likewise.
41822         * tests/test-sprintf-posix.h: Likewise.
41823         * tests/test-vasnprintf-posix.c: Likewise.
41824         * tests/test-vasnprintf-posix2.c: Likewise.
41825         * tests/test-vasprintf-posix.c: Likewise.
41826
41827 2007-04-06  Bruno Haible  <bruno@clisp.org>
41828
41829         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
41830         * lib/math_.h [__DECC]: Include the overridden include file through
41831         #include_next, outside the double-inclusion guard.
41832         * lib/stdio_.h [__DECC]: Likewise.
41833         * lib/stdlib_.h [__DECC]: Likewise.
41834         * lib/string_.h [__DECC]: Likewise.
41835         * lib/time_.h [__DECC]: Likewise.
41836         * lib/wchar_.h [__DECC]: Likewise.
41837         * lib/wctype_.h [__DECC]: Likewise.
41838         * lib/inttypes_.h [__DECC]: Likewise.
41839         Reported by Albert Chin <china@thewrittenword.com> in
41840         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
41841
41842 2007-04-04  Eric Blake  <ebb9@byu.net>
41843
41844         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
41845         1.5.x.
41846
41847 2007-04-04  Bruno Haible  <bruno@clisp.org>
41848
41849         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
41850         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
41851
41852 2007-04-04  Bruno Haible  <bruno@clisp.org>
41853
41854         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
41855         results for "%010a" of Infinity and NaN.
41856         * tests/test-vasprintf-posix.c (test_function): Likewise.
41857         * tests/test-snprintf-posix.h (test_function): Likewise.
41858         * tests/test-sprintf-posix.h (test_function): Likewise.
41859         * tests/test-fprintf-posix.h (test_function): Remove these tests.
41860         * tests/test-printf-posix.h (test_function): Likewise.
41861         * tests/test-fprintf-posix.out: Update.
41862         Needed for FreeBSD 6.1.
41863
41864 2007-04-04  Bruno Haible  <bruno@clisp.org>
41865
41866         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
41867         directly used by the gnulib modules nor by gnulib-tool.
41868
41869 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
41870
41871         * DEPENDENCIES: Give overall description of version dependency
41872         desirability.  Use more-typical names for apps.
41873         Add shell, coreutils, diffutils, grep, tar, gzip.
41874
41875 2007-04-04  Simon Josefsson  <simon@josefsson.org>
41876
41877         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
41878
41879 2007-04-04  Karl Berry  <karl@gnu.org>
41880
41881         * MODULES.html.sh (func_module): missing '.
41882
41883 2007-04-03  Bruno Haible  <bruno@clisp.org>
41884
41885         * modules/argmatch-tests (Makefile.am): New variable
41886         test_argmatch_LDADD.
41887         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
41888         * modules/array-list-tests (Makefile.am): New variable
41889         test_array_list_LDADD.
41890         * modules/array-oset-tests (Makefile.am): New variable
41891         test_array_oset_LDADD.
41892         * modules/avltree-list-tests (Makefile.am): New variable
41893         test_avltree_list_LDADD.
41894         * modules/avltree-oset-tests (Makefile.am): New variable
41895         test_avltree_oset_LDADD.
41896         * modules/avltreehash-list-tests (Makefile.am): New variable
41897         test_avltreehash_list_LDADD.
41898         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
41899         test_canonicalize_lgpl_LDADD.
41900         * modules/carray-list-tests (Makefile.am): New variable
41901         test_carray_list_LDADD.
41902         * modules/dirname-tests (Makefile.am): New variable
41903         test_dirname_LDADD.
41904         * modules/linked-list-tests (Makefile.am): New variable
41905         test_linked_list_LDADD.
41906         * modules/linkedhash-list-tests (Makefile.am): New variable
41907         test_linkedhash_list_LDADD.
41908         * modules/rbtree-list-tests (Makefile.am): New variable
41909         test_rbtree_list_LDADD.
41910         * modules/rbtree-oset-tests (Makefile.am): New variable
41911         test_rbtree_oset_LDADD.
41912         * modules/rbtreehash-list-tests (Makefile.am): New variable
41913         test_rbtreehash_list_LDADD.
41914         * modules/xvasprintf-tests (Makefile.am): New variable
41915         test_xvasprintf_LDADD.
41916         Reported by Eric Blake.
41917
41918 2007-04-03  Eric Blake  <ebb9@byu.net>
41919
41920         * DEPENDENCIES: Weaken m4 requirements.
41921
41922 2007-04-03  Bruno Haible  <bruno@clisp.org>
41923
41924         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
41925         * modules/isnanl-tests (configure.ac): Likewise.
41926
41927 2007-04-03  Ben Pfaff  <blp@gnu.org>
41928
41929         * modules/iconv_open: Add $(srcdir)/ to source directory
41930         references in Makefile fragments that call gperf, to fix VPATH
41931         builds.
41932
41933 2007-04-03  Bruno Haible  <bruno@clisp.org>
41934
41935         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
41936         * lib/ldexpl.c: Undo last change.
41937
41938 2007-04-03  Bruno Haible  <bruno@clisp.org>
41939
41940         * modules/printf-frexpl (Depends-on): Undo last change.
41941         (Files): Add m4/ldexpl.m4.
41942
41943 2007-04-03  Bruno Haible  <bruno@clisp.org>
41944
41945         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
41946         * modules/isnanl (Link): New section.
41947
41948         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
41949         * modules/frexp (Link): New section.
41950
41951         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
41952         * modules/frexpl (Link): New section.
41953
41954         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
41955         * modules/ldexpl (Link): New section.
41956
41957 2007-04-03  Bruno Haible  <bruno@clisp.org>
41958
41959         * modules/TEMPLATE-EXTENDED: New file.
41960         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
41961
41962 2007-04-03  Bruno Haible  <bruno@clisp.org>
41963
41964         * DEPENDENCIES: New file.
41965         Suggested by Simon Josefsson.
41966
41967 2007-04-03  Bruno Haible  <bruno@clisp.org>
41968
41969         * doc/gnulib.texi: Escape @.
41970
41971 2007-04-03  James Youngman  <jay@gnu.org>
41972         and Paul Eggert  <eggert@cs.ucla.edu>
41973
41974         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
41975         birthtime on all systems that have birthtime, not just those which
41976         use st_birthtimensec rather than st_birthtim.  Putting zero in
41977         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
41978         that the birth time is not available for files on an NFS mount.
41979
41980 2007-04-03  Simon Josefsson  <simon@josefsson.org>
41981
41982         * modules/memxor: Move back from crypto/, suggested by Bruno.
41983         * modules/crypto/hmac-sha1: Fix memxor dependency.
41984
41985         * modules/crypto/gc: Moved from ../.
41986
41987 2007-04-02  Eric Blake  <ebb9@byu.net>
41988
41989         * lib/ldexpl.c (includes): Avoid libm.
41990
41991         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
41992
41993 2007-04-02  Bruno Haible  <bruno@clisp.org>
41994
41995         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
41996         on IRIX.
41997
41998 2007-04-02  Bruno Haible  <bruno@clisp.org>
41999
42000         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42001         x86 or x86_64 platforms running MacOS X.
42002         Reported by Ryan Schmidt <@ryandesign.com>.
42003
42004 2007-04-02  Bruno Haible  <bruno@clisp.org>
42005
42006         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42007         i386.
42008
42009 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42010
42011         * modules/crypto/arcfour: Moved from ../.
42012         * modules/crypto/arcfour-tests: Moved from ../.
42013         * modules/crypto/arctwo: Moved from ../.
42014         * modules/crypto/arctwo-tests: Moved from ../.
42015         * modules/crypto/des: Moved from ../.
42016         * modules/crypto/des-tests: Moved from ../.
42017         * modules/crypto/gc-arcfour: Moved from ../.
42018         * modules/crypto/gc-arcfour-tests: Moved from ../.
42019         * modules/crypto/gc-arctwo: Moved from ../.
42020         * modules/crypto/gc-arctwo-tests: Moved from ../.
42021         * modules/crypto/gc-des: Moved from ../.
42022         * modules/crypto/gc-des-tests: Moved from ../.
42023         * modules/crypto/gc-hmac-md5: Moved from ../.
42024         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42025         * modules/crypto/gc-hmac-sha1: Moved from ../.
42026         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42027         * modules/crypto/gc-md2: Moved from ../.
42028         * modules/crypto/gc-md2-tests: Moved from ../.
42029         * modules/crypto/gc-md4: Moved from ../.
42030         * modules/crypto/gc-md4-tests: Moved from ../.
42031         * modules/crypto/gc-md5: Moved from ../.
42032         * modules/crypto/gc-md5-tests: Moved from ../.
42033         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42034         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42035         * modules/crypto/gc-random: Moved from ../.
42036         * modules/crypto/gc-rijndael: Moved from ../.
42037         * modules/crypto/gc-rijndael-tests: Moved from ../.
42038         * modules/crypto/gc-sha1: Moved from ../.
42039         * modules/crypto/gc-sha1-tests: Moved from ../.
42040         * modules/crypto/gc-tests: Moved from ../.
42041         * modules/crypto/hmac-md5: Moved from ../.
42042         * modules/crypto/hmac-md5-tests: Moved from ../.
42043         * modules/crypto/hmac-sha1: Moved from ../.
42044         * modules/crypto/hmac-sha1-tests: Moved from ../.
42045         * modules/crypto/md2: Moved from ../.
42046         * modules/crypto/md2-tests: Moved from ../.
42047         * modules/crypto/md4: Moved from ../.
42048         * modules/crypto/md4-tests: Moved from ../.
42049         * modules/crypto/md5: Moved from ../.
42050         * modules/crypto/md5-tests: Moved from ../.
42051         * modules/crypto/memxor: Moved from ../.
42052         * modules/crypto/rijndael: Moved from ../.
42053         * modules/crypto/rijndael-tests: Moved from ../.
42054         * modules/crypto/sha1: Moved from ../.
42055
42056 2007-03-30  James Youngman  <jay@gnu.org>
42057
42058         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42059         rename() to change the ctime of a file (because ctime is unaffected
42060         by rename on jfs2 on AIX 5.1).
42061         (main): Start by doing cleanup, in case a previous run failed leaving
42062         test files behind.
42063
42064 2007-03-31  Bruno Haible  <bruno@clisp.org>
42065
42066         Support old proprietary implementations of iconv.
42067         * modules/iconv_open: New file.
42068         * lib/iconv_.h: New file.
42069         * m4/iconv_h.m4: New file.
42070         * lib/iconv_open.c: New file.
42071         * lib/iconv_open-aix.gperf: New file.
42072         * lib/iconv_open-hpux.gperf: New file.
42073         * lib/iconv_open-irix.gperf: New file.
42074         * lib/iconv_open-osf.gperf: New file.
42075         * m4/iconv_open.m4: New file.
42076         * modules/linebreak (Depends-on): Add iconv_open.
42077         * modules/striconv (Depends-on): Likewise.
42078         * modules/striconveh (Depends-on): Likewise.
42079         * modules/unicodeio (Depends-on): Likewise.
42080         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42081         (iconv_t)(-1).
42082         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42083         conversion if cd is (iconv_t)(-1).
42084         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42085         is not possible.
42086
42087 2007-03-31  Bruno Haible  <bruno@clisp.org>
42088
42089         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42090         work on Solaris either. Protect also second use of "autodetect_jp".
42091
42092 2007-03-31  Bruno Haible  <bruno@clisp.org>
42093
42094         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42095         the function is not present.
42096
42097 2007-03-31  Bruno Haible  <bruno@clisp.org>
42098
42099         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42100         the function is not present.
42101
42102 2007-03-31  Bruno Haible  <bruno@clisp.org>
42103
42104         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42105         a bug in HP-UX iconv_open().
42106
42107 2007-03-31  Bruno Haible  <bruno@clisp.org>
42108
42109         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42110         (Mathematics <math.h>): New section, add fpieee.
42111         (Input/output <stdio.h>): Add fseterr.
42112         (Mathematics <math.h>): New section, add printf-frexp.
42113         (Container data structures): Add sublist.
42114         (Core language properties): Add fpucw, inline.
42115         (Functions for greatest-width integer types <inttypes.h>): Add
42116         imaxabs, imaxdiv, inttypes.
42117         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42118         isnanl-nolibm, ldexp.
42119         (Mathematics <math.h>): New section, add printf-frexpl.
42120         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42121         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42122         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42123         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42124         (Unicode string functions): Add unistr/u*-mbtoucr.
42125         (Java): Add javacomp-script, javaexec-script.
42126         (C#): Add csharpcomp-script, csharpexec-script.
42127         (Support for building libraries and executables): Add havelib,
42128         relocatable-*.
42129         (Support for maintaining and releasing projects): Renamed from
42130         'Support for maintaining and release projects'. Add announce-gen.
42131
42132 2007-03-31  Bruno Haible  <bruno@clisp.org>
42133
42134         * README: Talk primarily about git.
42135         (git and CVS): Renamed from CVS.
42136         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42137         gnulib is available through git.
42138         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42139
42140 2007-03-30  Bruno Haible  <bruno@clisp.org>
42141
42142         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42143         * lib/poll_.h: Likewise.
42144         * lib/stat_.h: Likewise.
42145         * lib/sys_time_.h: Likewise.
42146         * lib/sysexit_.h: Likewise.
42147         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42148         * lib/stdbool_.h: Likewise.
42149         * lib/byteswap_.h: Add double-inclusion guard.
42150
42151 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42152
42153         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42154
42155 2007-03-30  Karl Berry  <karl@gnu.org>
42156
42157         * config/srclist-update: double space after USA in the license
42158         substitution, since that's how it's usually (?) written.
42159
42160 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42161
42162         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42163         reported by Bruno Haible.
42164
42165 2007-03-29  Bruno Haible  <bruno@clisp.org>
42166
42167         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42168         a bug in AIX iconv().
42169
42170 2007-03-29  Bruno Haible  <bruno@clisp.org>
42171
42172         * modules/ldexpl-tests: New file.
42173         * tests/test-ldexpl.c: New file.
42174
42175 2007-03-29  Bruno Haible  <bruno@clisp.org>
42176
42177         * lib/ldexpl.c: Include fpucw.h.
42178         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42179         multiplication.
42180         * modules/ldexpl (Depends-on): Add fpucw.
42181
42182 2007-03-29  Bruno Haible  <bruno@clisp.org>
42183
42184         * modules/ldexpl: New file.
42185         * m4/ldexpl.m4: New file.
42186         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42187         set.
42188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42189         REPLACE_LDEXPL.
42190         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42191         REPLACE_LDEXPL.
42192         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42193         gl_FUNC_LDEXPL_WORKS.
42194         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42195         * modules/mathl (Files): Remove lib/ldexpl.c.
42196         (Depends-on): Add ldexpl.
42197
42198 2007-03-29  Bruno Haible  <bruno@clisp.org>
42199
42200         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42201
42202 2007-03-29  Bruno Haible  <bruno@clisp.org>
42203
42204         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42205         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42206         and possibly also HP-UX.
42207         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42208         work on AIX, IRIX, HP-UX, OSF/1.
42209         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42210         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42211         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42212         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42213         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42214         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42215
42216 2007-03-29  Bruno Haible  <bruno@clisp.org>
42217
42218         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42219
42220 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42221
42222         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42223         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42224
42225 2007-03-29  Eric Blake  <ebb9@byu.net>
42226
42227         * lib/acl-internal.h: Remove redundant include.
42228         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42229         Cygwin when a file is locked.
42230
42231 2007-03-29  Bruno Haible  <bruno@clisp.org>
42232
42233         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42234         file.
42235         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42236
42237 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42238
42239         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42240         try to remove a parent directory if the child couldn't be removed
42241         (except for the first rmdir, which could fail because the child
42242         doesn't exist).  Problem reported by Jeff Blaine in
42243         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42244
42245 2007-03-28  Bruno Haible  <bruno@clisp.org>
42246
42247         * lib/striconveh.c (utf8conv_carefully): New function.
42248         (mem_cd_iconveh_internal): Invoke it.
42249
42250 2007-03-28  Bruno Haible  <bruno@clisp.org>
42251
42252         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
42253         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
42254         input.
42255         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
42256         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
42257         unistr/u8-uctomb.
42258
42259 2007-03-28  Bruno Haible  <bruno@clisp.org>
42260
42261         * modules/unistr/u8-mbtoucr: New file.
42262         * lib/unistr/u8-mbtoucr.c: New file.
42263         * modules/unistr/u16-mbtoucr: New file.
42264         * lib/unistr/u16-mbtoucr.c: New file.
42265         * modules/unistr/u16-mbtoucr: New file.
42266         * lib/unistr/u16-mbtoucr.c: New file.
42267         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
42268
42269 2007-03-27  Simon Josefsson  <simon@josefsson.org>
42270             Bruno Haible  <bruno@clisp.org>
42271
42272         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
42273         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
42274         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
42275
42276         * m4/stdio_h.m4: Add stubs for vasprintf too.
42277
42278         * modules/stdio: Support vasprintf in sed command.
42279
42280         * modules/vasprintf: Depend on stdio for prototypes.  Remove
42281         vasprintf.h.  Add stdio module indicator.
42282
42283         * lib/stdio_.h: Declare asprintf and vasprintf, based on
42284         vasprintf.h.
42285
42286         * lib/vasprintf.h: File removed.
42287
42288         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42289         * lib/vasprintf.c: Ditto.
42290         * lib/xvasprintf.c: Ditto.
42291         * tests/test-vasprintf-posix.c: Ditto.
42292         * tests/test-vasprintf.c: Ditto.
42293
42294 2007-03-27  Bruno Haible  <bruno@clisp.org>
42295
42296         Make vasnprintf multithread-safe.
42297         * lib/vasnprintf.c (decimal_point_char): New function.
42298         (VASNPRINTF): Use it.
42299         Suggested by Simon Josefsson.
42300
42301 2007-03-27  Eric Blake  <ebb9@byu.net>
42302
42303         Support sub-second birthtime on cygwin.
42304         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42305         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42306         (get_stat_birthtime): Also work with st_birthtim.
42307
42308 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42309
42310         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42311         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42312         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42313         (get_stat_birthtime_ns): Simplify compile-time tests.
42314         (get_stat_birthtime): Change the API to look like
42315         get_stat_mtime etc., except return a negative tv_nsec on error.
42316         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42317         Don't check for "spare" fields.
42318         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42319         or for struct stat.st_birthtime, as these tests aren't used.
42320         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42321
42322 2007-03-27  Bruno Haible  <bruno@clisp.org>
42323
42324         * lib/stat-time.h: Include <sys/stat.h>.
42325
42326 2007-03-27  James Youngman  <jay@gnu.org>
42327
42328         * lib/stat-time.h (get_stat_birthtime): New function for
42329           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42330         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42331           and its variants.
42332         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42333         * modules/stat-time-test: New file.
42334         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42335
42336 2007-03-26  Bruno Haible  <bruno@clisp.org>
42337
42338         Better support of signalling NaNs.
42339         * lib/atanl.c: Include isnanl.h.
42340         (atanl): Perform test for NaN at the beginning of the function and
42341         through a call to isnanl.
42342         * lib/cosl.c: Include isnanl.h.
42343         (cosl): Perform test for NaN at the beginning of the function and
42344         through a call to isnanl.
42345         * lib/ldexpl.c: Include isnanl.h.
42346         (ldexpl): Perform test for NaN through a call to isnanl.
42347         * lib/logl.c: Include isnanl.h.
42348         (logl): Perform test for NaN at the beginning of the function and
42349         through a call to isnanl.
42350         * lib/sinl.c: Include isnanl.h.
42351         (sinl): Perform test for NaN at the beginning of the function and
42352         through a call to isnanl.
42353         * lib/sqrtl.c: Include isnanl.h.
42354         (sqrtl): Perform test for NaN at the beginning of the function and
42355         through a call to isnanl.
42356         * lib/tanl.c: Include isnanl.h.
42357         (tanl): Perform test for NaN at the beginning of the function and
42358         through a call to isnanl.
42359         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42360         * modules/mathl (Depends-on): Add isnanl.
42361
42362 2007-03-26  Eric Blake  <ebb9@byu.net>
42363
42364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42365         regression in logic sense of previous patch.
42366
42367 2007-03-26  Bruno Haible  <bruno@clisp.org>
42368
42369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42370         unportable shell command "if ! ...".
42371         Reported by Ralf Wildenhues.
42372
42373 2007-03-25  Bruno Haible  <bruno@clisp.org>
42374
42375         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42376         <sysexits.h> file, and only add EX_CONFIG.
42377         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42378         absolute file name and whether it is sufficient. Substitute also
42379         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42380         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42381         ABSOLUTE_SYSEXITS_H into sysexits.h.
42382
42383 2007-03-25  Bruno Haible  <bruno@clisp.org>
42384
42385         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42386         hints is NULL.
42387
42388 2007-03-25  Bruno Haible  <bruno@clisp.org>
42389
42390         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42391         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42392
42393 2007-03-25  Bruno Haible  <bruno@clisp.org>
42394
42395         * lib/vasnprintf.c: Include langinfo.h.
42396         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42397         multithread-safe.
42398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42399         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42400         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42401         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42402         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42404         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42405         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42406         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42407         Reported by Simon Josefsson.
42408
42409 2007-03-25  Bruno Haible  <bruno@clisp.org>
42410
42411         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42412         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
42413         * modules/vasnprintf (Depends-on): Add stdint.
42414
42415 2007-03-25  Bruno Haible  <bruno@clisp.org>
42416
42417         * modules/fpieee: New file.
42418         * m4/fpieee.m4: New file.
42419         * modules/isnan-nolibm (Depends-on): Add fpieee.
42420         * modules/isnanl-nolibm (Depends-on): Add fpieee.
42421         * modules/isnanl (Depends-on): Add fpieee.
42422
42423 2007-03-25  Bruno Haible  <bruno@clisp.org>
42424
42425         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
42426
42427 2007-03-25  Bruno Haible  <bruno@clisp.org>
42428
42429         Avoid test failures on IRIX 6.5.
42430         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
42431         (main): Use it.
42432         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
42433         macros.
42434         (main): Use them.
42435
42436 2007-03-25  Bruno Haible  <bruno@clisp.org>
42437
42438         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
42439         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
42440         exists but doesn't work.
42441         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
42442         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
42443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
42444         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
42445
42446 2007-03-25  Bruno Haible  <bruno@clisp.org>
42447
42448         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
42449         returns inf. Needed on IRIX 6.5.
42450
42451 2007-03-25  Bruno Haible  <bruno@clisp.org>
42452
42453         * tests/test-frexpl.c: Include isnanl-nolibm.h.
42454         (main): Use isnanl instead of x != x idiom.
42455         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
42456
42457         * tests/test-frexp.c: Include isnan.h.
42458         (main): Use isnan instead of x != x idiom.
42459         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
42460
42461 2007-03-25  Bruno Haible  <bruno@clisp.org>
42462
42463         * tests/test-frexp.c (NaN): New function/macro.
42464         (main): Use it instead of 0.0 / 0.0.
42465         * tests/test-isnan.c (NaN): New function/macro.
42466         (main): Use it instead of 0.0 / 0.0.
42467         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
42468         (test_function): Use it instead of 0.0 / 0.0.
42469         * tests/test-vasprintf-posix.c (NaN): New function/macro.
42470         (test_function): Use it instead of 0.0 / 0.0.
42471         * tests/test-snprintf-posix.h (NaN): New function/macro.
42472         (test_function): Use it instead of 0.0 / 0.0.
42473         * tests/test-sprintf-posix.h (NaN): New function/macro.
42474         (test_function): Use it instead of 0.0 / 0.0.
42475         * tests/test-fprintf-posix.h (NaN): New function/macro.
42476         (test_function): Use it instead of 0.0 / 0.0.
42477         * tests/test-printf-posix.h (NaN): New function/macro.
42478         (test_function): Use it instead of 0.0 / 0.0.
42479
42480         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
42481
42482 2007-03-25  Bruno Haible  <bruno@clisp.org>
42483
42484         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
42485
42486 2007-03-25  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/regexec.c (merge_state_with_log): Make static.
42489
42490 2007-03-25  Bruno Haible  <bruno@clisp.org>
42491
42492         * lib/trigl.c (kernel_rem_pio2): Make static.
42493
42494 2007-03-25  Bruno Haible  <bruno@clisp.org>
42495
42496         * lib/sincosl.c (sincosl_table): Make static.
42497
42498 2007-03-25  Bruno Haible  <bruno@clisp.org>
42499
42500         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
42501         if the compiler does not support C99.
42502
42503 2007-03-25  Bruno Haible  <bruno@clisp.org>
42504
42505         * modules/time (Makefile.am): Ensure all rule action lines start with a
42506         tab.
42507
42508 2007-03-24  Bruno Haible  <bruno@clisp.org>
42509
42510         * modules/tsearch-tests: New file.
42511         * tests/test-tsearch.sh: New file.
42512         * tests/test-tsearch.c: New file, mostly copied from glibc.
42513
42514         * modules/search-tests: New file.
42515         * tests/test-search.c: New file.
42516
42517         * modules/search: New file.
42518         * lib/search_.h: New file, incorporating lib/tsearch.h.
42519         * m4/search_h.m4: New file.
42520         * lib/tsearch.h: Remove file.
42521         * lib/tsearch.c: Include search.h instead of tsearch.h.
42522         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
42523         HAVE_TSEARCH.
42524         * modules/tsearch (Files): Remove lib/tsearch.h.
42525         (Depends-on): Add search.
42526         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
42527         (Include): Change tsearch.h into search.h.
42528
42529 2007-03-24  Bruno Haible  <bruno@clisp.org>
42530
42531         * modules/fpucw: New file.
42532         * lib/fpucw.h: New file.
42533         * lib/frexp.c: Include fpucw.h.
42534         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42535         (FUNC): Use them.
42536         * lib/printf-frexp.c: Include fpucw.h.
42537         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42538         (FUNC): Use them.
42539         * lib/vasnprintf.c: Include fpucw.h.
42540         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
42541         'long double' calculations.
42542         * tests/test-frexpl.c: Include fpucw.h.
42543         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42544         * tests/test-printf-frexpl.c: Include fpucw.h.
42545         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42546         * modules/frexpl (Depends-on): Add fpucw.
42547         * modules/printf-frexpl (Depends-on): Likewise.
42548         * modules/fprintf-posix (Depends-on): Likewise.
42549         * modules/snprintf-posix (Depends-on): Likewise.
42550         * modules/sprintf-posix (Depends-on): Likewise.
42551         * modules/vasnprintf-posix (Depends-on): Likewise.
42552         * modules/vasprintf-posix (Depends-on): Likewise.
42553         * modules/vfprintf-posix (Depends-on): Likewise.
42554         * modules/vsnprintf-posix (Depends-on): Likewise.
42555         * modules/vsprintf-posix (Depends-on): Likewise.
42556         * modules/frexpl-tests (Depends-on): Likewise.
42557         * modules/printf-frexpl-tests (Depends-on): Likewise.
42558
42559 2007-03-24  Bruno Haible  <bruno@clisp.org>
42560
42561         * lib/float+.h: New file.
42562         * lib/isnan.c: Include float+.h.
42563         (SIZE): New macro.
42564         (FUNC): Compare only SIZE bytes of the value.
42565         * lib/vasnprintf.c: Include float+.h.
42566         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
42567         SIZEOF_LDBL or SIZEOF_DBL bytes.
42568         * modules/isnan-nolibm (Files): Add lib/float+.h.
42569         * modules/isnanl-nolibm (Files): Add lib/float+.h.
42570         * modules/isnanl (Files): Add lib/float+.h.
42571         * modules/vasnprintf (Files): Add lib/float+.h.
42572
42573 2007-03-24  Bruno Haible  <bruno@clisp.org>
42574
42575         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
42576         include isnanl-nolibm.h.
42577
42578 2007-03-24  Bruno Haible  <bruno@clisp.org>
42579
42580         * tests/test-read-file.c (main): Don't produce spurious output for
42581         expected situations. Make the test fail if it encountered unexpected
42582         results.
42583
42584 2007-03-24  Bruno Haible  <bruno@clisp.org>
42585
42586         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
42587         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
42588
42589 2007-03-24  Bruno Haible  <bruno@clisp.org>
42590
42591         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
42592
42593 2007-03-24  Bruno Haible  <bruno@clisp.org>
42594
42595         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
42596         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
42597
42598         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
42599         * modules/utf8-ucs4: Turn into a symbolic link to module
42600         unistr/u8-mbtouc.
42601
42602         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
42603         utf8-ucs4-unsafe.
42604         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
42605         unistr/u8-mbtouc-unsafe.
42606
42607         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
42608         * modules/utf16-ucs4: Turn into a symbolic link to module
42609         unistr/u16-mbtouc.
42610
42611         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
42612         utf16-ucs4-unsafe.
42613         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
42614         unistr/u16-mbtouc-unsafe.
42615
42616         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
42617         * modules/ucs4-utf8: Turn into a symbolic link to module
42618         unistr/u8-ubtomb.
42619
42620         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
42621         * modules/ucs4-utf16: Turn into a symbolic link to module
42622         unistr/u16-ubtomb.
42623
42624 2007-03-24  Bruno Haible  <bruno@clisp.org>
42625
42626         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
42627         Enable the function only if HAVE_INLINE.
42628         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
42629         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42630         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
42631         Enable the function only if HAVE_INLINE.
42632         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
42633         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42634         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
42635         Enable the function only if HAVE_INLINE.
42636         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
42637         Enable the function only if HAVE_INLINE.
42638         * modules/utf8-ucs4: Update.
42639         * modules/utf8-ucs4-unsafe: Update.
42640         * modules/utf16-ucs4: Update.
42641         * modules/utf16-ucs4-unsafe: Update.
42642         * modules/ucs4-utf8: Update.
42643         * modules/ucs4-utf16: Update.
42644
42645 2007-03-24  Bruno Haible  <bruno@clisp.org>
42646
42647         * lib/utf8-ucs4.h: Remove file.
42648         * lib/utf8-ucs4-unsafe.h: Remove file.
42649         * lib/utf16-ucs4.h: Remove file.
42650         * lib/utf16-ucs4-unsafe.h: Remove file.
42651         * lib/ucs4-utf8.h: Remove file.
42652         * lib/ucs4-utf16.h: Remove file.
42653         * lib/unistr.h: Include their previous contents.
42654         * m4/utf-ucs4.m4: Remove file.
42655         * m4/ucs4-utf.m4: Remove file.
42656         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
42657         (Depends-on): Add unistr/base.
42658         (configure.ac): Remove gl_UTF_UCS4.
42659         (Makefile.am): Update.
42660         (Include): Change to unistr.h.
42661         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
42662         (Depends-on): Add unistr/base.
42663         (configure.ac): Remove gl_UTF_UCS4.
42664         (Makefile.am): Update.
42665         (Include): Change to unistr.h.
42666         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
42667         (Depends-on): Add unistr/base.
42668         (configure.ac): Remove gl_UTF_UCS4.
42669         (Makefile.am): Update.
42670         (Include): Change to unistr.h.
42671         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
42672         (Depends-on): Add unistr/base.
42673         (configure.ac): Remove gl_UTF_UCS4.
42674         (Makefile.am): Update.
42675         (Include): Change to unistr.h.
42676         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
42677         (Depends-on): Add unistr/base.
42678         (configure.ac): Remove gl_UCS4_UTF.
42679         (Makefile.am): Update.
42680         (Include): Change to unistr.h.
42681         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
42682         (Depends-on): Add unistr/base.
42683         (configure.ac): Remove gl_UCS4_UTF.
42684         (Makefile.am): Update.
42685         (Include): Change to unistr.h.
42686         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
42687         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
42688         utf8-ucs4-unsafe.h.
42689         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
42690         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
42691         utf16-ucs4-unsafe.h.
42692         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
42693         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
42694         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
42695         * lib/unistr/u8-strchr.c: Likewise.
42696         * lib/unistr/u8-strrchr.c: Likewise.
42697         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
42698         * lib/unistr/u16-strchr.c: Likewise.
42699         * lib/unistr/u16-strrchr.c: Likewise.
42700         * lib/striconveh.c: Update.
42701         * lib/linebreak.c: Update.
42702
42703 2007-03-24  Bruno Haible  <bruno@clisp.org>
42704
42705         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
42706         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
42707
42708 2007-03-22  Bruno Haible  <bruno@clisp.org>
42709
42710         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
42711
42712 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
42713
42714         * MODULES.html.sh (File system functions): New module write-any-file.
42715         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
42716         * m4/write-any-file.m4: New files.
42717
42718 2007-03-23  Eric Blake  <ebb9@byu.net>
42719
42720         * gnulib-tool: Rearrange space-tab sequences, since some editors
42721         like to eat them.
42722
42723 2007-03-23  Eric Blake  <ebb9@byu.net>
42724
42725         * lib/version-etc.c (version_etc_va): Update license wording to
42726         be more concise.  Recommended by Richard Stallman.
42727
42728 2007-03-22  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/poll.c (MSG_PEEK): New fallback definition.
42731
42732 2007-03-22  Bruno Haible  <bruno@clisp.org>
42733
42734         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
42735         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
42736         (main): Update.
42737         Fixes a compilation error on BeOS.
42738
42739 2007-03-22  Bruno Haible  <bruno@clisp.org>
42740
42741         * modules/frexpl-tests: New file.
42742         * tests/test-frexpl.c: New file.
42743
42744         * modules/frexpl: New file.
42745         * m4/frexpl.m4: New file.
42746         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
42747         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
42748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
42749         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
42750         (Depends-on): Add frexpl. Remove isnanl-nolibm.
42751         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
42752
42753 2007-03-22  Bruno Haible  <bruno@clisp.org>
42754
42755         * lib/frexpl.c: Share code with lib/frexp.c.
42756         * modules/mathl (Files): Add lib/frexp.c.
42757         (Depends-on): Add isnanl-nolibm.
42758
42759 2007-03-22  Bruno Haible  <bruno@clisp.org>
42760
42761         * modules/printf-frexp (Files): Add m4/frexp.m4.
42762         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
42763         only if the found frexp function actually works.
42764
42765 2007-03-22  Bruno Haible  <bruno@clisp.org>
42766
42767         * lib/frexp.c: Remove older implementation that uses divisions.
42768
42769 2007-03-21  Bruno Haible  <bruno@clisp.org>
42770
42771         * modules/frexp-tests: New file.
42772         * tests/test-frexp.c: New file.
42773
42774         * modules/frexp: New file.
42775         * lib/frexp.c: New file.
42776         * m4/frexp.m4: New file.
42777         * lib/math_.h (frexp): New declaration.
42778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
42779         REPLACE_FREXP.
42780         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
42781
42782 2007-03-21  Bruno Haible  <bruno@clisp.org>
42783
42784         * modules/isnanl-tests: New file.
42785         * tests/test-isnanl.c: New file.
42786
42787         * modules/isnanl: New file.
42788         * lib/isnanl.h: New file.
42789         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
42790         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
42791         gl_FUNC_ISNANL_WORKS.
42792         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
42793         New macros.
42794
42795 2007-03-21  Bruno Haible  <bruno@clisp.org>
42796
42797         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
42798         lib/isnanl.h.
42799         (Include): Update.
42800         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
42801         * lib/vasnprintf.c: Update.
42802         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
42803         tests/test-isnanl.h, remove tests/test-isnanl.c.
42804         (Makefile.am): Update.
42805         * tests/test-isnanl-nolibm.c: New file.
42806         * tests/test-isnanl.h: New file.
42807         * tests/test-isnanl.c: Remove file.
42808
42809 2007-03-21  Jim Meyering  <jim@meyering.net>
42810
42811         When trying to open ".", treat ESTALE like EACCES.
42812         * lib/savewd.c (savewd_save): Resort to forking not just upon
42813         failure with EACCES, but also when errno is ESTALE.
42814
42815 2007-03-20  Bruno Haible  <bruno@clisp.org>
42816
42817         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
42818         Needed on AIX 5.1. Reported by Matthew Woehlke.
42819
42820 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42821
42822         Suggestions by Bruno Haible:
42823         * lib/acl-internal.h: Include "gettext.h" rather than rolling
42824         our own.
42825         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
42826         * modules/acl (Depends-on): Add gettext.
42827
42828 2007-03-19  Bruno Haible  <bruno@clisp.org>
42829
42830         * modules/iconvme: Remove file.
42831         * lib/iconvme.h: Remove file.
42832         * lib/iconvme.c: Remove file.
42833         * m4/iconvme.m4: Remove file.
42834
42835 2007-03-19  Bruno Haible  <bruno@clisp.org>
42836
42837         * doc/relocatable-maint.texi: Break long shell script line.
42838         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
42839
42840 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42841
42842         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
42843         handle file_has_acl.
42844         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
42845         * lib/acl.c: Move header inclusions and related macro defns into
42846         lib/acl-internal.h.
42847         (S_ISLNK): Remove defn, since that's now done for us.
42848         (file_has_acl): Move to lib/file-has-acl.c.
42849         Call acl_trivial if available.  This is the crucial part of the fix.
42850         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
42851         shared within the library.  Rewrite a bit, partly to make it compatible
42852         with the GNU coding style.
42853         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
42854         Remove unnecessary double-quotes.
42855         Don't test for acl_to_text; the build will catch that.
42856         Replace acl_entries if it doesn't exist and it is needed.
42857         Check for -lsec and acl_trivial (as used on Solaris 10).
42858         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
42859         lib/file-has-acl.c.
42860         (Depends-on): Add sys_stat, for S_ISLNK.
42861
42862 2007-03-19  Ben Pfaff  <blp@gnu.org>
42863
42864         * doc/gnulib.texi: Fix typos.
42865         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
42866
42867 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42868
42869         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
42870         If size is zero here, buf must be zero.
42871
42872 2007-03-19  Simon Josefsson  <simon@josefsson.org>
42873
42874         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
42875         <bruno@clisp.org>.
42876
42877 2007-03-18  Bruno Haible  <bruno@clisp.org>
42878
42879         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
42880         Suggested by Eric Blake.
42881
42882 2007-03-18  Ben Pfaff  <blp@gnu.org>
42883
42884         * doc/relocatable.texi: Recommend using as prefix a directory
42885         that does not exist and will never be created.  Based on
42886         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
42887         and others.
42888
42889 2007-03-17  Bruno Haible  <bruno@clisp.org>
42890
42891         * lib/fchownat.c: Include lchown.h.
42892
42893 2007-03-17  Bruno Haible  <bruno@clisp.org>
42894
42895         Fix endless loop when the given allocated size was > INT_MAX.
42896         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
42897         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
42898         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
42899         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
42900         * lib/sprintf.c (sprintf): Likewise.
42901
42902 2007-03-17  Bruno Haible  <bruno@clisp.org>
42903
42904         * tests/test-argp-2.sh (func_compare): Output a context diff.
42905
42906 2007-03-17  Bruno Haible  <bruno@clisp.org>
42907
42908         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
42909         locale's decimal-point character.
42910
42911 2007-03-17  Bruno Haible  <bruno@clisp.org>
42912
42913         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
42914         before comparing it. Needed because on some platforms (e.g. x86) a
42915         'long double' occupies less bytes than sizeof (long double).
42916
42917 2007-03-17  Bruno Haible  <bruno@clisp.org>
42918
42919         * tests/test-crc.c (main): Make printf statements 64-bit clean.
42920         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
42921         * tests/test-getaddrinfo.c (simple): Likewise.
42922         * tests/test-read-file.c (main): Likewise.
42923
42924 2007-03-17  Bruno Haible  <bruno@clisp.org>
42925
42926         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
42927
42928 2007-03-17  Bruno Haible  <bruno@clisp.org>
42929
42930         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
42931         unused variable.
42932
42933 2007-03-17  Bruno Haible  <bruno@clisp.org>
42934
42935         * tests/test-c-strcasecmp.c: Include c-strcase.h.
42936         * tests/test-c-strncasecmp.c: Likewise.
42937
42938 2007-03-17  Bruno Haible  <bruno@clisp.org>
42939
42940         * modules/stdlib (Depends-on): Add unistd.
42941         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
42942         Needed for MacOS X 10.3.
42943
42944 2007-03-17  Bruno Haible  <bruno@clisp.org>
42945
42946         * lib/unistr/u-strdup.h: Include <stdlib.h>.
42947
42948 2007-03-17  Bruno Haible  <bruno@clisp.org>
42949
42950         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
42951
42952 2007-03-17  Bruno Haible  <bruno@clisp.org>
42953
42954         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
42955         to reflect files copied from gnulib (with or without modifications).
42956         Suggested by Jim Meyering.
42957
42958 2007-03-17  Eric Blake  <ebb9@byu.net>
42959
42960         * NEWS: Document stdlib change from 2007-02-18.
42961
42962 2007-03-17  Jim Meyering  <jim@meyering.net>
42963
42964         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
42965         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
42966         someone uses a name containing shell meta-characters.
42967         Reported by Alfred M. Szmidt.
42968
42969         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
42970
42971 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
42972
42973         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
42974         and copy gettext configuration files only if configure.ac contains
42975         a use of AM_GNU_GETTEXT_VERSION.
42976
42977 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
42978
42979         * build-aux/bootstrap (gnulib_name): New variable.
42980         (gnulib_tool_options): Use it.
42981
42982 2007-03-13  Simon Josefsson  <simon@josefsson.org>
42983
42984         * tests/test-des.c: Use new namespace.
42985
42986 2007-03-15  Bruno Haible  <bruno@clisp.org>
42987
42988         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
42989         Reported by James Youngman <jay@gnu.org>.
42990
42991 2007-03-15  Bruno Haible  <bruno@clisp.org>
42992
42993         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
42994         declared prototype. Needed with cc on OSF/1 5.1.
42995
42996 2007-03-15  Bruno Haible  <bruno@clisp.org>
42997
42998         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
42999         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43000         (struct gl_list_implementation): Add dispose_fn argument to the
43001         'create_empty', 'create' methods.
43002         (struct gl_list_impl_base): Add field 'dispose_fn'.
43003         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43004         argument.
43005         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43006         dispose_fn argument.
43007         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43008         dispose_fn on the dropped values.
43009         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43010         dispose_fn argument.
43011         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43012         dropped values.
43013         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43014         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43015         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43016         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43017         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43018         argument.
43019         (gl_tree_list_free): Call dispose_fn on the dropped values.
43020         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43021         the dropped values.
43022         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43023         Add dispose_fn argument.
43024         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43025         Call dispose_fn on the dropped values.
43026         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43027         Add dispose_fn argument.
43028         (gl_sublist_create): Initialize the 'dispose_fn' field.
43029         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43030         * tests/test-array_list.c (main): Update.
43031         * tests/test-carray_list.c (main): Update.
43032         * tests/test-avltree_list.c (main): Update.
43033         * tests/test-rbtree_list.c (main): Update.
43034         * tests/test-avltreehash_list.c (main): Update.
43035         * tests/test-rbtreehash_list.c (main): Update.
43036         * tests/test-linked_list.c (main): Update.
43037         * tests/test-linkedhash_list.c (main): Update.
43038         * tests/test-array_oset.c (main): Update.
43039
43040 2007-03-15  Bruno Haible  <bruno@clisp.org>
43041
43042         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43043         (gl_oset_create_empty): Add dispose_fn argument.
43044         (struct gl_oset_implementation): Add dispose_fn argument to
43045         'create_empty' method.
43046         (struct gl_oset_impl_base): Add dispose_fn field.
43047         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43048         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43049         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43050         values.
43051         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43052         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43053         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43054         dropped value.
43055         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43056         dropped value.
43057         * tests/test-array_oset.c (main): Update.
43058         * tests/test-avltree_oset.c (main): Update.
43059         * tests/test-rbtree_oset.c (main): Update.
43060         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43061
43062 2007-03-13  Bruno Haible  <bruno@clisp.org>
43063
43064         * tests/test-stdbool.c (i): Update after last patch.
43065
43066 2007-03-12  Bruno Haible  <bruno@clisp.org>
43067
43068         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43069         the iswprint macro. Needed on Solaris 2.5.1.
43070
43071 2007-03-12  Bruno Haible  <bruno@clisp.org>
43072
43073         * tests/test-printf-frexp.c (main): Declare x as volatile.
43074
43075 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43076
43077         * doc/gnulib.texi (Build robot for gnulib): New section.
43078
43079 2007-03-12  Jim Meyering  <jim@meyering.net>
43080
43081         * build-aux/bootstrap: New file.
43082         * build-aux/bootstrap.conf: New file, from coreutils.
43083
43084 2007-03-11  Bruno Haible  <bruno@clisp.org>
43085
43086         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43087
43088 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43089
43090         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43091         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43092         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43093
43094 2007-03-11  Bruno Haible  <bruno@clisp.org>
43095
43096         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43097         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43098
43099 2007-03-11  Bruno Haible  <bruno@clisp.org>
43100
43101         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43102         formula. Needed for SunPRO C 5.0.
43103
43104 2007-03-11  Bruno Haible  <bruno@clisp.org>
43105
43106         * modules/long-options (Depends-on): Add getopt.
43107
43108 2007-03-11  Bruno Haible  <bruno@clisp.org>
43109
43110         * modules/modechange (Depends-on): Add stdbool.
43111
43112 2007-03-11  Bruno Haible  <bruno@clisp.org>
43113
43114         * modules/i-ring (Depends-on): Add stdbool.
43115
43116 2007-03-11  Bruno Haible  <bruno@clisp.org>
43117
43118         * modules/gc-des (Depends-on): Add stdbool.
43119
43120 2007-03-11  Bruno Haible  <bruno@clisp.org>
43121
43122         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43123
43124 2007-03-11  Bruno Haible  <bruno@clisp.org>
43125
43126         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43127
43128 2007-03-11  Bruno Haible  <bruno@clisp.org>
43129
43130         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43131
43132 2007-03-11  Bruno Haible  <bruno@clisp.org>
43133
43134         * lib/vasnprintf.c (sprintf): Undefine.
43135
43136 2007-03-11  Bruno Haible  <bruno@clisp.org>
43137
43138         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43139         initializers in SunPRO C and Compaq C compilers.
43140
43141 2007-03-11  Bruno Haible  <bruno@clisp.org>
43142
43143         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43144         decrementing code ANSI C compliant.
43145
43146 2007-03-11  Bruno Haible  <bruno@clisp.org>
43147
43148         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43149         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43150
43151 2007-03-11  Bruno Haible  <bruno@clisp.org>
43152
43153         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43154         <stdbool.h> substitute doesn't pass.
43155
43156 2007-03-11  Bruno Haible  <bruno@clisp.org>
43157
43158         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43159
43160 2007-03-11  Bruno Haible  <bruno@clisp.org>
43161
43162         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43163         script, for submission to autobuild.josefsson.org.
43164
43165 2007-03-10  Bruno Haible  <bruno@clisp.org>
43166
43167         * modules/canonicalize-lgpl-tests: New file.
43168         * tests/test-canonicalize-lgpl.sh: New file.
43169         * tests/test-canonicalize-lgpl.c: New file.
43170
43171         * modules/c-strcase-tests: New file.
43172         * tests/test-c-strcase.sh: New file.
43173         * tests/test-c-strcasecmp.c: New file.
43174         * tests/test-c-strncasecmp.c: New file.
43175
43176         * modules/atexit-tests: New file.
43177         * tests/test-atexit.sh: New file.
43178         * tests/test-atexit.c: New file.
43179
43180 2007-03-10  Bruno Haible  <bruno@clisp.org>
43181
43182         * tests/test-binary-io.sh: Use temporary filenames that are not so
43183         likely to clash with those of other tests (in a parallel make).
43184         * tests/test-binary-io.c: Likewise.
43185
43186 2007-03-10  Bruno Haible  <bruno@clisp.org>
43187
43188         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43189         fallback; use #error instead.
43190         Suggested by Simon Josefsson.
43191
43192 2007-03-10  Bruno Haible  <bruno@clisp.org>
43193
43194         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43195         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43196         first and the last.
43197
43198 2007-03-10  Bruno Haible  <bruno@clisp.org>
43199
43200         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43201
43202 2007-03-10  Bruno Haible  <bruno@clisp.org>
43203
43204         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43205         "make distcheck".
43206         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43207         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43208         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43209
43210 2007-03-10  Bruno Haible  <bruno@clisp.org>
43211
43212         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43213         variable.
43214         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43215         variable.
43216
43217 2007-03-09  Eric Blake  <ebb9@byu.net>
43218         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43219
43220         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43221         types are not being provided by gnulib.
43222         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43223         types are supported.
43224
43225 2007-03-10  Bruno Haible  <bruno@clisp.org>
43226
43227         * lib/stdio_.h (__attribute__): New macro.
43228         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43229         vsprintf): Specify __attribute__ __format__ for GCC.
43230         Suggested by Eric Blake.
43231
43232 2007-03-09  Bruno Haible  <bruno@clisp.org>
43233
43234         * modules/printf-posix-tests: New file.
43235         * tests/test-printf-posix.sh: New file.
43236         * tests/test-printf-posix.c: New file.
43237
43238         * modules/printf-posix: New file.
43239         * lib/printf.c: New file.
43240         * m4/printf-posix-rpl.m4: New file.
43241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43242         REPLACE_PRINTF.
43243         * lib/stdio_.h (printf): New declaration.
43244         (format, __format__, ____printf____, ____scanf____, ____strftime____,
43245         ____strfmon____): New macros.
43246         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
43247         REPLACE_PRINTF.
43248
43249 2007-03-09  Bruno Haible  <bruno@clisp.org>
43250
43251         * tests/test-vasnprintf-posix2.sh: New file.
43252         * tests/test-vasnprintf-posix2.c: New file.
43253         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
43254         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43255         (Makefile.am): Activate test-vasnprintf-posix2.sh.
43256
43257         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
43258         a locale dependent decimal point, rather than always '.'.
43259
43260 2007-03-09  Eric Blake  <ebb9@byu.net>
43261
43262         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
43263         spite of platforms like Tandem/NSK that define it to -1.
43264
43265 2007-03-08  Bruno Haible  <bruno@clisp.org>
43266
43267         * modules/vprintf-posix-tests: New file.
43268         * tests/test-vprintf-posix.sh: New file.
43269         * tests/test-vprintf-posix.c: New file.
43270         * tests/test-printf-posix.h: New file.
43271
43272         * modules/vprintf-posix: New file.
43273         * lib/vprintf.c: New file.
43274         * m4/vprintf-posix.m4: New file.
43275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
43276         REPLACE_VPRINTF.
43277         * lib/stdio_.h (vprintf): New declaration.
43278         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
43279         REPLACE_VPRINTF.
43280
43281 2007-03-08  Bruno Haible  <bruno@clisp.org>
43282
43283         * modules/fprintf-posix-tests: New file.
43284         * tests/test-fprintf-posix.sh: New file.
43285         * tests/test-fprintf-posix.c: New file.
43286
43287         * modules/fprintf-posix: New file.
43288         * lib/fprintf.c: New file.
43289         * m4/fprintf-posix.m4: New file.
43290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43291         REPLACE_FPRINTF.
43292         * lib/stdio_.h (fprintf): New declaration.
43293         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43294         REPLACE_FPRINTF.
43295
43296 2007-03-08  Bruno Haible  <bruno@clisp.org>
43297
43298         * modules/vfprintf-posix-tests: New file.
43299         * tests/test-vfprintf-posix.sh: New file.
43300         * tests/test-vfprintf-posix.c: New file.
43301         * tests/test-fprintf-posix.h: New file.
43302         * tests/test-fprintf-posix.out: New file.
43303
43304         * modules/vfprintf-posix: New file.
43305         * lib/vfprintf.c: New file.
43306         * m4/vfprintf-posix.m4: New file.
43307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43308         REPLACE_VFPRINTF.
43309         * lib/stdio_.h (vfprintf): New declaration.
43310         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43311         REPLACE_VFPRINTF.
43312
43313 2007-03-08  Bruno Haible  <bruno@clisp.org>
43314
43315         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43316
43317 2007-03-08  Bruno Haible  <bruno@clisp.org>
43318
43319         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43320         instead of 'expr' invocations.
43321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43322         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43325         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43326         Suggested by Paul Eggert.
43327
43328 2007-03-08  Bruno Haible  <bruno@clisp.org>
43329
43330         * modules/fseterr-tests: New file.
43331         * tests/test-fseterr.c: New file.
43332
43333         * modules/fseterr: New file.
43334         * lib/fseterr.h: New file.
43335         * lib/fseterr.c: New file.
43336
43337 2007-03-08  Bruno Haible  <bruno@clisp.org>
43338
43339         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43340         * lib/getopt_.h: Likewise.
43341         * lib/mbswidth.h: Likewise.
43342         * lib/setenv.h: Likewise.
43343         * lib/vasnprintf.h: Likewise.
43344         * lib/vasprintf.h: Likewise.
43345         * lib/verror.h: Likewise.
43346         * lib/xsetenv.h: Likewise.
43347         * lib/xvasprintf.h: Likewise.
43348
43349 2007-03-08  Jim Meyering  <jim@meyering.net>
43350
43351         * users.txt: Add parted.
43352
43353         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43354
43355 2007-03-07  Bruno Haible  <bruno@clisp.org>
43356
43357         * m4/printf.m4: Make the shell script snippets copy&pastable.
43358
43359 2007-03-02  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/netinet_in_.h: New file.
43362         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43363         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43364         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43365         (Depends-on): Add absolute-header.
43366         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43367         into netinet/in.h.
43368
43369 2007-03-03  Bruno Haible  <bruno@clisp.org>
43370
43371         * lib/sys_select_.h: New file.
43372         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43373         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43374         * modules/sys_select (Files): Add lib/sys_select_.h.
43375         (Depends-on): Add absolute-header.
43376         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43377         into sys/select.h.
43378
43379 2007-03-02  Bruno Haible  <bruno@clisp.org>
43380
43381         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43382         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43383         values.
43384         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43385         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43386         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43387         * modules/sys_socket (Depends-on): Add absolute-header.
43388         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43389         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43390         (Include): Remove requirement of inclusion of <sys/types.h>.
43391
43392 2007-03-02  Bruno Haible  <bruno@clisp.org>
43393
43394         * lib/byteswap_.h (bswap_32): Fix formula.
43395
43396 2007-03-06  Bruno Haible  <bruno@clisp.org>
43397
43398         * modules/sprintf-posix-tests: New file.
43399         * tests/test-sprintf-posix.c: New file.
43400
43401         * modules/sprintf-posix: New file.
43402         * lib/sprintf.c: New file.
43403         * m4/sprintf-posix.m4: New file.
43404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43405         REPLACE_SPRINTF.
43406         * lib/stdio_.h (sprintf): New declaration.
43407         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43408         REPLACE_SPRINTF.
43409
43410 2007-03-06  Bruno Haible  <bruno@clisp.org>
43411
43412         * modules/vsprintf-posix-tests: New file.
43413         * tests/test-vsprintf-posix.c: New file.
43414         * tests/test-sprintf-posix.h: New file.
43415
43416         * modules/vsprintf-posix: New file.
43417         * lib/vsprintf.c: New file.
43418         * m4/vsprintf-posix.m4: New file.
43419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
43420         REPLACE_VSPRINTF.
43421         * lib/stdio_.h (vsprintf): New declaration.
43422         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
43423         REPLACE_VSPRINTF.
43424
43425 2007-03-06  Bruno Haible  <bruno@clisp.org>
43426
43427         * modules/vsnprintf (Depend-on): Remove minmax.
43428
43429 2007-03-06  Bruno Haible  <bruno@clisp.org>
43430
43431         * modules/snprintf-posix-tests: New file.
43432         * tests/test-snprintf-posix.c: New file.
43433
43434         * modules/snprintf-posix: New file.
43435         * m4/snprintf-posix.m4: New file.
43436         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
43437         gl_FUNC_SNPRINTF.
43438         (gl_FUNC_SNPRINTF): Invoke it.
43439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
43440         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
43441         is set.
43442         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
43443
43444 2007-03-06  Bruno Haible  <bruno@clisp.org>
43445
43446         * modules/vsnprintf-posix-tests: New file.
43447         * tests/test-vsnprintf-posix.c: New file.
43448         * tests/test-snprintf-posix.h: New file.
43449
43450         * modules/vsnprintf-posix: New file.
43451         * m4/vsnprintf-posix.m4: New file.
43452         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
43453         gl_FUNC_VSNPRINTF.
43454         (gl_FUNC_VSNPRINTF): Invoke it.
43455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
43456         * lib/stdio_.h (vsnprintf): Define as a replacement if
43457         REPLACE_VSNPRINTF is set.
43458         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
43459
43460 2007-03-06  Bruno Haible  <bruno@clisp.org>
43461
43462         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
43463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
43464
43465 2007-03-06  Bruno Haible  <bruno@clisp.org>
43466
43467         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
43468         (asinl): Declare also if HAVE_DECL_ASINL is set.
43469         (atanl): Declare also if HAVE_DECL_ATANL is set.
43470         (ceill): Declare also if HAVE_DECL_CEILL is set.
43471         (cosl): Declare also if HAVE_DECL_COSL is set.
43472         (expl): Declare also if HAVE_DECL_EXPL is set.
43473         (floorl): Declare also if HAVE_DECL_FLOORL is set.
43474         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
43475         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
43476         (logl): Declare also if HAVE_DECL_LOGL is set.
43477         (sinl): Declare also if HAVE_DECL_SINL is set.
43478         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
43479         (tanl): Declare also if HAVE_DECL_TANL is set.
43480         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
43481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
43482         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
43483         declaration of frexpl, ldexpl.
43484         * modules/printf-frexpl (Depends-on): Add math.
43485         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
43486
43487 2007-03-05  Bruno Haible  <bruno@clisp.org>
43488
43489         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
43490         frexpl and ldexpl are declared.
43491         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
43492
43493 2007-03-05  Bruno Haible  <bruno@clisp.org>
43494
43495         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
43496         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
43497
43498 2007-03-05  Bruno Haible  <bruno@clisp.org>
43499
43500         * lib/stdio_.h: Include <stddef.h>.
43501
43502 2007-03-05  Bruno Haible  <bruno@clisp.org>
43503
43504         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
43505
43506 2007-03-05  Bruno Haible  <bruno@clisp.org>
43507
43508         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
43509         NetBSD 4, from Ralf Wildenhues.
43510
43511 2007-03-04  Bruno Haible  <bruno@clisp.org>
43512
43513         * lib/vasprintf.h: Update #if logic for the case when the functions
43514         exist but are overridden.
43515
43516 2007-03-04  Bruno Haible  <bruno@clisp.org>
43517
43518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
43519         implementations: glibc-2.4 and MacOS X 10.3.
43520         * tests/test-vasnprintf-posix.c (test_function): Test also the case
43521         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
43522         * tests/test-vasprintf-posix.c (test_function): Likewise.
43523
43524 2007-03-04  Bruno Haible  <bruno@clisp.org>
43525
43526         * modules/vasprintf-posix-tests: New file.
43527         * tests/test-vasprintf-posix.c: New file.
43528
43529         * modules/vasprintf-posix: New file.
43530         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
43531         defined.
43532         * m4/vasprintf-posix.m4: New file.
43533         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
43534         gl_FUNC_VASPRINTF.
43535         (gl_FUNC_VASPRINTF): Invoke it.
43536         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
43537         here.
43538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
43539
43540 2007-03-04  Bruno Haible  <bruno@clisp.org>
43541
43542         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
43543         REPLACE_GETTIMEOFDAY.
43544         * modules/sys_time (Makefile.am): Likewise.
43545         * m4/sys_time_h.m4: Likewise.
43546         * m4/gettimeofday.m4: Likewise.
43547
43548 2007-03-04  Bruno Haible  <bruno@clisp.org>
43549
43550         * modules/vasnprintf-posix-tests: New file.
43551         * tests/test-vasnprintf-posix.c: New file.
43552
43553         * modules/vasnprintf-posix: New file.
43554         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
43555         printf-frexpl.h.
43556         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
43557         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
43558         REPLACE_VASNPRINTF is defined.
43559         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
43560         gl_FUNC_VASNPRINTF.
43561         (gl_FUNC_VASNPRINTF): Invoke it.
43562         * m4/vasnprintf-posix.m4: New file.
43563         * m4/printf.m4: New file.
43564
43565 2007-03-04  Bruno Haible  <bruno@clisp.org>
43566
43567         Compile progreloc.c only if --enable-relocatable is specified.
43568         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
43569         if --enable-relocatable was specified.
43570         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
43571         lib_SOURCES.
43572
43573 2007-03-04  Jim Meyering  <jim@meyering.net>
43574
43575         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
43576         Use it consistently, rather than enumerating errno constants.
43577
43578 2007-03-04  Bruno Haible  <bruno@clisp.org>
43579
43580         * modules/xvasprintf-tests: New file.
43581         * tests/test-xvasprintf.c: New file.
43582
43583         * modules/vasprintf-tests: New file.
43584         * tests/test-vasprintf.c: New file.
43585
43586         * modules/vasnprintf-tests: New file.
43587         * tests/test-vasnprintf.c: New file.
43588
43589         * modules/vsnprintf-tests: New file.
43590         * tests/test-vsnprintf.c: New file.
43591
43592         * modules/snprintf-tests: New file.
43593         * tests/test-snprintf.c: New file.
43594
43595 2007-03-04  Bruno Haible  <bruno@clisp.org>
43596
43597         Compile relocatable.c only if --enable-relocatable is specified.
43598         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
43599         gl_RELOCATABLE_LIBRARY.
43600         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
43601         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
43602         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
43603         gl_RELOCATABLE_LIBRARY.
43604         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
43605         (Makefile.am): Remove lib_SOURCES.
43606         * modules/relocatable-lib-lgpl (configure.ac): Invoke
43607         gl_RELOCATABLE_LIBRARY.
43608         (Makefile.am): Remove lib_SOURCES.
43609         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
43610         always.
43611         * modules/relocatable-prog-wrapper (configure.ac): Invoke
43612         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
43613
43614 2007-03-04  Bruno Haible  <bruno@clisp.org>
43615
43616         * modules/argmatch-tests: New file.
43617         * tests/test-argmatch.c: New file.
43618
43619         * tests/test-allocsa.c (main): Halve the number of loop runs.
43620
43621         * modules/alloca-opt-tests: New file.
43622         * tests/test-alloca-opt.c: New file.
43623
43624 2007-03-04  Jim Meyering  <jim@meyering.net>
43625
43626         Work around difference between Linux ACLs and Solaris 10 ZFS.
43627         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
43628         for EINVAL.
43629
43630 2007-03-03  Bruno Haible  <bruno@clisp.org>
43631
43632         * modules/relocatable-prog (Depends-on): Add back progreloc's
43633         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
43634
43635 2007-03-03  Bruno Haible  <bruno@clisp.org>
43636
43637         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
43638         * modules/relocatable-lib: New file.
43639
43640 2007-03-03  Bruno Haible  <bruno@clisp.org>
43641
43642         * modules/relocatable-prog: Renamed from modules/relocatable.
43643         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
43644
43645 2007-03-03  Bruno Haible  <bruno@clisp.org>
43646
43647         * modules/relocatable-script (Files): Add doc/relocatable.texi,
43648         m4/relocatable-lib.m4.
43649         (Depends-on): Remove 'relocatable'.
43650         (configure.ac): Add gl_RELOCATABLE_NOP.
43651
43652 2007-03-03  Bruno Haible  <bruno@clisp.org>
43653
43654         * modules/relocatable-prog-wrapper: New file.
43655         * modules/relocatable (Depends-on): Add it. Remove all other
43656         dependencies except progname.
43657         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
43658
43659         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
43660         (gl_FUNC_STRERROR): Nop.
43661         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
43662
43663         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
43664         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
43665
43666         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
43667         (gl_FUNC_READLINK): Update.
43668
43669         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
43670
43671 2007-03-03  Bruno Haible  <bruno@clisp.org>
43672
43673         * lib/xreadlink.c: Include <unistd.h> unconditionally.
43674         * modules/xreadlink (Depends-on): Add unistd.
43675         * modules/xreadlink-with-size (Depends-on): Likewise.
43676
43677 2007-03-03  Bruno Haible  <bruno@clisp.org>
43678
43679         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
43680         extracted from gt_FUNC_SETENV.
43681         (gt_FUNC_SETENV): Remove macro.
43682         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
43683         remove gt_FUNC_SETENV.
43684
43685 2007-03-03  Bruno Haible  <bruno@clisp.org>
43686
43687         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
43688         ENABLE_RELOCATABLE here.
43689         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
43690
43691 2007-03-03  Bruno Haible  <bruno@clisp.org>
43692
43693         * modules/rbtreehash-list-tests (Depends-on): Add progname.
43694         * tests/test-rbtreehash_list.c: Include progname.h.
43695         (main): Call set_program_name.
43696
43697         * modules/rbtree-oset-tests (Depends-on): Add progname.
43698         * tests/test-rbtree_oset.c: Include progname.h.
43699         (main): Call set_program_name.
43700
43701         * modules/rbtree-list-tests (Depends-on): Add progname.
43702         * tests/test-rbtree_list.c: Include progname.h.
43703         (main): Call set_program_name.
43704
43705         * modules/linked-list-tests (Depends-on): Add progname.
43706         * tests/test-linked_list.c: Include progname.h.
43707         (main): Call set_program_name.
43708
43709 2007-03-03  Bruno Haible  <bruno@clisp.org>
43710
43711         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
43712         All uses of __restrict changed to _Restrict_.
43713         * lib/glob_.h (__restrict): Remove macro.
43714
43715 2007-03-02  Bruno Haible  <bruno@clisp.org>
43716
43717         * modules/gettext (configure.ac): Require gettext infrastructure
43718         from version 0.16.1.
43719
43720 2007-03-02  Bruno Haible  <bruno@clisp.org>
43721
43722         * modules/linkedhash-list-tests (Depends-on): Add progname.
43723         * tests/test-linkedhash_list.c: Include progname.h.
43724         (main): Call set_program_name.
43725
43726         * modules/carray-list-tests (Depends-on): Add progname.
43727         * tests/test-carray_list.c: Include progname.h.
43728         (main): Call set_program_name.
43729
43730         * modules/avltreehash-list-tests (Depends-on): Add progname.
43731         * tests/test-avltreehash_list.c: Include progname.h.
43732         (main): Call set_program_name.
43733
43734         * modules/avltree-oset-tests (Depends-on): Add progname.
43735         * tests/test-avltree_oset.c: Include progname.h.
43736         (main): Call set_program_name.
43737
43738         * modules/avltree-list-tests (Depends-on): Add progname.
43739         * tests/test-avltree_list.c: Include progname.h.
43740         (main): Call set_program_name.
43741
43742         * modules/array-oset-tests (Depends-on): Add progname.
43743         * tests/test-array_oset.c: Include progname.h.
43744         (main): Call set_program_name.
43745
43746         * modules/array-list-tests (Depends-on): Add progname.
43747         * tests/test-array_list.c: Include progname.h.
43748         (main): Call set_program_name.
43749
43750         * modules/argp-tests (Depends-on): Add progname.
43751         * tests/test-argp.c: Include argp.h first. Include progname.h.
43752         (main): Call set_program_name.
43753
43754 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
43755
43756         * doc/gnulib-tool.texi (Initial import): Reword description of
43757         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
43758         limited effect even if defined after the first system include.
43759
43760 2007-03-01  Bruno Haible  <bruno@clisp.org>
43761
43762         * build-aux/config.libpath: Update to libtool-1.5.22.
43763         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43764
43765 2007-03-01  Bruno Haible  <bruno@clisp.org>
43766
43767         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
43768         foo_CFLAGS.
43769         Reported by Ralf Wildenhues.
43770
43771 2007-03-01  Bruno Haible  <bruno@clisp.org>
43772
43773         * build-aux/install-reloc: Remove object files left over by some
43774         compilers.
43775         Reported by Ralf Wildenhues.
43776
43777 2007-03-01  Bruno Haible  <bruno@clisp.org>
43778
43779         * build-aux/install-reloc: Break long lines.
43780
43781 2007-03-01  Bruno Haible  <bruno@clisp.org>
43782
43783         * doc/relocatable.texi: Document that it may not work on OpenBSD.
43784         Reported by Ralf Wildenhues.
43785
43786 2007-03-01  Bruno Haible  <bruno@clisp.org>
43787
43788         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
43789         include ordering constraints.
43790
43791 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43792
43793         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
43794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
43795         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
43796         as another example.
43797         * lib/time_.h: Fix misspelling.
43798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43799         Require gl_HEADER_TIME_H_DEFAULTS.
43800         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
43801         * m4/time_r.m4 (gl_TIME_R): Likewise.
43802         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
43803
43804 2007-03-01  Bruno Haible  <bruno@clisp.org>
43805
43806         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
43807         * m4/utimens.m4 (gl_UTIMENS): Likewise.
43808
43809 2007-03-01  Jim Meyering  <jim@meyering.net>
43810
43811         * modules/xreadlink (Maintainer): Add my name.
43812         * modules/xreadlink-with-size (Depends-on): Alphabetize.
43813
43814 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
43815             Bruno Haible  <bruno@clisp.org>
43816
43817         * build-aux/install-reloc: Compile also c-ctype.c.
43818         * build-aux/relocatable.sh.in: New file.
43819         * doc/relocatable.texi: New file.
43820         * doc/relocatable-maint.texi: New file.
43821         * doc/gnulib.texi: Include relocatable-maint.texi.
43822         * lib/progreloc.c: Include unistd.h unconditionally.
43823         * lib/relocwrapper.c: Include unistd.h unconditionally.
43824         Include c-ctype.h.
43825         (add_dotbin): Use c_tolower.
43826         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
43827         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
43828         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
43829         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
43830         to m4/relocatable-lib.m4.
43831         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
43832         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
43833         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
43834         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
43835         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
43836         * modules/relocatable: New file.
43837         * modules/relocatable-lib: New file.
43838         * modules/relocatable-script: New file.
43839
43840 2007-02-28  Bruno Haible  <bruno@clisp.org>
43841
43842         Import --enable-relocatable infrastructure.
43843         * build-aux/config.libpath: New file, from GNU gettext.
43844         * build-aux/install-reloc: New file, from GNU gettext.
43845         * build-aux/reloc-ldflags: New file, from GNU gettext.
43846         * lib/relocatable.h: New file, from GNU gettext.
43847         * lib/relocatable.c: New file, from GNU gettext.
43848         * lib/relocwrapper.c: New file, from GNU gettext.
43849         * m4/relocatable.m4: New file, from GNU gettext.
43850
43851 2007-02-28  Bruno Haible  <bruno@clisp.org>
43852
43853         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
43854
43855         * modules/xreadlink: New file, from GNU gettext with modifications.
43856         * lib/xreadlink.c: New file, from GNU gettext.
43857         * lib/xreadlink.h: Add comments.
43858         (xreadlink): New declaration.
43859
43860         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
43861         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
43862         lib/xreadlink-with-size.c.
43863         (configure.ac): Remove gl_XREADLINK invocation.
43864         (Makefile.am): Augment lib_SOURCES.
43865         * m4/xreadlink.m4: Remove file.
43866         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
43867         (xreadlink_with_size): Renamed from xreadink.
43868         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
43869         * modules/canonicalize (Depends-on): Replace xreadlink with
43870         xreadlink-with-size.
43871         * lib/canonicalize.c (canonicalize_filename_mode): Update.
43872
43873 2007-02-25  Jim Meyering  <jim@meyering.net>
43874
43875         * build-aux/announce-gen: When complaining about excess arguments,
43876         list them.
43877
43878 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
43879
43880         * README: Document signed integer overflow situation more
43881         accurately.
43882
43883 2007-02-25  Bruno Haible  <bruno@clisp.org>
43884
43885         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
43886         'a' or 'A' conversion.
43887
43888 2007-02-25  Bruno Haible  <bruno@clisp.org>
43889
43890         * modules/filename: Renamed from modules/pathname.
43891         (Files): Replace lib/pathname.h with lib/filename.h. Replace
43892         lib/concatpath.c with lib/concat-filename.c.
43893         (Makefile.am): Update.
43894         (Include): Replace pathname.h with filename.h.
43895         * lib/filename.h: Renamed from lib/pathname.h.
43896         (concatenated_filename): Renamed from concatenated_pathname.
43897         * lib/concat-filename.c: Renamed from lib/concatpath.c.
43898         (concatenated_filename): Renamed from concatenated_pathname.
43899         * lib/findprog.c: Include filename.h instead of pathname.h.
43900         (find_in_path): Update.
43901         * lib/javacomp.c: Include filename.h instead of pathname.h.
43902         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43903         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43904         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43905         is_oldgcj_14_13_usable, is_javac_usable): Update.
43906         * lib/javaexec.c: Include filename.h instead of pathname.h.
43907         (execute_java_class): Update.
43908         * modules/findprog: Update.
43909         * modules/javacomp: Update.
43910         * modules/javaexec: Update.
43911         * MODULES.html.sh (File system functions): Add 'filename', remove
43912         'pathname'.
43913
43914 2007-02-25  Bruno Haible  <bruno@clisp.org>
43915
43916         * modules/printf-frexpl-tests: New file.
43917         * tests/test-printf-frexpl.c: New file.
43918
43919         * modules/printf-frexpl: New file.
43920         * lib/printf-frexpl.h: New file.
43921         * lib/printf-frexpl.c: New file.
43922         * m4/printf-frexpl.m4: New file.
43923
43924 2007-02-25  Bruno Haible  <bruno@clisp.org>
43925
43926         * modules/printf-frexp-tests: New file.
43927         * tests/test-printf-frexp.c: New file.
43928
43929         * modules/printf-frexp: New file.
43930         * lib/printf-frexp.h: New file.
43931         * lib/printf-frexp.c: New file.
43932         * m4/printf-frexp.m4: New file.
43933
43934 2007-02-25  Bruno Haible  <bruno@clisp.org>
43935
43936         Assume automake >= 1.10 for the tests.
43937         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
43938         * modules/arctwo-tests: Likewise.
43939         * modules/argp-tests: Likewise.
43940         * modules/avltree-list-tests: Likewise.
43941         * modules/avltree-oset-tests: Likewise.
43942         * modules/avltreehash-list-tests: Likewise.
43943         * modules/carray-list-tests: Likewise.
43944         * modules/crc-tests: Likewise.
43945         * modules/des-tests: Likewise.
43946         * modules/gc-arcfour-tests: Likewise.
43947         * modules/gc-arctwo-tests: Likewise.
43948         * modules/gc-des-tests: Likewise.
43949         * modules/gc-hmac-md5-tests: Likewise.
43950         * modules/gc-hmac-sha1-tests: Likewise.
43951         * modules/gc-md2-tests: Likewise.
43952         * modules/gc-md4-tests: Likewise.
43953         * modules/gc-md5-tests: Likewise.
43954         * modules/gc-pbkdf2-sha1-tests: Likewise.
43955         * modules/gc-rijndael-tests: Likewise.
43956         * modules/gc-sha1-tests: Likewise.
43957         * modules/gc-tests: Likewise.
43958         * modules/getaddrinfo-tests: Likewise.
43959         * modules/hmac-md5-tests: Likewise.
43960         * modules/hmac-sha1-tests: Likewise.
43961         * modules/linked-list-tests: Likewise.
43962         * modules/linkedhash-list-tests: Likewise.
43963         * modules/lock-tests: Likewise.
43964         * modules/md2-tests: Likewise.
43965         * modules/md4-tests: Likewise.
43966         * modules/md5-tests: Likewise.
43967         * modules/rbtree-list-tests: Likewise.
43968         * modules/rbtree-oset-tests: Likewise.
43969         * modules/rbtreehash-list-tests: Likewise.
43970         * modules/read-file-tests: Likewise.
43971         * modules/rijndael-tests: Likewise.
43972         * modules/stdint-tests: Likewise.
43973         * modules/tls-tests: Likewise.
43974
43975 2007-02-24  Bruno Haible  <bruno@clisp.org>
43976
43977         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
43978         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
43979         function; instead check whether isnan with a double argument links.
43980         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
43981         function; instead check whether isnan with a 'long double' argument
43982         links.
43983         Reported by Eric Blake <ebb9@byu.net>.
43984
43985 2007-02-24  Bruno Haible  <bruno@clisp.org>
43986
43987         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
43988         defined.
43989         * lib/isnanl.c: Remove all code. Just include isnan.c.
43990         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
43991
43992 2007-02-25  Jim Meyering  <jim@meyering.net>
43993
43994         Avoid conflicting types for 'unsetenv' on FreeBSD.
43995         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
43996         conflicting with FreeBSD's (5.0 and 6.1) function declaration
43997         in stdlib.h.
43998
43999 2007-02-24  Bruno Haible  <bruno@clisp.org>
44000
44001         * modules/isnanl-nolibm-tests: New file.
44002         * tests/test-isnanl.c: New file.
44003
44004         * modules/isnanl-nolibm: New file.
44005         * lib/isnanl.h: New file.
44006         * lib/isnanl.c: New file.
44007         * m4/isnanl.m4: New file.
44008
44009 2007-02-24  Bruno Haible  <bruno@clisp.org>
44010
44011         * modules/isnan-nolibm-tests: New file.
44012         * tests/test-isnan.c: New file.
44013
44014         * modules/isnan-nolibm: New file.
44015         * lib/isnan.h: New file.
44016         * lib/isnan.c: New file.
44017         * m4/isnan.m4: New file.
44018
44019 2007-02-24  Bruno Haible  <bruno@clisp.org>
44020
44021         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44022         assume that an exponent fits in 20 bits.
44023
44024 2007-02-24  Jim Meyering  <jim@meyering.net>
44025
44026         * m4/regex.m4: Update the description of the configure-time option,
44027         --without-included-regex, to state accurately what the defaults are,
44028         and perhaps to give people an idea why using this option is risky.
44029
44030 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44031
44032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44033         loops on small arguments.  This attempts to avoid the problem
44034         Bruno Haible reported for AIX 4.3.2 in
44035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44036
44037 2007-02-23  Bruno Haible  <bruno@clisp.org>
44038
44039         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44040         Needed for help2man.
44041
44042 2007-02-23  Karl Berry  <karl@gnu.org>
44043
44044         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44045         exists, foo.h should be cvs-ignored, not committed.
44046
44047 2007-02-23  Eric Blake  <ebb9@byu.net>
44048
44049         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44050         * lib/stat-time.h (includes): Likewise.
44051         * lib/utimecmp.c (includes): Likewise.
44052         * lib/utimens.h (includes): Likewise.
44053         * lib/getdate.y (includes): Also include "timespec.h" for use
44054         internal to the module.
44055         * modules/utimens (Depends-on): Revert yesterday's patch.
44056         * modules/nanosleep (Depends-on): Add missing dependency.
44057
44058 2007-02-22  Bruno Haible  <bruno@clisp.org>
44059
44060         * lib/glob.c: Don't include getlogin_r.h.
44061
44062 2007-02-22  Jim Meyering  <jim@meyering.net>
44063
44064         * modules/utimens (Depends-on): Add timespec, required for
44065         utimens.h's inclusion of timespec.h.
44066
44067 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44068
44069         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44070         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44071         Schwab in
44072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44073         I'll try to think of a better way to fix the Solaris problem.
44074
44075         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44076         like glibc; on Solaris 10, it fails with errno == EINVAL.
44077         POSIX says the behavior is unspecified if the first argument is NULL,
44078         so play it safe and never pass NULL to the system getcwd.
44079
44080 2007-02-21  Jim Meyering  <jim@meyering.net>
44081
44082         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44083         of gettimeofday.  It would conflict with the one now always
44084         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44085         an IRIX 6.5 build failure.
44086
44087 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44088
44089         Minor fixups to port to Solaris 10 with Sun C 5.8.
44090         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44091         * modules/getcwd (Depends-on): Add dirfd.
44092         * lib/putenv.c (putenv): #undef it.
44093         (rpl_putenv): New decl.
44094         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44095
44096 2007-02-20  Bruno Haible  <bruno@clisp.org>
44097
44098         * modules/stdio-tests: New file.
44099         * tests/test-stdio.c: New file.
44100
44101         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44102         (Depends-on): Add stdio.
44103         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44104         (Include): Use <stdio.h> instead of vsnprintf.h.
44105         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44106         HAVE_DECL_VSNPRINTF.
44107         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44108
44109         * modules/snprintf (Files): Remove lib/snprintf.h.
44110         (Depends-on): Add stdio.
44111         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44112         (Include): Use <stdio.h> instead of snprintf.h.
44113         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44114         HAVE_DECL_SNPRINTF.
44115         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44116         * lib/getaddrinfo.c: Likewise.
44117
44118         * modules/stdio: New file.
44119         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44120         * lib/snprintf.h: Remove file.
44121         * lib/vsnprintf.h: Remove file.
44122         * lib/.cppi-disable: Remove snprintf.h.
44123         * m4/stdio_h.m4: New file.
44124         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44125
44126 2007-02-20  Jim Meyering  <jim@meyering.net>
44127
44128         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44129         used by e.g., mingw.  From Bruno Haible.
44130
44131 2007-02-19  Bruno Haible  <bruno@clisp.org>
44132
44133         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44134         warnings.
44135         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44136
44137 2007-02-19  Bruno Haible  <bruno@clisp.org>
44138
44139         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44140         from mingw users.
44141
44142 2007-02-19  Bruno Haible  <bruno@clisp.org>
44143
44144         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44145         warnings.
44146         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44147
44148 2007-02-19  Jim Meyering  <jim@meyering.net>
44149
44150         Don't use FD after a successful "fdopendir (fd)".
44151         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44152         Reset it by calling dirfd on the just-obtained DIR*.
44153
44154         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44155         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44156
44157 2007-02-18  Bruno Haible  <bruno@clisp.org>
44158
44159         * lib/readlink.c: Include <unistd.h>.
44160         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44161         HAVE_READLINK.
44162         * modules/readlink (Depends-on): Add unistd.
44163         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44164         (Include): Add <unistd.h>.
44165
44166         * lib/getlogin_r.h: Remove file.
44167         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44168         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44169         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44170         HAVE_DECL_GETLOGIN_R.
44171         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44172         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44173         (Include): Use <unistd.h> instead of getlogin_r.h.
44174
44175         * lib/getcwd.h: Remove file.
44176         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44177         * lib/xgetcwd.c: Likewise.
44178         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44179         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44180         * modules/getcwd (Files): Remove lib/getcwd.h.
44181         (Depends-on): Add unistd.
44182         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44183         (Include): Use <unistd.h> instad of getcwd.h.
44184
44185         * lib/ftruncate.c: Include <unistd.h> first.
44186         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44187         Set HAVE_FTRUNCATE.
44188         * modules/ftruncate (Depends-on): Add unistd.
44189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44190
44191         * lib/fchdir.c: Include <unistd.h> first.
44192         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44194         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44195         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44196         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44197
44198         * lib/dup2.c: Include <unistd.h> first.
44199         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44200         HAVE_DUP2.
44201         * modules/dup2 (Depends-on): Add unistd.
44202         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44203
44204         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44205         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44206         REPLACE_CHOWN. Don't define chown as a macro here.
44207         * modules/chown (Depends-on): Add unistd.
44208         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44209
44210         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44211         Add definition for GL_LINK_WARNING.
44212         (chown, dup2): New declarations.
44213         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44214         link warning.
44215         (ftruncate): New declaration.
44216         (getcwd): New declaration, taken from old getcwd.h.
44217         (getlogin_r): New declaration, taken from old getlogin_r.h.
44218         (readlink): New declaration.
44219         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44220         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44221         (gl_PREREQ_UNISTD): Remove macro.
44222         (gl_UNISTD_MODULE_INDICATOR): New macro.
44223         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44224         many new variables. Don't set UNISTD_H.
44225         * modules/unistd (Description): Change.
44226         (Depends-on): Add link-warning.
44227         (configure.ac): Update.
44228         (Makefile.am): Create unistd.h always. Substitute many new variables
44229         into it.
44230
44231 2007-02-18  Bruno Haible  <bruno@clisp.org>
44232
44233         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44234         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44235         HAVE_GETSUBOPT.
44236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44237         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44238         * lib/getsubopt.h: Remove file.
44239         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44240         (Depends-on): Add stdlib.
44241         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44242         (Includes): Use <stdlib.h> instead of getsubopt.h.
44243         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44244         Set HAVE_GETSUBOPT.
44245         * lib/getsubopt.c: Don't include getsubopt.h.
44246
44247 2007-02-18  Bruno Haible  <bruno@clisp.org>
44248
44249         * modules/fchdir (Depends-on): Add dup2.
44250
44251 2007-02-18  Bruno Haible  <bruno@clisp.org>
44252
44253         * lib/stdlib_.h: Handle glibc's special invocation convention
44254         specially.
44255
44256 2007-02-18  Bruno Haible  <bruno@clisp.org>
44257
44258         * modules/stdlib-tests: New file.
44259         * tests/test-stdlib.c: New file.
44260
44261         * modules/mkstemp (Files): Remove lib/mkstemp.h.
44262         (Depends-on): Add stdlib.
44263         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44264         (Includes): Use <stdlib.h> instead of mkstemp.h.
44265         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44266         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
44267         * lib/mkstemp.c: Don't include mkstemp.h.
44268         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
44269         * lib/stdlib--.h: Don't include mkstemp.h.
44270
44271         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
44272         (Depends-on): Add stdlib.
44273         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44274         (Includes): Use <stdlib.h> instead of mkdtemp.h.
44275         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44276         HAVE_MKDTEMP.
44277         * lib/mkdtemp.c: Don't include mkdtemp.h.
44278         * lib/clean-temp.c: Don't include mkdtemp.h.
44279
44280         * modules/exit (Files): Remove lib/exit.h.
44281         (Depends-on): Add stdlib.
44282         (Makefile.am): Remove lib_SOURCES.
44283         (Include): Use <stdlib.h> instead of exit.h.
44284         * lib/argmatch.c: Don't include exit.h.
44285         * lib/execute.c: Likewise.
44286         * lib/pagealign_alloc.c: Likewise.
44287         * lib/pipe.c: Likewise.
44288         * lib/wait-process.c: Likewise.
44289         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44290         * lib/exitfail.c: Likewise.
44291         * lib/savewd.c: Likewise.
44292         * lib/xsetenv.c: Likewise.
44293
44294         * modules/stdlib: New file.
44295         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44296         and extra comments about mkstemp().
44297         * lib/exit.h: Remove file.
44298         * lib/mkdtemp.h: Remove file.
44299         * lib/mkstemp.h: Remove file.
44300         * m4/stdlib_h.m4: New file.
44301         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44302
44303 2007-02-18  Bruno Haible  <bruno@clisp.org>
44304
44305         * modules/math-tests: New file.
44306         * tests/test-math.c: New file.
44307
44308         * modules/math: New file.
44309         * modules/mathl (Files): Remove lib/mathl.h.
44310         (Depends-on): Add math.
44311         (Makefile.am): Don't mention mathl.h.
44312         (Include): Use <math.h> instead of mathl.h.
44313         * lib/math_.h: New file.
44314         * lib/mathl.h: Remove file.
44315         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44316         mathl.h.
44317         * lib/asinl.c: Likewise.
44318         * lib/atanl.c: Likewise.
44319         * lib/ceill.c: Likewise.
44320         * lib/cosl.c: Likewise.
44321         * lib/expl.c: Likewise.
44322         * lib/floorl.c: Likewise.
44323         * lib/frexpl.c: Likewise.
44324         * lib/ldexpl.c: Likewise.
44325         * lib/logl.c: Likewise.
44326         * lib/sincosl.c: Likewise.
44327         * lib/sinl.c: Likewise.
44328         * lib/sqrtl.c: Likewise.
44329         * lib/tanl.c: Likewise.
44330         * lib/trigl.c: Likewise.
44331         * m4/math_h.m4: New file.
44332         * MODULES.html.sh (Mathematics): Add math.
44333
44334 2007-02-17  Bruno Haible  <bruno@clisp.org>
44335
44336         * modules/wctype-tests: New file.
44337         * tests/test-wctype.c: New file.
44338
44339         * modules/wchar-tests: New file.
44340         * tests/test-wchar.c: New file.
44341
44342         * modules/unistd-tests: New file.
44343         * tests/test-unistd.c: New file.
44344
44345         * modules/time-tests: New file.
44346         * tests/test-time.c: New file.
44347
44348         * modules/sysexits-tests: New file.
44349         * tests/test-sysexits.c: New file.
44350
44351         * modules/sys_time-tests: New file.
44352         * tests/test-sys_time.c: New file.
44353
44354         * modules/sys_stat-tests: New file.
44355         * tests/test-sys_stat.c: New file.
44356
44357         * modules/sys_socket-tests: New file.
44358         * tests/test-sys_socket.c: New file.
44359
44360         * modules/sys_select-tests: New file.
44361         * tests/test-sys_select.c: New file.
44362
44363         * modules/string-tests: New file.
44364         * tests/test-string.c: New file.
44365
44366         * modules/stdbool-tests: New file.
44367         * tests/test-stdbool.c: New file.
44368
44369         * modules/netinet_in-tests: New file.
44370         * tests/test-netinet_in.c: New file.
44371
44372         * modules/inttypes-tests: New file.
44373         * tests/test-inttypes.c: New file.
44374
44375         * modules/fcntl-tests: New file.
44376         * tests/test-fcntl.c: New file.
44377
44378         * modules/byteswap-tests: New file.
44379         * tests/test-byteswap.c: New file.
44380
44381         * modules/arpa_inet-tests: New file.
44382         * tests/test-arpa_inet.c: New file.
44383
44384 2007-02-17  Bruno Haible  <bruno@clisp.org>
44385
44386         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44387         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44388         if the corresponding module is not enabled. Emit link warnings if
44389         the function is used nevertheless.
44390         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44391         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44392         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44393         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44394         * modules/inttypes (Depends-on): Add link-warning.
44395         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44396         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44397         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44398         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44399         * modules/imaxdiv (configure.ac): Likewise.
44400         * modules/strtoimax (configure.ac): Likewise.
44401         * modules/strtoumax (configure.ac): Likewise.
44402
44403 2007-02-17  Bruno Haible  <bruno@clisp.org>
44404
44405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44406         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44407         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44408         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44409
44410 2007-02-17  Bruno Haible  <bruno@clisp.org>
44411
44412         * modules/link-warning: New file.
44413         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
44414         * lib/string_.h (GL_LINK_WARNING): Remove definition.
44415         * modules/string (Depends-on): Add link-warning.
44416         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44417         string.h.
44418         * MODULES.html.sh (Support for building libraries and executables): Add
44419         link-warning.
44420
44421 2007-02-17  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
44424         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
44425         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
44426         long lines.
44427
44428 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
44429             Bruno Haible  <bruno@clisp.org>
44430
44431         * modules/tmpfile: New file.
44432         * lib/tmpfile.c: New file.
44433         * m4/tmpfile.m4: New file.
44434         * MODULES.html.sh (func_all_modules): New section "Input/output".
44435
44436 2007-02-15  Bruno Haible  <bruno@clisp.org>
44437
44438         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
44439         (supports_delete_on_close): New function.
44440         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
44441
44442 2007-02-14  Bruno Haible  <bruno@clisp.org>
44443
44444         * modules/mbspcasecmp-tests: New file.
44445         * tests/test-mbspcasecmp.sh: New file.
44446         * tests/test-mbspcasecmp.c: New file.
44447
44448         New module mbspcasecmp.
44449         * modules/mbspcasecmp: New file.
44450         * lib/mbspcasecmp.c: New file.
44451         * lib/string_.h (strncasecmp): Change warning message.
44452         (mbspcasecmp): New declaration.
44453         * m4/mbspcasecmp.m4: New file.
44454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44455         GNULIB_MBSPCASECMP.
44456         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
44457         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
44458
44459 2007-02-14  Bruno Haible  <bruno@clisp.org>
44460
44461         * modules/mbsncasecmp-tests: New file.
44462         * tests/test-mbsncasecmp.sh: New file.
44463         * tests/test-mbsncasecmp.c: New file.
44464
44465         New module mbsncasecmp.
44466         * modules/mbsncasecmp: New file.
44467         * lib/mbsncasecmp.c: New file.
44468         * lib/string_.h (mbsncasecmp): New declaration.
44469         * m4/mbsncasecmp.m4: New file.
44470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44471         GNULIB_MBSNCASECMP.
44472         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
44473         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
44474
44475 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44476
44477         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
44478         Verify that it doesn't overlap with our flags.
44479         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
44480         do not have the desired effect in multibyte locales; instead, use
44481         mbscasecmp.
44482         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
44483         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
44484         we don't require GNU fnmatch ourselves (if our users require it, they
44485         should do so explicitly).
44486
44487         Fix regex code so it doesn't rely on strcasecmp.
44488         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
44489         Otherwise, include gnulib's langinfo.h.
44490         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
44491         undesirable behavior in non-C locales.  Instead, rely on localecharset.
44492         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
44493         * modules/regex (FILES): Remove m4/codeset.m4.
44494         (Depends-on): Add localcharset.  Remove strcase.
44495
44496 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44497
44498         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
44499         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44500
44501 2007-02-13  Bruno Haible  <bruno@clisp.org>
44502
44503         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
44504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44505
44506 2007-02-12  Bruno Haible  <bruno@clisp.org>
44507
44508         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44509         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
44510         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
44511         time warning rather than a link error.
44512
44513 2007-02-12  Bruno Haible  <bruno@clisp.org>
44514
44515         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
44516         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44517         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44518
44519 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44520
44521         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
44522         args, not 2.
44523
44524 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44525
44526         New module 'time', so that apps can include <time.h> as per
44527         POSIX and GNU instead of separate include files like time_r.h
44528         and timegm.h.  This implementation tries out a simpler approach
44529         for replacing decls in standard include files (as compared to
44530         the string module), somewhat as an experiment.
44531
44532         * config/srclist.txt: Comment out mktime.c for now.
44533         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
44534         since it doesn't apply any more.  Use generic wording instead.
44535         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
44536         'time'.
44537         * lib/time_.h, m4/time_h.m4, modules/time: New files.
44538         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
44539         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
44540         Don't include <sys/types.h>; no longer needed since we assume C89.
44541         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
44542         * lib/strftime.c: Likewise.
44543         * lib/time_r.c: Likewise.
44544         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
44545         * lib/nanosleep.c: Include <time.h> first, to check interface.
44546         * lib/strptime.c: Likewise.
44547         * lib/time_r.c: Likewise.
44548         * lib/timegm.c: Likewise.
44549         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
44550         needed.
44551         * lib/timegm.c: Don't include timegm.h; no longer needed.
44552         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
44553         time.h now handles any problems in that area.
44554         (struct timespec, nanosleep): Remove; time.h now arranges for these.
44555         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
44556         that time.h defines struct timespec.
44557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
44558         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
44559         handles that.
44560         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
44561         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
44562         needed.  Set REPLACE_LOCALTIME.
44563         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
44564         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
44565         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
44566         nanosleep; time_h.m4 now does that.  Don't require
44567         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
44568         module handles this now.
44569         * modules/getdate (Depends-on): Remove timespec.  Add time.
44570         * modules/nanosleep (Depends-on): Likewise.
44571         * modules/stat-time (Depends-on): Likewise.
44572         * modules/nanosleep (Include): Include time.h, not timespec.h.
44573         * modules/strptime (Files): Remove lib/strptime.h.
44574         (Depends-on): Add extensions, time.
44575         (Include): Include time.h, not strptime.h.
44576         * modules/time_r (Files): Remove lib/time_r.h.
44577         (Depends-on): Add time.
44578         (Include): Include time.h, not time_r.h.
44579         * modules/timegm: Likewise.
44580         * modules/timespec (Description): Now does timespec-related decls
44581         of our own, instead of struct timespec itself.
44582         (Depends-on): Add time; remove extensions.
44583         (Maintainer): Add self.
44584         * modules/utimecmp (Depends-on): Add time; remove timespec.
44585         * modules/utimens (Depends-on): Likewise.
44586         * modules/xnanosleep (Depends-on): Likewise.
44587
44588 2007-02-11  Bruno Haible  <bruno@clisp.org>
44589
44590         * lib/c-strstr.c: Include allocsa.h.
44591         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44592         * lib/c-strcasestr.c: Include allocsa.h.
44593         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44594         * lib/strcasestr.c: Include allocsa.h.
44595         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44596         * lib/mbsstr.c: Include allocsa.h.
44597         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44598         allocsa/freesa instead of malloc/free.
44599         * lib/mbscasestr.c: Include allocsa.h.
44600         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44601         allocsa/freesa instead of malloc/free.
44602         * modules/c-strstr (Depends-on): Add allocsa.
44603         * modules/c-strcasestr (Depends-on): Likewise.
44604         * modules/strcasestr (Depends-on): Likewise.
44605         * modules/mbsstr (Depends-on): Likewise.
44606         * modules/mbscasestr (Depends-on): Likewise.
44607
44608 2007-02-11  Bruno Haible  <bruno@clisp.org>
44609
44610         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
44611
44612         * modules/mbsspn-tests: New file.
44613         * tests/test-mbsspn.sh: New file.
44614         * tests/test-mbsspn.c: New file.
44615
44616 2007-02-11  Bruno Haible  <bruno@clisp.org>
44617
44618         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
44619
44620         * modules/mbspbrk-tests: New file.
44621         * tests/test-mbspbrk.sh: New file.
44622         * tests/test-mbspbrk.c: New file.
44623
44624 2007-02-11  Bruno Haible  <bruno@clisp.org>
44625
44626         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
44627         unneeded cast.
44628
44629         * modules/mbscspn-tests: New file.
44630         * tests/test-mbscspn.sh: New file.
44631         * tests/test-mbscspn.c: New file.
44632
44633 2007-02-11  Bruno Haible  <bruno@clisp.org>
44634
44635         * modules/mbscasecmp-tests: New file.
44636         * tests/test-mbscasecmp.sh: New file.
44637         * tests/test-mbscasecmp.c: New file.
44638
44639 2007-02-11  Bruno Haible  <bruno@clisp.org>
44640
44641         Ensure O(n) worst-case complexity of mbscasestr.
44642         * lib/mbscasestr.c: Include stdbool.h.
44643         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44644         functions.
44645         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
44646         the bookkeeping indicates that it's worth it.
44647         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
44648
44649         * modules/mbscasestr-tests: New file.
44650         * tests/test-mbscasestr1.c: New file.
44651         * tests/test-mbscasestr2.sh: New file.
44652         * tests/test-mbscasestr2.c: New file.
44653         * tests/test-mbscasestr3.sh: New file.
44654         * tests/test-mbscasestr3.c: New file.
44655         * tests/test-mbscasestr4.sh: New file.
44656         * tests/test-mbscasestr4.c: New file.
44657         * m4/locale-tr.m4: New file.
44658
44659 2007-02-11  Bruno Haible  <bruno@clisp.org>
44660
44661         Ensure O(n) worst-case complexity of mbsstr.
44662         * lib/mbsstr.c: Include stdbool.h.
44663         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44664         functions.
44665         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
44666         bookkeeping indicates that it's worth it.
44667         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
44668
44669         * modules/mbsstr-tests: New file.
44670         * tests/test-mbsstr1.c: New file.
44671         * tests/test-mbsstr2.sh: New file.
44672         * tests/test-mbsstr2.c: New file.
44673         * tests/test-mbsstr3.sh: New file.
44674         * tests/test-mbsstr3.c: New file.
44675         * m4/locale-fr.m4: New file.
44676
44677 2007-02-11  Bruno Haible  <bruno@clisp.org>
44678
44679         * lib/mbsrchr.c (mbsrchr): Fix bug.
44680
44681         * modules/mbsrchr-tests: New file.
44682         * tests/test-mbsrchr.sh: New file.
44683         * tests/test-mbsrchr.c: New file.
44684
44685 2007-02-11  Bruno Haible  <bruno@clisp.org>
44686
44687         * lib/mbschr.c (mbschr): Fix bug.
44688
44689         * modules/mbschr-tests: New file.
44690         * tests/test-mbschr.sh: New file.
44691         * tests/test-mbschr.c: New file.
44692         * m4/locale-zh.m4: New file.
44693
44694 2007-02-11  Bruno Haible  <bruno@clisp.org>
44695
44696         Support for copying multibyte string iterators.
44697         * lib/mbiter.h: Include <string.h>.
44698         (mbiter_multi_copy): New function.
44699         (mbi_copy): New macro.
44700         * lib/mbuiter.h: Include <string.h>.
44701         (mbuiter_multi_copy): New function.
44702         (mbui_copy): New macro.
44703
44704 2007-02-11  Bruno Haible  <bruno@clisp.org>
44705
44706         New module mbslen.
44707         * modules/mbslen: New file.
44708         * lib/mbslen.c: New file.
44709         * lib/string_.h (mbslen): New declaration.
44710         * m4/mbslen.m4: New file.
44711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44712         GNULIB_MBSLEN.
44713         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
44714         * MODULES.html.sh (Internationalization functions): Add mbslen.
44715
44716 2007-02-11  Bruno Haible  <bruno@clisp.org>
44717
44718         Ensure O(n) worst-case complexity of strcasestr substitute.
44719         * lib/strcasestr.c: Include stdbool.h.
44720         (knuth_morris_pratt): New function.
44721         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44722         bookkeeping indicates that it's worth it.
44723         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
44724
44725         * modules/strcasestr-tests: New file.
44726         * tests/test-strcasestr.c: New file.
44727
44728 2007-02-11  Bruno Haible  <bruno@clisp.org>
44729
44730         Ensure O(n) worst-case complexity of c_strcasestr.
44731         * lib/c-strcasestr.c: Include stdbool.h, string.h.
44732         (knuth_morris_pratt): New function.
44733         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
44734         the bookkeeping indicates that it's worth it.
44735         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
44736
44737         * modules/c-strcasestr-tests: New file.
44738         * tests/test-c-strcasestr.c: New file.
44739
44740 2007-02-11  Bruno Haible  <bruno@clisp.org>
44741
44742         Ensure O(n) worst-case complexity of c_strstr.
44743         * lib/c-strstr.c: Include stdbool.h, string.h.
44744         (knuth_morris_pratt): New function.
44745         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44746         bookkeeping indicates that it's worth it.
44747         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
44748
44749         * lib/c-strstr.c: Complete rewrite for maintainability.
44750
44751         * modules/c-strstr-tests: New file.
44752         * tests/test-c-strstr.c: New file.
44753
44754 2007-02-11  Bruno Haible  <bruno@clisp.org>
44755
44756         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
44757         5.2.1 and earlier, whereby \055 was treated just like the range
44758         delimiter '-'.
44759         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44760
44761 2007-02-08  Bruno Haible  <bruno@clisp.org>
44762
44763         * modules/regex (Depends-on): Add stdbool.
44764         Reported by Dalibor Topic <robilad@kaffe.org>.
44765
44766 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44767
44768         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
44769         Prefer returning from main to exiting from it.
44770         Remove unnecessary parens after sizeof.
44771
44772 2007-02-05  Bruno Haible  <bruno@clisp.org>
44773
44774         New module mbssep.
44775         * modules/mbssep: New file.
44776         * lib/mbssep.c: New file.
44777         * lib/string_.h (strsep): Add a conditional link warning.
44778         (mbssep): New declaration.
44779         * m4/mbssep.m4: New file.
44780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44781         GNULIB_MBSSEP.
44782         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
44783         * MODULES.html.sh (Internationalization functions): Add mbssep.
44784
44785 2007-02-05  Bruno Haible  <bruno@clisp.org>
44786
44787         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
44788         Optimize search in case of 1 delimiter.
44789
44790 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44791
44792         * lib/acl.h: Include sys/types.h before sys/acl.h.
44793
44794 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44795
44796         Merge upstream fix for glibc bugzilla #3957:
44797
44798         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
44799
44800         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
44801         bit for RE_HAT_LISTS_NOT_NEWLINE.
44802         (build_charclass_op): Remove bogus comment.
44803
44804 2007-02-05  Simon Josefsson  <simon@josefsson.org>
44805
44806         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
44807
44808 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44809
44810         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
44811         * lib/memmem.c [!defined _LIBC]: Include config.h.
44812
44813 2007-02-04  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
44816         warning message.
44817
44818 2007-02-04  Bruno Haible  <bruno@clisp.org>
44819
44820         New module mbstok_r.
44821         * modules/mbstok_r: New file.
44822         * lib/mbstok_r.c: New file.
44823         * lib/string_.h (strtok_r): Change argument names to match the
44824         comments. Add a conditional link warning.
44825         (mbstok_r): New declaration.
44826         * m4/mbstok_r.m4: New file.
44827         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44828         GNULIB_MBSTOK_R.
44829         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
44830         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
44831
44832 2007-02-04  Bruno Haible  <bruno@clisp.org>
44833
44834         New module mbsspn.
44835         * modules/mbsspn: New file.
44836         * lib/mbsspn.c: New file.
44837         * lib/string_.h (strspn): Add a conditional link warning.
44838         (mbsspn): New declaration.
44839         * m4/mbsspn.m4: New file.
44840         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44841         GNULIB_MBSSPN.
44842         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
44843         * MODULES.html.sh (Internationalization functions): Add mbsspn.
44844
44845 2007-02-04  Bruno Haible  <bruno@clisp.org>
44846
44847         New module mbspbrk.
44848         * modules/mbspbrk: New file.
44849         * lib/mbspbrk.c: New file.
44850         * lib/string_.h (strpbrk): Add a conditional link warning.
44851         (mbspbrk): New declaration.
44852         * m4/mbspbrk.m4: New file.
44853         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44854         GNULIB_MBSPBRK.
44855         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
44856         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
44857
44858 2007-02-04  Bruno Haible  <bruno@clisp.org>
44859
44860         New module mbscspn.
44861         * modules/mbscspn: New file.
44862         * lib/mbscspn.c: New file.
44863         * lib/string_.h (strcspn): Add a conditional link warning.
44864         (mbscspn): New declaration.
44865         * m4/mbscspn.m4: New file.
44866         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44867         GNULIB_MBSCSPN.
44868         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
44869         * MODULES.html.sh (Internationalization functions): Add mbscspn.
44870
44871 2007-02-04  Bruno Haible  <bruno@clisp.org>
44872
44873         New module mbscasestr, reduced goal of strcasestr.
44874         * modules/mbscasestr: New file.
44875         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
44876         (mbscasestr): Renamed from strcasestr.
44877         * lib/strcasestr.c: Don't include mbuiter.h.
44878         (strcasestr): Remove support for multibyte locales.
44879         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
44880         Change the conditional link warning.
44881         (mbscasestr): New declaration.
44882         * m4/mbscasestr.m4: New file.
44883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
44884         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
44885         REPLACE_STRCASESTR.
44886         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
44887         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44888         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44889         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
44890         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
44891         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44892         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
44893         (Depends-on): Remove mbuiter.
44894         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
44895
44896 2007-02-04  Bruno Haible  <bruno@clisp.org>
44897
44898         Simplify handling of strncasecmp.
44899         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
44900         the conditional link warning.
44901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44902         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
44903         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
44904         * modules/strcase (configure.ac): Don't invoke
44905         gl_STRING_MODULE_INDICATOR.
44906         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
44907
44908 2007-02-04  Bruno Haible  <bruno@clisp.org>
44909
44910         New module mbscasecmp, reduced goal of strcasecmp.
44911         * modules/mbscasecmp: New file.
44912         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
44913         (mbscasecmp): Renamed from strcasecmp.
44914         * lib/strcasecmp.c: Don't include mbuiter.h.
44915         (strcasecmp): Remove support for multibyte locales.
44916         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
44917         Change the conditional link warning.
44918         (mbscasecmp): New declaration.
44919         * m4/mbscasecmp.m4: New file.
44920         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
44921         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
44922         REPLACE_STRCASECMP.
44923         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
44924         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44925         GNULIB_MBSCASECMP.
44926         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
44927         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
44928         * modules/strcase (Files): Remove m4/mbrtowc.m4.
44929         (Depends-on): Remove mbuiter.
44930         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
44931
44932 2007-02-04  Bruno Haible  <bruno@clisp.org>
44933
44934         New module mbsstr. Remove module strstr.
44935         * modules/mbsstr: New file.
44936         * modules/strstr: Remove file.
44937         * lib/mbsstr.c: Renamed from lib/strstr.c.
44938         (mbsstr): Renamed from strstr.
44939         * lib/string_.h (strstr): Remove declaration. Change the conditional
44940         link warning.
44941         (mbsstr): New declaration.
44942         * m4/mbsstr.m4: New file.
44943         * m4/strstr.m4: Remove file.
44944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
44945         REPLACE_STRSTR.
44946         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
44947         Don't initialize GNULIB_STRSTR.
44948         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
44949         substitute GNULIB_STRSTR and REPLACE_STRSTR.
44950         * MODULES.html.sh (Internationalization functions): Add mbsstr.
44951         (Support for systems lacking ANSI C 89): Remove strstr.
44952
44953 2007-02-04  Bruno Haible  <bruno@clisp.org>
44954
44955         New module mbsrchr.
44956         * modules/mbsrchr: New file.
44957         * lib/mbsrchr.c: New file.
44958         * lib/string_.h (strrchr): Add a conditional link warning.
44959         (mbsrchr): New declaration.
44960         * m4/mbsrchr.m4: New file.
44961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44962         GNULIB_MBSRCHR.
44963         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
44964         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
44965
44966 2007-02-04  Bruno Haible  <bruno@clisp.org>
44967
44968         New module mbschr.
44969         * modules/mbschr: New file.
44970         * lib/mbschr.c: New file.
44971         * lib/string_.h (strchr): Add a conditional link warning.
44972         (mbschr): New declaration.
44973         * m4/mbschr.m4: New file.
44974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44975         GNULIB_MBSCHR.
44976         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
44977         * MODULES.html.sh (Internationalization functions): Add mbschr.
44978
44979 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44980
44981         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
44982
44983         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
44984
44985 2007-02-04  Bruno Haible  <bruno@clisp.org>
44986
44987         New module description section 'configure.ac-early'.
44988         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
44989         (func_get_autoconf_early_snippet): New function.
44990         (func_import, func_create_testdir): Use it. Remove special cases for
44991         modules 'extensions' and 'lock'.
44992         * modules/extensions (configure.ac-early): Require
44993         gl_USE_SYSTEM_EXTENSIONS.
44994         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
44995
44996 2007-02-04  Bruno Haible  <bruno@clisp.org>
44997
44998         Make use of gcj-4.3's -fsource and -ftarget option.
44999         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45000         and if so try the options -fsource and -ftarget.
45001         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45002         source_version, ftarget_option, target_version arguments.
45003         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45004         (is_envjavac_oldgcj_14_14_usable): Renamed from
45005         is_envjavac_gcj_14_14_usable.
45006         (is_envjavac_oldgcj_14_13_usable): Renamed from
45007         is_envjavac_gcj_14_13_usable.
45008         (is_gcj_present): Update.
45009         (is_gcj_43, is_gcj43_usable): New functions.
45010         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45011         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45012         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45013         try the options -fsource and -ftarget.
45014
45015 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45016
45017         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45018         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45019         larger value.
45020
45021 2007-02-03  Jim Meyering  <jim@meyering.net>
45022
45023         Give tools a better chance to allocate space for very large buffers.
45024         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45025
45026         Make pwd and readlink work also when run with an unreadable parent dir
45027         on systems with openat support.
45028         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45029         provided getcwd function, even when we have openat support.
45030         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45031
45032 2007-02-02  Bruno Haible  <bruno@clisp.org>
45033
45034         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45035         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45036         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45037         portability problems if one of these functions is only used on specific
45038         platforms.
45039         Reported by Paul Eggert.
45040
45041 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45042
45043         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45044         is causing more trouble than it's curing.
45045         * lib/regex_internal.h (__mempcpy): Remove.
45046         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45047         (and make the code a tad smaller to boot).
45048         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45049
45050 2007-02-02  Jim Meyering  <jim@meyering.net>
45051
45052         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45053         section, not in the Makefile.am: one.
45054
45055 2007-02-02  Eric Blake  <ebb9@byu.net>
45056
45057         * lib/strchrnul.c: Always include config.h first.
45058
45059         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45060         gnulib strstr is not necessary here.
45061
45062 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45063
45064         * m4/socklen.m4: Fix typo.
45065
45066 2007-02-02  Eric Blake  <ebb9@byu.net>
45067
45068         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45069         * modules/netinet_in (Makefile.am): Likewise.
45070
45071 2007-02-01  Bruno Haible  <bruno@clisp.org>
45072
45073         * lib/string_.h (GL_LINK_WARNING): New macro.
45074         (strcasecmp, strstr, strcasestr): If provided by the system,
45075         conditionally define as a macro that leads to a warning instead of to
45076         an error.
45077         (strncasecmp): Conditionally define as a macro that leads to a warning.
45078
45079 2007-02-01  Karl Berry  <karl@gnu.org>
45080
45081         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45082
45083 2007-02-01  Bruno Haible  <bruno@clisp.org>
45084
45085         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45086         renamings.
45087
45088 2007-02-01  Eric Blake  <ebb9@byu.net>
45089
45090         * modules/regex (Depends-on): Revert dependence on mempcpy.
45091         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45092         module's definition of mempcpy.
45093         Reported by Paul Eggert.
45094
45095 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45096
45097         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45098         the symbol XYZ before redefining it.  This fixes a problem with
45099         programs that don't use XYZ, when compiled on systems that define
45100         XYZ to something else.
45101
45102 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45103
45104         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45105         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45106         writeable to group or other and (2) is intended to have a special
45107         mode bit that is set or cleared.  In such a case, the directory
45108         should be neither group- nor other-writeable until the special
45109         mode bits are right.
45110
45111 2007-01-31  Eric Blake  <ebb9@byu.net>
45112
45113         * modules/mountlist (Depends-on): Add strstr.
45114
45115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45116         bug.
45117         * modules/string (Makefile.am): Remove redundant replacement.
45118         * modules/regex (Depends-on): Add mempcpy.
45119
45120 2007-01-31  Bruno Haible  <bruno@clisp.org>
45121
45122         New module description field 'Link'.
45123         * gnulib-tool (func_usage): Document --extract-link-directive.
45124         (sed_extract_prog): Recognize 'Link' directive.
45125         (func_get_link_directive): New function.
45126         (func_import): Show summary of link directives.
45127         Handle --extract-link-directive option.
45128         * modules/acl (Link): New section.
45129         * modules/clock-time (Link): New section.
45130         * modules/euidaccess (Link): New section.
45131         * modules/gettext (Link): New section.
45132         * modules/iconv (Link): New section.
45133         * modules/lock (Link): New section.
45134         * modules/nanosleep (Link): New section.
45135         * modules/readline (Link): New section.
45136
45137 2007-01-27  Bruno Haible  <bruno@clisp.org>
45138
45139         Enforce the use of gnulib modules for unportable <string.h> functions.
45140         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45141         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45142         (gl_HEADER_STRING_H_BODY): Require it.
45143         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45144         the symbol XYZ to one that gives a link error.
45145         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45146         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45147         * modules/mempcpy (configure.ac): Likewise.
45148         * modules/memrchr (configure.ac): Likewise.
45149         * modules/stpcpy (configure.ac): Likewise.
45150         * modules/stpncpy (configure.ac): Likewise.
45151         * modules/strcase (configure.ac): Likewise.
45152         * modules/strcasestr (configure.ac): Likewise.
45153         * modules/strchrnul (configure.ac): Likewise.
45154         * modules/strdup (configure.ac): Likewise.
45155         * modules/strndup (configure.ac): Likewise.
45156         * modules/strnlen (configure.ac): Likewise.
45157         * modules/strpbrk (configure.ac): Likewise.
45158         * modules/strsep (configure.ac): Likewise.
45159         * modules/strstr (configure.ac): Likewise.
45160         * modules/strtok_r (configure.ac): Likewise.
45161
45162 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45163
45164         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45165
45166 2007-01-30  Jim Meyering  <jim@meyering.net>
45167
45168         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45169
45170 2007-01-29  Bruno Haible  <bruno@clisp.org>
45171
45172         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45173         * lib/execute.c: Likewise.
45174         * lib/pipe.c: Likewise.
45175         * lib/printf-args.h: Likewise.
45176         * lib/printf-args.c: Likewise.
45177         * lib/printf-parse.c: Likewise.
45178         * lib/vasnprintf.c: Likewise.
45179
45180 2007-01-29  Eric Blake  <ebb9@byu.net>
45181
45182         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45183         declaration.
45184
45185 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45186
45187         * lib/strptime.h (strptime): Use 'restrict' for args where
45188         POSIX requires this.
45189         * lib/strptime.c (strptime): Likewise.
45190         Change license notice from LGPL to GPL, since gnulib-tool will
45191         change this as needed.
45192         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45193         defined.
45194         Include "strptime.h" first, to check interface.
45195         Do not #undef _LIBC and _NL_CURRENT.
45196         Do not include <stdlib.h>; no longer needed.
45197         Include "time_r.h" and declare ptime_locale_status
45198         only if _LIBC is not defined.
45199         (__P): Remove unused macro.
45200         (match_string): Bring back glibc version, but use it only if _LIBC
45201         is defined.
45202         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45203         Remove unnecessary assertion and abort() call.
45204         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45205         * m4/strptime.m4: Fix serial number comment.
45206         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45207         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45208         (Depends-on): Add time_r.
45209
45210 2007-01-29  Bruno Haible  <bruno@clisp.org>
45211
45212         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45213         strptime.
45214         * modules/strptime (Depends-on): Add stdbool.
45215         * lib/strptime.h: Include <time.h> always. Add comments.
45216
45217 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45218
45219         * modules/strptime: New file.
45220         * lib/strptime.h: New file.
45221         * lib/strptime.c: New file.
45222         * m4/strptime.m4: New file.
45223
45224 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45225
45226         * MODULES.html.sh: New module mpsort.
45227         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45228
45229         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45230         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45232         All uses changed.
45233         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45234         All uses changed.
45235         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45236         to _Restrict_.
45237         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45238         the parameter matches the prototype.
45239
45240 2007-01-28  Jim Meyering  <jim@meyering.net>
45241
45242         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45243         sys/time.h here, reverting that part of the previous patch:
45244         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
45245
45246 2007-01-28  Bruno Haible  <bruno@clisp.org>
45247
45248         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
45249         value of $(SYS_TIME_H).
45250         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
45251         remove it conditionally, too. [added by Jim Meyering]
45252         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
45253         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45254         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
45255         GETTIMEOFDAY_REPLACEMENT to 1.
45256
45257 2007-01-28  Bruno Haible  <bruno@clisp.org>
45258
45259         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
45260         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
45262         Set UNISTD_H instead of UNISTD_H2.
45263         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
45264
45265 2007-01-28  Bruno Haible  <bruno@clisp.org>
45266
45267         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
45268         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
45269
45270 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45271
45272         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
45273         (func_create_testdir): Ensure C locale for `grep' and `tr'
45274         character ranges.
45275         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
45276         ACLOCAL_AMFLAGS parsing state machine.
45277
45278 2007-01-27  Bruno Haible  <bruno@clisp.org>
45279
45280         * modules/unistr/base: Update.
45281
45282 2007-01-27  Bruno Haible  <bruno@clisp.org>
45283
45284         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45285         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45286         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45287         modules/unistr/u32-mbtouc.
45288         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45289         * lib/unistr.h: Update.
45290         * lib/linebreak.c: Update.
45291         * modules/unistr/u32-mbtouc: Renamed from
45292         modules/unistr/u32-mbtouc-safe.
45293         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45294         * lib/unistr.h: Update.
45295         * lib/unistr/u32-to-u8.c: Update.
45296         * lib/unistr/u32-to-u16.c: Update.
45297
45298 2007-01-27  Bruno Haible  <bruno@clisp.org>
45299
45300         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45301         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45302         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45303         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45304         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45305         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45306         modules/unistr/u16-mbtouc.
45307         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45308         * lib/unistr.h: Update.
45309         * lib/linebreak.c: Update.
45310         * modules/linebreak: Update.
45311         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45312         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45313         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45314         * modules/unistr/u16-mbtouc: Renamed from
45315         modules/unistr/u16-mbtouc-safe.
45316         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45317         * lib/unistr.h: Update.
45318         * lib/unistr/u16-to-u8.c: Update.
45319         * modules/unistr/u16-to-u8: Update.
45320         * lib/unistr/u16-to-u32.c: Update.
45321         * modules/unistr/u16-to-u32: Update.
45322
45323 2007-01-27  Bruno Haible  <bruno@clisp.org>
45324
45325         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45326         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45327         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45328         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45329         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45330         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45331         modules/unistr/u8-mbtouc.
45332         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45333         * lib/unistr.h: Update.
45334         * lib/striconveh.c: Update.
45335         * modules/striconveh: Update.
45336         * lib/linebreak.c: Update.
45337         * modules/linebreak: Update.
45338         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45339         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45340         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45341         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45342         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45343         * lib/unistr.h: Update.
45344         * lib/striconveh.c: Update.
45345         * modules/striconveh: Update.
45346         * lib/unistr/u8-to-u16.c: Update.
45347         * modules/unistr/u8-to-u16: Update.
45348         * lib/unistr/u8-to-u32.c: Update.
45349         * modules/unistr/u8-to-u32: Update.
45350
45351 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45352
45353         Sync from Libtool.
45354         * lib/argz.c: Do not include strings.h nor memory.h, include
45355         string.h unconditionally.  Patch by Simon Josefsson.
45356
45357 2007-01-27  Bruno Haible  <bruno@clisp.org>
45358
45359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45360         from gl_HEADER_STRING_H_BODY.
45361         (gl_HEADER_STRING_H_BODY): Require it.
45362         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45363         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45364         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45365         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45366         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45367         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45368         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45369         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45370         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45371         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45372         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45373         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45374         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45375         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45376         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45377
45378 2007-01-27  Bruno Haible  <bruno@clisp.org>
45379
45380         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45381         check_PROGRAMS into noinst_PROGRAMS.
45382         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45383         check_PROGRAMS in this case.
45384         (func_import): Set for_test to false.
45385         (func_create_testdir): Set for_test to true.
45386
45387 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45388             Bruno Haible  <bruno@clisp.org>
45389
45390         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45391         (Depends-on): Add string.
45392         (Includes): Use <string.h> instead of strcasestr.h.
45393         * modules/string (Makefile.am): Also substitute the value of
45394         REPLACE_STRCASESTR.
45395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45396         assume strcasestr is declared in <string.h> not <strings.h>. Also
45397         set REPLACE_STRCASESTR.
45398         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45399         REPLACE_STRCASESTR.
45400         * lib/strcasestr.h: Remove file.
45401         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45402         * lib/string_.h (strcasestr): New declaration.
45403
45404 2007-01-27  Bruno Haible  <bruno@clisp.org>
45405
45406         * lib/string_.h: Use 'extern'.
45407
45408 2007-01-27  Jim Meyering  <jim@meyering.net>
45409
45410         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45411         of set-but-not-used local, "q".
45412
45413         * lib/mempcpy.c: Include <config.h> before <string.h>.
45414         This fixes a compilation error on HP-UX, due to the system's
45415         "restrict"-using mempcpy prototype.
45416
45417 2007-01-26  Bruno Haible  <bruno@clisp.org>
45418
45419         Small optimization.
45420         * lib/javacomp.c: Include c-strstr.h.
45421          (is_envjavac_gcj): Use c_strstr instead of strstr.
45422         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
45423
45424 2007-01-26  Bruno Haible  <bruno@clisp.org>
45425
45426         * MODULES.html.sh (Unicode string functions): Add the new modules.
45427
45428         * modules/uniconv/u32-strconv-to-locale: New file.
45429         * lib/uniconv/u32-strconv-to-locale.c: New file.
45430
45431         * modules/uniconv/u16-strconv-to-locale: New file.
45432         * lib/uniconv/u16-strconv-to-locale.c: New file.
45433
45434         * modules/uniconv/u8-strconv-to-locale: New file.
45435         * lib/uniconv/u8-strconv-to-locale.c: New file.
45436
45437         * modules/uniconv/u32-strconv-from-locale: New file.
45438         * lib/uniconv/u32-strconv-from-locale.c: New file.
45439
45440         * modules/uniconv/u16-strconv-from-locale: New file.
45441         * lib/uniconv/u16-strconv-from-locale.c: New file.
45442
45443         * modules/uniconv/u8-strconv-from-locale: New file.
45444         * lib/uniconv/u8-strconv-from-locale.c: New file.
45445
45446         * modules/uniconv/u32-strconv-to-enc: New file.
45447         * lib/uniconv/u32-strconv-to-enc.c: New file.
45448         * modules/uniconv/u32-strconv-to-enc-tests: New file.
45449         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
45450
45451         * modules/uniconv/u16-strconv-to-enc: New file.
45452         * lib/uniconv/u16-strconv-to-enc.c: New file.
45453         * lib/uniconv/u-strconv-to-enc.h: New file.
45454         * modules/uniconv/u16-strconv-to-enc-tests: New file.
45455         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
45456
45457         * modules/uniconv/u8-strconv-to-enc: New file.
45458         * lib/uniconv/u8-strconv-to-enc.c: New file.
45459         * modules/uniconv/u8-strconv-to-enc-tests: New file.
45460         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
45461
45462         * modules/uniconv/u32-strconv-from-enc: New file.
45463         * lib/uniconv/u32-strconv-from-enc.c: New file.
45464         * modules/uniconv/u32-strconv-from-enc-tests: New file.
45465         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
45466
45467         * modules/uniconv/u16-strconv-from-enc: New file.
45468         * lib/uniconv/u16-strconv-from-enc.c: New file.
45469         * modules/uniconv/u16-strconv-from-enc-tests: New file.
45470         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
45471
45472         * modules/uniconv/u8-strconv-from-enc: New file.
45473         * lib/uniconv/u8-strconv-from-enc.c: New file.
45474         * lib/uniconv/u-strconv-from-enc.h: New file.
45475         * modules/uniconv/u8-strconv-from-enc-tests: New file.
45476         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
45477
45478         * modules/uniconv/u32-conv-from-enc: New file.
45479         * lib/uniconv/u32-conv-from-enc.c: New file.
45480         * modules/uniconv/u32-conv-from-enc-tests: New file.
45481         * tests/uniconv/test-u32-conv-from-enc.c: New file.
45482
45483         * modules/uniconv/u16-conv-from-enc: New file.
45484         * lib/uniconv/u16-conv-from-enc.c: New file.
45485         * lib/uniconv/u-conv-from-enc.h: New file.
45486         * modules/uniconv/u16-conv-from-enc-tests: New file.
45487         * tests/uniconv/test-u16-conv-from-enc.c: New file.
45488
45489         * modules/uniconv/u8-conv-from-enc: New file.
45490         * lib/uniconv/u8-conv-from-enc.c: New file.
45491         * modules/uniconv/u8-conv-from-enc-tests: New file.
45492         * tests/uniconv/test-u8-conv-from-enc.c: New file.
45493
45494         * modules/uniconv/base: New file.
45495         * lib/uniconv.h: New file.
45496
45497 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45498
45499         * doc/gnulib-tool.texi (Initial import): Update to match current
45500         behavior with strdup module.
45501         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
45502         * lib/memmem.h: Remove; all uses removed.  This is now done
45503         by <string.h>.
45504         * lib/mempcpy.h: Likewise.
45505         * lib/memrchr.h: Likewise.
45506         * lib/stpcpy.h: Likewise.
45507         * lib/stpncpy.h: Likewise.
45508         * lib/strcase.h: Likewise.
45509         * lib/strchrnul.h: Likewise.
45510         * lib/strdup.h: Likewise.
45511         * lib/strndup.h: Likewise.
45512         * lib/strnlen.h: Likewise.
45513         * lib/strpbrk.h: Likewise.
45514         * lib/strsep.h: Likewise.
45515         * lib/strstr.h: Likewise.
45516         * lib/strtok_r.h: Likewise.
45517         * lib/string_.h: New file.
45518         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
45519         Rely on <string.h> instead.
45520         * lib/canon-host.c: Likewise.
45521         * lib/chdir-long.c: Likewise.
45522         * lib/concatpath.c: Likewise.
45523         * lib/exclude.c: Likewise.
45524         * lib/fchdir.c: Likewise.
45525         * lib/getaddrinfo.c: Likewise.
45526         * lib/getcwd.c: Likewise.
45527         * lib/getsubopt.c: Likewise.
45528         * lib/glob.c: Likewise.
45529         * lib/hard-locale.c: Likewise.
45530         * lib/iconvme.c: Likewise.
45531         * lib/javacomp.c: Likewise.
45532         * lib/mempcpy.c: Likewise.
45533         * lib/memrchr.c: Likewise.
45534         * lib/regex_internal.h: Likewise.
45535         * lib/stpncpy.c: Likewise.
45536         * lib/strcasecmp.c: Likewise.
45537         * lib/strchrnul.c: Likewise.
45538         * lib/strdup.c: Likewise.
45539         * lib/striconv.c: Likewise.
45540         * lib/striconveh.c: Likewise.
45541         * lib/striconveha.c: Likewise.
45542         * lib/strncasecmp.c: Likewise.
45543         * lib/strndup.c: Likewise.
45544         * lib/strnlen.c: Likewise.
45545         * lib/strsep.c: Likewise.
45546         * lib/strstr.c: Likewise.
45547         * lib/strtok_r.c: Likewise.
45548         * lib/userspec.c: Likewise.
45549         * lib/w32spawn.h: Likewise.
45550         * lib/xstrndup.c: Likewise.
45551         * lib/mountlist.c (strstr): Remove decl.
45552         * m4/string_h.m4: New file.
45553         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
45554         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
45555         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
45556         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
45557         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
45558         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
45559         Set REPLACE_STRCASECMP if necessary.
45560         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
45561         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
45562         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
45563         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
45564         HAVE_DECL_STRDUP if necessary.
45565         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
45566         since gl_FUNC_STRNDUP does that now.
45567         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
45568         Check for decl here...
45569         (gl_PREREQ_STRNLEN): ... not here.
45570         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
45571         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
45572         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
45573         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
45574         necessary.
45575         * modules/string: New file.
45576         * modules/memmem (Files): Remove special-purpose include file.
45577         (Depends-on): Add string.
45578         (Include): Include <string.h>, not the removed file.
45579         * modules/mempcpy: Likewise.
45580         * modules/memrchr: Likewise.
45581         * modules/stpcpy: Likewise.
45582         * modules/stpncpy: Likewise.
45583         * modules/strcase: Likewise.
45584         * modules/strchrnul: Likewise.
45585         * modules/strdup: Likewise.
45586         * modules/strndup: Likewise.
45587         * modules/strnlen: Likewise.
45588         * modules/strpbrk: Likewise.
45589         * modules/strsep: Likewise.
45590         * modules/strstr: Likewise.
45591         * modules/strtok_r: Likewise.
45592         * tests/test-dirname.c: Don't include "strdup.h", since
45593         <string.h> now suffices.
45594         * tests/test-memmem.c: Don't include "memmem.h", since
45595         <string.h> now suffices.
45596
45597 2007-01-25  Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
45600         *resultp is 0.
45601
45602         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
45603         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
45604         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
45605         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
45606
45607         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
45608         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
45609         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
45610         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
45611         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
45612         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
45613
45614 2007-01-24  Bruno Haible  <bruno@clisp.org>
45615
45616         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
45617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
45618         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
45619         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
45620         gl_FUNC_FTS_CORE.
45621         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
45622         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
45623         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45624         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
45625         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
45626         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
45627         gl_FUNC_FCHOWNAT.
45628         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
45629         gl_FUNC_STRFTIME.
45630         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
45631         Reported by Ralf Wildenhues.
45632
45633 2007-01-24  Bruno Haible  <bruno@clisp.org>
45634
45635         Drop AC_REQUIRE calls that are redundant with the module dependencies.
45636         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
45637         gl_GETADDRINFO.
45638         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
45639         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
45640         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
45641
45642 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
45643
45644         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
45645         Don't use 'exit'; just return from 'main'.
45646         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
45647
45648         * lib/fnmatch_.h: Readjust white space and comments to match
45649         glibc, to avoid spurious diffs.
45650
45651 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45652
45653         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
45654         2004-12-01 change by Jakub Jelinek, since this code won't compile
45655         if !LIBC.  Problem reported by Bob Proulx.
45656
45657 2007-01-23  Bruno Haible  <bruno@clisp.org>
45658
45659         * lib/striconveh.c: Include c-strcaseeq.h.
45660         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
45661         * modules/striconveh (Depends-on): Add c-strcaseeq.
45662
45663 2007-01-23  Bruno Haible  <bruno@clisp.org>
45664
45665         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
45666
45667         * modules/c-strcaseeq: New file.
45668         * lib/c-strcaseeq.h: New file.
45669
45670         * modules/streq: New file.
45671         * lib/streq.h: New file.
45672
45673 2007-01-23  Bruno Haible  <bruno@clisp.org>
45674
45675         * modules/striconveha-tests: New file.
45676         * tests/test-striconveha.c: New file.
45677
45678         * lib/striconveha.h: Include <stdbool.h>.
45679         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
45680         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
45681         (mem_iconveha_notranslit): Renamed from mem_iconveha.
45682         (mem_iconveha): New function.
45683         (str_iconveha_notranslit): Renamed from str_iconveha.
45684         (str_iconveha): New function.
45685         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
45686         c-strcase.
45687
45688 2007-01-23  Bruno Haible  <bruno@clisp.org>
45689
45690         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
45691         encodings without forgiving before trying any encoding with handler.
45692         (str_iconveha): Try all encodings without forgiving before trying any
45693         encoding with handler.
45694
45695 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45696
45697         Import the following changes from libc.
45698
45699         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45700
45701         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
45702
45703         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
45704
45705         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
45706         normal_bracket label.
45707
45708         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
45709
45710         [BZ #361]
45711         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
45712         to normal_bracket after fetching the next character.
45713
45714 2007-01-22  Bruno Haible  <bruno@clisp.org>
45715
45716         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
45717         argument.
45718         * lib/striconveh.c (iconv_carefully_1): New function.
45719         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
45720         argument.
45721         (str_cd_iconveh): Update.
45722         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
45723         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
45724         * tests/test-striconveh.c (MAGIC): New macro.
45725         (new_offsets): New function.
45726         (main): Test call with and without offsets.
45727
45728 2007-01-22  Bruno Haible  <bruno@clisp.org>
45729
45730         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
45731         * modules/sys_select (Makefile.am): Likewise.
45732         * modules/sys_socket (Makefile.am): Likewise.
45733         * modules/sys_time (Makefile.am): Likewise.
45734
45735 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45736
45737         * modules/gettimeofday (License): Change from GPL to LGPL, since
45738         gettimeofday is a library function.
45739
45740 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45741
45742         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
45743
45744 2007-01-21  Bruno Haible  <bruno@clisp.org>
45745
45746         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
45747
45748 2007-01-21  Bruno Haible  <bruno@clisp.org>
45749
45750         * modules/striconveha: New file.
45751         * lib/striconveha.h: New file.
45752         * lib/striconveha.c: New file.
45753         * MODULES.html.sh (Internationalization functions): Add striconveha.
45754         * lib/striconv.c (str_iconv): Optimize the case of an empty input
45755         string.
45756         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
45757
45758 2007-01-21  Bruno Haible  <bruno@clisp.org>
45759
45760         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
45761         * lib/striconveh.c (str_iconveh): Likewise.
45762
45763 2007-01-21  Bruno Haible  <bruno@clisp.org>
45764
45765         * lib/striconveh.h (mem_iconveh): New declaration.
45766         * lib/striconveh.c (mem_iconveh): New function.
45767         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
45768
45769 2007-01-21  Bruno Haible  <bruno@clisp.org>
45770
45771         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
45772
45773         * lib/striconveh.h (mem_cd_iconveh): Change specification.
45774         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
45775         original result buffer.
45776         (str_cd_iconveh): Update.
45777         * tests/test-striconveh.c (main): Update.
45778
45779         * lib/striconv.h (mem_cd_iconv): Change specification.
45780         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
45781         result buffer.
45782         (str_cd_iconv): Update.
45783         * tests/test-striconv.c (main): Update.
45784
45785 2007-01-21  Bruno Haible  <bruno@clisp.org>
45786
45787         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
45788
45789 2007-01-20  Jim Meyering  <jim@meyering.net>
45790
45791         * lib/userspec.c (parse_with_separator): If a user or group string
45792         starts with "+", skip the corresponding name-to-ID look-up, since
45793         such a look-up must fail: user and group names may not include "+".
45794
45795 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
45796
45797         * lib/poll.c: Include sys/time.h and time.h unconditionally,
45798         since we now assume the sys_time module.
45799         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
45800         check for sys/time.h; no longer needed.
45801         * modules/poll (Depends-on): Depend on sys_time.
45802
45803 2007-01-18  Bruno Haible  <bruno@clisp.org>
45804
45805         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
45806         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45807
45808         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
45809         gettimeofday.
45810
45811         * tests/test-gettimeofday.c: Include <time.h>.
45812         (dummy): Remove variable.
45813
45814         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
45815         gl_HEADER_SYS_TIME_H.
45816         (gl_HEADER_SYS_TIME_H): New macro.
45817
45818         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
45819         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45820         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
45821         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
45822         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45823         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
45824         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
45825         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45826         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
45827         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
45828         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45829
45830         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
45831         last change; it caused a compilation error when cross-compiling to
45832         Cygwin.
45833
45834 2007-01-18  Jim Meyering  <jim@meyering.net>
45835
45836         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
45837         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
45838         than the race-prone "test -d sys || mkdir sys".
45839         (configure.ac): Use AC_PROG_MKDIR_P.
45840         * modules/sys_select: Likewise.
45841         * modules/sys_socket: Likewise.
45842         * modules/sys_time: Likewise.
45843
45844 2007-01-18  Eric Blake  <ebb9@byu.net>
45845
45846         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
45847         replace gettimeofday.
45848         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
45849         name, to avoid infinite recursion.
45850
45851 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
45852
45853         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
45854         module sys_time.
45855         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
45856         assume timespec.h defines struct timeval.
45857         * lib/settime.c: Likewise.
45858         * lib/utimens.c: Likewise.
45859         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
45860         since we now assume the gettimeofday module.
45861         * lib/tempname.c (__gen_tempname): Likewise.
45862         * lib/gettimeofday.h: Remove.
45863         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
45864         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
45865         Include <time.h>, for 'time()'.
45866         (localtime_buffer_addr): Also use this workaround if
45867         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
45868         to simplify the uses.  All uses changed.
45869         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
45870         that #undef is inside {}, and 'const' follows type name consistently.
45871         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
45872         (gettimeofday): Do not use the maximum possible value for
45873         tv->tv_usec, since that might break usages other than ls.c.
45874         Instead, we'll leave ls.c alone.  This undoes today's patch
45875         by Bruno.  Add a compile-time warning for 1s-clock resolution;
45876         we've never observed the problem but might as well keep the
45877         canary.
45878         * lib/nanosleep.c: Include timespec.h first, for interface check.
45879         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
45880         now assume the sys_time module.
45881         * lib/tempname.c: Likewise.
45882         * lib/timespec.h: Likewise.
45883         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
45884         needed.
45885         * lib/strftime.c: Likewise.
45886         * lib/timespec.h: Likewise.
45887         * lib/posixtm.c: Include posixtm.h first, for interface check.
45888         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
45889         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
45890         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
45891         * lib/sys_time_.h: New file.
45892         * lib/timespec.h (struct timespec): Use long int, not long.
45893         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45894         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
45895         Remove obsolescent call to AC_HEADER_TIME.
45896         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
45897         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45898         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45899         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
45900         Likewise.
45901         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
45902         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
45903         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
45904         into the sys_time module.  Check for gettimeofday just once.
45905         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
45906         for gettimeofday signature to just check the signature.  Merely
45907         compile it, since linking doesn't test signature.  Improve test for
45908         whether gettimeofday.o is actually needed.
45909         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
45910         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
45911         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
45912         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45913         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
45914         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
45915         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
45916         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
45917         than worrying about sys/time.h.
45918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45919         Don't bother worrying about TIME_WITH_SYS_TIME.
45920         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45921         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
45922         * m4/sys_time_h.m4: New file.
45923         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
45924         Don't include sys/time.h.  Return from main rather than exiting.
45925         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
45926         all uses changed.
45927         * modules/gethrxtime (Depends-on): Add sys_time.
45928         * modules/gettime (Depends-on): Likewise.
45929         * modules/gettimeofday (Depends-on): Likewise.
45930         * modules/nanosleep (Depends-on): Likewise.
45931         * modules/settime (Depends-on): Likewise.
45932         * modules/tempname (Depends-on): Likewise.
45933         * modules/utimens (Depends-on): Likewise.
45934         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
45935         (Include:) Change back to <sys/time.h>.
45936         (Maintainer:) Add self.
45937         * modules/sys_time: New file.
45938         * modules/tempname (Depends-on): Add gettimeofday.
45939         * tests/test-gettimeofday.c: Include <sys/time.h>
45940         rather than gettimeofday.h.
45941
45942 2007-01-17  Bruno Haible  <bruno@clisp.org>
45943
45944         * gnulib-tool (func_get_license): Revert last patch. Instead, let
45945         the license default to GPL.
45946         (func_create_testdir): Don't complain if a module is LGPL and its
45947         tests module depends on GPLed modules.
45948
45949 2007-01-17  Bruno Haible  <bruno@clisp.org>
45950
45951         * lib/gettimeofday.c (gettimeofday): Add code for the case
45952         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
45953         maximum possible value for tv->tv_usec, rather than the minimum one.
45954
45955 2005-10-08  Martin Lambers  <marlam@marlam.de>
45956 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45957 2007-01-16  Bruno Haible  <bruno@clisp.org>
45958
45959         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
45960         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
45961         gl_FUNC_GETTIMEOFDAY.
45962         (Include): Add gettimeofday.h.
45963         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
45964         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
45965         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
45966         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
45967         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
45968         * lib/gettimeofday.h: New file.
45969         * lib/gettimeofday.c: Include <sys/timeb.h>.
45970         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
45971         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45972         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
45973         fall back on time().
45974
45975         * tests/test-gettimeofday.c: New file.
45976         * modules/gettimeofday-tests: New file.
45977
45978 2007-01-16  Eric Blake  <ebb9@byu.net>
45979
45980         * modules/fnmatch (Depends-on): Depend on wchar.
45981         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
45982         * m4/fnmatch.m4: Likewise.
45983         * modules/mbchar (Makefile.am): Assume <wchar.h>.
45984         * m4/mbchar.m4: Likewise.
45985         * modules/mbswidth (Depends-on): Depend on wchar.
45986         * lib/mbswidth.c: Assume <wchar.h>.
45987         * m4/mbswidth.m4: Likewise.
45988         * modules/quotearg (Depends-on): Depend on wchar.
45989         * lib/quotearg.c: Assume <wchar.h>.
45990         * m4/quotearg.m4: Likewise.
45991         * modules/regex (Depends-on): Depend on wchar.
45992         * lib/regex_internal.h: Assume <wchar.h>.
45993         * m4/regex.m4: Likewise.
45994         * modules/stdint (Depends-on): Depend on wchar.
45995         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
45996         * m4/stdint.m4: Likewise.
45997         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
45998         * modules/strftime (Depends-on): Depend on wchar.
45999         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46000         * modules/strtol (Depends-on): Depend on wchar.
46001         * lib/strtol.c: Assume <wchar.h>.
46002         * modules/wcwidth (Depends-on): Depend on wchar.
46003         * lib/wcwidth.h: Assume <wchar.h>.
46004         * m4/wcwidth.m4: Likewise.
46005
46006 2007-01-16  Bruno Haible  <bruno@clisp.org>
46007
46008         * modules/csharpexec-script: New, created from...
46009         * modules/csharpexec: ... this.
46010
46011 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46012
46013         * modules/javaexec-script: New, created from...
46014         * modules/javaexec: ... this.
46015
46016 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46017
46018         * modules/poll (Dependencies): Add sys_select.
46019
46020 2007-01-15  Jim Meyering  <jim@meyering.net>
46021
46022         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46023         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46024         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46025         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46026
46027 2007-01-15  Bruno Haible  <bruno@clisp.org>
46028
46029         * modules/striconveh: New file.
46030         * lib/striconveh.h: New file.
46031         * lib/striconveh.c: New file.
46032         * MODULES.html.sh (Internationalization functions): Add striconveh.
46033
46034         * modules/striconveh-tests: New file.
46035         * tests/test-striconveh.c: New file.
46036
46037 2007-01-15  Bruno Haible  <bruno@clisp.org>
46038
46039         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46040         not from GNU libiconv or GNU libc.
46041
46042 2007-01-15  Bruno Haible  <bruno@clisp.org>
46043
46044         * doc/gnulib-intro.texi (Copyright): Explain the different license
46045         terms for module descriptions, autoconf macros, tests, documentation.
46046
46047 2007-01-14  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/striconv-tests: New file.
46050         * tests/test-striconv.c: New file.
46051
46052 2007-01-14  Bruno Haible  <bruno@clisp.org>
46053
46054         * modules/iconv-tests: New file.
46055         * tests/test-iconv.c: New file.
46056
46057 2007-01-14  Bruno Haible  <bruno@clisp.org>
46058
46059         * gnulib-tool (func_get_license): For test modules, use the license of
46060         the main module.
46061
46062 2007-01-14  Bruno Haible  <bruno@clisp.org>
46063
46064         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46065         if iconv is found to exist.
46066
46067 2007-01-14  Bruno Haible  <bruno@clisp.org>
46068
46069         * modules/c-ctype-tests: New file.
46070         * tests/test-c-ctype.c: New file.
46071
46072 2007-01-14  Bruno Haible  <bruno@clisp.org>
46073
46074         * modules/binary-io-tests: New file.
46075         * tests/test-binary-io.sh: New file.
46076         * tests/test-binary-io.c: New file.
46077
46078 2007-01-14  Bruno Haible  <bruno@clisp.org>
46079
46080         * modules/array-oset-tests: New file.
46081         * tests/test-array_oset.c: New file.
46082
46083 2007-01-14  Bruno Haible  <bruno@clisp.org>
46084
46085         * modules/array-list-tests: New file.
46086         * tests/test-array_list.c: New file.
46087
46088 2007-01-14  Bruno Haible  <bruno@clisp.org>
46089
46090         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46091         and make.
46092         Reported by Simon Josefsson in
46093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46094
46095 2007-01-14  Bruno Haible  <bruno@clisp.org>
46096
46097         * modules/allocsa-tests: New file.
46098         * tests/test-allocsa.c: New file.
46099
46100 2007-01-14  Bruno Haible  <bruno@clisp.org>
46101
46102         * modules/fchdir (Depends-on): Add absolute-header.
46103         * modules/unistd (Depends-on): Likewise.
46104
46105 2006-12-30  Bruno Haible  <bruno@clisp.org>
46106
46107         * modules/fchdir: New file.
46108         * modules/unistd (Files): Add lib/unistd_.h.
46109         (Makefile.am): Generate unistd.h from unistd_.h.
46110         * lib/fchdir.c: New file.
46111         * lib/dirent_.h: New file.
46112         * lib/unistd_.h: New file.
46113         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46114         * m4/fchdir.m4: New file.
46115         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46116         (gl_HEADER_UNISTD): Invoke it.
46117         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46118         function.
46119         * lib/backupfile.c (opendir, closedir): Undefine.
46120         * lib/chown.c (open, close): Undefine.
46121         * lib/clean-temp.c (open, close): Undefine.
46122         * lib/copy-file.c (open, close): Undefine.
46123         * lib/execute.c (open, close): Undefine.
46124         * lib/fsusage.c (open, close): Undefine.
46125         * lib/gc-gnulib.c (open, close): Undefine.
46126         * lib/getcwd.c (opendir, closedir): Undefine.
46127         * lib/glob.c (opendir, closedir): Undefine.
46128         * lib/javacomp.c (open, close): Undefine.
46129         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46130         * lib/openat-proc.c (open, close): Undefine.
46131         * lib/pagealign_alloc.c (open, close): Undefine.
46132         * lib/pipe.c (open, close): Undefine.
46133         * lib/progreloc.c (open, close): Undefine.
46134         * lib/savedir.c (opendir, closedir): Undefine.
46135         * lib/utime.c (open, close): Undefine.
46136         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46137
46138 2007-01-10  Bruno Haible  <bruno@clisp.org>
46139
46140         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46141
46142 2007-01-12  Eric Blake  <ebb9@byu.net>
46143
46144         Provide a robust <wchar.h>.  Further simplifications are now
46145         possible in other modules, but not included here.
46146         * modules/wchar: New module.
46147         * m4/wchar.m4: New file.
46148         * lib/wchar_.h: Likewise.
46149         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46150         of the new module.
46151         * MODULES.html.sh (Extended multibyte and wide character utilities):
46152         New section.
46153
46154 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46155
46156         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46157         to a reasonable default for memory allocation.
46158         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46159         file system that reports garbage st_size values for symlinks.
46160         Problem reported by Liyang Hu.
46161
46162 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46163
46164         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46165         Emacs .#* auto-save files).
46166
46167 2007-01-11  Bruno Haible  <bruno@clisp.org>
46168
46169         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46170         directory.
46171
46172 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46173
46174         Use @...@ consistently in lib/wctype_.h.
46175         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46176         on it being set to 1 or 0.
46177         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46178         go back to AC_SUBSTing it.
46179         * modules/wctype (Makefile.am): Undo previous change.
46180
46181 2007-01-10  Eric Blake  <ebb9@byu.net>
46182
46183         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46184         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46185         * modules/wctype (Makefile.am): Likewise.
46186         Reported by Chris McGuire.
46187
46188 2007-01-10  Jim Meyering  <jim@meyering.net>
46189
46190         fts.c: a small readability/maintainability improvement
46191         * lib/fts.c (fts_read): Make this code slightly more readable and
46192         maintainable by hoisting the "sp->fts_cur = p" assignments to
46193         immediately follow the statements that set P.  Derived from
46194         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46195
46196 2007-01-10  Eric Blake  <ebb9@byu.net>
46197
46198         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46199         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46201         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46202         Reported by Chris McGuire.
46203
46204 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46205
46206         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46207         in sed script.
46208
46209 2007-01-09  Bruno Haible  <bruno@clisp.org>
46210
46211         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46212         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46213         variables.
46214         (func_module): Use them.
46215
46216 2007-01-09  Bruno Haible  <bruno@clisp.org>
46217
46218         * modules/unistr/base: New file.
46219         * lib/unistr.h: New file.
46220
46221         * modules/unistr/u8-to-u16: New file.
46222         * lib/unistr/u8-to-u16.c: New file.
46223
46224         * modules/unistr/u8-to-u32: New file.
46225         * lib/unistr/u8-to-u32.c: New file.
46226
46227         * modules/unistr/u16-to-u8: New file.
46228         * lib/unistr/u16-to-u8.c: New file.
46229
46230         * modules/unistr/u16-to-u32: New file.
46231         * lib/unistr/u16-to-u32.c: New file.
46232
46233         * modules/unistr/u32-to-u8: New file.
46234         * lib/unistr/u32-to-u8.c: New file.
46235
46236         * modules/unistr/u32-to-u16: New file.
46237         * lib/unistr/u32-to-u16.c: New file.
46238
46239         * modules/unistr/u8-check: New file.
46240         * modules/unistr/u16-check: New file.
46241         * modules/unistr/u32-check: New file.
46242         * lib/unistr/u8-check.c: New file.
46243         * lib/unistr/u16-check.c: New file.
46244         * lib/unistr/u32-check.c: New file.
46245
46246         * modules/unistr/u8-chr: New file.
46247         * modules/unistr/u16-chr: New file.
46248         * modules/unistr/u32-chr: New file.
46249         * lib/unistr/u8-chr.c: New file.
46250         * lib/unistr/u16-chr.c: New file.
46251         * lib/unistr/u32-chr.c: New file.
46252
46253         * modules/unistr/u8-cmp: New file.
46254         * modules/unistr/u16-cmp: New file.
46255         * modules/unistr/u32-cmp: New file.
46256         * lib/unistr/u8-cmp.c: New file.
46257         * lib/unistr/u16-cmp.c: New file.
46258         * lib/unistr/u32-cmp.c: New file.
46259
46260         * modules/unistr/u8-cpy: New file.
46261         * modules/unistr/u16-cpy: New file.
46262         * modules/unistr/u32-cpy: New file.
46263         * lib/unistr/u8-cpy.c: New file.
46264         * lib/unistr/u16-cpy.c: New file.
46265         * lib/unistr/u32-cpy.c: New file.
46266         * lib/unistr/u-cpy.h: New file.
46267
46268         * modules/unistr/u8-cpy-alloc: New file.
46269         * modules/unistr/u16-cpy-alloc: New file.
46270         * modules/unistr/u32-cpy-alloc: New file.
46271         * lib/unistr/u8-cpy-alloc.c: New file.
46272         * lib/unistr/u16-cpy-alloc.c: New file.
46273         * lib/unistr/u32-cpy-alloc.c: New file.
46274         * lib/unistr/u-cpy-alloc.h: New file.
46275
46276         * modules/unistr/u8-endswith: New file.
46277         * modules/unistr/u16-endswith: New file.
46278         * modules/unistr/u32-endswith: New file.
46279         * lib/unistr/u8-endswith.c: New file.
46280         * lib/unistr/u16-endswith.c: New file.
46281         * lib/unistr/u32-endswith.c: New file.
46282         * lib/unistr/u-endswith.h: New file.
46283
46284         * modules/unistr/u8-mblen: New file.
46285         * modules/unistr/u16-mblen: New file.
46286         * modules/unistr/u32-mblen: New file.
46287         * lib/unistr/u8-mblen.c: New file.
46288         * lib/unistr/u16-mblen.c: New file.
46289         * lib/unistr/u32-mblen.c: New file.
46290
46291         * modules/unistr/u8-mbtouc: New file.
46292         * modules/unistr/u16-mbtouc: New file.
46293         * modules/unistr/u32-mbtouc: New file.
46294         * lib/unistr/u8-mbtouc.c: New file.
46295         * lib/unistr/u16-mbtouc.c: New file.
46296         * lib/unistr/u32-mbtouc.c: New file.
46297
46298         * modules/unistr/u8-mbtouc-safe: New file.
46299         * modules/unistr/u16-mbtouc-safe: New file.
46300         * modules/unistr/u32-mbtouc-safe: New file.
46301         * lib/unistr/u8-mbtouc-safe.c: New file.
46302         * lib/unistr/u16-mbtouc-safe.c: New file.
46303         * lib/unistr/u32-mbtouc-safe.c: New file.
46304
46305         * modules/unistr/u8-move: New file.
46306         * modules/unistr/u16-move: New file.
46307         * modules/unistr/u32-move: New file.
46308         * lib/unistr/u8-move.c: New file.
46309         * lib/unistr/u16-move.c: New file.
46310         * lib/unistr/u32-move.c: New file.
46311         * lib/unistr/u-move.h: New file.
46312
46313         * modules/unistr/u8-next: New file.
46314         * modules/unistr/u16-next: New file.
46315         * modules/unistr/u32-next: New file.
46316         * lib/unistr/u8-next.c: New file.
46317         * lib/unistr/u16-next.c: New file.
46318         * lib/unistr/u32-next.c: New file.
46319
46320         * modules/unistr/u8-prev: New file.
46321         * modules/unistr/u16-prev: New file.
46322         * modules/unistr/u32-prev: New file.
46323         * lib/unistr/u8-prev.c: New file.
46324         * lib/unistr/u16-prev.c: New file.
46325         * lib/unistr/u32-prev.c: New file.
46326
46327         * modules/unistr/u8-set: New file.
46328         * modules/unistr/u16-set: New file.
46329         * modules/unistr/u32-set: New file.
46330         * lib/unistr/u8-set.c: New file.
46331         * lib/unistr/u16-set.c: New file.
46332         * lib/unistr/u32-set.c: New file.
46333         * lib/unistr/u-set.h: New file.
46334
46335         * modules/unistr/u8-startswith: New file.
46336         * modules/unistr/u16-startswith: New file.
46337         * modules/unistr/u32-startswith: New file.
46338         * lib/unistr/u8-startswith.c: New file.
46339         * lib/unistr/u16-startswith.c: New file.
46340         * lib/unistr/u32-startswith.c: New file.
46341         * lib/unistr/u-startswith.h: New file.
46342
46343         * modules/unistr/u8-stpcpy: New file.
46344         * modules/unistr/u16-stpcpy: New file.
46345         * modules/unistr/u32-stpcpy: New file.
46346         * lib/unistr/u8-stpcpy.c: New file.
46347         * lib/unistr/u16-stpcpy.c: New file.
46348         * lib/unistr/u32-stpcpy.c: New file.
46349         * lib/unistr/u-stpcpy.h: New file.
46350
46351         * modules/unistr/u8-stpncpy: New file.
46352         * modules/unistr/u16-stpncpy: New file.
46353         * modules/unistr/u32-stpncpy: New file.
46354         * lib/unistr/u8-stpncpy.c: New file.
46355         * lib/unistr/u16-stpncpy.c: New file.
46356         * lib/unistr/u32-stpncpy.c: New file.
46357         * lib/unistr/u-stpncpy.h: New file.
46358
46359         * modules/unistr/u8-strcat: New file.
46360         * modules/unistr/u16-strcat: New file.
46361         * modules/unistr/u32-strcat: New file.
46362         * lib/unistr/u8-strcat.c: New file.
46363         * lib/unistr/u16-strcat.c: New file.
46364         * lib/unistr/u32-strcat.c: New file.
46365         * lib/unistr/u-strcat.h: New file.
46366
46367         * modules/unistr/u8-strchr: New file.
46368         * modules/unistr/u16-strchr: New file.
46369         * modules/unistr/u32-strchr: New file.
46370         * lib/unistr/u8-strchr.c: New file.
46371         * lib/unistr/u16-strchr.c: New file.
46372         * lib/unistr/u32-strchr.c: New file.
46373
46374         * modules/unistr/u8-strcmp: New file.
46375         * modules/unistr/u16-strcmp: New file.
46376         * modules/unistr/u32-strcmp: New file.
46377         * lib/unistr/u8-strcmp.c: New file.
46378         * lib/unistr/u16-strcmp.c: New file.
46379         * lib/unistr/u32-strcmp.c: New file.
46380
46381         * modules/unistr/u8-strcpy: New file.
46382         * modules/unistr/u16-strcpy: New file.
46383         * modules/unistr/u32-strcpy: New file.
46384         * lib/unistr/u8-strcpy.c: New file.
46385         * lib/unistr/u16-strcpy.c: New file.
46386         * lib/unistr/u32-strcpy.c: New file.
46387         * lib/unistr/u-strcpy.h: New file.
46388
46389         * modules/unistr/u8-strcspn: New file.
46390         * modules/unistr/u16-strcspn: New file.
46391         * modules/unistr/u32-strcspn: New file.
46392         * lib/unistr/u8-strcspn.c: New file.
46393         * lib/unistr/u16-strcspn.c: New file.
46394         * lib/unistr/u32-strcspn.c: New file.
46395         * lib/unistr/u-strcspn.h: New file.
46396
46397         * modules/unistr/u8-strdup: New file.
46398         * modules/unistr/u16-strdup: New file.
46399         * modules/unistr/u32-strdup: New file.
46400         * lib/unistr/u8-strdup.c: New file.
46401         * lib/unistr/u16-strdup.c: New file.
46402         * lib/unistr/u32-strdup.c: New file.
46403         * lib/unistr/u-strdup.h: New file.
46404
46405         * modules/unistr/u8-strlen: New file.
46406         * modules/unistr/u16-strlen: New file.
46407         * modules/unistr/u32-strlen: New file.
46408         * lib/unistr/u8-strlen.c: New file.
46409         * lib/unistr/u16-strlen.c: New file.
46410         * lib/unistr/u32-strlen.c: New file.
46411         * lib/unistr/u-strlen.h: New file.
46412
46413         * modules/unistr/u8-strmblen: New file.
46414         * modules/unistr/u16-strmblen: New file.
46415         * modules/unistr/u32-strmblen: New file.
46416         * lib/unistr/u8-strmblen.c: New file.
46417         * lib/unistr/u16-strmblen.c: New file.
46418         * lib/unistr/u32-strmblen.c: New file.
46419
46420         * modules/unistr/u8-strmbtouc: New file.
46421         * modules/unistr/u16-strmbtouc: New file.
46422         * modules/unistr/u32-strmbtouc: New file.
46423         * lib/unistr/u8-strmbtouc.c: New file.
46424         * lib/unistr/u16-strmbtouc.c: New file.
46425         * lib/unistr/u32-strmbtouc.c: New file.
46426
46427         * modules/unistr/u8-strncat: New file.
46428         * modules/unistr/u16-strncat: New file.
46429         * modules/unistr/u32-strncat: New file.
46430         * lib/unistr/u8-strncat.c: New file.
46431         * lib/unistr/u16-strncat.c: New file.
46432         * lib/unistr/u32-strncat.c: New file.
46433         * lib/unistr/u-strncat.h: New file.
46434
46435         * modules/unistr/u8-strncmp: New file.
46436         * modules/unistr/u16-strncmp: New file.
46437         * modules/unistr/u32-strncmp: New file.
46438         * lib/unistr/u8-strncmp.c: New file.
46439         * lib/unistr/u16-strncmp.c: New file.
46440         * lib/unistr/u32-strncmp.c: New file.
46441
46442         * modules/unistr/u8-strncpy: New file.
46443         * modules/unistr/u16-strncpy: New file.
46444         * modules/unistr/u32-strncpy: New file.
46445         * lib/unistr/u8-strncpy.c: New file.
46446         * lib/unistr/u16-strncpy.c: New file.
46447         * lib/unistr/u32-strncpy.c: New file.
46448         * lib/unistr/u-strncpy.h: New file.
46449
46450         * modules/unistr/u8-strnlen: New file.
46451         * modules/unistr/u16-strnlen: New file.
46452         * modules/unistr/u32-strnlen: New file.
46453         * lib/unistr/u8-strnlen.c: New file.
46454         * lib/unistr/u16-strnlen.c: New file.
46455         * lib/unistr/u32-strnlen.c: New file.
46456         * lib/unistr/u-strnlen.h: New file.
46457
46458         * modules/unistr/u8-strpbrk: New file.
46459         * modules/unistr/u16-strpbrk: New file.
46460         * modules/unistr/u32-strpbrk: New file.
46461         * lib/unistr/u8-strpbrk.c: New file.
46462         * lib/unistr/u16-strpbrk.c: New file.
46463         * lib/unistr/u32-strpbrk.c: New file.
46464         * lib/unistr/u-strpbrk.h: New file.
46465
46466         * modules/unistr/u8-strrchr: New file.
46467         * modules/unistr/u16-strrchr: New file.
46468         * modules/unistr/u32-strrchr: New file.
46469         * lib/unistr/u8-strrchr.c: New file.
46470         * lib/unistr/u16-strrchr.c: New file.
46471         * lib/unistr/u32-strrchr.c: New file.
46472
46473         * modules/unistr/u8-strspn: New file.
46474         * modules/unistr/u16-strspn: New file.
46475         * modules/unistr/u32-strspn: New file.
46476         * lib/unistr/u8-strspn.c: New file.
46477         * lib/unistr/u16-strspn.c: New file.
46478         * lib/unistr/u32-strspn.c: New file.
46479         * lib/unistr/u-strspn.h: New file.
46480
46481         * modules/unistr/u8-strstr: New file.
46482         * modules/unistr/u16-strstr: New file.
46483         * modules/unistr/u32-strstr: New file.
46484         * lib/unistr/u8-strstr.c: New file.
46485         * lib/unistr/u16-strstr.c: New file.
46486         * lib/unistr/u32-strstr.c: New file.
46487         * lib/unistr/u-strstr.h: New file.
46488
46489         * modules/unistr/u8-strtok: New file.
46490         * modules/unistr/u16-strtok: New file.
46491         * modules/unistr/u32-strtok: New file.
46492         * lib/unistr/u8-strtok.c: New file.
46493         * lib/unistr/u16-strtok.c: New file.
46494         * lib/unistr/u32-strtok.c: New file.
46495         * lib/unistr/u-strtok.h: New file.
46496
46497         * modules/unistr/u8-uctomb: New file.
46498         * modules/unistr/u16-uctomb: New file.
46499         * modules/unistr/u32-uctomb: New file.
46500         * lib/unistr/u8-uctomb.c: New file.
46501         * lib/unistr/u16-uctomb.c: New file.
46502         * lib/unistr/u32-uctomb.c: New file.
46503
46504         * MODULES.html.sh (Unicode string functions): Add the new modules.
46505
46506 2007-01-08  Bruno Haible  <bruno@clisp.org>
46507
46508         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
46509         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
46510         subdirectories.
46511
46512 2007-01-08  Karl Berry  <karl@gnu.org>
46513
46514         * doc/error.texi: mention that main() fns must set program_name
46515         when progname is used.
46516
46517 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
46518
46519         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
46520         WCTYPE_H is empty, for the benefit of builds from non-distclean
46521         directories.  Problem reported by Eric Blake in
46522         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
46523
46524 2007-01-08  Bruno Haible  <bruno@clisp.org>
46525
46526         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
46527         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
46528         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
46529         PROVIDE_CANONICALIZE_FILENAME_MODE.
46530         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
46531
46532 2007-01-08  Bruno Haible  <bruno@clisp.org>
46533
46534         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
46535         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
46536         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
46537         * lib/fts.c: Likewise.
46538         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
46539
46540 2006-12-25  Bruno Haible  <bruno@clisp.org>
46541
46542         * modules/utf8-ucs4-safe: New file.
46543         * lib/utf8-ucs4-safe.h: New file.
46544         * lib/unistr/utf8-ucs4-safe.c: New file.
46545
46546         * modules/utf16-ucs4-safe: New file.
46547         * lib/utf16-ucs4-safe.h: New file.
46548         * lib/unistr/utf16-ucs4-safe.c: New file.
46549
46550         * MODULES.html.sh (Unicode string functions): Add the new modules.
46551
46552 2007-01-08  Bruno Haible  <bruno@clisp.org>
46553
46554         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
46555         (Depends-on): Add unitypes.
46556         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46557         (u8_mbtouc_aux): Move out to separate file.
46558         (u8_mbtouc): Use ucs4_t, uint8_t types.
46559         * lib/unistr/utf8-ucs4.c: New file.
46560
46561         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
46562         (Depends-on): Add unitypes.
46563         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46564         (u16_mbtouc_aux): Move out to separate file.
46565         (u16_mbtouc): Use ucs4_t, uint16_t types.
46566         * lib/unistr/utf16-ucs4.c: New file.
46567
46568         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
46569         (Depends-on): Add unitypes.
46570         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
46571         (u8_uctomb_aux): Move out to separate file.
46572         (u8_uctomb): Use ucs4_t, uint8_t types.
46573         * lib/unistr/ucs4-utf8.c: New file.
46574
46575         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
46576         (Depends-on): Add unitypes.
46577         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
46578         (u16_uctomb_aux): Move out to separate file.
46579         (u16_uctomb): Use ucs4_t, uint16_t types.
46580         * lib/unistr/ucs4-utf16.c: New file.
46581
46582 2006-12-25  Bruno Haible  <bruno@clisp.org>
46583
46584         * modules/unitypes: New file.
46585         * lib/unitypes.h: New file.
46586         * MODULES.html.sh (func_all_modules): New section "Unicode string
46587         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
46588         this section. Add unitypes.
46589
46590 2007-01-08  Bruno Haible  <bruno@clisp.org>
46591
46592         Avoid variable names that conflict with those from libtool.
46593         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
46594         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
46595         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
46596         library_names_spec to acl_library_names_spec, hardcode_* to
46597         acl_hardcode_*.
46598         Reported by Ralf Wildenhues.
46599
46600 2007-01-08  Bruno Haible  <bruno@clisp.org>
46601
46602         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
46603         definition.
46604         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
46605         definition.
46606         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
46607         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
46608         definition.
46609         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
46610         definition.
46611         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
46612         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
46613         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
46614         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
46615         definition.
46616         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
46617         definition.
46618         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
46619         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
46620         GC_USE_<algorithm>.
46621         * lib/gc-libgcrypt.c: Likewise.
46622         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
46623         * modules/gc-arctwo (configure.ac): Likewise.
46624         * modules/gc-des (configure.ac): Likewise.
46625         * modules/gc-hmac-md5 (configure.ac): Likewise.
46626         * modules/gc-hmac-sha1 (configure.ac): Likewise.
46627         * modules/gc-md2 (configure.ac): Likewise.
46628         * modules/gc-md4 (configure.ac): Likewise.
46629         * modules/gc-md5 (configure.ac): Likewise.
46630         * modules/gc-random (configure.ac): Likewise.
46631         * modules/gc-rijndael (configure.ac): Likewise.
46632         * modules/gc-sha1 (configure.ac): Likewise.
46633
46634 2007-01-08  Bruno Haible  <bruno@clisp.org>
46635
46636         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
46637         macro definition.
46638         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
46639         definition.
46640         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
46641         definition.
46642         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
46643         * modules/fcntl-safer (configure.ac): Likewise.
46644         * modules/fopen-safer (configure.ac): Likewise.
46645         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
46646         GNULIB_FWRITEERROR macro definition.
46647
46648 2007-01-08  Bruno Haible  <bruno@clisp.org>
46649
46650         * m4/gnulib-common.m4: New file.
46651         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
46652         (func_get_filelist): Add m4/gnulib-common.m4.
46653
46654 2007-01-08  Bruno Haible  <bruno@clisp.org>
46655
46656         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
46657         command.
46658
46659 2007-01-08  Jim Meyering  <jim@meyering.net>
46660
46661         Use a more robust test for a "can't happen" condition.
46662         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
46663         narrowed the st_size value.  Presuming the "can't happen" condition
46664         is true, that narrowing could conceivably convert an invalid st_size
46665         value into a valid one.  Instead, use a change based on Matthew
46666         Woehlke's original patch.
46667
46668         Slight readability improvement: use an assert-like macro
46669         in place of literal "abort ()" uses.
46670         * lib/fts.c (fts_assert): Define.
46671         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
46672         Use this macro instead of a bare 'abort'.
46673
46674 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
46675
46676         Don't worry about using IRIX 5.3's wctype.h broken definitions;
46677         simply work around them.
46678         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
46679         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
46680         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
46681         declaring.
46682         Don't bother to define as macros, since the standard doesn't require it.
46683         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
46684         longer worry about IRIX 5.3.
46685         (HAVE_WCTYPE_CTMP_BUG): Remove.
46686
46687 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46688
46689         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
46690         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
46691         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46692         Problems reported by Georg Schwarz for IRIX 5.3.
46693
46694         * gnulib-tool (autoconf_minversion): Take the maximum version number
46695         found, not the minimum.  Problem reported by James Youngman.
46696
46697 2007-01-03  Karl Berry  <karl@gnu.org>
46698
46699         * doc/error.texi: new file, explaining interaction with progname.
46700         * doc/gnulib.texi: include it.  Update copyright.
46701
46702 2007-01-03  Simon Josefsson  <simon@josefsson.org>
46703
46704         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
46705         AC_CANONICAL_HOST, to improve autobuild outputs.
46706
46707 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
46708             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46709
46710         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
46711         sockets, server sockets, and other file descriptors.  Count errors
46712         to compute the return value.  Reorder the code a bit to be easier
46713         to follow.  Don't set event bits that were not requested (except
46714         POLLERR and POLLHUP).
46715
46716 2007-01-01  Bruno Haible  <bruno@clisp.org>
46717
46718         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
46719
46720 2007-01-03  Jim Meyering  <jim@meyering.net>
46721
46722         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
46723
46724 2007-01-02  Bruno Haible  <bruno@clisp.org>
46725
46726         * modules/settime (Include): Require timespec.h.
46727         * modules/nanosleep (Include): Likewise.
46728
46729 2007-01-01  Bruno Haible  <bruno@clisp.org>
46730
46731         * gnulib-tool (func_emit_copyright_notice): Bump year.
46732         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
46733
46734 2007-01-01  Bruno Haible  <bruno@clisp.org>
46735
46736         Improve support for OpenBSD.
46737         * build-aux/config.rpath (libname_spec): Export.
46738         (library_names_spec): New variable. Export.
46739         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
46740         library_names_spec from the config.rpath output. Locate shared library
46741         through the name pattern in library_names_spec.
46742
46743 2007-01-01  Eric Blake  <ebb9@byu.net>
46744
46745         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
46746
46747 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
46748
46749         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
46750         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
46751         assume the C locale, and avoid an "eval" that could cause trouble.
46752         Problem with SORT reported by Bob Proulx.
46753
46754         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
46755         Define.  Trivial patch from Henning Nielsen Lund, originally
46756         sent to bug-grep@gnu.org today.
46757
46758 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46759
46760         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
46761         struct stat.  Problem reported by Henning Nielsen Lund.
46762         * lib/acl.c: Include acl.h first, to check interface.  Don't
46763         bother to include sys/types.h and sys/stat.h again.
46764
46765 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
46766
46767         Import the following change from libc; problem reported by
46768         Sven Verdoolaege.
46769
46770         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
46771
46772         [BZ #1373]
46773         * lib/argp.h: Remove __NTH for __argp_usage inline function.
46774
46775 2006-12-28  Jim Meyering  <jim@meyering.net>
46776
46777         * build-aux/announce-gen: Do not assume that the package
46778         builds any of tar.gz, tar.bz2, and .xdelta files.
46779         Suggestion from Simon Josefsson.
46780
46781 2006-12-28  Simon Josefsson  <simon@josefsson.org>
46782
46783         * modules/announce-gen: New file.
46784
46785 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46786
46787         * lib/mbchar.h: Just include <wctype.h>; the wctype module
46788         handles its gotchas now.
46789         * lib/mbswidth.c: Likewise.
46790         * lib/wcwidth.h: Likewise.
46791         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
46792         and iswcntrl; the wctype module does this stuff now.
46793         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46795         * modules/mbchar (Depends-on): Add wctype.
46796         * modules/mbswidth (Depends-on): Likewise.
46797         * modules/wcwidth (Depends-on): Likewise.
46798
46799 2006-12-27  Eric Blake  <ebb9@byu.net>
46800
46801         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
46802         module uses more than what <wctype.h> is required to provide.
46803
46804 2006-12-26  Eric Blake  <ebb9@byu.net>
46805
46806         * gnulib-tool (sed_extract_prog): Avoid space-tab.
46807
46808 2006-12-26  Eric Blake  <ebb9@byu.net>
46809
46810         * modules/absolute-header: New module.
46811         * modules/fcntl (Depends-on): Depend on it.
46812         * modules/inttypes (Depends-on): Likewise.
46813         * modules/stdint (Depends-on): Likewise.
46814         * modules/sys_stat (Depends-on): Likewise.
46815         * modules/wctype (Depends-on): Likewise.
46816         * MODULES.html.sh (Support for building libraries and
46817         executables): Document it.
46818
46819 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46820
46821         * gnulib-tool (SED): Remove, undoing previous change.
46822         The problem was that it broke coreutils on Solaris, because
46823         "sed --posix" leaked into a makefile.
46824         (sed): New alias, if 'alias' and GNU sed.
46825
46826 2006-12-24  Jim Meyering  <jim@meyering.net>
46827
46828         Work around an fchownat bug in glibc-2.4:
46829         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
46830         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
46831         in spite of the -P option.
46832         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
46833         New macros.
46834         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
46835         * modules/openat (Files): Add lib/fchownat.c.
46836         * lib/openat.c (fchownat): Don't define here.  Move to...
46837         * lib/fchownat.c: ...this new file.
46838
46839 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46840
46841         Fix bug reported by Bruno Haible in
46842         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
46843         where quotearg.c didn't compile on Mac OS X 10.2 because it
46844         lacks <wchar.h> and wint_t.
46845         * lib/wctype_.h (__wctype_wint_t): New type.
46846         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
46847         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
46848         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
46849         Arg is now of type __wctype_wint_t, not wint_t.
46850         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
46851         substitute HAVE_WINT_T.
46852         * modules/wctype (Files): Add m4/wint_t.m4.
46853         (wctype.h): Substitute HAVE_WINT_T.
46854
46855 2006-12-23  Bruno Haible  <bruno@clisp.org>
46856
46857         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
46858
46859 2006-12-23  Bruno Haible  <bruno@clisp.org>
46860
46861         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
46862         S_ISLNK.
46863         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
46864         mingw.
46865
46866 2006-12-22  Bruno Haible  <bruno@clisp.org>
46867
46868         * lib/copy-file.c: Include acl.h.
46869         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
46870         Close the file descriptors only after being done with copy_acl.
46871         * modules/copy-file (Depends-on): Add acl.
46872
46873 2006-12-22  Bruno Haible  <bruno@clisp.org>
46874
46875         * gnulib-tool (SED): New variable.
46876         Use $SED instead of sed everywhere.
46877
46878 2006-12-22  Bruno Haible  <bruno@clisp.org>
46879
46880         * modules/no-c++: New file.
46881         * m4/no-c++.m4: New file.
46882         * MODULES.html.sh (Support for building libraries and executables):
46883         Add no-c++.
46884
46885 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46886
46887         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46888         Include <limits.h>, and use its INT_MAX to rewrite the
46889         j loop so that it does not overflow 'int'.  Problem reported by
46890         Ralf Wildenhues in
46891         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
46892         Play it safe by shifting left by 1 rather than multiplying by 2,
46893         as GCC is less likely to optimize this away when the value
46894         is signed (when it assumes overflow leads to undefined behavior).
46895         Also, don't assume time_t uses two's complement.
46896
46897 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46898
46899         * MODULES.html.sh: New module wctype.
46900         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
46901         * lib/fnmatch.c: Don't bother to include <wchar.h> before
46902         <wctype.h>, since the new wctype module should fix this.
46903         * lib/quotearg.c: Include <wctype.h> unconditionally, since
46904         the wctype module should arrange for it.
46905         * lib/regex_internal.h: Likewise.
46906         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
46907         since the wctype module should handle this now.
46908         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
46909         * modules/fnmatch (Depends-on): Add wctype.
46910         * modules/quotearg (Depends-on): Likewise.
46911         * modules/regex (Depends-on): Likewise.
46912
46913 2006-12-19  Bruno Haible  <bruno@clisp.org>
46914
46915         * lib/strdup.h [C++]: Wrap definitions in extern "C".
46916         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
46917
46918 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46919
46920         * modules/savewd (Depends-on): Fix dependency on fcntl.
46921
46922 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46923
46924         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
46925         conforms to C99, rather than relying on the user's environment
46926         setting of STDINT_H.
46927
46928 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46929         and Eric Blake  <ebb9@byu.net>
46930
46931         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
46932         This is more consistent with the other defines here.
46933         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
46934         Port to z/OS.  Problem reported by Paul Gilmartin.
46935         Change local vars to use gl_ prefix rather than ac_.
46936         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
46937         with other defines.
46938         * modules/double-slash-root: New module.
46939         * modules/dirname (Files): Remove m4/double-slash-root.m4.
46940         (Depends-on): Add double-slash-root.
46941         * MODULES.html.sh (File system functions): Mention new module.
46942
46943 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
46944
46945         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
46946         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
46947         This is for the benefit of gzip, which doesn't do i18n.
46948
46949 2006-12-12  Jim Meyering  <jim@meyering.net>
46950
46951         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
46952         Reported by Andreas Schwab <schwab@suse.de>.
46953
46954 2006-12-12  Bruno Haible  <bruno@clisp.org>
46955
46956         Merge these changes.
46957         2006-09-05  Bruno Haible  <bruno@clisp.org>
46958         * lib/iconvme.c (iconv_string): No need to save and restore errno when
46959         iconv_alloc succeeded.
46960         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
46961         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
46962         test for " && dest " at the end - dest is always != NULL there. Call
46963         iconv with 4xNULL arguments initially, to reset the state. Call iconv
46964         with 2xNULL arguments, also to flush the state storage. Handle the
46965         IRIX iconv behaviour. Realloc the final result, to throw away unused
46966         memory.
46967
46968 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
46969
46970         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
46971         and fchmodat unconditionally, since glibc 2.4 has them.
46972         Problem reported by Arkadiusz Miskiewicz.
46973
46974 2006-12-10  Bruno Haible  <bruno@clisp.org>
46975
46976         * gnulib-tool (func_import): Show the include files only for those
46977         modules that are copied and specified.
46978         Reported by Karl Berry.
46979
46980 2006-12-08  Jim Meyering  <jim@meyering.net>
46981
46982         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
46983         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
46984
46985         * build-aux/announce-gen: Add two new options, both optional:
46986         --bootstrap-tools=TOOL_LIST
46987               a comma-separated list of tools, e.g.,
46988               autoconf,automake,bison,gnulib
46989         --gnulib-snapshot-date=DATE
46990               if gnulib is in the bootstrap tool list,
46991               then report this as the snapshot date.
46992               If not specified, use the current date/time.
46993               If you specify a date here, be sure it's UTC.
46994
46995 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46996
46997         * tests/test-argp-2.sh: Fix test to match actual output.
46998         (func_compare): Fix sed script to be portable.
46999
47000 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47001
47002         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47003         workaround for this case.  It is not autoconfigured now; offhand
47004         it's hard to see how to autoconfigure it.
47005
47006 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47007
47008         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47009         a directory that is about to be chowned.  Such a directory's
47010         initial file permissions should permit the owner only and this
47011         should not be changed until after the chown, since the group and
47012         other bits would be incorrect if they granted permission before
47013         the chown.
47014
47015         Fix porting problem for iswctype reported by Georg Schwarz in:
47016         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47017         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47018         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47019         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47020         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47021
47022 2006-12-03  Jim Meyering  <jim@meyering.net>
47023
47024         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47025         p->fts_statp may not yet be defined.
47026         (fts_read): Instead, set it in the caller, once p->fts_statp is
47027         sure to be defined, and corresponds to a top-level directory.
47028         This bug made du -x fail.  Here's the coreutils test case:
47029         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47030         Reported by Mike Frysinger.
47031
47032 2006-12-01  Jim Meyering  <jim@meyering.net>
47033
47034         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47035         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47036         Reported by Simon Josefsson.
47037
47038 2006-11-30  Jim Meyering  <jim@meyering.net>
47039
47040         * m4/warning.m4: Use the all-permissive copyright notice
47041         recommended by RMS (rather than LGPL).
47042         * m4/vararrays.m4: Likewise.
47043         * m4/flexmember.m4: Likewise.
47044
47045 2006-11-29  Bruno Haible  <bruno@clisp.org>
47046
47047         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47048         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47049         using +=.
47050         Reported by Simon Josefsson <simon@josefsson.org>.
47051
47052 2006-11-28  James Youngman <jay@gnu.org>
47053
47054         * README: Advise users that they might find the bug-gnulib@gnu.org
47055         and autotools-announce@gnu.org mailing lists useful.
47056
47057 2006-11-28  Bruno Haible  <bruno@clisp.org>
47058
47059         * m4/ptrdiff_max.m4: Remove file.
47060
47061 2006-11-21  Bruno Haible  <bruno@clisp.org>
47062
47063         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47064         _AC_COMPUTE_INT.
47065         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47066         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47067         _AC_COMPUTE_INT.
47068         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47069         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47070         _AC_COMPUTE_INT.
47071         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47072
47073 2006-11-28  Jim Meyering  <jim@meyering.net>
47074
47075         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47076         warning from "gcc -Wshadow" about shadowing the builtin.
47077
47078 2006-11-27  Bruno Haible  <bruno@clisp.org>
47079
47080         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47081         _AC_COMPUTE_INT.
47082         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47083
47084 2006-11-27  Bruno Haible  <bruno@clisp.org>
47085             Paul Eggert  <eggert@cs.ucla.edu>
47086
47087         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47088
47089 2006-11-26  Bruno Haible  <bruno@clisp.org>
47090
47091         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47092         noinst_LTLIBRARIES.
47093
47094 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47095             Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47098         if compiling with "gcc -ansi".
47099
47100 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47101
47102         Fix some incompatibilities with gcc -ansi -pedantic.
47103         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47104         if compiling pedantically with GCC, unless it's C99 or later.
47105         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47106         it mishandles gcc -ansi -pedantic as well.
47107         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47108         if gcc -pedantic.
47109         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47110         initializers for struct if -pedantic, unless it's C99 or later.
47111
47112 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47113
47114         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47115         Don't close an fd more than once. Identical atimes indicate
47116         success, not failure.
47117
47118 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47119
47120         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47121
47122 2006-11-23  Jim Meyering  <jim@meyering.net>
47123
47124         * build-aux/announce-gen: New file.  From coreutils.
47125
47126 2006-11-22  Jim Meyering  <jim@meyering.net>
47127
47128         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47129         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47130         (fts_read): Use a temporary to narrow the overused st_size member
47131         before using it in a switch statement.  Reported by Matthew Woehlke.
47132
47133         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47134         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47135
47136 2006-11-20  Bruno Haible  <bruno@clisp.org>
47137
47138         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47139         changequote instead of pairs of brackets.
47140         Reported by Andreas Schwab <schwab@suse.de>.
47141
47142 2006-11-21  Jim Meyering  <jim@meyering.net>
47143
47144         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47145         so as to remain compatible with older compilers.
47146         Patch from Michael Deutschmann.
47147
47148 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47149
47150         * MODULES.html.sh (File system functions): Add openat.
47151
47152         * lib/openat.h (rpl_fstatat): New macro, if
47153         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47154         (fstatat): Define to rpl_fstatat under the same conditions,
47155         unless COMPILING_FSTATAT.
47156         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47157         seems to have the bug.
47158         * lib/fstatat.c: New file.
47159         * modules/openat (Files): Add it.
47160
47161 2006-11-20  Bruno Haible  <bruno@clisp.org>
47162
47163         * Makefile: New file.
47164
47165 2006-11-20  Jim Meyering  <jim@meyering.net>
47166
47167         The beginnings of syntax-related checks for gnulib.
47168         * lib/Makefile: New file.
47169         * lib/t-idcache: New script.  Ensure that the two halves of
47170         idcache.c stay in sync.
47171
47172         * lib/idcache.c: Adjust comments in user- and group- portions to
47173         be more accurate, and to be consistent with one another.
47174
47175 2006-11-20  Jim Meyering  <jim@meyering.net>
47176
47177         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47178         continue using the flexible array member (thus, this module performs
47179         half as many malloc calls), with the addition that...
47180         (getgroup, getuser): Consistently record a non-match via an empty
47181         "name" string, and map an empty string match to a NULL return value.
47182         * modules/idcache (Depends-on): Re-add flexmember.
47183
47184         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47185         (getuidbyname, getgroup, getgidbyname): Likewise.
47186
47187         Use cleaner syntax: NULL rather than 0.
47188         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47189
47190 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47191
47192         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47193         It mishandled the case where the group was missing.
47194         Problem reported by Greg Schafer.
47195         * modules/idcache: Likewise.
47196
47197 2006-11-18  Jim Meyering  <jim@meyering.net>
47198
47199         * check-module (%exempt_header): Add exception for some
47200         conditionally-included headers.
47201
47202         * modules/i-ring (Depends-on): Add verify.
47203         (License): Change to LGPL.
47204
47205 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47206
47207         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47208         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47209         and inttostr.h.  Use snprintf rather than uinttostr, so that
47210         LGPLed code doesn't depend on GPLed.
47211
47212 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47213
47214         * modules/inline (License): Change from GPL to LGPL.
47215
47216 2006-11-17  Jim Meyering  <jim@meyering.net>
47217
47218         * modules/d-type (License): Switch to LGPL.
47219
47220 2006-11-15  Bruno Haible  <bruno@clisp.org>
47221
47222         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47223
47224 2006-11-15  Eric Blake  <ebb9@byu.net>
47225
47226         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47227         the module dependency.
47228
47229 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47230             Bruno Haible  <bruno@clisp.org>
47231
47232         * gnulib-tool (func_create_testdir): Add license consistency check.
47233
47234 2006-11-15  Eric Blake  <ebb9@byu.net>
47235
47236         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47237         random "(cached)" in configure output.
47238
47239 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47240
47241         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47242         test for conforming inttypes.h is both announced and cached.
47243
47244         * MODULES.html.sh (seen_modules, seen_files): New variables.
47245         (func_module): Rewrite to use a few less gnulib-tool and sed
47246         invocations.  Avoid a couple of quadratic algorithms for ...
47247         (missed_modules, missed_files): ... these, with ...
47248         (func_append, func_tmpdir): ... these new functions, from
47249         gnulib-tool.  Analogously, install traps for cleanup.
47250
47251         * tests/test-gc.c (main): Remove unused variables.
47252         * tests/test-read-file.c: Include stdlib.h, for 'free'.
47253
47254 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
47255
47256         * modules/inttostr (License): Change to LGPL.
47257
47258 2006-11-14  Eric Blake  <ebb9@byu.net>
47259
47260         * modules/tempname (License): Change to LGPL.
47261
47262 2006-11-14  Eric Blake  <ebb9@byu.net>
47263
47264         * doc/functions.texi (Function Portability): *printf functions on
47265         Cygwin now understand all POSIX size specifiers.
47266
47267 2006-11-14  Bruno Haible  <bruno@clisp.org>
47268
47269         * modules/c-ctype (License): Change to LGPL.
47270
47271 2006-11-12  Bruno Haible  <bruno@clisp.org>
47272
47273         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47274         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
47275         for GNOME libraries, for which the include files are installed in
47276         subdirectories of $prefix/include.
47277
47278 2006-11-12  Bruno Haible  <bruno@clisp.org>
47279
47280         * m4/lib-link.m4: Require at least autoconf-2.54.
47281         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
47282         name to underscores for the --with option.
47283
47284 2006-11-13  Bruno Haible  <bruno@clisp.org>
47285
47286         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47287         the tests directory.
47288         Reported by Ralf Wildenhues.
47289
47290 2006-11-13  Bruno Haible  <bruno@clisp.org>
47291
47292         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47293         (func_emit_initmacro_end): Undo the override here.
47294         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47295         Works around the famous automake error in coreutils.
47296
47297 2006-11-13  Eric Blake  <ebb9@byu.net>
47298
47299         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47300         element, not its node.
47301
47302 2006-11-12  Bruno Haible  <bruno@clisp.org>
47303
47304         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47305         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47306
47307 2006-11-12  Bruno Haible  <bruno@clisp.org>
47308
47309         * gnulib-tool: New option --local-symlink.
47310         (func_usage): Document it.
47311         (lsymbolic): New variable.
47312         (func_import, func_create_testdir): If --symlink was not specified,
47313         test whether --local-symlink was specified and the file comes from
47314         the local_gnulib_dir.
47315
47316 2006-11-12  Bruno Haible  <bruno@clisp.org>
47317
47318         * gnulib-tool (func_ln): New function.
47319         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47320
47321 2006-11-12  Bruno Haible  <bruno@clisp.org>
47322
47323         Finish support for source files in subdirectories.
47324         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47325         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47326         AUTOMAKE_OPTIONS.
47327         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47328
47329 2006-11-12  Bruno Haible  <bruno@clisp.org>
47330
47331         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47332         EXTRA_lib_SOURCES augmentation.
47333         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47334
47335 2006-11-12  Jim Meyering  <jim@meyering.net>
47336
47337         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47338         file descriptors.  This also averts a failure on systems with
47339         native openat support when a traversed directory lacks "x" access.
47340         * lib/fts_.h: Include "i-ring.h"
47341         (struct FTS) [fts_fd_ring]: New member.
47342         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47343         (FCHDIR): Add parentheses.
47344         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47345         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47346         When descending, rather than simply closing the previous
47347         fts_cwd_fd value, push that file descriptor onto the ring.
47348         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47349         (fts_open): Initialize the new fd_ring member.
47350         (fts_close): Clear the ring.
47351         (fts_safe_changedir): When possible, use our new fd_ring to skip
47352         the diropen and fstat and dev/ino comparison that would normally
47353         accompany a virtual `chdir ("..")'.
47354
47355         * modules/fts (Depends-on): Add i-ring.
47356         * modules/i-ring: New module.
47357         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47358         * m4/i-ring.m4: New file.
47359
47360 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47361
47362         * gnulib-tool (func_create_testdir): Fix replacement of
47363         `build-aux' in configure.ac.  Run autotools in gltests
47364         subdirectory.
47365         (func_create_testdir, func_create_megatestdir, test): There is
47366         no need for '--force' in most autotool invocations in a new
47367         tree.  Actually fail the whole test if any of the tools, or the
47368         configure or make stages fail.
47369
47370         Sync from Automake.
47371         * build-aux/gnupload: Revert last change.  Add pointer to upload
47372         instructions of the GNU Maintenance Instructions.
47373         Suggestion by Karl Berry.
47374
47375 2006-11-10  Jim Meyering  <jim@meyering.net>
47376
47377         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47378
47379 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47380
47381         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47382         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47383         (bind_textdomain_codeset) [! ENABLE_NLS]:
47384         Evaluate all the arguments.  That way, callers get compatible behavior
47385         if the arguments have side effects.  Also, it avoids some GCC
47386         diagnostics in some cases; Joel E. Denny reported problems when Bison
47387         was configured with --enable-gcc-warnigs.
47388
47389 2006-11-10  Jim Meyering  <jim@meyering.net>
47390
47391         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47392         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47393         account.
47394
47395 2006-11-10  Jim Meyering  <jim@meyering.net>
47396
47397         * modules/inline: New file/module.
47398         * modules/xalloc (Files): Remove m4/inline.m4.
47399         (Depends-on): Add inline, instead.
47400         * modules/oset: Likewise.
47401         * modules/list: Likewise.
47402
47403 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47404
47405         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47406         Problem reported by Matthew Woehlke.
47407
47408 2006-11-09  Bruno Haible  <bruno@clisp.org>
47409
47410         * lib/tempname.c (gen_tempname): Remove variant that invokes
47411         __gen_tempname.
47412         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
47413         __gen_tempname.
47414
47415 2006-11-08  Bruno Haible  <bruno@clisp.org>
47416
47417         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
47418         to 'yes' instead of 'cross-compiling'.
47419
47420 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
47421
47422         * lib/quotearg.h (quotearg_free): New decl.
47423         * lib/quotearg.c (quotearg_free): New function.
47424         (slot0, nslots, slotvec0, slotvec):
47425         Now file-scope so that quotearg_free can get at them.
47426
47427 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47428
47429         Sync from Automake.
47430         * build-aux/gnupload: Add missing 'gnu' to example URL.
47431         Report by Karl Berry.
47432
47433 2006-11-08  Bruno Haible  <bruno@clisp.org>
47434
47435         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
47436         Suggested by Paul Eggert.
47437
47438 2006-11-08  Jim Meyering  <jim@meyering.net>
47439
47440         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
47441         It's already included if !_LIBC.
47442         (fts_safe_changedir): Add a comment.
47443
47444 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47445
47446         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
47447         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
47448         Matthew Woehlke.
47449
47450         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
47451         definitions up, to avoid colliding with change below.
47452         (static_inline) [HAVE_INLINE]: New macro.
47453         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47454         Provide extern decls when !HAVE_INLINE.  Do not define unless
47455         static_inline is defined, either by us or by xmalloc.c.  Use
47456         static_inline rather than static inline.
47457         (XCALLOC): Optimize sizeof(T) = 1 case.
47458         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
47459
47460 2006-11-07  Bruno Haible  <bruno@clisp.org>
47461
47462         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
47463         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
47464         AC_C_INLINE.
47465         * modules/xalloc (Files): Add m4/inline.m4.
47466
47467 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47468
47469         * README: Fix typo.
47470         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
47471         (Miscellanous Notes): ...from this.
47472
47473 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47474
47475         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
47476         Mention that offsetof should be used instead of sizeof.
47477         From Bruno Haible.
47478
47479 2006-11-07  Bruno Haible  <bruno@clisp.org>
47480
47481         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
47482
47483 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47484
47485         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47486         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
47487         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47488         (gl_tree_add_before, gl_tree_add_after):
47489         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
47490         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
47491         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47492         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
47493         (gl_linked_add_after, gl_linked_add_at): Likewise.
47494         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
47495         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47496         (gl_tree_add_before, gl_tree_add_after): Likewise.
47497         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
47498         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
47499         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
47500
47501 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47502
47503         * lib/gl_oset.h: Use C comment style, not C++ comment style.
47504
47505 2006-11-06  Bruno Haible  <bruno@clisp.org>
47506
47507         * m4/inline.m4: New file.
47508         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
47509         * modules/list (Files): Add m4/inline.m4.
47510         * modules/oset (Files): Likewise.
47511
47512 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47513
47514         * lib/idcache.c: Include <stddef.h>, for offsetof.
47515         (struct userid.name): Change from char * to a flexible array member.
47516         All uses changed.
47517         * modules/idcache (Depends-on): Add flexmember.
47518
47519         * MODULES.html.sh (Core language properties): New module flexmember.
47520         * modules/flexmember, m4/flexmember.m4: New files.
47521
47522         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
47523         inline functions that are identical with the old xnmalloc_inline,
47524         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
47525         that we can avoid some unnecessary integer multiplications and
47526         divisions in the common case where the element size is known at
47527         compile time.
47528         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
47529         needed.
47530         (xnboundedmalloc): Remove.
47531         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
47532         arguments, for consistency with rest of this header.
47533         (xcharalloc): Rewrite using XNMALLOC.
47534         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
47535         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
47536         versions have been moved to lib/xalloc.h and renamed to be the
47537         non-*_inline versions.
47538         (xmalloc, xrealloc): Implement without reference to the xnmalloc
47539         and xnrealloc functions, since those functions are now inline and
47540         now call us.
47541         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
47542         renaming described above.
47543         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
47544         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
47545         captures the dependency in AC_C_INLINE.
47546
47547         New module canonicalize-lgpl, proposed by Charles Wilson in
47548         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
47549         with a few small changes afterwards.
47550         * MODULES.html.sh (File system functions): New module
47551         canonicalize-lgpl.
47552         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
47553         and canonicalize_file_name.
47554         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
47555         * modules/canonicalize-lgpl: New files.
47556
47557 2006-11-05  Bruno Haible  <bruno@clisp.org>
47558
47559         * gnulib-tool (func_import, func_create_testdir): Create directories
47560         also for files in subdirectories of lib/.
47561
47562 2006-11-05  Bruno Haible  <bruno@clisp.org>
47563
47564         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
47565         ANSI C compliant.
47566
47567 2006-11-03  Bruno Haible  <bruno@clisp.org>
47568
47569         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47570         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
47571         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
47572         (xnboundedmalloc): New inline function.
47573         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
47574         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
47575         xmalloc.
47576         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
47577         xmalloc.
47578         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
47579         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
47580         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
47581         xmalloc.
47582         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47583         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
47584         xmalloc.
47585         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
47586         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47587         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
47588         xmalloc.
47589         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47590         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
47591         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47592         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
47593         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
47594         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
47595         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
47596
47597 2006-11-03  Bruno Haible  <bruno@clisp.org>
47598
47599         * lib/c-ctype.h [C++]: Define functions without name mangling.
47600         * lib/fwriteerror.h [C++]: Likewise.
47601         * lib/gcd.h [C++]: Likewise.
47602         * lib/linebreak.h [C++]: Likewise.
47603
47604 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
47605
47606         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
47607         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
47608         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
47609         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47610         Check for functions and headers just once.
47611         Check for declaration of canonicalize_file_name.
47612         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
47613
47614 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47615
47616         * gnulib-tool (func_import): Fix typo in actioncmd.
47617
47618 2006-11-02  Bruno Haible  <bruno@clisp.org>
47619
47620         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
47621         newline sequence in the Makefile.am snippet as a space, like "make"
47622         does.
47623         Reported by Roger Persson <perrog@gmail.com>.
47624
47625 2006-11-01  Bruno Haible  <bruno@clisp.org>
47626
47627         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
47628         already declared in <string.h>.
47629         * lib/strcase.h (strncasecmp): Don't declare it if yes.
47630
47631 2006-11-01  Bruno Haible  <bruno@clisp.org>
47632
47633         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
47634         * lib/strcase.h: Include <string.h>.
47635         (strcasecmp): Define to rpl_strcasecmp here.
47636
47637 2006-11-01  Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
47640
47641 2006-11-01  Eric Blake  <ebb9@byu.net>
47642
47643         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
47644
47645         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
47646
47647 2006-10-29  Bruno Haible  <bruno@clisp.org>
47648
47649         Make it compile in C++ mode.
47650         * lib/full-write.c (full_rw): Add a cast.
47651
47652 2006-11-01  Bruno Haible  <bruno@clisp.org>
47653
47654         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
47655         be POSIX compliant.
47656         Reported by Roger Persson <perrog@gmail.com>.
47657
47658 2006-11-01  Eric Blake  <ebb9@byu.net>
47659
47660         * lib/getopt_.h: Fix comments.
47661
47662 2006-10-31  Eric Blake  <ebb9@byu.net>
47663
47664         * modules/tmpdir (Depends-on): Add sys_stat.
47665         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
47666         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
47667         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
47668         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
47669         tempname.
47670
47671 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
47672
47673         Avoid some C++ diagnostics reported by Bruno Haible.
47674         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
47675         xmalloc.
47676         (quotearg_alloc): Use xcharalloc rather than xmalloc.
47677         (struct slotvec): Move to top level.
47678         (quotearg_n_options): Rewrite to avoid xmalloc.
47679         * lib/xalloc.h (xcharalloc): New function.
47680         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
47681         [defined __cplusplus]: Add function template that provides result
47682         type propagation.  This part of the change is from Bruno Haible.
47683
47684 2006-10-29  Bruno Haible  <bruno@clisp.org>
47685
47686         Make it compile in C++ mode.
47687         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
47688         * lib/strnlen1.c (strnlen1): Cast memchr result.
47689         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
47690         * lib/clean-temp.c (string_equals, string_hash): Add casts.
47691         (create_temp_dir): Rename local variable 'template'.
47692         (compile_csharp_using_sscli): Add cast.
47693         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
47694         * lib/findprog.c (find_in_path): Likewise.
47695         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
47696         * lib/wait-process.c (register_slave_subprocess): Likewise.
47697
47698 2006-10-22  Bruno Haible  <bruno@clisp.org>
47699
47700         * modules/tsearch: New file.
47701         * lib/tsearch.h: New file.
47702         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
47703         * m4/tsearch.m4: New file.
47704         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
47705
47706 2006-10-29  Eric Blake  <ebb9@byu.net>
47707
47708         * lib/arcfour.c: Assume config.h.
47709         * lib/arctwo.c: Likewise.
47710         * lib/base64.c: Likewise.
47711         * lib/check-version.c: Likewise.
47712         * lib/crc.c: Likewise.
47713         * lib/des.c: Likewise.
47714         * lib/gc-gnulib.c: Likewise.
47715         * lib/gc-libgcrypt.c: Likewise.
47716         * lib/gc-pbkdf2-sha1.c: Likewise.
47717         * lib/getaddrinfo.c: Likewise.
47718         * lib/getdelim.c: Likewise.
47719         * lib/getline.c: Likewise.
47720         * lib/hmac-md5.c: Likewise.
47721         * lib/hmac-sha1.c: Likewise.
47722         * lib/iconvme.c: Likewise.
47723         * lib/md2.c: Likewise.
47724         * lib/md4.c: Likewise.
47725         * lib/memxor.c: Likewise.
47726         * lib/read-file.c: Likewise.
47727         * lib/readline.c: Likewise.
47728         * lib/rijndael-alg-fst.c: Likewise.
47729         * lib/rijndael-api-fst.c: Likewise.
47730         * lib/xgetdomainname.c: Likewise.
47731
47732 2006-10-28  Eric Blake  <ebb9@byu.net>
47733
47734         * lib/xstrndup.c: Assume config.h.
47735
47736 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47737
47738         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
47739         stat-macros.h is now for our own macros, whereas stat_h is for
47740         macros in the <sys/stat.h> name space.
47741         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
47742         (STAT_MACROS_H): Remove.
47743         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
47744         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
47745         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
47746         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
47747         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
47748         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
47749         Move these macros to ...
47750         * lib/stat_.h: here.  Don't include stat-macros.h.
47751         * lib/canonicalize.c: Don't include stat-macros.h.
47752         * lib/chown.c: Likewise.
47753         * lib/euidaccess.c: Likewise.
47754         * lib/file-type.c: Likewise.
47755         * lib/filemode.c: Likewise.
47756         * lib/glob.c: Likewise.
47757         * lib/isapipe.c: Likewise.
47758         * lib/lchown.c: Likewise.
47759         * lib/lstat.c: Likewise.
47760         * lib/mkdir-p.c: Likewise.
47761         * lib/rmdir.c: Likewise.
47762         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
47763         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
47764         unless mkdir isn't declared, to speed up 'configure'.
47765         Always create sys/stat.h, since it's unlikely any real sys/stat.h
47766         would define all the S_* symbols.
47767         * modules/canonicalize (Depends-on):
47768         Depend on sys_stat, not stat-macros.
47769         * modules/chown: Likewise.
47770         * modules/euidaccess: Likewise.
47771         * modules/filemode: Likewise.
47772         * modules/file-type: Likewise.
47773         * modules/glob: Likewise.
47774         * modules/isapipe: Likewise.
47775         * modules/lchown: Likewise.
47776         * modules/lstat: Likewise.
47777         * modules/mkancesdirs: Likewise.
47778         * modules/rmdir: Likewise.
47779         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
47780         * modules/modechange: Likewise.
47781         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
47782         (configure.ac): Remove gl_STAT_MACROS.
47783         * modules/sys_stat (Depends-on): Remove stat-macros.
47784
47785 2006-10-27  Bruno Haible  <bruno@clisp.org>
47786
47787         * m4/signed.m4: Remove file.
47788         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
47789         invocation.
47790         * modules/vasnprintf (Files): Remove m4/signed.m4.
47791
47792 2006-10-27  Bruno Haible  <bruno@clisp.org>
47793
47794         Update to GNU gettext 0.16.
47795         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
47796         m4/inttypes-h.m4, m4/signed.m4.
47797         * m4/gettext.m4: Update to GNU gettext 0.16.
47798         * m4/intl.m4: New file, from GNU gettext.
47799         * m4/intldir.m4: New file, from GNU gettext.
47800         * config/srclist.txt: Update
47801
47802 2006-10-27  Eric Blake  <ebb9@byu.net>
47803
47804         * MODULES.html.sh: Document tempname.
47805         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
47806         dependencies.
47807         (Files): Move lib/tempname.c...
47808         * modules/tempname: ...to this new module.
47809         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
47810         (gl_PREREQ_TEMPNAME): Move...
47811         * m4/tempname.m4: ...to this new file.
47812         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
47813         * modules/sys_stat (Depends-on): Add stat-macros.
47814         * lib/stat_.h (includes): Pick up stat macros.
47815         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
47816         if stat macros are broken.
47817         * lib/tempname.c (includes): No need to include "stat-macros.h".
47818         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
47819         (direxists, __path_search) [!_LIBC]: Don't compile these in
47820         gnulib; the tmpdir module covers that.
47821         * lib/tempname.h: New file.
47822
47823 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47824
47825         * COPYING: Explain how gnulib-tool converts licence headers.
47826         Almost all wording by Eric Blake.
47827
47828 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
47829
47830         * lib/mbchar.h (is_basic_table): Make read-only.
47831         * lib/mbchar.c (is_basic_table): Likewise.
47832         Reported by John Darrington.
47833
47834 2006-10-25  Bruno Haible  <bruno@clisp.org>
47835
47836         * lib/progname.h (set_program_name): Undefine before defining.
47837
47838 2006-10-25  Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
47841         false for non-gcc C++ compilers.
47842         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47843
47844 2006-10-24  Bruno Haible  <bruno@clisp.org>
47845
47846         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
47847         iconv implementations like Irix iconv.
47848
47849 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47850
47851         * modules/vararrays: New file.
47852         * m4/vararrays.m4: New file, taken from diffutils.
47853         * MODULES.html.sh: New module vararrays.
47854
47855 2006-10-24  Karl Berry  <karl@gnu.org>
47856
47857         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
47858         Don't call GNU Unix.
47859
47860 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47861
47862         * users.txt: Add Libtool.
47863
47864         Sync from Libtool:
47865
47866         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47867
47868         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
47869         to gnulib's policy of including config.h unconditionally.
47870
47871 2006-10-24  Bruno Haible  <bruno@clisp.org>
47872
47873         * modules/wcwidth (Files): Add m4/wint_t.m4.
47874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
47875         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
47876
47877 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47878
47879         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
47880         to pacify GCC with some -W flags enabled.  Problem reported by
47881         Bruno Haible.
47882
47883 2006-10-24  Jim Meyering  <jim@meyering.net>
47884
47885         * MODULES.html.sh: Remove uinttostr.  It's not a module.
47886         Reported by Karl Berry.
47887
47888 2006-10-23  Bruno Haible  <bruno@clisp.org>
47889
47890         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
47891
47892 2006-10-24  Bruno Haible  <bruno@clisp.org>
47893
47894         * lib/gl_list.h: Use C comment style, not C++ comment style.
47895
47896 2006-10-23  Eric Blake  <ebb9@byu.net>
47897
47898         * lib/getaddrinfo.c (includes): Add missing include.
47899
47900 2006-10-23  Bruno Haible  <bruno@clisp.org>
47901             Paul Eggert  <eggert@cs.ucla.edu>
47902
47903         Ability to rename obstack_free.
47904         * lib/obstack.h (__obstack_free): New macro. Declare instead of
47905         obstack_free.
47906         (obstack_free): Invoke the __obstack_free macro.
47907         * lib/obstack.c (obstack_free): Use __obstack_free macro.
47908
47909 2006-10-23  Bruno Haible  <bruno@clisp.org>
47910             Paul Eggert  <eggert@cs.ucla.edu>
47911
47912         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
47913         __argc, __argv from the declaration. (They are defined as macros on
47914         mingw.)
47915
47916 2006-10-22  Bruno Haible  <bruno@clisp.org>
47917
47918         * doc/gnulib-intro.texi: New file.
47919         * doc/gnulib.texi: Include it.
47920
47921 2006-10-21  Bruno Haible  <bruno@clisp.org>
47922
47923         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
47924         "Introduction", "Miscellanous Notes", "Particular Modules".
47925
47926 2006-10-21  Bruno Haible  <bruno@clisp.org>
47927
47928         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47929         Change mostlyclean-local rule to avoid sh syntax error from bash
47930         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
47931
47932 2006-10-23  Jim Meyering  <jim@meyering.net>
47933
47934         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
47935         in place of snprintf.
47936
47937         * modules/inttostr (Files): Add lib/uinttostr.c.
47938         * lib/uinttostr.c (inttostr): New file/function.
47939         * lib/inttostr.h (uinttostr): Declare.
47940         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
47941         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47942         Add uinttostr.
47943         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
47944
47945 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
47946
47947         * lib/canonicalize.c (ELOOP): Define if not already defined.
47948         Problem reported by Bruno Haible in
47949         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
47950
47951 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
47952
47953         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
47954         Problem reported by Perry Smith and Ville Laurikari.
47955
47956         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
47957         uses.
47958
47959 2006-10-19  Bruno Haible  <bruno@clisp.org>
47960
47961         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
47962         for mingw.
47963
47964 2006-10-19  Bruno Haible  <bruno@clisp.org>
47965
47966         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
47967         Needed for mingw.
47968
47969 2006-10-19  Bruno Haible  <bruno@clisp.org>
47970
47971         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
47972
47973 2006-10-19  Bruno Haible  <bruno@clisp.org>
47974
47975         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
47976         it.
47977
47978 2006-10-19  Bruno Haible  <bruno@clisp.org>
47979
47980         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
47981         invocation.
47982
47983 2006-10-19  Bruno Haible  <bruno@clisp.org>
47984
47985         * gnulib-tool (func_create_testdir): Don't include ftruncate and
47986         mountlist by default.
47987
47988 2006-10-16  Bruno Haible  <bruno@clisp.org>
47989
47990         * lib/c-strstr.c: Include c-strstr.h.
47991
47992 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47993
47994         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
47995         in a slash.
47996
47997 2006-10-18  Bruno Haible  <bruno@clisp.org>
47998
47999         * lib/lock.h [C++]: Wrap definitions in extern "C".
48000
48001 2006-10-18  Bruno Haible  <bruno@clisp.org>
48002
48003         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48004         gl_LIBOBJS list.
48005
48006 2006-10-18  Bruno Haible  <bruno@clisp.org>
48007
48008         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48009
48010 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48011
48012         * lib/xstrtol.h: Include gettext.h.
48013         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48014         Problem reported by Eric Blake.
48015         * modules/xstrtol (Depends-on): Add gettext-h.
48016
48017 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48018
48019         * lib/strftime.c (advance): New macro.
48020         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48021         incomplete type, so you can't add 0 to it.  Problem and patch
48022         reported by Eelco Dolstra for dietlibc.
48023
48024 2006-10-18  Jim Meyering  <jim@meyering.net>
48025
48026         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48027         type for a local, and rename it: s/up/user_proc/.
48028
48029 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48030
48031         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48032         READ_UTMP_USER_PROCESS.
48033         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48034
48035 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48036
48037         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48038         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48039
48040 2006-10-17  Eric Blake  <ebb9@byu.net>
48041
48042         * lib/sigprocmask.c (sigprocmask): Fix typo.
48043
48044         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48045
48046         * modules/clean-temp (Makefile.am): Don't add to make output...
48047         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48048         config.h.
48049
48050 2006-10-17  Bruno Haible  <bruno@clisp.org>
48051
48052         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48053         differently if DEFAULT_TEXT_DOMAIN is set.
48054
48055 2006-10-16  Bruno Haible  <bruno@clisp.org>
48056
48057         * lib/clean-temp.c: Include fwriteerror.h.
48058
48059 2006-10-16  Bruno Haible  <bruno@clisp.org>
48060
48061         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48062
48063 2006-10-16  Bruno Haible  <bruno@clisp.org>
48064
48065         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48066         * lib/sigprocmask.h: Include <sys/types.h>.
48067         (sigset_t): Use the system's definition if present.
48068
48069 2006-10-17  Eric Blake  <ebb9@byu.net>
48070
48071         * lib/xvasprintf.c (includes): Assume config.h.
48072         * lib/xasprintf.c (includes): Likewise.
48073
48074 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48075
48076         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48077         at least as wide as intmax_t.
48078
48079 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48080
48081         (Imported from Automake.)
48082         * build-aux/gnupload: Update to version 1.1 of directive file.
48083
48084 2006-10-16  Eric Blake  <ebb9@byu.net>
48085
48086         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48087         match Automake 1.10a.
48088
48089 2006-10-14  Bruno Haible  <bruno@clisp.org>
48090
48091         * modules/sigprocmask: New file.
48092         * lib/sigprocmask.h: New file.
48093         * lib/sigprocmask.c: New file.
48094         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48095         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48096         request sigprocmask.o.
48097         (gl_PREREQ_SIGPROCMASK): New macro.
48098         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48099         (Depends-on): Add sigprocmask.
48100         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48101         gt_SIGNALBLOCKING. Test for 'raise' only once.
48102         * lib/fatal-signal.c: Include sigprocmask.h.
48103         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48104         unblock_fatal_signals): Define always.
48105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48106         sigprocmask.
48107
48108 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48109
48110         Sync from Automake.
48111         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48112         which incorrectly sets the mode of an existing destination
48113         directory.  In some cases the unpatched install-sh could do the
48114         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48115         system.  We hope this is rare in practice, but it's clearly worth
48116         fixing.  Problem reported by Alex Unleashed in
48117         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48118         Also, don't bother to check for -m bugs unless we're using -m;
48119         suggested by Stepan Kasal.
48120
48121 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48122
48123         Sync from Automake.
48124         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48125         `-c' flag, so they appear at the same position as in %FASTDEP%
48126         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48127         which ignores unknown options only after the first non-option.
48128         Bug report against M4 by Nelson H. F. Beebe.
48129
48130 2006-10-13  Jim Meyering  <jim@meyering.net>
48131
48132         Fix a bug in yesterday's change.
48133         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48134         p->fts_statp->st_dev would be used uninitialized.
48135         Ensures that we always call fts_stat on the very first entry.
48136         Miklos Szeredi reported that find -xdev stopped working.
48137
48138 2006-10-12  Bruno Haible  <bruno@clisp.org>
48139
48140         * gnulib-tool (func_get_automake_snippet): Append an automatically
48141         computed EXTRA_DIST augmentation.
48142         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48143         * modules/alloca-opt (Makefile.am): Likewise.
48144         * modules/allocsa (Makefile.am): Likewise.
48145         * modules/arcfour (Makefile.am): Likewise.
48146         * modules/arctwo (Makefile.am): Likewise.
48147         * modules/argmatch (Makefile.am): Likewise.
48148         * modules/argz (Makefile.am): Likewise.
48149         * modules/atexit (Makefile.am): Likewise.
48150         * modules/backupfile (Makefile.am): Likewise.
48151         * modules/byteswap (Makefile.am): Likewise.
48152         * modules/c-strtod (Makefile.am): Likewise.
48153         * modules/c-strtold (Makefile.am): Likewise.
48154         * modules/calloc (Makefile.am): Likewise.
48155         * modules/canon-host (Makefile.am): Likewise.
48156         * modules/canonicalize (Makefile.am): Likewise.
48157         * modules/chdir-long (Makefile.am): Likewise.
48158         * modules/chdir-safer (Makefile.am): Likewise.
48159         * modules/check-version (Makefile.am): Likewise.
48160         * modules/chown (Makefile.am): Likewise.
48161         * modules/cloexec (Makefile.am): Likewise.
48162         * modules/close-stream (Makefile.am): Likewise.
48163         * modules/closeout (Makefile.am): Likewise.
48164         * modules/crc (Makefile.am): Likewise.
48165         * modules/csharpexec (Makefile.am): Likewise.
48166         * modules/cycle-check (Makefile.am): Likewise.
48167         * modules/des (Makefile.am): Likewise.
48168         * modules/dev-ino (Makefile.am): Likewise.
48169         * modules/dirfd (Makefile.am): Likewise.
48170         * modules/dirname (Makefile.am): Likewise.
48171         * modules/dup2 (Makefile.am): Likewise.
48172         * modules/eealloc (Makefile.am): Likewise.
48173         * modules/error (Makefile.am): Likewise.
48174         * modules/euidaccess (Makefile.am): Likewise.
48175         * modules/exclude (Makefile.am): Likewise.
48176         * modules/exitfail (Makefile.am): Likewise.
48177         * modules/fcntl-safer (Makefile.am): Likewise.
48178         * modules/fcntl (Makefile.am): Likewise.
48179         * modules/file-type (Makefile.am): Likewise.
48180         * modules/fileblocks (Makefile.am): Likewise.
48181         * modules/filemode (Makefile.am): Likewise.
48182         * modules/filenamecat (Makefile.am): Likewise.
48183         * modules/fnmatch (Makefile.am): Likewise.
48184         * modules/fopen-safer (Makefile.am): Likewise.
48185         * modules/fpending (Makefile.am): Likewise.
48186         * modules/fprintftime (Makefile.am): Likewise.
48187         * modules/free (Makefile.am): Likewise.
48188         * modules/fsusage (Makefile.am): Likewise.
48189         * modules/ftruncate (Makefile.am): Likewise.
48190         * modules/fts (Makefile.am): Likewise.
48191         * modules/gc-arcfour (Makefile.am): Likewise.
48192         * modules/gc-des (Makefile.am): Likewise.
48193         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48194         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48195         * modules/gc-md4 (Makefile.am): Likewise.
48196         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48197         * modules/gc-sha1 (Makefile.am): Likewise.
48198         * modules/gc (Makefile.am): Likewise.
48199         * modules/getaddrinfo (Makefile.am): Likewise.
48200         * modules/getcwd (Makefile.am): Likewise.
48201         * modules/getdelim (Makefile.am): Likewise.
48202         * modules/getdomainname (Makefile.am): Likewise.
48203         * modules/getgroups (Makefile.am): Likewise.
48204         * modules/gethostname (Makefile.am): Likewise.
48205         * modules/gethrxtime (Makefile.am): Likewise.
48206         * modules/getline (Makefile.am): Likewise.
48207         * modules/getloadavg (Makefile.am): Likewise.
48208         * modules/getlogin_r (Makefile.am): Likewise.
48209         * modules/getndelim2 (Makefile.am): Likewise.
48210         * modules/getopt (Makefile.am): Likewise.
48211         * modules/getpagesize (Makefile.am): Likewise.
48212         * modules/getpass-gnu (Makefile.am): Likewise.
48213         * modules/getpass (Makefile.am): Likewise.
48214         * modules/getsubopt (Makefile.am): Likewise.
48215         * modules/gettime (Makefile.am): Likewise.
48216         * modules/gettimeofday (Makefile.am): Likewise.
48217         * modules/getugroups (Makefile.am): Likewise.
48218         * modules/getusershell (Makefile.am): Likewise.
48219         * modules/glob (Makefile.am): Likewise.
48220         * modules/group-member (Makefile.am): Likewise.
48221         * modules/hard-locale (Makefile.am): Likewise.
48222         * modules/hash (Makefile.am): Likewise.
48223         * modules/hmac-md5 (Makefile.am): Likewise.
48224         * modules/hmac-sha1 (Makefile.am): Likewise.
48225         * modules/human (Makefile.am): Likewise.
48226         * modules/idcache (Makefile.am): Likewise.
48227         * modules/imaxabs (Makefile.am): Likewise.
48228         * modules/imaxdiv (Makefile.am): Likewise.
48229         * modules/inet_ntop (Makefile.am): Likewise.
48230         * modules/inet_pton (Makefile.am): Likewise.
48231         * modules/intprops (Makefile.am): Likewise.
48232         * modules/inttostr (Makefile.am): Likewise.
48233         * modules/inttypes (Makefile.am): Likewise.
48234         * modules/isapipe (Makefile.am): Likewise.
48235         * modules/javaversion (Makefile.am): Likewise.
48236         * modules/lchmod (Makefile.am): Likewise.
48237         * modules/lchown (Makefile.am): Likewise.
48238         * modules/localcharset (Makefile.am): Likewise.
48239         * modules/long-options (Makefile.am): Likewise.
48240         * modules/lstat (Makefile.am): Likewise.
48241         * modules/malloc (Makefile.am): Likewise.
48242         * modules/mathl (Makefile.am): Likewise.
48243         * modules/mbchar (Makefile.am): Likewise.
48244         * modules/md2 (Makefile.am): Likewise.
48245         * modules/md4 (Makefile.am): Likewise.
48246         * modules/md5 (Makefile.am): Likewise.
48247         * modules/memcasecmp (Makefile.am): Likewise.
48248         * modules/memchr (Makefile.am): Likewise.
48249         * modules/memcmp (Makefile.am): Likewise.
48250         * modules/memcoll (Makefile.am): Likewise.
48251         * modules/memcpy (Makefile.am): Likewise.
48252         * modules/memmem (Makefile.am): Likewise.
48253         * modules/memmove (Makefile.am): Likewise.
48254         * modules/mempcpy (Makefile.am): Likewise.
48255         * modules/memrchr (Makefile.am): Likewise.
48256         * modules/memset (Makefile.am): Likewise.
48257         * modules/memxor (Makefile.am): Likewise.
48258         * modules/mkancesdirs (Makefile.am): Likewise.
48259         * modules/mkdir-p (Makefile.am): Likewise.
48260         * modules/mkdir (Makefile.am): Likewise.
48261         * modules/mkdtemp (Makefile.am): Likewise.
48262         * modules/mkstemp (Makefile.am): Likewise.
48263         * modules/mktime (Makefile.am): Likewise.
48264         * modules/modechange (Makefile.am): Likewise.
48265         * modules/mountlist (Makefile.am): Likewise.
48266         * modules/nanosleep (Makefile.am): Likewise.
48267         * modules/obstack (Makefile.am): Likewise.
48268         * modules/openat (Makefile.am): Likewise.
48269         * modules/pagealign_alloc (Makefile.am): Likewise.
48270         * modules/pathmax (Makefile.am): Likewise.
48271         * modules/physmem (Makefile.am): Likewise.
48272         * modules/poll (Makefile.am): Likewise.
48273         * modules/posixtm (Makefile.am): Likewise.
48274         * modules/posixver (Makefile.am): Likewise.
48275         * modules/putenv (Makefile.am): Likewise.
48276         * modules/quote (Makefile.am): Likewise.
48277         * modules/quotearg (Makefile.am): Likewise.
48278         * modules/raise (Makefile.am): Likewise.
48279         * modules/read-file (Makefile.am): Likewise.
48280         * modules/readline (Makefile.am): Likewise.
48281         * modules/readlink (Makefile.am): Likewise.
48282         * modules/readtokens (Makefile.am): Likewise.
48283         * modules/readutmp (Makefile.am): Likewise.
48284         * modules/realloc (Makefile.am): Likewise.
48285         * modules/regex (Makefile.am): Likewise.
48286         * modules/rename-dest-slash (Makefile.am): Likewise.
48287         * modules/rename (Makefile.am): Likewise.
48288         * modules/rijndael (Makefile.am): Likewise.
48289         * modules/rmdir (Makefile.am): Likewise.
48290         * modules/rpmatch (Makefile.am): Likewise.
48291         * modules/safe-read (Makefile.am): Likewise.
48292         * modules/safe-write (Makefile.am): Likewise.
48293         * modules/same-inode (Makefile.am): Likewise.
48294         * modules/same (Makefile.am): Likewise.
48295         * modules/save-cwd (Makefile.am): Likewise.
48296         * modules/savedir (Makefile.am): Likewise.
48297         * modules/setenv (Makefile.am): Likewise.
48298         * modules/settime (Makefile.am): Likewise.
48299         * modules/sha1 (Makefile.am): Likewise.
48300         * modules/sig2str (Makefile.am): Likewise.
48301         * modules/snprintf (Makefile.am): Likewise.
48302         * modules/stat-macros (Makefile.am): Likewise.
48303         * modules/stat-time (Makefile.am): Likewise.
48304         * modules/stdbool (Makefile.am): Likewise.
48305         * modules/stdint (Makefile.am): Likewise.
48306         * modules/stdlib-safer (Makefile.am): Likewise.
48307         * modules/stpcpy (Makefile.am): Likewise.
48308         * modules/stpncpy (Makefile.am): Likewise.
48309         * modules/strcase (Makefile.am): Likewise.
48310         * modules/strcasestr (Makefile.am): Likewise.
48311         * modules/strchrnul (Makefile.am): Likewise.
48312         * modules/strcspn (Makefile.am): Likewise.
48313         * modules/strdup (Makefile.am): Likewise.
48314         * modules/strerror (Makefile.am): Likewise.
48315         * modules/strftime (Makefile.am): Likewise.
48316         * modules/strndup (Makefile.am): Likewise.
48317         * modules/strnlen (Makefile.am): Likewise.
48318         * modules/strpbrk (Makefile.am): Likewise.
48319         * modules/strsep (Makefile.am): Likewise.
48320         * modules/strstr (Makefile.am): Likewise.
48321         * modules/strtod (Makefile.am): Likewise.
48322         * modules/strtoimax (Makefile.am): Likewise.
48323         * modules/strtok_r (Makefile.am): Likewise.
48324         * modules/strtol (Makefile.am): Likewise.
48325         * modules/strtoll (Makefile.am): Likewise.
48326         * modules/strtoul (Makefile.am): Likewise.
48327         * modules/strtoull (Makefile.am): Likewise.
48328         * modules/strtoumax (Makefile.am): Likewise.
48329         * modules/strverscmp (Makefile.am): Likewise.
48330         * modules/sys_socket (Makefile.am): Likewise.
48331         * modules/sys_stat (Makefile.am): Likewise.
48332         * modules/sysexits (Makefile.am): Likewise.
48333         * modules/time_r (Makefile.am): Likewise.
48334         * modules/timegm (Makefile.am): Likewise.
48335         * modules/timespec (Makefile.am): Likewise.
48336         * modules/tmpfile-safer (Makefile.am): Likewise.
48337         * modules/trim (Makefile.am): Likewise.
48338         * modules/unistd-safer (Makefile.am): Likewise.
48339         * modules/unlinkdir (Makefile.am): Likewise.
48340         * modules/unlocked-io (Makefile.am): Likewise.
48341         * modules/userspec (Makefile.am): Likewise.
48342         * modules/utime (Makefile.am): Likewise.
48343         * modules/utimecmp (Makefile.am): Likewise.
48344         * modules/utimens (Makefile.am): Likewise.
48345         * modules/vasnprintf (Makefile.am): Likewise.
48346         * modules/vasprintf (Makefile.am): Likewise.
48347         * modules/vsnprintf (Makefile.am): Likewise.
48348         * modules/xalloc (Makefile.am): Likewise.
48349         * modules/xgetcwd (Makefile.am): Likewise.
48350         * modules/xnanosleep (Makefile.am): Likewise.
48351         * modules/xreadlink (Makefile.am): Likewise.
48352         * modules/xstrtod (Makefile.am): Likewise.
48353         * modules/xstrtol (Makefile.am): Likewise.
48354         * modules/xstrtold (Makefile.am): Likewise.
48355         * modules/yesno (Makefile.am): Likewise.
48356         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48357
48358 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48359
48360         * modules/error (Makefile.am): Distribute files through
48361         EXTRA_DIST, not lib_SOURCES.
48362
48363 2006-10-12  Eric Blake  <ebb9@byu.net>
48364
48365         * modules/error (Makefile.am): Distribute files in /lib.
48366         * modules/obstack (Makefile.am): Likewise.
48367
48368 2006-10-12  Bruno Haible  <bruno@clisp.org>
48369
48370         * modules/acl (Makefile.am): Distribute all files in lib/ through
48371         EXTRA_DIST.
48372         * modules/arcfour (Makefile.am): Likewise.
48373         * modules/arctwo (Makefile.am): Likewise.
48374         * modules/argmatch (Makefile.am): Likewise.
48375         * modules/argz (Makefile.am): Likewise.
48376         * modules/atexit (Makefile.am): Likewise.
48377         * modules/backupfile (Makefile.am): Likewise.
48378         * modules/c-strtod (Makefile.am): Likewise.
48379         * modules/c-strtold (Makefile.am): Likewise.
48380         * modules/calloc (Makefile.am): Likewise.
48381         * modules/canon-host (Makefile.am): Likewise.
48382         * modules/canonicalize (Makefile.am): Likewise.
48383         * modules/chdir-long (Makefile.am): Likewise.
48384         * modules/chdir-safer (Makefile.am): Likewise.
48385         * modules/check-version (Makefile.am): Likewise.
48386         * modules/chown (Makefile.am): Likewise.
48387         * modules/cloexec (Makefile.am): Likewise.
48388         * modules/close-stream (Makefile.am): Likewise.
48389         * modules/closeout (Makefile.am): Likewise.
48390         * modules/crc (Makefile.am): Likewise.
48391         * modules/cycle-check (Makefile.am): Likewise.
48392         * modules/des (Makefile.am): Likewise.
48393         * modules/dirfd (Makefile.am): Likewise.
48394         * modules/dirname (Makefile.am): Likewise.
48395         * modules/dup2 (Makefile.am): Likewise.
48396         * modules/euidaccess (Makefile.am): Likewise.
48397         * modules/exclude (Makefile.am): Likewise.
48398         * modules/exitfail (Makefile.am): Likewise.
48399         * modules/fcntl-safer (Makefile.am): Likewise.
48400         * modules/file-type (Makefile.am): Likewise.
48401         * modules/fileblocks (Makefile.am): Likewise.
48402         * modules/filemode (Makefile.am): Likewise.
48403         * modules/filenamecat (Makefile.am): Likewise.
48404         * modules/fnmatch (Makefile.am): Likewise.
48405         * modules/fopen-safer (Makefile.am): Likewise.
48406         * modules/fpending (Makefile.am): Likewise.
48407         * modules/fprintftime (Makefile.am): Likewise.
48408         * modules/free (Makefile.am): Likewise.
48409         * modules/fsusage (Makefile.am): Likewise.
48410         * modules/ftruncate (Makefile.am): Likewise.
48411         * modules/fts (Makefile.am): Likewise.
48412         * modules/gc (Makefile.am): Likewise.
48413         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48414         * modules/getaddrinfo (Makefile.am): Likewise.
48415         * modules/getcwd (Makefile.am): Likewise.
48416         * modules/getdelim (Makefile.am): Likewise.
48417         * modules/getdomainname (Makefile.am): Likewise.
48418         * modules/getgroups (Makefile.am): Likewise.
48419         * modules/gethostname (Makefile.am): Likewise.
48420         * modules/gethrxtime (Makefile.am): Likewise.
48421         * modules/getline (Makefile.am): Likewise.
48422         * modules/getloadavg (Makefile.am): Likewise.
48423         * modules/getlogin_r (Makefile.am): Likewise.
48424         * modules/getopt (Makefile.am): Likewise.
48425         * modules/getpass (Makefile.am): Likewise.
48426         * modules/getpass-gnu (Makefile.am): Likewise.
48427         * modules/getsubopt (Makefile.am): Likewise.
48428         * modules/gettime (Makefile.am): Likewise.
48429         * modules/gettimeofday (Makefile.am): Likewise.
48430         * modules/getugroups (Makefile.am): Likewise.
48431         * modules/getusershell (Makefile.am): Likewise.
48432         * modules/glob (Makefile.am): Likewise.
48433         * modules/group-member (Makefile.am): Likewise.
48434         * modules/hard-locale (Makefile.am): Likewise.
48435         * modules/hash (Makefile.am): Likewise.
48436         * modules/hmac-md5 (Makefile.am): Likewise.
48437         * modules/hmac-sha1 (Makefile.am): Likewise.
48438         * modules/human (Makefile.am): Likewise.
48439         * modules/idcache (Makefile.am): Likewise.
48440         * modules/imaxabs (Makefile.am): Likewise.
48441         * modules/imaxdiv (Makefile.am): Likewise.
48442         * modules/inet_ntop (Makefile.am): Likewise.
48443         * modules/inet_pton (Makefile.am): Likewise.
48444         * modules/inttostr (Makefile.am): Likewise.
48445         * modules/isapipe (Makefile.am): Likewise.
48446         * modules/lchown (Makefile.am): Likewise.
48447         * modules/long-options (Makefile.am): Likewise.
48448         * modules/lstat (Makefile.am): Likewise.
48449         * modules/malloc (Makefile.am): Likewise.
48450         * modules/mathl (Makefile.am): Likewise.
48451         * modules/mbchar (Makefile.am): Likewise.
48452         * modules/md2 (Makefile.am): Likewise.
48453         * modules/md4 (Makefile.am): Likewise.
48454         * modules/md5 (Makefile.am): Likewise.
48455         * modules/memcasecmp (Makefile.am): Likewise.
48456         * modules/memchr (Makefile.am): Likewise.
48457         * modules/memcmp (Makefile.am): Likewise.
48458         * modules/memcoll (Makefile.am): Likewise.
48459         * modules/memcpy (Makefile.am): Likewise.
48460         * modules/memmem (Makefile.am): Likewise.
48461         * modules/memmove (Makefile.am): Likewise.
48462         * modules/mempcpy (Makefile.am): Likewise.
48463         * modules/memrchr (Makefile.am): Likewise.
48464         * modules/memset (Makefile.am): Likewise.
48465         * modules/memxor (Makefile.am): Likewise.
48466         * modules/mkancesdirs (Makefile.am): Likewise.
48467         * modules/mkdir (Makefile.am): Likewise.
48468         * modules/mkdir-p (Makefile.am): Likewise.
48469         * modules/mkdtemp (Makefile.am): Likewise.
48470         * modules/mkstemp (Makefile.am): Likewise.
48471         * modules/mktime (Makefile.am): Likewise.
48472         * modules/modechange (Makefile.am): Likewise.
48473         * modules/mountlist (Makefile.am): Likewise.
48474         * modules/nanosleep (Makefile.am): Likewise.
48475         * modules/openat (Makefile.am): Likewise.
48476         * modules/pagealign_alloc (Makefile.am): Likewise.
48477         * modules/physmem (Makefile.am): Likewise.
48478         * modules/poll (Makefile.am): Likewise.
48479         * modules/posixtm (Makefile.am): Likewise.
48480         * modules/posixver (Makefile.am): Likewise.
48481         * modules/putenv (Makefile.am): Likewise.
48482         * modules/quote (Makefile.am): Likewise.
48483         * modules/quotearg (Makefile.am): Likewise.
48484         * modules/raise (Makefile.am): Likewise.
48485         * modules/read-file (Makefile.am): Likewise.
48486         * modules/readline (Makefile.am): Likewise.
48487         * modules/readlink (Makefile.am): Likewise.
48488         * modules/readtokens (Makefile.am): Likewise.
48489         * modules/readutmp (Makefile.am): Likewise.
48490         * modules/realloc (Makefile.am): Likewise.
48491         * modules/regex (Makefile.am): Likewise.
48492         * modules/rename (Makefile.am): Likewise.
48493         * modules/rename-dest-slash (Makefile.am): Likewise.
48494         * modules/rijndael (Makefile.am): Likewise.
48495         * modules/rmdir (Makefile.am): Likewise.
48496         * modules/rpmatch (Makefile.am): Likewise.
48497         * modules/safe-read (Makefile.am): Likewise.
48498         * modules/safe-write (Makefile.am): Likewise.
48499         * modules/same (Makefile.am): Likewise.
48500         * modules/save-cwd (Makefile.am): Likewise.
48501         * modules/savedir (Makefile.am): Likewise.
48502         * modules/setenv (Makefile.am): Likewise.
48503         * modules/settime (Makefile.am): Likewise.
48504         * modules/sha1 (Makefile.am): Likewise.
48505         * modules/sig2str (Makefile.am): Likewise.
48506         * modules/snprintf (Makefile.am): Likewise.
48507         * modules/stdlib-safer (Makefile.am): Likewise.
48508         * modules/stpcpy (Makefile.am): Likewise.
48509         * modules/stpncpy (Makefile.am): Likewise.
48510         * modules/strcase (Makefile.am): Likewise.
48511         * modules/strcasestr (Makefile.am): Likewise.
48512         * modules/strchrnul (Makefile.am): Likewise.
48513         * modules/strcspn (Makefile.am): Likewise.
48514         * modules/strdup (Makefile.am): Likewise.
48515         * modules/strerror (Makefile.am): Likewise.
48516         * modules/strftime (Makefile.am): Likewise.
48517         * modules/strndup (Makefile.am): Likewise.
48518         * modules/strnlen (Makefile.am): Likewise.
48519         * modules/strpbrk (Makefile.am): Likewise.
48520         * modules/strsep (Makefile.am): Likewise.
48521         * modules/strstr (Makefile.am): Likewise.
48522         * modules/strtod (Makefile.am): Likewise.
48523         * modules/strtoimax (Makefile.am): Likewise.
48524         * modules/strtok_r (Makefile.am): Likewise.
48525         * modules/strtol (Makefile.am): Likewise.
48526         * modules/strtoll (Makefile.am): Likewise.
48527         * modules/strtoul (Makefile.am): Likewise.
48528         * modules/strtoull (Makefile.am): Likewise.
48529         * modules/strtoumax (Makefile.am): Likewise.
48530         * modules/strverscmp (Makefile.am): Likewise.
48531         * modules/time_r (Makefile.am): Likewise.
48532         * modules/timegm (Makefile.am): Likewise.
48533         * modules/tmpfile-safer (Makefile.am): Likewise.
48534         * modules/unistd-safer (Makefile.am): Likewise.
48535         * modules/unlinkdir (Makefile.am): Likewise.
48536         * modules/userspec (Makefile.am): Likewise.
48537         * modules/utime (Makefile.am): Likewise.
48538         * modules/utimecmp (Makefile.am): Likewise.
48539         * modules/utimens (Makefile.am): Likewise.
48540         * modules/vasnprintf (Makefile.am): Likewise.
48541         * modules/vasprintf (Makefile.am): Likewise.
48542         * modules/vsnprintf (Makefile.am): Likewise.
48543         * modules/xalloc (Makefile.am): Likewise.
48544         * modules/xgetcwd (Makefile.am): Likewise.
48545         * modules/xnanosleep (Makefile.am): Likewise.
48546         * modules/xreadlink (Makefile.am): Likewise.
48547         * modules/xstrtod (Makefile.am): Likewise.
48548         * modules/xstrtol (Makefile.am): Likewise.
48549         * modules/xstrtold (Makefile.am): Likewise.
48550         * modules/yesno (Makefile.am): Likewise.
48551
48552 2006-10-12  Jim Meyering  <jim@meyering.net>
48553
48554         * m4/getloadavg.m4: Revert the change below.
48555
48556         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
48557         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
48558         fail with a symlink, which is what coreutils' ./bootstrap now
48559         creates by default.
48560
48561 2006-10-12  Bruno Haible  <bruno@clisp.org>
48562
48563         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
48564         mingw.
48565         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
48566         MSVC and mingw explicitly.
48567
48568 2006-10-11  Simon Josefsson  <jas@extundo.com>
48569             Bruno Haible  <bruno@clisp.org>
48570
48571         Add support for multiple gnulib-tool invocations in the scope of a
48572         single configure.ac file.
48573         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
48574         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
48575         with the same contents as the _LIBADD variable.
48576         (func_emit_initmacro_start, func_emit_initmacro_end,
48577         func_emit_initmacro_done): New functions.
48578         (func_import, func_create_testdir): Invoke them. Allow the identifiers
48579         gl_LIBOBJS and gl_LTLIBOBJS.
48580
48581 2006-10-11  Bruno Haible  <bruno@clisp.org>
48582
48583         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
48584         (func_create_testdir): Don't create po/Makefile.am, don't invoke
48585         autoreconf. Instead, invoke autopoint explicitly but move back the
48586         *.m4 files from gnulib.
48587
48588 2006-10-11  Bruno Haible  <bruno@clisp.org>
48589
48590         * gnulib-tool (func_usage): Make module names after --create-testdir
48591         optional.
48592         (func_create_testdir): If no module was specified, use nearly all
48593         modules.
48594
48595 2006-10-12  Jim Meyering  <jim@meyering.net>
48596
48597         Big performance improvement for fts-based tools that use FTS_NOSTAT.
48598         Avoid spurious inode-mismatch problems on non-POSIX file systems.
48599         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
48600         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
48601         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
48602         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
48603         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
48604         (fts_set_stat_required): New function.
48605         (fts_open): Defer the calls to fts_stat, if possible or requested.
48606         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
48607         into fts_stat itself.
48608         (fts_read): Perform any required (deferred) fts_stat call.
48609         (fts_build): Likewise, for the directory we're about to open and read.
48610         In the readdir loop, carefully decide whether each entry will require
48611         an eventual call to fts_stat, using dirent.d_type info if available.
48612         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
48613         a command line argument into this function.  Update all callers.
48614         Map a return value of FTS_DOT to FTS_D for a command line argument.
48615         * modules/fts (Depends-on): Add d-type.  Alphabetize.
48616         Thanks to Miklos Szeredi for his tenacity and for the initial
48617         bug report about "find" failing on a FUSE-based file system.
48618
48619         * lib/fts.c (fts_open): Use consistent indentation.
48620
48621 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48622
48623         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
48624         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
48625         reported by Jim Meyering.  All uses of cache variables renamed
48626         to match Autoconf's.
48627         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
48628         the other one.
48629
48630         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
48631         Fix misspelling in diagnostic.
48632
48633 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48634
48635         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
48636         defined.  Problem reported by Matthew Woehlke.
48637
48638         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
48639         Add support for Tandem NonStop R series.
48640         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
48641         Use new macro.
48642
48643         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
48644         (has_trailing_slash): Omit size arg; all callers changed.
48645         Omit 'inline', since it doesn't help performance and we'd
48646         need to configure it.
48647         Don't count //, ///, etc. as having a trailing slash.
48648         As a side effect, this removes a C99ism reported by Matthew Woehlke.
48649         (rpl_rename_dest_slash): On failure, use rename's errno rather
48650         than (in some cases) an incorrect or junk errno.
48651         Simplify code by removing need to compute length; this does
48652         cause it to make two passes instead of one over the file name,
48653         but it's worth it.
48654
48655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
48656         change, since Autoconf's version may no longer be appropriate now
48657         that we are using CVS Autoconf's version.  Add support for Tandem.
48658
48659 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48660             Bruno Haible  <bruno@clisp.org>
48661
48662         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
48663         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
48664         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
48665         gl_AC_TYPE_LONG_LONG.
48666
48667         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
48668         instead of HAVE_LONG_LONG.
48669         * lib/printf-args.c (printf_fetchargs): Likewise.
48670         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
48671         * lib/vasnprintf.c (VASNPRINTF): Likewise.
48672         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
48673         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
48674         gl_AC_TYPE_LONG_LONG.
48675
48676 2006-10-11  Bruno Haible  <bruno@clisp.org>
48677
48678         * m4/longlong.m4: Add comments.
48679         * m4/ulonglong.m4: Likewise.
48680
48681 2006-10-10  Bruno Haible  <bruno@clisp.org>
48682
48683         Make it possible to #define stpcpy, strdup to aliases.
48684         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
48685         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
48686
48687 2006-10-10  Bruno Haible  <bruno@clisp.org>
48688
48689         Make it possible to #define gcd to an alias.
48690         * lib/gcd.c: Include config.h.
48691
48692 2006-10-10  Bruno Haible  <bruno@clisp.org>
48693
48694         Make it possible to #define c_isascii to an alias.
48695         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
48696         defined. Undefine the macros before defining them, to avoid gcc
48697         warnings.
48698         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
48699         define NO_C_CTYPE_MACROS early.
48700
48701 2006-10-10  Bruno Haible  <bruno@clisp.org>
48702
48703         Make it possible to #define set_program_name to an alias.
48704         * lib/progname.c: Don't undefine set_program_name; instead, undefine
48705         ENABLE_RELOCATABLE early.
48706
48707 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48708
48709         Port to Tandem NSK OSS, which has 64-bit signed int but at most
48710         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
48711         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
48712         More generally, don't assume that 64-bit signed int is available
48713         if unsigned int is, and vice versa.
48714         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
48715         unsigned symbols, not on their signed counterparts.
48716         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
48717         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
48718         (UINT64_C, UINTMAX_C):
48719         Likewise.
48720         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
48721         unsigned counterparts.
48722         (Have_long_long, Unsigned): New macros.
48723         (Int): Renamed from INT.
48724         (strtoimax): Use the new macros.
48725         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
48726         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
48727         * modules/inttypes (inttypes.h): Substitute
48728         HAVE_UNSIGNED_LONG_LONG_INT.
48729         * modules/stdint (stdint.h): Likewise.
48730         (Files): Add m4/ulonglong.m4.
48731
48732 2006-10-10  Bruno Haible  <bruno@clisp.org>
48733
48734         Fix a gcc -Wshadow warning.
48735         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
48736         to 'bucket'.
48737         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
48738         gl_linked_indexof_from_to): Likewise.
48739         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
48740         Likewise.
48741         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
48742         Likewise.
48743         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
48744         Reported by Eric Blake.
48745
48746 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
48747
48748         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
48749         for NetBSD.  Problem reported by Bruno Haible.
48750
48751 2006-10-09  Jim Meyering  <jim@meyering.net>
48752
48753         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
48754         Patch from Bruno Haible.
48755
48756 2006-10-09  Jim Meyering  <jim@meyering.net>
48757
48758         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
48759         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
48760         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
48761
48762 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48763
48764         Don't include <config.h> twice; this doesn't work in some cases,
48765         e.g., when config.h has "#define intmax_t long long int" and
48766         we include <config.h>, <inttypes.h>, <config.h> in that order.
48767         Problem reported by Matthew Woehlke in:
48768         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
48769         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
48770         * lib/fts-cycle.c: Don't include config.h.
48771         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
48772         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
48773         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
48774         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
48775         inttypes.h.
48776         * lib/xstrtoumax.c: Likewise.
48777         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
48778         __strtol and the like, so that this module is more like its siblings.
48779         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
48780         Remove; no longer needed now that we assume gnulib inttypes.h.
48781
48782 2006-10-08  Bruno Haible  <bruno@clisp.org>
48783
48784         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
48785         option.
48786
48787 2006-10-07  Jim Meyering  <jim@meyering.net>
48788
48789         * modules/inttypes (inttypes.h): Revert what seems to have been
48790         an inadvertent part of today's change: use "|", not "/" in the
48791         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
48792
48793 2006-10-07  Bruno Haible  <bruno@clisp.org>
48794
48795         * modules/sublist: New file.
48796
48797 2006-10-07  Bruno Haible  <bruno@clisp.org>
48798
48799         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
48800         * modules/argz (argz.h): Likewise.
48801         * modules/arpa_inet (arpa/inet.h): Likewise.
48802         * modules/byteswap (byteswap.h): Likewise.
48803         * modules/configmake (configmake.h): Likewise.
48804         * modules/fcntl (fcntl.h): Likewise.
48805         * modules/fnmatch (fnmatch.h): Likewise.
48806         * modules/getopt (getopt.h): Likewise.
48807         * modules/glob (glob.h): Likewise.
48808         * modules/inttypes (inttypes.h): Likewise.
48809         * modules/netinet_in (netinet/in.h): Likewise.
48810         * modules/poll (poll.h): Likewise.
48811         * modules/stdbool (stdbool.h): Likewise.
48812         * modules/stdint (stdint.h): Likewise.
48813         * modules/sys_select (sys/select.h): Likewise.
48814         * modules/sys_socket (sys/socket.h): Likewise.
48815         * modules/sys_stat (sys/stat.h): Likewise.
48816         * modules/sysexits (sysexits.h): Likewise.
48817         * modules/unistd (unistd.h): Likewise.
48818         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48819         Add a "DO NOT EDIT" comment to the generated file.
48820         (func_import): Likewise for gnulib-comp.m4.
48821
48822 2006-10-07  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/gl_sublist.h: New file.
48825         * lib/gl_sublist.c: New file.
48826
48827 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48828
48829         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
48830         name (relative to the original working directory) and the file
48831         name component (relative to the temporary working directory).  All
48832         callers changed.
48833         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
48834         * lib/mkdir-p.c (make_dir_parents): Likewise.
48835         * lib/mkdir-p.h (make_dir_parents): Likewise.
48836
48837 2006-10-06  Eric Blake  <ebb9@byu.net>
48838
48839         Define several macros for use by the clean-temp module.
48840         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
48841         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
48842         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
48843
48844         * lib/clean-temp.h (close_stream_temp): New declaration.
48845         * lib/clean-temp.c (includes): Pull in headers according to what
48846         other modules are in use.
48847         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
48848
48849 2006-10-06  Bruno Haible  <bruno@clisp.org>
48850
48851         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
48852         instead of fopen, fwriteerror.
48853
48854 2006-10-06  Bruno Haible  <bruno@clisp.org>
48855
48856         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
48857         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
48858         int.
48859         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
48860         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
48861         Return an error indicator.
48862         Suggested by Eric Blake.
48863
48864 2006-10-06  Bruno Haible  <bruno@clisp.org>
48865
48866         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
48867         Reported by Eric Blake.
48868
48869 2006-10-06  Bruno Haible  <bruno@clisp.org>
48870
48871         * modules/closeout (Description): Mention stderr too.
48872
48873 2006-10-06  Bruno Haible  <bruno@clisp.org>
48874         and Paul Eggert  <eggert@cs.ucla.edu>
48875
48876         * lib/closeout.c (close_stdout): Also close stderr.
48877         * lib/closeout.h: Update comment.
48878
48879 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48880
48881         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
48882         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
48883         * lib/dirchownmod.c: Include lchown.h.
48884         * lib/lchown.c: Don't include files that lchown.h now includes.
48885         Don't declare chown, since lchown.h now does that.
48886         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
48887         (lchown): Define to rpl_chown if lchown is declared but
48888         does not exist.  Declare using a prototype if lchown is not
48889         declared.  Add a copyright notice.
48890         * lib/mkstemp.h: Include <unistd.h>.
48891         * lib/openat.c: Include lchown.h.
48892
48893         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
48894         we now test for that separately.
48895         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
48896         rather than O_NOFOLLOW, when testing whether it's possible to
48897         avoid a race condition reliably.
48898         * lib/savewd.c (savewd_chdir): Likewise.
48899
48900         Remove macros that are no longer needed now that stdint.h is
48901         reliable.
48902         * lib/fsusage.c (UINTMAX_MAX): Remove.
48903         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
48904         * lib/utimecmp.c (SIZE_MAX): Remove.
48905
48906         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
48907
48908         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
48909         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
48910         O_NOATIME works.
48911
48912 2006-10-05  Bruno Haible  <bruno@clisp.org>
48913
48914         * lib/gl_list.h (gl_sortedlist_search_from_to,
48915         gl_sortedlist_indexof_from_to): New declarations.
48916         (gl_list_implementation): New fields sortedlist_search_from_to,
48917         sortedlist_indexof_from_to.
48918         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
48919         inline functions.
48920         * lib/gl_list.c (gl_sortedlist_search_from_to,
48921         gl_sortedlist_indexof_from_to): New functions.
48922         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
48923         function.
48924         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
48925         (gl_array_sortedlist_search_from_to): New function.
48926         (gl_array_list_implementation): Update.
48927         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
48928         function.
48929         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
48930         (gl_carray_sortedlist_search_from_to): New function.
48931         (gl_carray_list_implementation): Update.
48932         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
48933         gl_linked_sortedlist_indexof_from_to): New functions.
48934         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48935         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48936         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
48937         gl_tree_sortedlist_indexof_from_to): New functions.
48938         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48939         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48940         Update.
48941         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48942         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
48943         Update.
48944
48945 2006-10-05  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
48948         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
48949         (struct gl_list_implementation): Add fields search_from_to,
48950         indexof_from_to. Remove fields search, indexof.
48951         (gl_list_search): Use the search_from_to method.
48952         (gl_list_search_from, gl_list_search_from_to): New functions.
48953         (gl_list_indexof): Use the indexof_from_to method.
48954         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
48955         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
48956         (gl_list_search_from, gl_list_search_from_to): New functions.
48957         (gl_list_indexof): Use the indexof_from_to method.
48958         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
48959         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
48960         gl_array_indexof. Add start_index, end_index arguments.
48961         (gl_array_search_from_to): Renamed from gl_array_search. Add
48962         start_index, end_index arguments.
48963         (gl_array_remove, gl_array_list_implementation): Update.
48964         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
48965         gl_carray_indexof. Add start_index, end_index arguments.
48966         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
48967         start_index, end_index arguments.
48968         (gl_carray_remove, gl_carray_list_implementation): Update.
48969         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
48970         gl_linked_search. Add start_index, end_index arguments.
48971         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
48972         start_index, end_index arguments.
48973         (gl_linked_remove): Update.
48974         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48975         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48976         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
48977         field to 'size_t'.
48978         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
48979         gl_tree_search. Add start_index, end_index arguments.
48980         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
48981         start_index, end_index arguments.
48982         (gl_tree_remove): Update.
48983         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48984         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48985         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
48986         function.
48987         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
48988         gl_tree_search. Add start_index, end_index arguments.
48989         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
48990         start_index, end_index arguments.
48991         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48992         Update.
48993         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48994
48995 2006-10-05  Bruno Haible  <bruno@clisp.org>
48996
48997         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
48998
48999         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49000         fwriteerror_temp): New declarations.
49001         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49002         (descriptors): New variable.
49003         (cleanup): First, close the descriptors.
49004         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49005         fclose_temp, fwriteerror_temp): New functions.
49006
49007 2006-10-04  Jim Meyering  <jim@meyering.net>
49008
49009         * lib/fts.c (fts_open): Tiny comment change.
49010
49011 2006-10-04  Bruno Haible  <bruno@clisp.org>
49012
49013         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49014         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49015         gl_LOCK_BODY.
49016         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49017         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49018         gl_LOCK_EARLY_BODY.
49019         (gl_LOCK): Require gl_LOCK_BODY.
49020
49021 2006-10-04  Bruno Haible  <bruno@clisp.org>
49022
49023         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49024         (gl_oset_search_atleast): New declaration.
49025         (struct gl_oset_implementation): Add field 'search_atleast'.
49026         (gl_oset_search_atleast): New inline function.
49027         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49028         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49029         (gl_array_oset_implementation): Update.
49030         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49031         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49032         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49033
49034 2006-10-04  Bruno Haible  <bruno@clisp.org>
49035
49036         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49037
49038 2006-10-03  Bruno Haible  <bruno@clisp.org>
49039
49040         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49041         from gl_avltreehash_list_implementation.
49042
49043 2006-10-03  Bruno Haible  <bruno@clisp.org>
49044
49045         * lib/gl_oset.c (gl_oset_add): Fix return type.
49046
49047 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49048
49049         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49050
49051 2006-10-02  Eric Blake  <ebb9@byu.net>
49052
49053         * modules/strnlen (Depends-on): Add extensions.
49054
49055 2006-10-02  Eric Blake  <ebb9@byu.net>
49056
49057         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49058         definition in 2.60+.
49059
49060 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49061
49062         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49063         checks.
49064
49065 2006-10-02  Bruno Haible  <bruno@clisp.org>
49066
49067         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49068         to the AUTOMAKE_OPTIONS.
49069         Reported by Jim Meyering.
49070
49071 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49072
49073         Work around bug in Solaris 10 /proc file system:
49074         /proc/self/fd/NNN/.. isn't the parent directory of
49075         the directory whose file descriptor is NNN.  This needs to
49076         be worked around at run time, not compile time, since a
49077         program might be built on Solaris 8, where things work, and
49078         run on Solaris 10.
49079         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49080         to use the following interface instead:
49081         (OPENAT_BUFFER_SIZE): New macro.
49082         (openat_proc_name): New function.
49083         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49084         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49085         Likewise.
49086         * lib/openat-proc.c: New file.
49087         * modules/openat (Files): Add lib/openat-proc.c.
49088         (Depends-on): Add same-inode, stdbool.
49089         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49090
49091 2006-09-29  Bruno Haible  <bruno@clisp.org>
49092
49093         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49094         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49095         argument. Set stdout_closed before testing for ferror, not after.
49096         (fwriteerror, fwriteerror_no_ebadf): New functions.
49097
49098 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49099
49100         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49101
49102 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49103
49104         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49105         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49106
49107 2006-09-28  Jim Meyering  <jim@meyering.net>
49108
49109         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49110         Include <unistd.h>.
49111
49112 2006-09-28  Bruno Haible  <bruno@clisp.org>
49113
49114         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49115         * modules/linkedhash-list (Depends-on): Likewise.
49116         * modules/rbtreehash-list (Depends-on): Likewise.
49117
49118 2006-09-28  Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/strndup.h: Simplify the redefinition of strndup.
49121         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49122         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49123
49124 2006-09-28  Bruno Haible  <bruno@clisp.org>
49125
49126         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49127         * lib/gl_linkedhash_list.c: Likewise.
49128         * lib/gl_rbtreehash_list.c: Likewise.
49129
49130 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49131
49132         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49133         getaddrinfo.
49134
49135         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49136         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49137         it causes <stdio_ext.h> to cause a compile-time error.
49138         Problem reported by Nelson H. F. Beebe.
49139         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49140         of HAVE_DECL___PENDING.
49141
49142         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49143         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49144         declaration.
49145
49146 2006-09-27  Jim Meyering  <jim@meyering.net>
49147
49148         This file could end up with a definition for a function
49149         named __strndup, rather than rpl_strndup on a system with
49150         incomplete weak_alias support.
49151         * lib/strndup.c (strndup): Rename from __strndup.
49152         Remove #defines that used to map __strndup to strndup.
49153         Don't use K&R prototypes.
49154         Remove LIBC-related code, since this file is not sync'd with glibc.
49155         * lib/strndup.h: Revamp, accordingly.
49156         * m4/strndup.m4: Modernize.
49157
49158 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49159
49160         * modules/savewd (Depends-on): Add 'raise'.
49161         * lib/savewd.c: Include <signal.h>, for 'raise'.
49162
49163 2006-09-26  Jim Meyering  <jim@meyering.net>
49164
49165         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49166         when we detect Darwin 8.7.0's acl_get_file bug.
49167         Rearrange to perform the new (below) run-test while $LIBS
49168         contains any acl-related library.  Set USE_ACL at the end.
49169         (gl_ACL_GET_FILE): New function.
49170
49171 2006-09-26  Eric Blake  <ebb9@byu.net>
49172
49173         * lib/verror.c: Include <config.h> unconditionally.
49174
49175 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49176
49177         * modules/clock-time (Maintainer): Add self.
49178         * modules/getlogin_r (Depends-on): Add extensions.
49179
49180 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49181
49182         * modules/clock-time: New module.
49183         * modules/nanosleep (Depends-on): Add clock-time.
49184         * modules/gethrxtime (Depends-on): Likewise.
49185         * modules/gettime (Depends-on): Likewise.
49186         * modules/settime (Depends-on): Likewise.
49187
49188         * modules/fts-lgpl: Depend on openat.
49189         * modules/mkancesdirs: Depend on savewd.
49190         * modules/mkdir-p: Likewise.
49191
49192 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49193
49194         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49195
49196         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49197         `gl_have_arbitrary_file_name_length_limit' to
49198         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49199         actually works between configure runs.
49200
49201 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49202             Bruno Haible  <bruno@clisp.org>
49203
49204         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49205
49206 2006-09-25  Jim Meyering  <jim@meyering.net>
49207
49208         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49209         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49210
49211 2006-09-25  Eric Blake  <ebb9@byu.net>
49212
49213         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49214         exec's in 2006-09-18 patch when shuffling fds.
49215
49216 2006-09-25  Bruno Haible  <bruno@clisp.org>
49217
49218         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49219         Reported by Jim Meyering.
49220
49221 2006-09-24  Jim Meyering  <jim@meyering.net>
49222
49223         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49224         compare a pointer against a literal "0".  That caused failures with
49225         at least HP-UX's hpcc.
49226
49227 2006-09-22  Simon Josefsson  <jas@extundo.com>
49228
49229         * modules/gc-sha1:
49230         * modules/gc-md4:
49231         * modules/gc-hmac-sha1:
49232         * modules/gc-hmac-md5:
49233         * modules/gc-des:
49234         * modules/gc-arcfour: Distribute more files.
49235
49236 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49237
49238         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49239         (gl_linked_iterator_from_to): Initialize struct completely.
49240         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49241         (gl_tree_iterator_from_to): Likewise
49242         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49243         * lib/gl_array_list.c [lint] (gl_array_iterator)
49244         (gl_array_iterator_from_to): Likewise.
49245         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
49246         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
49247         (gl_carray_iterator_from_to): Likewise.
49248
49249         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
49250         * lib/md4.c (md4_process_block): Remove unused variable.
49251         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
49252         parentheses for clarity.
49253
49254 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49255
49256         * modules/bison-i18n (Depends-on): Add gettext.
49257
49258 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49259
49260         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
49261         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
49262         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
49263         also add missing comma that caused broken test.
49264         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
49265         stdlib.h, for `abort'.
49266         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
49267         variables.
49268         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
49269         include unistd.h if present, for `rmdir'.
49270         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
49271         variables.
49272         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
49273         in the process include standard headers for prototypes.
49274         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
49275         gets declared on GNU/Linux.
49276         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
49277         unistd.h, for `rmdir'.
49278         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
49279
49280         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
49281         always true.
49282         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
49283
49284         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49285
49286 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49287
49288         * gnulib-tool (func_version): Create output all at once.  This
49289         may help avoid triggering unnecessary SIGPIPEs, and at any
49290         rate it doesn't hurt.
49291
49292 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49293             Bruno Haible  <bruno@clisp.org>
49294
49295         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49296         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49297         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49298
49299         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49300         (gl_FUNC_VASPRINTF): Invoke it.
49301
49302 2006-09-22  Bruno Haible  <bruno@clisp.org>
49303
49304         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49305         getloadavg.c as first argument.
49306
49307 2006-09-22  Bruno Haible  <bruno@clisp.org>
49308
49309         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49310         at the beginning of the gl_INIT macro.
49311         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49312         gl_GETLOADAVG.
49313
49314 2006-09-22  Bruno Haible  <bruno@clisp.org>
49315
49316         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49317         module.
49318         Suggested by Ralf Wildenhues.
49319
49320 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49321
49322         Import this patch from libc:
49323
49324         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49325
49326         * lib/regex_internal.c (re_string_reconstruct): Handle
49327         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49328         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49329         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49330         re_string_context_at.
49331
49332         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49333         now requires it.
49334         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49335         gl_REGEX now does it for us.
49336         (gl_REGEX): Add test taken from
49337         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49338
49339         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49340         Check that large offsets work.  Modernize Autoconf usages.
49341         Prefer "yes" to mean a good thing rather than a bad.
49342         Don't put "#define mkstemp" in config.h, as this might interfere
49343         with standard system headers that "#define mkstemp mkstemp64".
49344
49345         * modules/mkstemp (Depends-on): Add extensions, so that
49346         mkstemp is visible on some platforms.
49347         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49348         (Include): Change to "mkstemp.h" from <stdlib.h>.
49349         (Files): Add mkstemp.h.
49350
49351         * lib/mkstemp.h: New file, since some standard headers
49352         #define mkstemp.
49353         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49354         Include "mkstemp.h".
49355         Make the _LIBC code resemble glibc original more,
49356         e.g., use K&R style.
49357         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49358         (mkstemp): Remove, since mkstemp.h does this for us.
49359         * lib/stdlib--.h: Include mkstemp.h.
49360
49361         Import this patch from libc:
49362
49363         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49364
49365         * lib/tempname.c (__gen_tempname): Change attempts_min
49366         into a macro.  Use preprocessor to decide how to initialize
49367         attempts [Coverity CID 67].
49368
49369 2006-09-20  Bruno Haible  <bruno@clisp.org>
49370
49371         * lib/mkdtemp.c: Import from libc.
49372         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49373                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49374                 attempts_min into a macro.  Use preprocessor to decide how to
49375                 initialize attempts [Coverity CID 67].
49376         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49377                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49378                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49379
49380 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49381
49382         * gnulib-tool (func_exit): New function, to allow to pass the
49383         exit status portably through the trap.  Use everywhere.
49384         (--help, --version): Signal a write error.
49385         (trap): catch SIGPIPE, for write errors.
49386         Exit at the end of the trap, with the correct exit status.
49387
49388 2006-09-19  Karl Berry  <karl@gnu.org>
49389
49390         * doc/gnulib.texi: note about the license texinfo files.
49391
49392 2006-09-19  Eric Blake  <ebb9@byu.net>
49393
49394         * gnulib-tool: Avoid space-tab.
49395
49396 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49397
49398         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49399         that prevented coreutils 6.1 from building.  Problem reported
49400         by Petter Reinholdtsen.
49401
49402 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49403
49404         * gnulib-tool (avoidlist): Fix typo that broke options like
49405         --avoid=lock that are used by coreutils bootstrap.
49406
49407 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49408
49409         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49410         more systematically.
49411
49412 2006-09-18  Jim Meyering  <jim@meyering.net>
49413
49414         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
49415
49416 2006-09-18  Bruno Haible  <bruno@clisp.org>
49417
49418         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
49419
49420 2006-09-18  Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
49423         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
49424         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
49425         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
49426         * m4/gettext.m4: Require autoconf >= 2.52.
49427         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
49428         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
49429         of gl_cv_header_inttypes_h.
49430
49431 2006-09-18  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/javaversion.c: Include configmake.h.
49434
49435 2006-09-18  Bruno Haible  <bruno@clisp.org>
49436
49437         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
49438         avoid that the while loops be executed in a subshell.
49439
49440 2006-09-18  Bruno Haible  <bruno@clisp.org>
49441
49442         * MODULES.html.sh (func_module): Break long lines.
49443         Suggested by Bruce Korb <bkorb@gnu.org>.
49444
49445 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49446
49447         Speed up by a factor of 1.12.
49448         * gnulib-tool (nl): New variable.
49449         (func_import): Rewrite include directive extraction to only read each
49450         directive once.
49451
49452 2006-09-17  Bruno Haible  <bruno@clisp.org>
49453
49454         * modules/javaversion (Makefile.am): Remove DEFS setting.
49455         (Depends-on): Add configmake, for PKGDATADIR definition.
49456
49457 2006-09-17  Bruno Haible  <bruno@clisp.org>
49458
49459         * gnulib-tool (func_create_testdir): Rewrite all files at once.
49460
49461 2006-09-17  Bruno Haible  <bruno@clisp.org>
49462
49463         * gnulib-tool (func_append): New function, stolen from libtool.m4.
49464         (func_modules_transitive_closure, func_modules_add_dummy,
49465         func_modules_to_filelist, func_import, func_create_testdir,
49466         func_create_megatestdir, ...): Use it wherever possible.
49467         Suggested by Ralf Wildenhues.
49468
49469 2006-09-16  Karl Berry  <karl@gnu.org>
49470
49471         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
49472         to avoid sectioning errors.
49473         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
49474         [ifinfo]: blank line after @center-ed titles.
49475         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
49476         Spell FSF address consistently with others.
49477         (These changes approved by rms.)
49478
49479 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49480
49481         Speed up by a factor of 1.61.
49482         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
49483         already checked module names again.
49484
49485 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49486
49487         Speed up by a factor of 1.13.
49488         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
49489         for new_files, and the input to func_add_or_update.
49490
49491 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49492
49493         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
49494         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
49495
49496 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49497
49498         * modules/mkancesdirs (Depends-on): Add fcntl.
49499         * modules/savewd: New file.
49500         * MODULES.html.sh (File system functions): Add savewd.
49501
49502         * modules/configmake (Makefile.am): Add support for the
49503         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
49504
49505 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49506
49507         * m4/savewd.m4: New file.
49508
49509 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49510
49511         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
49512         (dirchownmod): New arg FD.  All callers changed.
49513         Use FD rather than opening the directory ourself, as opening is
49514         now the caller's responsibility.
49515         * lib/dirchownmod.h: Likewise.
49516         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
49517         hosts that require <sys/types.h> before <sys/stat.h>.  Include
49518         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
49519         (test_dir): Remove.
49520         (mkancesdirs): Return length of prefix of FILE that has already
49521         been made, or -2 if there is a child doing the work.  Redo
49522         algorithm so that it is O(N) rather than O(N**2).  Optimize away
49523         ".", and treat ".." specially since it might stray back into
49524         already-created areas.  Use a subprocess if necessary.  New arg
49525         WD; all users changed.  MAKE_DIR function should now return 1
49526         if it creates a directory that is not readable.  Return -2 if
49527         a child process is spun off.
49528         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
49529         Adjust signature to match code.
49530         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
49531         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
49532         all users changed.
49533         * lib/savewd.c, lib/savewd.h: New files.
49534
49535 2006-09-15  Jim Meyering  <jim@meyering.net>
49536
49537         * modules/rename-dest-slash: New module.
49538         * MODULES.html.sh (posix_compat): Add it here.
49539
49540         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
49541
49542 2006-09-15  Jim Meyering  <jim@meyering.net>
49543
49544         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
49545         file.
49546
49547         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
49548
49549 2006-09-15  Jim Meyering  <jim@meyering.net>
49550
49551         * lib/rename-dest-slash.c (has_trailing_slash): Use
49552         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
49553         (rpl_rename_dest_slash): Perform the cheaper trailing slash
49554         test before testing whether SRC is a directory.
49555         Suggestions from Bruno Haible.
49556
49557         Avoid a warning about an unused variable.
49558         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
49559         into the #ifdef block where it's used.
49560
49561         * lib/rename-dest-slash.c: New file.
49562
49563 2006-09-14  Bruno Haible  <bruno@clisp.org>
49564
49565         * lib/allocsa.c: Include <config.h> unconditionally.
49566         * lib/asnprintf.c: Likewise.
49567         * lib/asprintf.c: Likewise.
49568         * lib/c-strcasecmp.c: Likewise.
49569         * lib/c-strcasestr.c: Likewise.
49570         * lib/c-strncasecmp.c: Likewise.
49571         * lib/c-strstr.c: Likewise.
49572         * lib/classpath.c: Likewise.
49573         * lib/clean-temp.c: Likewise.
49574         * lib/concatpath.c: Likewise.
49575         * lib/copy-file.c: Likewise.
49576         * lib/csharpcomp.c: Likewise.
49577         * lib/csharpexec.c: Likewise.
49578         * lib/execute.c: Likewise.
49579         * lib/fatal-signal.c: Likewise.
49580         * lib/findprog.c: Likewise.
49581         * lib/fwriteerror.c: Likewise.
49582         * lib/gl_array_list.c: Likewise.
49583         * lib/gl_array_oset.c: Likewise.
49584         * lib/gl_avltree_list.c: Likewise.
49585         * lib/gl_avltree_oset.c: Likewise.
49586         * lib/gl_avltreehash_list.c: Likewise.
49587         * lib/gl_carray_list.c: Likewise.
49588         * lib/gl_linked_list.c: Likewise.
49589         * lib/gl_linkedhash_list.c: Likewise.
49590         * lib/gl_list.c: Likewise.
49591         * lib/gl_oset.c: Likewise.
49592         * lib/gl_rbtree_list.c: Likewise.
49593         * lib/gl_rbtree_oset.c: Likewise.
49594         * lib/gl_rbtreehash_list.c: Likewise.
49595         * lib/imaxabs.c: Likewise.
49596         * lib/imaxdiv.c: Likewise.
49597         * lib/javacomp.c: Likewise.
49598         * lib/javaexec.c: Likewise.
49599         * lib/javaversion.c: Likewise.
49600         * lib/linebreak.c: Likewise.
49601         * lib/localcharset.c: Likewise.
49602         * lib/lock.c: Likewise.
49603         * lib/mbchar.c: Likewise.
49604         * lib/mbswidth.c: Likewise.
49605         * lib/mkdtemp.c: Likewise.
49606         * lib/pipe.c: Likewise.
49607         * lib/printf-args.c: Likewise.
49608         * lib/printf-parse.c: Likewise.
49609         * lib/progname.c: Likewise.
49610         * lib/progreloc.c: Likewise.
49611         * lib/readlink.c: Likewise.
49612         * lib/sh-quote.c: Likewise.
49613         * lib/stpcpy.c: Likewise.
49614         * lib/stpncpy.c: Likewise.
49615         * lib/strcasecmp.c: Likewise.
49616         * lib/strcasestr.c: Likewise.
49617         * lib/strcspn.c: Likewise.
49618         * lib/striconv.c: Likewise.
49619         * lib/strncasecmp.c: Likewise.
49620         * lib/strnlen1.c: Likewise.
49621         * lib/strstr.c: Likewise.
49622         * lib/strtok_r.c: Likewise.
49623         * lib/tls.c: Likewise.
49624         * lib/tmpdir.c: Likewise.
49625         * lib/unicodeio.c: Likewise.
49626         * lib/unsetenv.c: Likewise.
49627         * lib/vasnprintf.c: Likewise.
49628         * lib/vasprintf.c: Likewise.
49629         * lib/wait-process.c: Likewise.
49630         * lib/xallocsa.c: Likewise.
49631         * lib/xsetenv.c: Likewise.
49632         * lib/xstriconv.c: Likewise.
49633
49634 2006-09-13  Simon Josefsson  <jas@extundo.com>
49635
49636         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
49637         that internally, suggested by Ralf Wildenhues
49638         <Ralf.Wildenhues@gmx.de>.
49639
49640 2006-09-13  Simon Josefsson  <jas@extundo.com>
49641
49642         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
49643         @LIBOBJS@.
49644         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49645
49646 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49647
49648         * lib/_fpending.c: Include <config.h> unconditionally, since we no
49649         longer worry about uses that don't define HAVE_CONFIG_H.
49650         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
49651         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
49652         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
49653         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
49654         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
49655         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
49656         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
49657         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
49658         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
49659         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
49660         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
49661         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
49662         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
49663         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
49664         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
49665         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
49666         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
49667         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
49668         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
49669         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
49670         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
49671         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
49672         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
49673         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
49674         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
49675         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
49676         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
49677         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
49678         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
49679         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
49680         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
49681         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
49682         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
49683         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
49684         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
49685         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
49686         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
49687         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
49688         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
49689         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
49690         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
49691         Likewise.
49692
49693 2006-09-13  Eric Blake  <ebb9@byu.net>
49694
49695         * lib/getopt.c: Fix typo in last commit.
49696
49697 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49698
49699         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
49700         dgettext.
49701
49702 2006-09-12  Jim Meyering  <jim@meyering.net>
49703
49704         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
49705         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
49706         Reported by Nelson H. F. Beebe.
49707
49708 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49709
49710         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
49711         program_invocation_name and program_invocation_short_name are
49712         initialized.
49713         * lib/argp-namefrob.h: Move declarations of program_invocation_name
49714         and program_invocation_short_name to argp.h, so they are visible
49715         to user programs.
49716         * lib/argp.h: Likewise
49717
49718 2006-09-10  Bruno Haible  <bruno@clisp.org>
49719
49720         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49721         m4/inttypes_h.m4, m4/uintmax_t.m4.
49722
49723 2006-09-10  Bruno Haible  <bruno@clisp.org>
49724
49725         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
49726         gl_AC_TYPE_UINTMAX_T.
49727
49728 2006-09-10  Bruno Haible  <bruno@clisp.org>
49729
49730         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
49731
49732 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49733
49734         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
49735         convention.  Text proposed by Bruno Haible.
49736         (struct argp_option): Document the use of N_() wrappers.
49737
49738         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
49739         '\v', and translate the two parts separately, instead of feeding
49740         the whole string to gettext.  This allows to exclude
49741         '\v' from the strings visible to the translator by writing doc
49742         strings as N_("..") "\v" N_("..").
49743
49744 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
49745
49746         * config/srclist.txt: Undo latest change; the bug was fixed.
49747
49748 2006-09-09  Bruno Haible  <bruno@clisp.org>
49749
49750         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
49751         assignments if building a library without libtool.
49752         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
49753         in func_emit_lib_Makefile_am.
49754         (func_import): When building a static library libfoo.a, arrange to
49755         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
49756         (func_create_testdir): Likewise.
49757         * modules/gc (configure.ac, Makefile.am): If building statically,
49758         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
49759         * modules/iconvme (configure.ac, Makefile.am): Likewise.
49760         * modules/striconv (configure.ac, Makefile.am): Likewise.
49761         Based on a suggestion by Ralf Wildenhues.
49762
49763 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49764
49765         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49766         Check for unistd.h too, since Autoconf doesn't assume POSIX.
49767         Also:
49768
49769         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49770         Add year_2050_test to catch glibc bug 2821
49771         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49772
49773         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49774         Prefer #ifdef to #if.
49775
49776         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
49777         Return from 'main' instead of calling 'exit'.
49778
49779 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49780
49781         * lib/mktime.c (guess_time_tm): Fix bug where mktime
49782         returned the maximum time_t value rather than (time_t) -1.
49783         Problem originally reported by William Bardwell
49784         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49785
49786         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49787         Moved to here ...
49788         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49789         ... from here.
49790
49791 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49792
49793         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
49794         2821 is fixed.
49795
49796 2006-09-08  Jim Meyering  <jim@meyering.net>
49797
49798         Don't make generated files read-only.  That would bother too many
49799         people.  However, do retain the ability to work when targets are
49800         read-only: remove the destination and temporary files before writing
49801         them (when generated via sed or echo), or by using the -f option for
49802         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
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-08  Jim Meyering  <jim@meyering.net>
49811
49812         Avoid new build failure on FreeBSD 6.0.
49813         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
49814         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
49815         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
49816
49817 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49818
49819         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
49820
49821 2006-09-07  Jim Meyering  <jim@meyering.net>
49822
49823         Fix global typo in last change: use chmod u-w, not chmod u-x.
49824         Spotted by Paul Eggert and Bruce Korb.
49825         * modules/alloca-opt, modules/argz, modules/arpa_inet:
49826         * modules/byteswap, modules/configmake, modules/fcntl:
49827         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
49828         * modules/localcharset, modules/netinet_in, modules/poll:
49829         * modules/stdbool, modules/stdint, modules/sys_select:
49830         * modules/sys_socket, modules/sys_stat, modules/sysexits:
49831
49832 2006-09-06  Jim Meyering  <jim@meyering.net>
49833
49834         Make generated files be read-only.
49835         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
49836         Ensure that each generated file is now read-only.
49837         * modules/argz: Likewise.
49838         * modules/arpa_inet: Likewise.
49839         * modules/byteswap: Likewise.
49840         * modules/configmake: Likewise.
49841         * modules/fcntl: Likewise.
49842         * modules/fnmatch: Likewise.
49843         * modules/getopt: Likewise.
49844         * modules/glob: Likewise.
49845         * modules/inttypes: Likewise.
49846         * modules/netinet_in: Likewise.
49847         * modules/poll: Likewise.
49848         * modules/stdbool: Likewise.
49849         * modules/stdint: Likewise.
49850         * modules/sys_select: Likewise.
49851         * modules/sys_socket: Likewise.
49852         * modules/sys_stat: Likewise.
49853         * modules/sysexits: Likewise.
49854         * modules/localcharset: Same as above, but continue using temporary
49855         file named "t-$@" (why different?) rather than the "$@-t" used
49856         everywhere else.
49857
49858         * modules/sysexits (Makefile.am): Replace literal occurrences
49859         of "sysexit.h" more readable, and more consistent, "$@".
49860
49861 2006-09-06  Bruno Haible  <bruno@clisp.org>
49862
49863         * modules/striconv: New file.
49864         * modules/xstriconv: New file.
49865         * MODULES.html.sh (Internationalization functions): Add striconv,
49866         xstriconv.
49867
49868 2006-09-06  Bruno Haible  <bruno@clisp.org>
49869
49870         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
49871         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
49872         not using libtool correctly.
49873
49874 2006-09-06  Bruno Haible  <bruno@clisp.org>
49875
49876         * lib/striconv.h: New file.
49877         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
49878         iconvstring.c.
49879         * lib/xstriconv.h: New file.
49880         * lib/xstriconv.c: New file.
49881
49882 2006-09-06  Bruno Haible  <bruno@clisp.org>
49883
49884         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49885         lib_..._LDFLAGS.
49886
49887 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49888
49889         * lib/argz_.h: Sync from Libtool.
49890
49891         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
49892                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49893
49894         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
49895
49896 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
49897
49898         * modules/trim: New file.
49899
49900 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
49901
49902         * lib/trim.h: New file.
49903         * lib/trim.c: New file.
49904
49905 2006-09-05  Bruno Haible  <bruno@clisp.org>
49906
49907         * MODULES.html.sh (String handling): Add trim.
49908
49909 2006-09-04  Karl Berry  <karl@gnu.org>
49910
49911         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
49912         until next release.
49913
49914 2006-09-03  Bruno Haible  <bruno@clisp.org>
49915
49916         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
49917         correctly.
49918
49919 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49920
49921         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
49922         not gl_GETLOADAVG.  Omit unneeded semicolons.
49923         Problems reported by Ralf Wildenhues in
49924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
49925         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
49926         at the end, which is the usual gnulib style.
49927
49928         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
49929         of doing all the work ourselves.
49930         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
49931         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
49932
49933 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49934
49935         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
49936         Problem reported by Ralf Wildenhues in
49937         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
49938
49939         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
49940         HAVE_STRUCT_STATFS_F_FSTYPENAME.
49941
49942 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49943
49944         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
49945         yesterday's patch by changing test -n to test -z.
49946
49947 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49948
49949         * modules/getloadavg (Files): Add m4/getloadavg.m4.
49950         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
49951         the former is now obsolescent.
49952
49953         * modules/chdir-long (Depends-on): Add fcntl.
49954
49955 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49956
49957         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
49958         obsolescent, and programs should use gnulib instead.
49959         * m4/getloadavg.m4: New file, with contents taken from Autoconf
49960         but with prefixes changed.
49961
49962 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49963
49964         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
49965         or stdbool.h, because they might not exist while configuring.
49966
49967         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
49968         Don't include unistd.h or limits.h; not needed, since chdir-long.h
49969         does that for us.
49970         (O_DIRECTORY): Remove.
49971
49972 2006-08-31  Eric Blake  <ebb9@byu.net>
49973
49974         * gnulib-tool: Don't let emacs change spaces to TAB.
49975
49976 2006-08-31  Bruno Haible  <bruno@clisp.org>
49977
49978         * gnulib-tool: When calling func_import more than once, do it in a
49979         subshell.
49980         Reported by Eric Blake <ebb9@byu.net>.
49981
49982 2006-08-31  Bruno Haible  <bruno@clisp.org>
49983
49984         * gnulib-tool (nl): Remove variable.
49985         (sed_transform_lib_file): Use more robust test for config-h module.
49986         (func_import): Fix typo in 2006-08-25 patch.
49987
49988 2006-08-31  Bruno Haible  <bruno@clisp.org>
49989
49990         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
49991         specified, augment Makefile.am variables instead of assigning them.
49992
49993 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49994
49995         Work around a bug in both the Linux and SunOS 64-bit kernels:
49996         nanosleep mishandles sleeps for longer than 2**31 seconds.
49997         Problem reported by Frank v Waveren in
49998         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
49999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50000         Check for nanosleep bug.
50001         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50002
50003 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50004
50005         Work around a bug in both the Linux and SunOS 64-bit kernels:
50006         nanosleep mishandles sleeps for longer than 2**31 seconds.
50007         Problem reported by Frank v Waveren in
50008         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50009         * lib/nanosleep.c (BILLION): New constant.
50010         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50011         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50012         implementation.
50013
50014 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50015
50016         * modules/nanosleep (Depends-on): Add gettime.
50017
50018 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50019         and Simon Josefsson  <jas@extundo.com>
50020         and Oskar Liljeblad  <oskar@osk.mine.nu>
50021
50022         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50023         * gnulib-tool (func_import): New license type 'unmodifiable license
50024         text'.
50025         * modules/fdl: Use it.  Longer description.
50026         * module/gpl, module/lgpl: New files.
50027
50028 2006-08-30  Jim Meyering  <jim@meyering.net>
50029
50030         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50031         shadowing the parameter.
50032
50033 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50034
50035         Sync from Libtool:
50036
50037         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50038
50039         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50040         sharing with gnulib.  Report by Eric Blake.
50041
50042 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50043
50044         * modules/isapipe: New file.
50045         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50046
50047 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50048
50049         * modules/configmake (Makefile.am): Add a comment, and omit
50050         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50051         by Bruno Haible.
50052
50053 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50054
50055         * m4/isapipe.m4: New file.
50056
50057 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50058
50059         * lib/isapipe.c, lib/isapipe.h: New files.
50060
50061 2006-08-29  Jim Meyering  <jim@meyering.net>
50062
50063         * modules/configmake (Makefile.am): Make configmake.h depend on
50064         Makefile.  Otherwise, a stale configmake.h could hang around.
50065
50066 2006-08-29  Eric Blake  <ebb9@byu.net>
50067
50068         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50069         resolution of upstream bug 3044.
50070
50071 2006-08-29  Bruno Haible  <bruno@clisp.org>
50072
50073         * modules/localcharset (Depends-on): Add configmake.
50074         (Makefile.am): Remove setting of LIBDIR through DEFS.
50075
50076 2006-08-29  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50079         defined.
50080
50081 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50082
50083         * modules/fcntl: New file.
50084         * modules/chdir-safer (Depends-on): Add fcntl.
50085         * modules/fts: Likewise.
50086         * modules/mkdir-p: Likewise.
50087
50088         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50089         This undoes the most recent change, since we're now addressing the
50090         problem in a different way.
50091
50092         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50093         into output, since the output might be called Makefile.am even
50094         if $makefile_name is something different.
50095         (func_import): Use $makefile_am rather than
50096         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50097         empty.
50098
50099         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50100
50101 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50102
50103         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50104         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50105         recent change to stdint.m4, since we're now addressing the problem in a
50106         different way.
50107
50108 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50109
50110         * m4/fcntl_h.m4: New file.
50111
50112 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50113
50114         * lib/fcntl_.h: New file.
50115         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50116         the fcntl module.
50117         * lib/dirchownmod.c: Likewise.
50118         * lib/fts.c: Likewise.
50119
50120         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50121         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50122         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50123         just before including <inttypes.h>, to avoid circular inclusion.
50124
50125 2006-08-28  Jim Meyering  <jim@meyering.net>
50126
50127         * doc/visibility.texi: Actually read and correct the grammar of the
50128         sentence affected by yesterday's change.
50129
50130 2006-08-28  Eric Blake  <ebb9@byu.net>
50131
50132         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50133         needs wrapper.
50134
50135 2006-08-28  Eric Blake  <ebb9@byu.net>
50136
50137         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50138
50139 2006-08-28  Eric Blake  <ebb9@byu.net>
50140
50141         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50142
50143 2006-08-28  Bruno Haible  <bruno@clisp.org>
50144
50145         * modules/c-strstr: New file, from GNU gettext.
50146         * MODULES.html.sh (String handling): Add c-strstr.
50147
50148 2006-08-28  Bruno Haible  <bruno@clisp.org>
50149
50150         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50151         macros.
50152         Reported by Eric Blake.
50153
50154 2006-08-28  Bruno Haible  <bruno@clisp.org>
50155
50156         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50157         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50158         * lib/vasprintf.c: Include errno.h, limits.h.
50159         (EOVERFLOW): New fallback definition.
50160         (vasprintf): Test here whether the string length is > INT_MAX.
50161         * lib/vsnprintf.c: Include errno.h, limits.h.
50162         (EOVERFLOW): New fallback definition.
50163         (vsnprintf): Fix bug when generated string was too long for the buffer.
50164         Test here whether the string length is > INT_MAX.
50165
50166 2006-08-28  Bruno Haible  <bruno@clisp.org>
50167
50168         * lib/inttypes_.h (SCNX*): Remove definitions.
50169         Reported by Eric Blake.
50170
50171 2006-08-28  Bruno Haible  <bruno@clisp.org>
50172
50173         * lib/c-strstr.h: New file, from GNU gettext.
50174         * lib/c-strstr.c: New file, from GNU gettext.
50175
50176 2006-08-28  Bruno Haible  <bruno@clisp.org>
50177
50178         * gnulib-tool: Reorder some statements.
50179
50180 2006-08-28  Bruno Haible  <bruno@clisp.org>
50181
50182         * gnulib-tool: New option --makefile-name.
50183         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50184         $makefile_name.
50185         (func_import): Write $makefile_name to the cache file, and read it from
50186         there unless explicitly specified. Use $makefile_name as file name
50187         instead of Makefile.am. Adjust the recommendations accordingly.
50188
50189 2006-08-28  Bruno Haible  <bruno@clisp.org>
50190
50191         * gnulib-tool (func_verify_module): Check against misapplying patch.
50192
50193 2006-08-28  Bruno Haible  <bruno@clisp.org>
50194
50195         * gnulib-tool (func_relativize, func_relconcat): New functions.
50196         Give an error if --local-dir is given with --update.
50197         Remove trailing slashes from $local_gnulib_dir.
50198         (func_import): Store the relativized $local_gnulib_dir in
50199         gnulib-cache.m4, and read it from there if not specified explicitly.
50200
50201 2006-08-28  Bruno Haible  <bruno@clisp.org>
50202
50203         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50204         is the current directory. Respect also $local_gnulib_dir.
50205
50206 2006-08-28  Bruno Haible  <bruno@clisp.org>
50207             Simon Josefsson  <jas@extundo.com>
50208
50209         BeOS portability.
50210         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50211
50212 2006-08-27  Jim Meyering  <jim@meyering.net>
50213
50214         * doc/visibility.texi: Remove duplicate word: "pointer".
50215
50216 2006-08-26  Bruno Haible  <bruno@clisp.org>
50217
50218         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50219         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50220         (Makefile.am): Create inttypes.h from inttypes_.h.
50221         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50222
50223         * modules/imaxabs: New file.
50224
50225         * modules/imaxdiv: New file.
50226
50227 2006-08-26  Bruno Haible  <bruno@clisp.org>
50228
50229         * m4/inttypes.m4: New file.
50230         * m4/_inttypes_h.m4: Remove file.
50231         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50232         PRI_MACROS_BROKEN.
50233         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50234
50235         * m4/imaxabs.m4: New file.
50236
50237         * m4/imaxdiv.m4: New file.
50238
50239 2006-08-26  Bruno Haible  <bruno@clisp.org>
50240
50241         * lib/inttypes_.h: New file.
50242         * lib/inttypes.h: Remove file.
50243         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50244
50245         * lib/imaxabs.c: New file.
50246
50247         * lib/imaxdiv.c: New file.
50248
50249 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50250
50251         New config-h module, so that "make" output needn't be cluttered
50252         by -DHAVE_CONFIG_H.
50253         * MODULES.html.sh (Support for building libraries and executables):
50254         Add config-h.
50255         * modules/config-h: New file.
50256         * gnulib-tool (nl, sed_transform_lib_file): New vars.
50257         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
50258         the config-h module is used.
50259
50260         New configmake module, so that "make" output needn't be cluttered
50261         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
50262         * MODULES.html.sh (Support for building libraries and executables):
50263         Add configmake.
50264         * modules/configmake: New file.
50265
50266 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50267
50268         * m4/config-h.m4: New file.
50269
50270 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50271
50272         * config/srclist.txt: Add elisp-comp.
50273
50274 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50275
50276         * MODULES.html.sh (Support for building libraries and executables):
50277         Add elisp-comp.
50278         * build-aux/elisp-comp: New file.
50279         * modules/elisp-comp: New file.
50280
50281 2006-08-24  Bruno Haible  <bruno@clisp.org>
50282
50283         * gnulib-tool (func_create_testdir): Use non-default values of
50284         sourcebase and m4base.
50285
50286 2006-08-24  Bruno Haible  <bruno@clisp.org>
50287
50288         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50289         HTML structure.
50290
50291 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50292
50293         * modules/openat (Depends-on): Add lchown.
50294
50295 2006-08-23  Bruno Haible  <bruno@clisp.org>
50296
50297         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50298         of gl_LOCK_EARLY instead of gl_LOCK.
50299
50300 2006-08-23  Bruno Haible  <bruno@clisp.org>
50301
50302         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50303         on OSF/1 to no.
50304         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50305
50306 2006-08-23  Bruno Haible  <bruno@clisp.org>
50307
50308         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50309         as unusable.
50310
50311         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50312         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50313         (gl_LOCK): New macro.
50314
50315 2006-08-22  Simon Josefsson  <jas@extundo.com>
50316
50317         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50318         to md5 module.
50319
50320 2006-08-22  Simon Josefsson  <jas@extundo.com>
50321
50322         * MODULES.html.sh: Add "Support for maintaining and release
50323         projects".
50324
50325         * build-aux/gnupload: New file, from coreutils.
50326
50327 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50328
50329         Avoid the need for AC_LIBSOURCES in m4 macros.
50330         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50331         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50332         * modules/check-version (EXTRA_DIST): Add check-version.h.
50333         * modules/crc (EXTRA_DIST): Add crc.h.
50334         * modules/des (EXTRA_DIST): Add des.h.
50335         * modules/gc (EXTRA_DIST): Add gc.h.
50336         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50337         * modules/getline (EXTRA_DIST): Add getline.h.
50338         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50339         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50340         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50341         * modules/md2 (EXTRA_DIST): Add md2.h.
50342         * modules/md4 (EXTRA_DIST): Add md4.h.
50343         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50344         * modules/read-file (EXTRA_DIST): Add read-file.h.
50345         * modules/readline (EXTRA_DIST): Add readline.h.
50346         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50347         rijndael-api-fst.h.
50348
50349 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50350
50351         * m4/rijndael.m4 (gl_ARCFOUR):
50352         * m4/arctwo.m4 (gl_ARCTWO):
50353         * m4/check-version.m4 (gl_CHECK_VERSION):
50354         * m4/crc.m4 (gl_CRC):
50355         * m4/des.m4 (gl_DES):
50356         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50357         * m4/gc.m4 (gl_GC):
50358         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50359         * m4/getline.m4 (gl_FUNC_GETLINE):
50360         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50361         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50362         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50363         * m4/md2.m4 (gl_MD2):
50364         * m4/md4.m4 (gl_MD4):
50365         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50366         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50367         * m4/readline.m4 (gl_FUNC_READLINE):
50368         * m4/rijndael.m4 (gl_RIJNDAEL):
50369         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50370         to get the necessary .h files and whatnot.
50371
50372 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50373
50374         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50375         gnulib rather than the other way around.
50376         * config/srclistvars.sh (COREUTILS): Remove.
50377
50378 2006-08-22  Jim Meyering  <jim@meyering.net>
50379
50380         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50381
50382         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50383
50384 2006-08-22  Eric Blake  <ebb9@byu.net>
50385
50386         * modules/regexprops-generic: New file.
50387         * MODULES.html.sh (Support for building documentation): List it.
50388
50389 2006-08-22  Eric Blake  <ebb9@byu.net>
50390
50391         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50392         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50393         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50394         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50395
50396 2006-08-22  Bruno Haible  <bruno@clisp.org>
50397
50398         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50399         and lib_LTLIBRARIES like the other lib_* variables.
50400
50401 2006-08-22  Bruno Haible  <bruno@clisp.org>
50402
50403         * build-aux/x-to-1.in: New file, from GNU gettext.
50404
50405 2006-08-22  Bruno Haible  <bruno@clisp.org>
50406
50407         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50408         <utmpx.h> exists.
50409
50410 2006-08-22  Bruno Haible  <bruno@clisp.org>
50411
50412         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
50413         <utmpx.h> exists.
50414
50415 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50416
50417         BeOS portability.
50418         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
50419         exist.
50420         Problem reported by Bruno Haible.
50421
50422 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50423
50424         Avoid the need for AC_LIBSOURCES in m4 macros.
50425         * modules/acl (EXTRA_DIST): Add acl.h.
50426         * modules/argmatch (Files): Add m4/argmatch.m4.
50427         (configure.ac): Add gl_ARGMATCH.
50428         (EXTRA_DIST): Renamed from lib_SOURCES, for
50429         consistency with the other modules.  Remove argmatch.c.
50430         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
50431         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
50432         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
50433         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
50434         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
50435         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
50436         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
50437         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
50438         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
50439         * modules/closeout (EXTRA_DIST): Add closeout.h.
50440         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
50441         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
50442         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
50443         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
50444         dirname.h; remove basename.c and stripslash.c.
50445         * modules/exclude (EXTRA_DIST): Add exclude.h.
50446         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
50447         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
50448         * modules/file-type (EXTRA_DIST): Add file-type.h.
50449         * modules/filemode (EXTRA_DIST): Add filemode.h.
50450         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
50451         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50452         * modules/fpending (EXTRA_DIST): Add __fpending.h.
50453         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
50454         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
50455         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
50456         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
50457         * modules/getdate (EXTRA_DIST): Add getdate.c.
50458         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
50459         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
50460         * modules/getpass (EXTRA_DIST): Add getpass.h.
50461         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
50462         * modules/group-member (EXTRA_DIST): Add group-member.h.
50463         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
50464         * modules/hash (EXTRA_DIST): Add hash.h.
50465         * modules/human (EXTRA_DIST): Add human.h.
50466         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
50467         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
50468         * modules/lchown (EXTRA_DIST): Add lchown.h.
50469         * modules/long-options (EXTRA_DIST): Add long-options.h.
50470         * modules/lstat (EXTRA_DIST): Add lstat.h.
50471         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
50472         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
50473         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
50474         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
50475         * modules/memxor (EXTRA_DIST): Add memxor.h.
50476         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
50477         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
50478         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
50479         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
50480         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
50481         * modules/physmem (EXTRA_DIST): Add physmem.h.
50482         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
50483         * modules/posixver (EXTRA_DIST): Add posixver.h.
50484         * modules/quote (EXTRA_DIST): Add quote.h.
50485         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
50486         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
50487         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
50488         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
50489         regex_internal.h regexec.c.
50490         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
50491         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
50492         * modules/same (EXTRA_DIST): Add same.h.
50493         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
50494         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
50495         * modules/savedir (EXTRA_DIST): Add savedir.h.
50496         * modules/sha1 (EXTRA_DIST): Add sha1.h.
50497         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
50498         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
50499         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
50500         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
50501         * modules/strdup (EXTRA_DIST): Add strdup.h.
50502         * modules/strftime (EXTRA_DIST): Add strftime.h.
50503         * modules/strndup (EXTRA_DIST): Add strndup.h.
50504         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
50505         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
50506         * modules/time_r (EXTRA_DIST): Add time_r.h.
50507         * modules/timespec (EXTRA_DIST): Add timespec.h.
50508         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50509         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
50510         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
50511         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
50512         * modules/userspec (EXTRA_DIST): Add userspec.h.
50513         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
50514         * modules/utimens (EXTRA_DIST): Add utimens.h.
50515         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
50516         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
50517         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
50518         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
50519         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
50520         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
50521         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
50522         * modules/yesno (EXTRA_DIST): Add yesno.h.
50523
50524 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50525
50526         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
50527
50528         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
50529         * m4/dev-ino.m4, same-inode.m4: Remove.
50530
50531         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
50532         * m4/acl.m4 (AC_FUNC_ACL):
50533         * m4/backupfile.m4 (gl_BACKUPFILE):
50534         * m4/c-strtod.m4 (gl_C99_STRTOLD):
50535         * m4/canon-host.m4 (gl_CANON_HOST):
50536         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50537         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
50538         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
50539         * m4/cloexec.m4 (gl_CLOEXEC):
50540         * m4/close-stream.m4 (gl_CLOSE_STREAM):
50541         * m4/closeout.m4 (gl_CLOSEOUT):
50542         * m4/dirfd.m4 (gl_FUNC_DIRFD):
50543         * m4/dirname.m4 (gl_DIRNAME):
50544         * m4/exclude.m4 (gl_EXCLUDE):
50545         * m4/exitfail.m4 (gl_EXITFAIL):
50546         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
50547         * m4/file-type.m4 (gl_FILE_TYPE):
50548         * m4/filemode.m4 (gl_FILEMODE):
50549         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
50550         * m4/fpending.m4 (gl_FUNC_FPENDING):
50551         * m4/fprintftime.m4 (gl_FPRINTFTIME):
50552         * m4/fts.m4 (gl_FUNC_FTS):
50553         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
50554         * m4/getdate.m4 (gl_GETDATE):
50555         * m4/gethrxtime.m4 (gl_GETHRXTIME):
50556         * m4/getpagesize.m4 (gl_GETPAGESIZE):
50557         * m4/getpass.m4 (gl_FUNC_GETPASS):
50558         * m4/gettime.m4 (gl_GETTIME):
50559         * m4/getugroups.m4 (gl_GETUGROUPS):
50560         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
50561         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
50562         * m4/hard-locale.m4 (gl_HARD_LOCALE):
50563         * m4/hash.m4 (gl_HASH):
50564         * m4/idcache.m4 (gl_IDCACHE):
50565         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
50566         * m4/lchown.m4 (gl_FUNC_LCHOWN):
50567         * m4/long-options.m4 (gl_LONG_OPTIONS):
50568         * m4/lstat.m4 (gl_FUNC_LSTAT):
50569         * m4/md5.m4 (gl_MD5):
50570         * m4/memcasecmp.m4 (gl_MEMCASECMP):
50571         * m4/memcoll.m4 (gl_MEMCOLL):
50572         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
50573         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
50574         * m4/memxor.m4 (gl_MEMXOR):
50575         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
50576         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
50577         * m4/modechange.m4 (gl_MODECHANGE):
50578         * m4/mountlist.m4 (gl_MOUNTLIST):
50579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50580         * m4/openat.m4 (gl_FUNC_OPENAT):
50581         * m4/pathmax.m4 (gl_PATHMAX):
50582         * m4/physmem.m4 (gl_PHYSMEM):
50583         * m4/posixtm.m4 (gl_POSIXTM):
50584         * m4/posixver.m4 (gl_POSIXVER):
50585         * m4/quote.m4 (gl_QUOTE):
50586         * m4/quotearg.m4 (gl_QUOTEARG):
50587         * m4/readtokens.m4 (gl_READTOKENS):
50588         * m4/readutmp.m4 (gl_READUTMP):
50589         * m4/regex.m4 (gl_REGEX):
50590         * m4/safe-read.m4 (gl_SAFE_READ):
50591         * m4/safe-write.m4 (gl_SAFE_WRITE):
50592         * m4/same.m4 (gl_SAME):
50593         * m4/save-cwd.m4 (gl_SAVE_CWD):
50594         * m4/savedir.m4 (gl_SAVEDIR):
50595         * m4/settime.m4 (gl_SETTIME):
50596         * m4/sha1.m4 (gl_SHA1):
50597         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
50598         * m4/stat-macros.m4 (gl_STAT_MACROS):
50599         * m4/stat-time.m4 (gl_STAT_TIME):
50600         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
50601         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
50602         * m4/strdup.m4 (gl_FUNC_STRDUP):
50603         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
50604         * m4/strndup.m4 (gl_FUNC_STRNDUP):
50605         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
50606         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
50607         * m4/time_r.m4 (gl_TIME_R):
50608         * m4/timespec.m4 (gl_TIMESPEC):
50609         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
50610         * m4/unlinkdir.m4 (gl_UNLINKDIR):
50611         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
50612         * m4/userspec.m4 (gl_USERSPEC):
50613         * m4/utimecmp.m4 (gl_UTIMECMP):
50614         * m4/utimens.m4 (gl_UTIMENS):
50615         * m4/xalloc.m4 (gl_XALLOC):
50616         * m4/xgetcwd.m4 (gl_XGETCWD):
50617         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
50618         * m4/xreadlink.m4 (gl_XREADLINK):
50619         * m4/xstrtod.m4 (gl_XSTRTOD):
50620         * m4/yesno.m4 (gl_YESNO):
50621         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50622         to get the necessary .h files and whatnot.
50623
50624 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
50625             Bruno Haible  <bruno@clisp.org>
50626
50627         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
50628         /bin/sh understanding of '!' conditional negation.
50629
50630 2006-08-21  Jim Meyering  <jim@meyering.net>
50631
50632         * modules/openat (Depends-on): Really alphabetize.
50633
50634         * modules/acl (Depends-on): Add error and quote.
50635
50636         * check-module (find_included_lib_files): Add at-func.c to the
50637         ok-to-include-more-than-once white list.
50638
50639         * modules/openat (Depends-on): Add lstat.  Alphabetize.
50640
50641 2006-08-21  Bruno Haible  <bruno@clisp.org>
50642
50643         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50644         Emit a pkgdata_DATA variable only if some snippets add contents to it.
50645         Reported by Martin Lambers <marlam@marlam.de>.
50646
50647 2006-08-21  Bruno Haible  <bruno@clisp.org>
50648
50649         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
50650         specify an installation location, don't emit a noinst_LIBRARIES or
50651         noinst_LTLIBRARIES assignment.
50652
50653 2006-08-21  Bruno Haible  <bruno@clisp.org>
50654
50655         BeOS portability.
50656         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
50657         BeOS has mbrtowc() but no <wctype.h>.
50658
50659 2006-08-21  Bruno Haible  <bruno@clisp.org>
50660
50661         BeOS portability.
50662         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
50663         exist.
50664
50665 2006-08-21  Bruno Haible  <bruno@clisp.org>
50666
50667         BeOS portability.
50668         * lib/mbchar.h: Include <wctype.h> only if it exists.
50669
50670 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50671
50672         Remove files that are no longer needed by their respective modules.
50673         * m4/obstack.m4: Remove.
50674         * m4/strerror_r.m4: Remove.
50675         * m4/uint32_t.m4: Remove.
50676         * m4/uintptr_t.m4: Remove.
50677         * m4/ullong_max.m4: Remove.
50678         * m4/xstrtoimax.m4: Remove.
50679         * m4/xstrtoumax.m4: Remove.
50680
50681         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
50682         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
50683         dependencies now capture this.
50684
50685         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
50686         Do not use AC_LIBSOURCES, since gnulib modules now do this.
50687         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
50688         * m4/human.m4 (gl_HUMAN): Likewise.
50689         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
50690         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
50691
50692         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
50693
50694         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
50695         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
50696         stdint.
50697         * m4/human.m4 (gl_HUMAN): Likewise.
50698         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
50699         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
50700         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50701         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50702         * m4/xstrtol (gl_XSTRTOL): Likewise.
50703
50704         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
50705         AC_TYPE_LONG_LONG_INT.
50706         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50707         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
50708         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
50709         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50710
50711         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
50712         on stdbool.
50713
50714         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
50715         (gl_PREREQ_XSTRTOUL): Remove.
50716
50717         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
50718
50719         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
50720         mode.
50721
50722 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50723
50724         Add and change modules to make it easier for coreutils to use
50725         gnulib-tool.
50726         * modules/backupfile (Files): Remove m4/d-ino.m4.
50727         (Depends-on): Add d-ino.
50728         * modules/cycle-check (Depends-on): Add stdint.
50729         (lib_SOURCES): Add cycle-check.h.
50730         * modules/d-ino: New module.
50731         * modules/d-type: New module.
50732         * modules/error (Files): Remove m4/strerror_r.m4.
50733         * modules/filemode (Files): Add m4/st_dm_mode.m4.
50734         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50735         m4/inttypes_h.m4, m4/uintmax_t.m4.
50736         (Depends-on): Add stdint.
50737         (lib_SOURCES): Add fsusage.h.
50738         * modules/getcwd (Files): Remove d-ino.m4.
50739         (Depends-on): Add d-ino.
50740         * modules/getndelim2 (Depends-on): Add stdint.
50741         * modules/glob (Files): Remove m4/d-type.m4.
50742         (Depends-on): Add d-type.
50743         * modules/host-os: New module.
50744         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
50745         m4/inttypes_h.m4, m4/uintmax_t.m4.
50746         * Depends-on: Add stdint.
50747         (lib_SOURCES): Add human.h.
50748         * modules/inttostr (Files): Remove m4/intmax_t.m4,
50749         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
50750         m4/uintmax_t.m4, m4/ulonglong.m4.
50751         (Depends-on): Add stdint.
50752         (EXTRA_DIST): Add inttostr.h.
50753         * modules/lchmod: New module.
50754         * modules/link-follow: New module.
50755         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
50756         (Depends-on): Add lchmod.
50757         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
50758         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
50759         (Depends-on): Add stdint.
50760         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
50761         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
50762         (Depends-on): Add stdint.
50763         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
50764         * modules/perl: New module.
50765         * modules/regex (Depends-on): Add stdint.
50766         * modules/rmdir-errno: New module.
50767         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50768         m4/intmax_t.m4.
50769         (Depends-on): Add stdint.
50770         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50771         m4/uintmax_t.m4.
50772         (Depends-on): Add stdint.
50773         * modules/unlink-busy: New module.
50774         * modules/utimecmp (Depends-on): Add stdint.
50775         * modules/uptime: New module.
50776         * modules/winsz-ioctl: New module.
50777         * modules/winsz-termios: New module.
50778         * modules/xnanosleep (Depends-on): Add nanosleep.
50779         * modules/ullong_max: Remove.
50780         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
50781         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
50782         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
50783         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
50784         (Depends-on): Add inttypes.
50785         (lib_SOURCES): Add xstrtol.h.
50786         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
50787         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
50788         * MODULES.html.sh: Move 'assert' into the assert section.
50789         Move 'dummy' into the linking section.
50790         Remove ullong_max.
50791         Add section for compatibility checks for POSIX:2001 functions,
50792         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
50793         winsz-ioctl, and winsz-termios into it.
50794         Add lchmod.
50795         Add top-level Misc section and put host-os, perl, and uptime
50796         into it.
50797
50798 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50799
50800         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
50801         now assume the stdint module.  Do not include inttypes.h.
50802         * lib/fsusage.h: Likewise.
50803         * lib/getndelim2.c: Likewise.
50804         * lib/human.h: Likewise.
50805         * lib/inttostr.h: Likewise.
50806         * lib/obstack.c: Likewise.
50807         * lib/regex_internal.h: Likewise.
50808         * lib/tempname.c: Likewise.
50809         * lib/utimecmp.c: Likewise.
50810         * lib/xstrtol.h: Likewise.
50811
50812         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
50813
50814         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
50815         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
50816         * lib/xtime.h: Likewise.
50817
50818 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50819
50820         * modules/openat (Files): Add lib/fchmodat.c.
50821         Fixes problem reported by Jay Youngman.
50822
50823 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50824
50825         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
50826         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
50827
50828 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50829             Bruno Haible  <bruno@clisp.org>
50830
50831         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
50832         and is a script that invokes bison. Tighten the code. Add comments.
50833
50834 2006-08-18  Jim Meyering  <jim@meyering.net>
50835
50836         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
50837         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
50838         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
50839         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
50840
50841 2006-08-18  Bruno Haible  <bruno@clisp.org>
50842
50843         * modules/bison-i18n: New file.
50844         * MODULES.html.sh (Internationalization functions): Add it.
50845
50846 2006-08-18  Bruno Haible  <bruno@clisp.org>
50847
50848         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
50849         sys/statvfs.h. When getmntinfo was found, check its declaration and
50850         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
50851
50852 2006-08-18  Bruno Haible  <bruno@clisp.org>
50853
50854         * m4/bison-i18n.m4: New file, from bison.
50855
50856 2006-08-18  Bruno Haible  <bruno@clisp.org>
50857
50858         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
50859         (ME_DUMMY): Treat "kernfs" as a dummy.
50860         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
50861
50862 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50863
50864         Update from coreutils.
50865
50866         2006-08-15  Jim Meyering  <jim@meyering.net>
50867
50868         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
50869
50870         2006-01-17  Jim Meyering  <jim@meyering.net>
50871
50872         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
50873
50874         2006-01-11  Jim Meyering  <jim@meyering.net>
50875
50876         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
50877         Check for the lchmod function.
50878
50879 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50880
50881         Update from coreutils.
50882
50883         * lib/__fpending.h: Add copyright notice.
50884         * lib/fprintftime.h: Likewise.
50885         * lib/savedir.c: Use (C) in copyright notice.
50886         * lib/savedir.h: Likewise.
50887
50888         2006-08-15  Jim Meyering  <jim@meyering.net>
50889
50890         * lib/at-func.c: New file, with the logic of all emulated at-functions.
50891         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
50892         in support of the EXPECTED_ERRNO macro.
50893         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
50894         definitions.  Instead, define the appropriate symbols and include
50895         "at-func.c".
50896         * lib/mkdirat.c (mkdirat): Likewise.
50897         * lib/fchmodat.c (fchmodat): Likewise.
50898         (ENOSYS): Remove definition.
50899         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
50900         it.  Don't include "unistd--.h" -- it wasn't ever used.
50901
50902         2006-01-17  Jim Meyering  <jim@meyering.net>
50903
50904         Rewrite fts.c not to change the current working directory,
50905         by using openat, fstatat, fdopendir, etc..
50906
50907         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
50908         (HAVE_OPENAT_SUPPORT): Define.
50909         [_LIBC] (fchdir): Don't undef or define; no longer used.
50910         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
50911         Now, this `function' always succeeds, and consumes its file descriptor
50912         parameter -- so callers must not close such FDs.  Update callers.
50913         (diropen_fd, opendirat, cwd_advance_fd): New functions.
50914         (diropen): Add parameter, SP.  Adjust all callers.
50915         Implement using diropen_fd, rather than open.
50916         (fts_open): Initialize new member, fts_cwd_fd.
50917         Remove fts_rft-setting code.
50918         (fts_close): Close fts_cwd_fd, if necessary.
50919         (__opendir2): Define in terms of opendir or opendirat,
50920         depending on whether the FST_NOCHDIR flag is set.
50921         (fts_build): Since fts_safe_changedir consumes its FD, and since
50922         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
50923         and close the dup'd file descriptor upon failure.
50924         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
50925         (fts_safe_changedir): Tweak semantics to reflect that this function
50926         now calls cwd_advance_fd and hence consumes its FD argument.
50927         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
50928         [struct FTS] (fts_rft): Remove now-unused member.
50929         [struct FTS] (fts_cycle.state): Improve comment.
50930
50931         * lib/openat.c (openat_needs_fchdir): New function.
50932         * lib/openat.h (openat_needs_fchdir): Declare it.
50933
50934 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50935
50936         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
50937         Problem and fix reported by Pádraig Brady in
50938         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
50939
50940 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50941
50942         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
50943
50944 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50945
50946         * lib/memcoll.c (memcoll): Optimize for the common case where the
50947         arguments are bytewise equal.
50948
50949 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50950
50951         * doc/regexprops-generic.texi: Add a copyright notice.
50952
50953 2006-08-15  Bruno Haible  <bruno@clisp.org>
50954
50955         * modules/tmpdir (License): Change to LGPL.
50956
50957 2006-08-15  Bruno Haible  <bruno@clisp.org>
50958
50959         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
50960         module.
50961
50962 2006-08-14  Simon Josefsson  <jas@extundo.com>
50963
50964         * config/srclist.txt: Add gnupload.
50965
50966 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50967
50968         Change copyright notice from LGPL 2 to GPL 2, since that's the
50969         standard form used in the gnulib repository.
50970         * tests/test-lock.c: Likewise.
50971         * tests/test-stdint.c: Likewise.
50972         * tests/test-tls.c: Likewise.
50973
50974         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
50975         prelude-manager.  User shorter URLs for GNU projects, without '?'.
50976         Add copyright notice.
50977
50978         * check-module: Add copyright notice.  Output a copyright
50979         notice if "--version" is specified.
50980         * modules/COPYING: New file.
50981         * tests/test-getaddrinfo.c: Add copyright notice.
50982         * tests/test-verify.c: Likewise.
50983
50984 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50985
50986         Change copyright notice from LGPL 2 to GPL 2, since that's the
50987         standard form used in the gnulib repository.
50988         * lib/lock.c: LGPL -> GPL.
50989         * lib/lock.h: Likewise.
50990         * lib/strnlen1.c: Likewise.
50991         * lib/strnlen1.h: Likewise.
50992         * lib/tls.c: Likewise.
50993         * lib/tls.h: Likewise.
50994         * lib/tmpdir.c: Likewise.
50995
50996         * lib/TODO: Remove; this belongs only in coreutils.
50997
50998 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50999
51000         Add copyright notices to long-enough files that lack them, since
51001         otherwise the files aren't clearly free.  Use the same notice that
51002         getdate.texi already uses.
51003         * doc/alloca-opt.texi: Add copyright notice.
51004         * doc/alloca.texi: Likewise.
51005         * doc/ctime.texi: Likewise.
51006         * doc/functions.texi: Likewise.
51007         * doc/gcd.texi: Likewise.
51008         * doc/gnulib-tool.texi: Likewise.
51009         * doc/inet_ntoa.texi: Likewise.
51010         * doc/visibility.texi: Likewise.
51011
51012         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51013         * doc/quote.texi: Add copyright notice.
51014
51015         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51016         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51017         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51018         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51019         is now obsolete, and give a pointer to the Sun list.
51020         Add copyright notice.
51021
51022 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51023
51024         * config/srclistvars.sh: Add copyright notice.
51025
51026 2006-08-14  Eric Blake  <ebb9@byu.net>
51027
51028         Import the following change from libc:
51029
51030         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51031
51032         Upstream bug 2997.
51033         * lib/misc/error.c: Add space between program name and message if file
51034         name is missing.
51035
51036 2006-08-12  Karl Berry  <karl@gnu.org>
51037
51038         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51039         remove, these originate in gnulib now.
51040
51041 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51042
51043         * doc/Makefile (standards.info standards.html standards.dvi):
51044         Also depend on make-stds.texi.
51045
51046 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51047
51048         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51049         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51050
51051         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51052         in wchar_t.  Problem reported by Eric Blake.
51053
51054         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51055         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51056         Also, help the compiler to keep LEN in a register.
51057
51058 2006-08-11  Eric Blake  <ebb9@byu.net>
51059
51060         * users.txt: Sort.  Add tar.
51061
51062 2006-08-11  Bruno Haible  <bruno@clisp.org>
51063
51064         * users.txt: New file.
51065
51066 2006-08-11  Bruno Haible  <bruno@clisp.org>
51067
51068         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51069         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51070
51071 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51072
51073         * modules/snprintf (Depends-on): Remove minmax.
51074         (Maintainer): Add self and Bruno.
51075
51076 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51077
51078         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51079         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51080         (EOVERFLOW): Define if the system does not.
51081         Do not include "minmax.h"; it wasn't used.
51082         (snprintf): Don't assume size_t promotes to an unsigned type.
51083         Fix bug when generated string was too long for the buffer: the
51084         buffer's contents are supposed to be the initial prefix of the
51085         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51086         exceeds INT_MAX; do the check ourselves.
51087
51088         Import the following changes from libc:
51089
51090         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51091
51092         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51093         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51094         set wc to the byte which couldn't be converted.
51095         (re_string_reconstruct): Don't clear valid_raw_len before calling
51096         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51097         tip_context using re_string_context_at.
51098
51099         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51100
51101         * lib/posix/regex.h: g++ still cannot handled [restrict].
51102
51103         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51104
51105         * lib/posix/regex.h: Remove special handling for VMS.
51106
51107 2006-08-10  Jim Meyering  <jim@meyering.net>
51108
51109         * modules/same-inode: New module.
51110         * modules/dev-ino: New module.
51111         * modules/cycle-check: Depend on these modules, rather than simply
51112         including their .h files.
51113         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51114         required via m4/cycle-check.m4.
51115         * modules/same: Depend on new same-inode module, rather than
51116         including same-inode.h.
51117         * modules/chdir-safer: New file.
51118
51119         * modules/chown (Depends-on): Add stat-macros.
51120
51121 2006-08-10  Jim Meyering  <jim@meyering.net>
51122
51123         * m4/cycle-check.m4: New file.
51124         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51125         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51126
51127 2006-08-10  Eric Blake  <ebb9@byu.net>
51128
51129         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51130         in from original proposal.
51131
51132 2006-08-10  Eric Blake  <ebb9@byu.net>
51133         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51134
51135         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51136         namespace.
51137
51138 2006-08-10  Bruno Haible  <bruno@clisp.org>
51139
51140         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51141         as well.
51142
51143 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51144
51145         Sync from coreutils.
51146
51147         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51148
51149         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51150         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51151
51152 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51153
51154         * modules/restrict: Remove; no longer needed now that we assume
51155         Autoconf 2.59 or later.
51156         * MODULES.html.sh: Remove 'restrict'.
51157         * modules/argp (Depends-on): Remove 'restrict'.
51158         * modules/base64 (Depends-on): Likewise.
51159         * modules/gc (Depends-on): Likewise.
51160         * modules/getaddrinfo (Depends-on): Likewise.
51161         * modules/glob (Depends-on): Likewise.
51162         * modules/inet_ntop (Depends-on): Likewise.
51163         * modules/inet_pton (Depends-on): Likewise.
51164         * modules/memxor (Depends-on): Likewise.
51165         * modules/regex (Depends-on): Likewise.
51166         * modules/strtok_r (Depends-on): Likewise.
51167         * modules/time_r (Depends-on): Likewise.
51168
51169 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51170
51171         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51172         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51173         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51174         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51175         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51176         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51177         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51178         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51179
51180         Merge from coreutils.
51181         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51182         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51183         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51184         * m4/time_r.m4 (gl_TIME_R): Likewise.
51185
51186 2006-08-09  Karl Berry  <karl@gnu.org>
51187
51188         * config/srclist.txt: no more gettext-tools, per Bruno.
51189
51190 2006-08-08  Eric Blake  <ebb9@byu.net>
51191
51192         * modules/verror: New module.
51193         * MODULES.html.sh: Document it.
51194
51195 2006-08-08  Eric Blake  <ebb9@byu.net>
51196
51197         * lib/verror.h, lib/verror.c: New files.
51198
51199 2006-08-08  Eric Blake  <ebb9@byu.net>
51200
51201         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51202         verror_at_line output complies with GNU Coding Standards even when
51203         file is NULL.
51204
51205 2006-08-07  Bruno Haible  <bruno@clisp.org>
51206
51207         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51208         versions of AIX.
51209         Reported by Ralf Wildenhues.
51210
51211 2006-08-07  Bruno Haible  <bruno@clisp.org>
51212
51213         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51214         in an AC_DEFUN. Needed so that the autoconf snippets can use
51215         AC_REQUIRE.
51216
51217 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51218
51219         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51220         Initialize pkgdata_DATA.
51221         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51222         overriding it.
51223
51224 2006-08-06  Eric Blake  <ebb9@byu.net>
51225
51226         * lib/error.h: Fold in some upstream changes from glibc.
51227         * lib/error.c: Likewise.
51228
51229 2006-08-04  Bruno Haible  <bruno@clisp.org>
51230
51231         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51232         Make the mostlyclean-local rule depend on mostlyclean-generic.
51233         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51234
51235 2006-07-31  Bruno Haible  <bruno@clisp.org>
51236
51237         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51238         <stdlib.h>, <string.h>.
51239
51240 2006-07-30  Bruno Haible  <bruno@clisp.org>
51241
51242         * modules/readlink (License): Change to LGPL.
51243
51244 2006-07-30  Bruno Haible  <bruno@clisp.org>
51245
51246         * modules/javaversion (Makefile.am): Distribute javaversion.java and
51247         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
51248         set PKGDATADIR to point to it.
51249
51250 2006-07-30  Bruno Haible  <bruno@clisp.org>
51251
51252         * modules/csharpexec (configure.ac): Comment out macro invocation.
51253         * modules/javaexec (configure.ac): Likewise.
51254         * modules/javacomp-script (configure.ac): Likewise.
51255
51256         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
51257
51258 2006-07-30  Bruno Haible  <bruno@clisp.org>
51259
51260         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
51261         linked-list.
51262
51263 2006-07-30  Bruno Haible  <bruno@clisp.org>
51264
51265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
51266
51267 2006-07-30  Bruno Haible  <bruno@clisp.org>
51268
51269         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51270         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
51271         get removed.
51272
51273 2006-07-29  Bruno Haible  <bruno@clisp.org>
51274
51275         Make it possible for gnulib-tool to work with locally modified or
51276         augmented gnulib repositories.
51277         * gnulib-tool (func_usage): Document --local-dir option.
51278         (local_gnulib_dir): New variable.
51279         Handle --local-dir option.
51280         (func_lookup_file): New function.
51281         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
51282         (func_get_description, func_get_filelist, func_get_description,
51283         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
51284         func_get_automake_snippet, func_get_include_directive,
51285         func_get_license, func_get_maintainer): Use func_lookup_file.
51286         (func_import, func_create_testdir): Use func_lookup_file.
51287
51288 2006-07-29  Bruno Haible  <bruno@clisp.org>
51289
51290         * modules/setenv (Depends-on): Add unistd.
51291
51292 2006-07-29  Bruno Haible  <bruno@clisp.org>
51293
51294         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51295
51296 2006-07-29  Bruno Haible  <bruno@clisp.org>
51297
51298         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51299
51300 2006-07-29  Bruno Haible  <bruno@clisp.org>
51301
51302         * gnulib-tool (import, update): If there is no Makefile.am, look at
51303         aclocal.m4, instead of bailing out.
51304
51305 2006-07-29  Bruno Haible  <bruno@clisp.org>
51306
51307         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51308         Categorize the options by when they are useful.
51309
51310 2006-07-29  Bruno Haible  <bruno@clisp.org>
51311
51312         * gnulib-tool (func_usage): Document option --no-libtool.
51313         Handle option --no-libtool.
51314         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51315         for changed semantics of $libtool variable.
51316         (func_import): Likewise. If libtool is not used, show this through
51317         an option --no-libtool.
51318         (func_create_testdir): Update.
51319
51320 2006-07-29  Bruno Haible  <bruno@clisp.org>
51321
51322         * gnulib-tool (func_import): Extend error message about missing
51323         --doc-base.
51324
51325 2006-07-29  Bruno Haible  <bruno@clisp.org>
51326
51327         * gnulib-tool (func_import): Don't create the $docbase directory if
51328         there is no file to store there.
51329
51330 2006-07-29  Bruno Haible  <bruno@clisp.org>
51331
51332         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51333         relevant, look for configure.ac there, not in the current directory.
51334         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51335
51336 2006-07-29  Bruno Haible  <bruno@clisp.org>
51337
51338         * gnulib-tool (SORT): New variable.
51339         (func_usage): Undocument --assume-autoconf option.
51340         Remove --assume-autoconf option handling.
51341         (autoconf_minversion): Determine from the contents of configure.ac.
51342         (func_import): Remove autoconf_minversion handling.
51343         Suggested by Eric Blake.
51344
51345 2006-07-29  Bruno Haible  <bruno@clisp.org>
51346
51347         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51348
51349 2006-07-29  Bruno Haible  <bruno@clisp.org>
51350
51351         * config/srclist.txt (*setenv.[ch]): Remove rules.
51352
51353 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51354
51355         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51356
51357 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51358
51359         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51360         arpa/inet.h.
51361
51362 2006-07-28  Simon Josefsson  <jas@extundo.com>
51363
51364         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51365         * modules/inet_pton (Depends-on): Likewise.
51366
51367 2006-07-28  Simon Josefsson  <jas@extundo.com>
51368
51369         * m4/netinet_in_h.m4: New file.
51370
51371 2006-07-28  Simon Josefsson  <jas@extundo.com>
51372
51373         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51374         #include's.
51375
51376 2006-07-28  Simon Josefsson  <jas@extundo.com>
51377
51378         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51379         #include's.
51380
51381 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51382
51383         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51384         setgid on directories only if they set these bits.
51385         * lib/modechange.h: Remove obsolete comment about masks.
51386
51387 2006-07-28  Eric Blake  <ebb9@byu.net>
51388
51389         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51390         macro expansion.
51391
51392 2006-07-28  Bruno Haible  <bruno@clisp.org>
51393
51394         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51395
51396 2006-07-28  Bruno Haible  <bruno@clisp.org>
51397
51398         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51399
51400 2006-07-28  Bruno Haible  <bruno@clisp.org>
51401
51402         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51403         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51404         Define fallbacks.
51405         Avoids link error on FreeBSD 4.x.
51406         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51407
51408         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51409         encoding.
51410         * lib/mbswidth.c (iswcntrl): Likewise.
51411
51412 2006-07-27  Bruno Haible  <bruno@clisp.org>
51413
51414         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
51415         test.
51416
51417 2006-07-27  Bruno Haible  <bruno@clisp.org>
51418
51419         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
51420         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
51421         defined.
51422
51423 2006-07-26  Eric Blake  <ebb9@byu.net>
51424
51425         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
51426
51427 2006-07-26  Eric Blake  <ebb9@byu.net>
51428
51429         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
51430         like mingw that lack mkstemp.
51431         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
51432         avoid compilation warning on mingw.
51433
51434 2006-07-26  Bruno Haible  <bruno@clisp.org>
51435
51436         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
51437         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
51438         INT_FAST*_MIN, INTPTR_MIN.
51439
51440 2006-07-25  Bruno Haible  <bruno@clisp.org>
51441
51442         * modules/version-etc (Depends-on): Add stdarg.
51443
51444 2006-07-25  Bruno Haible  <bruno@clisp.org>
51445
51446         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
51447         complex commands.
51448
51449 2006-07-25  Bruno Haible  <bruno@clisp.org>
51450
51451         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
51452         defined in <stdarg.h> or config.h.
51453
51454 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51455
51456         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
51457         (gl_STDIO_SAFER): Remove.
51458
51459 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51460
51461         * MODULES.html.sh (File stream based Input/Output):
51462         Add fopen-safer, tmpfile-safer; remove stdio-safer.
51463         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
51464         * modules/fopen-safer, modules/tmpfile-safer: New files.
51465         * modules/stdio-safer: Remove.
51466
51467 2006-07-24  Bruno Haible  <bruno@clisp.org>
51468
51469         * modules/tmpdir: New file.
51470         * MODULES.html.sh (File system functions): Add it.
51471
51472 2006-07-24  Bruno Haible  <bruno@clisp.org>
51473
51474         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
51475         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
51476
51477 2006-07-24  Bruno Haible  <bruno@clisp.org>
51478
51479         * modules/clean-temp: New file.
51480
51481 2006-07-24  Bruno Haible  <bruno@clisp.org>
51482
51483         * m4/tmpdir.m4: New file, from GNU gettext.
51484
51485 2006-07-24  Bruno Haible  <bruno@clisp.org>
51486
51487         * lib/tmpdir.h: New file, from GNU gettext.
51488         * lib/tmpdir.c: New file, from GNU gettext.
51489
51490 2006-07-24  Bruno Haible  <bruno@clisp.org>
51491
51492         * lib/clean-temp.h: New file, from GNU gettext.
51493         * lib/clean-temp.c: New file, from GNU gettext.
51494
51495 2006-07-23  Eric Blake  <ebb9@byu.net>
51496
51497         * modules/stdio-safer (Files): Add tmpfile-safer.c.
51498         (Depends-on): Add binary-io.
51499
51500 2006-07-23  Eric Blake  <ebb9@byu.net>
51501
51502         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
51503
51504 2006-07-23  Eric Blake  <ebb9@byu.net>
51505
51506         * lib/tmpfile-safer.c: New file.
51507         * lib/stdio-safer.h (fopen_safer): Add prototype.
51508         * lib/stdio--.h (tmpfile): Make safer.
51509
51510 2006-07-23  Bruno Haible  <bruno@clisp.org>
51511
51512         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
51513         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
51514         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
51515         gl_linked_remove_at): Use it.
51516
51517 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51518         and Simon Josefsson <jas@extundo.com>
51519
51520         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
51521
51522         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
51523
51524 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51525
51526         * modules/close-stream: New file.
51527         * modules/closeout (Description): Make it clear that it exits
51528         with a diagnostic on error.
51529         (Depends-on): Add close-stream.  Remove fpending, stdbool.
51530         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
51531
51532 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51533
51534         * m4/close-stream.m4: New file.
51535
51536 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51537
51538         * lib/close-stream.c, lib/close-stream.h: New files.
51539
51540 2006-07-22  Bruno Haible  <bruno@clisp.org>
51541
51542         Merge from GNU gettext 0.15.
51543
51544         2006-05-01  Bruno Haible  <bruno@clisp.org>
51545
51546                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
51547
51548         2006-07-22  Bruno Haible  <bruno@clisp.org>
51549
51550                 * modules/javaversion: New file.
51551                 * MODULES.html.sh (Java): Add javaversion.
51552
51553         2006-03-12  Bruno Haible  <bruno@clisp.org>
51554
51555                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
51556
51557         2005-12-04  Bruno Haible  <bruno@clisp.org>
51558
51559                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
51560                 (untested).
51561
51562         2006-06-21  Bruno Haible  <bruno@clisp.org>
51563
51564                 Avoid warnings from recent versions of mcs.
51565                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
51566                 -o, -L, -r any more. Use options documented since mcs-1.0
51567                 instead. Similarly for -g.
51568
51569         2005-12-04  Bruno Haible  <bruno@clisp.org>
51570
51571                 * build-aux/csharpcomp.sh.in: Suffix for resources is
51572                 .resources, not .resource.
51573
51574         2005-07-09  Bruno Haible  <bruno@clisp.org>
51575
51576                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
51577                 add a .dll suffix.
51578                 Reported by Mark Junker <mjscod@gmx.de>.
51579
51580         2006-07-22  Bruno Haible  <bruno@clisp.org>
51581
51582                 * modules/gettext: Upgrade to gettext-0.15.
51583                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
51584                 m4/visibility.m4.
51585                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
51586
51587 2006-07-22  Bruno Haible  <bruno@clisp.org>
51588
51589         Merge from GNU gettext 0.15.
51590
51591         2006-03-25  Bruno Haible  <bruno@clisp.org>
51592
51593                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
51594
51595         2006-07-21  Bruno Haible  <bruno@clisp.org>
51596
51597                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
51598                 "1.1".
51599
51600         2006-05-09  Bruno Haible  <bruno@clisp.org>
51601
51602                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
51603                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
51604                 for the conftestver execution.
51605
51606         2006-05-01  Bruno Haible  <bruno@clisp.org>
51607
51608                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
51609                 optional target-version argument. Verify that the compiler
51610                 groks source of the specified source-version, or add -source
51611                 option as necessary. Verify that the compiler produces
51612                 bytecode in the specified target-version, or add -target and
51613                 -source options as necessary. Make the result of the test
51614                 available as variable CONF_JAVAC. Also log error output in
51615                 config.log.
51616
51617         2006-03-11  Bruno Haible  <bruno@clisp.org>
51618
51619                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
51620
51621         2006-05-09  Bruno Haible  <bruno@clisp.org>
51622
51623                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
51624                 CLASSPATH_SEPARATOR to a semicolon.
51625
51626         2006-03-12  Bruno Haible  <bruno@clisp.org>
51627
51628                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
51629                 available as variable CONF_JAVA, for subsequent autoconf
51630                 tests. Also log error output in config.log.
51631
51632         2006-07-19  Bruno Haible  <bruno@clisp.org>
51633
51634                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
51635                 that getline works on glibc2 systems. Needed to avoid trouble
51636                 in relocatable.c.
51637                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
51638
51639         2005-12-04  Bruno Haible  <bruno@clisp.org>
51640
51641                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
51642                 launcher (untested).
51643
51644         2005-12-04  Bruno Haible  <bruno@clisp.org>
51645
51646                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
51647
51648         2006-07-22  Bruno Haible  <bruno@clisp.org>
51649
51650                 * gettext.m4: Update from GNU gettext-0.15.
51651                 * nls.m4: Likewise.
51652                 * po.m4: Likewise.
51653                 * inttypes-pri.m4: Likewise.
51654                 * inttypes-h.m4: Renamed from inttypes.m4.
51655                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
51656
51657 2006-07-22  Bruno Haible  <bruno@clisp.org>
51658
51659         Merge from GNU gettext 0.15.
51660
51661         2005-07-05  Bruno Haible  <bruno@clisp.org>
51662
51663                 * printf-args.c (printf_fetchargs): Work around broken
51664                 definition of wint_t on mingw.
51665
51666         2005-02-12  Bruno Haible  <bruno@clisp.org>
51667
51668                 * xallocsa.h: Add extern "C" for C++.
51669
51670         2006-05-17  Bruno Haible  <bruno@clisp.org>
51671
51672                 Cygwin portability.
51673                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
51674
51675         2006-04-30  Bruno Haible  <bruno@clisp.org>
51676
51677                 * progreloc.c: Include <mach-o/dyld.h> if available.
51678                 (find_executable): Use _NSGetExecutablePath when possible.
51679
51680         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51681
51682                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
51683                 function.
51684
51685         2005-12-29  Bruno Haible  <bruno@clisp.org>
51686
51687                 * progreloc.c (set_program_name_and_installdir): Fix
51688                 compilation error.
51689
51690         2005-12-04  Bruno Haible  <bruno@clisp.org>
51691
51692                 Cygwin portability.
51693                 * progreloc.c: Include <windows.h> also on Cygwin.
51694                 (find_executable): Add support for Cygwin.
51695                 (set_program_name_and_installdir): Handle also platforms with
51696                 nonempty EXEEXT.
51697
51698         2006-07-11  Bruno Haible  <bruno@clisp.org>
51699
51700                 * javacomp.c: Fix a comment.
51701                 Reported by Jim Meyering.
51702
51703         2006-04-30  Bruno Haible  <bruno@clisp.org>
51704
51705                 * javacomp.h (compile_java_class): Add source_version,
51706                 target_version arguments.
51707                 * javacomp.c: Rewritten to choose only a compiler that
51708                 respects the specified source_version and target_version.
51709
51710         2006-06-27  Bruno Haible  <bruno@clisp.org>
51711
51712                 Assume correct S_ISDIR macro.
51713                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
51714
51715         2006-07-22  Bruno Haible  <bruno@clisp.org>
51716
51717                 * javaversion.h: New file, from GNU gettext.
51718                 * javaversion.c: New file, from GNU gettext.
51719                 * javaversion.java: New file, from GNU gettext.
51720                 * javaversion.class: New file, from GNU gettext.
51721
51722         2006-05-17  Bruno Haible  <bruno@clisp.org>
51723
51724                 Cygwin portability.
51725                 * javaexec.c (execute_java_class): Test for jview program
51726                 also on Cygwin.
51727
51728         2006-04-09  Bruno Haible  <bruno@clisp.org>
51729
51730                 * fatal-signal.c: Don't include string.h.
51731                 (at_fatal_signal): Use a copying loop instead of memcpy.
51732
51733         2005-12-04  Bruno Haible  <bruno@clisp.org>
51734
51735                 * csharpexec.c: Add support for 'clix' launcher (untested).
51736                 (execute_csharp_using_sscli): New function.
51737                 (execute_csharp_program): Call it.
51738
51739         2006-06-21  Bruno Haible  <bruno@clisp.org>
51740
51741                 Avoid warnings from recent versions of mcs.
51742                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
51743                 -o, -L, -r any more. Use options documented since mcs-1.0
51744                 instead. Similarly for -g.
51745
51746         2005-07-09  Bruno Haible  <bruno@clisp.org>
51747
51748                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
51749                 add a .dll suffix.
51750                 Reported by Mark Junker <mjscod@gmx.de>.
51751
51752         2006-06-17  Bruno Haible  <bruno@clisp.org>
51753
51754                 * config.charset: Update for NetBSD 3.0.
51755
51756         2006-05-17  Bruno Haible  <bruno@clisp.org>
51757
51758                 Cygwin portability.
51759                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
51760
51761         2006-05-16  Bruno Haible  <bruno@clisp.org>
51762
51763                 * localcharset.c [CYGWIN]: Include <windows.h>.
51764                 (get_charset_aliases): For Cygwin, return the same CPxxx
51765                 aliases list as under WIN32.
51766                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
51767                 the environment variables. Fall back to GetACP().
51768
51769         2006-04-05  Bruno Haible  <bruno@clisp.org>
51770
51771                 * config.charset: Update Juan Manuel Guerrero's address.
51772
51773         2005-02-12  Bruno Haible  <bruno@clisp.org>
51774
51775                 * allocsa.h: Add extern "C" for C++.
51776
51777         2005-02-10  Bruno Haible  <bruno@clisp.org>
51778
51779                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
51780                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
51781
51782         2006-07-22  Bruno Haible  <bruno@clisp.org>
51783
51784                 * gettext.h: Update to GNU gettext-0.15.
51785
51786 2006-07-22  Bruno Haible  <bruno@clisp.org>
51787
51788         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
51789         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
51790         lib-prefix.m4, longdouble.m4, ssize_t.m4.
51791
51792 2006-07-21  Eric Blake  <ebb9@byu.net>
51793
51794         * modules/stdlib-safer: New file.
51795         * MODULES.html.sh (File stream based Input/Output): Add
51796         stdlib-safer.
51797
51798 2006-07-21  Eric Blake  <ebb9@byu.net>
51799
51800         * lib/stdlib-safer.h: New file from coreutils, required by
51801         stdlib--.h.
51802
51803 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
51806
51807 2006-07-20  Bruno Haible  <bruno@clisp.org>
51808
51809         * gnulib-tool: Recognize new option --assume-autoconf.
51810         (autoconf_minversion): New variable.
51811         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
51812
51813 2006-07-20  Bruno Haible  <bruno@clisp.org>
51814
51815         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
51816
51817 2006-07-19  Derek R. Price  <derek@ximbiot.com>
51818
51819         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
51820         Reindent and repaginate.
51821
51822 2006-07-19  Derek Price  <derek@ximbiot.com>
51823
51824         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
51825         Correct grammar.
51826
51827 2006-07-17  Bruno Haible  <bruno@clisp.org>
51828
51829         * modules/list: New file.
51830         * modules/array-list: New file.
51831         * modules/carray-list, modules/carray-list-tests: New files.
51832         * modules/linked-list, modules/linked-list-tests: New files.
51833         * modules/avltree-list, modules/avltree-list-tests: New files.
51834         * modules/rbtree-list, modules/rbtree-list-tests: New files.
51835         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
51836         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
51837         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
51838         * modules/oset: New file.
51839         * modules/array-oset: New file.
51840         * modules/avltree-oset, modules/avltree-oset-tests: New files.
51841         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
51842         * tests/test-carray_list.c: New file.
51843         * tests/test-linked_list.c: New file.
51844         * tests/test-avltree_list.c: New file.
51845         * tests/test-rbtree_list.c: New file.
51846         * tests/test-linkedhash_list.c: New file.
51847         * tests/test-avltreehash_list.c: New file.
51848         * tests/test-rbtreehash_list.c: New file.
51849         * tests/test-avltree_oset.c: New file.
51850         * tests/test-rbtree_oset.c: New file.
51851         * MODULES.html.sh (Container data structures): New section.
51852
51853 2006-07-17  Bruno Haible  <bruno@clisp.org>
51854
51855         * m4/gl_list.m4: New file.
51856
51857 2006-07-17  Bruno Haible  <bruno@clisp.org>
51858
51859         * lib/gl_list.h: New file.
51860         * lib/gl_list.c: New file.
51861         * lib/gl_array_list.h: New file.
51862         * lib/gl_array_list.c: New file.
51863         * lib/gl_carray_list.h: New file.
51864         * lib/gl_carray_list.c: New file.
51865         * lib/gl_linked_list.h: New file.
51866         * lib/gl_linked_list.c: New file.
51867         * lib/gl_anylinked_list1.h: New file.
51868         * lib/gl_anylinked_list2.h: New file.
51869         * lib/gl_avltree_list.h: New file.
51870         * lib/gl_avltree_list.c: New file.
51871         * lib/gl_anyavltree_list1.h: New file.
51872         * lib/gl_anyavltree_list2.h: New file.
51873         * lib/gl_rbtree_list.h: New file.
51874         * lib/gl_rbtree_list.c: New file.
51875         * lib/gl_anyrbtree_list1.h: New file.
51876         * lib/gl_anyrbtree_list2.h: New file.
51877         * lib/gl_anytree_list1.h: New file.
51878         * lib/gl_anytree_list2.h: New file.
51879         * lib/gl_linkedhash_list.h: New file.
51880         * lib/gl_linkedhash_list.c: New file.
51881         * lib/gl_anyhash_list1.h: New file.
51882         * lib/gl_anyhash_list2.h: New file.
51883         * lib/gl_avltreehash_list.h: New file.
51884         * lib/gl_avltreehash_list.c: New file.
51885         * lib/gl_rbtreehash_list.h: New file.
51886         * lib/gl_rbtreehash_list.c: New file.
51887         * lib/gl_anytreehash_list1.h: New file.
51888         * lib/gl_anytreehash_list2.h: New file.
51889
51890         * lib/gl_oset.h: New file.
51891         * lib/gl_oset.c: New file.
51892         * lib/gl_array_oset.h: New file.
51893         * lib/gl_array_oset.c: New file.
51894         * lib/gl_avltree_oset.h: New file.
51895         * lib/gl_avltree_oset.c: New file.
51896         * lib/gl_rbtree_oset.h: New file.
51897         * lib/gl_rbtree_oset.c: New file.
51898         * lib/gl_anytree_oset.h: New file.
51899
51900 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51901
51902         * m4/mkancesdirs.m4: New file.
51903         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
51904         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
51905         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
51906         it.
51907
51908 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51909
51910         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
51911         * lib/mkancesdirs.h: New files.
51912         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
51913         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
51914         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
51915         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
51916         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
51917         callers changed.  Revamp internals significantly, by not
51918         attempting to create directories that are temporarily more
51919         permissive than the final results.  Do not attempt to use
51920         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
51921         This removes some race conditions, fixes some bugs, and simplifies
51922         things.  Use new dirchownmod function to do owner and mode changes.
51923         * lib/mkdir-p.h: Likewise.
51924         * lib/modechange.c (octal_to_mode): New function.
51925         (struct mode_change): New member mentioned.
51926         (make_node_op_equals): New arg mentioned.  All callers changed.
51927         (mode_compile): Keep track of which mode bits the user has explicitly
51928         mentioned.
51929         (mode_adjust): New arg DIR, so that we implement the X op correctly.
51930         New arg PMODE_BITS, to keep track of which mode bits the user
51931         mentioned; it treats S_ISUID and S_ISGID speciall.
51932         All callers changed.
51933         * lib/modechange.h: Likewise.
51934
51935 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51936
51937         * MODULES.html.sh: Add mkancestors.
51938         * modules/mkancesdirs: New module.
51939         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
51940         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
51941         The chdir-safer and afs files are now orphans; I'll remove them
51942         unless someone speaks up.
51943         Add lib/dirchownmod.c, lib/dirchownmod.h.
51944         (Depends-on): Remove alloca, chown, save-cwd, dirname.
51945         Add lchown, mkancesdirs.
51946         (Maintainer): Add self.
51947
51948 2006-07-15  Karl Berry  <karl@gnu.org>
51949
51950         * gnulib-tool: help message wording/arrangement.
51951
51952 2006-07-14  Simon Josefsson  <jas@extundo.com>
51953
51954         * doc/gnulib.texi (Libtool and Windows): New section.
51955
51956 2006-07-12  Simon Josefsson  <jas@extundo.com>
51957
51958         * modules/gendocs (License): Fix license, approved by Karl.
51959
51960 2006-07-12  Eric Blake  <ebb9@byu.net>
51961
51962         * MODULES.html.sh: Add gendocs.
51963
51964 2006-07-11  Eric Blake  <ebb9@byu.net>
51965
51966         * modules/fdl: New module, to install doc/fdl.texi.
51967         * MODULES.html.sh: Add new section for documentation modules.
51968         * gnulib-tool: Avoid space-tab.
51969         (--doc-base): New option, to manage files from doc.
51970
51971 2006-07-11  Eric Blake  <ebb9@byu.net>
51972
51973         * m4/absolute-header.m4: Fix comments to match recent change.
51974
51975 2006-07-11  Eric Blake  <ebb9@byu.net>
51976
51977         * gnulib-tool: List --doc-base before --tests-base.
51978
51979 2006-07-11  Derek R. Price  <derek@ximbiot.com>
51980
51981         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
51982
51983 2006-07-11  Bruno Haible  <bruno@clisp.org>
51984
51985         * README: Mention where to put documentation.
51986
51987 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51988
51989         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
51990
51991 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
51992
51993         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
51994         to stdint.m4.
51995
51996 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
51997
51998         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
51999         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52000         "no/such/file/stdint.h" when there is no such file, so that
52001         the resulting C code can be parsed by dodgy compilers.
52002         Problems reported by Bob Proulx.
52003
52004 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52005
52006         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52007         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52008         macros into the GNU _D_EXACT_NAMLEN.
52009         * lib/savedir.c:  Likewise.
52010         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52011
52012 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52013         and Paul Eggert  <eggert@cs.ucla.edu>
52014
52015         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52016         * m4/savedir.m4:
52017         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52018         macros into the GNU _D_EXACT_NAMLEN.
52019
52020 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52021
52022         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52023         around the absolute name, to work around a problem with the HP-UX
52024         11.23 native C compiler, reported by Bob Proulx.
52025
52026 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52027
52028         * doc/maintain.texi, make-stds.texi: Sync from
52029         <http://savannah.gnu.org/projects/gnustandards>.
52030
52031 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52032
52033         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52034
52035 2006-07-09  Jim Meyering  <jim@meyering.net>
52036
52037         * m4/glob.m4: Remove a doubled word in a comment.
52038
52039 2006-07-09  Jim Meyering  <jim@meyering.net>
52040
52041         * lib/argp-pv.c: Remove a doubled word in a comment.
52042         * lib/check-version.c (check_version): Likewise.
52043         * lib/javacomp.c (compile_java_class): Likewise.
52044
52045 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52046
52047         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52048         for the benefit of people using Autoconf 2.60.  If you want to
52049         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52050         (or m4/onceonly.m4, if pre-2.57) manually.
52051
52052 2006-07-08  Jim Meyering  <jim@meyering.net>
52053
52054         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52055         comment.
52056         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52057         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52058         comment.
52059
52060 2006-07-08  Jim Meyering  <jim@meyering.net>
52061
52062         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52063
52064 2006-07-07  Simon Josefsson  <jas@extundo.com>
52065
52066         * tests/test-crc.c: Change expected crc value, the test vector
52067         were probably computed using the old broken crc.c?
52068
52069 2006-07-06  Simon Josefsson  <jas@extundo.com>
52070
52071         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52072         now the canonical place for the M4 file).
52073
52074         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52075         from the sys_socket dependency now.
52076
52077         * modules/inet_pton (Files): Ditto.
52078
52079         * modules/inet_ntop (Files): Ditto.
52080
52081 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52082
52083         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52084         not gl_PREREQ_GETUSERSHELL.
52085
52086 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52087
52088         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52089         with only one argument, for Autoconf 2.60.
52090         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52091         expand to nothing, so add a shell command to avoid syntax error.
52092         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52093
52094 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52095
52096         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52097
52098 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52099
52100         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52101         no longer needed.  Check for isblank decl.
52102         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52103         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52104         of existence.
52105
52106 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52107
52108         * lib/getloadavg.c: Use __VMS, not VMS.
52109         * lib/getopt.c: Likewise.
52110         * lib/getpagesize.h: Likewise.
52111         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52112         and probably does not work.
52113
52114 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52115
52116         * lib/.cppi-disable: Add wcwidth.
52117         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52118         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52119         (ISGRAPH): Remove.  All uses changed to isgraph.
52120         (FOLD) [!defined _LIBC]: Remove special case.
52121         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52122         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52123         HAVE_ISBLANK.
52124         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52125         case.
52126
52127 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52128
52129         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52130         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52131         brackets.  Other minor changes to suppress some compiler
52132         warnings.
52133
52134 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52135         and Paul Eggert  <eggert@cs.ucla.edu>
52136
52137         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52138         of invoking obsolescent AC_HEADER_DIRENT macro.
52139         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52140         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52141         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52142         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52143         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52144         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52145         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52146         * m4/readdir.m4: Remove; no longer needed.
52147
52148 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52149         and Paul Eggert  <eggert@cs.ucla.edu>
52150
52151         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52152         Don't worry about this obsolete case any more.
52153         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52154         directories.
52155         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52156         worry about this obsolete case any more.
52157         * lib/fts.c: Likewise.
52158         * lib/getcwd.c: Likewise.
52159         * lib/glob.h: Likewise.
52160         * lib/savedir.c: Likewise.
52161
52162 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52163
52164         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52165         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52166         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52167         needed.
52168         All uses removed.
52169         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52170         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52171         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52172         needed.
52173         * m4/getdate.m4 (gl_GETDATE): Likewise.
52174         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52175         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52176         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52177         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52178         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52179         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52180         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52181         needed.
52182
52183 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52184
52185         * lib/memcasecmp.c: Include <limits.h>.
52186         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52187         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52188         Don't assume isdigit succeeds only on '0' through '9'.
52189
52190 2006-07-05  Eric Blake  <ebb9@byu.net>
52191
52192         * modules/getaddrinfo (Depends-on): Add snprintf.
52193
52194 2006-07-05  Eric Blake  <ebb9@byu.net>
52195
52196         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52197         to avoid 'header present but could not be compiled' on cygwin.
52198
52199 2006-07-05  Eric Blake  <ebb9@byu.net>
52200
52201         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52202         missing from netdb.h.
52203         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52204
52205 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52206
52207         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52208         no longer needed.
52209         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52210         * m4/getdate.m4 (gl_GETDATE): Likewise.
52211         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52212         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52213         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52214         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52215         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52216
52217 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52218
52219         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52220         All uses of is_space replaced by isspace.
52221         * lib/exit.h: Don't talk about STDC_HEADERS.
52222         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52223         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52224         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52225         replaced by isprint etc.
52226         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52227         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52228         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52229         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52230         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52231         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52232
52233 2006-07-05  Bruno Haible  <bruno@clisp.org>
52234
52235         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52236         the function exists, before testing against AIX.
52237         Reported by Martin Lambers <marlam@marlam.de>.
52238
52239 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52240
52241         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52242         From Mark D. Baushke.
52243
52244 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52245
52246         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
52247         to the absolute name, not just one, to bypass Sun C 5.8's
52248         "warning: #include of /usr/include/... may be non-portable".
52249
52250 2006-07-04  Eric Blake  <ebb9@byu.net>
52251
52252         * modules/dirname-tests: New test module.
52253         * tests/test-dirname.c: New file, replacing dirname.c
52254         TEST_DIRNAME section that was recently deleted.
52255
52256 2006-07-04  Bruno Haible  <bruno@clisp.org>
52257
52258         Assume ANSI C header files and <ctype.h> functions.
52259         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
52260         (mbsnwidth): Use isprint, iscntrl instead.
52261
52262 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52263
52264         Merge from coreutils.
52265         * MODULES.html.sh: Add xstrtold.
52266         * modules/xstrtold: New file.
52267         * modules/cycle-check (Files): Add lib/same-inode.h.
52268         * modules/dirname (Files): Add m4/double-slash-root.m4.
52269         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
52270         * modules/mkdir-p (Files): Add lib/same-inode.h.
52271         * modules/same (Files): Add lib/same-inode.h.
52272
52273 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52274
52275         * m4/absolute-header.m4: Renamed from full-header-path.m4.
52276         This is to keep the terminology clean; POSIX talks about
52277         "absolute pathnames", not "full pathnames", but the GNU
52278         Coding Standards say to use "path" for something else;
52279         so use "absolute" to keep both sides happy.
52280         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
52281         Set gl_absolute_header, not gl_full_header_path.
52282         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
52283         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
52284         All uses changed.
52285
52286         Merge from coreutils.
52287
52288         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52289
52290         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52291         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52292         want to require the building of c-strtod.o.
52293         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52294         needs -lm directly.
52295         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52296
52297         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52298
52299         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52300         --as-needed option if available.  Problem reported by Albert Chin in
52301         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52302         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52303         cc merely issues a bunch of annoying warnings for --as-needed
52304         (this problem was reported by Bob Proulx).  Also, try linking with
52305         -lm to detect a bug in binutils 2.16 (this problem was reported
52306         by Ralf Wildenhues).
52307
52308         2006-06-18  Jim Meyering  <jim@meyering.net>
52309
52310         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52311         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52312         macro.
52313         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52314         also check for glibc-2.4's abort-inducing bug.
52315
52316         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52317         Low-probability clean-up should be to use rmdir to get rid of
52318         the just-created directory, not unlink.
52319
52320         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52321         configure fail, and request a bug report to inform us about it.
52322         Add a comment that, barring reports to the contrary, in 2007 we'll
52323         assume ftruncate is universally available.
52324
52325         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52326
52327         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52328
52329         2006-03-12  Jim Meyering  <jim@meyering.net>
52330
52331         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52332         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52333         * m4/same.m4 (gl_SAME): Likewise.
52334         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52335
52336         2006-03-11  Eric Blake  <ebb9@byu.net>
52337
52338         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52339         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52340         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52341         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52342
52343 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52344
52345         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52346         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52347         reported by Mark D. Baushke, one in
52348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52349
52350         Merge from coreutils.
52351
52352         * lib/.cppi-disable: Add stdint_.h.
52353         * lib/.cvsignore: Add stdint.h.
52354
52355         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52356
52357         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52358         both double and long double versions.
52359         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52360         * lib/xstrtold.c: New file.
52361         * lib/xstrtod.h (xstrtold): New decl.
52362
52363         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52364
52365         * lib/filemode.c (setst): Remove.
52366         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52367         (arguably) clearer, and the generated code is a bit smaller on my
52368         Debian GNU/Linux stable x86 host.
52369
52370         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52371
52372         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52373         Assume that filemode.h includes sys/types.h and sys/stat.h.
52374         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52375         (ftypelet): Reorder to put common cases first, for efficiency.
52376         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52377         to do 'M'.
52378         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52379         of 10, for compatibility with FreeBSD.  All callers changed.
52380         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52381         types that can't be deduced solely from st_mode.  First arg is now a
52382         const pointer.
52383         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52384         (strmode): Renamed from mode_string.
52385         (filemodestring): New decl.
52386         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52387         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52388         needed.
52389         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52390
52391         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52392
52393         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52394         fsusage.h now does that.  Include fsusage.h first, to test interface.
52395         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52396         at most one method (the old code could have generated decls that
52397         didn't conform to C89, not that this was ever exercised).
52398         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52399
52400         2006-03-19  Jim Meyering  <jim@meyering.net>
52401
52402         Work even in a chroot where d_ino values for entries in "/"
52403         don't match the stat.st_ino values for the same names.
52404         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52405         number, iterate through all entries again, using lstat instead.
52406         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52407         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52408
52409         * lib/getcwd.c (__getcwd): Clarify a comment.
52410         Use memcpy in place of a call to strcpy.
52411
52412         2006-03-12  Jim Meyering  <jim@meyering.net>
52413
52414         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
52415         matches that of the current directory (which we're about to chdir ".."
52416         out of), then save the dev-ino of the parent, instead.
52417
52418         * lib/same-inode.h (SAME_INODE): New file/macro.
52419         * lib/chdir-safer.c (SAME_INODE): Remove definition.
52420         Include "same-inode.h", instead.
52421         * lib/same.c: Likewise.
52422         * lib/cycle-check.h: Include "same-inode.h".
52423         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
52424         * lib/cycle-check.c (SAME_INODE): Remove definition.
52425         * lib/root-dev-ino.h: Include "same-inode.h".
52426
52427         2006-03-11  Eric Blake  <ebb9@byu.net>
52428
52429         * lib/same.c (same_name): s/base_name/last_component/
52430         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
52431         * lib/filenamecat.c (file_name_concat): Likewise.
52432
52433         2006-03-11  Eric Blake  <ebb9@byu.net>,
52434                     Paul Eggert  <eggert@cs.ucla.edu>
52435
52436         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
52437         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
52438         drive prefix.
52439         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
52440         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
52441         (last_component): New method.
52442         * lib/dirname.c (dir_len): Determine when drive letters need a
52443         subsequent slash.  Preserve // when it is special.
52444         (dir_name): Don't append dot when drive letter is absolute.
52445         [TEST_DIRNAME]: Move into a full-blown gnulib test.
52446         * lib/basename.c (base_name): New semantics - malloc the result.
52447         Preserve // when it is special.  Preserve relative files that look
52448         like drive letters.
52449         (base_len): Preserve // when it is special.
52450         (last_component): New method, similar to old base_name semantics.
52451         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
52452         base_name.  Strip redundant slashes from ///.
52453
52454 2006-07-03  Jim Meyering  <jim@meyering.net>
52455
52456         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
52457         macro is used before the first cycle_check call.
52458
52459 2006-07-03  Eric Blake  <ebb9@byu.net>
52460
52461         * modules/dirname (Depends-on): Add xstrndup.
52462
52463 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52464
52465         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
52466         test cases, so that config.log is a bit easier to follow.
52467
52468 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52469
52470         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
52471         both are 64 bits, since this seems to be the tradition, and this
52472         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
52473         we ever run into a host that prefers long long to long in this
52474         case, we'll need another configure-time test.  Problem reported by
52475         Jim Meyering.
52476
52477 2006-07-02  Eric Blake  <ebb9@byu.net>
52478
52479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
52480
52481 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52482
52483         * modules/inttypes (Depends-on): No longer depends on stdint.
52484         * modules/stdint (Description): Say more about assumptions.
52485         Say that the fast types might differ.  Say macros are used.
52486         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
52487         (Makefile.am): Revise list of substituted symbols to match
52488         new stdint.m4.
52489         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
52490         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
52491         * tests/test-stdint.c (verify_same_types)
52492         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
52493         the code conforms to C99/C89.
52494         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
52495         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
52496
52497 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52498
52499         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
52500         but fix a bug, by requiring at least 64 bits.
52501         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52502         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
52503         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
52504         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
52505
52506         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
52507         changes.  Make 2.59 a prerequisite.  Check and substitute for
52508         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
52509         inttypes.h.  Do not use special include files; just use the
52510         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
52511         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
52512         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
52513         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
52514         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
52515         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
52516         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
52517         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
52518         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
52519         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
52520         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
52521         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
52522         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
52523         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
52524         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
52525         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
52526         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
52527         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
52528         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
52529         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
52530         WINT_MAX.  Check for C99 conformance more strictly, by detecting
52531         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
52532         not check for things that C99 does not require, e.g., int8_t.  If
52533         a test isn't needed unless <stdint.h> isn't working, and is
52534         unlikely to be needed for any other reason, then don't do it
52535         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
52536         size_t, since we assume C89 freestanding at least.  Do not check
52537         for sig_atomic_t, wchar_t, or wint_t, since the code now does
52538         the right thing even if the types are not defined.  Instead use:
52539         (gl_STDINT_TYPE_PROPERTIES): New macro.
52540         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
52541         testing whether <sys/types.h> clashes, as Autoconf does this for
52542         us now.  All uses removed.
52543         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
52544         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
52545         (gl_CHECK_TYPE_SAME):
52546         Remove; no longer needed.
52547         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
52548         exists, since we'll return 0 anyway in that case.
52549         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
52550
52551 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52552
52553         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
52554         possible collision with system files.
52555         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
52556         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
52557         WCHAR_MIN and WCHAR_MAX in this case.
52558         (<stddef.h>): Do not include; no longer needed.
52559         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
52560         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
52561         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
52562         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
52563         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
52564         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
52565         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
52566         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
52567         !defined(__c99))]: Include in this case too, since it's harmless
52568         now.
52569         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
52570         dangerous to do so.
52571         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
52572         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
52573         (_STDINT_MIN, _STDINT_MAX): New macros.
52574         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
52575         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
52576         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
52577         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
52578         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
52579         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
52580         macros, not typedefs; this simplifies things quite a bit.
52581         Use long int for all types narrower than int64_t.
52582         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
52583         Define in terms of long long int or int64_t or long int,
52584         not int64_t or int32_t.  This saves some compile-time testing.
52585         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
52586         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
52587         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
52588         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
52589         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
52590         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
52591         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
52592         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
52593         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
52594         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
52595         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52596         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52597         undef any previous version and define our own version, for
52598         simplicity and consistency with the new macros for types.
52599         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52600         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52601         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
52602         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
52603         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
52604         @WINT_T_SUFFIX@ to keep things simple here.
52605         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
52606         Simplify by assuming typical 8/16/32/64 host, since we're
52607         already doing that elsewhere anyway.
52608         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
52609         and assume long long int is 64 bits if available.  This
52610         speeds up 'configure'.
52611
52612 2006-07-01  Eric Blake  <ebb9@byu.net>
52613
52614         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
52615         Reported by Andreas Buening.
52616
52617 2006-07-01  Eric Blake  <ebb9@byu.net>
52618
52619         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
52620
52621 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52622
52623         * lib/getaddrinfo.c: fixed typo
52624
52625 2006-06-29  Jim Meyering  <jim@meyering.net>
52626
52627         * modules/strftime (Maintainer): Add my name, since with the
52628         FPRINTFTIME changes strftime.c has forked from glibc.
52629
52630 2006-06-29  Eric Blake  <ebb9@byu.net>
52631
52632         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
52633
52634 2006-06-29  Eric Blake  <ebb9@byu.net>
52635
52636         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
52637
52638 2006-06-29  Eric Blake  <ebb9@byu.net>
52639
52640         * lib/stat_.h: New file.
52641
52642 2006-06-29  Eric Blake  <ebb9@byu.net>
52643
52644         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
52645         unused static function.
52646
52647 2006-06-29  Eric Blake  <ebb9@byu.net>
52648
52649         * doc/functions.texi (Function Portability): Document missing lstat
52650         on mingw.
52651
52652 2006-06-29  Eric Blake  <ebb9@byu.net>
52653
52654         * MODULES.html.sh: Add sys_stat.
52655         * modules/sys_stat: New module.
52656         * modules/mkstemp (Depends-on): Add sys_stat.
52657
52658 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52659
52660         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
52661
52662 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52663
52664         * m4/c-bs-a.m4: Removed.
52665
52666 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52667
52668         * lib/strftime.c: Assume strftime() exists.
52669
52670 2006-06-29  Derek Price  <derek@ximbiot.com>
52671
52672         * modules/c-bs-a: Removed - \a is C89.
52673         * MODULES.html.sh: Remove c-bs-a.
52674
52675 2006-06-29  Bruno Haible  <bruno@clisp.org>
52676
52677         * modules/wcwidth (License): Change to LGPL.
52678
52679 2006-06-28  Simon Josefsson  <jas@extundo.com>
52680
52681         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
52682         on _WIN32.
52683
52684         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
52685         getnameinfo.
52686
52687 2006-06-28  Simon Josefsson  <jas@extundo.com>
52688
52689         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
52690
52691 2006-06-28  Simon Josefsson  <jas@extundo.com>
52692
52693         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
52694         functions there.  It will succeed on Windows XP, but on Windows
52695         2000 and (presumably) earlier, it will fail, and use the internal
52696         re-implementation.
52697         (use_win32_p): New function.
52698         (getaddrinfo): Use strtoul on servname, to support numeric ports.
52699         Support AI_NUMERICSERV to disable getservbyname.
52700         (getnameinfo): New function, only supports
52701         NI_NUMERICHOST|NI_NUMERICSERV for now.
52702
52703         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
52704         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
52705         getnameinfo.
52706
52707 2006-06-28  Eric Blake  <ebb9@byu.net>
52708
52709         * modules/wcwidth: New file.
52710         * modules/mbchar (Depends-on): Add wcwidth.
52711         * modules/mbswidth (Depends-on): Add wcwidth.
52712         * MODULES.html.sh: Add wcwidth.
52713
52714 2006-06-28  Eric Blake  <ebb9@byu.net>
52715
52716         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
52717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
52718
52719 2006-06-28  Eric Blake  <ebb9@byu.net>
52720
52721         * lib/xvasprintf.h: Fix comments.
52722
52723 2006-06-28  Eric Blake  <ebb9@byu.net>
52724
52725         * lib/mbchar.h (wcwidth): Include wcwidth.h.
52726         * lib/mbswidth.c (wcwidth): Move from here...
52727         * lib/wcwidth.h: ...to this new file.
52728
52729 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52730
52731         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
52732
52733         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
52734         it's obsolete.
52735         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
52736
52737 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52738
52739         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
52740         Autoconf 2.60 says this stuff was obsolete.
52741
52742 2006-06-28  Bruno Haible  <bruno@clisp.org>
52743
52744         * modules/wcwidth (Files): Add m4/wchar_t.m4.
52745
52746 2006-06-28  Bruno Haible  <bruno@clisp.org>
52747
52748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
52749         gt_TYPE_WCHAR_T.
52750
52751 2006-06-28  Bruno Haible  <bruno@clisp.org>
52752
52753         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
52754         declaration for wcwidth.
52755         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
52756
52757 2006-06-28  Bruno Haible  <bruno@clisp.org>
52758
52759         * lib/mkdtemp.c [MINGW]: Include <io.h>.
52760         (mkdir): Define using _mkdir.
52761
52762 2006-06-28  Bruno Haible  <bruno@clisp.org>
52763
52764         * lib/getaddrinfo.h: Fix POSIX URL.
52765         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
52766         _WIN32.
52767         (use_win32_p): Make static.
52768         (getaddrinfo): Reject service name if it is empty or does not consist
52769         solely of decimal digits, or if its value is > 65535.
52770         (getnameinfo): Remove useless casts.
52771
52772 2006-06-27  Simon Josefsson  <jas@extundo.com>
52773
52774         * modules/sys_select: New file, suggested by Bruno Haible, Paul
52775         Eggert and Martin Lambers.
52776
52777 2006-06-27  Simon Josefsson  <jas@extundo.com>
52778
52779         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
52780         Eggert and Martin Lambers.
52781
52782 2006-06-27  Bruno Haible  <bruno@clisp.org>
52783
52784         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
52785         result to 0, not to empty.
52786         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
52787
52788 2006-06-27  Bruno Haible  <bruno@clisp.org>
52789
52790         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
52791
52792 2006-06-26  Simon Josefsson  <jas@extundo.com>
52793
52794         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
52795         present.
52796
52797 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
52798
52799         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
52800         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
52801         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
52802
52803 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
52804
52805         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
52806
52807 2006-06-26  Bruno Haible  <bruno@clisp.org>
52808
52809         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
52810
52811 2006-06-26  Bruno Haible  <bruno@clisp.org>
52812
52813         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
52814
52815 2006-06-26  Bruno Haible  <bruno@clisp.org>
52816
52817         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
52818         SGI C compiler in pre-C99 mode.
52819         Suggested by Mark D. Baushke and Larry Jones.
52820
52821 2006-06-26  Bruno Haible  <bruno@clisp.org>
52822
52823         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
52824         WCHAR_MAX.
52825         Reported by Mark D. Baushke and Larry Jones.
52826
52827 2006-06-26  Bruno Haible  <bruno@clisp.org>
52828
52829         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
52830         in pre-C99 mode.
52831         Suggested by Mark D. Baushke and Larry Jones.
52832
52833 2006-06-23  Simon Josefsson  <jas@extundo.com>
52834             Bruno Haible  <bruno@clisp.org>
52835
52836         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
52837         Emit mostlyclean-local rule.
52838         (func_emit_tests_Makefile_am): Likewise.
52839         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
52840
52841 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
52842
52843         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
52844
52845 2006-06-23  Bruno Haible  <bruno@clisp.org>
52846
52847         * tests/test-stdint.c: Update to match ISO C 99 Technical
52848         Corrigendum 1.
52849
52850 2006-06-23  Bruno Haible  <bruno@clisp.org>
52851
52852         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
52853
52854 2006-06-23  Bruno Haible  <bruno@clisp.org>
52855
52856         * lib/stdint_.h: Treat IRIX like OpenBSD.
52857
52858 2006-06-23  Bruno Haible  <bruno@clisp.org>
52859
52860         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
52861         ISO C 99 Technical Corrigendum 1.
52862
52863 2006-06-22  Simon Josefsson  <jas@extundo.com>
52864
52865         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
52866         MinGW.
52867
52868 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52869
52870         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
52871         needed.  Some compiler complained about some of them.  Problem reported
52872         by Larry Jones in
52873         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
52874
52875 2006-06-21  Simon Josefsson  <jas@extundo.com>
52876
52877         * tests/test-getaddrinfo.c: New file.
52878
52879         * modules/getaddrinfo-tests: New file.
52880
52881         * MODULES.html.sh: Add inet_pton.
52882
52883         * modules/inet_pton: New file.
52884
52885 2006-06-21  Simon Josefsson  <jas@extundo.com>
52886
52887         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
52888         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
52889         of using the (limited) gnulib implementation on Windows XP.
52890
52891         * m4/inet_pton.m4: New file.
52892
52893 2006-06-21  Simon Josefsson  <jas@extundo.com>
52894
52895         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
52896         variable.
52897
52898         * lib/socket_.h: Don't define WINVER.
52899
52900         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
52901         slightly modified to work in gnulib.
52902
52903 2006-06-21  Simon Josefsson  <jas@extundo.com>
52904
52905         * doc/gnulib.texi (Windows sockets): Add.
52906
52907 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52908
52909         * lib/read-file.c (fread_file): Start with buffer allocation of
52910         0 bytes rather than 1 byte; this simplifies the code.
52911         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
52912         code to free buffer and save/restore errno.
52913         (internal_read_file): Remove unused local.
52914
52915 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52916
52917         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
52918         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
52919         Problem reported by Denis Excoffier in
52920         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
52921
52922 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52923
52924         * modules/sys_socket, modules/socklen: Include sys/types since
52925         FreeBSD 4.x's sys/socket.h needs it.
52926
52927 2006-06-19  Simon Josefsson  <jas@extundo.com>
52928
52929         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
52930
52931 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52932
52933         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
52934
52935 2006-06-19  Bruno Haible  <bruno@clisp.org>
52936
52937         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
52938         and FULL_PATH_INTTYPES_H in angle brackets.
52939         Reported by Mark D. Baushke <mdb@gnu.org>.
52940
52941 2006-06-17  Eric Blake  <ebb9@byu.net>
52942
52943         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
52944         errno.
52945
52946 2006-06-17  Bruno Haible  <bruno@clisp.org>
52947
52948         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
52949         <sys/inttypes.h>.
52950
52951 2006-06-17  Bruno Haible  <bruno@clisp.org>
52952
52953         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
52954         whether errno is declared. Assume <errno.h> declares errno.
52955
52956 2006-06-17  Bruno Haible  <bruno@clisp.org>
52957
52958         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
52959
52960 2006-06-17  Bruno Haible  <bruno@clisp.org>
52961
52962         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
52963         problem on Solaris 2.5.1.
52964
52965 2006-06-16  Eric Blake  <ebb9@byu.net>
52966
52967         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
52968         * lib/unicodeio.c [!defined errno]: Likewise.
52969         * lib/strtol.c [!defined errno]: Likewise.
52970         * lib/strtod.c [!defined errno]: Likewise.
52971
52972 2006-06-15  Eric Blake  <ebb9@byu.net>
52973
52974         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
52975
52976 2006-06-15  Eric Blake  <ebb9@byu.net>
52977
52978         * config/srclist.txt (ssize_t.m4): Lose sync.
52979
52980 2006-06-15  Bruno Haible  <bruno@clisp.org>
52981
52982         * modules/stdint (Files): Include m4/full-header-path.m4,
52983         m4/size_max.m4, m4/wchar_t.m4.
52984         (Makefile.am): Many more substitutions.
52985         * modules/stdint-tests: New file.
52986         * tests/test-stdint.c: New file.
52987
52988 2006-06-15  Bruno Haible  <bruno@clisp.org>
52989
52990         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
52991         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
52992         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
52993         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
52994         gl_CHECK_TYPE_SAME): New macros.
52995
52996 2006-06-15  Bruno Haible  <bruno@clisp.org>
52997
52998         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
52999
53000 2006-06-15  Bruno Haible  <bruno@clisp.org>
53001
53002         * lib/stdint_.h: Rewritten to be fully auto-configured.
53003         Fixes bug on HP-UX/IA64.
53004
53005 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53006
53007         * lib/getdate.y (__attribute__): Don't define if already defined.
53008         Problem reported by Larry Jones.
53009         * lib/utimens.c (__attribute__): Likewise.
53010
53011 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53012
53013         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53014         reported by Andreas Schwab.
53015
53016 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53017             Bruno Haible  <bruno@clisp.org>
53018
53019         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53020         check for the declaration of strnlen and a run test that exposes the
53021         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53022         rpl_strndup.
53023
53024 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53025             Bruno Haible  <bruno@clisp.org>
53026
53027         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53028
53029 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53030
53031         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53032         compile test, for Tru64 4.0D.
53033
53034 2006-05-28  Karl Berry  <karl@gnu.org>
53035
53036         * config/srclist.txt (printf-args.c): lose sync.
53037
53038 2006-05-26  Martin Lambers  <marlam@marlam.de>
53039
53040         * lib/getpass.c: Updates the test for the native W32 API, and adds
53041         missing includes, thus fixing compilation warnings.
53042
53043 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53044
53045         * lib/exclude.c (exclude_fnmatch): New function.
53046         (excluded_file_name): Call exclude_fnmatch.
53047         * lib/exclude.h (excluded_file_name): New prototype
53048
53049 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53050
53051         * lib/tempname.c (small_open, large_open): New macros.
53052         (__open, __open64) [!_LIBC]: Remove.
53053         (__gen_tempname): Use small_open and large_open instead of __open
53054         and __open64.  This fixes a portability bug on HP-UX 11.11i
53055         reported by Simon Wing-Tang in
53056         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53057
53058 2006-05-24  Bruno Haible  <bruno@clisp.org>
53059
53060         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53061         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53062         Reported by Thorsten Maerz <torte@netztorte.de> via
53063         Aaron Stone <aaron@serendipity.cx>.
53064
53065 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53066
53067         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53068         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53069         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53070         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53071         not really conditional on the cache.
53072         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53073
53074 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53075
53076         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53077         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53078         (my_usleep): Don't mishandle maximum value.
53079
53080 2006-05-19  Jim Meyering  <jim@meyering.net>
53081
53082         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53083
53084 2006-05-17  Bruno Haible  <bruno@clisp.org>
53085
53086         Cygwin portability.
53087         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53088
53089 2006-05-17  Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/stdint_.h: Fix recognition of Cygwin.
53092
53093 2006-05-15  Bruno Haible  <bruno@clisp.org>
53094
53095         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53096         on libtool patch by Ralf Wildenhues.
53097
53098 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53099
53100         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53101         test for C99 conformance; (bool) 0.5 is an integer constant
53102         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53103         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53104
53105 2006-05-11  Simon Josefsson  <jas@extundo.com>
53106
53107         * m4/xvasprintf.m4: Fix obvious typo.
53108
53109 2006-05-11  Jim Meyering  <jim@meyering.net>
53110
53111         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53112         James Lemley.
53113
53114 2006-05-10  Simon Josefsson  <jas@extundo.com>
53115
53116         * lib/md4.c: Typo fix, update copyright years.
53117         (K1, K2): Don't use L because it turn computations into 64-bit on
53118         64-bit platforms.
53119
53120 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53121
53122         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53123         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53124         unwanted sign propagation, e.g., on hosts with 64-bit int.
53125         There still are some problems with reeelly weird theoretical hosts
53126         (e.g., 33-bit int) but it's not worth worrying about now.
53127         * lib/sha1.c (rol): Likewise.
53128         (K1, K2, K3, K4): Remove unnecessary L suffix.
53129
53130 2006-05-10  Bruno Haible  <bruno@clisp.org>
53131
53132         * lib/des.c: Cast to avoid warnings.
53133
53134 2006-05-09  Bruno Haible  <bruno@clisp.org>
53135
53136         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53137         (Depends-on): Depend also on xsize, stdarg.
53138         (configure.ac): Add gl_XVASPRINTF.
53139
53140 2006-05-09  Bruno Haible  <bruno@clisp.org>
53141
53142         * m4/xvasprintf.m4: New file.
53143
53144 2006-05-09  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53147         (EOVERFLOW): Define fallback value.
53148         (xstrcat): New function.
53149         (xvasprintf): Recognize the special case of a string concatenation.
53150
53151 2006-05-08  Eric Blake  <ebb9@byu.net>
53152
53153         * gnulib-tool (func_version): Base copyright year on CVS date.
53154         (func_emit_copyright_notice): New function.
53155         (func_emit_lib_Makefile_am): Use it.
53156         (func_emit_tests_Makefile_am): Likewise.
53157         (func_import): Likewise.
53158
53159 2006-05-08  Bruno Haible  <bruno@clisp.org>
53160
53161         * modules/stdarg: New file.
53162         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53163
53164 2006-05-08  Bruno Haible  <bruno@clisp.org>
53165
53166         * m4/stdarg.m4: New file, from GNU gettext.
53167
53168 2006-05-08  Bruno Haible  <bruno@clisp.org>
53169
53170         * config/srclist.txt (build-aux/config.rpath): different from latest
53171         release.
53172
53173 2006-05-08  Bruno Haible  <bruno@clisp.org>
53174
53175         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53176
53177 2006-05-05  Jim Meyering  <jim@meyering.net>
53178
53179         * m4/warning.m4: New file, derived from bison's file by the same name.
53180
53181 2006-05-03  Bruno Haible  <bruno@clisp.org>
53182
53183         * lib/stdint_.h: Shorter URL.
53184         * lib/inttypes.h: Likewise.
53185
53186 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53187
53188         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53189
53190 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53191
53192         * lib/verify.h: Document the internals better.  Most of this change
53193         was written by Bruno Haible.
53194
53195 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53196
53197         * doc/verify.texi: New file, partly based on a proposal by
53198         Bruno Haible.
53199
53200 2006-05-02  Bruno Haible  <bruno@clisp.org>
53201
53202         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53203         test from here...
53204         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53205
53206 2006-04-29  Bruno Haible  <bruno@clisp.org>
53207
53208         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53209         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53210
53211 2006-04-29  Bruno Haible  <bruno@clisp.org>
53212
53213         * gnulib-tool: Make --update option actually work.
53214
53215 2006-04-29  Bruno Haible  <bruno@clisp.org>
53216
53217         * doc/gcd.texi: New file.
53218         * doc/gnulib.texi: Include it.
53219
53220 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53221
53222         * lib/getdate.y (get_date): When adding relative date, start with the
53223         initial time, not with the result of the first mktime call.
53224
53225 2006-04-25  Bruno Haible  <bruno@clisp.org>
53226
53227         * gnulib-tool (func_import): Output the include directives in three
53228         blocks, sorted separately.
53229         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53230
53231 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53232
53233         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53234         to define main with arguments, for C++.  Reported by Eric Blake.
53235         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53236         Prefer 'int main ()' to 'int main (void)', for C++.
53237         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53238         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53239         for 'main', for C99 and C++.
53240
53241 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53242
53243         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53244         Don't assume that exit status -1 is valid.
53245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53246         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53247         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
53248         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
53249         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
53250         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
53251         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
53252         functions can be used without declaring them, or that you can
53253         exit with status -1.
53254         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
53255
53256 2006-04-24  Karl Berry  <karl@gnu.org>
53257
53258         * config/srclist.txt (longdouble.m4): sync lost.
53259
53260 2006-04-24  Eric Blake  <ebb9@byu.net>
53261
53262         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
53263
53264 2006-04-24  Bruno Haible  <bruno@clisp.org>
53265
53266         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
53267         poll() implementation in AIX.
53268         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53269
53270 2006-04-24  Bruno Haible  <bruno@clisp.org>
53271
53272         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
53273         assigned exactly once.
53274
53275 2006-04-23  Claudio Fontana  <claudio@gnu.org>
53276             Bruno Haible  <bruno@clisp.org>
53277
53278         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
53279         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
53280         for AM_CPPFLAGS.
53281
53282 2006-04-23  Bruno Haible  <bruno@clisp.org>
53283
53284         * modules/copy-file: Depend on unistd.
53285         * modules/execute: Likewise.
53286         * modules/fatal-signal: Likewise.
53287         * modules/findprog: Likewise.
53288         * modules/mkdtemp : Likewise.
53289         * modules/pipe: Likewise.
53290         * modules/wait-process: Likewise.
53291
53292 2006-04-23  Bruno Haible  <bruno@clisp.org>
53293
53294         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53295         condition was already detected.
53296         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53297
53298 2006-04-23  Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/copy-file.c: Include <unistd.h> unconditionally.
53301         * lib/execute.c: Likewise.
53302         * lib/fatal-signal.c: Likewise.
53303         * lib/findprog.c: Likewise.
53304         * lib/mkdtemp.c: Likewise.
53305         * lib/pipe.h: Likewise.
53306         * lib/pipe.c: Likewise.
53307         * lib/wait-process.h: Likewise.
53308
53309 2006-04-23  Bruno Haible  <bruno@clisp.org>
53310
53311         * gnulib-tool (func_usage): Fix --import description. Document
53312         --update.
53313         (func_import): Create temporary file in a temporary directory, if
53314         --dry-run is specified. Silence errors from 'grep' when there are no
53315         m4 files in $m4dir.
53316         (func_create_testdir): Silence errors from 'grep' when there are no
53317         m4 files in $m4dir.
53318         Reported by Karl Berry <karl@freefriends.org>.
53319
53320 2006-04-20  Bruno Haible  <bruno@clisp.org>
53321
53322         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53323         one argument, so that the code will be portable to Autoconf 2.60.
53324         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53325         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53326         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53327
53328 2006-04-19  Derek Price  <derek@ximbiot.com>
53329             Eric Blake  <ebb9@byu.net>
53330
53331         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53332         rather than "/full/path.h".  Update comment to match.  Shorten &
53333         generalize m4_translit call via AS_TR_CPP.
53334
53335 2006-04-19  Derek Price  <derek@ximbiot.com>
53336             Eric Blake  <ebb9@byu.net>
53337
53338         * lib/inttypes.h: Correct grammar in comment.
53339
53340 2006-04-18  Derek Price  <derek@ximbiot.com>
53341             Paul Eggert  <eggert@cs.ucla.edu>
53342
53343         * modules/inttypes: New file.
53344         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53345
53346 2006-04-18  Derek Price  <derek@ximbiot.com>
53347             Paul Eggert  <eggert@cs.ucla.edu>
53348
53349         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53350         New files.
53351
53352 2006-04-18  Derek Price  <derek@ximbiot.com>
53353             Paul Eggert  <eggert@cs.ucla.edu>
53354
53355         * lib/inttypes.h: New file.
53356         * lib/strtoimax.c: Assume <inttypes.h>.
53357
53358 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53359
53360         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53361         isn't mounted.  Problem reported by Kir Kolyshkin.
53362
53363 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53364
53365         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53366         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53367         Derek R. Price.
53368         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53369         implementation.
53370
53371 2006-04-12  Eric Blake  <ebb9@byu.net>
53372
53373         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53374         is now done automatically by the corresponding Autoconf macro.
53375
53376 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53377
53378         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53379         time_r.h.
53380
53381 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53382
53383         Merge regex changes from libc, removing some of our
53384         POSIX-conformance changes that were rejected and redoing them in a
53385         less-intrusive way.
53386
53387         * lib/regcomp.c (re_compile_internal, init_dfa):
53388         Length arg is now size_t, not Idx.  All uses changed.
53389         (peek_token): Forward decl now says internal_function.
53390         (__re_error_msgid, __re_error_msgid_idx):
53391         Now static rather than extern with attribute_hidden.
53392         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53393         For some reason libc prefers K&R style defns for external functions.
53394         (regerror) [!defined _LIBC]: Likewise.
53395         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53396         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53397         (build_range_exp, build_collating_symbol):
53398         Use K&R-style defn.
53399         (re_compile_fastmap): Use '\0' to memset, not 0.
53400         (utf8_sb_map): Make the calculations more obvious.
53401         (init_dfa, parse_bracket_exp, build_charclass_op):
53402         Call calloc and cast result, as glibc does.
53403         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53404         (build_range_exp, build_collating_symbol):
53405         Now internal functions.
53406
53407         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53408
53409         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53410         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53411         Don't depend on VMS; depend on __VMS instead, for POSIX
53412         namespace cleanness.
53413         (regoff_t): Define to ssize_t, not long int.
53414
53415         Remove the REG_ macros named below.  Instead, make the old names
53416         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
53417         __USE_GNU_REGEX.
53418         (REG_BACKSLASH_ESCAPE_IN_LISTS):
53419         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
53420         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
53421         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
53422         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
53423         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
53424         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
53425         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
53426         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
53427         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
53428         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
53429         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
53430         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
53431         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
53432         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
53433         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
53434         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
53435         (REG_NREGS):
53436         Remove.  All uses replaced by the old RE_* names.
53437         (RE_BACKSLASH_ESCAPE_IN_LISTS):
53438         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
53439         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
53440         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
53441         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
53442         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
53443         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
53444         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
53445         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
53446         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
53447         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
53448         Don't bother having these macros be independent of each others'
53449         values, since they no longer exist in the POSIX name space.
53450
53451         Rename the following member names back to their old names,
53452         unless !__USE_GNU_REGEX.  All uses changed back.
53453         (buffer): Renamed from re_buffer.
53454         (allocated): Renamed from re_allocated.
53455         (used): Renamed from re_used.
53456         (syntax): Renamed from re_syntax.
53457         (fastmap): Renamed from re_fastmap.
53458         (translate): Renamed from re_translate.
53459         (can_be_null): Renamed from re_can_be_null.
53460         (regs_allocated): Renamed from re_regs_allocated.
53461         (fastmap_accurate): Renamed from re_fastmap_accurate.
53462         (no_sub): Renamed from re_no_sub.
53463         (not_bol): Renamed from re_not_bol.
53464         (not_eol): Renamed from re_not_eol.
53465         (newline_anchor): Renamed from re_newline_anchor.
53466         (num_regs): Renamed from rm_num_regs.
53467         (start): Renamed from rm_start.
53468         (end): Renamed from rm_end.
53469
53470         (free_state): Move up a bit.
53471
53472         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
53473         #define to be empty.
53474         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
53475         when that is what is intended.
53476         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
53477         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
53478         (MAX): New macro.
53479         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
53480         All uses changed back to re_malloc, etc.  It's now the caller's
53481         responsibility to check for overflow; all callers changed.
53482         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
53483         (re_x2nrealloc): Remove.
53484         (free_state): Remove decl.
53485
53486         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
53487         (re_set_registers, re_exec):
53488         Use K&R-style defn.
53489
53490         2006-01-31  Roland McGrath  <roland@redhat.com>
53491
53492         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
53493         Reported by Mike Frysinger <vapier@gentoo.org>.
53494
53495         2006-01-15  Andreas Jaeger  <aj@suse.de>
53496
53497         [BZ #1950]
53498         * lib/regex_internal.c (re_string_reconstruct): Adjust for
53499         build_wcs_upper_buffer change.
53500         (build_wcs_upper_buffer): Change return type.
53501
53502         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
53503
53504         * lib/regex_internal.h: Include <stdint.h> if available.
53505
53506         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
53507
53508         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
53509
53510         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53511
53512         * lib/regcomp.c: Adjust for changed secondary hash function.
53513
53514         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
53515
53516         * lib/regex.h: Pretty printing.
53517         Clean up namespace a bit.
53518
53519         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
53520
53521         * lib/regexec.c (update_cur_sifted_state, check_arrival,
53522         check_arrival_add_next_nodes): Avoid using uninitialized variable.
53523
53524         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53525                     Ulrich Drepper  <drepper@redhat.com>
53526
53527         [BZ #1302]
53528         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
53529         changed.
53530         (bitset_word_t): Renamed from bitset_word.  All uses changed.
53531
53532         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
53533
53534         [BZ #281]
53535         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
53536         * lib/regcomp.c: Remove unnecessary uses of
53537         unsigned RE_TRANSLATE_TYPE.
53538         * lib/regex_internal.h: Likewise.
53539         * lib/regex_internal.c: Likewise.
53540         * lib/regexec.c: Likewise.
53541         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
53542
53543         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
53544
53545         * lib/regexec.c (find_recover_state): Remove unnecessary
53546         initialization.
53547         (transit_state_bkref): Make DFA a const pointer.
53548         (get_subexp): Likewise.
53549         (check_arrival): Likewise.
53550         (update_cur_sifted_state): Likewise.
53551         (re_search_internal): Likewise.
53552         (prune_impossible_nodes): Likewise.
53553         (acquire_init_state_context): Likewise.
53554         (proceed_next_node): Likewise.
53555         (set_regs): Likewise.
53556         (free_fail_stack_return): Likewise.
53557         (check_arrival_expand_ecl): Mark DFA parameter as const.
53558         (check_arrival_expand_ecl_sub): Likewise.
53559         (check_subexp_limits): Likewise.
53560         (sub_epsilon_src_nodes):  Likewise.
53561         (add_epsilon_src_nodes):  Likewise.
53562         (merge_state_array): Likewise.
53563         (update_regs): Likewise.
53564         (build_trtable): Likewise.
53565         (sift_states_backward): Mark MCTX parameter as const.
53566         (build_sifted_states): Likewise.
53567         (update_cur_sifted_state): Likewise.
53568         (sift_states_mkref): Likewise.
53569         (check_arrival_expand_ecl): Mark eclosure as const.
53570         (check_dst_limits_calc_pos_1): Likewise.
53571         * lib/regex_internal.h (re_match_context_t): Make dfa a const
53572         pointer.
53573
53574         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
53575
53576         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
53577         (transit_state_sb): Likewise.
53578         (transit_state_mb): Likewise.
53579         (sift_states_iter_mb): Likewise.
53580         (check_arrival_add_next_nodes): Likewise.
53581         (check_node_accept_bytes): Change first parameter to pointer-to-const.
53582         [_LIBC] (re_search_2_stub): Use mempcpy.
53583
53584         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
53585         mbrtowc for very simple UTF-8 case.
53586
53587         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
53588         a pointer-to-const.
53589         (re_acquire_state_context): Likewise.
53590         * lib/regex_internal.h: Adjust prototypes.
53591
53592         * lib/regex.c: Prevent using C++ compilers.
53593
53594         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
53595         (re_acquire_state_context): Likewise.
53596
53597 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53598
53599         * modules/regex (Depends-on): Add ssize_t.
53600
53601 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53602
53603         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
53604         translation table.
53605
53606 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53607
53608         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
53609
53610 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
53611             Bruno Haible  <bruno@clisp.org>
53612
53613         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
53614         <sys/types.h> and <inttypes.h>.
53615
53616 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53617
53618         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
53619         `__error_t_defined', so argp.h will not typedef the former.
53620
53621 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
53622
53623         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
53624         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
53625         glibc names.  Even if glibc is changed to conform to POSIX, the
53626         traditional names will be available anyway, since regex depends on
53627         the extensions module.  Also, fix a longstanding typo in the
53628         implementation of Spencer ERE test #75 from grep 2.3.  Problems
53629         reported by Emanuele Giaquinta.  Also, change sense of cached
53630         variable, so that the message makes sense.
53631
53632 2006-03-24  Simon Josefsson  <jas@extundo.com>
53633
53634         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
53635         including some doc fixes.
53636         (base64_encode_alloc): Fix +1 bug on allocation failures.
53637
53638 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53639
53640         * lib/base64.c (base64_encode): Do not read past end of array with
53641         unsanitized input on systems with CHAR_BIT > 8.
53642
53643 2006-03-24  Eric Blake  <ebb9@byu.net>
53644
53645         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
53646
53647 2006-03-22  Karl Berry  <karl@gnu.org>
53648
53649         * config/srclist.txt (*setenv.[ch]): get from coreutils.
53650         * config/srclistvars.sh (COREUTILS): new var.
53651
53652 2006-03-17  Jim Meyering  <jim@meyering.net>
53653
53654         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
53655         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
53656
53657 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53658
53659         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
53660         no longer needs it.  Instead, check that regoff_t is as least
53661         as wide as ptrdiff_t.
53662
53663         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
53664         so that our regex.h stays compatible with the installed regex.
53665         This is helpful for installers who configure --without-included-regex.
53666         Problem reported by Emanuele Giaquinta.
53667
53668 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53669
53670         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
53671         Typedef to long int, not to off_, as POSIX will likely change
53672         in that direction.
53673
53674 2006-03-15  Eric Blake  <ebb9@byu.net>
53675
53676         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
53677
53678 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53679
53680         * lib/argp-help.c (validate_uparams): Fix typo
53681         * lib/argp-parse.c (argp_default_options): Consistently begin help
53682         messages with a lowercase letter.
53683
53684 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
53685
53686         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
53687         overrun buffers and shouldn't be used (much as gets shouldn't be
53688         used).
53689         * lib/time_r.c (asctime_r, ctime_r): Likewise.
53690
53691 2006-03-08  Simon Josefsson  <jas@extundo.com>
53692
53693         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
53694         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53695
53696 2006-03-08  Simon Josefsson  <jas@extundo.com>
53697
53698         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
53699         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53700
53701 2006-03-08  Simon Josefsson  <jas@extundo.com>
53702
53703         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
53704         signal that configure disabled the device.
53705
53706 2006-03-08  Simon Josefsson  <jas@extundo.com>
53707
53708         * build-aux/maint.mk: Fix refresh-po, to handle no translated
53709         languages.
53710
53711 2006-03-07  Simon Josefsson  <jas@extundo.com>
53712
53713         * modules/getopt (Depends-on): Add unistd.
53714
53715         * modules/unistd: New file.
53716
53717 2006-03-07  Simon Josefsson  <jas@extundo.com>
53718
53719         * modules/gc-random: New file.
53720
53721 2006-03-07  Simon Josefsson  <jas@extundo.com>
53722
53723         * m4/unistd_h.m4: New file.
53724
53725 2006-03-07  Simon Josefsson  <jas@extundo.com>
53726
53727         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
53728         test to be side-effect free by storing the result in the cache
53729         variable gl_cv_lib_readline, and moving the assignment of
53730         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
53731         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53732
53733 2006-03-07  Simon Josefsson  <jas@extundo.com>
53734
53735         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
53736         error on missing devices (the functions will return an error).
53737
53738         * m4/gc.m4: Move random stuff to gc-random.m4
53739
53740 2006-03-07  Simon Josefsson  <jas@extundo.com>
53741
53742         * lib/unistd_.h: New file.
53743
53744 2006-03-07  Simon Josefsson  <jas@extundo.com>
53745
53746         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
53747
53748 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53749
53750         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
53751         Problem reported by Juan Manuel Guerrero.
53752
53753 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53754
53755         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
53756         the unistd module.
53757         * lib/getlogin_r.c: Likewise.
53758         * lib/getlogin_r.h: Likewise.
53759         * lib/glob.c: Likewise.
53760         * lib/pagealign_alloc.c: Likewise.
53761         * lib/unistd_.h: Remove; no longer needed.
53762
53763 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53764
53765         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53766         Add unistd.
53767         * modules/c-stack (Depends-on): Add unistd.
53768         * modules/getlogin_r: Likewise.
53769         * modules/glob: Likewise.
53770         * modules/pagealign_alloc: Likewise.
53771         * modules/unistd (Files): Remove lib/unistd_.h.
53772         (EXTRA_DIST): Remove.
53773         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
53774         need unistd_.h.
53775         (MOSTLYCLEANFILES): Remove unistd.h-t.
53776
53777 2006-03-03  Simon Josefsson  <jas@extundo.com>
53778
53779         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
53780
53781 2006-03-03  Simon Josefsson  <jas@extundo.com>
53782
53783         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
53784         libidn and bison.
53785
53786 2006-03-03  Simon Josefsson  <jas@extundo.com>
53787
53788         * build-aux/maint.mk: Add indent target.
53789
53790 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
53791
53792         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
53793         our replacement poll.h in any case, to avoid a differing
53794         declaration from a system header.  Seen on AIX.
53795
53796 2006-03-01  Simon Josefsson  <jas@extundo.com>
53797
53798         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
53799         <kasal@ucw.cz>.
53800
53801 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53802
53803         * modules/gettime (Depends-on): Add extensions module.
53804         * modules/nanosleep (Depends-on): Likewise.
53805         * modules/settime (Depends-on): Likewise.
53806
53807 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53808
53809         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
53810         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
53811         pedantically.
53812         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53813         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
53814
53815         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
53816         not "==".  Reported by Ralf Wildenhues.
53817
53818 2006-03-01  Karl Berry  <karl@gnu.org>
53819
53820         * doc/Copyright/request-*: new files, synced from gnuorg.
53821
53822 2006-03-01  Karl Berry  <karl@gnu.org>
53823
53824         * config/srclist.txt (Copyright/*): new entries.
53825
53826 2006-02-28  Simon Josefsson  <jas@extundo.com>
53827
53828         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
53829
53830 2006-02-27  Simon Josefsson  <jas@extundo.com>
53831
53832         * lib/base64.h: Indent #define's.  From Jim Meyering
53833         <jim@meyering.net>.
53834
53835 2006-02-27  Jim Meyering  <jim@meyering.net>
53836
53837         Revert the change of 2006-02-24, so these files can continue
53838         to be sync'd from gettext.
53839         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
53840         of `config.h'.
53841
53842 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53843
53844         * modules/intprops: New file.
53845         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
53846         Add intprops.
53847         * modules/getloadavg (Files): Remove lib/intprops.h.
53848         (Depends-on): Add intprops.
53849         * modules/human: Likewise.
53850         * modules/inttostr: Likewise.
53851         * modules/openat: Likewise.
53852         * modules/sig2str: Likewise.
53853         * modules/userspec: Likewise.
53854         * modules/utimecmp: Likewise.
53855         * modules/xnanosleep: Likewise.
53856         * modules/xstrtol: Likewise.
53857
53858 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
53859
53860         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
53861         * modules/lock-tests (TESTS): Use $(EXEEXT).
53862         * modules/tls-tests: Likewise.
53863         * modules/argp-tests: Likewise.
53864         (check_PROGRAMS): New var, replacing...
53865         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
53866
53867 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53868
53869         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
53870         `config.h'.
53871
53872 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53873
53874         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
53875
53876 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53877
53878         Sync from coreutils.
53879         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
53880         gl_CHDIR_SAFER.
53881
53882 2006-02-22  Jim Meyering  <jim@meyering.net>
53883
53884         Sync from coreutils.
53885         * m4/chdir-safer.m4: New file.
53886
53887 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53888
53889         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
53890         AT_FDCWD exceeds INT_MAX.
53891         * lib/openat.h (AT_FDCWD): Likewise.
53892
53893 2006-02-17  Eric Blake  <address@hidden>
53894
53895         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
53896
53897 2006-02-16  Simon Josefsson  <jas@extundo.com>
53898
53899         * modules/getaddrinfo (Depends-on): Add sys_socket.
53900
53901 2006-02-15  Simon Josefsson  <jas@extundo.com>
53902
53903         * build-aux/maint.mk: Add dsyntax-check rule.
53904
53905 2006-02-15  Eric Blake  <ebb9@byu.net>
53906
53907         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
53908         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
53909         'present but cannot compile' warnings on cygwin.
53910         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
53911         use ws2tcpip.h if sys/socket.h works.
53912         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
53913         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
53914
53915 2006-02-14  Simon Josefsson  <jas@extundo.com>
53916
53917         * modules/maintainer-makefile (Files): Rename.
53918
53919         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
53920         and (the local) Makefile.cfg to maint-cfg.mk.
53921
53922         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
53923         to the latter.
53924
53925         * modules/maintainer-makefile: New module.
53926
53927         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
53928         severaly stripped to make it possible to build it up from scratch
53929         with reliable tests.
53930
53931         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
53932         fixes to permit overriding the default actions when configure and
53933         makefile are not available.
53934
53935 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53936
53937         Sync from coreutils.
53938         * modules/lstat (Depends-on): Don't depend on xalloc.
53939         (License): Change from GPL to LGPL, since this is now simply a
53940         replacement for a libc function.
53941
53942 2006-02-14  Jim Meyering  <jim@meyering.net>
53943
53944         Sync from coreutils.
53945
53946         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
53947         failure on deficient systems, and simplify gnulib lgpl dependencies.
53948         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
53949         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
53950
53951         * lib/xalloc-die.c: Remove unused definition of N_.
53952
53953 2006-02-14  Jim Meyering  <jim@meyering.net>
53954
53955         Sync from coreutils.
53956         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
53957         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
53958         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
53959         double-quote uses of that variable, to accommodate the rare case in
53960         which getmntent is available in none of the libraries checked.  This
53961         happens at least on FreeBSD 5.0.
53962
53963 2006-02-13  Simon Josefsson  <jas@extundo.com>
53964
53965         * gnulib-tool (Usage): Fix --import, from
53966         karl@freefriends.org (Karl Berry).
53967
53968 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53969
53970         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
53971
53972 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
53973
53974         * lib/argp-namefrob.h: Restore changes accidentally lost during the
53975         "autoupdate" on 2005-12-12.
53976
53977 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
53978
53979         * modules/closeout (Depends-on): Remove atexit.
53980
53981 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
53982
53983         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
53984         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
53985
53986 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53987
53988         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
53989         __EXTENSIONS__ if this causes compilation to fail.  Problem
53990         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
53991         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
53992
53993 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
53994
53995         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
53996         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
53997         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
53998         All uses changed.
53999
54000 2006-01-26  Simon Josefsson  <jas@extundo.com>
54001
54002         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54003         prototype is visible on mingw32.
54004
54005         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54006         for mingw32.
54007
54008         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54009         mingw32).
54010
54011 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54012
54013         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54014         attempt to open for write; this always fails, at least on POSIX
54015         hosts.  This reinstates the 2006-01-09 change, which was
54016         inadvertently removed.
54017
54018 2006-01-26  Bruno Haible  <bruno@clisp.org>
54019
54020         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54021         Reported by Paul Eggert.
54022
54023 2006-01-26  Bruno Haible  <bruno@clisp.org>
54024             Paul Eggert  <eggert@cs.ucla.edu>
54025
54026         * lib/stdbool_.h (_Bool)
54027         [(! (defined __cplusplus || defined __BEOS__)
54028           && !defined __GNUC__
54029           && !(defined __HP_cc || defined __xlc__
54030                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54031                || defined __sgi))]:
54032         #define to signed char in these cases too; this simplifies
54033         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54034         etc., separately) and makes it more conservative.
54035
54036 2006-01-25  Simon Josefsson  <jas@extundo.com>
54037
54038         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54039         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54040         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54041
54042 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54043
54044         * lib/argp-namefrob.h: Bugfix. Remove stray #
54045
54046 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54047
54048         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54049         so that we test the test.
54050         Check for yet another HP-UX cc bug involving *bool |= bool.
54051
54052 2006-01-25  Karl Berry  <karl@gnu.org>
54053
54054         * config/srclist.txt (vasnprintf.c): sync lost.
54055
54056 2006-01-25  Jim Meyering  <jim@meyering.net>
54057
54058         Sync from the stable (b5) branch of coreutils:
54059
54060         * lib/fts.c (fts_children): Don't let close() clobber errno from
54061         failed fchdir().
54062
54063         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54064         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54065         a dangling symlink.  That can also happen at least for ELOOP.
54066         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54067         FYI, this bug predates the inclusion of fts.c in coreutils.
54068
54069         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54070         in their own block, so pre-c99 compilers don't object.
54071
54072         Avoid the double-free (first in fts_read, second in fts_close) that
54073         would occur when an `active' directory is made inaccessible (e.g.,
54074         via chmod a-x) during a traversal.
54075         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54076         before returning.  Reproduce this failure by
54077         mkdir -p a/b; cd a; chmod a-x . b
54078         Reported by Stavros Passas.
54079
54080 2006-01-25  Jim Meyering  <jim@meyering.net>
54081
54082         * lib/fileblocks.c: Remove more useless parentheses.
54083         * lib/readutmp.h: Likewise.
54084
54085 2006-01-25  Bruno Haible  <bruno@clisp.org>
54086
54087         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54088         warnings.
54089         Reported by Paul Eggert.
54090
54091 2006-01-25  Bruno Haible  <bruno@clisp.org>
54092
54093         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54094         rid of a trap command. For Solaris sh.
54095         Reported by Mark D. Baushke <mdb@gnu.org>.
54096
54097 2006-01-24  Simon Josefsson  <jas@extundo.com>
54098
54099         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54100         Bruno.
54101
54102 2006-01-24  Karl Berry  <karl@gnu.org>
54103
54104         * config/srclist.txt (argp-namefrob.h): sync lost.
54105
54106 2006-01-24  Jim Meyering  <jim@meyering.net>
54107
54108         * modules/openat (Files): Add lib/intprops.h.
54109         From Mark D. Baushke.
54110
54111 2006-01-24  Jim Meyering  <jim@meyering.net>
54112
54113         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54114         Reported by Mark D. Baushke.
54115
54116 2006-01-24  Jim Meyering  <jim@meyering.net>
54117
54118         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54119
54120 2006-01-24  Bruno Haible  <bruno@clisp.org>
54121
54122         * modules/strnlen (Maintainer): Change from glibc to all.
54123
54124 2006-01-24  Bruno Haible  <bruno@clisp.org>
54125
54126         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54127         Patch by Paul Eggert.
54128
54129 2006-01-24  Bruno Haible  <bruno@clisp.org>
54130
54131         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54132         already has it.
54133         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54134         2005-11-26.
54135
54136         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54137         'signed char' to avoid problems with the built-in _Bool type.
54138         Reported by Paul Eggert on 2005-11-26.
54139
54140 2006-01-24  Bruno Haible  <bruno@clisp.org>
54141
54142         * gnulib-tool (func_import): Avoid constructing complicated sed
54143         expressions inside backquote.
54144         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54145
54146 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54147
54148         These changes imported from libc.
54149         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54150         test and two separate function calls.
54151         * lib/strndup.c (__strndup): Add libc_hidden_def.
54152
54153 2006-01-23  Simon Josefsson  <jas@extundo.com>
54154
54155         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54156         Remove the test_*_SOURCES variable: automake infers it by default.
54157         * modules/tls-tests: Likewise.
54158
54159 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54160
54161         Work around porting bugs reported by Dieter in
54162         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54163         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54164         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54165         Include "getopt.h" first, to check interface.
54166         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54167         !HAVE_DECL_GETENV.
54168         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54169         (__strndup): Revert to K&R-style function dfns, the glibc style.
54170         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54171         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54172         Include strnlen.h first, to get prototype properly.
54173         (strnlen): Renamed from __strnlen.
54174         Remove weak alias.
54175
54176 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54177
54178         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54179
54180 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54181
54182         * config/srclist.txt: Adjust to reflect glibc reorganization.
54183         This affects only comments.
54184
54185 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54186
54187          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54188          Reported by Bruce Korb <bkorb@gnu.org>.
54189
54190 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54191
54192         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54193         to pacify gcc -Wswitch-default.
54194
54195 2006-01-22  Bruno Haible  <bruno@clisp.org>
54196
54197         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54198         temporary buffer for sprintf, take into account the precision also
54199         for 'd', 'i', 'u', 'o', 'x', 'X'.
54200
54201 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54202
54203         * modules/argp-tests: New module
54204         * tests/test-argp.c: New file
54205         * tests/test-argp-2.sh: New file
54206
54207 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54208
54209         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54210         (__argp_base_name): Removed
54211         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54212         typo.
54213         (__argp_base_name): Provide macro definition or extern declaration
54214         depending on the configuration
54215
54216 2006-01-20  Simon Josefsson  <jas@extundo.com>
54217
54218         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54219
54220 2006-01-20  Simon Josefsson  <jas@extundo.com>
54221
54222         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54223
54224 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54225
54226         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54227         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54228         Suggested by Bruno Haible.
54229
54230 2006-01-20  Karl Berry  <karl@gnu.org>
54231
54232         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54233         until changes propagate, I guess.
54234
54235 2006-01-19  Simon Josefsson  <jas@extundo.com>
54236
54237         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54238
54239 2006-01-19  Simon Josefsson  <jas@extundo.com>
54240
54241         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54242
54243 2006-01-19  Simon Josefsson  <jas@extundo.com>
54244
54245         * gnulib-tool: Set check_PROGRAMS.
54246
54247         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54248         modules/des-tests, modules/gc-arcfour-tests,
54249         modules/gc-arctwo-tests, modules/gc-des-tests,
54250         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54251         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54252         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54253         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54254         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54255         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
54256         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
54257         test_*_SOURCES.
54258
54259 2006-01-18  Simon Josefsson  <jas@extundo.com>
54260
54261         * modules/socklen (Depends-on): Depend on sys_socket.
54262
54263 2006-01-18  Simon Josefsson  <jas@extundo.com>
54264
54265         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54266         modules/des-tests, modules/gc-arcfour-tests,
54267         modules/gc-arctwo-tests, modules/gc-des-tests,
54268         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54269         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54270         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54271         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54272         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54273         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
54274         $(EXEEXT) to automake TESTS variable, for mingw32.
54275
54276 2006-01-17  Simon Josefsson  <jas@extundo.com>
54277
54278         * modules/socklen (Include): Need sys/socket.h.
54279
54280 2006-01-17  Bruno Haible  <bruno@clisp.org>
54281
54282         * modules/ssize_t (Include): Add <sys/types.h>.
54283
54284 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54285
54286         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54287         it's not portable and it doesn't work with cross-compiles.
54288         Problem reported by Bruno Haible.  Fix missing-$ typo in
54289         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54290         -zignore from being used with Sun's C compiler.
54291
54292 2006-01-12  Simon Josefsson  <jas@extundo.com>
54293
54294         * lib/base64.c: Fix warning, reported by Bruno Haible
54295         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54296
54297 2006-01-12  Bruno Haible  <bruno@clisp.org>
54298
54299         * modules/ldd: New file.
54300         * build-aux/ldd.sh.in: New file.
54301         * MODULES.html.sh (Support for building libraries and executables): Add
54302         ldd.
54303
54304 2006-01-12  Bruno Haible  <bruno@clisp.org>
54305
54306         * m4/ldd.m4: New file.
54307
54308 2006-01-12  Bruno Haible  <bruno@clisp.org>
54309
54310         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54311         endless loop while replacing $auxdir with build-aux.
54312
54313 2006-01-11  Simon Josefsson  <jas@extundo.com>
54314
54315         * lib/stdint_.h (SIZE_MAX): Add missing (.
54316
54317 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54318
54319         Sync from coreutils.
54320         * lib/md5.c: Fix commentary typos.
54321         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54322         * lib/md5.h (__attribute__): Remove; unused.
54323         * lib/sha1.c: Fix commentary to match md5 better.
54324         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54325         so that we don't need to worry about alignment.  All uses changed.
54326         This merges the 2005-10-28 md5 change into sha1.
54327
54328 2006-01-11  Jim Meyering  <jim@meyering.net>
54329
54330         Sync from coreutils.
54331         * lib/md5.c (OP): Fix spacing.
54332
54333 2006-01-11  Bruno Haible  <bruno@clisp.org>
54334
54335         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54336         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54337         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54338
54339 2006-01-11  Bruno Haible  <bruno@clisp.org>
54340
54341         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54342         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54343         the "early" section as well.
54344
54345 2006-01-11  Bruno Haible  <bruno@clisp.org>
54346
54347         Avoid "ar: no archive members specified" error on MacOS X.
54348         * gnulib-tool (func_modules_add_dummy): New function.
54349         (func_import, func_create_testdir): Invoke it.
54350
54351 2006-01-11  Bruno Haible  <bruno@clisp.org>
54352
54353         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54354         with $auxdir in AC_CONFIG_FILES statements.
54355
54356 2006-01-11  Bruno Haible  <bruno@clisp.org>
54357
54358         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54359         Initialize also noinst_HEADERS to empty.
54360
54361 2006-01-11  Bruno Haible  <bruno@clisp.org>
54362
54363         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54364         variables.
54365         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54366         autoreconf.
54367
54368 2006-01-11  Bruno Haible  <bruno@clisp.org>
54369
54370         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54371         overridable by the user.
54372         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54373
54374 2006-01-10  Simon Josefsson  <jas@extundo.com>
54375
54376         * modules/sys_socket: New file.
54377
54378 2006-01-10  Simon Josefsson  <jas@extundo.com>
54379
54380         * m4/sys_socket_h.m4: New file.
54381
54382 2006-01-10  Simon Josefsson  <jas@extundo.com>
54383
54384         * lib/socket_.h: New file.
54385
54386 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54387
54388         * modules/readutmp (Maintainer): Add myself.
54389
54390 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54391
54392         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54393         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54394         People who are still concerned with buggy memcmp implementations
54395         can invoke gl_FUNC_MEMCMP themselves.
54396
54397 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54398
54399         * lib/regex_internal.h (BITSET_WORD_BITS):
54400         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54401         preprocessor mishandles large unsigned values as if they were signed.
54402         Problem reported by Claudio Fontana in
54403         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54404
54405 2006-01-10  Jim Meyering  <jim@meyering.net>
54406
54407         Avoid the double-free (first in fts_read, second in fts_close) that
54408         would occur when an `active' directory is made inaccessible (e.g.,
54409         via chmod a-x) during a traversal.
54410         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54411         before returning.  Reproduce this failure by
54412         mkdir -p a/b; cd a; chmod a-x . b
54413         Reported by Stavros Passas.
54414
54415         Sync from coreutils.
54416         * lib/sha1.c: Tweak grammar in a comment.
54417
54418 2006-01-10  Jim Meyering  <jim@meyering.net>
54419
54420         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
54421         Patch by Joerg Sonnenberger.
54422
54423 2006-01-10  Bruno Haible  <bruno@clisp.org>
54424
54425         * modules/readutmp: Depend on module free.
54426         * modules/strtok_r: Depend on module restrict.
54427
54428 2006-01-10  Bruno Haible  <bruno@clisp.org>
54429
54430         * modules/gettext (configure.ac): Add an invocation of
54431         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
54432
54433 2006-01-10  Bruno Haible  <bruno@clisp.org>
54434
54435         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
54436         Reported by Werner Lemberg <wl@gnu.org>.
54437
54438 2006-01-10  Bruno Haible  <bruno@clisp.org>
54439
54440         * lib/localcharset.c: Update from GNU gettext.
54441
54442 2006-01-10  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/argp.h (__const): Remove macro. Use const instead.
54445         * lib/argp-fmtstream.h (__const): Likewise.
54446         * lib/glob_.h (__const): Remove macro.
54447         * lib/glob-libc.h: Use const instead of __const.
54448
54449 2006-01-10  Bruno Haible  <bruno@clisp.org>
54450
54451         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
54452         variable.
54453         Needed to avoid an automake error regarding the 'gettext' module.
54454
54455 2006-01-09  Simon Josefsson  <jas@extundo.com>
54456
54457         * modules/inet_ntop (Depends-on): Add restrict.
54458
54459 2006-01-09  Simon Josefsson  <jas@extundo.com>
54460
54461         * modules/gc-rijndael-tests (License): Put under LGPL.
54462
54463         * modules/gc-des-tests (License): Likewise.
54464
54465         * modules/gc-arcfour-tests (License): Likewise.
54466
54467         * modules/gc-arctwo-tests (License): Likewise.
54468
54469         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
54470
54471         * modules/gc-hmac-sha1-tests (Files): Likewise.
54472
54473         * modules/gc-hmac-md5-tests (License): Likewise.
54474
54475         * modules/gc-sha1-tests (License): Likewise.
54476
54477         * modules/gc-md5-tests (License): Likewise.
54478
54479         * modules/gc-md4-tests (License): Likewise.
54480
54481         * modules/gc-md2-tests (License): Likewise.
54482
54483         * modules/gc-tests (License): Likewise.
54484
54485         * modules/des-tests (License): Likewise.
54486
54487         * modules/md4-tests (License): Likewise.
54488
54489         * modules/md2-tests (License): Likewise.
54490
54491 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54492
54493         Sync from coreutils:
54494
54495         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
54496         * modules/lib-ignore: New file.
54497         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
54498         chdir-safer.m4, lchmod.m4.
54499         * modules/openat: Add mkdirat.c, openat-priv.h.
54500
54501 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54502
54503         Sync from coreutils.
54504         * m4/lib-ignore.m4: New file.
54505         * m4/lchmod.m4: New file.
54506
54507 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         Sync from coreutils.
54510         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
54511         for write access: POSIX says that must fail.
54512         * lib/fts.c (diropen): Likewise.
54513         * lib/save-cwd.c (save_cwd): Likewise.
54514         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
54515         well, for minor improvements on hosts that lack O_DIRECTORY.
54516         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
54517         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
54518         Fall back on chown if open failed with EACCES.
54519
54520         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
54521         Report an error at compile-time if only a 1-second nominal clock
54522         resolution is found.
54523
54524         * lib/lchmod.h: New file.
54525         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
54526         (make_dir_parents): Use lchown rather than chown, and
54527         lchmod rather than chmod.
54528
54529         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
54530         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
54531         "proc" reported by n0dalus.
54532
54533         * lib/mountlist.c: Include <limits.h>.
54534         (dev_from_mount_options)
54535         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
54536         New function.  It no longer assumes "dev=" has the System V meaning
54537         on Linux (since it doesn't).  It also parses "dev=" more carefully.
54538         (read_file_system_list)
54539         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
54540         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
54541         dev= in that case.
54542
54543         * lib/posixtm.h (PDS_PRE_2000): New macro.
54544         * lib/posixtm.c (year): Arg is now syntax_bits rather than
54545         allow_century.  All usages changed.  Reject dates outside the range
54546         1969-1999 if PDS_PRE_2000 is used.
54547
54548 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54549
54550         Sync from coreutils.
54551         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
54552         (Time of day items): Mention the possibility of leap seconds.
54553         Problem reported by Dr. David Alan Gilbert.
54554
54555 2006-01-09  Jim Meyering  <jim@meyering.net>
54556
54557         Sync from coreutils.
54558
54559         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
54560
54561         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
54562
54563         * lib/modechange.c (mode_compile): Reject an invalid mode string
54564         that starts with an octal digit.  From Andreas Gruenbacher.
54565
54566         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
54567         and dup to open_safer and dup_safer, respectively.
54568         (openat_permissive): Fix typo in comment.
54569
54570         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
54571         "gettext.h"; either no longer needed or are guaranteed by openat.h.
54572         (_): Remove; no longer needed.
54573         (openat): Renamed from rpl_openat; no need for rpl_openat
54574         since openat.h renames openat for us.
54575         Replace most of the body with a call to openat_permissive,
54576         to avoid duplicate code.
54577         Port to (probably hypothetical) environments were mode_t is
54578         wider than int.
54579         (openat_permissive): Require mode arg, so that we can check
54580         types better.  Put it just after flags.  Change cwd failure
54581         indicator from pointer-to-bool to pointer-to-errno-value.
54582         All callers changed.
54583         Invoke openat_save_fail and/or openat_restore_fail if
54584         cwd_errno is null, so that openat can call us.
54585         (openat_permissive, fdopendir, fstatat, unlinkat):
54586         Simplify errno handling to avoid some duplicate code,
54587         as it's OK to set errno on success.
54588         * lib/openat.h: Revamp code so that function macros depend on
54589         __OPENAT_PREFIX only, not also on AT_FDCWD.
54590         (openat_ro): Remove.  Caller changed to use openat_permissive.
54591         (openat_permissive): Now a macro, if not a function.
54592         (openat_restore_fail, openat_save_fail): Now always functions,
54593         since mkdirat needs them even if __OPENAT_PREFIX is defined.
54594
54595         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
54596         and openat.c.
54597         * lib/mkdirat.c: Include openat-priv.h.
54598         Remove definitions of macros defined therein.
54599         * lib/openat.c: Likewise.
54600
54601         * lib/mkdirat.c (mkdirat): New file and function.
54602         * lib/openat.h (mkdirat): Declare.
54603
54604         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
54605
54606         * lib/openat.h (openat_permissive): Declare.
54607         (openat_ro): Define.
54608
54609         * lib/openat.c (EXPECTED_ERRNO): New macro.
54610         (openat_permissive): New function -- used in remove.c rewrite.
54611         (all functions): Set errno just before returning, only if there
54612         was an actual failure.
54613         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
54614
54615         Emulate openat-family functions using Linux's procfs, if possible.
54616         Idea and some code based on Ulrich Drepper's glibc changes.
54617
54618         * lib/openat.c: (BUILD_PROC_NAME): New macro.
54619         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
54620         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
54621         before falling back on save_cwd and restore_cwd.
54622         (fdopendir, fstatat, unlinkat): Likewise.
54623
54624         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
54625         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
54626
54627         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
54628         as second argument to va_arg.  Otherwise, some versions of gcc
54629         warn that `if this code is reached, the program will abort'.
54630
54631 2006-01-09  Jim Meyering  <jim@meyering.net>
54632
54633         Sync from coreutils.
54634         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
54635         Require openat-priv.h.
54636
54637 2006-01-09  Bruno Haible  <bruno@clisp.org>
54638
54639         * modules/strnlen (Include): Use strnlen.h.
54640
54641 2006-01-09  Bruno Haible  <bruno@clisp.org>
54642
54643         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
54644
54645 2006-01-09  Bruno Haible  <bruno@clisp.org>
54646
54647         * lib/sysexit_.h (EX_OK): New macro.
54648         Suggested by Martin Lambers <marlam@marlam.de>.
54649
54650 2006-01-09  Bruno Haible  <bruno@clisp.org>
54651
54652         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
54653         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
54654
54655 2006-01-09  Bruno Haible  <bruno@clisp.org>
54656
54657         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
54658         numbers.
54659
54660 2006-01-09  Bruno Haible  <bruno@clisp.org>
54661
54662         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
54663         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
54664         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
54665         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
54666
54667 2006-01-09  Bruno Haible  <bruno@clisp.org>
54668
54669         * build-aux/javacomp.sh.in: New file, moved from lib/.
54670         * modules/javacomp-script (Files): Update.
54671         (configure.ac): Add AC_CONFIG_FILES invocation.
54672         (EXTRA_DIST): Remove variable.
54673
54674         * build-aux/javaexec.sh.in: New file, moved from lib/.
54675         * modules/javaexec (Files): Update.
54676         (configure.ac): Add AC_CONFIG_FILES invocation.
54677         (EXTRA_DIST): Remove javaexec.sh.in.
54678
54679         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
54680         * modules/csharpcomp-script (Files): Update.
54681         (configure.ac): Add AC_CONFIG_FILES invocation.
54682         (EXTRA_DIST): Remove variable.
54683
54684         * build-aux/csharpexec.sh.in: New file, moved from lib/.
54685         * modules/csharpexec (Files): Update.
54686         (configure.ac): Add AC_CONFIG_FILES invocation.
54687         (EXTRA_DIST): Remove csharpexec.sh.in.
54688
54689 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54690
54691         Sync from coreutils.
54692
54693         Add POSIX ACL support
54694         * lib/acl.h (copy_acl, set_acl): Add declarations.
54695         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
54696         systems other than Linux.
54697         (chmod_or_fchmod): New function: use fchmod when possible,
54698         and chmod otherwise.
54699         (file_has_acl): Add a POSIX ACL implementation, with a
54700         Linux-specific subcase.
54701         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
54702         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
54703         acls are unsupported.
54704         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
54705         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
54706         are unsupported.
54707
54708 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54709
54710         Sync from coreutils.
54711         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
54712
54713 2006-01-07  Bruno Haible  <bruno@clisp.org>
54714
54715         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
54716         gl_EARLY.
54717
54718 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54719
54720         * lib/strftime.c (tzname): Don't declare if it is already #defined.
54721         Problem reported for Mingw by Mark Junker.
54722
54723 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54724
54725         * README: Gnulib normally doesn't generate a tarball.
54726
54727 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
54728
54729         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
54730         long int, not int, for nanosecond counts, so that people who are
54731         used to POSIX struct timespec won't be surprised.  Reported by Jim
54732         Meyering.
54733
54734 2005-12-28  Bruno Haible  <bruno@clisp.org>
54735
54736         * build-aux/config.rpath: Update from GNU gettext.
54737
54738 2005-12-16  Jim Meyering  <jim@meyering.net>
54739
54740         * modules/fprintftime: New module.
54741         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
54742
54743 2005-12-16  Jim Meyering  <jim@meyering.net>
54744
54745         * m4/fprintftime.m4: New file.
54746
54747 2005-12-16  Jim Meyering  <jim@meyering.net>
54748
54749         * lib/fprintftime.c, lib/fprintftime.h: New files.
54750
54751 2005-12-15  Simon Josefsson  <jas@extundo.com>
54752
54753         * modules/socklen (configure.ac): Fix M4 macro name, to align with
54754         new m4/socklen.m4.
54755
54756 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54757
54758         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
54759         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
54760
54761 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54762
54763         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
54764         * lib/argp-help.c (fill_in_uparams): Check if the constructed
54765         struct uparams is valid. Fall back to the default values if it is
54766         not.
54767
54768 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54769
54770         * modules/argp (Files): Add argp-pin.c
54771         (Depends-on): dirname
54772         (lib_SOURCES): Add argp-pin.c
54773
54774 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54775
54776         * m4/argp.m4:  Check if program_invocation_name and
54777         program_invocation_short_name are declared and define appropriate
54778         macros if they are not.
54779
54780 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54781
54782         * lib/argp-help.c (__argp_base_name): New function
54783         (__argp_short_program_name): Rewrite using __argp_base_name
54784         * lib/argp-namefrob.h: Define program_invocation_name and
54785         program_invocation_short_name if requested
54786         (__argp_base_name): Add prototype
54787         * lib/argp-parse.c (argp_def): Use gettext wrappers
54788         (argp_default_parser): Use __argp_base_name
54789         * lib/argp-pin.c: New file. Defines program_invocation_name and
54790         program_invocation_short_name on systems that lack them.
54791
54792 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54793
54794         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
54795         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54796         porting problem reported by Georg Schwarz in
54797         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54798
54799 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54800
54801         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
54802         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54803         porting problem reported by Georg Schwarz in
54804         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54805
54806 2005-12-05  Bruno Haible  <bruno@clisp.org>
54807
54808         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
54809         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
54810         Reported by Mark Junker <mjscod@gmx.de>.
54811
54812 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
54813
54814         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
54815         Use implementation from Albert Chin, with some
54816         comments/corrections by Stepan Kasal and myself.
54817
54818 2005-12-02  Bruno Haible  <bruno@clisp.org>
54819
54820         * gnulib-tool (func_import): Accept GPLed build tool modules when
54821         --lgpl is given.
54822         * modules/csharpcomp-script: New file.
54823         * modules/csharpcomp: Depend on it.
54824         * modules/javacomp-script: New file.
54825         * modules/javacomp: Depend on it.
54826         Suggested by Simon Josefsson.
54827
54828 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
54829
54830         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
54831         statement, to work around an HP-UX 10.20 compiler bug reported by
54832         Peter O'Gorman.
54833
54834 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
54835
54836         * modules/savedir (Depends-on): Add openat.
54837
54838 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
54839
54840         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
54841         (uintmax_t) [defined uintmax_t]: Do not declare.
54842         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
54843         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
54844         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
54845         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
54846         sake of portability to weird hosts that C allows (though we don't
54847         know of any practical examples).
54848
54849         * lib/savedir.h (fdsavedir): New decl.
54850         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
54851         contains most of the former guts of savedir.
54852         (savedir): Use savedirstream.
54853         Include "openat.h".
54854
54855 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54856
54857         * modules/obstack (Files): Add m4/ulonglong.m4.
54858         Problem reported by Davide Angelocola.
54859
54860 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54861
54862         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
54863         coreutils no longer futzes with rounding modes.
54864
54865 2005-11-14  Jim Meyering  <jim@meyering.net>
54866
54867         * lib/mkstemp-safer.c: Include <config.h>, required for possible
54868         replacement of mkstemp.
54869
54870 2005-11-10  Simon Josefsson  <jas@extundo.com>
54871
54872         * lib/readline.c: Remove EOL.
54873
54874 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54875
54876         * modules/gethrxtime (Depends-on): Add gettime.
54877
54878 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54879
54880         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
54881         or gettimeofday; no longer needed.
54882
54883 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54884
54885         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
54886         time business.
54887         (gethrxtime) [! (HAVE_NANOUPTIME
54888         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
54889         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
54890         our own approximation.
54891
54892 2005-11-08  Eric Blake  <ebb9@byu.net>
54893
54894         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54895
54896 2005-11-08  Eric Blake  <ebb9@byu.net>
54897
54898         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54899
54900 2005-11-04  Bruno Haible  <bruno@clisp.org>
54901
54902         * gnulib-tool: Implement --update mode.
54903
54904 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54905
54906         Fix porting problem reported by Theodoros V. Kalamatianos.
54907         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
54908         Don't assume that futimes failing means we must fail.
54909
54910 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54911
54912         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
54913         variables to suggest the intended function of the PATH_MAX check.
54914
54915 2005-10-30  Kean Johnston  <jkj@sco.com>
54916
54917         Trivial changes to support SCO systems.
54918         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
54919         as PATH_MAX.
54920         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
54921         where __ptr is null when no I/O is pending.
54922
54923 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54924
54925         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
54926         leave errno alone.  Problem reported by Dmitry V. Levin.
54927
54928 2005-10-28  Simon Josefsson  <jas@extundo.com>
54929
54930         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
54931         Test more.
54932
54933         * tests/test-gc-md2.c, tests/test-md2.c: New files.
54934
54935         * modules/md2, modules/md2-tests: New files.
54936
54937 2005-10-28  Simon Josefsson  <jas@extundo.com>
54938
54939         * m4/inet_ntop.m4: More tests.
54940
54941         * m4/gc-md2.m4, md2.m4: New file.
54942
54943 2005-10-28  Simon Josefsson  <jas@extundo.com>
54944
54945         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
54946         "restrict" keywords, as per POSIX.  Protect the function
54947         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
54948         Don't use K&R prototypes.  Check the sprintf return values.
54949         Re-define EAFNOSUPPORT if not present.  Indent.
54950
54951         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
54952         suggested by Bruno Haible <bruno@clisp.org>.
54953
54954         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
54955
54956         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
54957
54958         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
54959         libgcrypt).
54960
54961         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
54962
54963         * lib/md2.h, lib/md2.c: New files.
54964
54965 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
54966
54967         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
54968         errno alone.  Problem reported by Frederic Jolliton.
54969
54970 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54971
54972         * modules/verify (License): Change from GPL to LGPL.  This is a
54973         tiny module and there are apparently near-equivalents that are
54974         under the BSD license.
54975
54976 2005-10-24  Simon Josefsson  <jas@extundo.com>
54977
54978         * modules/sha1: Relicense to LGPL.
54979
54980 2005-10-24  Simon Josefsson  <jas@extundo.com>
54981
54982         * lib/md4.h: Shrink buffer size, now that we changed the type.
54983
54984 2005-10-23  Simon Josefsson  <jas@extundo.com>
54985
54986         * gnulib-tool (func_import): Fix --tests-base.
54987
54988 2005-10-22  Simon Josefsson  <jas@extundo.com>
54989
54990         * modules/arcfour (Depends-on): Need stdint.
54991
54992 2005-10-22  Simon Josefsson  <jas@extundo.com>
54993
54994         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
54995         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
54996
54997 2005-10-22  Simon Josefsson  <jas@extundo.com>
54998
54999         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55000         suggested by Bruno Haible <bruno@clisp.org>.
55001
55002 2005-10-22  Simon Josefsson  <jas@extundo.com>
55003
55004         * lib/crc.h: Include stddef.h, for size_t.
55005
55006 2005-10-22  Simon Josefsson  <jas@extundo.com>
55007
55008         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55009         arcfour_context struct (simplify test vector testing in GNU
55010         Shishi).
55011
55012 2005-10-21  Simon Josefsson  <jas@extundo.com>
55013
55014         * modules/des, modules/des-tests: New files.
55015
55016         * modules/gc-des, modules/gc-des-tests: New files.
55017
55018         * tests/test-des.c, tests/test-gc-des.c: New file.
55019
55020 2005-10-21  Simon Josefsson  <jas@extundo.com>
55021
55022         * modules/arctwo, modules/arctwo-tests: New files.
55023
55024         * tests/test-arctwo.c: New file.
55025
55026         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55027
55028         * tests/test-gc-arctwo.c: New file.
55029
55030 2005-10-21  Simon Josefsson  <jas@extundo.com>
55031
55032         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55033         Bruno Haible <bruno@clisp.org>.
55034
55035         * m4/gc-des.m4: New file.
55036
55037 2005-10-21  Simon Josefsson  <jas@extundo.com>
55038
55039         * m4/arctwo.m4: New file.
55040
55041         * m4/gc-arctwo.m4: New file.
55042
55043 2005-10-21  Simon Josefsson  <jas@extundo.com>
55044
55045         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55046         block.
55047
55048 2005-10-21  Simon Josefsson  <jas@extundo.com>
55049
55050         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55051         <bruno@clisp.org>.
55052
55053         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55054
55055         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55056         Bruno Haible <bruno@clisp.org>.
55057
55058         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55059         <bruno@clisp.org>.
55060
55061 2005-10-21  Simon Josefsson  <jas@extundo.com>
55062
55063         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55064
55065 2005-10-21  Simon Josefsson  <jas@extundo.com>
55066
55067         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55068
55069 2005-10-21  Simon Josefsson  <jas@extundo.com>
55070
55071         * lib/des.h, lib/des.c: New files.
55072
55073         * lib/gc-gnulib.c: Support DES.c
55074
55075 2005-10-21  Simon Josefsson  <jas@extundo.com>
55076
55077         * lib/arctwo.h, lib/arctwo.c: New files.
55078
55079         * lib/gc-gnulib.c: Support ARCTWO.
55080
55081 2005-10-21  Simon Josefsson  <jas@extundo.com>
55082
55083         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55084         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55085
55086 2005-10-21  Simon Josefsson  <jas@extundo.com>
55087
55088         * gnulib-tool (func_import, func_create_testdir): Define automake
55089         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55090         Makefile.am snippet),
55091         suggested by Bruno Haible <bruno@clisp.org>.
55092
55093         * modules/gc (Makefile.am): Use it.
55094
55095 2005-10-21  Bruno Haible  <bruno@clisp.org>
55096
55097         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55098         patch.
55099
55100 2005-10-19  Simon Josefsson  <jas@extundo.com>
55101
55102         * tests/test-gc-rijndael.c: New file.
55103
55104         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55105
55106 2005-10-19  Simon Josefsson  <jas@extundo.com>
55107
55108         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55109         interface too.
55110
55111 2005-10-19  Simon Josefsson  <jas@extundo.com>
55112
55113         * tests/test-gc-arcfour.c: New file.
55114
55115         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55116
55117 2005-10-19  Simon Josefsson  <jas@extundo.com>
55118
55119         * modules/gc-md4, modules/gc-md4-tests: New file.
55120
55121         * tests/test-gc-md4.c: New file.
55122
55123 2005-10-19  Simon Josefsson  <jas@extundo.com>
55124
55125         * m4/gc-md4.m4: New file.
55126
55127 2005-10-19  Simon Josefsson  <jas@extundo.com>
55128
55129         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55130         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55131         <kasal@ucw.cz>.
55132
55133 2005-10-19  Simon Josefsson  <jas@extundo.com>
55134
55135         * m4/gc-arcfour.m4: New file.
55136
55137         * m4/gc-rijndael.m4: New file.
55138
55139 2005-10-19  Simon Josefsson  <jas@extundo.com>
55140
55141         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55142
55143 2005-10-19  Simon Josefsson  <jas@extundo.com>
55144
55145         * lib/gc-gnulib.c: Support ARCFOUR.
55146
55147 2005-10-19  Simon Josefsson  <jas@extundo.com>
55148
55149         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55150         support.
55151
55152         * lib/gc.h: Add ECB enum type.
55153
55154         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55155
55156 2005-10-18  Simon Josefsson  <jas@extundo.com>
55157
55158         * tests/test-md5.c: New file.
55159
55160         * modules/md5-tests: New file.
55161
55162 2005-10-18  Simon Josefsson  <jas@extundo.com>
55163
55164         * tests/test-md4.c: New file.
55165
55166         * modules/md4, modules/md4-tests: New files.
55167
55168 2005-10-18  Simon Josefsson  <jas@extundo.com>
55169
55170         * m4/md4.m4: New file.
55171
55172 2005-10-18  Simon Josefsson  <jas@extundo.com>
55173
55174         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55175
55176 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55177
55178         * gnulib-tool (func_create_testdir): Omit the second check whether
55179         BUILT_SOURCES in nonempty.
55180
55181 2005-10-17  Simon Josefsson  <jas@extundo.com>
55182
55183         * tests/test-rijndael.c: New file.
55184
55185 2005-10-17  Simon Josefsson  <jas@extundo.com>
55186
55187         * modules/sha1: Depend on stdint instead of md5.
55188
55189         * modules/md5: Depend on stdint, remove uint32_t.
55190
55191 2005-10-17  Simon Josefsson  <jas@extundo.com>
55192
55193         * modules/gc-sha1-tests: New file.
55194
55195         * tests/test-gc-sha1.c: New file.
55196
55197 2005-10-17  Simon Josefsson  <jas@extundo.com>
55198
55199         * m4/md5.m4: Remove call to uint32_t.m4.
55200
55201 2005-10-17  Simon Josefsson  <jas@extundo.com>
55202
55203         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55204
55205         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55206         md5.h.
55207
55208         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55209
55210         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55211
55212 2005-10-17  Simon Josefsson  <jas@extundo.com>
55213
55214         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55215
55216 2005-10-17  Simon Josefsson  <jas@extundo.com>
55217
55218         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55219
55220 2005-10-17  Simon Josefsson  <jas@extundo.com>
55221
55222         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55223
55224         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55225
55226 2005-10-17  Bruno Haible  <bruno@clisp.org>
55227
55228         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55229         that it can also be used in a test.
55230
55231 2005-10-16  Bruno Haible  <bruno@clisp.org>
55232
55233         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55234         TESTS_ENVIRONMENT, so that individual tests can augment it.
55235
55236         * gnulib-tool (func_create_testdir): Use an intermediate target for
55237         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55238         macros, like $(ALLOCA_H), which cannot be passed through the command
55239         line.
55240
55241 2005-10-15  Simon Josefsson  <jas@extundo.com>
55242
55243         * modules/rijndael-tests: New file.
55244
55245         * modules/rijndael: New file.
55246
55247 2005-10-15  Simon Josefsson  <jas@extundo.com>
55248
55249         * m4/rijndael.m4: New file.
55250
55251 2005-10-15  Simon Josefsson  <jas@extundo.com>
55252
55253         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
55254
55255         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
55256
55257 2005-10-14  Simon Josefsson  <jas@extundo.com>
55258
55259         * tests/test-arcfour.c: New file.
55260
55261         * modules/arcfour, modules/arcfour-tests: New files.
55262
55263 2005-10-14  Simon Josefsson  <jas@extundo.com>
55264
55265         * m4/arcfour.m4: New file.
55266
55267 2005-10-14  Simon Josefsson  <jas@extundo.com>
55268
55269         * lib/arcfour.h, lib/arcfour.c: New files.
55270
55271 2005-10-14  Roland McGrath  <roland@redhat.com>
55272
55273         Import from libc.  [BZ #1331]
55274         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
55275         macro argument.
55276         Reported by Matej Vela <vela@debian.org>.
55277
55278 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55279
55280         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
55281         include <wchar.h>; no longer needed.
55282
55283 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55286
55287 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55288         and  Ulrich Drepper  <drepper@redhat.com>
55289
55290         Import from libc.
55291         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55292         instead of inline stream orientation test and two separate
55293         function calls.  Pay no attention to USE_IN_LIBIO.
55294
55295 2005-10-13  Simon Josefsson  <jas@extundo.com>
55296
55297         * modules/gc-hmac-md5-tests: New file.
55298
55299         * tests/test-gc-hmac-sha1.c: New file.
55300
55301         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55302
55303         * modules/gc-hmac-md5-tests: New file.
55304
55305         * tests/test-gc-md5.c: New file.
55306
55307         * modules/gc-md5-tests: New file.
55308
55309 2005-10-13  Simon Josefsson  <jas@extundo.com>
55310
55311         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55312         Move memory allocation outside of loop.
55313
55314 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55315
55316         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55317         intermediate directory is in a read-only file system.  Problem
55318         reported by Eric Blake.
55319
55320 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55321
55322         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55323
55324 2005-10-12  Simon Josefsson  <jas@extundo.com>
55325
55326         * tests/test-hmac-sha1.c: New file.
55327
55328         * modules/hmac-sha1-tests: New file.
55329
55330         * modules/hmac-sha1: New file.
55331
55332 2005-10-12  Simon Josefsson  <jas@extundo.com>
55333
55334         * modules/gc-sha1: New file.
55335
55336 2005-10-12  Simon Josefsson  <jas@extundo.com>
55337
55338         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55339
55340         * tests/test-gc-pbkdf2-sha1.c: New file.
55341
55342 2005-10-12  Simon Josefsson  <jas@extundo.com>
55343
55344         * modules/gc-md5, modules/gc-hmac-md5: New files.
55345
55346         * modules/gc (Files): Remove md5, memxor and hmac files.
55347
55348 2005-10-12  Simon Josefsson  <jas@extundo.com>
55349
55350         * m4/gc-pbkdf2-sha1.m4: New file.
55351
55352         * m4/gc-hmac-sha1.m4: New file.
55353
55354         * m4/gc-sha1: New file.
55355
55356         * m4/hmac-sha1.m4: New file.
55357
55358 2005-10-12  Simon Josefsson  <jas@extundo.com>
55359
55360         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55361
55362         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55363
55364 2005-10-12  Simon Josefsson  <jas@extundo.com>
55365
55366         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55367         suggested by Bruno Haible <bruno@clisp.org>.
55368
55369 2005-10-12  Simon Josefsson  <jas@extundo.com>
55370
55371         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55372
55373 2005-10-12  Simon Josefsson  <jas@extundo.com>
55374
55375         * lib/gc-pbkdf2-sha1.c: New file.
55376
55377         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55378
55379 2005-10-12  Simon Josefsson  <jas@extundo.com>
55380
55381         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55382
55383         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55384
55385 2005-10-12  Simon Josefsson  <jas@extundo.com>
55386
55387         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55388         GC_USE_HMAC_MD5, respectively.
55389
55390         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55391         (gc_md5): Fix typo.
55392
55393         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55394
55395         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55396
55397         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55398
55399 2005-10-12  Bruno Haible  <bruno@clisp.org>
55400
55401         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55402         Reported by Stepan Kasal <kasal@ucw.cz>.
55403
55404 2005-10-11  Simon Josefsson  <jas@extundo.com>
55405
55406         * tests/test-crc.c: New file.
55407
55408         * modules/crc, modules/crc-tests: New files.
55409
55410 2005-10-11  Simon Josefsson  <jas@extundo.com>
55411
55412         * m4/crc.m4: New file.
55413
55414 2005-10-11  Simon Josefsson  <jas@extundo.com>
55415
55416         * lib/gc.h: Add gc_hash and gc_hash_buffer.
55417
55418         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
55419
55420         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
55421
55422 2005-10-11  Simon Josefsson  <jas@extundo.com>
55423
55424         * lib/crc.h, lib/crc.c: New files.
55425
55426         * lib/gc.h (gc_hash_buffer): Add doc.
55427
55428 2005-10-11  Bruno Haible  <bruno@clisp.org>
55429
55430         * modules/c-strcasestr: New file.
55431         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
55432
55433 2005-10-11  Bruno Haible  <bruno@clisp.org>
55434
55435         * modules/c-strcase: New file.
55436         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
55437
55438 2005-10-11  Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/strcasecmp.c: Include limits.h.
55441         (strcasecmp): Avoid integer overflow on exotic platforms.
55442         * lib/strncasecmp.c: Include limits.h.
55443         (strncasecmp): Avoid integer overflow on exotic platforms.
55444         Reported by Paul Eggert.
55445
55446 2005-10-11  Bruno Haible  <bruno@clisp.org>
55447
55448         * lib/c-strcasestr.h: New file, from GNU gettext.
55449         * lib/c-strcasestr.c: New file, from GNU gettext.
55450
55451 2005-10-11  Bruno Haible  <bruno@clisp.org>
55452
55453         * lib/c-strcase.h: New file, from GNU gettext.
55454         * lib/c-strcasecmp.c: New file, from GNU gettext.
55455         * lib/c-strncasecmp.c: New file, from GNU gettext.
55456
55457 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55458
55459         * modules/mempcpy (License): GPL -> LGPL.
55460         * modules/strchrnul (License): Likewise.
55461         * modules/sysexits (License): Likewise.
55462
55463 2005-10-08  Simon Josefsson  <jas@extundo.com>
55464
55465         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
55466
55467 2005-10-07  Simon Josefsson  <jas@extundo.com>
55468
55469         * m4/memxor.m4: Remove gl_C_RESTRICT call.
55470
55471 2005-10-06  Simon Josefsson  <jas@extundo.com>
55472
55473         * tests/test-hmac-md5.c: New file.
55474
55475         * modules/hmac-md5-tests: New file.
55476
55477         * modules/hmac-md5: New file.
55478
55479 2005-10-06  Simon Josefsson  <jas@extundo.com>
55480
55481         * m4/hmac-md5.m4: New file.
55482
55483         * m4/memxor.m4: Require gl_C_RESTRICT.
55484
55485 2005-10-06  Simon Josefsson  <jas@extundo.com>
55486
55487         * lib/memxor.c (memxor): Avoid casts and warnings.
55488
55489 2005-10-06  Simon Josefsson  <jas@extundo.com>
55490
55491         * lib/hmac-md5.c: New file.
55492
55493         * lib/hmac.h: New file.
55494
55495 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55496
55497         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
55498         promotes to int, not unsigned int, to catch the AIX 5.3
55499         compiler bug.
55500
55501 2005-10-05  Simon Josefsson  <jas@extundo.com>
55502
55503         * modules/memxor: New file.
55504
55505         * modules/iconv (Files): Move config.rpath to havelib, it is used
55506         there.
55507
55508         * modules/havelib (Files): Add config.rpath.
55509
55510 2005-10-05  Simon Josefsson  <jas@extundo.com>
55511
55512         * m4/memxor.m4: New file.
55513
55514 2005-10-05  Simon Josefsson  <jas@extundo.com>
55515
55516         * lib/memxor.c (memxor): Fix compiler error.
55517
55518         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
55519         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
55520
55521         * lib/memxor.h, lib/memxor.c: New files.
55522
55523         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
55524         we assume all systems have it, suggested by Jim Meyering
55525         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
55526         any systems lack sys/socket.h; mingw32 is known to lack it, but we
55527         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
55528         same reasons.
55529
55530 2005-10-05  Simon Josefsson  <jas@extundo.com>
55531
55532         * config/srclist.txt: Add glibc bug 1423 for md5.h.
55533
55534 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55535
55536         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
55537         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
55538         needed, since the source code now assumes these .h files.
55539
55540 2005-10-05  Derek Price  <derek@ximbiot.com>
55541
55542         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
55543
55544 2005-10-05  Bruno Haible  <bruno@clisp.org>
55545
55546         * modules/stdint (License): Change to LGPL.
55547
55548 2005-10-04  Simon Josefsson  <jas@extundo.com>
55549
55550         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
55551         D. Baushke" <mdb@gnu.org>.
55552
55553 2005-10-04  Bruno Haible  <bruno@clisp.org>
55554
55555         * lib/verify.h (verify_true): Provide alternative definition for C++.
55556
55557 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
55558
55559         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
55560         (SSIZE_MAX): New macro, if not already defined.
55561         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
55562         than 2 GiB.
55563
55564 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55565
55566         Sync from coreutils.
55567         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
55568         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
55569         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
55570         ULLONG_MAX doesn't work with 2.7.2.1.
55571
55572 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55573
55574         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
55575         From Ben Pfaff.
55576
55577         * modules/exclude (Depends-on): Depend on verify.
55578         * modules/strtoimax (Depends-on): Likewise.
55579         * modules/utimecmp (Depends-on): Likewise.
55580
55581 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55582
55583         * lib/exclude.c: Include verify.h.
55584         (verify): Remove.  All callers changed to use verify.h's version.
55585         * lib/strtoimax.c: Likewise.
55586         * lib/utimecmp.c: Likewis.e
55587
55588         Sync from coreutils.
55589         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
55590         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
55591         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
55592         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
55593         bother returning ENOSYS if settimeofday or stime fails; just let
55594         them return whatever errno they want to return.
55595         * lib/utimens.c: Include unistd.h, for dup2.
55596         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
55597         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
55598
55599 2005-10-02  Jim Meyering  <jim@meyering.net>
55600
55601         Sync from coreutils.
55602         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
55603         from glibc-2.2.5 that fails for read-only files.
55604
55605 2005-10-02  Jim Meyering  <jim@meyering.net>
55606
55607         Sync from coreutils.
55608         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
55609         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
55610         `#if HAVE_CONFIG_H'.
55611         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
55612         Remove AT_FDCWD test.
55613         Do not consume the fd unless successful.
55614         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
55615         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
55616         block, so that we don't even try to compile it if settimeofday is
55617         available.  This works around a compilation failure on OSF1 V5.1,
55618         due to stime requiring a `long int*' while tv_sec is `int'.
55619
55620 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
55621
55622         Sync from coreutils.
55623         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
55624         against `yes', rather than just testing for nonempty.
55625
55626 2005-10-01  Simon Josefsson  <jas@extundo.com>
55627
55628         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
55629         and Darwin.
55630
55631         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
55632         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
55633         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
55634         freeaddrinfo and gai_strerror are declared by the POSIX headers.
55635         Check if struct addrinfo is declared.
55636
55637 2005-10-01  Simon Josefsson  <jas@extundo.com>
55638
55639         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
55640         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
55641         AI_* and EAI_* definitions.  Protect function declarations.
55642
55643 2005-10-01  Jim Meyering  <jim@meyering.net>
55644
55645         Sync from coreutils.
55646
55647         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
55648         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
55649         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
55650         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55651         in the inet and nsl libraries.  Required on Solaris 5.7.
55652
55653 2005-10-01  Jim Meyering  <jim@meyering.net>
55654
55655         Sync from coreutils.
55656         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55657         in the inet and nsl libraries.  Required on Solaris 5.7.
55658
55659 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
55660
55661         * lib/getdelim.c (getdelim): Remove unused variables.
55662
55663 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55664
55665         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
55666         so that the code works even with ancient cpp.  Portability problem
55667         with GCC 2.7.2.1 reported by Thomas M.Ott.
55668
55669 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         * modules/regex (Depends-on): Add strcase.
55672
55673         * modules/gethostname (Licence): Change from GPL to LGPL, since
55674         gethostname.c is a trivial implementation of a standard library
55675         function.
55676         * modules/poll (License): Change from GPL to LGPL, since it's
55677         derived from LGPL code.
55678
55679 2005-09-27  Jim Meyering  <jim@meyering.net>
55680
55681         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
55682         HAVE_CONFIG_H.
55683
55684         * lib/intprops.h (signed_type_or_expr__): Define.
55685         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
55686         for unsigned types.
55687
55688 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55689
55690         * lib/verify.h (verify_expr): Remove, replacing with:
55691         (verify_true): New macro that returns true instead of void.
55692         (verify_type__): Remove.
55693         (verify): Use verify_true rather than verify_type__.
55694
55695 2005-09-26  Bruno Haible  <bruno@clisp.org>
55696
55697         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
55698         is necessary.
55699         (lib_SOURCES): Remove mbchar.c.
55700         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
55701         (Files): Add m4/mbrtowc.m4.
55702         * modules/mbiter: Likewise.
55703         * modules/mbuiter: Likewise.
55704
55705 2005-09-26  Bruno Haible  <bruno@clisp.org>
55706
55707         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
55708         compile mbchar.c if they are not both present.
55709         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
55710         * m4/mbiter.m4 (gl_MBITER): Likewise.
55711         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
55712         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
55713         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
55714
55715 2005-09-25  Jim Meyering  <jim@meyering.net>
55716
55717         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
55718         also uses socklen_t.
55719
55720 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
55721
55722         * lib/utimens.c (ENOSYS): Define if not already defined.
55723         (futimens): Support having a null PATH if the file descriptor
55724         is nonnegative.
55725
55726         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
55727         Remove.
55728         (__attribute): Define to empty unless GCC 3.1 or later.
55729         This works around a core dump on OpenBSD 3.4, which has GCC
55730         2.95.3, which dumps core when given __attribute__(()).  It also
55731         simplifies other tests, since we really don't want to bother with
55732         worrying about which ancient version of GCC supported what.
55733         Original problem reported by Yoann Vandoorselaere, with part of
55734         the fix suggested by Derek Price.
55735
55736 2005-09-24  Jim Meyering  <jim@meyering.net>
55737
55738         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
55739         so we can once again use a positive bitfield width of 1 -- now we
55740         don't have to explain why we were using a bitfield width of 2.
55741
55742 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55743
55744         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
55745         and similarly for the other external symbols.  Problem reported
55746         by James Gallager.
55747
55748         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
55749         bug reported by Jim Meyering.
55750
55751         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
55752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
55753         not needed, since socklen is a prerequisite module.
55754
55755 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55756
55757         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
55758         Problem reported by Eric Blake.
55759         (getaddrinfo): Initialize se so that it's not garbage.
55760         Redo internal storage allocation so that it doesn't make unportable
55761         assumptions about alignment.
55762         Fix a memory leak.
55763
55764         * lib/utimens.c (futimens): Use futimesat if available.
55765         Prefer it to futimes since it doesn't have the futimes bug.
55766
55767         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
55768         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
55769         Instead, declare a function that returns a pointer to an array,
55770         and use verify_type__ to declare the size of the array.
55771         Problem and germ of a solution reported by Bruno Haible.
55772         (verify_type__): Use 2, not 1, for bitfield size, to avoid
55773         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
55774
55775 2005-09-23  Jim Meyering  <jim@meyering.net>
55776
55777         Sync from coreutils.
55778         Correct build failure (socklen_t not defined) on at least
55779         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
55780         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
55781
55782 2005-09-23  Jim Meyering  <jim@meyering.net>
55783
55784         * modules/getaddrinfo (Depends-on): Add socklen.
55785
55786 2005-09-23  Bruno Haible  <bruno@clisp.org>
55787
55788         * tests/test-verify.c: New file.
55789
55790 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55791
55792         Sync from coreutils.
55793
55794         * modules/argmatch (Depends-on): Add verify.
55795         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
55796         unistd-safer.
55797         * modules/save-cwd (Depends-on): Likewise.
55798
55799         * modules/openat (Files): Add lib/openat-die.c.
55800         (Depends-on): Remove error, exitfail.
55801         Add dirname.
55802
55803         * modules/verify: New file.
55804         * MODULES.html.sh (Diagnostics <assert.h>): New section,
55805         with "verify" module.
55806
55807 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55808
55809         Sync from coreutils.
55810
55811         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
55812         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
55813         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
55814         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
55815         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
55816         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
55817         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
55818         Don't bother checking for string.h, stdlib.h, unistd.h.
55819         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
55820         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
55821         module's job.
55822         * m4/jm-macros.m4 (gl_MACROS): Likewise.
55823         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
55824
55825         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
55826         (gl_GETDATE): Use it.
55827
55828         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
55829
55830 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         Sync from coreutils.
55833
55834         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
55835         stat-time.h.
55836         * lib/argmatch.h: Include verify.h
55837         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
55838         (ARGMATCH_ASSERT): Remove; unused.
55839         * lib/canonicalize.c: Assume STDC_HEADERS.
55840         * lib/exclude.c: Include "strcase.h".
55841         * lib/regex_internal.h [!defined _LIBC]: Likewise.
55842         * lib/getusershell.c: Include stdio--.h rather than stdio.h
55843         and stdio-safer.h.
55844         (getusershell): Call fopen, not fopen_safer.
55845         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
55846         Do not include unistd-safer.h.
55847         (save_cwd): Don't call fd_safer; no longer needed
55848         now that we include fcntl--.h.
55849
55850         * lib/getdate.y (relative_time): New type.
55851         (RELATIVE_TIME_0): New constant.
55852         (parser_control): Use relative_time instead of doing it ourselves.
55853         (%union): Add new relative_time rel member.
55854         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
55855         Now typeless.
55856         (relunit, relunit_snumber): Now of type rel.
55857         (zone, rel, relunit, get_date): Adjust to above changes.
55858
55859         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
55860         Do not include unistd-safer.h.
55861         (getloadavg): Don't call fd_safer; no longer needed
55862         now that we include fcntl--.h.
55863
55864         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
55865         (make_dir_parents): Treat ENOSYS like EEXIST.
55866
55867         Improve quality of diagnostics on restore_cwd failure.
55868         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
55869         (make_dir_parents): Last arg is now int * (for errno), not bool *.
55870         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
55871         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
55872         each time through the loop.  Do not diagnose restore_cwd failure;
55873         that is the caller's job (and perhaps the caller does not care).
55874
55875         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
55876         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
55877         If the file already exists but is not a directory, don't bother
55878         to try to make its parents.
55879         Close potential file descriptor leak if we can't chdir("/") (!).
55880         Don't always return true if chdir($PWD) fails; return true only
55881         if the requested action was done successfully (except for the
55882         chdir($PWD)).
55883         Don't log final directory unless we actually made it.
55884         Refactor to avoid duplicate code to fix up permissions.
55885         Don't attempt to fix up parent permissions if chdir($PWD) fails.
55886
55887         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
55888         to make it a bit faster and (I hope) clearer.
55889         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
55890         Fix bug in formats like %2N.
55891
55892         * lib/verify.h: New file.
55893
55894 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55895
55896         Sync from coreutils.
55897         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
55898
55899 2005-09-22  Jim Meyering  <jim@meyering.net>
55900
55901         Sync from coreutils.
55902
55903         * m4/lstat.m4 (gl_FUNC_LSTAT):
55904         Use AC_LIBSOURCES to require lstat.c and lstat.h.
55905         Remove obsolete comment.
55906         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
55907         * m4/xstrtod.m4: Likewise.
55908
55909         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
55910
55911 2005-09-22  Jim Meyering  <jim@meyering.net>
55912
55913         Sync from coreutils.
55914
55915         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
55916
55917         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
55918         the .tm_year member, since otherwise gcc-4.0 would now warn about
55919         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
55920
55921         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
55922         order to avoid an unsuppressible warning from gcc on 64-bit systems.
55923
55924         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
55925         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
55926         when run in a time zone for which daylight savings time is in effect
55927         for the starting date.
55928
55929         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
55930         stop us from restricting permissions of just-created absolute-named
55931         directories.
55932         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
55933         to restore initial working directory.
55934         * lib/mkdir-p.c (make_dir_parents): New parameter:
55935         different_working_dir, to tell caller if/when we change the working
55936         directory and are unable to return to the initial one.
55937         * lib/mkdir-p.h (make_dir_parents): Update prototype.
55938         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
55939         `return false'.  This fixes a bug introduced on 2004-07-30.
55940
55941         * lib/openat.c (fdopendir): Be sure to close the supplied
55942         file descriptor before returning.  This makes our replacement
55943         implementation a little closer to Solaris's, where fdopendir
55944         ties the file descriptor to the returned DIR* pointer.
55945         * lib/openat.c (unlinkat): New function.
55946         * lib/openat.h (unlinkat): Add prototype.
55947         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
55948         (openat_restore_fail): Rename from openat_restore_die.
55949         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
55950
55951         Provide an alternative to exiting immediately upon save_cwd or
55952         restore_cwd failure.  Now, an application can arrange e.g.,
55953         to perform a longjump in that case.
55954         * lib/openat.c: Include dirname.h.
55955         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
55956         (rpl_openat, fdopendir, fstatat): Call openat_save_die
55957         and openat_restore_die rather than calling error directly.
55958         Don't include "error.h" or "exitfail.h"; they're no longer needed.
55959
55960         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
55961         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
55962         define.
55963
55964         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
55965         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
55966                             int utc, int nanoseconds);
55967         Background:
55968         date should not have to allocate a megabyte of virtual memory to
55969         handle a format argument like +%1048575T.  When implemented with
55970         strftime, it must allocate such a buffer, use strftime to fill it
55971         in, print it, then free it.
55972         With fprintftime, it simply prints everything and exits.
55973         With no need for memory allocation, that's one fewer way to fail.
55974         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
55975         optional field width, not before, so we accept %9:z, not %:9z.
55976         (my_strftime): Be sure to use L_('x') for literals.
55977
55978         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
55979         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
55980         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
55981         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
55982         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
55983         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
55984         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
55985         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
55986         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
55987         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
55988         * lib/xgethostname.c, lib/xreadlink.c:
55989         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
55990
55991         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
55992         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
55993         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
55994         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55995         and don't include <sys/file.h>).
55996
55997 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
55998
55999         Sync from coreutils.
56000
56001         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56002         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56003         [!LDAV_DONE]: Avoid unused variable warning.
56004
56005 2005-09-21  Bruno Haible  <bruno@clisp.org>
56006
56007         * lib/unicodeio.h (unicode_to_mb): New declaration.
56008
56009 2005-09-20  Derek Price  <derek@ximbiot.com>
56010
56011         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56012         getaddrinfo.h.
56013
56014 2005-09-20  Bruno Haible  <bruno@clisp.org>
56015
56016         * gnulib-tool: Remove trailing slashes from the values specified for
56017         --source-base, --m4-base, --tests-base, --aux-dir.
56018         Suggested by Simon Josefsson <jas@extundo.com>.
56019
56020 2005-09-20  Bruno Haible  <bruno@clisp.org>
56021
56022         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56023         func_modules_to_filelist, func_import, func_create_testdir): Make all
56024         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56025         change when gnulib-tool is invoked in a different locale.
56026
56027 2005-09-19  Simon Josefsson  <jas@extundo.com>
56028
56029         * m4/socklen.m4: Fix typo.
56030
56031 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56032
56033         Use a consistent style for including <config.h>.
56034         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56035         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56036         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56037         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56038         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56039         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56040         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56041         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56042         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56043         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56044         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56045         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56046         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56047         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56048         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56049         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56050         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56051         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56052         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56053         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56054         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56055         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56056         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56057         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56058         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56059         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56060         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56061         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56062         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56063         lib/xstrtoumax.c, lib/yesno.c:
56064         Standardize inclusion of config.h.
56065         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56066         lib/inttostr.h:  Removed inclusion of config.h from header files.
56067         * lib/inttostr.c:  Adjusted in-tree users.
56068         * lib/timespec.h: Remove superfluous warning to include config.h.
56069         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56070         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56071         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56072         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56073         config.h with HAVE_CONFIG_H.
56074
56075 2005-09-19  Jim Meyering  <jim@meyering.net>
56076
56077         * modules/pathmax (License): Change to LGPL.
56078
56079 2005-09-19  Derek Price  <derek@ximbiot.com>
56080
56081         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56082
56083 2005-09-19  Bruno Haible  <bruno@clisp.org>
56084
56085         * gnulib-tool (import): Provide default for --tests-base.
56086
56087 2005-09-19  Bruno Haible  <bruno@clisp.org>
56088
56089         * doc/quote.texi: New file, extracted from gnulib.texi.
56090         * doc/ctime.texi: New file, extracted from gnulib.texi.
56091         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56092         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56093         * doc/gnulib.texi: Include them.
56094
56095 2005-09-18  Bruno Haible  <bruno@clisp.org>
56096
56097         Portability fix.
56098         * gnulib-tool (func_readlink): New function.
56099         (func_ln_if_changed): Use it.
56100
56101 2005-09-18  Bruno Haible  <bruno@clisp.org>
56102
56103         * gnulib-tool: Support --with-tests also with --import.
56104         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56105         (func_import): Use variables $testsbase and $inctests. Emit a
56106         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56107         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56108         SUBDIRS += $testsdir.
56109         (func_create_testdir): Update.
56110
56111 2005-09-18  Bruno Haible  <bruno@clisp.org>
56112
56113         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56114         instead of $dry_run.
56115         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56116         (func_ln_if_changed): Don't handle dry-run here.
56117         (func_import): In dry-run mode, detect more precisely which actions
56118         would be performed, and don't use "...ing" verbs.
56119
56120 2005-09-18  Bruno Haible  <bruno@clisp.org>
56121
56122         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56123         (func_import): Use join on two temporary files instead of three nested
56124         loops, in order to determine which files are new or old.
56125
56126 2005-09-18  Bruno Haible  <bruno@clisp.org>
56127
56128         * gnulib-tool (func_import): Comment out code that spits out the
56129         new files with --dry-run.
56130
56131 2005-09-18  Bruno Haible  <bruno@clisp.org>
56132
56133         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56134
56135 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56136
56137         * lib/stat-time.h: New file.
56138         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56139         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56140         in a different way.
56141         (timespec_cmp): New function.
56142         * lib/utimecmp.c: Include stat-time.h.
56143         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56144         members exist, not on the obsolescent ST_MTIM_NSEC.
56145         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56146
56147 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56148
56149         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56150
56151 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56152
56153         * MODULES.html.sh (File system functions): Add stat-time.
56154         * modules/stat-time: New file.
56155         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56156         is now done in a different way, by the stat-time module.
56157         * modules/utimecmp (Depends-on): Add stat-time.
56158
56159 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56160
56161         * m4/st_mtim.m4: Remove.  Superseded by...
56162         * m4/stat-time.m4: New file.
56163         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56164         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56165
56166 2005-09-15  Derek Price  <derek@ximbiot.com>
56167
56168         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56169
56170 2005-09-15  Derek Price  <derek@ximbiot.com>
56171
56172         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56173         * lib/regex_internal.c: Ditto, using this...
56174         (__GNUC_PREREQ): ...new macro.
56175         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56176         using...
56177         (__GNUC_PREREQ): ...this new macro.
56178
56179         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56180
56181 2005-09-15  Derek Price  <derek@ximbiot.com>
56182             Paul Eggert  <eggert@cs.ucla.edu>
56183
56184         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56185         changes, consolidating in...
56186         * lib/regex_internal.h: ...this file.
56187
56188 2005-09-13  Jim Meyering  <jim@meyering.net>
56189
56190         * lib/canon-host.c: Filter through gnu indent and reword comments
56191         slightly.
56192         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56193
56194 2005-09-13  Derek Price  <derek@ximbiot.com>
56195
56196         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56197         failure.
56198         Reported by Jim Meyering  <jim@meyering.net>.
56199
56200 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56201
56202         * lib/base64.c: Typo.
56203         (base64_encode): Put b64str in initialized data section.
56204
56205 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56206
56207         Merge glibc and coreutils changes into gnulib, plus a few
56208         extra fixes.
56209         * lib/md5.c: Use #error rather than a string.
56210         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56211         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56212         (__attribute__): Define to empty for non recent-GCC.
56213         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56214         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56215         Renamed from their non-__ counterparts, with new macros replacing
56216         them if not _LIBC.  Add __THROW attribute.
56217         (rol): Remove.
56218         (struct md5_ctx): Align buffer if using GCC.
56219         * lib/sha1.h (struct sha1_ctx): Likewise.
56220         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56221         The old name was backwards.
56222         (NOTSWAP): Remove; not used.
56223         (rol): New macro, moved here from md5.h.
56224         (sha1_process_block): Remove a FIXME that doesn't make sense.
56225
56226 2005-09-12  Derek Price  <derek@ximbiot.com>
56227
56228         Return usable errors from canon-host.
56229         * lib/canon-host.h: New file.
56230         * lib/canon-host.c (canon_host): Wrap...
56231         (canon_host_r): ...this new function, which now relies exclusively on
56232         getaddrinfo.
56233         (ch_strerror): New function.
56234         (last_cherror): New global.
56235         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56236         interface.
56237         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56238         void *.
56239         (freeaddrinfo): Free ai->ai_canonname when set.
56240
56241 2005-09-12  Derek Price  <derek@ximbiot.com>
56242
56243         Make canon-host require getaddrinfo.
56244         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
56245         AC_LIBSOURCE canon-host.h.  Call...
56246         (gl_PREREQ_CANON_HOST): ...this new function, which requires
56247         gl_GETADDRINFO.
56248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
56249
56250 2005-09-12  Derek Price  <derek@ximbiot.com>
56251
56252         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
56253         LGPL.
56254         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
56255
56256 2005-09-12  Derek Price  <derek@ximbiot.com>
56257
56258         * lib/gai_strerror.c: Include config.h when available.  Include
56259         getaddrinfo.h before other headers to test interface.
56260         Reported by Larry Jones <lawrence.jones@ugs.com>.
56261
56262 2005-09-12  Derek Price  <derek@ximbiot.com>
56263             Paul Eggert  <eggert@cs.ucla.edu>
56264
56265         * modules/glob (Files): Add glob-libc.h.
56266
56267 2005-09-12  Derek Price  <derek@ximbiot.com>
56268             Paul Eggert  <eggert@cs.ucla.edu>
56269
56270         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
56271         glob_.h, glob-libc.h.
56272         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
56273
56274 2005-09-12  Derek Price  <derek@ximbiot.com>
56275             Paul Eggert  <eggert@cs.ucla.edu>
56276
56277         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
56278         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
56279         protecting things that should be done only in gnulib contexts.
56280         * lib/glob_.h: New file, containing only the glob things needed for
56281         gnulib.
56282         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
56283         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
56284         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56285         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56286         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56287         and to respect the namespace rules better.
56288
56289 2005-09-08  Simon Josefsson  <jas@extundo.com>
56290
56291         * modules/socklen: New file.
56292
56293 2005-09-08  Simon Josefsson  <jas@extundo.com>
56294
56295         * m4/socklen.m4: New file.
56296
56297 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56298
56299         * modules/utimens (Files): Add m4/utimbuf.m4, since
56300         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56301         Reported by Sergey Poznyakoff.
56302
56303 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56304
56305         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56306         definitions, since that's the preferred style in glibc.
56307         Fix a minor spacing issue, and update copyright notice to match
56308         glibc's.
56309
56310 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56311
56312         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56313
56314 2005-09-06  Simon Josefsson  <jas@extundo.com>
56315
56316         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56317         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56318
56319 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56320
56321         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56322         warning.
56323
56324 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56325
56326         * config/srclist.txt: Add glibc bug 1302.
56327
56328 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56329
56330         Change bitset word type from unsigned int to unsigned long int,
56331         as this has better performance on typical 64-bit hosts.
56332         Port bitset code to hosts with unusual word sizes.
56333         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56334         (build_collating_symbol):
56335         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56336         argument is a bitset.  This is merely a style issue, but it makes
56337         it clearer that an entire array is expected.
56338         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56339         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56340         Port to the case where bitset_word is not the same as unsigned int.
56341         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56342         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56343         Likewise.
56344         * lib/regexec.c (check_dst_limits_calc_pos_1,
56345         check_subexp_matching_top):
56346         (build_trtable, group_nodes_into_DFAstates):
56347         Likewise.
56348         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56349         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56350         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56351         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56352         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56353         * lib/regcomp.c (optimize_subexps, lower_subexp):
56354         Work even if bitset_word has holes in its bitwise representation.
56355         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56356         * lib/regexec.c (check_dst_limits_calc_pos_1,
56357         check_subexp_matching_top):
56358         Likewise.
56359         * lib/regex_internal.c (re_string_reconstruct):
56360         Don't assume UCHAR_MAX == 255.
56361         * lib/regex_internal.h (bitset_set_all): Likewise.
56362         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56363         All uses changed.
56364         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56365         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56366         All uses changed.
56367         (BITSET_WORD_MAX): New macro.
56368         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56369         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56370         (bitset_empty, bitset_copy):
56371         Prefer sizeof (bitset) to multiplying it out ourselves.
56372         (bitset_not_merge): Remove; unused.
56373         (bitset_contain): Return bool, not unsigned int with one bit on.
56374         All callers changed.
56375         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56376         alignment than re_node_set; do this by defining a new internal
56377         type struct dests_alloc and using it to allocate memory.
56378
56379 2005-09-05  Bruno Haible  <bruno@clisp.org>
56380
56381         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56382         links.
56383
56384 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56385
56386         * modules/size_max (Makefile.am): Add size_max.h
56387
56388 2005-09-04  Derek Price  <derek@ximbiot.com>
56389
56390         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56391
56392 2005-09-03  Simon Josefsson  <jas@extundo.com>
56393
56394         * gnulib-tool: Fix typo.
56395
56396 2005-09-03  Simon Josefsson  <jas@extundo.com>
56397
56398         * config/srclist.txt: Add glibc bug 1293.
56399
56400 2005-09-03  Derek Price  <derek@ximbiot.com>
56401
56402         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56403         From Larry Jones <lawrence.jones@ugs.com>.
56404
56405 2005-09-02  Simon Josefsson  <jas@extundo.com>
56406
56407         * modules/socklen: New file.
56408
56409 2005-09-02  Simon Josefsson  <jas@extundo.com>
56410
56411         * modules/havelib: New module.
56412
56413         * modules/gettext, modules/iconv, modules/lock, modules/readline:
56414         Use havelib.
56415
56416 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56417
56418         Check for arithmetic overflow when calculating sizes, to prevent
56419         some buffer-overflow issues.  These patches are conservative, in the
56420         sense that when I couldn't determine whether an overflow was possible,
56421         I inserted a run-time check.
56422         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
56423         macros.
56424         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
56425         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
56426         (re_xnrealloc, re_x2nrealloc): New inline functions.
56427         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
56428         parse_bracket_exp):
56429         (build_equiv_class, build_charclass): Check for arithmetic overflow
56430         in size expression calculations.
56431         * lib/regex_internal.c (re_string_realloc_buffers):
56432         (build_wcs_upper_buffer, re_node_set_add_intersect):
56433         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
56434         (re_dfa_add_node, register_state): Likewise.
56435         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
56436         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
56437         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
56438         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
56439
56440 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56441
56442         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56443         m4/ulonglong.m4.  Problem reported by Martin Lambers.
56444
56445 2005-09-02  Bruno Haible  <bruno@clisp.org>
56446
56447         Support for lib vs. lib64 distinction on biarch platforms.
56448         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
56449         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
56450         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
56451
56452 2005-09-02  Bruno Haible  <bruno@clisp.org>
56453
56454         * gnulib-tool (import): In the other first-use case, provide defaults
56455         as well.
56456
56457 2005-09-02  Bruno Haible  <bruno@clisp.org>
56458
56459         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
56460         patches not yet found in the latest gettext release.
56461
56462 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56463
56464         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
56465         to avoid a collision with bits/local_lim.h in glibc.
56466         All uses changed.  Problem reported by Dmitry V. Levin in
56467         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
56468
56469         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
56470         bugs in int versus size_t comparisons.
56471         (re_string_context_at): Fix bug where the code assumed that
56472         Idx is signed.
56473
56474         Use bool where appropriate.
56475         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
56476         All callers changed.
56477         (calc_eclosure_iter): Likewise, for ROOT arg.
56478         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
56479         (build_charclass_op): Likewise, for NON_MATCH arg.
56480         * lib/regex_internal.c (re_string_allocate, re_string_construct):
56481         (re_string_construct_common): Likewise, for ICASE arg.
56482         * lib/regexec.c (re_search_2_stub, re_search_stub):
56483         Likewise, for RET_LEN arg.
56484         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
56485         (set_regs): Likewise, for FL_BACKTRACK arg.
56486         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
56487         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
56488         (calc_eclosure_iter, parse_bracket_exp):
56489         Use bool for internal variables that are booleans.
56490         * lib/regexec.c (re_search_internal, check_matching,
56491         proceed_next_node):
56492         (set_regs, build_sifted_states, sift_states_bkref):
56493         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
56494         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56495         (find_collation_sequence_value):
56496         Likewise.
56497         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
56498         (re_node_set_compare):
56499         Return bool, not int. All callers changed.
56500         * lib/regexec.c (check_halt_node_context, check_dst_limits):
56501         (build_trtable, check_node_accept): Likewise.
56502         * lib/regex_internal.h: Include stdbool.h.
56503
56504         Fix bugs uncovered when converting to bool.
56505         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
56506         failure instead of charging ahead blindly.
56507         * lib/regex_internal.c (register_state): Likewise.
56508         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
56509         for freeing internal storage.
56510         (group_nodes_into_DFA_states): Use unsigned int, not int, for
56511         bitset pieces used as boolean, to avoid undefined behavior
56512         on hosts that do int overflow checking.
56513
56514 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56515
56516         * config/srclist.txt: Add glibc bugs 1285-1287.
56517
56518 2005-09-01  Jim Meyering  <jim@meyering.net>
56519
56520         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
56521         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
56522         Require gl_STAT_MACROS, too.
56523
56524 2005-09-01  Bruno Haible  <bruno@clisp.org>
56525
56526         * gnulib-tool (import): In the first-use case, provide defaults.
56527
56528 2005-09-01  Bruno Haible  <bruno@clisp.org>
56529
56530         * gnulib-tool (func_import): Remove the .tmp files.
56531
56532 2005-09-01  Bruno Haible  <bruno@clisp.org>
56533
56534         * gnulib-tool (func_import): Fix handling of symbolic links.
56535
56536 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56537
56538         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
56539         old glibc regex code mishandles strings longer than 2**31 bytes.
56540         This patch fixes this when the regex code is used in gnulib
56541         (i.e., outside glibc).
56542
56543         This patch should not affect the use of the regex code inside
56544         glibc.  No doubt this problem also needs to be handled for glibc
56545         as well, but the result will be an incompatible change to the
56546         glibc ABI, and the old ABI will have to be supported too.  That
56547         can be the the subject for another patch.
56548
56549         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
56550         governing whether the rest of this patch is active.  By default,
56551         the macro is disabled and the patch has no effect.
56552         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
56553         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
56554         (struct re_pattern_buffer, re_search, re_search_2, re_match):
56555         (re_match_2, re_set_registers): Use the new types.
56556         * lib/regex_internal.h (Idx, re_hashval_t): New types.
56557         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
56558         New macros.
56559         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
56560         (re_string_context_at, bin_tree_t, re_dfastate_t):
56561         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
56562         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
56563         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
56564         (re_string_char_size_at, re_string_wchar_at):
56565         (re_string_elem_size_at):
56566         Use the new types and macros to port to 64-bit hosts.
56567         Use unsigned types for internal values, so that the code
56568         mostly works even for arrays larger than SSIZE_MAX.
56569         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
56570         (search_duplicated_node, calc_eclosure_iter, fetch_number):
56571         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
56572         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
56573         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
56574         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
56575         (calc_inveclosure, parse_dup_op, build_range_exp):
56576         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
56577         (fetch_number, create_token_tree, mark_opt_subexp):
56578         Likewise.
56579         * lib/regex_internal.c (re_string_construct_common,
56580         create_ci_newstate):
56581         (create_cd_newstate, re_string_allocate, re_string_construct):
56582         (re_string_realloc_buffers, build_wcs_upper_buffer):
56583         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56584         (re_string_reconstruct, re_string_peek_byte_case):
56585         (re_string_fetch_byte_case, re_string_context_at):
56586         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56587         (re_node_set_init_copy, re_node_set_add_intersect):
56588         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56589         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56590         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56591         (re_acquire_state, re_acquire_state_context, register_state):
56592         Likewise.
56593         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
56594         search_cur_bkref_entry):
56595         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
56596         (re_search_internal, re_search_2_stub, re_search_stub)
56597         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
56598         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
56599         (update_cur_sifted_state, check_dst_limits):
56600         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56601         (check_subexp_limits, sift_states_bkref, merge_state_array):
56602         (check_subexp_matching_top, get_subexp, get_subexp_sub):
56603         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
56604         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56605         (expand_bkref_cache, check_node_accept_bytes):
56606         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
56607         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
56608         (acquire_init_state_context, check_halt_node_context):
56609         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
56610         (sift_states_backward, clean_state_log_if_needed):
56611         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
56612         (find_recover_state, transit_state_sb, transit_state_mb):
56613         (transit_state_bkref, build_trtable, match_ctx_clean):
56614         Likewise.
56615         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
56616         to work around an assumption that REG_MISSING is negative.
56617
56618         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
56619         (seek_collating_symbol_entry) [defined _LIBC]:
56620         (lookup_collation_sequence_value) [defined _LIBC]:
56621         (build_range_exp, build_collating_symbol) [defined _LIBC]:
56622         Use prototypes rather than old-style function definitions.
56623         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
56624         (transit_state_sb) [0]:
56625         (find_collation_sequence_value) [defined _LIBC]: Likewise.
56626
56627         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
56628         rm_eo.
56629
56630         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
56631         (optimize_subexps, lower_subexp):
56632         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
56633         since the signed shift might overflow.  Use 1u<<31 instead.
56634         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56635         Likewise.
56636         * lib/regexec.c (check_dst_limits_calc_pos_1,
56637         check_subexp_matching_top): Likewise.
56638
56639         * lib/regcomp.c (optimize_subexps, lower_subexp):
56640         Use CHAR_BIT rather than 8, for clarity.
56641         * lib/regexec.c (check_dst_limits_calc_pos_1):
56642         (check_subexp_matching_top): Likewise.
56643         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
56644         have to worry about portability issues when shifting it left.
56645         Remove no-longer-needed test for table_size > 0.
56646         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
56647         in a word, as the resulting behavior is undefined.
56648         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
56649         in one case, a <= should have been an <, and in another case the
56650         whole test was missing.
56651         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
56652         the standard name CHAR_BIT.
56653         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
56654         this is not true on one's complement and signed-magnitude hosts.
56655
56656         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
56657         next_last_offset.
56658         (struct re_dfa_t): Remove unused member states_alloc.
56659         * lib/regcomp.c (init_dfa): Don't initialize unused members.
56660
56661 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56662
56663         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
56664         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
56665         and large-file glibc and in 32-bit large-file Solaris.
56666
56667 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56668
56669         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
56670         lengths fit in regoff_t; this isn't true if regoff_t is the same
56671         width as size_t.
56672         * lib/regex.c (re_search_internal): 5th arg is LAST_START
56673         (= START + RANGE) instead of RANGE.  This avoids overflow
56674         problems when regoff_t is the same width as size_t.
56675         All callers changed.
56676         (re_search_2_stub): Check for overflow when adding the
56677         sizes of the two strings.
56678         (re_search_stub): Check for overflow when adding START
56679         to RANGE; if it occurs, substitute the extreme value.
56680
56681 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56682
56683         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
56684
56685 2005-08-31  Jim Meyering  <jim@meyering.net>
56686
56687         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
56688         a pointer-to-const.
56689         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
56690         (register_state): Likewise.
56691         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
56692         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56693         (group_nodes_into_DFAstates): Likewise.
56694
56695 2005-08-31  Jim Meyering  <jim@meyering.net>
56696
56697         * check-module: Add a FIXME comment.
56698
56699 2005-08-31  Eric Blake  <ebb9@byu.net>
56700
56701         * modules/unistd-safer (Files): Add unistd--.h.
56702         * modules/stdio-safer (Files): Add stdio--.h.
56703
56704 2005-08-31  Derek Price  <derek@ximbiot.com>
56705
56706         * lib/getdelim.c (getdelim): Return EOF on EOF.
56707         Reported by Larry Jones <lawrence.jones@ugs.com>.
56708
56709 2005-08-31  Bruno Haible  <bruno@clisp.org>
56710
56711         Avoid unnecessary diffs in the generated lib/Makefile.am.
56712         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
56713         the generated files.
56714         (func_import): Don't set cmd.
56715
56716 2005-08-31  Bruno Haible  <bruno@clisp.org>
56717
56718         * lib/strstr.c: Include <stddef.h>, for NULL.
56719         * lib/strcasestr.c: Likewise.
56720         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56721
56722 2005-08-31  Bruno Haible  <bruno@clisp.org>
56723
56724         * gnulib-tool: New option --macro-prefix.
56725         (func_import): Use macro_prefix.
56726         (import): Handle option --macro-prefix.
56727
56728 2005-08-31  Bruno Haible  <bruno@clisp.org>
56729
56730         * gnulib-tool (import): Rename most ac_* variables to cached_*.
56731         Also use new variables cached_lgpl, cached_libtool.
56732
56733 2005-08-31  Bruno Haible  <bruno@clisp.org>
56734
56735         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
56736         always instantiating them.
56737
56738 2005-08-31  Bruno Haible  <bruno@clisp.org>
56739
56740         * gnulib-tool (func_import): Read the previous cached settings
56741         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
56742         earlier added by gnulib but are now dropped. Warn when a gnulib file
56743         overwrites a non-gnulib file.
56744
56745 2005-08-31  Bruno Haible  <bruno@clisp.org>
56746
56747         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
56748         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
56749         projects that don't keep autogenerated files in CVS. Put into
56750         actioncmd only the specified modules, not the transitive closure.
56751
56752 2005-08-31  Bruno Haible  <bruno@clisp.org>
56753
56754         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
56755         Create directories that shall be filled.
56756         (import): Don't look for gl_* macros in configure.ac. Recurse across
56757         all directories containing a gnulib-cache.m4 files, if meaningful.
56758
56759 2005-08-31  Bruno Haible  <bruno@clisp.org>
56760
56761         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
56762         (import): Set seen_libtool when we see gl_LIBTOOL.
56763
56764 2005-08-31  Bruno Haible  <bruno@clisp.org>
56765
56766         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
56767         declaration macro definitions from generated gnulib.m4.
56768
56769 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
56770
56771         * lib/iconvme.h: Add prototype for iconv_alloc.
56772
56773 2005-08-29  Simon Josefsson  <jas@extundo.com>
56774
56775         * lib/iconvme.c: Fix errno.
56776
56777 2005-08-29  Bruno Haible  <bruno@clisp.org>
56778
56779         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
56780         that it works when the directory contains spaces.
56781
56782 2005-08-29  Bruno Haible  <bruno@clisp.org>
56783
56784         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
56785
56786 2005-08-29  Bruno Haible  <bruno@clisp.org>
56787
56788         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
56789         Emit more advice.
56790
56791 2005-08-29  Bruno Haible  <bruno@clisp.org>
56792         and Stepan Kasal  <kasal@ucw.cz>
56793
56794         * check-module: If more parameters are given, check each of them
56795         separately; add more exceptions, as noted by Jim Meyering.
56796         (check_module): New procedure.
56797         (%exempt_header): Now contains all exceptions.
56798
56799 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
56800
56801         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
56802
56803 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
56804
56805         * lib/iconvme.c: Split iconv_string into iconv_alloc.
56806
56807 2005-08-28  Bruno Haible  <bruno@clisp.org>
56808
56809         * m4/gnulib-tool.m4: New file.
56810
56811 2005-08-27  Jim Meyering  <jim@meyering.net>
56812
56813         * modules/unistd-safer (Files): Add pipe-safer.c.
56814         * modules/fcntl-safer (Files): Add creat-safer.c.
56815
56816 2005-08-27  Jim Meyering  <jim@meyering.net>
56817
56818         * m4/stdlib-safer.m4: New file.  From coreutils.
56819         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
56820         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
56821         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
56822         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
56823         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
56824
56825 2005-08-27  Jim Meyering  <jim@meyering.net>
56826
56827         * lib/fopen-safer.c: Merge minor changes from coreutils.
56828         * lib/dup-safer.c: Likewise.
56829         * lib/fd-safer.c: Likewise.
56830
56831         Merge from coreutils.
56832         * lib/stdio--.h: New file.
56833         * lib/stdlib--.h: New file.
56834         * lib/mkstemp-safer.c: New file.
56835
56836         GNU tar needs these.
56837         * lib/pipe-safer.c: New file.
56838         * lib/creat-safer.c: New file.
56839         * lib/fcntl--.h (creat): Define to creat_safer.
56840         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
56841         * lib/unistd--.h (pipe): Define to pipe_safer.
56842         * lib/unistd-safer.h: Declare pipe_safer.
56843
56844 2005-08-26  Simon Josefsson  <jas@extundo.com>
56845
56846         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
56847         Haible <bruno@clisp.org>.
56848
56849 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
56850
56851         * lib/regex_internal.h: Remove all references to
56852         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
56853         or better.
56854         (bitset_not, bitset_merge, bitset_not_merge):
56855         (bitset_mask, re_string_allocate, re_string_construct):
56856         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
56857         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
56858         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
56859         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
56860         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56861         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56862         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
56863         (re_acquire_state_context):
56864         Remove unnecessary forward decls.
56865         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
56866         Put __attribute at function definition,
56867         now that the function decl has been removed.
56868         * lib/regex_internal.c (re_string_peek_byte_case):
56869         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
56870         Likewise.
56871
56872 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
56873
56874         * m4/regex.m4: Add AC_PREREQ(2.50).
56875         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
56876
56877 2005-08-25  Simon Josefsson  <jas@extundo.com>
56878
56879         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
56880         __fsetlocking.
56881
56882 2005-08-25  Simon Josefsson  <jas@extundo.com>
56883
56884         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
56885         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
56886         GLIBC specific code.
56887
56888 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56889
56890         Make regex safe for g++.  This fixes one real bug (an "err"
56891         that should have been "*err").  g++ problem reported by
56892         Sam Steingold.
56893         * lib/regex_internal.h (re_calloc): New macro, consistent with
56894         re_malloc etc.  All callers of calloc changed to use re_calloc.
56895         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
56896         not int.  All callers changed.
56897         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
56898         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
56899         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
56900         (find_recover_state): Change "err" to "*err"; this fixes what
56901         appears to be a real bug.
56902         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
56903         versus int.
56904
56905 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56906
56907         * modules/regex (Depends-on): Add malloc, since the code
56908         assumes that !malloc(0) means failure.
56909
56910 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56911
56912         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
56913
56914         alloca modernization/simplification for regex.
56915         * lib/regex.c: Remove portability cruft for alloca.  This no longer
56916         needs to be at the start of the file, and can be moved into
56917         regex_internal.h and simplified.
56918         * lib/regex_internal.h: Include <alloca.h>.
56919         (__libc_use_alloca) [!defined _LIBC]: New macro.
56920         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
56921         now works outside glibc.
56922
56923 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56924
56925         * config/srclist.txt: Add glibc bugs 1241, 1245.
56926
56927 2005-08-25  Jim Meyering  <jim@meyering.net>
56928
56929         * lib/open-safer.c: Include <config.h>.
56930         Otherwise, we'd lose LARGEFILE support in any file using
56931         e.g. "fcntl--.h"
56932
56933 2005-08-25  Bruno Haible  <bruno@clisp.org>
56934
56935         * m4/minmax.m4: Require autoconf 2.52.
56936         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
56937         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
56938         alternatives of translit over the alphabet.
56939         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
56940
56941 2005-08-24  Simon Josefsson  <jas@extundo.com>
56942
56943         * tests/test-getpass.c: New file.
56944
56945 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56946
56947         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
56948         for GNU regex features.
56949
56950 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56951
56952         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
56953         * lib/regex.h (regerror): Likewise.
56954
56955         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
56956         requires this.  (The code never needed it.)
56957
56958         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
56959         All uses of recently-renamed identifiers changed to use the new,
56960         POSIX-compliant names.  The code will build and run just fine
56961         without these changes, but it's better to eat our own dog food
56962         and use the standard-conforming names.
56963
56964         * lib/regex.h: Fix a multitude of POSIX name space violations.
56965         These changes have an effect only for programs that define
56966         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
56967         do not change anything for programs compiled in the normal way.
56968         Also, there is no effect on the ABI.
56969
56970         (_REGEX_SOURCE): New macro.
56971         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
56972         defined and _GNU_SOURCE is not; this fixes a name space violation.
56973
56974         Rename the following macros to obey POSIX requirements.
56975         The old names are still visible as macros if _REGEX_SOURCE is defined.
56976         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
56977         RE_BACKSLASH_ESCAPE_IN_LISTS.
56978         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
56979         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
56980         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
56981         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
56982         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
56983         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
56984         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
56985         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
56986         (REG_INTERVALS): renamed from RE_INTERVALS.
56987         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
56988         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
56989         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
56990         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
56991         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
56992         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
56993         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
56994         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
56995         RE_UNMATCHED_RIGHT_PAREN_ORD.
56996         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
56997         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
56998         (REG_DEBUG): renamed from RE_DEBUG.
56999         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57000         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57001         unusual, since we can't clash with the POSIX REG_ICASE.
57002         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57003         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57004         (REG_NO_SUB): renamed from RE_NO_SUB.
57005         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57006         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57007         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57008         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57009         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57010         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57011         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57012         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57013         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57014         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57015         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57016         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57017         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57018         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57019         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57020         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57021         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57022         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57023         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57024         (REG_FIXED): Renamed from REGS_FIXED.
57025         (REG_NREGS): Renamed from RE_NREGS.
57026
57027         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57028         of other REG_* macros, since POSIX says the user is allowed to
57029         #undef these macros selectively.
57030
57031         (reg_errcode_t): Update comment stating what other tables need
57032         to be consistent.
57033
57034         Rename the following enum values to obey POSIX requirements.
57035         The old names are still visible as macros.
57036         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57037         is not defined, since GNU is supposed to be a superset of POSIX as
57038         much as possible, and since we want reg_errcode_t to be a signed
57039         type for implementation consistency.
57040         (_REG_NOERROR): Renamed from REG_NOERROR.
57041         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57042         (_REG_BADPAT): Renamed from REG_BADPAT.
57043         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57044         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57045         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57046         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57047         (_REG_EBRACK): Renamed from REG_EBRACK.
57048         (_REG_EPAREN): Renamed from REG_EPAREN.
57049         (_REG_EBRACE): Renamed from REG_EBRACE.
57050         (_REG_BADBR): Renamed from REG_BADBR.
57051         (_REG_ERANGE): Renamed from REG_ERANGE.
57052         (_REG_ESPACE): Renamed from REG_ESPACE.
57053         (_REG_BADRPT): Renamed from REG_BADRPT.
57054         (_REG_EEND): Renamed from REG_EEND.
57055         (_REG_ESIZE): Renamed from REG_ESIZE.
57056         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57057         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57058         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57059         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57060         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57061
57062         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57063         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57064         changed.  But support the old name if the new one is not defined
57065         and if _REGEX_SOURCE.
57066
57067         Change the following member names in struct re_pattern_buffer.
57068         The old names are still supported if !_REGEX_SOURCE.
57069         The new names are always supported, regardless of _REGEX_SOURCE.
57070         (re_buffer): Renamed from buffer.
57071         (re_allocated): Renamed from allocated.
57072         (re_used): Renamed from used.
57073         (re_syntax): Renamed from syntax.
57074         (re_fastmap): Renamed from fastmap.
57075         (re_translate): Renamed from translate.
57076         (re_can_be_null): Renamed from can_be_null.
57077         (re_regs_allocated): Renamed from regs_allocated.
57078         (re_fastmap_accurate): Renamed from fastmap_accurate.
57079         (re_no_sub): Renamed from no_sub.
57080         (re_not_bol): Renamed from not_bol.
57081         (re_not_eol): Renamed from not_eol.
57082         (re_newline_anchor): Renamed from newline_anchor.
57083
57084         Change the following member names in struct re_registers.
57085         The old names are still supported if !_REGEX_SOURCE.
57086         The new names are always supported, regardless of _REGEX_SOURCE.
57087         (rm_num_regs): Renamed from num_regs.
57088         (rm_start): Renamed from start.
57089         (rm_end): Renamed from end.
57090
57091         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57092         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57093         Prepend __ to parameter names.
57094
57095         Undo yesterday's changes.
57096
57097 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57100         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57101         lib/regex.c.
57102
57103 2005-08-24  Jim Meyering  <jim@meyering.net>
57104
57105         Sync from coreutils.
57106         * m4/fcntl-safer.m4: New file.
57107
57108         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57109         and object files for this module.
57110
57111 2005-08-24  Jim Meyering  <jim@meyering.net>
57112
57113         Sync from coreutils.
57114         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57115
57116 2005-08-24  Jim Meyering  <jim@meyering.net>
57117
57118         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57119         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57120
57121 2005-08-24  Jim Meyering  <jim@meyering.net>
57122
57123         * modules/fcntl-safer: New module.
57124         * modules/fts (Depends-on): Add fcntl-safer.
57125         * MODULES.html.sh (File descriptor based Input/Output):
57126         Add fcntl-safer.
57127
57128 2005-08-24  Bruno Haible  <bruno@clisp.org>
57129
57130         Support for unit test modules.
57131         * modules/README: Mention tests modules.
57132         * modules/TEMPLATE-TESTS: New file.
57133         * gnulib-tool: New options --extract-tests-module, --with-tests and
57134         --tests-base (unused for the moment).
57135         (testsbase, inctests): New variables.
57136         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57137         (func_verify_module): Exclude TEMPLATE-TESTS.
57138         (func_verify_nontests_module, func_verify_tests_module): New functions.
57139         (func_get_dependencies): Add implicit dependency for tests modules.
57140         (func_get_tests_module): New function.
57141         (func_modules_transitive_closure): When --with-tests was specified,
57142         include the unit tests as well, unless explicitly avoided.
57143         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57144         (func_emit_tests_Makefile_am): New function.
57145         (func_create_testdir): When --with-tests was specified, emit a
57146         tests/ directory.
57147         * MODULES.html.sh (Future developments): Update.
57148
57149 2005-08-24  Bruno Haible  <bruno@clisp.org>
57150
57151         * modules/tls-tests: New file.
57152         * tests/test-tls.c: New file, from GNU gettext.
57153
57154 2005-08-24  Bruno Haible  <bruno@clisp.org>
57155
57156         * modules/lock-tests: New file.
57157         * tests/test-lock.c: New file, from GNU gettext.
57158
57159 2005-08-24  Bruno Haible  <bruno@clisp.org>
57160
57161         * lib/lock.h: Add multiple inclusion guard.
57162         * lib/tls.h: Add multiple inclusion guard.
57163
57164 2005-08-24  Bruno Haible  <bruno@clisp.org>
57165
57166         * gnulib-tool: Add support for the --aux-dir option to
57167         --create-testdir, --create-megatestdir, --test, --megatest.
57168         (func_create_testdir, func_create_megatestdir): Optionally emit a
57169         AC_CONFIG_AUX_DIR directive.
57170         (create-testdir, create-megatestdir, test, megatest): Provide a
57171         default value for $auxdir.
57172
57173 2005-08-24  Bruno Haible  <bruno@clisp.org>
57174
57175         * gnulib-tool (import): Use compound statement instead of subshell
57176         where possible.
57177
57178 2005-08-24  Bruno Haible  <bruno@clisp.org>
57179
57180         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57181
57182 2005-08-24  Bruno Haible  <bruno@clisp.org>
57183
57184         * gnulib-tool (func_version): Update.
57185
57186 2005-08-24  Bruno Haible  <bruno@clisp.org>
57187
57188         * gnulib-tool (func_import, func_create_testdir,
57189         func_create_megatestdir): Quote all autoconf macro arguments.
57190
57191 2005-08-24  Bruno Haible  <bruno@clisp.org>
57192
57193         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57194         option --force, because --force causes the aclocal.m4 of each
57195         subdirectory to be newer than the corresponding config.h.in.
57196
57197 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57198
57199         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57200         All contents moved to gl_REGEX.
57201         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57202         assume that it does.
57203
57204 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57205
57206         * lib/regex.h (REG_NOSYS)
57207         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57208         Define, since POSIX requires it as of 2001.
57209         (_REG_ENOSYS)
57210         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57211         New private symbol, used to keep the enum signed in all cases.
57212         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57213         Youngman in
57214         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57215
57216         * lib/regex_internal.c (re_string_skip_chars, register_state):
57217         (calc_state_hash):
57218         Remove forward decls; no longer needed now that we use prototypes.
57219         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57220         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57221         (clean_state_log_if_needed): Likewise.
57222
57223 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57224
57225         * config/srclist.txt: Add glibc bugs 1231-1233.
57226
57227 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57228
57229         Fix problems reported by Sam Steingold in
57230         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57231         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57232         assumed that reg_errcode_t is a signed type, which is not
57233         necessarily true if _XOPEN_SOURCE is not defined.
57234         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57235         since some compilers warn about it otherwise.
57236
57237 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57238
57239         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57240         (init_word_char, create_initial_state, duplicate_node_closure):
57241         (fetch_token, peek_token_bracket, build_range_exp):
57242         (build_collating_symbol): Remove forward decls; no longer needed
57243         now that we use prototypes.
57244
57245         * lib/regcomp.c:
57246         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
57247         (re_compile_fastmap_iter, regcomp, regerror, regfree):
57248         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
57249         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
57250         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
57251         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
57252         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
57253         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
57254         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
57255         (build_range_exp, build_collating_symbol, parse_bracket_exp):
57256         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
57257         (build_charclass, build_charclass_op, fetch_number, create_tree):
57258         (create_token_tree, mark_opt_subexp, duplicate_tree):
57259         Use prototypes rather than old-style definitions.
57260
57261         * lib/regex_internal.c:
57262         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
57263         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
57264         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57265         (re_string_reconstruct, re_string_peek_byte_case):
57266         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
57267         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57268         (re_node_set_init_copy, re_node_set_add_intersect):
57269         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57270         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57271         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57272         (re_acquire_state, re_acquire_state_context, register_state):
57273         (create_ci_newstate, create_cd_newstate, free_state):
57274         Likewise.
57275         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
57276         re_search_2):
57277         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
57278         (re_search_internal, prune_impossible_nodes):
57279         (acquire_init_state_context, check_matching, static):
57280         (check_halt_node_context, check_halt_state_context, proceed_next_node):
57281         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
57282         (update_regs, sift_states_backward, build_sifted_states):
57283         (clean_state_log_if_needed, merge_state_array):
57284         (update_cur_sifted_state, add_epsilon_src_nodes):
57285         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57286         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57287         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57288         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57289         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57290         (check_arrival, check_arrival_add_next_nodes):
57291         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57292         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57293         (check_node_accept_bytes, check_node_accept, extend_buffers):
57294         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57295         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57296         (sift_ctx_init):
57297         Likewise.
57298
57299         * lib/regex_internal.h:
57300         (re_string_allocate, re_string_construct, re_string_reconstruct):
57301         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57302         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57303         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57304         (re_string_context_at, re_string_peek_byte_case):
57305         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57306         is defined, since we now use prototypes always.
57307
57308         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57309         C89 or better.  All uses removed.
57310
57311 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57312
57313         * config/srclist.txt: Add glibc bugs 1220-1227.
57314
57315 2005-08-20  Jim Meyering  <jim@meyering.net>
57316
57317         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57318         of unused local, dfa.
57319
57320 2005-08-20  Bruno Haible  <bruno@clisp.org>
57321
57322         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57323
57324 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57325
57326         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57327         (re_node_set_insert_last, re_dfa_add_node):
57328         Rename local variables to avoid GCC shadowing warnings.
57329
57330 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57331
57332         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57333         [defined lint]: Suppress bogus uninitialized-variable warnings.
57334
57335         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57336         and let the caller return REG_ESPACE if out of space.  This
57337         removes an uninitialied-variable warning with GCC 4.0.1, and also
57338         avoids taking the address of a local variable.  All callers
57339         changed.
57340
57341 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57342
57343         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57344         $LIBCSRC/posix/regexec.c.
57345         Add glibc bug 1217 for regcomp.c.
57346
57347 2005-08-19  Jim Meyering  <jim@meyering.net>
57348
57349         * lib/regexec.c (proceed_next_node): Redo local variables to
57350         avoid GCC shadowing warnings.
57351
57352 2005-08-18  Bruno Haible  <bruno@clisp.org>
57353
57354         * lib/strstr.c (strstr): Fix return value in multibyte case.
57355         * lib/strcasestr.c (strcasestr): Likewise.
57356
57357 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57358
57359         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57360
57361 2005-08-17  Jim Meyering  <jim@meyering.net>
57362
57363         Make the %s format (seconds since the epoch) work for a negative
57364         number and when used with a zero-padded field width, e.g. %015s.
57365
57366         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57367         label so that it precedes the code to set `digits'.  Otherwise,
57368         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57369         print `00-22'.  Now, it prints `-0022', as it should.
57370
57371 2005-08-17  Bruno Haible  <bruno@clisp.org>
57372
57373         * modules/strstr (Files): Add m4/mbrtowc.m4.
57374         (Depends-on): Add mbuiter.
57375
57376 2005-08-17  Bruno Haible  <bruno@clisp.org>
57377
57378         * modules/strcasestr: New file.
57379         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57380         strcasestr.
57381
57382 2005-08-17  Bruno Haible  <bruno@clisp.org>
57383
57384         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57385
57386 2005-08-17  Bruno Haible  <bruno@clisp.org>
57387
57388         * modules/mbuiter: New file.
57389         * MODULES.html.sh (Extended multibyte and wide character utilities):
57390         Add mbuiter.
57391
57392 2005-08-17  Bruno Haible  <bruno@clisp.org>
57393
57394         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57395         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57396
57397 2005-08-17  Bruno Haible  <bruno@clisp.org>
57398
57399         * m4/strcasestr.m4: New file.
57400
57401 2005-08-17  Bruno Haible  <bruno@clisp.org>
57402
57403         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57404         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57405
57406 2005-08-17  Bruno Haible  <bruno@clisp.org>
57407
57408         * lib/strcasestr.h: New file.
57409         * lib/strcasestr.c: New file.
57410
57411 2005-08-17  Bruno Haible  <bruno@clisp.org>
57412
57413         * lib/strcasecmp.c: Use mbuiter.h.
57414
57415 2005-08-17  Bruno Haible  <bruno@clisp.org>
57416
57417         * lib/mbuiter.h: New file.
57418
57419 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57420
57421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
57422         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
57423         and gl_GETOPT are both invoked via different paths (as happens
57424         with GNU tar CVS because it uses both argp and getopt), the former
57425         wins.
57426
57427 2005-08-16  Bruno Haible  <bruno@clisp.org>
57428
57429         * modules/tls: New file.
57430         * MODULES.html.sh (Multithreading): Add tls.
57431
57432 2005-08-16  Bruno Haible  <bruno@clisp.org>
57433
57434         * modules/strnlen1: New file.
57435         * MODULES.html.sh (String handling): Add strnlen1.
57436
57437 2005-08-16  Bruno Haible  <bruno@clisp.org>
57438
57439         * modules/strcase (Files): Add m4/mbrtowc.m4.
57440         (Depends-on): Add strnlen1, mbchar.
57441
57442 2005-08-16  Bruno Haible  <bruno@clisp.org>
57443
57444         * modules/mbiter: New file.
57445         * MODULES.html.sh (Extended multibyte and wide character utilities):
57446         Add mbiter.
57447
57448 2005-08-16  Bruno Haible  <bruno@clisp.org>
57449
57450         * modules/mbfile: New file.
57451         * MODULES.html.sh (Extended multibyte and wide character utilities):
57452         Add mbfile.
57453
57454 2005-08-16  Bruno Haible  <bruno@clisp.org>
57455
57456         * modules/mbchar: New file.
57457         * MODULES.html.sh (Extended multibyte and wide character utilities):
57458         New section.
57459
57460 2005-08-16  Bruno Haible  <bruno@clisp.org>
57461
57462         * m4/tls.m4: New file, from GNU gettext.
57463
57464 2005-08-16  Bruno Haible  <bruno@clisp.org>
57465
57466         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
57467         always.
57468         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
57469
57470 2005-08-16  Bruno Haible  <bruno@clisp.org>
57471
57472         * m4/mbiter.m4: New file.
57473
57474 2005-08-16  Bruno Haible  <bruno@clisp.org>
57475
57476         * m4/mbfile.m4: New file.
57477
57478 2005-08-16  Bruno Haible  <bruno@clisp.org>
57479
57480         * m4/mbchar.m4: New file.
57481
57482 2005-08-16  Bruno Haible  <bruno@clisp.org>
57483
57484         * lib/tls.h: New file, from GNU gettext.
57485         * lib/tls.c: New file, from GNU gettext.
57486
57487 2005-08-16  Bruno Haible  <bruno@clisp.org>
57488
57489         * lib/strnlen1.h: New file.
57490         * lib/strnlen1.c: New file.
57491
57492 2005-08-16  Bruno Haible  <bruno@clisp.org>
57493
57494         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
57495         (mbi_init): Update.
57496         (mbi_avail, mbi_advance): Let the iteration end before the terminating
57497         NUL byte, not after it.
57498
57499 2005-08-16  Bruno Haible  <bruno@clisp.org>
57500
57501         * lib/strcase.h (strcasecmp): Add note in comments.
57502         * lib/strncasecmp.c: Use code from strcasecmp.c.
57503         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
57504         (strcasecmp): Work correctly in multibyte locales.
57505
57506 2005-08-16  Bruno Haible  <bruno@clisp.org>
57507
57508         * lib/mbiter.h: New file.
57509
57510 2005-08-16  Bruno Haible  <bruno@clisp.org>
57511
57512         * lib/mbfile.h: New file.
57513
57514 2005-08-16  Bruno Haible  <bruno@clisp.org>
57515
57516         * lib/mbchar.h: New file.
57517         * lib/mbchar.c: New file.
57518
57519 2005-08-16  Bruno Haible  <bruno@clisp.org>
57520
57521         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
57522         the valid ones. Makes the comparison operations transitive:
57523         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
57524         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
57525
57526 2005-08-15  Simon Josefsson  <jas@extundo.com>
57527
57528         * modules/ssize_t (License): Change to 'unlimited'.
57529
57530         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
57531
57532 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57533
57534         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
57535         Add comments for each pending glibc patch.
57536
57537 2005-08-15  Bruno Haible  <bruno@clisp.org>
57538
57539         * lib/regex.h (__restrict_arr): Don't define to __restrict if
57540         __cplusplus is defined.
57541
57542 2005-08-14  Jim Meyering  <jim@meyering.net>
57543
57544         Sync from coreutils.
57545
57546         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
57547         Use the hash-table-based cycle-detection code not just when
57548         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
57549         Reported by James Youngman in
57550         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
57551         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
57552         FTS_TIGHT_CYCLE_CHECK.
57553         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
57554         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
57555         once again.
57556         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
57557         * lib/fts.c (fd_safer): Remove decl.
57558         Include fcntl--.h rather than unistd-safer.h
57559         (fts_safe_changedir): Don't call fd_safer; no longer needed
57560         now that we include fcntl--.h.
57561
57562 2005-08-12  Simon Josefsson  <jas@extundo.com>
57563
57564         * modules/getndelim2: Use ssize_t module.
57565         * modules/getnline: Likewise.
57566         * modules/safe-read: Likewise.
57567         * modules/xreadlink: Likewise.
57568
57569         * modules/ssize_t: New file.
57570
57571 2005-08-12  Simon Josefsson  <jas@extundo.com>
57572
57573         * m4/readline.m4: Look for termcap, curses or ncurses if required.
57574
57575 2005-08-12  Simon Josefsson  <jas@extundo.com>
57576
57577         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57578         ssize_t.
57579
57580 2005-08-12  Simon Josefsson  <jas@extundo.com>
57581
57582         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
57583         readline, getdelim and check_version.
57584         (Support for systems lacking ISO C 99: Sizes of integer types):
57585         Add size_max.
57586
57587 2005-08-12  Bruno Haible  <bruno@clisp.org>
57588
57589         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
57590
57591 2005-08-11  Simon Josefsson  <jas@extundo.com>
57592
57593         * modules/readline: New file.
57594
57595         * modules/strnlen (Files): Add strnlen.h.
57596
57597 2005-08-11  Simon Josefsson  <jas@extundo.com>
57598
57599         * m4/readline.m4: New file.
57600
57601 2005-08-11  Simon Josefsson  <jas@extundo.com>
57602
57603         * lib/readline.h, readline.c: New file.
57604
57605 2005-08-11  Simon Josefsson  <jas@extundo.com>
57606
57607         * doc/gnulib.texi (Initial import, Finishing touches): Mention
57608         gl_AVOID.
57609
57610 2005-08-11  Bruno Haible  <bruno@clisp.org>
57611
57612         * lib/strnlen.h (strnlen): Change parameter name to match comment.
57613
57614 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
57615
57616         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
57617
57618 2005-08-10  Simon Josefsson  <jas@extundo.com>
57619
57620         * tests/test-iconvme.c: New file.
57621
57622 2005-08-10  Simon Josefsson  <jas@extundo.com>
57623
57624         * m4/strnlen.m4: New file.
57625
57626         * m4/strndup.m4: Don't check for strnlen declaration, done in
57627         strnlen.m4.
57628
57629 2005-08-10  Simon Josefsson  <jas@extundo.com>
57630
57631         * lib/strndup.c: Use strnlen.h.
57632
57633         * lib/strnlen.h: New file.
57634
57635 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57636
57637         * README: Typos.
57638
57639 2005-08-02  Simon Josefsson  <jas@extundo.com>
57640
57641         * modules/readline: New file.
57642
57643 2005-08-02  Simon Josefsson  <jas@extundo.com>
57644
57645         * modules/getdelim: New file.
57646
57647         * modules/getline: Rewrite, don't use getndelim2.
57648
57649 2005-08-02  Simon Josefsson  <jas@extundo.com>
57650
57651         * m4/getline.m4: Separate out getdelim stuff into separate module.
57652
57653         * m4/getdelim.m4: New file.
57654
57655 2005-08-02  Simon Josefsson  <jas@extundo.com>
57656
57657         * lib/getline.h, getline.c: Rewrite.
57658
57659         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
57660
57661 2005-07-31  Bruno Haible  <bruno@clisp.org>
57662
57663         * lib/lock.h (gl_lock_initializer): New macro.
57664         (gl_lock_define_initialized): Use it.
57665         (gl_rwlock_initializer): New macro.
57666         (gl_rwlock_define_initialized): Use it.
57667         (gl_recursive_lock_initializer): New macro.
57668         (gl_recursive_lock_define_initialized): Use it.
57669
57670 2005-07-30  Karl Berry  <karl@gnu.org>
57671
57672         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
57673         Report from Ben Pfaff, regarding getopt.
57674
57675 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
57676
57677         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
57678         normal way.
57679         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
57680         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
57681         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
57682         (gl_GETOPT): Use the new macros.  Most of the implementation
57683         is moved to the new macros.  This is for programs like Emacs
57684         that don't want all the functionality of gl_GETOPT.
57685
57686 2005-07-26  Bruno Haible  <bruno@clisp.org>
57687
57688         * m4/lock.m4: Update from GNU gettext.
57689
57690 2005-07-26  Bruno Haible  <bruno@clisp.org>
57691
57692         * lib/lock.h: Update from GNU gettext.
57693         * lib/lock.c: Update from GNU gettext.
57694
57695 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
57696
57697         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
57698         obsolescent AC_TRY_RUN.  Include the default includes files, for
57699         'exit'.
57700
57701 2005-07-24  Bruno Haible  <bruno@clisp.org>
57702
57703         * modules/visibility: New file.
57704         * MODULES.html.sh (Misc): Add visibility.
57705
57706 2005-07-24  Bruno Haible  <bruno@clisp.org>
57707
57708         * m4/visibility.m4: New file.
57709
57710 2005-07-24  Bruno Haible  <bruno@clisp.org>
57711
57712         * doc/visibility.texi: New file.
57713
57714 2005-07-22  Bruno Haible  <bruno@clisp.org>
57715
57716         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
57717         $(ALLOCA_H), redundant through BUILT_SOURCES.
57718         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
57719         redundant through BUILT_SOURCES.
57720         * modules/byteswap (Makefile.am): Remove explicit dependency on
57721         $(BYTESWAP_H), redundant through BUILT_SOURCES.
57722         * modules/fnmatch (Makefile.am): Remove explicit dependency on
57723         $(FNMATCH_H), redundant through BUILT_SOURCES.
57724         * modules/getopt (Makefile.am): Remove explicit dependency on
57725         $(GETOPT_H), redundant through BUILT_SOURCES.
57726         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
57727         redundant through BUILT_SOURCES.
57728         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
57729         redundant through BUILT_SOURCES.
57730         * modules/stdbool (Makefile.am): Remove explicit dependency on
57731         $(STDBOOL_H), redundant through BUILT_SOURCES.
57732         * modules/stdint (Makefile.am): Remove explicit dependency on
57733         $(STDINT_H), redundant through BUILT_SOURCES.
57734         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
57735         Remove explicit dependency on $(SYSEXITS_H).
57736         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
57737
57738 2005-07-18  Simon Josefsson  <jas@extundo.com>
57739
57740         * lib/check-version.c (check_version): Accept identical versions too.
57741
57742 2005-07-18  Bruno Haible  <bruno@clisp.org>
57743
57744         * modules/lock: New file.
57745         * MODULES.html.sh (Multithreading): New section.
57746
57747 2005-07-18  Bruno Haible  <bruno@clisp.org>
57748
57749         * m4/lock.m4: New file, from GNU gettext.
57750
57751 2005-07-18  Bruno Haible  <bruno@clisp.org>
57752
57753         * lib/lock.h: New file, from GNU gettext.
57754         * lib/lock.c: New file, from GNU gettext.
57755
57756 2005-07-18  Bruno Haible  <bruno@clisp.org>
57757
57758         * lib/lock.h (gl_once_t): New type.
57759         (gl_once_define, gl_once): New macros.
57760         * lib/lock.c (fresh_once): New variable.
57761         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
57762         functions.
57763
57764 2005-07-16  Simon Josefsson  <jas@extundo.com>
57765
57766         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
57767         workaround, suggested by Bruno.
57768
57769 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57770
57771         * modules/xalloc (Depends-on): Add xalloc-die.
57772         * modules/xvasprintf (Depends-on): Add xalloc-die.
57773
57774 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57775
57776         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
57777         with a minor change.
57778
57779 2005-07-15  Bruno Haible  <bruno@clisp.org>
57780
57781         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
57782         When using lib/poll.c, define poll as rpl_poll.
57783
57784 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
57785
57786         * modules/argp (Depends-on): Remove unlocked-io.
57787
57788 2005-07-14  Derek Price  <derek@ximbiot.com>
57789
57790         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
57791         for glob symlink bug.
57792
57793 2005-07-14  Bruno Haible  <bruno@clisp.org>
57794
57795         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
57796         Instead, test for *_unlocked function declarations directly.
57797
57798 2005-07-11  Simon Josefsson  <jas@extundo.com>
57799
57800         * modules/size_max: New file.
57801
57802         * modules/xsize: Depend on size_max module for size_max.m4.
57803
57804 2005-07-11  Simon Josefsson  <jas@extundo.com>
57805
57806         * lib/size_max.h: New file.
57807
57808 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
57809
57810         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
57811         copyright symbol and the year.
57812         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
57813         (version_etc_va): Use parameterized copyright notice.
57814         Reword to conform to the current GNU coding standards.
57815
57816 2005-07-11  Karl Berry  <karl@gnu.org>
57817
57818         * doc/gnulib.texi (Quoting): new node.
57819         (Initial import): more info, from Patrice.
57820
57821 2005-07-11  Bruno Haible  <bruno@clisp.org>
57822
57823         * gnulib-tool (func_usage): Document option --avoid.
57824         (Command line options): Handle --avoid.
57825         (func_acceptable): New function.
57826         (func_modules_transitive_closure): Use it.
57827
57828 2005-07-11  Bruno Haible  <bruno@clisp.org>
57829
57830         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
57831         Reported by Jim Meyering.
57832
57833 2005-07-10  Bruno Haible  <bruno@clisp.org>
57834
57835         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
57836         Needed when size_t is smaller than 'unsigned int'.
57837         Reported by Paul Eggert.
57838
57839 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57840
57841         * modules/argp (Depends-on): Add unlocked-io
57842
57843 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57844
57845         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
57846         block of defines.
57847
57848 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
57849
57850         * config/srclist.txt: Comment out regcomp.c, since we have a porting
57851         fix now.
57852
57853 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
57854         and Paul Eggert  <eggert@cs.ucla.edu>
57855
57856         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
57857         in wint_t, not wchar_t.  Remove now-unnecessary cast.
57858
57859 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57860
57861         * modules/regex (Files): Add lib/regex_internal.c,
57862         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
57863         (Depends-on): Add extensions.
57864         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
57865
57866 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57867
57868         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
57869         pathconf.
57870         * m4/same.m4 (gl_SAME): Likewise.
57871         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
57872
57873         * m4/regex.m4: Adjust to new libc regex implementation.
57874         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
57875         all the .c and .h parts of (the new) regex.
57876         Quote the m4 stuff better.
57877         Check for RE_ICASE bug of old gnulib.
57878         Check for REG_STARTEND of recent libc.
57879         Rename local variables from jm_* to gl_*.
57880         Quote operand of "test -f".
57881         Say "recent enough" version of libc, not "version 2".
57882         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
57883         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
57884         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
57885         Remove check for btowc, isascii.
57886         Require AM_LANGINFO_CODESET.
57887
57888 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57889
57890         * lib/regex.c, regex.h: Sync from libc.
57891         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
57892         * lib/regexec.c:
57893         New files, synced from libc, except that regex_internal.h
57894         currently has a small porting fix.
57895
57896 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57897
57898         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
57899         regex_internal.c, regexec.c.
57900         Add regex_internal.h too, but as a comment, since the libc version
57901         is currently broken in gnulib mode.
57902
57903 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57904
57905         Support programs like Emacs that use gnulib but not gettext.
57906         * MODULES.html.sh (Internationalization functions): Add gettext-h.
57907         * modules/gettext-h: New file.
57908         * modules/gettext (Files): Remove lib/gettext.h.
57909         (Depends-on): Add gettext-h.
57910         (Makefile.am): Remove lib_SOURCES.
57911         * modules/argmatch, modules/c-stack, modules/closeout:
57912         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
57913         * modules/execute, modules/file-type, modules/getaddrinfo:
57914         * modules/getopt, modules/human, modules/javacomp:
57915         * modules/javaexec, modules/mkdir-p, modules/obstack:
57916         * modules/openat, modules/pagealign_alloc, modules/pipe:
57917         * modules/quotearg, modules/regex, modules/rpmatch:
57918         * modules/unicodeio, modules/userspec, modules/version-etc:
57919         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
57920         * modules/xsetenv:
57921         Depend on gettext-h, not gettext.
57922
57923 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         * gnulib-tool (func_import): Add support for 'public domain' license.
57926         * modules/alloca, modules/atexit, modules/memmove:
57927         Now public domain, not GPL.
57928         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
57929         * modules/realloc, modules/strerror, modules/strtod:
57930         Now LGPL, not GPL.
57931
57932 2005-07-05  Bruno Haible  <bruno@clisp.org>
57933
57934         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
57935         autoconf CVS. Needed for mingw.
57936
57937 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57938
57939         Remove the dependency of the strftime module on the tzset module.
57940         * modules/strftime (Depends-on): Remove dependency on tzset.
57941
57942 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57943
57944         Remove the dependency of the strftime module on the tzset module.
57945         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
57946         gl_FUNC_TZSET_CLOBBER.
57947
57948 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57949
57950         Remove the dependency of the strftime module on the tzset module.
57951         * lib/strftime.c (my_strftime)
57952         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
57953         Copy the input structure, to work around some of the bug with
57954         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
57955         Solaris releases, you should also use the tzset module, but we won't
57956         require it as a dependency any more since we don't want LGPLed code
57957         to depend on GPLed code.
57958
57959 2005-07-02  Jim Meyering  <jim@meyering.net>
57960
57961         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
57962         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
57963         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
57964         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
57965
57966 2005-07-02  Jim Meyering  <jim@meyering.net>
57967
57968         * lib/backupfile.c (backup_args): Change a `0' to NULL.
57969
57970 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57971
57972         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
57973         declares only 'struct timespec;' (!).
57974
57975 2005-07-01  Jim Meyering  <jim@meyering.net>
57976
57977         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
57978         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
57979         * lib/save-cwd.c, tempname.c:
57980         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57981         and don't include <sys/file.h>).
57982
57983 2005-06-29  Jim Meyering  <jim@meyering.net>
57984
57985         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
57986         type name.  Use the variable name instead.
57987         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
57988         Likewise.
57989
57990 2005-06-28  Simon Josefsson  <jas@extundo.com>
57991
57992         * modules/check-version (Files): Add check-version.m4.
57993
57994 2005-06-28  Simon Josefsson  <jas@extundo.com>
57995
57996         * m4/check-version.m4: New file, suggested by Jim Meyering
57997         <jim@meyering.net>.
57998
57999 2005-06-28  Simon Josefsson  <jas@extundo.com>
58000
58001         * lib/check-version.h, lib/check-version.c: New files.
58002
58003 2005-06-28  Simon Josefsson  <jas@extundo.com>
58004
58005         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58006         collision with global variable.  Better indentation.  Don't
58007         increment buffer pointer beyond buffer end.  Based on comments
58008         from Paul Eggert <eggert@cs.ucla.edu>.
58009
58010         * lib/base64.h: Indent.
58011
58012 2005-06-28  Simon Josefsson  <jas@extundo.com>
58013
58014         * doc/gnulib.texi (Library version handling): New section.
58015
58016 2005-06-28  Jim Meyering  <jim@meyering.net>
58017
58018         * check-module (find_included_lib_files): Hard-code another
58019         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58020         but modules/fts-lgpl (correctly) does not list those files.
58021
58022         * modules/canonicalize (Files): Add lib/pathmax.h.
58023
58024 2005-06-25  Simon Josefsson  <jas@extundo.com>
58025
58026         * modules/check-version: New file.
58027
58028 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58029
58030         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58031         initializer of struct addrinfo, as an indication that we don't
58032         care how many members the structure has.
58033
58034 2005-06-24  Derek Price  <derek@ximbiot.com>
58035         and Bruno Haible  <bruno@clisp.org>
58036
58037         Remove stat module & update lstat.
58038         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58039         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58040         * m4/stat.m4: Remove this file.
58041
58042 2005-06-24  Derek Price  <derek@ximbiot.com>
58043         and Bruno Haible  <bruno@clisp.org>
58044
58045         Remove stat module & update lstat.
58046         * lib/stat.c: Remove this file...
58047         (slash_aware_lstat): ...moving this content and its support...
58048         * lib/lstat.c (rpl_lstat): ...into here.
58049         * lib/lstat.h: New file.
58050
58051 2005-06-24  Derek Price  <derek@ximbiot.com>
58052         and Bruno Haible  <bruno@clisp.org>
58053
58054         Remove stat module & update lstat.
58055         * config/srclist.txt (libc sources): Remove stat.
58056
58057 2005-06-24  Derek Price  <derek@ximbiot.com>
58058         and Bruno Haible  <bruno@clisp.org>
58059
58060         Remove stat module & update lstat.
58061         * MODULES.html.sh (stat): Remove.
58062         * MODULES.html: Regenerated.
58063         * modules/lstat (Description): Correct function name.
58064         (Files): Add "lstat.h".
58065         (Depends-on): Remove stat, add xalloc, stat-macros.
58066         * modules/stat: Remove this file.
58067         (Include): Add "lstat.h", remove <sys/stat.h>.
58068
58069 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58070
58071         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58072         (ranged_convert): Don't save conversion in a temporary struct.
58073         This causes a warning with GCC 4.0.0, and anyway in the typical
58074         case it's not worth the extra 100 bytes or so of code.
58075         (ranged_convert, __mktime_internal): When calling a function via a
58076         pointer P, use P () rather than (*P) (), as we now assume C89 or
58077         better.
58078
58079 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58080
58081         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58082         "who -r" failed to give output.  Problem reported by Tim Waugh.
58083
58084         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58085         (xcalloc): Use it to avoid needless tests.
58086         Problem reported by Jim Meyering.
58087
58088 2005-06-20  Derek Price  <derek@ximbiot.com>
58089
58090         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58091         unnecessary for Autoconfs > 2.59c.
58092
58093 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58094
58095         * lib/argp.h (__option_is_short): Check upper limit of
58096         __key. Isprint() requires its argument to have the value
58097         of an unsigned char or EOF.
58098
58099 2005-06-16  Jim Meyering  <jim@meyering.net>
58100
58101         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58102         when either N or S is zero.
58103
58104 2005-06-16  Derek Price  <derek@ximbiot.com>
58105
58106         * m4/bison.m4: Declare YACC & YFLAGS precious.
58107
58108 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58109
58110         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58111         multibyte string or pattern, fall back on unibyte matching.
58112         Problem reported by James Youngman.
58113
58114 2005-06-08  Bruno Haible  <bruno@clisp.org>
58115
58116         * modules/csharpcomp: New file.
58117         * MODULES.html.sh (C#): Add csharpcomp.
58118
58119 2005-06-08  Bruno Haible  <bruno@clisp.org>
58120
58121         * m4/csharpcomp.m4: New file, from GNU gettext.
58122
58123 2005-06-08  Bruno Haible  <bruno@clisp.org>
58124
58125         * lib/csharpcomp.h: New file, from GNU gettext.
58126         * lib/csharpcomp.c: New file, from GNU gettext.
58127         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58128
58129 2005-06-08  Bruno Haible  <bruno@clisp.org>
58130
58131         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58132         warning on mingw.
58133
58134 2005-06-07  Derek Price  <derek@ximbiot.com>
58135
58136         Sync from CVS.
58137         * lib/glob_.h: Indent nested #ifdef.
58138
58139 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         Sync from coreutils.
58142         Use "file name" when talking about file names, instead of "filename"
58143         or "path", as per the GNU coding standards.
58144         * lib/mkdir-p.c: Renamed from makepath.c.
58145         (make_dir_parents): Renamed from make_path.  All callers changed.
58146         * lib/mkdir-p.h: Likewise.  All includers changed.
58147         * lib/filenamecat.c: Renamed from path-concat.c.
58148         (file_name_concat): Renamed from path_concat.  All callers changed.
58149         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58150         * lib/filenamecat.h: Likewise.  All includers changed.
58151         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58152         in comments or local variable names.
58153         * lib/basename.c: Likewise.
58154         * lib/canonicalize.c, canonicalize.h: Likewise.
58155         * lib/dirname.c, dirname.h: Likewise.
58156         * lib/euidaccess.c: Likewise.
58157         * lib/exclude.c: Likewise
58158         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58159         * lib/fsusage.c, fsuage.h: Likewise.
58160         * lib/fts.c, fts_.h: Likewise.
58161         * lib/getcwd.c: Likewise.
58162         * lib/getloadavg.c: Likewise.
58163         * lib/mkstemp.c: Likewise.
58164         * lib/mountlist.c, mountlist.h: Likewise.
58165         * lib/openat.c, openat.h: Likewise.
58166         * lib/readlink-stub.c: Likewise.
58167         * lib/readutmp.c, readutmp.h: Likewise.
58168         * lib/rename.c: Likewise.
58169         * lib/rmdir.c: Likewise.
58170         * lib/same.c: Likewise.
58171         * lib/savedir.c: Likewise.
58172         * lib/stripslash.c: Likewise.
58173         * lib/tempname.c: Likewise.
58174         * lib/xreadlink.c: Likewise.
58175         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58176         All uses changed.
58177         * lib/exclude.h: Likewise.
58178
58179         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58180         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58181         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58182         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58183         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58184         files have been getting away with it for years (MORE/BSD 4.3
58185         is extinct now).
58186         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58187         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58188
58189         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58190         Define to 256, not 255, as per modern POSIX.
58191
58192 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58193
58194         Sync from coreutils.
58195         Use "file name" when talking about file names, instead of "filename"
58196         or "path", as per the GNU coding standards.
58197         * MODULES.html.sh: mkdir-p renamed from makepath.
58198         filenamecat renamed from path-concat.
58199         * modules/filenamecat: Renamed from modules/path-concat.
58200         (Files): filenamecat.h and filenamecat.c renamed from
58201         path-concat.h and path-concat.c.
58202         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58203         (Include): filenamecat.h, not path-concat.h.
58204         * modules/mkdir-p: Renamed from modules/makepath.
58205         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58206         makepath.c.
58207         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58208         (Include): mkdir-p.h, not makepath.h.
58209
58210 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58211
58212         Sync from coreutils.
58213         * m4/mkdir-p.m4: Renamed from makepath.m4.
58214         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58215         Rename files from makepath.c to mkdir-p.c, and from
58216         makepath.h to mkdir-p.h.
58217         * m4/filenamecat.m4: Renamed from path-concat.m4.
58218         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58219         Rename files from path-concat.c to filenamecat.c,
58220         and from path-concat.h to filenamecat.h.
58221         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58222         "file name" in local variables or comments.
58223         * m4/rename.m4: Likewise.
58224
58225 2005-06-01  Bruno Haible  <bruno@clisp.org>
58226
58227         * modules/csharpexec: New file.
58228         * MODULES.html.sh (C#): New section.
58229
58230 2005-06-01  Bruno Haible  <bruno@clisp.org>
58231
58232         * m4/csharp.m4: New file, from GNU gettext.
58233         * m4/csharpexec.m4: New file, from GNU gettext.
58234
58235 2005-06-01  Bruno Haible  <bruno@clisp.org>
58236
58237         * lib/csharpexec.h: New file, from GNU gettext.
58238         * lib/csharpexec.c: New file, from GNU gettext.
58239         * lib/csharpexec.sh.in: New file, from GNU gettext.
58240
58241 2005-05-31  Derek Price  <derek@ximbiot.com>
58242             Paul Eggert  <eggert@cs.ucla.edu>
58243
58244         Sync from cvs.
58245         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58246
58247 2005-05-31  Derek Price  <derek@ximbiot.com>
58248             Paul Eggert  <eggert@cs.ucla.edu>
58249
58250         Sync from cvs.
58251         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58252
58253 2005-05-29  Derek Price  <derek@ximbiot.com>
58254
58255         * config/srclist.txt (glob_.h, glob.c): Add these files.
58256
58257 2005-05-29  Derek Price  <derek@ximbiot.com>
58258
58259         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
58260         * modules/glob: New file.
58261         * modules/getlogin_r: Add link to POSIX spec in description.
58262
58263 2005-05-29  Derek Price  <derek@ximbiot.com>
58264             Paul Eggert  <eggert@cs.ucla.edu>
58265
58266         * m4/glob.m4: New file.
58267
58268 2005-05-29  Derek Price  <derek@ximbiot.com>
58269             Paul Eggert  <eggert@cs.ucla.edu>
58270
58271         * lib/glob_.h, lib/glob.c: New files.
58272
58273 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58274
58275         * modules/fts (Files): Remove m4/inttypes-pri.m4.
58276         * modules/fts-lgpl (Depends-on): Remove gettext.
58277
58278 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58279
58280         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
58281         and don't require gt_INTTYPES_PRI.
58282
58283 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58284
58285         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58286
58287         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58288         the configuration hassle isn't worth it.
58289         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58290         (LONGEST_MODIFIER, PRIuMAX): Remove.
58291
58292 2005-05-27  Bruno Haible  <bruno@clisp.org>
58293
58294         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58295
58296 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58297
58298         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58299         _POSIX_PTHREAD_SEMANTICS for Solaris.
58300
58301 2005-05-25  Derek Price  <derek@ximbiot.com>
58302
58303         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58304
58305 2005-05-25  Derek Price  <derek@ximbiot.com>
58306             Paul Eggert  <eggert@cs.ucla.edu>
58307
58308         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58309         * lib/getlogin_r.c, getlogin_r.h: New files.
58310
58311 2005-05-25  Bruno Haible  <bruno@clisp.org>
58312             Derek Price  <derek@ximbiot.com>
58313
58314         * lib/getlogin_r.h: Simplify API documentation.
58315
58316 2005-05-23  Derek Price  <derek@ximbiot.com>
58317
58318         * modules/minmax (Files): Add m4/minmax.m4.
58319         (configure.ac): Add gl_MINMAX.
58320
58321 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58322
58323         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58324         so that unistd-safer.h (GPL'ed code) need not be included.
58325
58326 2005-05-22  Bruno Haible  <bruno@clisp.org>
58327
58328         * m4/minmax.m4: New file.
58329         Based on a patch by Derek Price <derek@ximbiot.com>.
58330
58331 2005-05-22  Bruno Haible  <bruno@clisp.org>
58332
58333         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58334         (INT64_MIN): Fix definition.
58335         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58336
58337         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58338         NEED_SIGNED_INT_TYPES.
58339
58340         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58341         HAVE_SYSTEM_INTTYPES.
58342
58343 2005-05-22  Bruno Haible  <bruno@clisp.org>
58344
58345         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58346         Also include <sys/param.h> if it defines MIN, MAX.
58347         Based on a patch by Derek Price <derek@ximbiot.com>.
58348
58349 2005-05-21  Jim Meyering  <jim@meyering.net>
58350
58351         * modules/fts (Files): Add m4/inttypes-pri.m4.
58352         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58353
58354 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58355
58356         New fts module.
58357         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58358         (setup_dir, free_dir): New functions.
58359         (enter_dir, leave_dir): Define trivial
58360         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58361         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58362         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58363         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58364         Move to fts-cycle.c.
58365         (fts_open): Use setup_dir.
58366         (fts_close): Use free_dir.
58367         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58368         This adds a label and some gotos, but the alternatives were messier.
58369         Check for memory allocation failure when entering a dir.
58370         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58371         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58372         (FTS): New member fts_cycle, that is a union that contains the
58373         old active_dir_ht and cycle_state.  All uses changed to mention
58374         fts_cycle.ht and fts_cycle.state.
58375         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58376         fts.c, with the following changes:
58377         (setup_dir, free_dir): New functions.
58378         (enter_dir): Now returns bool.  Return true if successful, false
58379         if memory exhausted.  All callers changed.
58380         Do not bother partly cleaning up on
58381         memory allocation failure; that is free_dir's job.
58382         However, free ad if hash_insert fails, to avoid memory leak.
58383         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58384         fts->fts_options to see which union member to use.
58385
58386 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58387
58388         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58389         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58390
58391 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58392
58393         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58394
58395 2005-05-20  Jim Meyering  <jim@meyering.net>
58396
58397         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58398         Now a macro, to pacify GCC.
58399
58400 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58401
58402         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58403         of -1.
58404
58405 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58406
58407         * lib/chown.c (rpl_chown): Return -1 on failure.
58408
58409 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58410
58411         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58412         Don't check for stddef.h.
58413         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
58414         don't use its results.
58415         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
58416         since we include them unconditionally.  Don't require
58417         AM_STDBOOL_H, since stdbool is a prerequisite.
58418         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
58419         since we assume C89 or better.
58420         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
58421         as we don't use their results.
58422         Don't check for fchdir, memmove, memset, strrchr, as we use
58423         them unconditionally.
58424         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
58425         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
58426
58427 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58428
58429         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
58430         Include <stddef.h> unconditionally, since we assume C89 now.
58431         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
58432         * lib/fts.c: Include fts_.h first, to check interface.
58433         Do not include intprops.h; no longer needed.
58434         Include cycle-check.h and hash.h, since fts_.h no longer does.
58435         Remove unnecessary casts of closedir to void.
58436         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
58437         decide whether to decrement nlinks.
58438         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
58439         (FTS): Use struct hash_table * instead of Hash_table, so that
58440         we no longer need to include hash.h here.
58441
58442 2005-05-18  Jim Meyering  <jim@meyering.net>
58443
58444         * modules/dirfd (License): Change to LGPL.  Most of the code
58445         is already in the public domain.
58446
58447 2005-05-18  Jim Meyering  <jim@meyering.net>
58448
58449         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
58450         Reported by Yoann Vandoorselaere.
58451
58452 2005-05-17  Jim Meyering  <jim@meyering.net>
58453
58454         * m4/fts.m4: New file, from coreutils.
58455
58456 2005-05-17  Jim Meyering  <jim@meyering.net>
58457
58458         * lib/fts.c, lib/fts_.h: New files, from coreutils.
58459
58460 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58461
58462         Sync from coreutils.
58463         * m4/unlinkdir.m4: New file.
58464
58465 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58466
58467         Sync from coreutils.
58468         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
58469         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
58470         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
58471         White space changes only.
58472         * lib/makepath.c (make_path): Port to hosts where leading "//" is
58473         special.
58474         * lib/yesno.c: Include getline.h, not ctype.h.
58475         (yesno): Don't remove leading white space; POSIX doesn't allow it.
58476         Use getline to remove arbitrary restriction on response length.
58477
58478 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58479
58480         * config/srclist-update: Spell out "Street" in FSF postal
58481         mail address; this is the style the FSF seems to prefer.
58482
58483         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
58484         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
58485         this updates FSF postal mail address.
58486
58487         Sync from coreutils.
58488         * modules/unlinkdir: New file.
58489         * modules/yesno (Depends-on): Add getline.
58490         * MODULES.html.sh (File system functions): Add unlinkdir.
58491
58492 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58493
58494         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
58495         lib/strsep.h:
58496         Change the initial comment to refer to GPL, not LGPL.
58497         gnulib-tool will change it to LGPL as needed.
58498
58499         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
58500         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
58501         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
58502         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
58503         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
58504         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
58505         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
58506         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
58507         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
58508         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
58509         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
58510         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
58511         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
58512         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
58513         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
58514         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
58515         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
58516         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
58517         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
58518         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
58519         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
58520         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
58521         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
58522         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
58523         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
58524         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
58525         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
58526         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
58527         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
58528         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
58529         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
58530         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
58531         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
58532         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
58533         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
58534         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
58535         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
58536         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
58537         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
58538         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
58539         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
58540         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
58541         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
58542         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
58543         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
58544         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
58545         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
58546         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
58547         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
58548         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
58549         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58550         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
58551         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
58552         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
58553         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
58554         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
58555         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
58556         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
58557         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
58558         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
58559         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
58560         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
58561         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
58562         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
58563         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
58564         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
58565         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
58566         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
58567         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
58568         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
58569         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
58570         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
58571         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
58572         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
58573         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
58574         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
58575         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
58576         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
58577         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
58578         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
58579         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
58580         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
58581         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
58582         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
58583         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
58584         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
58585         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
58586         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
58587         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
58588         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
58589         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
58590         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
58591         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
58592         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
58593         lib/yesno.c, lib/yesno.h:
58594         Update FSF postal mail address.
58595
58596 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58597
58598         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
58599         tests/test-memmem.c, tests/test-stpncpy.c:
58600         Update FSF postal mail address.
58601
58602 2005-05-13  Bruno Haible  <bruno@clisp.org>
58603
58604         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
58605         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
58606         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
58607         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
58608         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
58609         Add support for 64-bit integers in the MSVC compiler.
58610
58611 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58612
58613         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
58614
58615 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
58616
58617         * gnulib-tool (func_import): Sort and uniquify recommended includes.
58618
58619 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
58620
58621         * doc/getdate.texi (General date syntax): Don't say that date
58622         date --iso-8601=ns generates acceptable dates; it doesn't yet.
58623         Problem reported by Nic Ferrier.
58624
58625 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58626
58627         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
58628         specified in ai_socktype. Fix invalid ai_protocol
58629         check. ai_protocol is usually set to 0 or depending on
58630         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
58631         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
58632         ai_socktype / ai_protocol in the returned addrinfo structure.
58633
58634 2005-05-10  Simon Josefsson  <jas@extundo.com>
58635
58636         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
58637         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58638
58639 2005-05-10  Karl Berry  <karl@gnu.org>
58640
58641         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
58642         (from http://www.gnu.org/licenses).
58643         * doc/COPYING.LIB: also rename to COPYING.LESSER.
58644         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
58645         fdl.texi suffices.
58646
58647 2005-05-10  Karl Berry  <karl@gnu.org>
58648
58649         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
58650         (COPYING.DOC): remove.
58651
58652         * config/srclist-update: new FSF address.
58653
58654 2005-05-10  Derek Price  <derek@ximbiot.com>
58655
58656         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
58657         possible.
58658
58659 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58660             Bruno Haible  <bruno@clisp.org>
58661
58662         * modules/inet_ntop: New file.
58663         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58664         inet_ntop.
58665
58666 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58667             Bruno Haible  <bruno@clisp.org>
58668
58669         * m4/inet_ntop.m4: New file.
58670
58671 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58672             Bruno Haible  <bruno@clisp.org>
58673
58674         * lib/inet_ntop.h: New file.
58675         * lib/inet_ntop.c: New file, from glibc with modifications.
58676
58677 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
58678
58679         * modules/time_r (License): Change to LGPL.
58680         * modules/extensions (License): Change to LGPL.  Actually,
58681         the license is more permissive than that, but currently gnulib-tool
58682         doesn't know how to handle more-permissive licenses.
58683
58684         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
58685         Problem reported by Dave Love.
58686
58687 2005-05-08  Jim Meyering  <jim@meyering.net>
58688
58689         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
58690         blank.
58691
58692 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58693
58694         * modules/argmatch (Depends-on): Add stdbool.
58695         * modules/backupfile (Depends-on): Likewise.
58696         * modules/chdir-long (Depends-on): Likewise.
58697         * modules/closeout (Depends-on): Likewise.
58698         * modules/cycle-check (Depends-on): Likewise.
58699         * modules/dirname (Depends-on): Likewise.
58700         * modules/fnmatch (Depends-on): Likewise.
58701         * modules/fsusage (Depends-on): Likewise.
58702         * modules/fwriteerror (Depends-on): Likewise.
58703         * modules/getcwd (Depends-on): Likewise.
58704         * modules/getloadavg (Depends-on): Likewise.
58705         * modules/hard-locale (Depends-on): Likewise.
58706         * modules/makepath (Depends-on): Likewise.
58707         * modules/mountlist (Depends-on): Likewise.
58708         * modules/nanosleep (Depends-on): Likewise.
58709         * modules/posixtm (Depends-on): Likewise.
58710         * modules/quotearg (Depends-on): Likewise.
58711         * modules/readtokens (Depends-on): Likewise.
58712         * modules/readtokens0 (Depends-on): Likewise.
58713         * modules/readutmp (Depends-on): Likewise.
58714         * modules/save-cwd (Depends-on): Likewise.
58715         * modules/strftime (Depends-on): Likewise.
58716         * modules/userspec (Depends-on): Likewise.
58717         * modules/utimecmp (Depends-on): Likewise.
58718         * modules/xgetcwd (Depends-on): Likewise.
58719         * modules/xnanosleep (Depends-on): Likewise.
58720         * modules/xstrtod (Depends-on): Likewise.
58721         * modules/yesno (Depends-on): Likewise.
58722
58723 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
58724
58725         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
58726         needless checks.
58727
58728 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58729
58730         Merge from coreutils.  Among other things,
58731         add bulletproofing for cases where stdin, stdout, or stderr are closed.
58732         * lib/fd-safer.c: New file.
58733         * lib/fcntl-safer.h, open-safer.c: Remove.
58734         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
58735         * lib/dup-safer.c: Include unistd-safer.h first.
58736         Don't include errno.h.
58737         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
58738         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
58739         * lib/file-type.c: Rely on file-type.h change.
58740         * lib/getloadavg.c: Include unistd-safer.h.
58741         (getloadavg): Use safer open.
58742         * lib/getusershell.c: Include "stdio-safer.h".
58743         (getusershell): Use safer fopen.
58744         * lib/long-options.c (long_options): Use NULL rather than 0.
58745         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
58746         'free'.
58747         * lib/modechange.c: Likewise.
58748         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
58749         (MODE_DONE): New constant.
58750         (struct mode_change): Remove 'next' member.
58751         (make_node_op_equals): New function; like the old one of the
58752         same name, except it allocates an array.
58753         (mode_compile, mode_create_from_ref): Use it.
58754         (mode_compile): Allocate result as an array, not a linked list.
58755         Parse octal string ourself, so that we catch mistakes like "+0".
58756         (mode_adjust): Arg is an array, not a linked list.
58757         * lib/modechange.c: Include stat-macros.h, xalloc.h.
58758         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
58759         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
58760         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
58761         Remove.  This is now stat-macros.h's job.
58762         (talloc): Remove.  All callers replaced by xalloc, so that
58763         our invokers don't have to worry about reporting memory failures.
58764         (make_node_op_equals): Remove.
58765         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58766         New constants.
58767         (struct mode_change): Moved here from modechange.h.
58768         (mode_append_entry): Remove.
58769         (mode_compile): Remove MASKED_OPS arg, since it encouraged
58770         apps to have incorrect behavior.  Use simpler algorithm for head
58771         and tail.  Don't futz with umask; that's now the job of mode_adjust.
58772         Detect more invalid usages rather than having somewhat-random behavior.
58773         Don't insert an "a=" action, as that leads to incorrect behavior.
58774         (mode_compile, mode_create_from_ref): Return NULL on error instead
58775         of an enum, since now there's only one way to have an error.  All
58776         callers changed.
58777         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
58778         at the correct time.  Simplify calculation of "+u" and its ilk.
58779         Don't mishandle "+X".
58780         (mode_free): Remove "register" and localize decls.
58781         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58782         (struct mode_change): Move to modechange.c; callers don't
58783         need to see this stuff.
58784         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
58785         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
58786         (mode_change, mode_adjust): Reflect the new signatures noted above.
58787         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
58788         that might redefine system include files.
58789         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
58790         (my_usleep): Use NULL rather than (void *) 0.
58791         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
58792         Use siginterrupt to specify that system calls should be interrupted.
58793         (rpl_nanosleep): Move initialization of suspended closer to call of
58794         my_usleep.
58795         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
58796         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
58797         (desirable_utmp_entry): New function.
58798         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
58799         using x2nrealloc, to simplify logic.
58800         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
58801         size calculation.  Do not assume utmp file is a regular file.
58802         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
58803         (READ_UTMP_CHECK_PIDS): New constant.
58804         * lib/save-cwd.c: Include unistd-safer.h.
58805         (save_cwd): Use fd_safer.
58806         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
58807         [!_LIBC] Include "stat-macros.h" instead.
58808         * lib/unistd-safer.h (fd_safer): New decl.
58809
58810 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58811
58812         * modules/getloadavg (Depends-on): Add unistd-safer.
58813         * modules/getusershell (Depends-on): Add stdio-safer.
58814         * modules/lstat (Depends-on): Remove xalloc.
58815         * modules/mkstemp (Depends-on): Add stat-macros.
58816         * modules/modechange (Depends-on): Remove xstrtol.
58817         Add stat-macros, xalloc.
58818         * modules/save-cwd (Depends-on): Add unistd-safer.
58819         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
58820         * modules/unistd-safer (Files): Add lib/fd-safer.c
58821         (Makefile.am): Remove lib_SOURCES.
58822
58823         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
58824         Remove fcntl-safer; unistd-safer supersedes it.
58825
58826 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58827
58828         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
58829         AC_HEADER_STAT.
58830         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
58831         (gl_PREREQ_CHOWN): Remove.
58832         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
58833         it.  Don't require AC_HEADER_STAT.
58834         (gl_PREREQ_LSTAT): Remove.
58835         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
58836         Don't require AC_HEADER_STAT.
58837         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
58838         (gl_PREREQ_RMDIR): Remove.
58839         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
58840         mention stat-macros.h or AC_HEADER_STAT, since we'll make
58841         the stat-macros module a prerequisite.
58842         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
58843         * m4/filemode.m4 (gl_FILEMODE): Likewise.
58844         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
58845         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
58846         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
58847         variable names.
58848         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
58849         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
58850         variable prefixes.
58851         * m4/fcntl-safer.m4: Remove.
58852         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
58853         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
58854         Invoke gl_PREREQ_FD_SAFER.
58855         (gl_PREREQ_FD_SAFER): New macro.
58856         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
58857         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
58858         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
58859         Remove duplicate call to AC_LIBOBJ(readutmp).
58860         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
58861
58862         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
58863         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
58864
58865 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58866
58867         * MODULES.html.sh (Misc): Add byteswap.
58868
58869 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58870
58871         * modules/getcwd (Depends-on): Add extensions.
58872         * modules/openat (Depends-on): Likewise.
58873
58874 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58875
58876         * modules/byteswap: New file.
58877
58878 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58879
58880         * m4/byteswap.m4: New file.
58881
58882 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58883
58884         * lib/byteswap_.h: New file.
58885
58886 2005-04-25  Karl Berry  <karl@gnu.org>
58887
58888         * m4/gettext.m4: Update from GNU gettext 0.14.4.
58889
58890 2005-04-25  Albert Chin  <china@thewrittenword.com>
58891
58892         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
58893         Toolkit C bug.
58894
58895 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
58896
58897         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
58898         (func_ln_if_changed) Remove forcibly for no error message
58899         in case file does not exist.
58900
58901 2005-04-19  Simon Josefsson  <jas@extundo.com>
58902
58903         * gnulib-tool (Options): Make --symlink mean --symbolic.
58904
58905 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
58906
58907         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
58908
58909 2005-04-16  Simon Josefsson  <jas@extundo.com>
58910
58911         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
58912
58913 2005-04-15  Simon Josefsson  <jas@extundo.com>
58914
58915         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
58916
58917 2005-04-15  Simon Josefsson  <jas@extundo.com>
58918
58919         * gnulib-tool: Rename --symlink to --symbolic.
58920
58921 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
58922
58923         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
58924         symbolic links to files instead of copying/moving.  Add --aux-dir,
58925         specifying directory relative --dir where auxiliary build tools
58926         are placed.
58927
58928 2005-04-14  Bruno Haible  <bruno@clisp.org>
58929
58930         * modules/allocsa (License): Change to LGPL.
58931         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58932
58933 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58934
58935         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
58936         that "UTC +1 second" continues to work.  Problem reported
58937         by Dmitry V. Levin.
58938         (relunit_snumber): New rule.
58939         (relunit): Use it.
58940
58941 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         * lib/getdate.y (universal_time_zone_table): New constant.
58944         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
58945         universal_time_zone_table.
58946         (lookup_zone): Prefer universal_time_zone_table to
58947         local_time_zone_table, so that "GMT" time stamps are allowed in
58948         London during the summer.  Problem reported by Ian Abbott.
58949
58950 2005-04-12  Jim Meyering  <jim@meyering.net>
58951
58952         * lib/human.c (humblock): Set *options even when returning due to
58953         xstrtoumax conversion failure.  Thanks to a used-uninitialized
58954         warning from gcc-4.
58955
58956 2005-04-09  Jim Meyering  <jim@meyering.net>
58957
58958         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
58959         -Wuninitialized: initialize tm0.tm_year.
58960
58961 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58962
58963         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
58964         count, since there's no maximum.  All uses changed.
58965         Add member dsts_seen.
58966         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
58967         not being INT_MAX.
58968         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
58969         Use pc_rels_seen to decide whther a date is absolute.
58970
58971         * lib/getdate.y (number): Don't overwrite year.
58972         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
58973         check.
58974
58975 2005-04-02  Simon Josefsson  <jas@extundo.com>
58976
58977         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
58978         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
58979
58980 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
58981
58982         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
58983         where no absolute path name can be longer than PATH_MAX.
58984
58985 2005-03-27  Jim Meyering  <jim@meyering.net>
58986
58987         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
58988
58989 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
58990
58991         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
58992         "one's complement" -> "ones' complement" in comment, as per Knuth.
58993         "value of type" -> "type or expression" in comment.
58994         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
58995
58996 2005-03-26  Jim Meyering  <jim@meyering.net>
58997
58998         Comment nits.
58999         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59000         Correct typos: s/or/of/.
59001
59002 2005-03-26  Jim Meyering  <jim@meyering.net>
59003
59004         * modules/check-include-files: Move to ../ and rename to...
59005         * check-module: ...this.
59006
59007 2005-03-25  Jim Meyering  <jim@meyering.net>
59008
59009         * modules/xvasprintf (Files): Add xalloc.h.
59010
59011 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59012
59013         * modules/gettext (Files): config/config.rpath ->
59014         build-aux/config.rpath
59015         * modules/iconv (Files): Likewise.
59016         Problem reported by Oskar Liljeblad.
59017
59018 2005-03-23  Jim Meyering  <jim@meyering.net>
59019
59020         * modules/check-include-files: New script to check for
59021         missing dependencies, multiple includes, etc.
59022
59023         * modules/c-strtold (Depends-on): Add xalloc.
59024         * modules/c-strtod (Depends-on): Add xalloc.
59025         * modules/hash (Depends-on): Add xalloc.
59026         (Files): Remove lib/xalloc.h.
59027
59028         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59029         * modules/userspec (Files): Add lib/inttostr.h.
59030
59031 2005-03-23  Jim Meyering  <jim@meyering.net>
59032
59033         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59034
59035 2005-03-22  Jim Meyering  <jim@meyering.net>
59036
59037         * modules/stat-macros: New module.
59038         * modules/canonicalize, modules/euidaccess, modules/file-type,
59039         * modules/filemode, modules/lchown, modules/makepath,
59040         * modules/rmdir, modules/stat: Depend on new stat-macros module
59041         rather than listing lib/stat-macros.h manually.
59042         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59043
59044 2005-03-22  Jim Meyering  <jim@meyering.net>
59045
59046         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59047
59048 2005-03-22  Bruno Haible  <bruno@clisp.org>
59049
59050         * config/srclist.txt: Replace target directory 'config' with
59051         'build-aux'.
59052         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59053         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59054         ../build-aux/.
59055
59056 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59057
59058         * modules/chdir-long (Depends-on): Add mempcpy.
59059
59060         * modules/acl, modules/backupfile, modules/c-strtod,
59061         modules/c-strtold, modules/canon-host, modules/canonicalize,
59062         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59063         modules/exclude, modules/exitfail, modules/file-type,
59064         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59065         modules/getdate, modules/getline, modules/getpagesize,
59066         modules/getpass, modules/getugroups, modules/group-member,
59067         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59068         modules/inttostr, modules/long-options, modules/makepath,
59069         modules/md5, modules/memcasecmp, modules/memcoll,
59070         modules/modechange, modules/mountlist, modules/path-concat,
59071         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59072         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59073         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59074         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59075         modules/strftime, modules/strndup, modules/strverscmp,
59076         modules/timespec, modules/unlocked-io, modules/userspec,
59077         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59078         modules/yesno:
59079         Remove lib_SOURCES line from Makefile.am section, as this is now
59080         done automatically by the corresponding Autoconf macro.
59081
59082 2005-03-21  Jim Meyering  <jim@meyering.net>
59083
59084         Changes imported from coreutils.
59085
59086         * lib/cycle-check.c: Don't include xalloc.h.
59087
59088         * lib/path-concat.c: Don't include assert.h.
59089         (path_concat): Remove assertion that would have triggered
59090         for ABASE starting with more than one slash.
59091         Reported by Andreas Schwab.
59092
59093         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59094         properly when ABASE is an absolute file name.
59095         Correct the description of this function.
59096         Include <assert.h>.
59097         Add an assertion and a test driver.
59098         This fixes a bug introduced on 2004-07-02.
59099         Andreas Schwab reported the resulting failure of cp --parents:
59100         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59101
59102 2005-03-21  Jim Meyering  <jim@meyering.net>
59103
59104         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59105         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59106
59107 2005-03-21  Jim Meyering  <jim@meyering.net>
59108         and  Paul Eggert  <eggert@cs.ucla.edu>
59109
59110         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59111         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59112         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59113         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59114         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59115         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59116         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59117         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59118         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59119         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59120         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59121         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59122         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59123         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59124         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59125         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59126         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59127         for these modules.
59128
59129 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59130
59131         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59132         (which shouldn't happen), generate nothing instead of returning 0
59133         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59134
59135 2005-03-16  Bruno Haible  <bruno@clisp.org>
59136
59137         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59138         HAVE_LONGLONG_64BIT.
59139
59140 2005-03-16  Bruno Haible  <bruno@clisp.org>
59141
59142         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59143         HAVE_LONGLONG_64BIT.
59144
59145 2005-03-16  Bruno Haible  <bruno@clisp.org>
59146
59147         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59148         HAVE_LONGLONG_64BIT.
59149
59150 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59151
59152         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59153         reliably distinguish strftime failure from empty output on POSIX
59154         hosts.
59155
59156 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59157
59158         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59159         (iconv_string): Don't guess a size-zero buffer, as that might cause
59160         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59161         result would be 'too large', where 'too large' is (heuristically)
59162         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59163         overflow concerns.  This will prevent some unwanted malloc failures
59164         when the inputs are very large.
59165
59166 2005-03-15  Karl Berry  <karl@gnu.org>
59167
59168         * config/srclist.txt (config.rpath): from gettext.
59169         * config/config.rpath: update.
59170
59171 2005-03-15  Bruno Haible  <bruno@clisp.org>
59172
59173         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59174         to 'negate'.
59175
59176         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59177         variable.
59178
59179         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59180         results.
59181
59182 2005-03-14  Simon Josefsson  <jas@extundo.com>
59183
59184         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59185         <fx@gnu.org>.
59186
59187 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59188
59189         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59190         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59191         intprops.h.
59192         * lib/strtol.c: Likewise.
59193
59194 2005-03-14  Jim Meyering  <jim@meyering.net>
59195
59196         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59197         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59198         to be nonzero so that we (and caller) can detect the difference
59199         between a valid zero-length expansion and an error return, even
59200         when the underlying strftime fails before writing anything into
59201         that location.
59202
59203 2005-03-14  Bruno Haible  <bruno@clisp.org>
59204
59205         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59206         Update from GNU gettext 0.14.3.
59207
59208 2005-03-10  Jim Meyering  <jim@meyering.net>
59209
59210         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59211
59212 2005-03-10  Jim Meyering  <jim@meyering.net>
59213
59214         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59215         so that this module works on systems without fchdir.
59216
59217 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59218
59219         Factor int-properties macros into a single file, except for
59220         glibc-related files.
59221         * lib/intprops.h: New file.
59222         * lib/getloadavg.c: Include it instead of limits.h.
59223         (INT_STRLEN_BOUND): Remove.
59224         * lib/human.c: Include intprops.h.
59225         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59226         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59227         302/1000.
59228         * lib/inttostr.h: Include intprops.h instead of limits.h.
59229         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59230         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59231         for consistency with intprops.h.
59232         (time_t_is_integer, twos_complement_arithmetic): Use them.
59233         * lib/sig2str.h: Include <signal.h>, intprops.h.
59234         (INT_STRLEN_BOUND): Remove.
59235         * lib/strftime.c (TYPE_SIGNED): Remove.
59236         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59237         * lib/strtol.c: Adjust comments to match intprops.h.
59238         * lib/userspec.c: Include intprops.h.
59239         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59240         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59241         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59242         instead of rolling our own expressions.
59243         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59244
59245         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
59246         instead of int.
59247         (my_strftime): Do not mishandle years close to INT_MAX, by doing
59248         the right thing even if adding 1900 would overflow.  Similarly
59249         for tm_mon + 1 and tm_yday + 1.
59250         Make %Y always equivalent to %C%y, and similarly for %G and %g.
59251         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
59252         (DO_SIGNED_NUMBER): New macro.
59253         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
59254
59255 2005-03-07  Bruno Haible  <bruno@clisp.org>
59256
59257         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
59258
59259 2005-03-07  Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
59262
59263 2005-03-04  Derek R. Price  <derek@ximbiot.com>
59264
59265         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
59266         (func_import): Only replace files via --import when they have actually
59267         changed.
59268
59269 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59270
59271         * m4/mmap-anon.m4: New file.
59272         * m4/pagealign_alloc.m4: New file.
59273
59274 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59275             Bruno Haible  <bruno@clisp.org>
59276
59277         * modules/pagealign_alloc: New file.
59278         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
59279
59280 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59281             Bruno Haible  <bruno@clisp.org>
59282
59283         * lib/pagealign_alloc.h: New file.
59284         * lib/pagealign_alloc.c: New file.
59285
59286 2005-03-03  Bruno Haible  <bruno@clisp.org>
59287
59288         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59289         Use an all-permissive copyright notice, recommended by RMS.
59290
59291 2005-03-02  Bruno Haible  <bruno@clisp.org>
59292
59293         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59294         of AIX, the replacement has to be done only after <string.h> is
59295         included, therefore not in config.h. stpncpy.h does the replacement,
59296         and stpncpy.c uses it.
59297
59298 2005-03-02  Bruno Haible  <bruno@clisp.org>
59299
59300         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59301         stpncpy.c uses it.
59302
59303 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59304
59305         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59306         The workaround isn't strictly needed for POSIX conformance, and
59307         it's too much of a pain to configure and maintain.  We'll ask
59308         people to fix their kernels instead.
59309         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59310         (NANOSLEEP_BUG_WORKAROUND): Remove.
59311         (xnanosleep): Remove the workaround.
59312
59313 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59314
59315         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59316         Reported by Derek Price.
59317         (Include): Add "timespec.h".
59318
59319         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59320
59321 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59322
59323         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59324         to detect nanosleep bug.
59325
59326 2005-03-01  Bruno Haible  <bruno@clisp.org>
59327
59328         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59329
59330 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59331
59332         * modules/gethrxtime: New file.
59333         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59334         (Depends-on): Add gethrxtime.
59335         (configure.ac): Add gl_XNANOSLEEP.
59336         (Makefile.am): Remove lib_SOURCES line.
59337
59338 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59339
59340         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59341         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59342
59343 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59344
59345         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59346         * lib/timespec.h (gettime): Return void, since it always
59347         succeeds now.  All uses changed.
59348         * lib/gettime.c (gettime) Likewise.
59349         [HAVE_NANOTIME]: Prefer nanotime.
59350         Assume gettimeofday succeeds, as POSIX requires.
59351         Assime time () succeeds, since other code already does.
59352         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59353         (timespec_subtract): Remove.
59354         (NANOSLEEP_BUG_WORKAROUND): New constant.
59355         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59356         things considerably.  Use it only on GNU/Linux hosts, since the
59357         workaround shouldn't be needed elsewhere.
59358
59359 2005-02-24  Bruno Haible  <bruno@clisp.org>
59360
59361         * modules/gettext (Files): Add m4/glibc2.m4.
59362
59363 2005-02-24  Bruno Haible  <bruno@clisp.org>
59364
59365         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59366         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59367         * m4/progtest.m4:
59368         Update from GNU gettext 0.14.2.
59369         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59370
59371 2005-02-24  Bruno Haible  <bruno@clisp.org>
59372
59373         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59374         * lib/config.charset: Update from GNU gettext 0.14.2.
59375
59376 2005-02-24  Bruno Haible  <bruno@clisp.org>
59377
59378         * lib/gettext.h: Update from GNU gettext 0.14.2.
59379
59380 2005-02-23  Simon Josefsson  <jas@extundo.com>
59381
59382         * m4/iconvme.m4: New file.
59383
59384 2005-02-23  Jim Meyering  <jim@meyering.net>
59385
59386         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59387         change.
59388         Thanks to Bruno Haible for catching it.
59389
59390 2005-02-22  Simon Josefsson  <jas@extundo.com>
59391
59392         * modules/iconvme: New file.
59393
59394         * MODULES.html.sh: Add iconvme.
59395
59396 2005-02-22  Simon Josefsson  <jas@extundo.com>
59397
59398         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59399
59400 2005-02-22  Simon Josefsson  <jas@extundo.com>
59401
59402         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59403
59404 2005-02-22  Jim Meyering  <jim@meyering.net>
59405
59406         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59407         s/ifndef/ifdef/.
59408
59409 2005-02-20  Neil Conway  <neilc@samurai.com>
59410
59411         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59412         returned by OSX/Darwin if the specified buffer is not large
59413         enough for the hostname.
59414
59415 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59416
59417         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
59418         pass it to _help, otherwise the latter coredumps trying to
59419         dereference state.root_argp.
59420
59421 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59422
59423         * modules/chdir-long (Depends-on): Add memrchr.
59424         * modules/memrchr (Files): Add lib/memrchr.h.
59425         (Include): "memrchr.h".
59426
59427 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59428
59429         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
59430
59431 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59432
59433         * lib/memrchr.h: New file.
59434         * lib/chdir-long.c: Include it.
59435         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
59436         Don't bother including stddef.h.
59437
59438 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59439
59440         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
59441         inclusion.
59442         Include <sys/types.h>, for dev_t.
59443         (ME_DUMMY, ME_REMOTE): Move from here....
59444         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
59445         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
59446         Dmitry V. Levin.
59447         Include mountlist.h first, to test the interface.
59448
59449 2005-01-29  Bruno Haible  <bruno@clisp.org>
59450
59451         * lib/progname.c (program_name): Initialize.
59452         Needed when linking statically on MacOS X.
59453
59454 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59455
59456         Sync from coreutils.
59457         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
59458         (Depends-on): Add c-strtod.
59459         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
59460
59461 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59462
59463         Sync from coreutils.
59464         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
59465
59466         Remove files that are specific to coreutils.
59467         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
59468
59469 2005-01-28  Bruno Haible  <bruno@clisp.org>
59470
59471         * modules/javacomp: New file.
59472         * MODULES.html.sh (Java): Add javacomp.
59473
59474 2005-01-28  Bruno Haible  <bruno@clisp.org>
59475
59476         * m4/javacomp.m4: New file, from GNU gettext.
59477
59478 2005-01-28  Bruno Haible  <bruno@clisp.org>
59479
59480         * lib/javacomp.sh.in: New file, from GNU gettext.
59481         * lib/javacomp.h: New file, from GNU gettext.
59482         * lib/javacomp.c: New file, from GNU gettext.
59483
59484 2005-01-26  Simon Josefsson  <jas@extundo.com>
59485
59486         * lib/gai_strerror.c: Use GPL in header.
59487
59488 2005-01-26  Bruno Haible  <bruno@clisp.org>
59489
59490         * modules/javaexec: New file.
59491         * MODULES.html.sh (Java): Add javaexec.
59492
59493 2005-01-26  Bruno Haible  <bruno@clisp.org>
59494
59495         * m4/javaexec.m4: New file, from GNU gettext.
59496
59497 2005-01-26  Bruno Haible  <bruno@clisp.org>
59498
59499         * lib/javaexec.sh.in: New file, from GNU gettext.
59500         * lib/javaexec.h: New file, from GNU gettext.
59501         * lib/javaexec.c: New file, from GNU gettext.
59502
59503 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59504
59505         * modules/lchown (Depends-on): Remove lchown.h
59506
59507 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59508
59509         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
59510         must be defined if the header file was not found, in order
59511         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
59512
59513 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59514
59515         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
59516         initializers for struct pentry_state.
59517         (__argp_error): Check return value of __asprintf
59518         (__argp_failure): Translate error message
59519
59520         * lib/argp-parse.c: Removed braces around the expansion of N_()
59521
59522 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59523
59524         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
59525         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
59526         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
59527         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
59528         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
59529         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
59530         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
59531         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
59532         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
59533         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
59534         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
59535         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
59536         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
59537         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
59538         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
59539         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
59540         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
59541         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
59542         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
59543         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
59544         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
59545         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
59546         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
59547         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
59548         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
59549         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
59550         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
59551         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
59552         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
59553         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
59554         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
59555         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
59556         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
59557         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
59558         xstrtol.m4, xstrtoumax.m4, yesno.m4:
59559         Use an all-permissive copyright notice, recommended by RMS.
59560
59561 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59562
59563         * modules/chdir-long (Depends-on): Remove mempcpy.
59564
59565 2005-01-21  Jim Meyering  <jim@meyering.net>
59566
59567         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
59568         same value as for Solaris 9.
59569
59570         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
59571         component length.  This included changing the parameter to be
59572         of type `char *' rather than `char const *'.
59573         * lib/chdir-long.h (chdir_long): Update prototype.
59574
59575         * lib/openat.c (fdopendir, fstatat): New functions.
59576         * lib/openat.h: Include headers required for use of DIR and struct
59577         stat.
59578         [AT_SYMLINK_NOFOLLOW]: Define.
59579         (fdopendir, fstatat): Add prototypes.
59580
59581 2005-01-21  Bruno Haible  <bruno@clisp.org>
59582
59583         * modules/classpath: New file.
59584         * MODULES.html.sh (Java): Add classpath.
59585
59586 2005-01-21  Bruno Haible  <bruno@clisp.org>
59587
59588         * lib/classpath.h: New file, from GNU gettext.
59589         * lib/classpath.c: New file, from GNU gettext.
59590
59591 2005-01-20  Simon Josefsson  <jas@extundo.com>
59592
59593         * modules/version-etc-fsf: New file.
59594
59595 2005-01-20  Simon Josefsson  <jas@extundo.com>
59596
59597         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
59598         * lib/version-etc.c: Remove version_etc_copyright.
59599         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
59600         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
59601
59602 2005-01-20  Simon Josefsson  <jas@extundo.com>
59603
59604         * lib/base64.h (isbase64): Add.
59605
59606         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
59607         using a unsigned prototype, don't inline.
59608         (base64_decode): Use it.
59609
59610 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59611
59612         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
59613         it.
59614
59615 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59616
59617         * lib/save-cwd.c (save_cwd): Remove code to support the case
59618         where fchdir is missing or flaky.
59619
59620 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
59623
59624 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59625
59626         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
59627         AC_LIBSOURCES now does this.
59628         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
59629         with new ullong_max module.
59630
59631 2005-01-19  Bruno Haible  <bruno@clisp.org>
59632
59633         * modules/sh-quote: New file.
59634         * MODULES.html.sh (Executing programs): Add sh-quote.
59635
59636 2005-01-19  Bruno Haible  <bruno@clisp.org>
59637
59638         * lib/sh-quote.h: New file, from GNU gettext.
59639         * lib/sh-quote.c: New file, from GNU gettext.
59640
59641 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59642
59643         Merge from coreutils.
59644         * m4/ullong_max.m4: New file.
59645         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
59646         (gl_MACROS): Assume localeconv exists.
59647
59648 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59649
59650         Merge changes from coreutils, as described below in several
59651         changelogs dated today.
59652
59653         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
59654         (O_DIRECTORY): Remove; not needed here, since "." must be
59655         a directory.  All uses removed.
59656         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
59657         universal on Suns, and we also need to test for IRIX.
59658         Revamp code to use 'if' rather than '#if'.
59659         Avoid unnecessary comparison of cwd->desc to 0.
59660
59661         * lib/utimens.c (futimens): Robustify the previous patch, by checking
59662         for known valid error numbers rather than observed invalid ones.
59663
59664 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         * modules/ullong_max: New file.
59667
59668         * modules/chdir-long, modules/openat: New files.
59669         * modules/save-cwd (Depends-on): Depend on chdir-long.
59670         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
59671
59672 2005-01-18  Jim Meyering  <jim@meyering.net>
59673
59674         Merge from coreutils.
59675         * m4/chdir-long.m4, m4/openat.m4: New files.
59676         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
59677         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
59678         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
59679         is sane and DOES follow symlinks.  Besides, testing 20 different
59680         systems found no broken chown implementations.
59681         Prompted by a change in rsync's copy of this macro.
59682         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
59683
59684         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
59685
59686         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
59687         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
59688         NULL-means-set-to-current-time semantics.
59689         Remove temporary file immediately, rather than waiting
59690         for configure's at-exit trap code to do it.
59691
59692 2005-01-18  Jim Meyering  <jim@meyering.net>
59693
59694         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59695
59696         * lib/utimens.c (futimens): Account for the fact that futimes
59697         can also fail with errno == ENOSYS or errno == ENOENT.
59698         Patch from Dmitry V. Levin.
59699
59700         Change the name of the robust chdir function from chdir to chdir_long.
59701         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
59702         (restore_cwd): Use chdir_long, not chdir.
59703         * lib/chdir-long.c: Renamed from chdir.c.
59704         * lib/chdir-long.h: Renamed from chdir.h.
59705         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
59706         Hurd.
59707
59708 2005-01-18  Bruno Haible  <bruno@clisp.org>
59709
59710         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
59711         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
59712         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
59713         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
59714         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
59715         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
59716         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
59717         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
59718         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
59719         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
59720         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
59721         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
59722         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
59723         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
59724         Use an all-permissive copyright notice, recommended by RMS.
59725
59726 2005-01-18  Bob Proulx  <bob@proulx.com>
59727
59728         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
59729         simplify offsetof() macro construct to avoid compile failure with
59730         native HP-UX 11.0 ANSI C compiler.
59731
59732 2005-01-17  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
59735         redundant because stpncpy.m4 takes care of it.
59736
59737 2005-01-17  Bruno Haible  <bruno@clisp.org>
59738
59739         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
59740
59741 2005-01-17  Bruno Haible  <bruno@clisp.org>
59742
59743         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
59744         used.
59745
59746 2005-01-17  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/fwriteerror.h (fwriteerror): Change specification to include
59749         fclose.
59750         * lib/fwriteerror.c: Include <stdbool.h>.
59751         (fwriteerror): At the end, close the file stream. Record whether
59752         stdout was already closed.
59753
59754 2005-01-17  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/execute.c (environ): Declare if needed.
59757         * lib/pipe.c (environ): Likewise.
59758         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
59759
59760 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59761
59762         * modules/argp: Depend on vsnprintf
59763
59764 2005-01-10  Jim Meyering  <jim@meyering.net>
59765
59766         * modules/closeout (Depends-on): Add atexit.
59767
59768 2005-01-06  Bruno Haible  <bruno@clisp.org>
59769
59770         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
59771
59772 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59773
59774         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
59775         definitions to be after all include files, to avoid collisions.
59776         Problem reported by Bob Proulx.
59777
59778 2005-01-04  Jim Meyering  <jim@meyering.net>
59779
59780         Changes imported from coreutils.
59781         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
59782         as the mkstemp template, use a temporary directory and an
59783         8.3-friendly template to avoid trouble on systems like DJGPP.
59784         Reported by Juan M. Guerrero via Stepan Kasal.
59785         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
59786         close. Remove the temporary directory right away, rather than waiting
59787         for configure's at-exit trap code to do it.
59788         Suggestion from Stepan Kasal.
59789
59790 2005-01-01  Simon Josefsson  <jas@extundo.com>
59791
59792         * gnulib-tool: Print #include directives when --import'ing.
59793
59794 2004-12-28  Simon Josefsson  <jas@extundo.com>
59795
59796         * tests/test-base64.c: Include required header files.  Remove
59797         unused variables.
59798
59799 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59800
59801         * modules/error (Depends-on): Remove gettext.
59802
59803 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59804
59805         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
59806         not needed.  This removes a dependency on the gettext module.
59807         [defined _LIBC]: Do not include <libintl.h>; not needed.
59808
59809 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59810
59811         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
59812         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
59813
59814 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59815
59816         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
59817         HAVE_DECL_STRTOLD.
59818
59819 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59820
59821         * modules/getdate (Depends-on): Remove alloca-opt.
59822
59823 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59824
59825         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
59826
59827 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59828
59829         * lib/argp-parse.c: Include <stddef.h>.
59830         (alignof, alignto): New macros.
59831         (parser_init): Don't assume that void * is aligned sufficiently
59832         for struct option.
59833
59834         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
59835         need to extend the stack.
59836         (YYINITDEPTH): New macro, so that the initial stack isn't overly
59837         large.
59838
59839 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59840
59841         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
59842
59843 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59844
59845         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
59846         (2004-10-24) change.  Apparently this was a false alarm.
59847
59848         * modules/getdate: Depend on alloca-opt, not alloca.
59849
59850 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59851
59852         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
59853         Remove now-obsolete comment about AIX.
59854         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
59855         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
59856         (YYMAXDEPTH): New macro.
59857
59858 2004-12-18  Simon Josefsson  <jas@extundo.com>
59859
59860         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
59861
59862 2004-12-18  Bruno Haible  <bruno@clisp.org>
59863
59864         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
59865
59866 2004-12-18  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/fatal-signal.c (fatal_signals): Make non-const.
59869         (init_fatal_signals): New function.
59870         (uninstall_handlers, install_handlers): Ignore signals that were set to
59871         SIG_IGN.
59872         (at_fatal_signal): Call init_fatal_signals.
59873         (init_fatal_signal_set): Likewise. Ignore signals that were set to
59874         SIG_IGN.
59875         Reported by Paul Eggert.
59876
59877 2004-12-18  Bruno Haible  <bruno@clisp.org>
59878
59879         * doc/alloca.texi: New file.
59880         * doc/alloca-opt.texi: New file.
59881
59882 2004-12-17  Jim Meyering  <jim@meyering.net>
59883
59884         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
59885         Otherwise, install-sh could exit with improper exit status when
59886         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
59887
59888 2004-12-16  Simon Josefsson  <jas@extundo.com>
59889
59890         * tests/test-base64.c: Add license.
59891
59892 2004-12-15  Stepan Kasal  <address@hidden>
59893
59894         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
59895
59896 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
59897
59898         * modules/getcwd (Files): Add m4/d-ino.m4.
59899         Suggested by Mark D. Baushke.
59900
59901 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
59902
59903         * lib/getdate.y (textint): New member "negative".
59904         (time_zone_hhmm): New function.
59905         Expect 14 shift-reduce conflicts, not 13.
59906         (o_colon_minutes): New rule.
59907         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
59908         (yylex): Set the "negative" member of signed numbers.
59909
59910 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         * doc/getdate.texi (Time of day items, Time zone items):
59913         Describe new formats +00:00, UTC+00:00.
59914
59915 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59916
59917         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
59918         spurious "-l"s.  Problem reported by Stepan Kasal.
59919
59920 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
59921
59922         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
59923         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
59924
59925 2004-12-04  Simon Josefsson  <jas@extundo.com>
59926
59927         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
59928         Vandoorselaere <yoann@prelude-ids.org>.
59929
59930 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59931
59932         Changes imported from coreutils.
59933         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
59934         exist.
59935         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
59936
59937 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59938
59939         Changes imported from coreutils.
59940         * lib/hard-locale.c: Assume <locale.h> exists.
59941         Include "strdup.h".
59942         (GLIBC_VERSION): New macro.
59943         (hard_locale): Assume setlocale exists.
59944         Rewrite to avoid #ifdef.
59945         Use strdup rather than malloc + strcpy.
59946         * lib/human.c: Assume <locale.h> exists.
59947         (human_readable): Assume localeconv exists.
59948
59949 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59950
59951         * modules/hard-locale (Depends-on): Add strdup.
59952
59953 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59954
59955         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
59956         convert T2, not T.  (Imported from libc.)
59957
59958 2004-11-30  Simon Josefsson  <jas@extundo.com>
59959
59960         * modules/restrict (License): Change to LGPL.
59961
59962 2004-11-30  Simon Josefsson  <jas@extundo.com>
59963
59964         * m4/restrict.m4: Add copyright and copying conditions.
59965
59966 2004-11-30  Simon Josefsson  <jas@extundo.com>
59967
59968         * m4/base64.m4: New file.
59969
59970 2004-11-30  Simon Josefsson  <jas@extundo.com>
59971
59972         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
59973         base64.
59974
59975         * tests/test-base64.c: New file.
59976
59977         * modules/base64: New file.
59978
59979 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
59982         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
59983
59984         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
59985
59986 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
59987
59988         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
59989         (__getcwd.c): Don't restore errno; glibc doesn't.
59990         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
59991         first, falling back to our code only if its results look suspicious.
59992         Ensure that the resulting buffer is only as large as necessary.
59993
59994         * lib/readutmp.c: Include readutmp.h first.
59995         Include <errno.h>, since readutmp.h no longer does that.
59996         * lib/readutmp.h: Don't include <errno.h>,
59997         <sys/param.h>, <time.h>; not needed to establish interface.
59998         (errno): Remove decl.
59999         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60000         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60001         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60002
60003 2004-11-28  Simon Josefsson  <jas@extundo.com>
60004
60005         * lib/base64.h, base64.c: New file.
60006
60007 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60008
60009         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60010
60011 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60014         (Depends-on): Remove pathmax, same.  Add mempcpy.
60015         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60016         (Makefile.am): Append getcwd.h to lib_SOURCES.
60017         (Include): Add getcwd.h.
60018         (Maintainer): Change from Jim Meyering to "all, glibc",
60019         since getdate now uses intended-for-glibc code.
60020         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60021         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60022
60023 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60024
60025         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60026         HP's ANSI C compiler.
60027         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60028         Declaring int functions causes warnings on some modern systems and
60029         shouldn't be needed to compile on ancient ones.
60030         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60031         defined.
60032
60033         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60034         with the following changes.
60035         (__set_errno): Parenthesize properly.
60036         Include <stdbool.h>.
60037         (MIN, MAX, MATCHING_INO): New macros.
60038         (__getcwd): Define with prototype, not K&R form.
60039         Use heuristics to allocate default buffer on stack if possible.
60040         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60041         behavior, and to avoid the PATH_MAX limit when computing
60042         ../../../../...
60043         Use MATCHING_INO to compare inode number to file.
60044         Check for arithmetic overflow in size calculations.
60045         Fix bug in reallocation of dot array that caused getcwd to fail
60046         on directories nested deeper than 75.
60047         Be more careful about saving errno on error.
60048         Do not use realloc; use only free+malloc, as this is a bit
60049         more flexible and avoids a needless copy operation.
60050         Do not inspect st_dev and st_ino for symbolic links; POSIX
60051         doesn't specify the latter.
60052         Check for closedir errors.
60053         Avoid needless casts.
60054         Use "#ifdef weak_alias" around weak_alias, to be like other
60055         glibc code.
60056         The following changes to getcwd.c have effect only when used in
60057         gnulib; they have no effect inside glibc proper.
60058         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60059         as alloca isn't used.
60060         (alloca, __alloca): Likewise.
60061         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60062         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60063         unconditionally, as gnulib assumes C89 or better.
60064         Do not include <sys/param.h>.
60065         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60066         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60067         better.
60068         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60069         Include <dirent.h> in a way that is compatible with modern Autoconf.
60070         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60071         New macros, if not already defined.
60072         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60073         Use "_LIBC", not "defined _LIBC", for consistency.
60074         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60075         a mempcpy module.
60076         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60077         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60078         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60079         credit only to Jim Meyering and adjust the copyright dates.
60080         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60081         <stdlib.h>, <unistd.h>, "pathmax.h".
60082         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60083         (INITIAL_BUFFER_SIZE): Remove.
60084         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60085
60086 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60087
60088         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60089         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60090         Use the _ONCE methods, for efficiency.
60091         Check for fcntl.h.  In test program, include <errno.h>
60092         and <fcntl.h> if available.  Remove old K&R cruft from
60093         test program.  Check for common errors in GNU/Linux,
60094         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60095         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60096         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60097         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60098         name accordingly.
60099         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60100         accommodate new getcwd.c.
60101         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60102         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60103         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60104         that's all we need now.
60105
60106 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60107
60108         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60109         argp-parse.c depends on getopt internals, that means we should
60110         always use our getopt, to be on the safe side.
60111         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60112         order not to spoil the result of an eventual previous invocation
60113         of gl_GETOPT_SUBSTITUTE.
60114
60115 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60116
60117         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60118         redefinition warnings. To avoid them, include the defines
60119         in `#if !defined __need_getopt ... #endif'. The only place
60120         where __getopt_argv_const is used is in definitions
60121         of getopt_long and getopt_long_only below, which are as well
60122         protected by `#ifndef __need_getopt'.
60123         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60124         __need_getopt after including <stdio.h> and <unistd.h> These
60125         headers might have defined it.
60126
60127 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60128
60129         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60130
60131 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60132
60133         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60134         (futimens): New function, which uses futimes if available.
60135         (futimens, utimens): Support timespec==NULL, with same semantics
60136         as utime and utimens.
60137         * lib/utimens.h (futimens): New decl.
60138
60139 2004-11-23  Jim Meyering  <jim@meyering.net>
60140
60141         * lib/getopt_.h: Remove trailing blanks.
60142
60143 2004-11-23  Jim Meyering  <jim@meyering.net>
60144
60145         * lib/__fpending.c: Add comment.
60146
60147 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60148
60149         * modules/canonicalize (Depends-on): Add xreadlink.
60150         Problem reported by James Youngman.
60151
60152 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60153
60154         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60155         New macros.
60156         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60157         optopt): Use them instead of invoking ## directly; otherwise, the
60158         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60159
60160 2004-11-19  Bruno Haible  <bruno@clisp.org>
60161
60162         * lib/strtok_r.c: Move comments from here...
60163         * lib/strtok_r.h: ... to here.
60164
60165 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60166
60167         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60168         implementations that mishandle size_t overflow.
60169
60170 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60171
60172         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60173         might fail.  Problem reported by Yoann Vandoorselaere.
60174         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60175         implementations that mishandle size_t overflow.
60176
60177 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60178
60179         * modules/canon-host (Depends-on): Add strdup.
60180
60181 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60182
60183         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60184
60185 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60186
60187         * lib/canon-host.c: Include "strdup.h".
60188         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60189         Use strdup instead of malloc/strcpy to duplicate strings.
60190
60191         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60192         (human_space_before_unit): New constant.
60193         * lib/human.c (human_readable): Support it.
60194
60195         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60196         (xgetcwd): Set errno correctly when failing.
60197         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60198         the failure is actually due to a PATH_MAX problem.
60199
60200         Further getopt changes to make it more likely that glibc will
60201         buy the changes back.
60202         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60203         (getopt): Use it, so to preserve glibc semantic
60204         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60205         when compiling for libc.
60206         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60207         (getopt_long, getopt_long_only): Use it.
60208
60209         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60210         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60211         (getopt): Argv is now char * const *, as per standard.
60212         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60213         not char *__getopt_argv_const *.
60214         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60215         _getopt_long_only_r): Likewise.
60216         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60217         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60218         _getopt_long_r, _getopt_long_only_r): Likewise.
60219         * lib/getopt_.h (__getopt_argv_const): Remove.
60220         (getopt): Argv is now char * const *, as per standard.
60221
60222         * lib/getdate.y (tORDINAL): New token.
60223         (day, relunit): Allow it for relative times.
60224         (relative_time_table): Use tORDINAL for ordinals.
60225
60226 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60229         Document that "second" isn't allowed as an ordinal number.
60230
60231 2004-11-16  Jim Meyering  <jim@meyering.net>
60232
60233         * modules/closeout (Depends-on): Add fpending.
60234
60235 2004-11-15  Jim Meyering  <jim@meyering.net>
60236
60237         * lib/closeout.c: Include "__fpending.h" once again.
60238         Include <stdbool.h>.
60239         (close_stdout): Don't fail just because stdout was closed initially,
60240         since some programs don't write to stdout in the normal course of
60241         operation (other than --version and --help), and we don't want this
60242         function to make e.g. `touch file >&-' fail.
60243         But do fail if it was closed and someone has tried to write to it.
60244         E.g., `printf foo >&-' must fail.
60245
60246 2004-11-13  Jim Meyering  <jim@meyering.net>
60247
60248         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
60249
60250 2004-11-12  Simon Josefsson  <jas@extundo.com>
60251
60252         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
60253         small doc fix is still pending.
60254
60255 2004-11-11  Simon Josefsson  <jas@extundo.com>
60256
60257         * modules/strtok_r: New file.
60258
60259         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60260         strtok_r.
60261
60262 2004-11-11  Simon Josefsson  <jas@extundo.com>
60263
60264         * m4/strtok_r.m4: New file.
60265
60266         * m4/getopt.m4: Replace opterr.
60267
60268 2004-11-11  Simon Josefsson  <jas@extundo.com>
60269
60270         * lib/strtok_r.h, strtok_r.c: New file.
60271
60272 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60273
60274         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
60275         of replacing opterr, getopt, etc.  This should handle the
60276         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
60277
60278 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60279
60280         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
60281         we can stop lying to compilers about the constness of argv when we
60282         are compiled outside glibc.
60283         (getopt, getopt_long, getopt_long_only): Use it.
60284         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60285         _getopt_internal, getopt): Likewise.
60286         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60287         _getopt_long_only_r): Likewise.
60288         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60289         _getopt_long_r, _getopt_long_only_r): Likewise.
60290
60291         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60292         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60293         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60294         the other external symbols.
60295         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60296         declaration, since the above renaming now works around collisions.
60297
60298 2004-11-11  Jim Meyering  <jim@meyering.net>
60299
60300         * lib/linebreak.c: Remove trailing blanks.
60301         * lib/alloca_.h: Likewise.
60302         * lib/acosl.c: Likewise.
60303         * lib/euidaccess.c: Likewise.
60304         * lib/allocsa.h: Likewise.
60305
60306 2004-11-10  Simon Josefsson  <jas@extundo.com>
60307
60308         * m4/getaddrinfo.m4: New file.
60309
60310 2004-11-10  Simon Josefsson  <jas@extundo.com>
60311
60312         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60313
60314 2004-11-10  Simon Josefsson  <jas@extundo.com>
60315
60316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60317         getaddrinfo.
60318
60319         * modules/getaddrinfo: New file.
60320
60321 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60322
60323         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60324
60325 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60326
60327         * lib/mktime.c (SHR): New macro, which is a portable
60328         substitute for >> that should work even on Crays.
60329         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60330         Problem reported by Mark D. Baushke in
60331         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60332         * lib/getdate.y (SHR): Likewise.
60333         (tm_diff): Use it.
60334         * lib/strftime.c (SHR): Likewise.
60335         (tm_diff): Use it.
60336         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60337         quote_these_too, so that right shifts are well defined.  All uses
60338         changed.
60339
60340 2004-11-10  Jim Meyering  <jim@meyering.net>
60341
60342         Ensure that no close failure goes unreported.
60343         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60344         return early when it seems there's nothing to flush.
60345         Don't include __fpending.h.
60346
60347 2004-11-10  Jim Meyering  <jim@meyering.net>
60348
60349         * modules/closeout (Depends-on): Remove fpending.
60350
60351 2004-11-10  Jim Meyering  <jim@meyering.net>
60352
60353         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60354
60355 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60358         gl_FUNC_STRFTIME.
60359         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60360         and AC_REQUIRE when possible, to avoid duplicate checks.
60361         Check for <wchar.h>.
60362
60363 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60364
60365         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60366
60367 2004-11-09  Bruno Haible  <bruno@clisp.org>
60368
60369         * m4/sockpfaf.m4: New file.
60370
60371 2004-11-05  Bruno Haible  <bruno@clisp.org>
60372
60373         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60374         Reported by Mark D. Baushke <mdb@cvshome.org>.
60375
60376 2004-11-04  Bruno Haible  <bruno@clisp.org>
60377
60378         2004-09-11  Bruno Haible  <bruno@clisp.org>
60379                 * allocsa.valgrind: New file.
60380         2004-02-06  Bruno Haible  <bruno@clisp.org>
60381                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60382                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60383                 Reported by Christopher Seip <chris.seip@hp.com>.
60384
60385 2004-11-04  Bruno Haible  <bruno@clisp.org>
60386
60387         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60388         (Makefile.am): Distribute it.
60389
60390 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60393         with errno == ERANGE if the buffer is too small.
60394         Problem reported by Mark D. Baushke.
60395
60396 2004-11-03  Albert Chin  <china@thewrittenword.com>
60397             Paul Eggert  <eggert@cs.ucla.edu>
60398
60399         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60400         equivalent, substitute $ac_type for equivalent type rather than
60401         blindly using uint32_t *always* which won't work if uint32_t is not
60402         available.  Define _UINT32_T to work around typedef of uint32_t if
60403         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60404         2.5.1.
60405
60406 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60407
60408         * m4/jm-macros.m4: Sync from coreutils.
60409         (gl_MACROS): Check for mbrlen, for pathchk.
60410         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60411
60412 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60413
60414         * lib/xreadlink.c (MAXSIZE): New macro.
60415         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
60416         size does not exceed MAXSIZE.  Avoid cast.
60417         As suggested by Mark D. Baushke in
60418         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
60419         if readlink fails with buffer size just under MAXSIZE, try again
60420         with MAXSIZE.
60421
60422 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60423
60424         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
60425
60426 2004-11-02  Derek R. Price  <derek@ximbiot.com>
60427         and  Paul Eggert  <eggert@cs.ucla.edu>
60428
60429         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
60430         (get_date): Overparenthesize to avoid GCC warning.
60431
60432 2004-11-02  Bruno Haible  <bruno@clisp.org>
60433
60434         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
60435         returns void.
60436
60437 2004-11-02  Bruno Haible  <bruno@clisp.org>
60438
60439         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
60440         function returns void.
60441
60442 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60443
60444         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
60445         fflush_unlocked, flockfile, funlockfile, funlockfile,
60446         fputs_unlocked, putc_unlocked.
60447
60448 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60449
60450         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60451         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
60452         already declared.
60453
60454 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60455
60456         * modules/getdate (Files): Add doc/getdate.texi.
60457         (Depends-on): Add setenv, xalloc.
60458
60459 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60460
60461         * lib/getdate.y: Add support for TZ="foo" within a date string.
60462         Fix some bugs near time_t boundaries.  Reject dates with
60463         out-of-range components, e.g., "Sept 31".
60464         Include <stdlib.h>, "setenv.h", "xalloc.h".
60465         (ISDIGIT_LOCALE): Remove; unused.
60466         Note that the TZ and time functions used here are not reentrant.
60467         (mktime_ok, get_tz): New functions.
60468         (TZBUFSIZE): New constant.
60469         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
60470         This requires that we sometimes generate our own TZ="XXX..." setting.
60471
60472 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60473
60474         * doc/getdate.texi: New file, from coreutils with modifications for
60475         the new TZ parsing.
60476
60477 2004-10-27  Derek R. Price  <derek@ximbiot.com>
60478
60479         * lib/mktime.c (not_equal_tm): Remove redundant check.
60480
60481 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60482
60483         * modules/regex (lib_SOURCES): Add regex.c.
60484         Reported by James Youngman in
60485         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
60486
60487 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60488
60489         * lib/getdate.y: Use Bison 1.875 features, and some minor
60490         code cleanups.  This change does not affect semantics.
60491         Don't include <stdlib.h>; no longer needed.
60492         Don't include unlocked-io.h; only the "#if TEST" code uses
60493         stdio, and performance isn't crucial there.
60494         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
60495         Bison 1.875 features as described below.
60496         All uses of "PC." replaced by "pc->".
60497         (YYSTYPE): Add a forward declaration.
60498         (yylex, yyerror): Use full prototypes in forward decls.
60499         Use "%pure-parser" rather than obsolescent "%pure_parser".
60500         Use %parse-param and %lex-param instead of obsolescent
60501         YYPARSE_PARAM and YYLEX_PARAM.
60502         (meridian_table, month_and_day_table, time_units_table,
60503         relative_time_table, time_zone_table, military_table,
60504         lookup_zone, lookup_word, get_date):
60505         Use NULL instead of 0 where appropriate.
60506         (to_hour): Avoid abort (), to avoid a dependency on
60507         stdlib.h.
60508         (yyerror, yylex): Now accepts parser_control * arg.
60509         (main) [TEST]: Use '\0' rather than 0 for char.
60510
60511 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60512
60513         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
60514
60515 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60516
60517         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
60518         It's now the caller's responsibility to handle the case where
60519         !HAVE_GETPAGESIZE && !defined getpagesize.
60520
60521         * lib/mktime.c (leapyear): Arg is long int, not int.
60522
60523 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
60526
60527 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60528
60529         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
60530         missing.  Problem reported by James Youngman.
60531
60532 2004-10-16  Simon Josefsson  <jas@extundo.com>
60533
60534         * gnulib-tool: Fix comments.  Fix parse problem.
60535         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
60536
60537 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
60538
60539         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
60540         implementation of getopt_long.  Problem reported by Alexander Taler in:
60541         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
60542
60543 2004-10-15  Bruno Haible  <bruno@clisp.org>
60544
60545         * gnulib-tool: Untabify. Initialize supplied_libname.
60546         (func_usage): More homogenous output.
60547         (func_modules_transitive_closure, func_modules_to_filelist,
60548         func_emit_lib_Makefile_am): New functions.
60549         (func_import): New function, extracted from big case statement. Use
60550         func_get_license, func_modules_transitive_closure,
60551         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
60552         opt_lgpl. Don't use test -a, as it's not portable.
60553         (func_create_testdir): Use func_modules_transitive_closure,
60554         func_modules_to_filelist, func_emit_lib_Makefile_am.
60555
60556 2004-10-15  Bruno Haible  <bruno@clisp.org>
60557
60558         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
60559
60560 2004-10-15  Bruno Haible  <bruno@clisp.org>
60561
60562         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
60563         the portions belonging to each module.
60564         Suggested by Derek Robert Price <derek@ximbiot.com>.
60565
60566 2004-10-12  Simon Josefsson  <jas@extundo.com>
60567
60568         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60569         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
60570         to real functions.
60571
60572 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60573
60574         * modules/vsnprintf: New file.
60575
60576 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60577
60578         * m4/vsnprintf.m4: New file.
60579
60580 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60581
60582         * lib/vsnprintf.h: New file.
60583         * lib/vsnprintf.c: New file.
60584
60585 2004-10-11  Bruno Haible  <bruno@clisp.org>
60586
60587         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
60588         vsnprintf.
60589
60590 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60591
60592         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
60593
60594 2004-10-07  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
60597         fits into the provided buffer.
60598
60599 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60600
60601         * lib/diacrit.c, diacrit.h: Add GPL notice.
60602
60603         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
60604         notice.
60605         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
60606         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
60607         This avoids a potential constant-folding bug.
60608
60609 2004-10-05  Bruno Haible  <bruno@clisp.org>
60610
60611         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
60612         for the declaration of strsep.
60613
60614 2004-10-05  Bruno Haible  <bruno@clisp.org>
60615
60616         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
60617
60618 2004-10-04  Simon Josefsson  <jas@extundo.com>
60619
60620         * modules/memmem: New file.
60621         * tests/test-memmem.c: New file.
60622         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
60623
60624 2004-10-04  Simon Josefsson  <jas@extundo.com>
60625
60626         * m4/memmem.m4: New file.
60627
60628 2004-10-04  Simon Josefsson  <jas@extundo.com>
60629
60630         * lib/memmem.h: New file.
60631         * lib/memmem.c: New file, taken from glibc.
60632
60633 2004-10-04  Simon Josefsson  <jas@extundo.com>
60634
60635         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
60636         '#ifdef USE_UNLOCKED_IO'.
60637
60638 2004-10-04  Simon Josefsson  <jas@extundo.com>
60639
60640         * config/srclist.txt: Add memmem from glibc.
60641
60642 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60643
60644         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
60645
60646         * modules/argmatch, modules/argp, modules/closeout, modules/error,
60647         modules/exclude, modules/getdate, modules/getline,
60648         modules/getndelim2, modules/getpass, modules/getpass-gnu,
60649         modules/getusershell, modules/linebuffer, modules/md5,
60650         modules/mountlist, modules/posixtm, modules/readtokens,
60651         modules/readutmp, modules/regex, modules/sha1,
60652         modules/version-etc, modules/yesno:
60653         Remove dependency on unlocked-io.
60654
60655 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60656
60657         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
60658
60659         * m4/unlocked-io.m4: Add copyright notice.
60660         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
60661
60662 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60663
60664         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
60665         * lib/xmalloc.c (xmemdup): Likewise.
60666         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
60667         XFREE): Remove these long-obsolescent macros.
60668         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
60669         * lib/xstrdup.c: Remove.
60670
60671         * lib/regex.c (re_comp): Cast gettext return value to char *,
60672         Problem reported by Martin Neitzel via Mark D. Baushke.
60673
60674 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60675
60676         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
60677         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
60678         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
60679         regex.c, sha1.c, version-etc.c, yesno.c:
60680         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
60681         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
60682         the includer's responsibility.
60683
60684         Sync from coreutils.
60685
60686         * lib/modechange.c (mode_compile): Don't decrement a pointer that
60687         points to the start of a string, as the C Standard says the
60688         resulting behavior is undefined.
60689
60690         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
60691         simple -> simple_backups, numbered_existing ->
60692         numbered_existing_backups, numbered -> numbered_backups
60693         to avoid shadowing problems.  All uses changed.
60694         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
60695         * lib/backupfile.c (check_extension, numbered_backup):
60696         Rename locals to avoid shadowing 'basename'.
60697         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
60698         once.
60699
60700         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
60701         * lib/.cvsignore: Add getopt.h.
60702
60703 2004-10-04  Bruno Haible  <bruno@clisp.org>
60704
60705         * modules/README: New file.
60706         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
60707         not a module.
60708
60709 2004-10-02  Jim Meyering  <jim@meyering.net>
60710
60711         * lib/dirfd.h, getpagesize.h: Add copyright notice.
60712
60713 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60714
60715         * modules/strsep: New file.
60716
60717 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60718
60719         * m4/strsep.m4: New file.
60720
60721 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60722
60723         * lib/strsep.h: New file.
60724         * lib/strsep.c: New file.
60725
60726 2004-10-01  Simon Josefsson  <jas@extundo.com>
60727
60728         * lib/snprintf.c (snprintf): Handle size==0.
60729
60730 2004-10-01  Simon Josefsson  <jas@extundo.com>
60731             Bruno Haible  <bruno@clisp.org>
60732
60733         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
60734         (snprintf): Declare 'args'.
60735
60736 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
60737
60738         * lib/snprintf.c: Remove comments as to why each header is needed.
60739
60740 2004-10-01  Bruno Haible  <bruno@clisp.org>
60741
60742         * MODULES.html.sh: Add strsep.
60743
60744 2004-09-30  Simon Josefsson  <jas@extundo.com>
60745
60746         * modules/snprintf: New file.
60747
60748 2004-09-30  Simon Josefsson  <jas@extundo.com>
60749
60750         * m4/snprintf.m4: New file.
60751
60752 2004-09-30  Simon Josefsson  <jas@extundo.com>
60753
60754         * lib/snprintf.h, lib/snprintf.c: New files.
60755
60756 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60757
60758         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
60759         (hol_entry_help): Never translate an empty string.
60760         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
60761         * lib/argp.h (OPTION_NO_TRANS): New option.
60762
60763 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60764
60765         * modules/argp (Maintainer): Replace Simon Josefsson
60766         by Sergey Poznyakoff.
60767
60768 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60769
60770         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
60771         changes merged back into glibc.
60772
60773 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60774
60775         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
60776
60777 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60778
60779         * lib/xvasprintf.c: Include xalloc.h.
60780         (xvasprintf): Use xalloc_die, not xmalloc_die.
60781
60782 2004-09-29  Bruno Haible  <bruno@clisp.org>
60783
60784         * modules/alloca-opt: New file, derived from modules/alloca.
60785         * modules/allocsa: Depend on alloca-opt instead of alloca.
60786         * modules/setenv: Likewise.
60787         * modules/vasnprintf: Likewise.
60788         * MODULES.html.sh: Add alloca-opt.
60789
60790 2004-09-28  Simon Josefsson  <jas@extundo.com>
60791
60792         * gnulib-tool: New parameter --lgpl, to asseert that modules are
60793         LGPL, and to replace license template from GPL to LGPL.
60794
60795 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60796
60797         * modules/dummy: Change license to LGPL.
60798
60799 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60800
60801         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
60802
60803 2004-09-24  Simon Josefsson  <jas@extundo.com>
60804
60805         * modules/minmax (License): Change from GPL to LGPL.
60806
60807 2004-09-23  Simon Josefsson  <jas@extundo.com>
60808
60809         * gnulib-tool (--import): Typo.
60810
60811 2004-09-23  Simon Josefsson  <jas@extundo.com>
60812
60813         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
60814
60815 2004-09-22  Bruno Haible  <bruno@clisp.org>
60816
60817         * modules/*: Add 'License' field.
60818         * gnulib-tool: Accept --extract-license option.
60819         (func_get_license): New function.
60820
60821 2004-09-21  Bruno Haible  <bruno@clisp.org>
60822
60823         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
60824         Reported by Simon Josefsson.
60825
60826 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60827
60828         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
60829         gl_AC_TYPE_LONG_LONG.
60830
60831 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
60834
60835 2004-09-18  Simon Josefsson  <jas@extundo.com>
60836         and  Paul Eggert  <eggert@cs.ucla.edu>
60837
60838         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
60839         calls with autoreconf.  Define GL_LIB.
60840
60841 2004-09-14  Karl Berry  <karl@gnu.org>
60842
60843         * config/srclist.txt: unsync setenv.c, sigh.
60844
60845 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60846
60847         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
60848         Problem reported by Bruno Haible in:
60849         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
60850
60851 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60852
60853         * config/srclist.txt: Comment out argp-pvh.c.
60854
60855 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
60856
60857         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
60858         in case some system header has #define'd it.  Problem reported by
60859         Soeren D. Schulze in
60860         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
60861
60862 2004-09-09  Karl Berry  <karl@gnu.org>
60863
60864         * regex.[ch]: delete from the root.  These were supposed to be
60865                 synced with emacs cvs, but this has not happened for about
60866                 a year, and anyway nothing else uses emacs regex.[ch].
60867                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
60868                 lib/regex[.ch] is untouched.
60869
60870 2004-09-09  Bruno Haible  <bruno@clisp.org>
60871
60872         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
60873
60874 2004-09-09  Bruno Haible  <bruno@clisp.org>
60875
60876         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
60877         modifications.
60878         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
60879
60880 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60881
60882         * modules/xvasprintf: New file.
60883         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
60884
60885 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60886
60887         * lib/xvasprintf.h: New file.
60888         * lib/xvasprintf.c: New file.
60889         * lib/xasprintf.c: New file.
60890
60891 2004-09-08  Bruno Haible  <bruno@clisp.org>
60892
60893         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
60894
60895 2004-09-08  Bruno Haible  <bruno@clisp.org>
60896
60897         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
60898         length is > INT_MAX.
60899         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
60900         more.
60901
60902 2004-09-08  Bruno Haible  <bruno@clisp.org>
60903
60904         * lib/stdint_.h: New file, taken from GNU clisp.
60905
60906 2004-09-08  Bruno Haible  <bruno@clisp.org>
60907             Oskar Liljeblad  <oskar@osk.mine.nu>
60908
60909         * modules/stdint: New file.
60910         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
60911
60912 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60913
60914         Import from coreutils.
60915         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
60916         strings on unbounded length.  alloca's performance benefits aren't
60917         that important here.
60918         (V_STRDUP): Remove.
60919         (parse_with_separator): New function, with most of the internals
60920         of the old parse_user_spec.  Allow user to omit both user and group,
60921         for compatibility with FreeBSD.
60922         Clone only the user name, not the entire spec.
60923         Do not set *uid, *gid unless entirely successful.
60924         Avoid memory leak in some failing cases.
60925         Fix regression for USER.GROUP reported by Dmitry V. Levin in
60926         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
60927         (parse_user_spec): Rewrite to use parse_with_separator.
60928
60929 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60930
60931         * modules/userspec: Don't depend on alloca.
60932
60933 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60934
60935         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
60936
60937 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60938
60939         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
60940         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
60941         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
60942
60943 2004-08-16  Simon Josefsson  <jas@extundo.com>
60944
60945         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
60946         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
60947         Add --dry-run for --import.
60948         Let user provided command line parameters override configure.ac
60949         settings.
60950
60951 2004-08-12  Simon Josefsson  <jas@extundo.com>
60952
60953         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
60954         as discussed with Paul Eggert in threads rooted at
60955         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
60956         and
60957         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
60958         Before, the test was empty, and relied on ELIDE_CODE in source
60959         code.)
60960         (gl_PREREQ_GETOPT): New macro.
60961         (gl_GETOPT): Use them.
60962
60963 2004-08-12  Simon Josefsson  <jas@extundo.com>
60964
60965         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
60966         * lib/getopt_.h: Renamed from getopt.h.
60967
60968 2004-08-12  Simon Josefsson  <jas@extundo.com>
60969
60970         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
60971         Change default library name from libfoo to libgnu.
60972         Now, if you have a configure.ac that says:
60973                 gl_SOURCE_BASE(gl)
60974                 gl_M4_BASE(gl/m4)
60975                 gl_MODULES(error getopt etcetera)
60976                 gl_INIT
60977         you can import all you need by running:
60978                 ../gnulib/gnulib-tool --import
60979
60980         * modules/getopt (Files): Rename getopt.h to getopt_.h.
60981         (Makefile.am): Rewrite, use logic from argz.
60982         (Include): Use <getopt.h> instead of "getopt.h".
60983
60984 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60985
60986         * modules/argp (Files): Add m4/unlocked-io.m4.
60987         (Depends-on): Add extensions.
60988
60989 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60990
60991         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
60992         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
60993         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
60994         Check for program_invocation_name, program_invocation_short_name,
60995         flockfile, funlockfile, features.h, _getopt_long_only_r.
60996
60997 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60998
60999         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61000         its complicated substitute.
61001         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61002         and program_invocation_name.
61003         (__argp_basename) [!_LIBC]: Remove; the only use was
61004         replaced by its body.
61005         (__argp_short_program_name): Change condition from
61006         !defined __argp_short_program_name to
61007         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61008         to match argp-namefrob.h.
61009         (__argp_failure): Don't assume strerror_r returns char *.
61010         * lib/argp-parse.c (N_): Define unconditionally.
61011         (argp_default_options): Fill out initializers with 0 to avoid
61012         gcc warnings.
61013
61014 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61017         getopt1.c.
61018
61019 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61020
61021         Merge from coreutils.
61022
61023         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61024
61025         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61026         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61027
61028 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61029
61030         Merge from coreutils.
61031
61032         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61033         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61034         for Reliant Unix 5.43.
61035
61036         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61037         (union fooround): Use uintmax_t, not long int.
61038         The rest is a merge from libc:
61039         [defined _LIBC]: Include <shlib-compat.h>.
61040         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61041
61042         * lib/settime.c (settime): Recode to avoid warning with
61043         Sun Forte C 6U2.
61044
61045         * lib/strverscmp.c: Convert to UTF-8.
61046
61047 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61048
61049         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61050         m4/uintmax_t.m4.
61051
61052 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         * modules/xalloc-die: New file.
61055         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61056
61057         * modules/md5 (Files): Add m4/uint32_t.m4.
61058         * modules/sha1: Renamed from modules/sha.
61059         (Files):
61060         Rename lib/sha.h to lib/sha1.h.
61061         Rename lib/sha.c to lib/sha1.c.
61062         Rename m4/sha.m4 to m4/sha1.m4.
61063         (lib_SOURCES): Likewise.
61064         (configure.ac): Rename gl_SHA to gl_SHA1.
61065         (Include): sha.h -> sha1.h.
61066
61067 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61068
61069         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61070         * m4/sha1.m4: Renamed from sha.m4.
61071         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61072
61073 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61074
61075         * lib/obstack.h (obstack_empty_p):
61076         Don't assume that chunk->contents is suitably aligned.
61077         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61078         Likewise. Problem reported by Benno in
61079         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61080
61081         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61082         readable.  This could be improved further but it'd take some work.
61083
61084 2004-08-08  Simon Josefsson  <jas@extundo.com>
61085
61086         * modules/xgethostname (Depends-on): Remove exit and error (not
61087         used).
61088
61089         * modules/getpass-gnu: Add getpass.h.
61090         (Depends-on): Add stdbool.
61091         * modules/getpass: Add getpass.h.
61092
61093 2004-08-08  Simon Josefsson  <jas@extundo.com>
61094
61095         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61096         Check getpass declaration.
61097
61098 2004-08-08  Simon Josefsson  <jas@extundo.com>
61099
61100         * lib/xgethostname.c: Don't include error.h (not used).
61101
61102         * lib/getpass.h: Add.
61103         * lib/getpass.c: Include getpass.h first.
61104
61105 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61106
61107         * lib/xalloc-die.c: New file.
61108         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61109         All uses removed.
61110         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61111         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61112         xalloc-die.c.
61113         (_, N_, xalloc_die): Move to xalloc-die.c.
61114         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61115         so that we needn't mess with xalloc_msg_memory_exhausted.
61116
61117         * lib/sha1.h: Renamed from sha.h.
61118         (SHA1_H): Renamed from _SHA_H.
61119         (sha1_ctx): Renamed from sha_ctx.
61120         (sha1_init_ctx): Renamed from sha_init_ctx.
61121         (sha1_process_block): Renamed from sha_process_block.
61122         (sha1_process_bytes): Renamed from sha_process_bytes.
61123         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61124         (sha1_read_ctx): Renamed from sha_read_ctx.
61125         (sha1_stream): Renamed from sha_stream.
61126         (sha1_buffer): Renamed from sha_buffer.
61127         * lib/sha1.c: Likewise; renamed from sha.c.
61128         Do not include <sys/types.h>.
61129         Include <stddef.h> rather than <stdlib.h>.
61130
61131 2004-08-08  Bruno Haible  <bruno@clisp.org>
61132
61133         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61134         FILESYSTEM_PREFIX_LEN.
61135         * lib/progreloc.c: Likewise.
61136         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61137
61138 2004-08-06  Simon Josefsson  <jas@extundo.com>
61139
61140         * modules/progname (Depends-on): Don't depend on stdbool.
61141
61142 2004-08-06  Simon Josefsson  <jas@extundo.com>
61143
61144         * modules/getsubopt: New file.
61145         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61146         getsubopt.
61147
61148 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61149
61150         More merge from coreutils.
61151
61152         * m4/utimens.m4, m4/utimecmp.m4: New files.
61153         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61154         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61155         prereq.m4, sha.m4: Import changes from coreutils.
61156
61157 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61158
61159         More merge from coreutils.
61160         * modules/raise, modules/readtokens0, modules/utimens:
61161         * modules/utimecmp, module/xnanosleep: New files.
61162         * modules/strftime: Add lib/strftime.h.
61163         Change include from <time.h> to "strftime.h".
61164         * modules/yesno: Add lib/yesno.h.
61165         * modules/backupfile: Remove lib/addext.c.
61166         * modules/euidaccess: Add stat-macros.h.
61167         * modules/canonicalize, modules/euidaccess,
61168         modules/filemode, modules/lchown, modules/makepath,
61169         modules/rmdir, modules/stat: Likewise.
61170
61171 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61172
61173         Merge from tar.
61174         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61175         SIZE_MAX is a valid preprocessor constant.
61176         (__argp_basename): Change from "#ifndef _LIBC"
61177         to "#ifndef __argp_short_program_name", so that
61178         we don't compile these functions for tar.
61179
61180         More merges from coreutils.
61181         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61182         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61183         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61184         * lib/addext.c: Remove; no longer needed.
61185         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61186         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61187         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61188         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61189         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61190         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61191         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61192         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61193         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61194         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61195         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61196         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61197         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61198         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61199         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61200         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61201         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61202         Import changes from coreutils.
61203
61204 2004-08-05  Simon Josefsson  <jas@extundo.com>
61205
61206         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61207
61208 2004-08-05  Simon Josefsson  <jas@extundo.com>
61209
61210         * m4/getsubopt.m4: New file.
61211
61212 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61213
61214         Merge from coreutils.
61215
61216         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61217         * m4/getcwd-path-max.m4: New files.
61218
61219         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61220         FILESYSTEM_PREFIX_LEN ->
61221         FILE_SYSTEM_PREFIX_LEN.
61222         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61223         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61224         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61225         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61226
61227         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61228         prerequisite modules now handle the DOS stuff.
61229         Don't check for unistd.h.
61230
61231 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61232
61233         Merge from coreutils.
61234
61235         * lib/.gdb-history: Remove; this doesn't belong here.
61236
61237         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61238         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61239         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61240         * lib/getcwd.c: New files.
61241
61242         * lib/dirname.h: Include <stdbool.h>.
61243         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61244         for consistency with POSIX terminology.  All uses changed.
61245         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
61246         (strip_trailing_slashes): Use bool for booleans.
61247         * lib/stripslash.c (strip_trailing_slashes): Likewise.
61248
61249         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
61250         sometimes returns a positive errno value even when it succeeds.
61251         (print_errno_message) [!LIBC]: Fall back on strerror if
61252         __strerror_r fails.
61253
61254         * lib/path-concat.c (mempcpy): Don't define if a system header defines
61255         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
61256         (longest_relative_suffix): New function.
61257         (path_concat): Use it.  Assume first argument is not NULL.
61258         Port to DOS.  Omit redundant separators.
61259         Report an error instead of returning NULL.
61260         Use mempcpy instead of memcpy.
61261         (xpath_concat): Remove: not declared or used.
61262
61263         * lib/same.h: Include <stdbool.h>
61264         (same_name): Return bool, not int.
61265         * lib/same.c (same_name): Likewise.
61266         (errno): Don't declare; we assume C89 or better now.
61267
61268         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
61269         if not already defined.
61270
61271         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
61272         * lib/dup-safer.c (errno): Likewise.
61273
61274 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61275
61276         Merge from coreutils.
61277         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
61278         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
61279         * modules/path-concat: Don't depend on strdup.
61280
61281 2004-08-03  Simon Josefsson  <jas@extundo.com>
61282
61283         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
61284         * lib/progname.h: Don't include stdbool.h.
61285
61286 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61287
61288         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61289         * MODULES.html.sh (func_all_modules): Remove fatal.
61290
61291 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61292
61293         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61294
61295 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61296
61297         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61298         working.
61299
61300 2004-08-02  Simon Josefsson  <jas@extundo.com>
61301
61302         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61303         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61304         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61305
61306 2004-08-01  Simon Josefsson  <jas@extundo.com>
61307
61308         * lib/xgetdomainname.c: Include stdlib.h, for free().
61309
61310 2004-07-19  Bruno Haible  <bruno@clisp.org>
61311
61312         * MODULES.html.sh (func_all_modules): Add dummy.
61313
61314 2004-07-16  Simon Josefsson  <jas@extundo.com>
61315
61316         * modules/dummy: New file.
61317
61318 2004-07-16  Simon Josefsson  <jas@extundo.com>
61319
61320         * lib/dummy.c: New file.
61321
61322 2004-07-16  Bruno Haible  <bruno@clisp.org>
61323
61324         * lib/backupfile.h: Add extern "C" for C++.
61325         * lib/closeout.h: Likewise.
61326         * lib/copy-file.h: Likewise.
61327         * lib/findprog.h: Likewise.
61328         * lib/full-write.h: Likewise.
61329         * lib/pathname.h: Likewise.
61330         * lib/progname.h: Likewise.
61331         * lib/stpcpy.h: Likewise.
61332         * lib/stpncpy.h: Likewise.
61333         * lib/strcase.h: Likewise.
61334         * lib/strstr.h: Likewise.
61335         * lib/xalloc.h: Likewise.
61336
61337         * lib/mbswidth.h: Add extern "C" for C++.
61338         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61339
61340 2004-07-13  Robert Millan  <robertmh@gnu.org>
61341
61342         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61343
61344 2004-07-09  Simon Josefsson  <jas@extundo.com>
61345
61346         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61347         failed without this.)
61348
61349 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61350
61351         * modules/chown (Files): Add lib/fchown-stub.c, since
61352         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61353
61354 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61355
61356         * lib/fchown-stub.c: New file.
61357
61358 2004-06-24  Jim Meyering  <jim@meyering.net>
61359
61360         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61361
61362 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61363
61364         * modules/argz: Omit "#include".
61365
61366         * MODULES.html.sh (func_all_modules): Add calloc, to match
61367         2004-06-01 addition of calloc module.
61368
61369 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61370
61371         * m4/argz.m4: New file, which is autoupdated from libtool.
61372
61373 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61374
61375         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61376         libtool.
61377
61378 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61379
61380         * config/srclist-update: Don't insist on "USA." before the
61381         close-comment, as libtool omits the period and puts the */ on a
61382         separate line.
61383         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61384         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61385
61386 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61387
61388         * modules/argz: New file.
61389         * MODULES.html.sh (func_all_modules): Add argz.
61390
61391 2004-06-12  Jim Meyering  <jim@meyering.net>
61392         and  Paul Eggert  <eggert@cs.ucla.edu>
61393
61394         * modules/hash (Files): Add lib/xalloc.h.
61395         * modules/pipe (Depends-on): Add wait-process.
61396         * modules/stat (Depends-on): Add xalloc.
61397         * modules/userspec (Files): Add lib/userspec.h.
61398         * modules/xstrto
61399
61400         Upgrade from gettext-0.13.
61401         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61402         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61403         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61404
61405 2004-06-10  Jim Meyering  <jim@meyering.net>
61406
61407         * lib/calloc.c: New file.
61408
61409 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61410
61411         * lib/getdate.y (yylex): Allow space between sign and number.
61412         Problem reported by Dan Jacobson.
61413
61414 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61415
61416         Merge from coreutils CVS.
61417
61418         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
61419         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
61420         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
61421         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
61422         xstrtol.m4: Fix copyright date and/or serial number.
61423
61424         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
61425         See if we need an fchown replacement.
61426         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
61427         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
61428         and use the replacement function if we detect either defect.
61429
61430         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
61431         gl_UTIMECMP.
61432
61433 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61434         and  Jim Meyering  <jim@meyering.net>
61435
61436         Merge from coreutils CVS.
61437
61438         * lib/stat-macros.h: New file, with contents from file-type.h
61439         and coreutils' system.h.
61440         * lib/file-type.c: Include "stat-macros.h".
61441         * lib/file-type.h (file_type): Move all macro definitions to new file,
61442         stat-macros.h.
61443
61444         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
61445         Wrap old code with this conditional.
61446         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
61447         function that does not dereference symlinks.
61448         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
61449
61450         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
61451         dependency problems.
61452         (xreadlink): Accept new arg SIZE, for efficiency.
61453         All decls and uses changed.
61454         * lib/xreadlink.h: Include <stddef.h>, for size_t.
61455
61456         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
61457         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
61458
61459         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
61460         sysexits.h.
61461
61462 2004-06-01  Jim Meyering  <jim@meyering.net>
61463
61464         * m4/calloc.m4: New file.
61465
61466 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
61467
61468         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
61469         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
61470         Also, fix a typo in a diagnostic.
61471
61472 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61473
61474         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
61475         or AC_FUNC_REALLOC.
61476
61477 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61478
61479         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
61480         macros to be defined.
61481         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
61482         the allocator returns NULL because the requested size is zero.
61483
61484 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
61487         var.  Add comment explaining why libc still defines it.  This
61488         merges the following patch from glibc:
61489         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
61490
61491 2004-05-20  Andreas Schwab  <schwab@suse.de>
61492
61493         * m4/free.m4: Replace free if it not known to work, not the other
61494         way round.
61495
61496 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61497
61498         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
61499         present in glibc since revision 1.1 of this file.
61500         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
61501         obstack_alignment_mask, obstack_alloc, obstack_base,
61502         obstack_blank, obstack_blank_fast, obstack_chunk_size,
61503         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
61504         obstack_grow0, obstack_init, obstack_int_grow,
61505         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
61506         obstack_next_free, obstack_object_size, obstack_ptr_grow,
61507         obstack_ptr_grow_fast, obstack_room): Remove declarations of
61508         nonexistent functions.
61509
61510 2004-05-18  Karl Berry  <karl@gnu.org>
61511
61512         * config/srclist.txt: break link for vasnprintf.c.
61513
61514 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         Port obstack to the AS/400, where pointers are 16 bytes wide and
61517         you cannot cast an integer to a valid pointer.  This patch is
61518         currently waiting to be integrated into glibc; see
61519         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
61520
61521         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
61522         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
61523         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
61524         (struct obstack): temp member is now a union of a pointer and
61525         an integer, instead of an integer.  All integer uses changed.
61526         This does not affect the physical layout of struct obstack,
61527         except on hosts (like the AS/400) where the size or alignment of
61528         void * is greater than that of ptrdiff_t.
61529         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
61530         __STDC__)]: Store temporary in pointer member of union, not
61531         integer member.
61532         * lib/obstack.c: Include <stddef.h>, for offsetof.
61533         (struct fooalign): Remove; it doesn't need a name.
61534         (union fooround): Change double to long double, and add void *.
61535         (DEFAULT_ALIGNMENT): Use offsetof to compute.
61536         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
61537         not a macro.  Hence the values are always int; so remove all
61538         casts-to-int in uses.
61539
61540 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61541
61542         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
61543         we can get this patch merged into glibc.
61544
61545 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61546             Paul Eggert  <eggert@cs.ucla.edu>
61547
61548         * m4/argp: Depend on alloca.
61549
61550 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61551             Paul Eggert  <eggert@cs.ucla.edu>
61552
61553         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
61554         freecoding.
61555
61556 2004-05-17  Bruno Haible  <bruno@clisp.org>
61557
61558         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
61559         precision that consists of a '.' followed by an empty digit string.
61560         Patch by Tor Lillqvist <tml@iki.fi>.
61561
61562 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61563
61564         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
61565         for backward compatibility with older code.  We need our own
61566         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
61567         it under some other name, and our alloca.h will define it.
61568
61569 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61570             Derek Price  <derek@ximbiot.com>
61571
61572         * lib/alloca.c: Include <alloca.h>, to get our interface.
61573         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
61574         include <alloca.h> first.  Use C89 prototype for alloca; this
61575         requires including <stddef.h> for size_t.  Use extern "C" if C++.
61576         Use #elif for simplicity, since we can assume C89 now.
61577         Don't try to source the system alloca.h since it will not be found
61578         and to prevent recursively including its replacement.
61579         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
61580         * lib/regex.c: Likewise.
61581
61582 2004-05-16  Derek Price  <derek@ximbiot.com>
61583             Paul Eggert  <eggert@cs.ucla.edu>
61584
61585         getline cleanup.  This changes the getndelim2 API: both order of
61586         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
61587         no delimiter).
61588
61589         * lib/getline.c: Don't include stddef.h or stdio.h, since our
61590         interface does that.
61591         (getline): Always use getdelim, so that we don't have two
61592         copies of this code.
61593         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
61594         if available.
61595         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
61596         (GETNDELIM2_MAXIMUM): New macro.
61597         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
61598         instead of the old practice of delim2==0.  All callers changed.
61599         Return -1 on overflow, instead of returning junk.
61600         Do not set *linesize unless allocation succeeds.
61601         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
61602         that we include sys/types.h.
61603         * lib/getnline.h: Likewise.
61604         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
61605         (getndelim2): Reorder arguments.
61606         * lib/getnline.c (getnline, getndelim):
61607         Don't discard the NMAX argument.
61608         (getnline): Invoke getndelim, to avoid code duplication.
61609         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
61610         of (size_t) -1 by callers of the getnline family.
61611
61612 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61613
61614         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
61615         Check for gettimeofday.
61616         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
61617         Check for settimeofday, stime.
61618
61619 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61620
61621         * lib/nanosleep.c (suspended): Change its type from int to
61622         sig_atomic_t volatile.
61623         (first_call): Make it private to rpl_nanosleep, and have it
61624         be zero initially as that's a bit faster.
61625         (my_usleep): Round up fractional times instead of truncating them,
61626         as this is the usual meaning for 'sleep'.
61627
61628         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
61629         doesn't work.
61630         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
61631         (ENOSYS): Define if not defined.
61632         (settime): Fall back on stime if it exists and settimeofday fails.
61633         But don't bother with fallbacks if a method fails with errno == EPERM.
61634
61635 2004-05-11  Jim Meyering  <jim@meyering.net>
61636
61637         Prior to this change, the save_cwd caller required read access to the
61638         current directory on most systems (ones with the fchdir function).
61639
61640         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
61641         fails, try write-only, and finally, resort to using xgetcwd.
61642
61643 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61644
61645         * lib/obstack.c, obstack.h: Import changes from libc.
61646
61647 2004-04-28  Bruno Haible  <bruno@clisp.org>
61648
61649         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
61650         also implicitly appends .exe to executables.
61651         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
61652         accepts Windows pathnames.
61653         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61654         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61655         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61656         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61657         Reported by Derek Robert Price <derek@ximbiot.com>.
61658
61659 2004-04-21  Karl Berry  <karl@gnu.org>
61660
61661         * config/srclist.txt (localcharset.c): break sync.
61662
61663 2004-04-20  Paul Eggert  <eggert@twinsun.com>
61664
61665         * m4/host-os.m4: Add a copyright notice.
61666
61667 2004-04-20  Jim Meyering  <jim@meyering.net>
61668
61669         Change UTILS_ to gl_ in AC_DEFINE'd names.
61670         Change utils_- and jm_-prefixed variables, too.
61671         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
61672         UTILS_FUNC_MKDIR_TRAILING_SLASH.
61673         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
61674
61675         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
61676         Don't emit trailing blanks.
61677         Also rename jm_-prefixed variables to have gl_ prefix.
61678
61679         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
61680         Also rename jm_-prefixed variables to have gl_ prefix.
61681
61682         * m4/jm-macros.m4: Reflect the renamings.
61683         * m4/prereq.m4: Likewise.
61684
61685 2004-04-20  Jim Meyering  <jim@meyering.net>
61686
61687         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
61688         memory.
61689
61690 2004-04-20  Jim Meyering  <jim@meyering.net>
61691             Bruno Haible  <bruno@clisp.org>
61692
61693         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
61694         memory when realloc fails.
61695
61696 2004-04-19  Jim Meyering  <jim@meyering.net>
61697
61698         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
61699         now that readutmp.c may call `free (0)'.
61700
61701 2004-04-19  Bruno Haible  <bruno@clisp.org>
61702
61703         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
61704         * m4/inttypes_h.m4: Likewise.
61705         * m4/stdint_h.m4: Likewise.
61706         * m4/intmax_t.m4: Likewise.
61707         * m4/uintmax_t.m4: Likewise.
61708
61709 2004-04-18  Jim Meyering  <jim@meyering.net>
61710
61711         * m4/prereq.m4: Don't forbid jm_ prefix.
61712
61713         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
61714         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
61715         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
61716         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
61717         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
61718         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
61719         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
61720         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
61721         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
61722         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
61723         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
61724         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
61725         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
61726         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
61727         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
61728         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
61729         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
61730         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
61731         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
61732
61733 2004-04-18  Jim Meyering  <jim@meyering.net>
61734
61735         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
61736         failure, don't leak memory and do call END_UTMP_ENT.
61737
61738 2004-04-16  Jim Meyering  <jim@meyering.net>
61739
61740         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
61741         coreutils' stat program.
61742         (gl_PREREQ): Don't require jm_PREREQ_STAT.
61743
61744 2004-04-11  Paul Eggert  <eggert@twinsun.com>
61745
61746         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
61747         C89.
61748         (CHAR_BIT): Remove, since we assume C89.
61749         Include <stdint.h> if available, as per current Autoconf CVS advice.
61750
61751 2004-03-31  Jim Meyering  <jim@meyering.net>
61752
61753         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
61754         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
61755         * m4/xalloc.m4: Likewise.
61756
61757 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61758
61759         Merge from coreutils.
61760
61761         * m4/inttostr.m4: New file.
61762         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
61763         Require AM_STDBOOL_H and gl_TIMESPEC instead.
61764         Require gl_CLOCK_TIME.
61765         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
61766
61767 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61768
61769         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
61770         not bool, to be more consistent with Unix conventions.
61771         Suggested by Bruno Haible.
61772
61773         Merge from coreutils.
61774
61775         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
61776         * lib/umaxtostr.c: New files.
61777
61778         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
61779         the usual <time.h> dance.
61780         (get_date): Change signature to support fractional time stamps.
61781         All callers changed.
61782         * lib/getdate.y: Include "getdate.h" first, as we can now
61783         assume C89 and don't need to worry about 'const'.
61784         Similarly, include "unlocked-io.h" near start, not in middle.
61785         Include <limits.h>.
61786         (textint.value): Use long int rather than int.
61787         (textint.digits): Use size_t rather than int.
61788         (BILLION, LOG10_BILLION): New constants.
61789         (parser_control): New member rel_ns.  Members day_ordinal,
61790         time_zone, month, day, hour, minutes, rel_year, rel_month,
61791         rel_day, rel_hour, rel_minutes, rel_seconds
61792         are now long int, not int.  Member seconds is now struct timespec,
61793         not int.  New member timespec_seen.  Members dates_seen, days_seen,
61794         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
61795         not int.
61796         (%union.intval): Now long int, not int.
61797         New member timespec.
61798         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
61799         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
61800         (spec): Now is a timespec or an item list.
61801         (timespec, items): New nonterminals.
61802         (time, rel, relunit, number, get_date):
61803         Add support for fractional seconds.
61804         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
61805         (gmtime, localtime, mktime): Remove decls; not needed with C89.
61806         (to_hour): First arg is now long int, not int.
61807         (to_year): Returns long int, not int.
61808         Don't treat year -70 like 70.
61809         (tm_diff): Returns long int, not int.
61810         (lookup_word): Use bool instead of int when appropriate.
61811         (yylex): Use size_t for count, not int.
61812         Detect overflow when parsing large integer constants.
61813         Add support for fractions.
61814         (get_date): Make pointers 'const' if possible.
61815         Use more-portable code to detect integer overflow.
61816         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
61817         Don't use ctime; it's not reliable if the year has >4 digits.
61818
61819         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
61820         This is for compatibility with BSD.
61821
61822         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
61823         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
61824         From coreutils' system.h.
61825
61826         * lib/userspec.c: Don't include "posixver.h".
61827         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
61828         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
61829         compatible extension.  Simplify code by removing a boolean int
61830         that was always nonzero if a string was nonnull.
61831
61832 2004-03-30  Jim Meyering  <jim@meyering.net>
61833
61834         Merge from coreutils.
61835
61836         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
61837         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
61838         on some systems one must include <grp.h> before it.
61839         Reported by Christian Krackowizer.
61840
61841 2004-03-30  Jim Meyering  <jim@meyering.net>
61842
61843         Merge from coreutils.
61844
61845         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
61846
61847         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
61848         an empty input stream.
61849
61850         * lib/readtokens.c: Include <stdbool.h>.
61851         (readtoken): Use `size_t' rather than int/long.
61852         All callers adjusted.
61853         Use `bool' rather than `int' where appropriate.
61854         Use memset rather than an explicit loop.
61855         Use x2nrealloc rather than xrealloc.
61856         Allow the use of `\0' as a delimiter.
61857         (readtokens): Likewise.
61858         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
61859
61860 2004-03-30  Jim Meyering  <jim@meyering.net>
61861
61862         * m4/realloc.m4: Remove file, since now it does no more than
61863         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
61864         the `configure.ac' section of module/realloc.
61865         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
61866
61867 2004-03-30  Bruno Haible  <bruno@clisp.org>
61868
61869         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
61870         nonnull.
61871
61872 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61873
61874         Merge changes to getloadavg.c from coreutils and Emacs.
61875
61876         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
61877         Define to an expression, not to the empty string.
61878         Include cloexec.h and xalloc.h.
61879         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
61880         Use set_cloexec_flag rather than rolling our own.
61881         * lib/cloexec.c, lib/cloexec.h: New files.
61882
61883 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61884
61885         * m4/cloexec.m4: New file.
61886
61887 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61888
61889         * lib/getopt.h: Sync with libc CVS.
61890
61891 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61892             Bruno Haible  <bruno@clisp.org>
61893
61894         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
61895         mbswidth.
61896
61897 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61898             Bruno Haible  <bruno@clisp.org>
61899
61900         * lib/mbswidth.h: Include <wchar.h> only if
61901         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
61902         <wchar.h>.
61903         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
61904
61905 2004-03-09  Paul Eggert  <eggert@twinsun.com>
61906
61907         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
61908         Sync with libc CVS.
61909         * lib/getopt_int.h: New file, also synced from libc.
61910
61911 2004-03-09  Paul Eggert  <eggert@twinsun.com>
61912
61913         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
61914         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
61915         Bring back getopt.c, getopt.h, getopt1.c.
61916
61917 2004-03-07  Paul Eggert  <eggert@twinsun.com>
61918
61919         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
61920         All uses changed.  Check for sa_sigaction member; this fixes
61921         a bug first reported by Jason Andrade in
61922         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
61923
61924 2004-03-07  Paul Eggert  <eggert@twinsun.com>
61925
61926         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
61927         '#if' expressions.  Unlike the code it replaces, it does not
61928         depend on (defined _SC_PAGESIZE).  However, it does depend on
61929         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
61930         first reported by Jason Andrade in
61931         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
61932
61933 2004-02-25  Simon Josefsson  <jas@extundo.com>
61934
61935         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
61936
61937 2004-02-25  Simon Josefsson  <jas@extundo.com>
61938
61939         * lib/strdup.h: New file.
61940         * lib/strdup.c: Include it.
61941         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
61942         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
61943
61944 2004-02-23  Karl Berry  <karl@gnu.org>
61945
61946         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
61947         (from fencepost.gnu.org:/gd/gnuorg).
61948
61949 2004-02-23  Karl Berry  <karl@gnu.org>
61950
61951         * config/srclistvars.sh (GNUORG) [karl]: redefine.
61952         * config/srclist.txt: add maintain/standards documents.
61953
61954 2004-02-18  Bruno Haible  <bruno@clisp.org>
61955
61956         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
61957         Reported by Derek Robert Price <derek@ximbiot.com>.
61958
61959 2004-02-16  Karl Berry  <karl@gnu.org>
61960
61961         * config/mkinstalldirs, install-sh: update from automake.
61962
61963 2004-02-06  Karl Berry  <karl@gnu.org>
61964
61965         * m4/po.m4: update from gettext 0.14.1.
61966
61967 2004-02-06  Karl Berry  <karl@gnu.org>
61968
61969         * lib/config.charset: update from gettext 0.14.1.
61970
61971 2004-02-05  Paul Eggert  <eggert@twinsun.com>
61972
61973         Add comments and code, prompted by suggestions from Bruno Haible
61974         for sh-quote.
61975         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
61976         describing the enum quoting_style values.
61977         * lib/quotearg.c (quotearg_alloc): New function.
61978         (quotearg_buffer_restyled): Treat lone { and } as special.
61979         Treat = as special.  Work around bug with older shells
61980         that "see" a '\' that is really the 2nd byte of a multibyte char.
61981         Quote empty string with shell_quoting_style.
61982
61983 2004-02-03  Bruno Haible  <bruno@clisp.org>
61984
61985         * m4/pipe.m4: New file, from GNU gettext.
61986
61987 2004-02-03  Bruno Haible  <bruno@clisp.org>
61988
61989         * lib/pipe.h: New file, from GNU gettext.
61990         * lib/pipe.c: New file, from GNU gettext.
61991
61992 2004-01-27  Bruno Haible  <bruno@clisp.org>
61993
61994         * m4/execute.m4: New file, from GNU gettext.
61995
61996 2004-01-27  Bruno Haible  <bruno@clisp.org>
61997
61998         * lib/execute.h: New file, from GNU gettext.
61999         * lib/execute.c: New file, from GNU gettext.
62000         * lib/w32spawn.h: New file, from GNU gettext.
62001
62002 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62003
62004         Merge from diffutils.
62005
62006         * lib/file-type.c (file_type): Add typed memory objects.
62007         * lib/file-type.h (S_TYPEISTMO): New macro.
62008
62009         * lib/c-stack.h (c_stack_action): Remove argv argument.
62010         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62011         (die): Don't calculate message unless segv_action returns.
62012         (get_stack_location, min_address_from_argv, max_address_from_argv,
62013         volatile stack_base, volatile_stack_size): Remove.
62014         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62015         that every segmentation violation is a stack overflow.  (Ouch!)
62016         See Debian bug 136249 (still outstanding) for more info about why
62017         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62018
62019 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62020
62021         Exit-status fix from coreutils.
62022
62023         Use exit_failure consistently in place of EXIT_FAILURE,
62024         so that program exit statuses are consistent on failure.
62025
62026         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62027         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62028         * lib/argmatch.h: Comment fix to match the above.
62029         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62030         Now a macro referring to exit_failure, instead of a separate
62031         variable.  Include "exitfail.h" to get it.
62032         * lib/xstrtol.h: Include "exitfail.h".
62033         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62034
62035         * lib/long-options.c (parse_long_options): Use prototype
62036         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62037         for clarity.
62038
62039 2004-01-21  Jim Meyering  <jim@meyering.net>
62040
62041         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62042         so as not to conflict with a different-sized __mktime_internal
62043         function in GNU libc.
62044         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62045         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62046
62047 2004-01-20  Karl Berry  <karl@gnu.org>
62048
62049         * config/config.guess: update from config.
62050
62051         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62052
62053 2004-01-20  Bruno Haible  <bruno@clisp.org>
62054
62055         Safer stack allocation.
62056         * lib/setenv.c: Include allocsa.h.
62057         (alloca): Remove fallback definition.
62058         (freea): Remove macro.
62059         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62060         instead of freea.
62061
62062 2004-01-20  Bruno Haible  <bruno@clisp.org>
62063
62064         * m4/eealloc.m4: New file, from GNU gettext.
62065
62066 2004-01-20  Bruno Haible  <bruno@clisp.org>
62067
62068         * m4/allocsa.m4: New file, from GNU gettext.
62069
62070 2004-01-20  Bruno Haible  <bruno@clisp.org>
62071
62072         * lib/xallocsa.h: New file, from GNU gettext.
62073         * lib/xallocsa.c: New file, from GNU gettext.
62074
62075 2004-01-20  Bruno Haible  <bruno@clisp.org>
62076
62077         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62078
62079 2004-01-20  Bruno Haible  <bruno@clisp.org>
62080
62081         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62082         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62083         specially.
62084
62085 2004-01-20  Bruno Haible  <bruno@clisp.org>
62086
62087         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62088         patch.
62089
62090 2004-01-20  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62093
62094 2004-01-20  Bruno Haible  <bruno@clisp.org>
62095
62096         * lib/eealloc.h: New file.
62097
62098 2004-01-20  Bruno Haible  <bruno@clisp.org>
62099
62100         * lib/binary-io.h: Avoid warnings on Cygwin.
62101
62102 2004-01-20  Bruno Haible  <bruno@clisp.org>
62103
62104         * lib/allocsa.h: New file, from GNU gettext.
62105         * lib/allocsa.c: New file, from GNU gettext.
62106
62107 2004-01-18  Karl Berry  <karl@gnu.org>
62108
62109         * doc/gpl.texi, doc/lgpl.texi: new files.
62110
62111 2004-01-18  Karl Berry  <karl@gnu.org>
62112
62113         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62114         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62115
62116 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62117
62118         Merge from coreutils.
62119
62120         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62121         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62122         (gl_DEFAULT_POSIX2_VERSION): Move
62123         the documentation from 'configure' into 'config.hin',
62124         so that 'configure --help' isn't burdened by it and
62125         we don't have to worry about its formatting there.
62126         Reword the documentation so that it's more succinct
62127         and can be run together into a single paragraph.
62128         * m4/same.m4 (gl_SAME): Check for pathconf.
62129
62130 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62131
62132         Merge from coreutils.
62133
62134         * lib/posixver.c: Include posixver.h.
62135
62136         * lib/same.c: Include <stdbool.h>, <limits.h>.
62137         (_POSIX_NAME_MAX): Define if not defined.
62138         (MIN): New macro.
62139         (same_name): If file names are silently truncated, report
62140         that the file names are the same if they are the same after
62141         the silent truncation.
62142
62143         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62144         conversion function.
62145         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62146         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62147         longer needed.
62148
62149 2004-01-15  Jim Meyering  <jim@meyering.net>
62150
62151         Merge from coreutils.
62152
62153         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62154         if no library is required.
62155         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62156         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62157         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62158         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62159         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62160         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62161         value, $ac_cv_search_crypt, if it's "none required".
62162         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62163         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62164         not gl_FUNC_GETLOADAVG.
62165         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62166         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62167
62168 2004-01-15  Jim Meyering  <jim@meyering.net>
62169
62170         Merge from coreutils.
62171
62172         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62173         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62174         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62175
62176         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62177         optional configure-time default.
62178
62179         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62180
62181         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62182
62183 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62184
62185         Merge from coreutils.
62186
62187         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62188         value, $ac_cv_search_nanosleep, if it's "none required".
62189
62190 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62191
62192         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62193         with like-named macro in fnmatch.c.
62194         (EXT): Use an internal constant instead.
62195
62196         Merge fnmatch patches from glibc.
62197         * lib/fnmatch.c (mbsinit): Remove define.
62198         Add libc_hidden_ver (__fnmatch, fnmatch).
62199         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62200         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62201
62202 2004-01-14  Karl Berry  <karl@gnu.org>
62203
62204         * config/install-sh: update from automake.
62205
62206 2004-01-13  Karl Berry  <karl@gnu.org>
62207
62208         * config/install-sh: update from automake.
62209
62210 2004-01-09  Karl Berry  <karl@gnu.org>
62211
62212         * config/install-sh: update from automake.
62213
62214 2004-01-05  Karl Berry  <karl@gnu.org>
62215
62216         * config/config.{sub,guess}: update from config.
62217
62218 2003-12-31  Karl Berry  <karl@gnu.org>
62219
62220         * config/depcomp: update from automake.
62221
62222 2003-12-14  Karl Berry  <karl@gnu.org>
62223
62224         * lib/config.charset: update from gettext-runtime.
62225
62226 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62227
62228         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62229         Bug reported by Alfred M. Szmidt.
62230
62231 2003-12-03  Bruno Haible  <bruno@clisp.org>
62232
62233         * m4/gettext.m4: Upgrade from gettext-0.13.
62234         * m4/po.m4: Upgrade from gettext-0.13.
62235         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62236         * m4/intmax.m4: New file, from gettext-0.13.
62237         * m4/printf-posix.m4: New file, from gettext-0.13.
62238
62239 2003-11-29  Karl Berry  <karl@gnu.org>
62240
62241         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62242
62243 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62244             Bruno Haible  <bruno@clisp.org>
62245
62246         * lib/printf-parse.h: Don't include sys/types.h.
62247         (ARG_NONE): New macro.
62248         (char_directive): Change type of *arg_index fields to size_t.
62249         * lib/printf-parse.c: Don't include sys/types.h.
62250         (SSIZE_MAX): Remove macro.
62251         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
62252         Remove unnecessary overflow check.
62253         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
62254         fields.
62255
62256 2003-11-25  Bruno Haible  <bruno@clisp.org>
62257
62258         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
62259
62260 2003-11-25  Bruno Haible  <bruno@clisp.org>
62261
62262         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
62263         gt_TYPE_SSIZE_T.
62264
62265 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62266
62267         * modules/alloca: Remove dependency on xalloc.
62268
62269 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62270
62271         * lib/alloca.c: Remove dependency on xalloc module.
62272         (xalloc_die): Remove.
62273         (memory_full) [!defined emacs]: New macro.
62274         [!defined emacs]: Don't include xalloc.h.
62275         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
62276         address arithmetic overflows.  Change datatypes a bit to avoid
62277         unnecessary casts.
62278
62279 2003-11-22  Jim Meyering  <jim@meyering.net>
62280
62281         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
62282         s/size/size_t/.
62283
62284 2003-11-21  Karl Berry  <karl@gnu.org>
62285
62286         * config/config.{sub,guess}: update from config.
62287
62288 2003-11-18  Karl Berry  <karl@gnu.org>
62289
62290         * config/config.{sub,guess}: update from config.
62291
62292         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62293
62294 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62295
62296         * README: Mention that S+T cannot overflow if S is the size of
62297         an existing object and T is sufficiently small.
62298
62299 2003-11-17  Jim Meyering  <jim@meyering.net>
62300
62301         On systems without utime and without a utimes function capable of
62302         dealing with a NULL struct utimbuf* argument, this utime replacement
62303         could -- in unusual circumstances -- leak a file descriptor.
62304         * lib/utime.c: Include <unistd.h> and <errno.h>.
62305         (utime_null): Be sure to close `fd' and to preserve errno.
62306         Reported by Geoff Collyer via Arnold Robbins.
62307
62308 2003-11-17  Bruno Haible  <bruno@clisp.org>
62309
62310         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62311         (Depends-on): Add xsize.
62312
62313 2003-11-17  Bruno Haible  <bruno@clisp.org>
62314
62315         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62316
62317 2003-11-17  Bruno Haible  <bruno@clisp.org>
62318
62319         * lib/vasnprintf.c (alloca): Remove fallback definition.
62320         (freea): Remove definition.
62321         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62322         Reported by Paul Eggert.
62323
62324 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62325             Bruno Haible  <bruno@clisp.org>
62326
62327         Protect against address arithmetic overflow.
62328         * lib/printf-args.h: Include stddef.h.
62329         (arguments): Change type of field 'count' to size_t.
62330         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62331         'unsigned int' where appropriate.
62332         * lib/printf-parse.h: Include sys/types.h.
62333         (char_directive): Change type of *arg_index fields to ssize_t.
62334         (char_directives): Change type of fields 'count', max_*_length to
62335         size_t.
62336         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62337         (SSIZE_MAX): Define fallback value.
62338         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62339         instead of 'int' where appropriate. Check a_allocated, d_allocated
62340         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62341         * lib/vasnprintf.c: Include xsize.h.
62342         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62343         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62344         overflow. Avoid wraparound when converting a width or precision from
62345         decimal to binary.
62346
62347 2003-11-16  Bruno Haible  <bruno@clisp.org>
62348
62349         Update from GNU gettext.
62350         * lib/printf-parse.c: Generalize to it can be compiled for wide
62351         strings.
62352         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62353         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62354         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62355         SNPRINTF): New macros.
62356         Don't include <alloca.h> if the file is used inside libintl.
62357         (local_wcslen): New function, for Solaris 2.5.1.
62358         (VASNPRINTF): Use it instead of wcslen.
62359
62360 2003-11-16  Bruno Haible  <bruno@clisp.org>
62361
62362         * lib/xsize.h (xmax): New function.
62363         (xsum, xsum3, xsum4): Declare as "pure" functions.
62364
62365 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62366
62367         * modules/xalloc (Files): Undo latest change, since xalloc.h
62368         no longer needs SIZE_MAX or PTRDIFF_MAX.
62369
62370 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62371
62372         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62373         gl_PTRDIFF_MAX.
62374
62375 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62376
62377         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62378         "return", to pacify some unknown compiler.  Problem reported
62379         by Joerg Schilling.
62380
62381 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62382
62383         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62384         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62385         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62386         heuristic is just as accurate as far as we know, and it removes a
62387         dependency on size_max.m4 and ptrdiff_max.m4.
62388
62389 2003-11-11  Bruno Haible  <bruno@clisp.org>
62390
62391         * modules/xsize (Files): Add m4/size_max.m4.
62392         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62393
62394 2003-11-11  Bruno Haible  <bruno@clisp.org>
62395
62396         * m4/size_max.m4: New file.
62397         * m4/ptrdiff_max.m4: New file.
62398         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62399         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62400         (gl_XALLOC): Invoke it.
62401
62402 2003-11-11  Bruno Haible  <bruno@clisp.org>
62403
62404         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62405         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62406         defined.
62407
62408 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62409
62410         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62411         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62412         rejected some allocations of exactly SIZE_MAX - 2 bytes.
62413         From Bruno Haible.
62414         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
62415         not (size_t) -1, since it's defined here.
62416
62417 2003-11-09  Karl Berry  <karl@gnu.org>
62418
62419         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
62420
62421 2003-11-06  Paul Eggert  <eggert@twinsun.com>
62422
62423         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
62424         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
62425         Reject sizes of exactly SIZE_MAX bytes.
62426         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
62427         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
62428
62429 2003-11-05  Bruno Haible  <bruno@clisp.org>
62430
62431         * lib/xsize.h: Include limits.h, to avoid a possible collision with
62432         SIZE_MAX defined in <limits.h> on Solaris.
62433
62434 2003-11-04  Jim Meyering  <jim@meyering.net>
62435
62436         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
62437         variable names, rather than @VAR@.
62438         * modules/poll: Likewise.
62439
62440 2003-11-04  Bruno Haible  <bruno@clisp.org>
62441
62442         * modules/xsize: New file.
62443         * modules/linebreak: Depend on xsize.
62444         * MODULES.html.sh (func_all_modules): Add xsize.
62445
62446 2003-11-04  Bruno Haible  <bruno@clisp.org>
62447
62448         * m4/xsize.m4: New file.
62449
62450 2003-11-04  Bruno Haible  <bruno@clisp.org>
62451
62452         * lib/xsize.h: New file.
62453         * lib/linebreak.c: Include xsize.h.
62454         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
62455         argument for overflow.
62456         Suggested by Paul Eggert.
62457
62458 2003-11-03  Karl Berry  <karl@gnu.org>
62459
62460         * config/config.{guess,sub}: update from config.
62461
62462 2003-11-03  Jim Meyering  <jim@meyering.net>
62463
62464         * modules/userspec (lib_SOURCES): Add userspec.h.
62465         (Include): Add "userspec.h".
62466         Improve description.
62467
62468 2003-11-03  Jim Meyering  <jim@meyering.net>
62469
62470         * lib/userspec.c: Include "userspec.h".
62471         * lib/userspec.h: New file.
62472
62473 2003-11-03  Bruno Haible  <bruno@clisp.org>
62474
62475         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
62476
62477 2003-11-03  Bruno Haible  <bruno@clisp.org>
62478
62479         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
62480         available, to avoid (extremely rare) race condition.
62481         Suggested by Paul Eggert.
62482
62483 2003-11-02  Karl Berry  <karl@gnu.org>
62484
62485         * config/srclist.txt (vasprintf.c): sync broken, sigh.
62486
62487 2003-10-31  Paul Eggert  <eggert@twinsun.com>
62488
62489         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
62490         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
62491         (read_filesystem_list): Set and use me_type_malloced.
62492         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
62493         whatever the type happens to be), for brevity and consistency.
62494         Check for size calculation overflow on Alphas running OSF/1.
62495
62496 2003-10-31  Jim Meyering  <jim@meyering.net>
62497
62498         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
62499
62500         * lib/linebuffer.c: Include <string.h> for declaration of memset.
62501
62502 2003-10-30  Paul Eggert  <eggert@twinsun.com>
62503             Bruno Haible  <bruno@clisp.org>
62504
62505         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
62506         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
62507
62508 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
62511         netbsd*-gnu*.  Suggested by Robert Millan.
62512
62513 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62514
62515         * modules/group-member: Depend on stdbool.
62516
62517 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62518
62519         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
62520
62521 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62522
62523         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
62524         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
62525         after the 'gnu' in these cases.  This fixes some bugs in the
62526         previous change, and is based on suggestions by Robert Millan.
62527
62528 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62529
62530         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
62531         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
62532         no longer needed.
62533         * lib/quotearg.c (quotearg_n_options): Use it.
62534         * lib/group-member.c: Include <stdbool.h>.
62535         (free_group_info): Arg is now const *; don't free arg.
62536         (get_group_info): Now returns bool and accepts struct group_info *,
62537         rather than returning a malloc'ed struct group_info *.
62538         All uses changed.  Check for overflow in internal size calculation.
62539
62540         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
62541         rather than xmalloc/xrealloc.
62542         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
62543         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
62544         conformance bug: the old code used a pointer after freeing the
62545         storage that it addressed.
62546         * lib/hash.c (hash_initialize): Simplify the code by using
62547         xalloc_oversized rather than doing it by hand.
62548         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
62549         the buffer preserved.  Use free and xmalloc instead.
62550         * lib/quotearg.c (quotearg_n_options): Likewise.
62551         Use a simpler test for size overflow.  Don't use xalloc_oversized
62552         because unsigned int might be wider than size_t (!); this suggests
62553         that we should switch from unsigned int to size_t for slot numbers.
62554
62555 2003-10-28  Paul Eggert  <eggert@twinsun.com>
62556
62557         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
62558         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
62559         NetBSD kernels.  Requested by Richard Stallman.
62560
62561 2003-10-27  Paul Eggert  <eggert@twinsun.com>
62562
62563         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
62564         to allocate the returned structure.  Do not allocate a subarray,
62565         as x2nrealloc will do that.
62566         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
62567         instead of xnrealloc.
62568         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
62569
62570 2003-10-27  Bruno Haible  <bruno@clisp.org>
62571
62572         * lib/stdbool_.h: Better support for BeOS.
62573
62574 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62575
62576         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
62577         now uses inline.
62578
62579 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62580
62581         * lib/xalloc.h (xalloc_oversized): New static inline function, for
62582         callers that want to do their own size-overflow checking.  Include
62583         <stdbool.h>, since xalloc_oversized returns bool.
62584         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
62585         to use xalloc_oversized.
62586
62587         Add two functions x2realloc, x2nrealloc, for programs that grow
62588         arrays dynamically by doubling their sizes.
62589         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
62590         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
62591         New functions.
62592
62593         Port to C99 semantics for 'inline' of external functions.
62594         Bug reported by Bruno Haible.
62595         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
62596         with the old contents of xnmalloc.
62597         (xnmalloc, xmalloc): Use it.
62598         (xnrealloc_inline): New static inline function,
62599         with the old contents of xnrealloc.
62600         (xnrealloc, xrealloc): Use it.
62601
62602         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
62603         that.
62604
62605 2003-10-26  Karl Berry  <karl@gnu.org>
62606
62607         * config/srclist.txt (COPYING.DOC): no longer available from
62608         /gd/gnuorg; don't know where the ultimate source is.
62609
62610 2003-10-25  Paul Eggert  <eggert@twinsun.com>
62611
62612         Fix several address-calculation bugs in the hash modules,
62613         plus some minor code cleanup.
62614
62615         * lib/hash.h: Include <stdbool.h>, for bool.
62616         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
62617         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
62618         hash_get_n_entries, hash_get_max_bucket_length,
62619         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
62620         hash_rehash): Use size_t rather than unsigned.
62621         * lib/hash.c (struct hash_table, hash_get_n_buckets,
62622         hash_get_n_buckets_used, hash_get_n_entries,
62623         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
62624         hash_get_entries, hash_do_for_each, hash_string, is_prime,
62625         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
62626         Likewise.
62627         (SIZE_MAX): Define if not defined.
62628         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
62629         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
62630         hash_print):
62631         Use const * when possible.
62632         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
62633         (check_tuning): Fix bug: if tuning parameters were very close to
62634         0 or 1, rounding errors could have caused subscript violations.
62635         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
62636         (hash_initialize): Add 'fail:' label
62637         to free table and return NULL, and use it to simplify code.
62638         Use calloc rather than clearing the storage ourself.
62639         (hash_initialize, hash_rehash): Check for arithmetic overflow in
62640         buffer size calculations.
62641         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
62642         Include <stddef.h>, for size_t.
62643         * lib/hash-pjw.c (hash_pjw): Likewise.
62644         Switch to method described by Bruno Haible.
62645         Include <limits.h>, for CHAR_BIT.
62646         (SIZE_BITS): New macro.
62647
62648 2003-10-23  Paul Eggert  <eggert@twinsun.com>
62649
62650         * m4/getline.m4 (AM_FUNC_GETLINE):
62651         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
62652         hosts.  Problem reported by Derek Robert Price in
62653         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
62654         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
62655         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
62656
62657 2003-10-21  Paul Eggert  <eggert@twinsun.com>
62658
62659         * lib/getndelim2.c (getndelim2): When size calculation overflows,
62660         ceiling the allocation at NMAX bytes rather than silently
62661         discarding input bytes before NMAX is reached.  This makes
62662         a difference only if NMAX exceeds SIZE_MAX / 2.
62663
62664         * lib/obstack.c: Merge from glibc.
62665         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
62666         Add libc_hidden_def (_obstack_newchunk).
62667         (_obstack_free) [! defined _LIBC]: Remove.
62668         [defined _LIBC]: Make a strong alias from obstack_free, rather than
62669         a clone of the function body.
62670         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
62671         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
62672
62673         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
62674         glibc.
62675         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
62676         arg to memcpy.
62677
62678         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
62679         (obstack_ptr_grow_fast, obstack_int_grow_fast):
62680         Don't use lvalue casts, as GCC plans to remove support for them
62681         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
62682         was also present in the non-GCC version, indicating that this
62683         code had always been buggy and had never been widely used.
62684         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
62685         Use the fast variant of each macro, rather than copying the
62686         definiens of the fast variant; that way, we'll be more likely to
62687         catch future bugs in the fast variants.
62688
62689 2003-10-20  Bruno Haible  <bruno@clisp.org>
62690
62691         * modules/wait-process: New file.
62692         * MODULES.html.sh (func_all_modules): Add wait-process.
62693
62694 2003-10-20  Bruno Haible  <bruno@clisp.org>
62695
62696         * m4/wait-process.m4: New file.
62697
62698 2003-10-20  Bruno Haible  <bruno@clisp.org>
62699
62700         * lib/wait-process.h: New file, from GNU gettext.
62701         * lib/wait-process.c: New file, from GNU gettext.
62702
62703 2003-10-19  Jim Meyering  <jim@meyering.net>
62704
62705         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
62706         HPUX 10.20.
62707
62708 2003-10-18  Karl Berry  <karl@gnu.org>
62709
62710         * config/config.guess: update from config.
62711
62712 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62713
62714         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
62715         (getgroups): First arg is int, not size_t.
62716         Don't let 'free' mangle errno.
62717
62718 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62719
62720         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
62721
62722 2003-10-16  Karl Berry  <karl@gnu.org>
62723
62724         * config/config.{guess,sub}: update from config.
62725
62726 2003-10-16  Jim Meyering  <jim@meyering.net>
62727
62728         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
62729         memcpy.
62730
62731 2003-10-15  Paul Eggert  <eggert@twinsun.com>
62732
62733         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
62734         (SIZE_MAX): Remove.
62735         (new_exclude, add_exclude_file): Initial size no longer needs to
62736         be a power of 2.
62737         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
62738         our own address arithmetic overflow checking.
62739
62740         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
62741         (fnmatch): Do not alloca more than 2000 wide characters;
62742         instead, use malloc for large buffers.
62743         Check for address arithmetic overflow, and return -1
62744         with errno set to ENOMEM in that case.
62745         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
62746         (NEW_PATTERN): Do not alloca more than 8000 bytes;
62747         instead, return -1.  Check for address arithmetic overflow.
62748
62749 2003-10-14  Paul Eggert  <eggert@twinsun.com>
62750
62751         Handle invalid suffixes and overflow independently, so that
62752         callers can treat them independently as needed.  Fix some bugs in
62753         suffix handling, e.g., "100k@" was not diagnosed as an invalid
62754         suffix for a human-readable blocksize.  The major caller-visible
62755         change is the addition of a new
62756         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
62757         that both overflow and suffix chars were found.
62758
62759         * lib/human.c (humblock): Don't check separately for invalid suffix
62760         char; that is xstrtoumax's job (now that its bug is fixed).
62761         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
62762         INTMAX_MAX]: New macros.
62763         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
62764         TYPE_MAXIMUM): New macros.
62765         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
62766         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
62767         if overflow occurs, as it's what __strtol does and it's more useful
62768         in practice.
62769         (__xstrtol): If __strtol reports some error other than ERANGE,
62770         reflect it to the caller as LONGINT_INVALID.  If it reports
62771         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
62772         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
62773         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
62774         value.
62775         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
62776         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
62777         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
62778         [defined UINTMAX_MAX]: New macros.
62779
62780 2003-10-14  Bruno Haible  <bruno@clisp.org>
62781
62782         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
62783
62784 2003-10-14  Bruno Haible  <bruno@clisp.org>
62785
62786         * m4/sig_atomic_t: New file, from GNU gettext.
62787         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
62788
62789 2003-10-14  Bruno Haible  <bruno@clisp.org>
62790
62791         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
62792         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
62793         Also use volatile where needed.
62794
62795 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62796
62797         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
62798         Change maintainer from Bruno Haible to 'all'.
62799
62800 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62801
62802         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
62803
62804 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62805
62806         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
62807         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
62808         and define in terms of the other primitives.
62809         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
62810         (SIZE_MAX): Define if not already defined.
62811         (array_size_overflow): New function.
62812         (xalloc_die): Abort instead of exiting if 'error' returns.
62813         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
62814         (xmalloc, xrealloc): Use them.
62815         (xcalloc): Check for address arithmetic overflow.
62816         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
62817         a bit faster than strcpy.
62818
62819 2003-10-10  Simon Josefsson  <jas@extundo.com>
62820
62821         * modules/argp (Depends-on): Add restrict and strcase.
62822
62823 2003-10-10  Simon Josefsson  <jas@extundo.com>
62824
62825         * m4/argp.m4: Add AC_C_INLINE.
62826
62827 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62828
62829         Merge getpass from libc, plus a few fixes.
62830
62831         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
62832         Include <stdbool.h>.
62833         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
62834         __fsetlocking to empty.
62835         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
62836         do include <bits/libc-lock.h>.
62837         Do not include <fcntl.h>; not needed.
62838         [_LIBC]: Include <wchar.h>.
62839         (NOTCANCEL_MODE): New macro.
62840         (flockfile, funlockfile) [_LIBC]: New macros.
62841         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
62842         [!_LIBC]: New macros.
62843         (call_fclose): New function.
62844         (getpass): Use it.  Save tty stream separately; this simplifies the
62845         code and makes it more reliable if stdin happens to equal stdout.
62846         Invoke __fsetlocking on tty.
62847         Handle thread cancellation if needed.
62848         Namespace cleanup (use __tcgetattr, __getline).
62849         Use bool for Booleans.
62850         [USE_IN_LIBIO]: Handle wide streams.
62851         [!_LIBC]: Unconditionally do the fseek, since we don't know what
62852         stream might go where.
62853
62854         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
62855         doesn't have to include <stdio.h> before us.
62856         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
62857         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
62858         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
62859         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
62860         if not declared, so that we can use getpass.c code from libc without
62861         rewriting it.
62862         (flockfile, ftrylockfile, funlockfile): New macros.
62863
62864 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62865
62866         * modules/getpass: Depend on stdbool.
62867
62868 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62869
62870         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
62871
62872 2003-10-07  Karl Berry  <karl@gnu.org>
62873
62874         * config/config.{guess,sub}: update from config.
62875
62876 2003-10-06  Jim Meyering  <jim@meyering.net>
62877             Bruno Haible  <bruno@clisp.org>
62878
62879         This lets translators provide better translations for the
62880         "Written by ..." part of --version output.
62881         * lib/version-etc.h: Include stdarg.h.
62882         (version_etc_copyright): Declare as readonly.
62883         (version_etc): Make this function variadic with a NULL-terminated list
62884         of author name strings.
62885         (version_etc_va): New declaration.
62886         * lib/version-etc.c: Include stdarg.h, stdlib.h.
62887         (version_etc_copyright): Declare as readonly.
62888         (version_etc_va): New function. Provide a different translatable string
62889         for each possible number of authors < 10. Abbreviate when there are 10
62890         authors or more.
62891         (version_etc): Make this function variadic. Call version_etc_va.
62892         Suggestion from Gary V. Vaughan.
62893
62894         * lib/long-options.h (parse_long_options): Change prototype: the
62895         authors string is moved to the end and becomes variadic.
62896         * lib/long-options.c: Include stdarg.h.
62897         (parse_long_options): Make this function variadic, too.
62898         Call version_etc_va, not version_etc.
62899
62900 2003-10-06  Bruno Haible  <bruno@clisp.org>
62901
62902         * modules/version-etc-2: Remove file.
62903         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
62904
62905 2003-10-06  Bruno Haible  <bruno@clisp.org>
62906
62907         * modules/fatal-signal: New file.
62908         * MODULES.html.sh (func_all_modules): Add fatal-signal.
62909
62910 2003-10-06  Bruno Haible  <bruno@clisp.org>
62911
62912         * m4/fatal-signal.m4: New file.
62913         * m4/signalblocking.m4: New file, from GNU gettext.
62914
62915 2003-10-06  Bruno Haible  <bruno@clisp.org>
62916
62917         * lib/version-etc-2.h: Remove file.
62918         * lib/version-etc-2.c: Remove file.
62919
62920 2003-10-06  Bruno Haible  <bruno@clisp.org>
62921
62922         * lib/fatal-signal.h: New file, from GNU gettext.
62923         * lib/fatal-signal.c: New file, from GNU gettext.
62924
62925 2003-10-05  Paul Eggert  <eggert@twinsun.com>
62926
62927         * README: Rework advice for preventing empty .o files.
62928         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
62929         not <sys/types.h>.
62930
62931 2003-10-04  Karl Berry  <karl@gnu.org>
62932
62933         * lib/argp*: update from libc.
62934
62935 2003-10-04  Karl Berry  <karl@gnu.org>
62936
62937         * config/config.{guess,sub}: update from config.
62938
62939 2003-10-02  Bruno Haible  <bruno@clisp.org>
62940
62941         * modules/lchown (Include): Add lchown.h.
62942         * modules/time_r (Include): Use "..." syntax.
62943         * modules/xgetdomainname (Include): Add xgetdomainname.h.
62944
62945 2003-10-01  Simon Josefsson  <jas@extundo.com>
62946
62947         * MODULES.html.sh (func_all_modules): Move gethostname from section
62948         'based on' to section 'lacking' POSIX:2001.
62949
62950 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
62951
62952         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
62953         to output mode on the same stream.
62954
62955 2003-09-29  Paul Eggert  <eggert@twinsun.com>
62956
62957         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
62958         Fix arg typo in previous patch.
62959
62960 2003-09-28  Jim Meyering  <jim@meyering.net>
62961
62962         * lib/error.c: Correct cpp indentation.
62963
62964 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62965
62966         * modules/free: New file.
62967
62968 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62969
62970         * m4/free.m4: New file.
62971
62972 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62973
62974         * lib/minmax.h (MIN, MAX)
62975         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
62976         Omit the special code that used __typeof__, since we worry that
62977         it could be more trouble than it's worth.  See:
62978         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
62979         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
62980
62981         * lib/free.c: New file.
62982
62983 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
62984
62985         Trivial fixes to Makefile.am parts of module listings.
62986         * modules/strstr: Append strstr.h to lib_SOURCES.
62987         * modules/strcase: Likewise, for strcase.h.
62988
62989 2003-09-27  Karl Berry  <karl@gnu.org>
62990
62991         * config/mkinstalldirs: update from automake.
62992
62993 2003-09-26  Paul Eggert  <eggert@twinsun.com>
62994
62995         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
62996         (error_tail): Do not loop, reallocating temporary buffer, since
62997         the output cannot contain more wide characters than the input
62998         contains bytes, the size must be big enough already.  This avoids
62999         one potential size overflow calculation.  Check for size overflow
63000         when calculating temporary buffer size.  Free temporary buffer
63001         when done, if it was allocated with malloc; this plugs a memory
63002         leak.  Remove casts from void * to pointers, that are no longer
63003         needed now that we're assuming C89 or better.
63004
63005         Merge error changes from glibc.
63006
63007         * lib/error.c, error.h: Update copyright notice header to match glibc.
63008         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63009         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63010         Disable cancellation while printing error.
63011         * lib/error.h: Prepend __ to parameter names.
63012
63013 2003-09-26  Jim Meyering  <jim@meyering.net>
63014
63015         * lib/error.c (error_tail): Move some declarations
63016         into inner scope where the local variables are used.
63017
63018 2003-09-26  Bruno Haible  <bruno@clisp.org>
63019
63020         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63021         stpncpy().
63022         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63023
63024 2003-09-26  Bruno Haible  <bruno@clisp.org>
63025
63026         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63027         (stpncpy): Define as alias for gnu_stpncpy.
63028         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63029
63030 2003-09-25  Simon Josefsson  <jas@extundo.com>
63031
63032         * lib/xgetdomainname.h: New file.
63033         * lib/xgetdomainname.c: New file.
63034
63035 2003-09-25  Simon Josefsson  <jas@extundo.com>
63036             Bruno Haible  <bruno@clisp.org>
63037
63038         * modules/getdomainname: New file.
63039         * modules/xgetdomainname: New file.
63040         * MODULES.html.sh (func_all_modules): Add getdomainname,
63041         xgetdomainname.
63042
63043 2003-09-25  Simon Josefsson  <jas@extundo.com>
63044             Bruno Haible  <bruno@clisp.org>
63045
63046         * m4/getdomainname.m4: New file.
63047
63048 2003-09-25  Simon Josefsson  <jas@extundo.com>
63049             Bruno Haible  <bruno@clisp.org>
63050
63051         * lib/getdomainname.h: New file.
63052         * lib/getdomainname.c: New file.
63053
63054 2003-09-25  Karl Berry  <karl@gnu.org>
63055
63056         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63057
63058 2003-09-25  Karl Berry  <karl@gnu.org>
63059
63060         * config/install-sh: update from automake.
63061
63062 2003-09-25  Bruno Haible  <bruno@clisp.org>
63063
63064         * modules/version-etc-2: New file, from modules/version-etc with
63065         modifications.
63066         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63067
63068 2003-09-25  Bruno Haible  <bruno@clisp.org>
63069
63070         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63071         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63072
63073 2003-09-24  Simon Josefsson  <jas@extundo.com>
63074
63075         * modules/xgethostname: Add xgethostname.h.
63076
63077 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63078
63079         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63080         the buffer associated with the argument.  Bug reported by
63081         Simon Josefsson.
63082
63083 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63084
63085         * README: Document assumptions that 'int' is at least 32 bits
63086         wide, that integer arithmetic is 2's complement without overflow,
63087         that there are no holes in integer values, that adding sizes of
63088         two nonoverlapping objects can't overflow, and that all-bits-zero
63089         yields scalar zero.  Fix spelling and capitalization typos.
63090
63091 2003-09-19  Karl Berry  <karl@gnu.org>
63092
63093         * lib/argp.h: update from libc.
63094
63095 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63096
63097         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63098         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63099         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63100
63101 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63102
63103         * gnulib-tool: Use "test -h", not "test -L", for portability
63104         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63105         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63106         (sed_extract_prog): Issue s commands one-by-one, rather than
63107         using \| in one s command.
63108
63109 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63110
63111         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63112         input error, instead of returning NULL the next time we are called
63113         (and therefore losing track of errno).
63114
63115 2003-09-16  Bruno Haible  <bruno@clisp.org>
63116
63117         * gnulib-tool (func_create_testdir): Warn about duplicated
63118         dependencies.
63119
63120 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63121
63122         * modules/argmatch, modules/fatal, modules/obstack,
63123         modules/xalloc, modules/xgethostname: Sort dependencies by
63124         importance, not alphabetically.
63125
63126 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63127
63128         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63129         fails, so that the caller gets the proper errno.
63130
63131         * lib/readutmp.c (read_utmp): Likewise.
63132         Check for fstat error.  Close stream and free storage
63133         when failing.
63134
63135 2003-09-14  Karl Berry  <karl@gnu.org>
63136
63137         * config/srclist.txt (strdup.c): disable for c89 changes.
63138
63139 2003-09-14  Jim Meyering  <jim@meyering.net>
63140
63141         * lib/getloadavg.c: Correct cpp indentation.
63142         * lib/strdup.c: Likewise.
63143         * lib/vasnprintf.c: Likewise.
63144
63145 2003-09-14  Bruno Haible  <bruno@clisp.org>
63146
63147         * modules/fwriteerror: New file.
63148         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63149
63150 2003-09-14  Bruno Haible  <bruno@clisp.org>
63151
63152         * lib/fwriteerror.h: New file.
63153         * lib/fwriteerror.c: New file.
63154
63155 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63156
63157         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63158         modules/xgethostname, modules/xalloc: Depend on exit.
63159
63160 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63161
63162         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63163
63164         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63165         and AC_MINIX, too, so that their extensions are available.
63166
63167         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63168         This macro has been superseded by gl_BACKUPFILE.
63169
63170         More patches to assume C89 or better.
63171
63172         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63173
63174         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63175         unconditionally.
63176         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63177         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63178         Include <string.h>, <stdlib.h> unconditionally.
63179         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63180         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63181         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63182         headers or for string.h.
63183         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63184         or strtoul.
63185
63186         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63187         headers.
63188         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63189         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63190         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63191         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63192         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63193         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63194         memcpy, memset.
63195         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63196         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63197         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63198         strtol.
63199         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63200         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63201         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63202         strtoul.
63203
63204 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63205
63206         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63207         * lib/obstack.c [!defined _LIBC]: Likewise.
63208         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63209         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63210         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63211
63212         More changes to assume C89 or better.
63213
63214         * lib/error.c (error_tail): Assume vprintf.
63215
63216         * lib/argmatch.c (getenv): Remove decl.
63217         * lib/progreloc.c (get_full_program_name): Define via prototype.
63218         * lib/setenv.c (clearenv): Likewise.
63219         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63220         needed.
63221         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63222         (malloc, memcpy): Remove decls.
63223         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63224         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63225         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63226         (memcpy): Remove macro.
63227         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63228         (__P): Remove.  All uses removed.
63229         (PTR): Remove.  All uses changed to void *.
63230         (CHAR_BIT, NULL): Remove.
63231         (spaces, zeros, memset_space, memset_zero)
63232         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63233         Remove.
63234         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63235         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63236         Define with prototype.
63237         Remove now-unnecessary prototype decl.
63238         (extra_args_spec): Assume ANSI C.  All uses changed.
63239         (extra_args_spec_iso): Remove.
63240         (my_strftime, emacs_strftimeu): Define via prototype.
63241         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63242         unconditionally.
63243         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63244         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
63245         (strtoul, strtol): Remove decls.
63246         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
63247         LONG_MAX): Remove.
63248         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63249         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
63250         (LOCALE_PARAM_PROTO): New macro.
63251         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
63252         (INTERNAL (strtol), strtol): Define with a prototype.
63253         (PARAMS): Remove.  All uses removed.
63254         * lib/tempname.c: Include <string.h> unconditionally.
63255         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
63256         * lib/xgethostname.c (main): Define with a prototype.
63257         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
63258         Include <stdlib.h> unconditionally.
63259         (calloc, malloc, realloc, free): Remove decls.
63260         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
63261         Include <stdlib.h> unconditionally.  Sort include file names.
63262         (strtod): Remove.
63263         (xstrtod): Define with a prototype.
63264         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
63265         (strtol, strtoul): Remove decls.
63266
63267 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63268
63269         More patches to assume C89 or better.
63270         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
63271         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
63272         string.h, memchr, STDC_HEADERS.
63273
63274 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63275
63276         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
63277         Include <stdlib.h>, <string.h> unconditionally.
63278         Remove now-unnecessary cast to char *.
63279         * lib/strnlen.c: Include <string.h> unconditionally.
63280         * lib/yesno.c (yesno): Define with a prototype.
63281
63282 2003-09-11  Bruno Haible  <bruno@clisp.org>
63283
63284         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63285
63286 2003-09-10  Jim Meyering  <jim@meyering.net>
63287
63288         * lib/error.c: Correct indentation of cpp directives.
63289
63290 2003-09-10  Bruno Haible  <bruno@clisp.org>
63291
63292         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63293         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63294         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63295         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63296         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63297         <stdlib.h> and <string.h> checks.
63298         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63299         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63300
63301 2003-09-10  Bruno Haible  <bruno@clisp.org>
63302
63303         * lib/strcspn.c: Include <string.h> unconditionally.
63304         * lib/strpbrk.c: Include <string.h> unconditionally.
63305         * lib/strstr.c: Include <string.h> unconditionally.
63306         * lib/unicodeio.c: Include <string.h> unconditionally.
63307         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63308         * lib/unsetenv.c: Likewise.
63309         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63310         * lib/yesno.c: Include <stdlib.h> unconditionally.
63311         (rpmatch): Add prototype.
63312
63313 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63314
63315         More patches to assume C89 or better.
63316         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63317         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63318         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63319         or for string.h.
63320         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63321         stdlib.h.
63322         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63323         C headers.
63324         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63325         string.h.
63326         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63327         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63328         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63329         or for string.h.
63330         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63331         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63332         C headers.
63333         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63334         memcpy.
63335         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63336         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63337         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63338         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63339         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63340         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63341         string.h, free.
63342         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63343         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63344         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63345         C headers, or for string.h.
63346         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63347         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63348         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63349         headers, memory.h, stdlib.h, string.h, strings.h.
63350         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63351         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63352         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63353         strchr.
63354         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63355         headers, memory.h, string.h.
63356         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63357         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63358         free.
63359         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63360         headers.
63361         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63362         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63363         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63364         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63365         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63366
63367 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63368
63369         More K&R removal.
63370
63371         * lib/acosl.c (main): Use a prototype.
63372         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63373         tanl.c: Likewise.
63374
63375         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63376
63377         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63378         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63379         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63380         with a prototype.
63381         * lib/getopt.c (const): Remove macro.
63382         Include <string.h> unconditionally.
63383         (my_index): Remove; all uses changed to strchr.
63384         (strlen): Remove decl.
63385         (exchange): Remove forward decl; no longer needed.
63386         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63387         Define with prototype.
63388         * lib/getopt1.c (const): Remove macro.
63389         (getopt_long, getopt_long_only, main): Define with prototype.
63390
63391         * lib/getugroups.c: Include <string.h> unconditionally.
63392
63393         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63394         (getusershell, setusershell, endusershell, readname, main):
63395         Define with prototypes.
63396
63397         * lib/group-member.c: Include group-member.h first.
63398         Include <stdlib.h> unconditionally.
63399
63400         * lib/hard-locale.c: Include hard-locale.h first.
63401         Include <stdlib.h>, <string.h> unconditionally.
63402
63403         * lib/hash.c (free, malloc): Remove decls.
63404         Include <stdlib.h> unconditionally.
63405
63406         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63407         (getenv): Do not declare.
63408
63409         * lib/idcache.c: Include <string.h> unconditionally.
63410
63411         * lib/long-options.c: Include long-options.h first, to test interface.
63412         Include <stdlib.h> unconditionally.
63413
63414         * lib/makepath.c: Include makepath.h first, to test interface.
63415         Include <stdlib.h> and <string.h> unconditionally.
63416
63417         * lib/linebuffer.c: Include <stdlib.h>.
63418         (free): Remove decl.
63419
63420         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
63421         stddef.h. rpl_malloc returns void *, not char *.
63422         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
63423         prototype.
63424
63425         * lib/md5.h: Include <limits.h> unconditionally.
63426         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
63427         (__P): Remove; all uses removed.
63428         * lib/md5.c: Include "md5.h" first.
63429         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63430         md5_buffer, md5_process_bytes, md5_process_block):
63431         Define with prototypes.
63432         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
63433         * lib/sha.c: Include "sha.h" first.
63434         Include <stdlib.h>, <string.h> unconditionally.
63435
63436         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
63437         * lib/memcmp.c (__ptr_t): Likewise.
63438         * lib/memrchr.c (__ptr_t): Likewise.
63439         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
63440         Include <string.h> unconditionally.
63441         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
63442         * lib/memchr.c: Include <stdlib.h> unconditionally.
63443         * lib/memchr.c (LONG_MAX): Remove.
63444         * lib/memrchr.c (LONG_MAX): Likewise.
63445         * lib/memchr.c (__memchr): Define via a prototype.
63446         * lib/memrchr.c (__memrchr): Likewise.
63447         * lib/memcmp.c (__P): Remove, and remove all uses.
63448         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
63449         Remove forward decls; no longer needed.
63450         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
63451         Use types required by C89 in prototype.
63452
63453         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
63454         * lib/savedir.c: Likewise.
63455         * lib/mkdir.c (free): Remove decl.
63456         * lib/rmdir.c (rmdir): Define with a prototype.
63457         * lib/savedir.c: Include savedir.h first, to test interface.
63458
63459         * lib/mktime.c (STDC_HEADERS): Remove.
63460         Include <stdlib.h>, <string.h> unconditionally.
63461
63462         * lib/modechange.c: Include <stdlib.h> unconditionally.
63463         (malloc): Remove decl.
63464
63465         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
63466         (free): Remove decl.
63467
63468         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
63469         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
63470         (This type really should be intptr_t, but that's a C99ism.)
63471         (_obstack_memcpy): Remove: all uses changed to memcpy.
63472         Include <string.h> unconditionally.
63473         (struct obstack): Assume __STDC__ for types of members
63474         chunkfun, freefun, extra_arg.
63475         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
63476         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
63477         obstack_begin, obstack_specify_allocation,
63478         obstack_specify_allocation_with_arg, obstack_chunkfun,
63479         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
63480         Remove unprototyped decls and the macros that use them.
63481         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
63482         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
63483         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
63484         (defined __STDC__ && __STDC__)]:
63485         Remove nonprototyped code.
63486         Include <stdlib.h> unconditionally.
63487         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
63488         _obstack_allocated_p, _obstack_free, obstack_free,
63489         _obstack_memory_used, print_and_abort):
63490         Define using prototypes.
63491         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
63492         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
63493         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
63494         obstack_next_free, obstack_object_size, obstack_room) [0]:
63495         Remove unused, unprototyped code.
63496
63497         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
63498
63499         * lib/physmem.c (physmem_total, physmem_available, main): Define
63500         with prototypes.
63501
63502         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
63503         (main): Define with a prototype.
63504
63505         * lib/posixver.c (getenv): Remove decl.
63506
63507         * lib/putenv.c (malloc): Returns void *, not char *.
63508         Include <string.h> unconditionally.
63509         (strchr, memcpy, NULL): Do not define.
63510
63511         * lib/readtokens.c: Include readtokens.h first, to test interface.
63512         Include <stdlib.h>, <string.h> unconditionally.
63513         (init_tokenbuffer): Define with a prototype.
63514
63515         * lib/regex.c (PARAMS): Remove.  All uses removed.
63516         All uses of _RE_ARGS removed, too.
63517         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63518         unconditionally.
63519         (bzero): Assume memset exists.
63520         (memcmp, memcpy, NULL): Remove.
63521         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
63522         char, or assignments to local vars of type signed char.
63523         (init_syntax_once, PREFIX(extract_number_and_incr),
63524         PREFIX(print_partial_compiled_pattern),
63525         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
63526         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
63527         PREFIX(regex_grow_registers), PREFIX(regex_compile),
63528         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
63529         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
63530         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
63531         wcs_compile_range, byte_compile_range, truncate_wchar,
63532         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
63533         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
63534         count_mbs_length, wcs_re_match_2_internal,
63535         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
63536         PREFIX(alt_match_null_string_p),
63537         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
63538         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
63539         regfree, PREFIX(extract_number)): Define with prototype.  Remove
63540         now-unnecessary declaration, if any.
63541         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
63542         regcomp, regexec):
63543         Remove now-unnecessary casts among pointer types.
63544         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
63545
63546         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
63547         (free): Remove decl.
63548
63549         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
63550
63551         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
63552         (free): Remove decl.
63553
63554         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
63555         * lib/xgetcwd.c: Likewise.
63556
63557         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
63558         (free): Remove decl.
63559
63560         * lib/strchrnul.c (strchrnul): Define with a prototype.
63561         Fix bug: c_in was not converted to char before searching.
63562
63563         The following changes are not K&R related:
63564
63565         * lib/group-member.h: Include <sys/types.h>, so that this file is
63566         self-contained.
63567         * lib/makepath.h: Likewise.
63568
63569         * lib/getusershell.c (readname, default_index, line_size, readname):
63570         Use size_t, not int, for sizes.
63571         (readname): If the size overflows, report an error instead of
63572         looping forever.
63573
63574 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63575
63576         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
63577         libc.
63578
63579 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63580
63581         * README: New section: portability guidelines.
63582
63583 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63584
63585         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
63586         C89 spec.
63587
63588 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63589
63590         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
63591
63592 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63593
63594         Assume C89 or better; remove K&R cruft.
63595         A few of these changes were first proposed by Derek Robert Price
63596         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
63597
63598         * lib/addext.c: Include <string.h> unconditionally.
63599         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
63600         Don't declare getenv or malloc.
63601
63602         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
63603         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
63604         (NULL): Remove.
63605         (find_stack_direction, alloca): Use prototypes.
63606
63607         * lib/atexit.c (atexit): Define using a prototype.
63608
63609         * lib/basename.c, dirname.c, stripslash.c:
63610         Include <string.h> unconditionally.
63611
63612         * lib/bcopy.c: Include <stddef.h>.
63613         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
63614
63615         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
63616
63617         * lib/error.h (error, error_at_line, error_print_progname)
63618         [! (defined (__STDC__) && __STDC__)]: Remove decls.
63619         * lib/error.c: Include error.h first, to check interface.
63620         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63621         (VA_START): Remove; all uses changeed to va_start.
63622         (exit, strerror): Remove decls.
63623         (error_print_progname): Prototype uncondionally.
63624         Don't include <errno.h>; no longer needed.
63625         (private_strerror): Remove.
63626         (error_tail): Always define.
63627         (error, error_at_line): Assume C89 or better; always use prototypes.
63628         * lib/fatal.c: Include "fatal.h" first, to test interface.
63629         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63630         (VA_START): Remove; all uses changed to va_start.
63631         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
63632         this case.
63633         (exit): Remove decl.
63634         (fatal): Prototype unconditionally.  Assume va_start works.
63635         Abort at end, to pacify gcc.
63636
63637         * lib/euidaccess.c (main): Define with a prototype.
63638
63639         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
63640
63641         * lib/exitfail.c: Include <stdlib.h> unconditionally.
63642
63643         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
63644         prototypes.
63645         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
63646         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
63647         (getenv): Remove decl.
63648         (fnmatch): Define using a prototype.
63649         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
63650         (FCT): Define using a prototype.
63651
63652         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
63653
63654         * lib/gethostname.c: Include <stddef.h>.
63655         (gethostname): Define with prototype.  Length is size_t, not int.
63656
63657 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63658
63659         Assume C89 or better; remove K&R cruft.
63660         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
63661         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
63662         string.h, getenv, malloc.
63663         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
63664         headers.
63665         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
63666         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
63667         do not check for strerror.
63668         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
63669         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
63670         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
63671         do not check for doprnt or vprintf.
63672         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
63673         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
63674
63675 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63676
63677         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
63678         getversion.c should have been removed then, but was accidentally
63679         preserved.
63680
63681         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
63682         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
63683
63684 2003-09-08  Karl Berry  <karl@gnu.org>
63685
63686         * config/config.sub, config.guess, srclistvars.sh: update from savannah
63687                 config, forget about prep.
63688
63689         * config/depcomp, missing: update from automake.
63690
63691 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63692
63693         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
63694         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63695
63696 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63697
63698         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
63699         copy_tm_result.  Bug reported by Simon Josefsson in
63700         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63701
63702 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63703
63704         * m4/time_r.m4: New file.
63705         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
63706         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
63707         is. Check for timegm declaration.
63708         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
63709         Do not check for gmtime_r.
63710         Replace mktime if __mktime_internal does not exist and if mktime
63711         hasn't been replaced already.
63712
63713 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63714
63715         * lib/time_r.c, lib/time_r.h: New files.
63716
63717         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
63718         __localtime_r.
63719         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
63720         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
63721
63722         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
63723         __gmtime_r.
63724         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
63725         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
63726         Include <time_r.h>.
63727
63728         * lib/timegm.c: Switch to glibc implementation, with the following
63729         changes:
63730         [defined HAVE_CONFIG_H]: Include <config.h>.
63731         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
63732         (__mktime_internal) [!defined _LIBC]: New decl.
63733         (__gmtime_r) [!defined _LIBC]: New macro and function.
63734         (timegm): Use a prototype, since gnulib assumes C89.
63735         Do not bother declaring tmp to be const, as it's not really usefu.
63736         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
63737         (timegm): Declare only if HAVE_DECL_TIMEGM.
63738
63739 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63740
63741         * MODULES.html.sh (func_all_modules): Add time_r.
63742         * modules/time_r: New file.
63743         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
63744         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
63745
63746 2003-09-03  Paul Eggert  <eggert@twinsun.com>
63747
63748         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
63749         Bug reported by Lute Kamstra in
63750         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
63751
63752         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
63753         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
63754         course with correspondingly smaller numbers for tomorrow and
63755         yesterday.  From Tadayoshi Funaba.  Originally installed into
63756         sh-utils on 1999-08-07, but the patch got lost (I guess during the
63757         coreutils merge?).
63758
63759 2003-08-31  Simon Josefsson  <jas@extundo.com>
63760
63761         * modules/timegm: New file.
63762         * MODULES.html.sh (func_all_modules): Add timegm.
63763
63764 2003-08-31  Simon Josefsson  <jas@extundo.com>
63765
63766         * m4/timegm.m4: New file.
63767
63768 2003-08-31  Simon Josefsson  <jas@extundo.com>
63769
63770         * lib/timegm.h: New file.
63771         * lib/timegm.c: New file.  Based on
63772         wget-1.8.2/src/http.c:mktime_from_utc.
63773
63774 2003-08-31  Karl Berry  <karl@gnu.org>
63775
63776         * lib/argp.h: update from libc.
63777
63778 2003-08-28  Bruno Haible  <bruno@clisp.org>
63779
63780         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
63781         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
63782         followed by '#define fnmatch fnmatch_posix' gives an error.
63783
63784 2003-08-28  Bruno Haible  <bruno@clisp.org>
63785
63786         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
63787         warning on QNX, which defines O_BINARY to 000000.
63788
63789 2003-08-27  Jim Meyering  <jim@meyering.net>
63790
63791         * m4/mkstemp.m4: Require that the system mkstemp be able to create
63792         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
63793         would fail after 32.  Reported by Danny Levinson.  Details here:
63794         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
63795
63796 2003-08-24  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
63799         MSVC7 <stdio.h> is included later.
63800
63801 2003-08-22  Simon Josefsson  <jas@extundo.com>
63802
63803         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
63804
63805 2003-08-20  Karl Berry  <karl@gnu.org>
63806
63807         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
63808
63809 2003-08-20  Bruno Haible  <bruno@clisp.org>
63810
63811         * modules/progname: New file.
63812         * MODULES.html.sh (func_all_modules): Add progname.
63813
63814 2003-08-20  Bruno Haible  <bruno@clisp.org>
63815
63816         * lib/progname.h: New file, from GNU gettext.
63817         * lib/progname.c: New file, from GNU gettext.
63818         * lib/progreloc.c: New file, from GNU gettext.
63819
63820 2003-08-19  Jim Meyering  <jim@meyering.net>
63821
63822         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
63823         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
63824
63825 2003-08-19  Bruno Haible  <bruno@clisp.org>
63826
63827         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
63828         more.
63829
63830 2003-08-19  Bruno Haible  <bruno@clisp.org>
63831
63832         * lib/xstrdup.c: Assume <string.h> exists.
63833
63834 2003-08-18  Paul Eggert  <eggert@twinsun.com>
63835
63836         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
63837         in makefile rules.
63838
63839 2003-08-18  Jim Meyering  <jim@meyering.net>
63840
63841         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
63842         * m4/lib-ld.m4: Likewise.
63843
63844 2003-08-18  Jim Meyering  <jim@meyering.net>
63845
63846         * lib/setenv.h: Indent nested cpp directive.
63847         * lib/vasnprintf.c: Remove trailing blanks.
63848
63849 2003-08-17  Simon Josefsson  <jas@extundo.com>
63850
63851         * modules/xstrndup: New file.
63852         * MODULES.html.sh (func_all_modules): Add xstrndup.
63853
63854 2003-08-17  Simon Josefsson  <jas@extundo.com>
63855
63856         * modules/argp: Fix autoconf macro name. Add more dependencies.
63857
63858 2003-08-17  Simon Josefsson  <jas@extundo.com>
63859
63860         * m4/xstrndup.m4: New file.
63861
63862 2003-08-17  Simon Josefsson  <jas@extundo.com>
63863
63864         * m4/argp.m4: New file.
63865
63866 2003-08-17  Simon Josefsson  <jas@extundo.com>
63867             Bruno Haible  <bruno@clisp.org>
63868
63869         * lib/xstrndup.h: New file.
63870         * lib/xstrndup.c: New file.
63871
63872 2003-08-17  Bruno Haible  <bruno@clisp.org>
63873
63874         * modules/strndup (Files, Include): Add lib/strndup.h.
63875
63876 2003-08-17  Bruno Haible  <bruno@clisp.org>
63877
63878         * modules/euidaccess (Files): Add lib/euidaccess.h.
63879
63880 2003-08-17  Bruno Haible  <bruno@clisp.org>
63881
63882         * lib/strndup.h: New file.
63883
63884 2003-08-17  Bruno Haible  <bruno@clisp.org>
63885
63886         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
63887         like AC_GNU_SOURCE.
63888         * modules/extensions (configure.ac): Comment out the invocation of
63889         gl_USE_SYSTEM_EXTENSIONS.
63890
63891 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63892
63893         Merges from coreutils, etc.
63894         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
63895         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
63896         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
63897         fixing a typo.
63898         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
63899         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
63900
63901 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63902
63903         Document merge from coreutils.
63904         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
63905         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
63906         * modules/utime: Add m4/utimes-null.m4.
63907
63908 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63909
63910         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
63911         space, undoing this 2003-08-12 change:
63912         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
63913
63914 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63915
63916         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
63917         strtoul.c from libc, undoing this 2003-08-12 change:
63918         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
63919
63920 2003-08-16  Jim Meyering  <jim@meyering.net>
63921
63922         Merges from coreutils.
63923         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
63924         prefix.  Adjust cache variables similarly.  Create 500 rather than
63925         just 300 files, to exercise bug on Darwin6.5, too.
63926         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
63927         $missing_dir.
63928         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
63929         AM_SYS_POSIX_TERMIOS.
63930         Reported by mkc@mathdogs.com.
63931         Also change use of $am_cv_sys_posix_termios
63932         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
63933         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
63934         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
63935         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
63936         in /proc/mounts until it finds one with matching device number.  This
63937         is unnecessary when the FILE argument *is* a mount point.  No stat call
63938         is necessary in that case.  So, disable the statvfs-testing code on
63939         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
63940         as RedHat bug# 84846.
63941         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
63942         to 1MB, so as not to render systems with no stack size limit (e.g.,
63943         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
63944         Include <unistd.h>.  On some systems,
63945         it is required for the definition of _SC_PAGESIZE.
63946
63947 2003-08-16  Jim Meyering  <jim@meyering.net>
63948
63949         Merge from coreutils.
63950         * lib/xstrtoimax.c: #else #if -> #elif.
63951         * lib/xstrtoumax.c: Likewise.
63952
63953 2003-08-16  Jim Meyering  <jim@meyering.net>
63954
63955         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
63956         * m4/utimes.m4: Removed.
63957         * m4/utimes-null.m4: Renamed from utimes.m4.
63958
63959         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
63960         to 1MB, so as not to render systems with no stack size limit (e.g.,
63961         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
63962         Include <unistd.h>.  On some systems,
63963         it is required for the definition of _SC_PAGESIZE.
63964
63965 2003-08-16  Jim Meyering  <jim@meyering.net>
63966         and Paul Eggert  <eggert@cs.ucla.edu>
63967
63968         Merges from coreutils, etc.
63969
63970         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
63971         using the latest version from cvs.  This avoids problems with #line
63972         directives using a vendor (Sun) compiler.
63973         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
63974         Don't set GETGROUPS_LIB here; now it's
63975         done via getgroups.m4's wrapper function.
63976         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
63977         rather than just in sh-util/configure.in, so that the
63978         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
63979         same.
63980         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
63981         AC_FUNC_GETLOADAVG where to find getloadavg.c.
63982         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
63983         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
63984         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
63985         Remove code that is now done by the newly-required macros.
63986         Append $(EXEEXT) to DF_PROG.
63987         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
63988         Do not invoke or require the following here,
63989         since prereq.m4 or some gnulib .m4 now does this for us:
63990         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
63991         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
63992         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
63993         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
63994         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
63995         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
63996         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
63997         AC_FUNC_OBSTACK.
63998         Do not replace the following functions, as this is now the job
63999         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64000         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64001         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64002         atexit getpass, strdup, getpagesize.
64003         Replace 'raise'.
64004         Do not check for the following functions, as this is now the job
64005         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64006         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64007         setregid.
64008         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64009         Check for sys/sysctl.h.
64010         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64011         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64012         of checking for ssize_t ourselves.
64013
64014         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64015         Require every macro that gnulib/modules/* suggests for us.
64016         (jm_PREREQ_ADDEXT): New macro.
64017         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64018         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64019
64020         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64021         (gl_PHYSMEM): Use it.
64022         Also check for `table' function.
64023         Check for new headers and functions.
64024         Add check for sys/sysmp.h.
64025         With suggestions from Kaveh Ghazi.
64026         Ignore headers that are present but cannot be compiled.  This
64027         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64028         C 5.4.
64029
64030 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64031
64032         Document merge from coreutils.
64033         * modules/userspec: Depend on posixver.
64034         * modules/strftime: Depend on tzset.
64035
64036 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64037
64038         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64039         rather than tab, after '#' in shell-script copyright notices.
64040         Suggested by Bruno Haible.
64041
64042 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64043
64044         * config/srclist-update: Use three spaces, rather than tab, after '#'
64045         in shell-script copyright notices.  Suggested by Bruno Haible.
64046         Remove unnecessary parenthesization in regular expression.
64047
64048 2003-08-15  Jim Meyering  <jim@meyering.net>
64049
64050         Merge from coreutils.
64051         * lib/xgethostname.c: Include <stdlib.h>.
64052         (xghostname): Don't exit for anything other than memory-related
64053         failure; just return NULL.
64054         * lib/userspec.c: Include "posixver.h".
64055         (parse_user_spec): Accept `.' as a separator only
64056         in pre-POSIX-200112 mode.
64057         * lib/strtoimax.c: Use #elif rather than #else #if.
64058         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64059         Remove function, now that we can rely on a working tzset function.
64060         [!_LIBC]: Ensure that the required autoconf test has been run.
64061         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64062         Use underlying_strftime for %r.
64063         * lib/sha.c: Merge in some clean-up and optimization changes from
64064         glibc.
64065         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64066         Ensure that it is a multiple of 64.
64067         Rearrange loop exit tests so as to avoid performing an
64068         additional fread after encountering an error or EOF.
64069         * lib/realloc.c: Update copyright date.
64070
64071 2003-08-15  Jim Meyering  <jim@meyering.net>
64072         and Paul Eggert  <eggert@twinsun.com>
64073
64074         Merge from coreutils.
64075         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64076         member but strut utmpx does not.  Needed for AIX 4.3.3.
64077         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64078
64079 2003-08-15  Jim Meyering  <jim@meyering.net>
64080         and Paul Eggert  <eggert@cs.ucla.edu>
64081
64082         Merges from coreutils, etc.
64083         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64084         Require gl_FUNC_TZSET_CLOBBER.
64085         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64086         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64087         members.
64088
64089 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64090
64091         Help the merge from coreutils.
64092         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64093         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64094         * m4/tzset.m4: Use it too.
64095
64096 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64097
64098         * modules/tzset: New file.
64099
64100 2003-08-14  Jim Meyering  <jim@meyering.net>
64101
64102         Merges from coreutils.
64103         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64104         variable names, rather than @FNMATCH_H@.
64105         * modules/alloca: Likewise for $(ALLOCA_H).
64106
64107         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64108         the three copies of the literal target, `fnmatch.h'.
64109         * modules/alloca (alloca.h): Likewise.
64110
64111 2003-08-14  Jim Meyering  <jim@meyering.net>
64112
64113         Merge from coreutils.
64114         * m4/tzset.m4: New file.
64115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64116         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64117         otherwise, AIX 5.1 systems would end up using the latter.
64118         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64119         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64120         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64121         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64122
64123 2003-08-14  Jim Meyering  <jim@meyering.net>
64124
64125         Merge from coreutils.
64126         * lib/obstack.h: Whitespace changes.
64127         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64128         and xcalloc return values.
64129         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64130         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64131         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64132         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64133         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64134         error from mntctl.
64135         Use mntctl's return value to drive the entry-processing loop, since
64136         we can't rely on the value of the vmt_length member in the last
64137         entry.  On some systems doing so could result in exhausting
64138         virtual memory.  Based in part on a patch from Mike Jetzer.
64139
64140 2003-08-14  Jim Meyering  <jim@meyering.net>
64141         and Paul Eggert  <eggert@twinsun.com>
64142
64143         Merges from coreutils, plus other fixes.
64144         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64145         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64146         for credits and details.  Thanks to Kaveh Ghazi for helping
64147         to keep these files in sync.
64148         (ARRAY_SIZE): Define it.
64149         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64150         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64151         (memcasecmp): Don't assume size_t fits in unsigned int.
64152         Remove casts and duplicate code.
64153         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64154         (memcpy): Remove definition.
64155         Merge in some clean-up and optimization changes from glibc.
64156         [BLOCKSIZE]: Move definition to top of file.
64157         Ensure that it is a multiple of 64.
64158         Rearrange loop exit tests so as to avoid performing an
64159         additional fread after encountering an error or EOF.
64160         * lib/md5.h (md5_uintptr): Define.
64161         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64162         return to the initial working directory.  Preserve errno
64163         for caller.
64164         * lib/idcache.c: Include "xalloc.h".
64165         (xmalloc, xrealloc): Remove decls.
64166         (getuser): Remove casts no longer required in C89.
64167         * lib/human.c: Include stdio.h, for sprintf.
64168         * lib/group-member.c: Include "xalloc.h".
64169         (xmalloc, xrealloc): Remove decls.
64170         (get_group_info): Remove casts no longer required in C89.
64171         * lib/getusershell.c (readname): Remove casts no longer required in
64172         C89.
64173         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64174         * lib/getline.c: Whitespace fix, from coreutils.
64175
64176 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64177
64178         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64179         Check for isascii.
64180
64181         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64182         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64183         Undo previous (whitespace-only) change.
64184
64185 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64186
64187         * lib/exclude.c: Include <ctype.h>
64188         (IN_CTYPE_DOMAIN): New macro.
64189         (is_space): New fn.
64190         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64191         and empty lines.
64192
64193         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64194         Undo previous (whitespace-only) change.
64195
64196 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64197
64198         * config/srclist-update: Change update back to the old behavior,
64199         leaving whitespace alone.  Use one 'sed' command rather than a
64200         pipeline.
64201         (fixlicense): Now a variable, not a function.
64202         (remove_trailing_blanks): Remove.
64203         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64204         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64205         Undo previous (whitespace-only) change.
64206
64207 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64208
64209         Merge from coreutils.
64210         * modules/euidaccess: Add lib_SOURCES, include for new
64211         file euidaccess.h
64212
64213 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64214
64215         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64216         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64217         Normalize leading white space and remove trailing white space.
64218
64219         Merge from coreutils
64220         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64221
64222         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64223         0.12.1.  These files are now being upgraded automatically by
64224         ../config/srclist-update.
64225
64226 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64227
64228         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64229         Normalize leading white space and remove trailing white space.
64230         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64231         notice, as per ../config/srclist-update.
64232
64233         Merge from coreutils.
64234         * lib/euidaccess.h: New file.
64235         * lib/euidaccess.c: Include it.
64236         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64237         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64238         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64239
64240 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64241
64242         * config/srclist-update: Add copyright notice.
64243         (remove_id_lines, remove_trailing_blanks): New constants.
64244         (fixfile): Use them to normalize spacing a bit in copied files.
64245         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64246         Normalize leading white space and remove trailing white space.
64247
64248         * config/texinfo.tex: Sync with texinfo.
64249
64250         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
64251         strtoul.c from libc, to merge coreutils whitespace changes.
64252
64253         * config/srclist.txt: Get the following m4 files from gettext:
64254         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
64255         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
64256         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
64257         wint_t.m4.
64258
64259 2003-08-12  Karl Berry  <karl@gnu.org>
64260
64261         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
64262         been made.
64263
64264 2003-08-11  Paul Eggert  <eggert@twinsun.com>
64265
64266         * modules/gnu-source, m4/gnu-source.m4:
64267         Remove; we're assuming Autoconf 2.54 or later now.
64268         Suggested by Bruno Haible.
64269         * MODULES.html.sh (func_all_modules): Remove gnu-source.
64270
64271 2003-08-11  Bruno Haible  <bruno@clisp.org>
64272
64273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
64274
64275 2003-08-11  Bruno Haible  <bruno@clisp.org>
64276
64277         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
64278         (vasnprintf): Use it instead of wcslen.
64279
64280 2003-08-11  Bruno Haible  <bruno@clisp.org>
64281
64282         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
64283         value to ensure that _Bool promotes to int. Use #define for _Bool when
64284         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64285
64286 2003-08-10  Karl Berry  <karl@gnu.org>
64287
64288         * lib/regex.h: update from libc (whitespace fix).
64289
64290 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64291
64292         Merge some files from coreutils.  These changes were
64293         originally made by Jim Meyering.
64294         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64295         many older Unixes require this.
64296         * lib/alloca.c (alloca): Remove cast to argument of free;
64297         no longer needed in C89.
64298         * lib/alloca_.h, regex.h: Fix white space to match
64299         what GNU indent does.
64300
64301 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64302
64303         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64304         apparently Emacs's Unicode mode got confused before my 2003-08-05
64305         checkin.
64306
64307 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64308
64309         * m4/extensions.m4: New file.
64310         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64311         Require gl_USE_SYSTEM_EXTENSIONS.
64312         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64313         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64314
64315 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64316
64317         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64318         * modules/extensions, modules/gnu-source: New files.
64319         * modules/timespec, modules/unlocked-io: Depend on extensions.
64320
64321 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64322
64323         * modules/restrict: New file.
64324         * MODULES.html.sh (func_all_modules): Add restrict.
64325         * modules/regex: Depend on restrict.
64326
64327 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64328
64329         * m4/restrict.m4: New file.
64330         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64331
64332 2003-08-07  Bruno Haible  <bruno@clisp.org>
64333
64334         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64335         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64336
64337 2003-08-07  Bruno Haible  <bruno@clisp.org>
64338
64339         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64340         makes the module 'getndelim2' compatible with the module 'getline'.
64341
64342 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64343
64344         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64345         byte with "\201" to avoid glitches when editing that source file
64346         with multi-gnome-terminal.
64347
64348 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64349
64350         * lib/bumpalloc.h: Remove.
64351
64352 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64353
64354         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64355         * modules/bumpalloc: Remove.
64356
64357 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64358
64359         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64360         GNU coding style.
64361
64362         Merge from coreutils.
64363         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64364         1. From glibc.
64365         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64366         from Karl Berry, implemented by Jim Meyering.
64367         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64368         from Dmitry V. Levin.
64369         Remove anachronistic cast of xrealloc.
64370         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64371         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64372         type. Otherwise, it wouldn't compile with at least /bin/cc on
64373         ymp-cray-unicos9.0.2.X.
64374         Combine two mostly-identical uses of alloca into one.
64375         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64376
64377 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64378
64379         [From Emacs.]
64380
64381         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64382         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64383         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64384         obsolete NLIST_NAME_UNION.
64385         [__GNU__]: Undef BSD and FSCALE.
64386         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64387
64388 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64389
64390         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64391         an enum type, so that it's guaranteed to promote to int.  See:
64392         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64393
64394 2003-08-03  Karl Berry  <karl@gnu.org>
64395
64396         * config/depcomp: update from automake.
64397
64398 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64399
64400         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64401         (strerror): Don't assume that a printable int fits in 14 bytes.
64402
64403 2003-07-31  Bruno Haible  <bruno@clisp.org>
64404
64405         * modules/getpass-gnu: New file.
64406         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64407
64408 2003-07-31  Bruno Haible  <bruno@clisp.org>
64409
64410         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64411
64412 2003-07-24  Karl Berry  <karl@gnu.org>
64413
64414         * config/missing: update from automake.
64415
64416 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
64417             Bruno Haible  <bruno@clisp.org>
64418
64419         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
64420         * lib/getline.c (getline, getdelim): Likewise.
64421         Remove _GNU_SOURCE define; now it's defined in config.h through
64422         m4/getline.m4.
64423
64424 2003-07-23  Karl Berry  <karl@gnu.org>
64425
64426         * config/config.sub: update from prep.
64427
64428 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64429
64430         * modules/xalloc (Depends-on): Add exitfail.
64431         * modules/xmemcoll: Likewise.
64432
64433 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64434
64435         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
64436         over-parenthesization in macros.
64437
64438         Sync with coreutils.
64439
64440         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
64441         required by C99.
64442
64443         Use `exit_failure' for xalloc and xmemcoll instead of their own
64444         private exit-failure variables.
64445         * lib/xalloc.h (xalloc_exit_failure): Remove.
64446         * lib/xmalloc.c: Likewise.  Include exitfail.h.
64447         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
64448         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
64449         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
64450         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
64451
64452 2003-07-20  Jim Meyering  <jim@meyering.net>
64453
64454         * modules/closeout (Depends-on): Add exitfail.
64455         Suggestion from Bruno Haible.
64456
64457 2003-07-19  Karl Berry  <karl@gnu.org>
64458
64459         * config/config.sub: update from prep.
64460
64461 2003-07-18  Paul Eggert  <eggert@twinsun.com>
64462
64463         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
64464         Remove.
64465         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
64466         to test that it can stand by itself.  Include "exitfail.h".
64467         Clients should set exit_failure instead.
64468         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
64469
64470 2003-07-18  Bruno Haible  <bruno@clisp.org>
64471
64472         * modules/getndelim2: New file.
64473         * modules/getline: Share files with module getndelim2.
64474         * modules/getnline: Depend on getndelim2 instead of sharing files with
64475         it. Add getnline.c to lib_SOURCES.
64476         * MODULES.html.sh (func_all_modules): Add getndelim2.
64477
64478 2003-07-18  Bruno Haible  <bruno@clisp.org>
64479
64480         * m4/getndelim2.m4: New file.
64481         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
64482         invoke gl_PREREQ_GETNDELIM2.
64483         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
64484         gl_PREREQ_GETNDELIM2.
64485         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
64486         gl_GETNDELIM2.
64487
64488 2003-07-18  Bruno Haible  <bruno@clisp.org>
64489
64490         * lib/getndelim2.h: New file.
64491         * lib/getndelim2.c: Make into a module of its own. Include config.h,
64492         getndelim2.h.
64493         (getndelim2): Make non-static. Change return type to ssize_t.
64494         * lib/getline.h: Change argument names.
64495         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
64496         * lib/getnline.c: Include getndelim2.h.
64497
64498 2003-07-18  Andreas Schwab  <schwab@suse.de>
64499
64500         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
64501
64502 2003-07-17  Karl Berry  <karl@gnu.org>
64503
64504         * config/config.sub: update from prep.
64505
64506 2003-07-17  Bruno Haible  <bruno@clisp.org>
64507
64508         * modules/getnline: New file.
64509         * modules/getline: Add lib/getndelim2.c to source file list.
64510         * MODULES.html.sh (func_all_modules): Add getnline.
64511
64512 2003-07-17  Bruno Haible  <bruno@clisp.org>
64513
64514         * m4/getnline.m4: New file.
64515
64516 2003-07-17  Bruno Haible  <bruno@clisp.org>
64517
64518         * m4/Makefile.am.in: Remove file.
64519         * m4/Makefile.am: Remove file.
64520         * m4/Makefile.in: Remove file.
64521
64522 2003-07-17  Bruno Haible  <bruno@clisp.org>
64523
64524         * lib/getnline.h: New file.
64525         * lib/getnline.c: New file.
64526         * lib/getndelim2.c: New file, extracted from getline.c.
64527         (getndelim2): Renamed from getdelim2, with added nmax argument.
64528         * lib/getline.c: Include getndelim2.c.
64529         (getdelim2): Moved out to getndelim2.c.
64530         (getline, getdelim): Update.
64531
64532 2003-07-17  Bruno Haible  <bruno@clisp.org>
64533
64534         * lib/Makefile.am: Remove file.
64535         * lib/Makefile.in: Remove file.
64536
64537 2003-07-17  Bruno Haible  <bruno@clisp.org>
64538
64539         * configure.in: Remove file.
64540         * Makefile.in: Remove file.
64541
64542 2003-07-17  Bruno Haible  <bruno@clisp.org>
64543
64544         * MODULES.html.sh: Put the </BODY> right before </HTML>.
64545
64546 2003-07-16  Karl Berry  <karl@gnu.org>
64547
64548         * config/srclist-update: was running fixlicense twice, which caused
64549                 texinfo.tex to be nullified for some reason.  Simplify,
64550                 $gplsrc is no longer needed as far as I can see?
64551
64552 2003-07-16  Jim Meyering  <jim@meyering.net>
64553
64554         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
64555
64556 2003-07-15  Paul Eggert  <eggert@twinsun.com>
64557
64558         * config/srclist.txt: Get the following files from gettext-runtime/intl
64559         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
64560         ref-del.sin.  From Bruno Haible.
64561         * config/srclist-update (fixfile): Change grep pattern again, since the
64562         previous fix didn't work (there was another trailing $).  Use
64563         '[$]' to escape the $s.
64564
64565 2003-07-15  Karl Berry  <karl@gnu.org>
64566
64567         * lib/vasnprintf.c: update from gettext.
64568
64569 2003-07-15  Karl Berry  <karl@gnu.org>
64570
64571         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
64572         gets expanded when surrounded by '$'.
64573
64574 2003-07-15  Jim Meyering  <jim@meyering.net>
64575
64576         * modules/save-cwd: Don't depend on error.  From Derek Price.
64577
64578 2003-07-15  Jim Meyering  <jim@meyering.net>
64579
64580         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
64581
64582 2003-07-14  Simon Josefsson  <jas@extundo.com>
64583
64584         * modules/mempcpy: New file.
64585         * MODULES.html.sh (func_all_modules): Add mempcpy.
64586
64587 2003-07-14  Simon Josefsson  <jas@extundo.com>
64588
64589         * m4/mempcpy.m4: New file.
64590
64591 2003-07-14  Simon Josefsson  <jas@extundo.com>
64592
64593         * lib/mempcpy.h: New file.
64594         * lib/mempcpy.c: New file.
64595
64596 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64597
64598         * modules/getdate, modules/posixtm: Depend on mktime.
64599
64600 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64601
64602         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
64603         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
64604         unicodeio.c, unicodeio.h, unlocked-io.h:
64605         Switch from LGPL to GPL.
64606
64607 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64608
64609         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
64610         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
64611         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
64612         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
64613         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
64614         updated automatically by ../config/srclist-update.  This changes
64615         their license from LPGL to GPL.
64616
64617 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64618
64619         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
64620         assumed to refer to the root of the most recent stable gettext version.
64621         * config/srclistvars.sh: Add defaults for eggert.
64622         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
64623         Match "This program" as well as "The program".  This is needed
64624         for gettext.
64625
64626 2003-07-14  Jim Meyering  <jim@meyering.net>
64627
64628         Don't emit diagnostics.  Let callers do that.
64629         * lib/save-cwd.c: Don't include "error.h".
64630         (save_cwd): Don't call error.  Ensure that errno is valid
64631         when returning nonzero.
64632
64633         * lib/save-cwd.h (restore_cwd): Update prototype.
64634         * lib/save-cwd.c (restore_cwd): Remove two parameters.
64635         Simplify.  Don't call error upon failure.  Let callers do that.
64636         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
64637         when auditing is enabled.  But don't bother updating the #if.
64638
64639 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
64640
64641         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
64642         it breaks C++ compilation.
64643         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
64644
64645 2003-07-10  Simon Josefsson  <jas@extundo.com>
64646
64647         * modules/strchrnul (Makefile.am): Add strchrnul.h.
64648
64649 2003-07-10  Jim Meyering  <jim@meyering.net>
64650
64651         * m4/clock_time.m4: Remove trailing blank.
64652         * m4/intmax_t.m4: Likewise.
64653
64654 2003-07-10  Jim Meyering  <jim@meyering.net>
64655
64656         * lib/vasnprintf.c: Remove trailing blanks.
64657         Make cpp indentation consistent.
64658
64659 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64660
64661         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
64662         posixver.c, strftime.c, strnlen.c, strverscmp.c:
64663         Switch from LGPL to GPL.
64664
64665 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64666
64667         * config/srclist.txt: Sort sublists.  Add
64668         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
64669         that differ from gnulib for one reason or another; we'd like this list
64670         to be smaller but for now let's document what we have.
64671
64672 2003-07-08  Paul Eggert  <eggert@twinsun.com>
64673
64674         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
64675         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
64676         and sweeter "eval x=$x".
64677         * config/srclist.txt: Get lib/argp* from glibc.
64678
64679 2003-07-07  Paul Eggert  <eggert@twinsun.com>
64680
64681         * lib/mktime.c: Fix some boundary cases and remove need for floating
64682         point.
64683
64684         Issue a compile-time diagnostic if time_t is floating point, or if
64685         two's complement arithmetic is not in effect, or if arithmetic
64686         right shift does not propagate the sign.  These assumptions were
64687         all in the original code but they weren't checked.
64688
64689         (TIME_T_MIDPOINT, verify): New macros.
64690         (__isleap): Remove; it has integer overflow problems.
64691         (leapyear): New function, without those problems.
64692         (ydhms_tm_diff): Remove; splitting into two parts.
64693         (ydhms_diff): New function, containing the arithmetic part of
64694         the old ydhms_tm_diff function.  Issue a compile-time
64695         diagnostic if we are not using C99 integer division.
64696         Avoid casts when possible.
64697         (guess_time_tm): New function, containing the checking part of
64698         the old ydhms_tm_diff function.  Return the new value, rather than
64699         the difference between it and the old.  Accept a new argument T
64700         so that *T specifies the old value.  Check for overflow in the result.
64701
64702         (__mktime_internal): Use a time_t offset, not a long int offset.
64703         This undoes the 2003-06-04 change, which is no longer needed now
64704         that we have better overflow checking.
64705         (localtime_offset): Likewise.
64706
64707         (__mktime_internal): Avoid harmful overflow on hosts where time_t
64708         and long are 64-bit but int is only 32-bit.
64709         (ydhms_diff): Use long int to store year1 and yday1.
64710         Issue a compile-time diagnostic if long int is not wide enough.
64711
64712         (__mktime_internal): Use long int to store adjusted year and yday.
64713         Use plain C rather than preprocessor commands, if that doesn't
64714         affect efficiency.
64715         Check for overflow (and try to repair) after each probe
64716         rather than checking only at the very end.  This avoids some bugs
64717         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
64718         does not equal GMT offset at maximum time).
64719         Use integer to check for overflow rather than floating point; this
64720         is more portable to non-IEEE hosts, and is a tad faster.
64721         When we detect that we are oscillating between two values,
64722         don't check whether tm_isdst has the requested value, since
64723         we already know the answer.  When tm_isdst has the wrong value,
64724         use a different heuristic to find the right one, based on the
64725         extreme values actually observed in practice in tz2003a,
64726         rather than the (overly optimistic) "previous 3 calendar quarters".
64727
64728         (not_equal_tm, print_tm, check_result): Use "const T" rather than
64729         "T const" to accommodate glibc style.
64730         (check_result): Use less-confusing report format.  "long" -> "long int.
64731         (main): Likewise.
64732         Don't loop if the iteration overflows time_t.
64733         Allow a negative step in the iteration.
64734
64735 2003-07-06  Karl Berry  <karl@gnu.org>
64736
64737         * config/depcomp: update from automake.
64738         * config/config.sub: update from prep.
64739
64740 2003-07-03  Karl Berry  <karl@gnu.org>
64741
64742         * config/config.guess: update from prep.
64743
64744 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64745
64746         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
64747         xreadlink.c now includes it unconditionally.
64748
64749 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64750
64751         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
64752         having it depend on HAVE_SYS_TYPES_H.
64753
64754 2003-07-01  Bruno Haible  <bruno@clisp.org>
64755
64756         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
64757         <sys/types.h> should be sufficient.
64758         Reported by Paul Eggert.
64759
64760 2003-06-26  Karl Berry  <karl@gnu.org>
64761
64762         * config/depcomp: update from automake.
64763
64764 2003-06-26  Bruno Haible  <bruno@clisp.org>
64765
64766         * modules/human: Depend on module stdbool.
64767
64768 2003-06-25  Bruno Haible  <bruno@clisp.org>
64769
64770         * modules/readlink: New file.
64771         * modules/xreadlink: Depend on it.
64772         * MODULES.html.sh (func_all_modules): Add readlink.
64773
64774 2003-06-25  Bruno Haible  <bruno@clisp.org>
64775
64776         * m4/readlink.m4: New file.
64777
64778 2003-06-25  Bruno Haible  <bruno@clisp.org>
64779
64780         * lib/readlink.c: New file.
64781
64782 2003-06-22  Karl Berry  <karl@gnu.org>
64783
64784         * config/srclist.txt: update mkinstalldirs from automake.
64785         * config/mkinstalldirs: update.
64786
64787 2003-06-22  Bruno Haible  <bruno@clisp.org>
64788
64789         Portability to mingw32.
64790         * m4/ssize_t.m4: New file, from GNU gettext.
64791         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
64792         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
64793
64794 2003-06-22  Bruno Haible  <bruno@clisp.org>
64795
64796         * modules/safe-read: Add m4/ssize_t.m4.
64797         * modules/xreadlink: Add m4/ssize_t.m4.
64798
64799 2003-06-20  Bruno Haible  <bruno@clisp.org>
64800
64801         Assume C89, so PARAMS isn't needed.
64802         * lib/unicodeio.h (PARAMS): Remove.
64803         * lib/unicodeio.c: Don't use PARAMS.
64804
64805 2003-06-18  Karl Berry  <karl@gnu.org>
64806
64807         * config/config.{guess,sub}: update from prep.
64808
64809 2003-06-18  Jim Meyering  <jim@meyering.net>
64810
64811         Merge changes from coreutils.
64812         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
64813         Remove explicit declarations of xmalloc and realloc.
64814         Include xalloc.h.
64815         (read_utmp): Remove anachronistic cast of xmalloc.
64816
64817 2003-06-17  Paul Eggert  <eggert@twinsun.com>
64818
64819         Assume C89, so PARAMS isn't needed.
64820         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
64821         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
64822         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
64823         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
64824         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
64825         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
64826         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
64827         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
64828         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
64829         lib/xstrtod.h, lib/xstrtol.h: Likewise.
64830         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
64831         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
64832         no longer needed. Anyway, config.h should always be included before any
64833         other file.
64834
64835 2003-06-11  Simon Josefsson  <jas@extundo.com>
64836
64837         * modules/sysexits: New file.
64838         * MODULES.html.sh (func_all_modules): Add sysexits.
64839
64840 2003-06-11  Simon Josefsson  <jas@extundo.com>
64841
64842         * lib/sysexit_.h: New file.
64843
64844 2003-06-11  Derek Price  <derek@ximbiot.com>
64845
64846         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
64847         necessary.
64848
64849 2003-06-11  Bruno Haible  <bruno@clisp.org>
64850
64851         * m4/sysexits.m4: New file.
64852
64853 2003-06-10  Simon Josefsson  <jas@extundo.com>
64854
64855         * lib/argp.h: New file, from glibc.
64856         * lib/argp-ba.c: New file, from glibc.
64857         * lib/argp-eexst.c: New file, from glibc.
64858         * lib/argp-fmtstream.c: New file, from glibc.
64859         * lib/argp-fmtstream.h: New file, from glibc.
64860         * lib/argp-fs-xinl.c: New file, from glibc.
64861         * lib/argp-help.c: New file, from glibc.
64862         * lib/argp-namefrob.h: New file, from glibc.
64863         * lib/argp-parse.c: New file, from glibc.
64864         * lib/argp-pv.c: New file, from glibc.
64865         * lib/argp-pvh.c: New file, from glibc.
64866         * lib/argp-xinl.c: New file, from glibc.
64867
64868 2003-06-10  Simon Josefsson  <jas@extundo.com>
64869
64870         * modules/strchrnul: New file.
64871
64872 2003-06-10  Simon Josefsson  <jas@extundo.com>
64873
64874         * modules/argp: New file.
64875
64876 2003-06-10  Simon Josefsson  <jas@extundo.com>
64877
64878         * m4/strchrnul.m4: New file.
64879
64880 2003-06-10  Simon Josefsson  <jas@extundo.com>
64881
64882         * lib/strchrnul.h: New file.
64883         * lib/strchrnul.c: New file.
64884
64885 2003-06-10  Bruno Haible  <bruno@clisp.org>
64886
64887         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
64888
64889 2003-06-07  Karl Berry  <karl@gnu.org>
64890
64891         * config/config.{guess,sub}: update from prep.
64892
64893 2003-06-07  Jim Meyering  <jim@meyering.net>
64894
64895         * modules/strtod: Use $(...) notation, not @...@ for
64896         AC_REPLACE'd variables.
64897         * modules/localcharset: Likewise.
64898
64899 2003-06-07  Jim Meyering  <jim@meyering.net>
64900
64901         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
64902         in place of my name in the copyright comment.
64903         Remove definition and uses of __P.
64904
64905         From coreutils.
64906         * lib/stat.c: Don't declare xmalloc explicitly.
64907         Instead, include "xalloc.h".
64908         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
64909         xrealloc, and xcalloc return values.
64910         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
64911         Improve comment.
64912         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
64913
64914 2003-06-07  Bruno Haible  <bruno@clisp.org>
64915
64916         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
64917         avoid AC_CONFIG_LINKS.
64918         * modules/fnmatch (Makefile.am): Use explicit creation rule for
64919         fnmatch.h, to avoid AC_CONFIG_LINKS.
64920         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
64921
64922 2003-06-07  Bruno Haible  <bruno@clisp.org>
64923
64924         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
64925         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
64926         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
64927         directory.
64928         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
64929         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
64930         directory.
64931
64932 2003-06-06  Jim Meyering  <jim@meyering.net>
64933
64934         Merge from coreutils.
64935         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
64936         Consolidate declarations and initializations of *_base* locals.
64937
64938         Merge from coreutils.
64939         This avoids a core dump on systems without GNU putenv,
64940         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
64941         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
64942         (unsetenv): New static function, from GNU libc.
64943         (rpl_putenv): Use it.
64944
64945         * lib/modechange.c: Remove trailing blanks.
64946
64947         Merge from coreutils.
64948         * lib/fsusage.c: Remove declaration of statfs.
64949         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
64950
64951         * lib/posixtm.c: Include <stdbool.h> unconditionally.
64952
64953 2003-06-06  Jim Meyering  <jim@meyering.net>
64954
64955         * lib/stdbool_.h: Renamed from stdbool.h.in.
64956
64957 2003-06-06  Jim Meyering  <jim@meyering.net>
64958             Bruno Haible  <bruno@clisp.org>
64959
64960         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
64961         Adjust Makefile.am snippet not to redirect directly to target.
64962         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
64963
64964 2003-06-05  Paul Eggert  <eggert@twinsun.com>
64965
64966         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
64967         mismatch, look in future quarters as well as past.  This fixes a
64968         bug when processing fall-backwards gaps immediately after a long
64969         period of daylight-saving time.
64970
64971         * lib/mktime.c: Assume freestanding C89 or better.
64972         (HAVE_LIMITS_H): Remove.  Assume it's 1.
64973         (__P): Remove; not used.
64974         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
64975         (mktime, not_equal_tm, print_tm, check_result,
64976         main): Use prototypes.  Use const * where appropriate.
64977         (main): Fix typo in testing code that uncovered by above changes.
64978         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
64979
64980 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64981
64982         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
64983         locale.h, localeconv.  This merges changes from coreutils.
64984
64985         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
64986         It can be removed after the next Autoconf is released.
64987         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
64988         needed.
64989
64990 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64991
64992         * lib/mktime.c: Fix Debian bug 177940
64993         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
64994         (localtime_offset): Now long int, not time_t, because we want it
64995         to be guaranteed to be signed.  All uses changed.
64996         (__mktime_internal): If overflow would occur when adding offset,
64997         don't add it.
64998
64999         Merge 'human' changes from coreutils.  Rewrite to support
65000         locale-specific notations like thousands separators.
65001         * lib/human.c: Simplify authorship notice.
65002         Include human.h immediately after config.h.
65003         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65004         <limits.h>: Do not include, since human.h does.
65005         (SIZE_MAX, UINTMAX_MAX): New macros.
65006         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65007         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65008         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65009         (power_letter): Renamed from suffixes.
65010         (generate_suffix_backwards): Remove.
65011         (adjust_value): Now takes int style (because of human.h changes)
65012         and long double value (for greater precision on some platforms).
65013         (group_number): New function.
65014         (human_readable): Use it.  Use integer options, not enum.
65015         Put the options before the sizes in the arg list.
65016         Support all the new options.
65017         The old human_readable function has been removed;
65018         use inttostr.h instead.
65019         (human_readable, default_block_size, humblock):
65020         Use uintmax_t, not int, for block sizes.
65021         (human_readable_inexact, block_size_types): Remove.
65022         (block_size_opts): New constant.
65023         (human_options): Renamed from human_block_size, with new signature
65024         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65025         * lib/human.h: Add copyright and authorship notice.
65026         Include <limits.h> and <stdbool.h> unconditionally.
65027         (PARAMS): Remove.  All uses removed.
65028         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65029         (enum human_inexact_style): Remove tag; now a nameless enum.
65030         (human_floor, human_ceiling, human_round_to_even): Now have
65031         values 2, 0, 1 rather than -1, 1, 0.
65032         (human_group_digits, human_suppress_point_zero, human_autoscale,
65033         human_base_1024, human_SI, human_B): New constants.
65034         (human_readable_inexact, human_block_size): Remove.
65035         (human_readable): Size args are now uintmax_t, not int.
65036         (human_options): New decl.
65037
65038         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65039         unnecessary now that we assume C89 or better.  This change
65040         imported from coreutils.
65041
65042         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65043         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65044         in the 2003-05-30 sync from glibc.
65045
65046         .h files should stand alone, but we shouldn't include <sys/types.h>
65047         if we can get away with just <stddef.h>.
65048
65049         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65050         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65051         rather than <sys/types.h>, as we merely need size_t.
65052         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65053         to get size_t.
65054         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65055         Include <stdio.h>, to get FILE.
65056         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65057         memcasecmp.h has included <stddef.h> and all we need is size_t.
65058         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65059         our interface, instead of including <sys/types.h>
65060
65061 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65062
65063         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65064         now, as glibc mktime is buggy on non-glibc systems.
65065
65066 2003-06-03  Karl Berry  <karl@gnu.org>
65067
65068         * config/config.sub: update from prep.
65069
65070 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65071
65072         [from coreutils]
65073         Fix some minor time-related bugs with POSIX time arguments.
65074         Some valid time stamps were being rejected (notably -1, and
65075         time stamps before 1900 on 64-bit hosts).  And some invalid
65076         time stamps were being accepted, e.g. September 31.
65077
65078         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65079         that we can return (time_t) -1 successfully.
65080         * lib/posixtm.c: Likewise.
65081         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65082         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65083         (t): Remove static var.
65084         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65085         of static var.  All uses changed.
65086         (year): Do not reject years before 1900; they can occur with
65087         64-bit time_t.
65088         (posix_time_parse): Do not check for out-of-range components;
65089         that is now the caller's responsibility, since our checks were
65090         only approximations.
65091         (posixtime): Use mktime to check for out-of-range components,
65092         since it knows them exactly.
65093         If mktime returns (time_t) -1, check whether an error actually occurred
65094         by invoking localtime on -1.
65095         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65096         posixtime failures better.
65097         Improve the test data (in comments only).
65098
65099 2003-06-02  Karl Berry  <karl@gnu.org>
65100
65101         * config/mkinstalldirs (version): new variable.
65102         (--version): new option.
65103         (usage): improve message.
65104
65105 2003-05-30  Karl Berry  <karl@gnu.org>
65106
65107         * lib/mktime.c: update from libc.
65108
65109 2003-05-30  Bruno Haible  <bruno@clisp.org>
65110
65111         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65112         * config/config.rpath: Upgrade to gettext-0.12.1.
65113
65114 2003-05-30  Bruno Haible  <bruno@clisp.org>
65115
65116         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65117         * m4/nls.m4: New file, from gettext-0.12.1.
65118         * m4/po.m4: New file, from gettext-0.12.1.
65119         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65120
65121 2003-05-30  Bruno Haible  <bruno@clisp.org>
65122
65123         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65124         * lib/localcharset.h: Likewise.
65125         * lib/localcharset.c: Likewise.
65126
65127 2003-05-29  Karl Berry  <karl@gnu.org>
65128
65129         * config/config.rpath: update from gettext.
65130
65131 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65132
65133         Assume the headers required for C89 freestanding compilers.
65134         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65135         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65136         * m4/human.m4 (gl_HUMAN): Likewise.
65137         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65138         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65139         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65140         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65141         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65142         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65143
65144 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65145
65146         Assume the headers required for C89 freestanding compilers.
65147         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65148         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65149         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65150         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65151         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65152         define, since <limits.h> is guaranteed to do that.
65153         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65154         * lib/exclude.c: Include <stdbool.h> unconditionally.
65155         * lib/tempname.c: Include <stddef.h> unconditionally.
65156         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65157         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65158         <stddef.h> does that.
65159         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65160         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65161         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65162         needed.
65163         * lib/xstrtol.c: Likewise.
65164         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65165         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65166
65167         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65168         warnings on some platforms.
65169
65170         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65171         arbitrarily.
65172
65173 2003-05-26  Jim Meyering  <jim@meyering.net>
65174
65175         Merge in a change from coreutils:
65176         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65177         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65178         that condition, rather than `-1' which is slightly misleading.
65179         Change the name of the cache variable to have the gl_ prefix.
65180         Prompted by a patch from Richard Dawe for DJGPP.
65181
65182 2003-05-24  Karl Berry  <karl@gnu.org>
65183
65184         * config/config.guess: update from prep.
65185
65186 2003-05-22  Karl Berry  <karl@gnu.org>
65187
65188         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65189
65190 2003-05-20  Karl Berry  <karl@gnu.org>
65191
65192         * config/config.guess: update from prep.
65193
65194 2003-05-18  Karl Berry  <karl@gnu.org>
65195
65196         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65197         might actually be set by the user.
65198
65199         * config/depcomp, install-sh, mdate-sh: update from automake.
65200
65201 2003-05-17  Bruno Haible  <bruno@clisp.org>
65202
65203         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65204         invalid expansion for AC_EGREP_CPP.
65205         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65206         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65207         Suggested by Akim Demaille <akim@epita.fr> in
65208         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65209
65210 2003-05-12  Jim Meyering  <jim@meyering.net>
65211
65212         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65213         the space-padded-by-default conversion specifiers, %e, %k, %l.
65214
65215 2003-05-12  Bruno Haible  <bruno@clisp.org>
65216
65217         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65218         the string is longer than 4 KB.
65219
65220 2003-05-11  Karl Berry  <karl@gnu.org>
65221
65222         * config/config.{guess,sub}: update from prep.
65223
65224 2003-05-09  Bruno Haible  <bruno@clisp.org>
65225
65226         * modules/error: Add m4/strerror_r.m4 to file list.
65227
65228 2003-05-03  Bruno Haible  <bruno@clisp.org>
65229
65230         Upgrade to Unicode-4.0.
65231         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65232         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65233         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65234         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65235         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65236         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65237         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65238         Change width of U+E0100..U+E01EF from 1 to 0.
65239
65240 2003-04-25  Jim Meyering  <jim@meyering.net>
65241
65242         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65243         of type size_t, not int.
65244
65245 2003-04-25  Bruno Haible  <bruno@clisp.org>
65246
65247         * lib/copy-file.c: Include <stddef.h>, for size_t.
65248
65249 2003-04-21  Paul Eggert  <eggert@twinsun.com>
65250
65251         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
65252         code which expansion is under static control.  Patch imported from
65253         Akim Demaille's patch to Bison; see
65254         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
65255
65256 2003-04-14  Bruno Haible  <bruno@clisp.org>
65257
65258         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
65259
65260 2003-04-11  Jim Meyering  <jim@meyering.net>
65261
65262         Merge changes from Coreutils.
65263
65264         2003-03-22  Jim Meyering  <jim@meyering.net>
65265
65266         * lib/strftime.c (widen): Cast alloca return value to proper type.
65267
65268         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
65269
65270         From GNU libc.
65271         * lib/strftime.c (my_strftime): Handle very large width
65272         specifications for numeric values correctly.  Improve checks for
65273         overflow.
65274
65275         2003-01-19  Jim Meyering  <jim@meyering.net>
65276
65277         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
65278         definitions.
65279         (nl_get_alt_digit) [! defined my_strftime]: Define.
65280         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
65281         _nl_get_alt_digit and _nl_get_walt_digit.
65282
65283         * lib/strftime.c (my_strftime): Merge in locale-related changes from
65284         libc. These changes have no effect outside of _LIBC.
65285
65286 2003-04-10  Bruno Haible  <bruno@clisp.org>
65287
65288         * modules/findprog: New file.
65289         * MODULES.html.sh (func_all_modules): Add it.
65290
65291 2003-04-10  Bruno Haible  <bruno@clisp.org>
65292
65293         * m4/findprog.m4: New file.
65294         * m4/eaccess.m4: New file.
65295
65296 2003-04-10  Bruno Haible  <bruno@clisp.org>
65297
65298         * lib/findprog.h: New file, from GNU gettext.
65299         * lib/findprog.c: New file, from GNU gettext.
65300
65301 2003-04-05  Jim Meyering  <jim@meyering.net>
65302
65303         Merge changes from Coreutils.
65304
65305         * lib/exclude.h (PARAMS): Remove definition and uses.
65306         * lib/exclude.c: Remove uses of `PARAMS'.
65307
65308         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65309         Add test-cases for DOS filenames. Declare program_name.
65310         (main): Set up program_name.  Patch by Rich Dawe.
65311
65312         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65313         error from mntctl.
65314         Use mntctl's return value to drive the entry-processing loop, since
65315         we can't rely on the value of the vmt_length member in the last
65316         entry.  On some systems doing so could result in exhausting
65317         virtual memory.  Based in part on a patch from Mike Jetzer.
65318
65319 2003-04-04  Bruno Haible  <bruno@clisp.org>
65320
65321         * modules/linebreak: New file.
65322         * MODULES.html.sh (func_all_modules): Add it.
65323
65324 2003-04-04  Bruno Haible  <bruno@clisp.org>
65325
65326         * m4/linebreak.m4: New file.
65327
65328 2003-04-04  Bruno Haible  <bruno@clisp.org>
65329
65330         * lib/linebreak.h: New file, from GNU gettext.
65331         * lib/linebreak.c: New file, from GNU gettext with slight
65332         modifications.
65333         * lib/lbrkprop.h: New file, from GNU gettext.
65334
65335 2003-04-03  Bruno Haible  <bruno@clisp.org>
65336
65337         * modules/utf8-ucs4: New file.
65338         * modules/utf16-ucs4: New file.
65339         * modules/ucs4-utf8: New file.
65340         * modules/ucs4-utf16: New file.
65341         * MODULES.html.sh (func_all_modules): Add them.
65342
65343 2003-04-03  Bruno Haible  <bruno@clisp.org>
65344
65345         * m4/utf-ucs4.m4: New file.
65346         * m4/ucs4-utf.m4: New file.
65347
65348 2003-04-03  Bruno Haible  <bruno@clisp.org>
65349
65350         * lib/utf8-ucs4.h: New file, from GNU gettext.
65351         * lib/utf16-ucs4.h: New file, from GNU gettext.
65352         * lib/ucs4-utf8.h: New file, from GNU gettext.
65353         * lib/ucs4-utf16.h: New file, from GNU gettext.
65354
65355 2003-04-02  Bruno Haible  <bruno@clisp.org>
65356
65357         * modules/binary-io: New file.
65358         * MODULES.html.sh (func_all_modules): Add it.
65359
65360 2003-04-02  Bruno Haible  <bruno@clisp.org>
65361
65362         * lib/binary-io.h: New file, from GNU gettext.
65363
65364 2003-04-01  Bruno Haible  <bruno@clisp.org>
65365
65366         * modules/pathname: New file.
65367         * MODULES.html.sh (func_all_modules): Add it.
65368
65369 2003-04-01  Bruno Haible  <bruno@clisp.org>
65370
65371         * lib/pathname.h: New file, from GNU gettext.
65372         * lib/concatpath.c: New file, from GNU gettext.
65373
65374 2003-03-30  Bruno Haible  <bruno@clisp.org>
65375
65376         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65377
65378 2003-03-30  Bruno Haible  <bruno@clisp.org>
65379
65380         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65381         function chown() doesn't exist.
65382
65383 2003-03-28  Bruno Haible  <bruno@clisp.org>
65384
65385         * modules/copy-file: New file.
65386         * MODULES.html.sh (func_all_modules): Add it.
65387
65388 2003-03-28  Bruno Haible  <bruno@clisp.org>
65389
65390         * m4/copy-file.m4: New file.
65391
65392 2003-03-28  Bruno Haible  <bruno@clisp.org>
65393
65394         * lib/copy-file.h: New file, from GNU gettext.
65395         * lib/copy-file.c: New file, from GNU gettext.
65396
65397 2003-03-18  Jim Meyering  <jim@meyering.net>
65398
65399         * lib/quote.c (quote_n): Fix typo in comment.
65400
65401 2003-03-18  Bruno Haible  <bruno@clisp.org>
65402
65403         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65404         checking.
65405         * m4/onceonly_2_57.m4: Likewise.
65406
65407 2003-03-17  Bruno Haible  <bruno@clisp.org>
65408
65409         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65410         (m4_quote): Remove macro.
65411         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65412
65413 2003-03-14  Jim Meyering  <jim@meyering.net>
65414
65415         Merge changes from Coreutils.
65416         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
65417         to be const, in order to avoid warnings.
65418         (obstack_room): Likewise.
65419         (obstack_empty_p): Likewise.
65420
65421 2003-03-14  Bruno Haible  <bruno@clisp.org>
65422
65423         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
65424         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
65425
65426 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65427
65428         Merge changes from Bison.
65429         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
65430         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
65431         when compiling Bison 1.875's `bitset bset = obstack_alloc
65432         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
65433         * lib/hash.c: Include <stdbool.h> unconditionally.
65434
65435 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65436
65437         * m4/onceonly.m4 (m4_quote): New macro.
65438         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
65439         Quote AC_FOREACH variable-expansions properly.
65440
65441 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65442
65443         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
65444
65445 2003-03-09  Paul Eggert  <eggert@twinsun.com>
65446
65447         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
65448         Reported by Bruce Becker; see:
65449         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
65450
65451 2003-03-03  Paul Eggert  <eggert@twinsun.com>
65452             Bruno Haible  <bruno@clisp.org>
65453
65454         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
65455         Reported by John Hughes, see
65456         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
65457
65458 2003-02-20  Bruno Haible  <bruno@clisp.org>
65459
65460         * MODULES.html.sh (func_all_modules): Add poll.
65461
65462 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65463
65464         * modules/poll: New file.
65465
65466 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65467
65468         * lib/poll_.h: New file.
65469         * lib/poll.c: New file.
65470
65471 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65472
65473         * m4/poll.m4: New file.
65474
65475 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65476
65477         * modules/mathl: New file.
65478
65479 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65480
65481         * lib/mathl.h: New file.
65482         * lib/acosl.c: New file.
65483         * lib/asinl.c: New file.
65484         * lib/atanl.c: New file.
65485         * lib/ceill.c: New file.
65486         * lib/cosl.c: New file.
65487         * lib/expl.c: New file.
65488         * lib/floorl.c: New file.
65489         * lib/frexpl.c: New file.
65490         * lib/ldexpl.c: New file.
65491         * lib/logl.c: New file.
65492         * lib/sincosl.c: New file.
65493         * lib/sinl.c: New file.
65494         * lib/sqrtl.c: New file.
65495         * lib/tanl.c: New file.
65496         * lib/trigl.c: New file.
65497         * lib/trigl.h: New file.
65498
65499 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65500
65501         * m4/mathl.m4: New file.
65502
65503 2003-02-18  Bruno Haible  <bruno@clisp.org>
65504
65505         * MODULES.html.sh (func_all_modules): Add mathl.
65506
65507 2003-02-17  Bruno Haible  <bruno@clisp.org>
65508
65509         * modules/mkdtemp: New module.
65510         * MODULES.html.sh (func_all_modules): Add it.
65511
65512 2003-02-17  Bruno Haible  <bruno@clisp.org>
65513
65514         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
65515
65516 2003-02-17  Bruno Haible  <bruno@clisp.org>
65517
65518         * lib/mkdtemp.h: New file, from GNU gettext.
65519         * lib/mkdtemp.c: New file, from GNU gettext.
65520
65521 2003-02-02  Jim Meyering  <jim@meyering.net>
65522
65523         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
65524         e.g. glibc-2.2.93.
65525
65526 2003-01-31  Bruno Haible  <bruno@clisp.org>
65527
65528         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
65529         'rpl_rename'.
65530         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
65531         'rpl_strnlen'.
65532         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
65533         'rpl_strtod'.
65534         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
65535         'rpl_utime'.
65536
65537 2003-01-31  Bruno Haible  <bruno@clisp.org>
65538
65539         * lib/rename.c: #undef rename before defining rpl_rename.
65540         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
65541
65542 2003-01-30  Bruno Haible  <bruno@clisp.org>
65543
65544         * modules/vasnprintf, modules/vasprintf: New modules.
65545         * MODULES.html.sh (func_all_modules): Add them.
65546
65547 2003-01-30  Bruno Haible  <bruno@clisp.org>
65548
65549         * m4/signed.m4: New file, from GNU gettext.
65550         * m4/longdouble.m4: New file, from GNU gettext.
65551         * m4/wchar_t.m4: New file, from GNU gettext.
65552         * m4/wint_t.m4: New file, from GNU gettext.
65553         * m4/vasnprintf.m4: New file.
65554         * m4/vasprintf.m4: New file.
65555
65556 2003-01-30  Bruno Haible  <bruno@clisp.org>
65557
65558         * lib/printf-args.h: New file, from GNU gettext.
65559         * lib/printf-args.c: New file, from GNU gettext.
65560         * lib/printf-parse.h: New file, from GNU gettext.
65561         * lib/printf-parse.c: New file, from GNU gettext.
65562         * lib/vasnprintf.h: New file, from GNU gettext.
65563         * lib/vasnprintf.c: New file, from GNU gettext.
65564         * lib/asnprintf.c: New file, from GNU gettext.
65565         * lib/vasprintf.h: New file, from GNU gettext with modifications.
65566         * lib/vasprintf.c: New file, from GNU gettext.
65567         * lib/asprintf.c: New file, from GNU gettext.
65568
65569 2003-01-29  Bruno Haible  <bruno@clisp.org>
65570
65571         * modules/stpncpy: New module.
65572         * MODULES.html.sh (func_all_modules): Add it.
65573
65574 2003-01-29  Bruno Haible  <bruno@clisp.org>
65575
65576         * m4/stpncpy.m4: New file.
65577
65578 2003-01-29  Bruno Haible  <bruno@clisp.org>
65579
65580         * lib/stpncpy.h: New file, from GNU gettext with modifications.
65581         * lib/stpncpy.c: New file, from GNU gettext with modifications.
65582
65583 2003-01-28  Bruno Haible  <bruno@clisp.org>
65584
65585         * modules/c-ctype: New module.
65586         * MODULES.html.sh (func_all_modules): Add it.
65587
65588 2003-01-28  Bruno Haible  <bruno@clisp.org>
65589
65590         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
65591         Paul Eggert.
65592         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
65593         Paul Eggert.
65594
65595 2003-01-27  Bruno Haible  <bruno@clisp.org>
65596
65597         * modules/xsetenv: New module.
65598         * MODULES.html.sh (func_all_modules): Add it.
65599
65600 2003-01-27  Bruno Haible  <bruno@clisp.org>
65601
65602         * lib/xsetenv.h: New file, from GNU gettext.
65603         * lib/xsetenv.c: New file, from GNU gettext.
65604
65605 2003-01-23  Jim Meyering  <jim@meyering.net>
65606
65607         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
65608         from working on systems without dirfd (at least Irix and OSF1/Tru64).
65609
65610 2003-01-23  Bruno Haible  <bruno@clisp.org>
65611
65612         * modules/minmax: New module.
65613         * MODULES.html.sh (func_all_modules): Add it.
65614
65615 2003-01-23  Bruno Haible  <bruno@clisp.org>
65616
65617         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
65618         Eggert.
65619
65620 2003-01-22  Bruno Haible  <bruno@clisp.org>
65621
65622         * modules/exit: New module.
65623         * MODULES.html.sh (func_all_modules): Add it.
65624
65625 2003-01-22  Bruno Haible  <bruno@clisp.org>
65626
65627         * lib/exit.h: New file, from GNU gettext.
65628
65629 2003-01-19  Bruno Haible  <bruno@clisp.org>
65630
65631         * gnulib-tool: Recognize option --extract-maintainer.
65632         (func_get_maintainer): New function.
65633         * modules/*: Add Maintainer entry.
65634
65635 2003-01-16  Jim Meyering  <jim@meyering.net>
65636
65637         * m4/regex.m4: The `regex' struct is both input and output.
65638         Initialize it before each use.  Patch by Tim Waugh.
65639
65640 2003-01-16  Bruno Haible  <bruno@clisp.org>
65641
65642         * MODULES.html.sh: Add a table of contents. Add the module name as
65643         leftmost column. Add hyperlinks.
65644
65645 2003-01-15  Bruno Haible  <bruno@clisp.org>
65646
65647         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
65648
65649 2003-01-15  Bruno Haible  <bruno@clisp.org>
65650
65651         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
65652         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
65653         suffix.
65654
65655 2003-01-15  Bruno Haible  <bruno@clisp.org>
65656
65657         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
65658
65659 2003-01-15  Bruno Haible  <bruno@clisp.org>
65660
65661         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
65662         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
65663
65664 2003-01-14  Jim Meyering  <jim@meyering.net>
65665
65666         * lib/same.c (same_name): Tweak a comment.
65667
65668 2003-01-14  Bruno Haible  <bruno@clisp.org>
65669
65670         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
65671         when a string comparison is sufficient.
65672
65673 2003-01-14  Bruno Haible  <bruno@clisp.org>
65674
65675         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
65676         'unsigned int'.
65677
65678 2003-01-14  Bruno Haible  <bruno@clisp.org>
65679
65680         * lib/hash-pjw.c: Add comment about low quality of this function.
65681
65682 2003-01-13  Bruno Haible  <bruno@clisp.org>
65683
65684         * modules/stpcpy: Distribute lib/stpcpy.h.
65685         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
65686
65687 2003-01-13  Bruno Haible  <bruno@clisp.org>
65688
65689         * modules/*: Add a description.
65690         * modules/strpbrk: Fix Makefile.am snippet.
65691         * modules/strtoimax: Fix dependencies.
65692         * modules/strtoumax: Likewise.
65693
65694 2003-01-13  Bruno Haible  <bruno@clisp.org>
65695
65696         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
65697         * modules/alloca (Makefile.am): All object files depend on alloca.h.
65698         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
65699
65700 2003-01-13  Bruno Haible  <bruno@clisp.org>
65701
65702         * gnulib-tool (func_create_testdir): Store config/* files in the main
65703         directory.
65704         * config.rpath: Move to ...
65705         * config/config.rpath: ... here.
65706         * modules/gettext: Contains config/config.rpath, not config.rpath.
65707         * modules/iconv: Likewise.
65708
65709 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65710
65711         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65712         to avoid collisions with libcurses and libreadline.
65713
65714         * m4/getstr.m4: Remove.
65715         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
65716
65717 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65718
65719         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65720         to avoid collisions with libcurses and libreadline.
65721
65722         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
65723         * lib/getstr.h, getstr.c: Remove.
65724         * lib/getline.c: Include "getline.h", to check interface.
65725         Move body of old getstr.c here: this defines MIN_CHUNK and
65726         declares getdelim2, which is renamed from getstr.
65727         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
65728
65729         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
65730         All uses changed.
65731         * lib/linebuffer.h: Likewise.
65732         (readline): Remove backward-compatibility macro.
65733
65734 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65735
65736         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65737         to avoid collisions with libcurses and libreadline.
65738         * getstr: Remove.
65739         * MODULES.html.sh: Remove getstr.
65740         * modules/getline: Depend on unlocked-io, not getstr.
65741
65742 2003-01-12  Jim Meyering  <jim@meyering.net>
65743
65744         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
65745
65746 2003-01-10  Bruno Haible  <bruno@clisp.org>
65747
65748         * modules/alloca: Change Makefile.am requirements. Simplify Include
65749         requirements. Add lib/alloca_.h to file list.
65750
65751 2003-01-10  Bruno Haible  <bruno@clisp.org>
65752
65753         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
65754
65755 2003-01-10  Bruno Haible  <bruno@clisp.org>
65756
65757         * lib/alloca_.h: New file.
65758         * lib/getdate.y: Unconditionally include alloca.h.
65759         * lib/makepath.c: Likewise.
65760         * lib/setenv.c: Likewise.
65761         * lib/userspec.c: Likewise.
65762
65763 2003-01-09  Karl Berry  <karl@gnu.org>
65764
65765         * MODULES.html.sh: include `dirname $0` in PATH, to find
65766         gnulib-tool.
65767
65768 2003-01-09  Bruno Haible  <bruno@clisp.org>
65769
65770         * modules/stdbool: Change configure.ac, Makefile.am requirements.
65771         Simplify Include requirements. Add lib/stdbool.h.in to file list.
65772
65773 2003-01-09  Bruno Haible  <bruno@clisp.org>
65774
65775         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
65776
65777 2003-01-09  Bruno Haible  <bruno@clisp.org>
65778
65779         * lib/stdbool.h.in: New file.
65780
65781 2003-01-09  Bruno Haible  <bruno@clisp.org>
65782
65783         * gnulib-tool (func_all_modules): Ignore files ending in ~.
65784         * MODULES.html.sh: Likewise.
65785
65786 2003-01-08  Jim Meyering  <jim@meyering.net>
65787
65788         * lib/full-write.c: Undefine and define-away `const' after inclusion
65789         of errno.h, not before.  Suggestion from Bruno Haible.
65790
65791 2003-01-08  Bruno Haible  <bruno@clisp.org>
65792
65793         * modules/full-read: Depend on full-write.
65794
65795 2003-01-08  Bruno Haible  <bruno@clisp.org>
65796
65797         * lib/safe-read.c: Include specification header first, to ensure its
65798         selfcontainedness.
65799         * lib/full-write.c: Likewise.
65800
65801 2003-01-07  Jim Meyering  <jim@meyering.net>
65802
65803         * lib/full-write.c: Rework so that it may serve to define full_read,
65804         too.
65805         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
65806
65807 2003-01-07  Bruno Haible  <bruno@clisp.org>
65808
65809         * lib/strtoimax.c: Include <stdint.h> as an alternative to
65810         <inttypes.h>.
65811         * lib/xstrtol.h: Likewise.
65812         * lib/xstrtoimax.c: Likewise.
65813         * lib/xstrtoumax.c: Likewise.
65814         * lib/human.h: Likewise.
65815
65816         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
65817         on systems that have <inttypes.h> but not <stdint.h>.
65818
65819 2003-01-07  Bruno Haible  <bruno@clisp.org>
65820
65821         * MODULES.html.sh: Add copyright notice.
65822         (missed_files): Omit CVS directory entries.
65823         (func_module): Make it work with sed-3.02.
65824         * MODULES.txt: Remove file.
65825
65826 2003-01-06  Jim Meyering  <jim@meyering.net>
65827
65828         * lib/version-etc.c: Update year in translatable copyright string.
65829
65830 2003-01-03  Karl Berry  <karl@gnu.org>
65831
65832         * config/config.{guess,sub}: update from prep.
65833
65834 2003-01-02  Karl Berry  <karl@gnu.org>
65835
65836         * doc/COPYING.DOC: belatedly updated to 1.2.
65837
65838 2003-01-01  Karl Berry  <karl@gnu.org>
65839
65840         * gnulib-tool (func_verify_module): report module name $module in
65841         error message, not $1.
65842         * gnulib-tool (create-testdir): don't complain if destdir couldn't
65843         be created, only if it doesn't exist.
65844         * gnulib-tool (last_checkin_date): don't expand the $Date here.
65845
65846 2002-12-31  Paul Eggert  <eggert@twinsun.com>
65847
65848         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
65849
65850 2002-12-31  Paul Eggert  <eggert@twinsun.com>
65851
65852         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
65853         memcmp if strcoll doesn't work.
65854
65855 2002-12-31  Bruno Haible  <bruno@clisp.org>
65856
65857         * lib/utime.c (utime_null): No need to call ftruncate if the file was
65858         nonempty.
65859
65860 2002-12-31  Bruno Haible  <bruno@clisp.org>
65861
65862         * lib/memcoll.c (STRCOLL): New macro.
65863         (memcoll): Use it.
65864
65865 2002-12-31  Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/localcharset.h: New file.
65868         * lib/localcharset.c: Include it.
65869         * lib/unicodeio.c: Likewise.
65870
65871 2002-12-31  Bruno Haible  <bruno@clisp.org>
65872
65873         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
65874         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
65875
65876 2002-12-31  Bruno Haible  <bruno@clisp.org>
65877
65878         * lib/getline.h: Include <stddef.h>, for size_t.
65879
65880         * lib/unicodeio.h: Include <stddef.h>, for size_t.
65881         * lib/unicodeio.c: Don't include <stddef.h>.
65882
65883 2002-12-31  Bruno Haible  <bruno@clisp.org>
65884
65885         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
65886         HAVE_TM_ZONE.
65887
65888 2002-12-24  Karl Berry  <karl@gnu.org>
65889
65890         * config/config.guess: update from prep.
65891
65892 2002-12-24  Bruno Haible  <bruno@clisp.org>
65893
65894         General infrasructure.
65895         * m4/README: Rewritten.
65896         * m4/onceonly.m4: New file.
65897         * m4/onceonly_2_57.m4: New file.
65898
65899         Module atexit.
65900         * m4/atexit.m4: New file.
65901
65902         Module strtod.
65903         * m4/strtod.m4: New file.
65904
65905         Module strtol.
65906         * m4/strtol.m4: New file.
65907
65908         Module strtoul.
65909         * m4/strtoul.m4: New file.
65910
65911         Module memchr.
65912         * m4/memchr.m4: New file.
65913
65914         Module memcmp.
65915         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
65916         (jm_FUNC_MEMCMP): Invoke it.
65917
65918         Module memcpy.
65919         * m4/memcpy.m4: New file.
65920
65921         Module memmove.
65922         * m4/memmove.m4: New file.
65923
65924         Module memset.
65925         * m4/memset.m4: New file.
65926
65927         Module strcspn.
65928         * m4/strcspn.m4: New file.
65929
65930         Module strpbrk.
65931         * m4/strpbrk.m4: New file.
65932
65933         Module strstr.
65934         * m4/strstr.m4: New file.
65935
65936         Module strerror.
65937         * m4/strerror.m4: New file.
65938
65939         Module mktime.
65940         * m4/mktime.m4: Renamed from jm-mktime.m4.
65941         (gl_PREREQ_MKTIME): New macro.
65942         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
65943
65944         Module malloc.
65945         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
65946         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
65947         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
65948
65949         Module realloc.
65950         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
65951         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
65952         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
65953
65954         Module strftime.
65955         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
65956         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
65957         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
65958         gl_TM_GMTOFF.
65959         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
65960
65961         Module xalloc.
65962         * m4/xalloc.m4: New file.
65963
65964         Module alloca.
65965         * m4/alloca.m4: New file.
65966
65967         Module putenv.
65968         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
65969         (jm_FUNC_PUTENV): Invoke it.
65970
65971         Module setenv.
65972         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
65973         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
65974         when invoked twice.
65975         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
65976         gt_FUNC_SETENV.
65977
65978         Module memrchr.
65979         * m4/memrchr.m4: New file.
65980
65981         Module stpcpy.
65982         * m4/stpcpy.m4: New file.
65983
65984         Module strcase.
65985         * m4/strcase.m4: New file.
65986
65987         Module strdup.
65988         * m4/strdup.m4: New file.
65989
65990         Module strnlen.
65991         * m4/strnlen.m4: New file.
65992
65993         Module strndup.
65994         * m4/strndup.m4: New file.
65995
65996         Module xstrtod.
65997         * m4/xstrtod.m4: New file.
65998
65999         Module xstrtol.
66000         * m4/xstrtol.m4: New file.
66001
66002         Module getdate.
66003         * m4/getdate.m4: New file.
66004
66005         Module unlocked-io.
66006         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66007         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66008         * m4/jm-glibc-io.m4n: Remove file.
66009
66010         Module long-options.
66011         * m4/long-options.m4: New file.
66012
66013         Module md5.
66014         * m4/md5.m4: New file.
66015
66016         Module sha.
66017         * m4/sha.m4: New file.
66018
66019         Module getstr.
66020         * m4/getstr.m4: New file.
66021
66022         Module getline.
66023         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66024         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66025         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66026         simply getline. Infoke gl_PREREQ_GETLINE.
66027
66028         Module obstack.
66029         * m4/obstack.m4: New file.
66030
66031         Module hash.
66032         * m4/hash.m4: New file.
66033
66034         Module readtokens.
66035         * m4/readtokens.m4: New file.
66036
66037         Module strverscmp.
66038         * m4/strverscmp.m4: New file.
66039
66040         Module stdbool.
66041         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66042         OSF/1.
66043
66044         Module strtoll.
66045         * m4/strtoll.m4: New file.
66046
66047         Module strtoull.
66048         * m4/strtoull.m4: New file.
66049
66050         Module strtoimax.
66051         * m4/strtoimax.m4: New file.
66052
66053         Module strtoumax.
66054         * m4/strtoumax.m4: New file.
66055
66056         Module xstrtoimax.
66057         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66058         jm_AC_PREREQ_XSTRTOIMAX.
66059         Moved the strtol prerequisites to strtol.m4.
66060         Moved the strtoll prerequisites to strtoll.m4.
66061         Moved the strtoimax prerequisites to strtoimax.m4.
66062
66063         Module xstrtoumax.
66064         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66065         jm_AC_PREREQ_XSTRTOUMAX.
66066         Moved the strtoul prerequisites to strtoul.m4.
66067         Moved the strtoull prerequisites to strtoull.m4.
66068         Moved the strtoumax prerequisites to strtoumax.m4.
66069
66070         Module chown.
66071         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66072         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66073
66074         Module dup2.
66075         * m4/dup2.m4: New file.
66076
66077         Module ftruncate.
66078         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66079         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66080
66081         Module getgroups.
66082         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66083         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66084
66085         Module gettimeofday.
66086         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66087         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66088         gl_PREREQ_GETTIMEOFDAY.
66089
66090         Module mkdir.
66091         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66092         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66093
66094         Module mkstemp.
66095         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66096         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66097         jm_AC_TYPE_UINTMAX_T.
66098         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66099
66100         Module stat.
66101         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66102         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66103
66104         Module lstat.
66105         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66106         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66107
66108         Module timespec.
66109         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66110         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66111         * m4/st_mtim.m4: Indentation.
66112
66113         Module nanosleep.
66114         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66115         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66116         gl_PREREQ_NANOSLEEP.
66117
66118         Module regex.
66119         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66120         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66121         (gl_REGEX): New macro.
66122
66123         Module rename.
66124         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66125         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66126
66127         Module rmdir.
66128         * m4/rmdir.m4: New file.
66129
66130         Module utime.
66131         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66132         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66133         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66134
66135         Module dirname.
66136         * m4/dirname.m4: New file.
66137
66138         Module getopt.
66139         * m4/getopt.m4: New file.
66140
66141         Module unistd-safer.
66142         * m4/unistd-safer.m4: New file.
66143
66144         Module fnmatch.
66145         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66146         declaration.
66147         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66148         (gl_FUNC_FNMATCH_POSIX): New macro.
66149         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66150         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66151         simply fnmatch.
66152
66153         Module exclude.
66154         * m4/exclude.m4: New file.
66155
66156         Module human.
66157         * m4/human.m4: New file.
66158
66159         Module acl.
66160         * m4/acl.m4: Nop.
66161
66162         Module backupfile.
66163         * m4/backupfile.m4: New file.
66164         * m4/d-ino.m4: Indentation.
66165
66166         Module fsusage.
66167         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66168         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66169         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66170
66171         Module dirfd.
66172         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66173         requirements.
66174
66175         Module euidaccess.
66176         * m4/euidaccess.m4: New file.
66177
66178         Module file-type.
66179         * m4/file-type.m4: New file.
66180
66181         Module fileblocks.
66182         * m4/fileblocks.m4: New file.
66183
66184         Module filemode.
66185         * m4/filemode.m4: New file.
66186
66187         Module isdir.
66188         * m4/isdir.m4: New file.
66189
66190         Module lchown.
66191         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66192         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66193
66194         Module makepath.
66195         * m4/makepath.m4: New file.
66196
66197         Module modechange.
66198         * m4/modechange.m4: New file.
66199
66200         Module mountlist.
66201         * m4/mountlist.m4: New file.
66202         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66203         Indentation.
66204
66205         Module path-concat.
66206         * m4/path-concat.m4: New file.
66207
66208         Module pathmax.
66209         * m4/pathmax.m4: New file.
66210
66211         Module same.
66212         * m4/same.m4: New file.
66213
66214         Module save-cwd.
66215         * m4/save-cwd.m4: New file.
66216
66217         Module savedir.
66218         * m4/savedir.m4: New file.
66219
66220         Module xgetcwd.
66221         * m4/xgetcwd.m4: New file.
66222         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66223
66224         Module xreadlink.
66225         * m4/xreadlink.m4: New file.
66226
66227         Module safe-read.
66228         * m4/safe-read.m4: New file.
66229
66230         Module safe-write.
66231         * m4/safe-write.m4: New file.
66232
66233         Module closeout.
66234         * m4/closeout.m4: New file.
66235
66236         Module stdio-safer.
66237         * m4/stdio-safer.m4: New file.
66238
66239         Module getpass.
66240         * m4/getpass.m4: New file.
66241
66242         Module getugroups.
66243         * m4/getugroups.m4: New file.
66244
66245         Module group-member.
66246         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
66247         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
66248
66249         Module idcache.
66250         * m4/idcache.m4: New file.
66251
66252         Module userspec.
66253         * m4/userspec.m4: New file.
66254
66255         Module gettime.
66256         * m4/clock_time.m4: New file.
66257         * m4/gettime.m4: New file.
66258
66259         Module settime.
66260         * m4/settime.m4: New file.
66261
66262         Module posixtm.
66263         * m4/posixtm.m4: New file.
66264
66265         Module gethostname.
66266         * m4/gethostname.m4: New file.
66267
66268         Module canon-host.
66269         * m4/canon-host.m4: New file.
66270
66271         Module gettext.
66272         * m4/codeset.m4: New file, from gettext-0.11.5.
66273         * m4/gettext.m4: New file, from gettext-0.11.5.
66274         * m4/glibc21.m4: New file, from gettext-0.11.5.
66275         * m4/iconv.m4: New file, from gettext-0.11.5.
66276         * m4/intdiv0.m4: New file, from gettext-0.11.5.
66277         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
66278         * m4/inttypes.m4: New file, from gettext-0.11.5.
66279         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
66280         * m4/isc-posix.m4: New file, from gettext-0.11.5.
66281         * m4/lcmessage.m4: New file, from gettext-0.11.5.
66282         * m4/lib-ld.m4: New file, from gettext-0.11.5.
66283         * m4/lib-link.m4: New file, from gettext-0.11.5.
66284         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66285         * m4/progtest.m4: New file, from gettext-0.11.5.
66286         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66287         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66288         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66289
66290         Module localcharset.
66291         * m4/localcharset.m4: New file.
66292
66293         Module hard-locale.
66294         * m4/hard-locale.m4: New file.
66295
66296         Module mbswidth.
66297         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66298         onceonly macros.
66299         * m4/mbrtowc.m4: Add comment.
66300
66301         Module memcasecmp.
66302         * m4/memcasecmp.m4: New file.
66303
66304         Module memcoll.
66305         * m4/memcoll.m4: New file.
66306
66307         Module unicodeio.
66308         * m4/unicodeio.m4: New file.
66309
66310         Module rpmatch.
66311         * m4/rpmatch.m4: New file.
66312
66313         Module yesno.
66314         * m4/yesno.m4: New file.
66315
66316         Module exitfail.
66317         * m4/exitfail.m4: New file.
66318
66319         Module c-stack.
66320         * m4/c-stack.m4 (gl_C_STACK): New macro.
66321         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66322
66323         Module error.
66324         * m4/error.m4 (gl_ERROR): New macro.
66325         (jm_PREREQ_ERROR): Use onceonly macros.
66326
66327         Module fatal.
66328         * m4/fatal.m4: New file.
66329
66330         Module getloadavg.
66331         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66332         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66333
66334         Module getpagesize.
66335         * m4/getpagesize.m4: New file.
66336
66337         Module getusershell.
66338         * m4/getusershell.m4: New file.
66339
66340         Module physmem.
66341         * m4/physmem.m4: New file.
66342
66343         Module posixver.
66344         * m4/posixver.m4: New file.
66345
66346         Module quotearg.
66347         * m4/quotearg.m4: New file.
66348
66349         Module quote.
66350         * m4/quote.m4: New file.
66351
66352         Module readutmp.
66353         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66354
66355         Module sig2str.
66356         * m4/sig2str.m4: New file.
66357
66358         Other.
66359         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66360         ulonglong.m4.
66361         * m4/intmax_t.m4: New file.
66362         * m4/d-type.m4: Indentation.
66363         * m4/jm-macros.m4: Update.
66364         * m4/prereq.m4 (jm_PREREQ): Update.
66365         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66366         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66367         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66368         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66369         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66370         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66371         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66372         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66373         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66374         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66375         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66376         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66377         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66378         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66379         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66380         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66381         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66382         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66383         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66384
66385 2002-12-24  Bruno Haible  <bruno@clisp.org>
66386
66387         * MODULES.txt: Update according to m4/ changes.
66388
66389         Module gettext.
66390         * config.rpath: New file, from gettext-0.11.5.
66391
66392         * modules/*: New module descriptions.
66393         * gnulib-tool: New file.
66394         * MODULES.html.sh: New file.
66395
66396 2002-12-21  Karl Berry  <karl@gnu.org>
66397
66398         * doc/fdl.texi: update to version 1.2.
66399
66400 2002-12-19  Karl Berry  <karl@gnu.org>
66401
66402         * config/config.guess: update from prep.
66403
66404 2002-12-18  Bruno Haible  <bruno@clisp.org>
66405
66406         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66407         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66408
66409 2002-12-17  Bruno Haible  <bruno@clisp.org>
66410
66411         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66412         stdlib.h, string.h.
66413
66414 2002-12-17  Bruno Haible  <bruno@clisp.org>
66415
66416         * lib/canon-host.c (strdup): Remove unused declaration.
66417
66418         * lib/fsusage.c: Include full_read.h.
66419         (get_fs_usage): Use full_read instead of safe_read.
66420
66421         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
66422
66423 2002-12-12  Karl Berry  <karl@gnu.org>
66424
66425         * config/config.guess: update from prep.
66426
66427 2002-12-11  Bruno Haible  <bruno@clisp.org>
66428
66429         * m4/setenv.m4: New file, from gettext-0.11.5.
66430
66431 2002-12-11  Bruno Haible  <bruno@clisp.org>
66432
66433         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
66434         not unsetenv().
66435         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
66436         modifications:
66437
66438         2002-12-11  Bruno Haible  <bruno@clisp.org>
66439
66440                 * setenv.c (alloca): Fall back to malloc.
66441                 (freea): New macro.
66442                 (setenv): Use freea() to free memory allocated with alloca().
66443
66444         2002-11-13  Bruno Haible  <bruno@clisp.org>
66445
66446                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
66447                 function declarations.
66448                 * unsetenv.c (unsetenv): Likewise.
66449
66450         2002-03-04  Bruno Haible  <bruno@clisp.org>
66451
66452                 Portability to AIX 4.3.3.
66453                 * unsetenv.c: New file, extracted from setenv.c.
66454                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66455
66456         2001-12-20  Bruno Haible  <bruno@clisp.org>
66457
66458                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
66459                 use malloc instead. For SunOS 4.
66460
66461         2001-12-11  Bruno Haible  <bruno@clisp.org>
66462
66463                 * setenv.c: Declare alloca.
66464                 (compar_fn_t): New typedef.
66465                 (KNOWN_VALUE, STORE_VALUE): Use it.
66466
66467         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
66468         setenv.h.
66469
66470 2002-12-10  Paul Eggert  <eggert@twinsun.com>
66471
66472         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
66473         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
66474         Choose values that are less likely to collide with system fnmatch
66475         options.
66476         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
66477         defined (e.g., a pure POSIX system).
66478         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
66479         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
66480
66481 2002-12-06  Paul Eggert  <eggert@twinsun.com>
66482
66483         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
66484         a pain in practice to deal with generated m4 files.  This change
66485         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
66486
66487         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
66488         and jm-glibc-io.m4, as they are no longer a special case.
66489         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
66490         kludge and the auto-generation stuff.  Check only whether the
66491         functions are declared, not whether they exist, since older hosts
66492         that don't declare the functions can't use the optimization anyway.
66493
66494 2002-12-06  Jim Meyering  <jim@meyering.net>
66495
66496         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
66497
66498         Merge in changes from libc's misc/error.c, in preparation
66499         for the merge of gnulib's changes back into libc.
66500
66501         * lib/error.c (_): Define only if not already defined.
66502         Move definition to follow all #include directives.
66503         Include unlocked-io.h only if !_LIBC.
66504         [_LIBC]: Include <libio/libioP.h>.
66505         [USE_IN_LIBIO]: Include <libio/iolibio.h>
66506         (fflush): Tweak definition to use INTUSE.
66507         (putc): Define.
66508
66509 2002-12-05  Paul Eggert  <eggert@twinsun.com>
66510
66511         * lib/alloca.c [defined emacs]: Include "lisp.h".
66512         (xalloc_die) [defined emacs]: New macro.
66513         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
66514         [! defined emacs]: Include <xalloc.h>.
66515         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
66516         (pointer): Typedef to POINTER_TYPE *.
66517         (malloc): Remove decl; we now always use xmalloc.
66518         (alloca): Use old-style definition, since Emacs needs this.
66519         Check for arithmetic overflow when computing combined size.
66520
66521 2002-12-04  Paul Eggert  <eggert@twinsun.com>
66522
66523         Do not generate unlocked-io.h automatically, since it's easier to
66524         maintain it by hand.
66525
66526         * lib/unlocked-io.h: New file, from GNU diffutils,
66527         but with proper copyright notice and attribution.
66528         * lib/gen-uio: Remove.
66529         * lib/Makefile.am: Add copyright notice.
66530         (libfetish_a_SOURCES): Add unlocked-io.h.
66531         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
66532         (DISTCLEANFILES, io_functions): Remove macros.
66533         (EXTRA_DIST): Remove gen_uio.
66534         (unlocked-io.h): Remove rule.
66535
66536 2002-12-04  Jim Meyering  <jim@meyering.net>
66537
66538         Reflect the fact that stat.c and lstat.c are no longer generated.
66539         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
66540         (DISTCLEANFILES): Likewise.
66541         (EXTRA_DIST): Likewise.
66542         (all_local): Don't depend on stat.c or lstat.c.
66543         (stat.c, lstat.c): Remove rules.
66544         (EXTRA_DIST): Remove xstat.in.
66545
66546         * lib/xstat.in: Remove file.  Contents moved into stat.c.
66547         * lib/stat.c: New file.  Contents mostly from xstat.in.
66548         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
66549         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
66550
66551         * lib/safe-read.c: Rework so that it may serve to define safe_write,
66552         too.
66553         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
66554
66555 2002-12-03  Jim Meyering  <jim@meyering.net>
66556
66557         * lib/safe-read.c, safe-write.c: Change variable names and comments,
66558         but not semantics, to minimize the differences between these two files.
66559         (safe_read): Change comment to mention SAFE_READ_ERROR.
66560
66561         * lib/safe-read.c (IS_EINTR): Define.
66562         (safe_read): Use IS_EINTR in place of in-function cpp directives.
66563
66564 2002-12-02  Jim Meyering  <jim@meyering.net>
66565
66566         * lib/safe-read.c (EINTR): Define.
66567         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66568         (INT_MAX): Provide fallback.
66569         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
66570
66571         * lib/safe-read.h (SAFE_READ_ERROR): Define.
66572
66573 2002-12-02  Bruno Haible  <bruno@clisp.org>
66574
66575         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
66576         Define, taken from safe-read.c.
66577         (INT_MAX): Provide fallback.
66578         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
66579         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
66580
66581         * lib/safe-read.c (EINTR): Remove definition.
66582         (safe_read): Don't use EINTR if it is absent.
66583
66584 2002-12-01  Jim Meyering  <jim@meyering.net>
66585
66586         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
66587         zero.
66588         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
66589
66590 2002-11-27  Paul Eggert  <eggert@twinsun.com>
66591
66592         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
66593         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
66594         with `if (! (value < limit)) abort ();', for readability.
66595
66596 2002-11-26  Karl Berry  <karl@gnu.org>
66597
66598         * lib/strdup.c: copy from libc again, with jim's ok.
66599         * lib/.cppi-disable: re-add strdup.c
66600
66601 2002-11-25  Karl Berry  <karl@gnu.org>
66602
66603         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
66604         instead of "strtol.c".
66605
66606 2002-11-25  Karl Berry  <karl@gnu.org>
66607
66608         * config/install-sh: update from automake for variable quoting, $0 in
66609         error msgs, etc.
66610
66611         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
66612         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
66613         entry.
66614
66615 2002-11-25  Jim Meyering  <jim@meyering.net>
66616
66617         * lib/mktime.c: Sync from libc, now that it has the latest fix.
66618
66619 2002-11-24  Karl Berry  <karl@gnu.org>
66620
66621         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
66622         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
66623
66624 2002-11-24  Jim Meyering  <jim@meyering.net>
66625
66626         Update from coreutils:
66627
66628         * lib/mktime.c: Merge in changes from libc.
66629
66630         Avoid a link-time failure on some Linux systems.
66631         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
66632         (otherwise).
66633         (__mon_yday): Declare with the STATIC attribute.
66634         (__mktime_internal): Likewise.
66635         Based on a report from Greg Schafer.
66636
66637 2002-11-23  Jim Meyering  <jim@meyering.net>
66638
66639         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
66640         Use `unsigned', not `int', as type of index.
66641
66642         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
66643
66644         * lib/fsusage.c: Remove unneeded parentheses around operands of
66645         `defined'.
66646
66647 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66648
66649         * lib/quotearg.h: Allow multiple inclusion by surrounding with
66650         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
66651         so that we can be included first.
66652         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
66653         * lib/quotearg.c: Include quotearg.h immediately after config.h.
66654         No need to include stddef.h or sys/types.h any more.
66655         Surround local include files with "", not "<>".
66656         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
66657         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
66658         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
66659         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
66660         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
66661         (ISPRINT): Remove; no longer needed now that we assume C89.
66662
66663         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
66664         Preserve errno.
66665
66666         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
66667         quotearg_char): Use SIZE_MAX rather than
66668         (size_t) -1 when we are talking about "infinity".
66669
66670         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
66671
66672 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66673
66674         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
66675         hint that one should use `if (! x) abort ();' rather than `assert
66676         (x);', and anyway it's one less thing to worry about configuring.
66677         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
66678         hash_rehash, hash_insert): Use abort rather than assert.
66679
66680 2002-11-22  Bruno Haible  <bruno@clisp.org>
66681
66682         * lib/safe-read.h: Assume C89. Add comments.
66683         (safe_read): Change return type to size_t.
66684         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
66685         byte counts > SSIZE_MAX correctly.
66686         * lib/safe-write.h: New file.
66687         * lib/safe-write.c: New file.
66688         * lib/full-read.h: New file.
66689         * lib/full-read.c: New file.
66690         * lib/full-write.h: Assume C89. Add comments.
66691         * lib/full-write.c: Include safe-write.h.
66692         (full_write): Rewritten to use safe_write.
66693         Suggested by Jim Meyering and Paul Eggert.
66694
66695 2002-11-21  Jim Meyering  <jim@meyering.net>
66696
66697         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
66698
66699         Merge in changes from the coreutils.
66700
66701         2002-09-25  Paul Eggert  <eggert@twinsun.com>
66702         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
66703         <stdint.h>.
66704         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
66705         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
66706         int.  Work more efficiently if X is the same width as uintmax_t.
66707         Do not compare X to -1, to avoid bogus compiler warning.
66708         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
66709         Don't assume that f_frsize and f_bsize are the same type.
66710
66711         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
66712         warning on FreeBSD.
66713
66714         * lib/makepath.c (make_path): Restore umask *before* creating the final
66715         component.
66716         (make_path): Minor reformatting.
66717
66718         * lib/xmalloc.c: Adjust to work with new autoconf macros,
66719         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
66720         HAVE_MALLOC/HAVE_REALLOC.
66721
66722         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
66723         dummy ones.  At least on GNU/Linux systems, `auto' means something
66724         else.
66725         From Michael Stone.
66726
66727 2002-11-21  Bruno Haible  <bruno@clisp.org>
66728
66729         Remove case insensitive option matching.
66730         * lib/argmatch.h (argcasematch): Remove declaration.
66731         (ARGCASEMATCH): Remove macro.
66732         (__xargmatch_internal): Remove case_sensitive argument.
66733         (XARGMATCH): Update.
66734         (XARGCASEMATCH): Remove macro.
66735         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
66736         case_sensitive argument.
66737         (argcasematch): Remove function.
66738         (__xargmatch_internal): Remove case_sensitive argument.
66739         (main): Use XARGMATCH instead of XARGCASEMATCH.
66740
66741         * lib/xmalloc.c: Change compile-time error message. Add comment about
66742         required autoconf version.
66743
66744 2002-11-20  Paul Eggert  <eggert@twinsun.com>
66745
66746         Merge argmatch cleanups from Bison.  Assume C89.
66747
66748         * lib/argmatch.c: Include config.h here, not in argmatch.h.
66749         Include stdlib.h, for EXIT_FAILURE.
66750         Always include <string.h>, since we assume C89.
66751         (EXIT_FAILURE): Remove pre-C89 bug workaround.
66752         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
66753         Include <stddef.h> instead, since it's all we need for size_t.
66754         (PARAMS): Remove.  All uses removed.
66755         (ARRAY_CARDINALITY): Do not bother to #undef.
66756         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
66757         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66758         Remove unnecessary parentheses.
66759         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66760         Insert necessary parentheses.
66761         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
66762         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
66763
66764 2002-11-19  Bruno Haible  <bruno@clisp.org>
66765
66766         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
66767         * lib/mbswidth.h: Include <stddef.h>, for size_t.
66768
66769         * lib/mbswidth.h (PARAMS): Remove macro.
66770         (mbswidth, mbsnwidth): Use ANSI C function declarations.
66771         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
66772
66773         * lib/gcd.h (PARAMS): Remove macro.
66774         (gcd): Use ANSI C function declarations.
66775         * lib/gcd.c (gcd): Likewise.
66776
66777 2002-11-15  Bruno Haible  <bruno@clisp.org>
66778
66779         * lib/strcspn.c: Include <stddef.h>.
66780         (strcspn): Use ANSI C function declaration. Change return type to
66781         size_t. Use NULL.
66782         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
66783         (strpbrk): Use NULL.
66784         * lib/strpbrk.h (PARAMS): Remove macro.
66785         (strpbrk): Use ANSI C function declaration.
66786         * lib/strstr.c: Don't include <sys/types.h>.
66787         * lib/strstr.h (PARAMS): Remove macro.
66788         (strstr): Use ANSI C function declarations.
66789
66790 2002-11-14  Karl Berry  <karl@gnu.org>
66791
66792         * config/mkinstalldirs: `do' on separate line, instead of
66793         `for var; do'.
66794
66795 2002-11-06  Bruno Haible  <bruno@clisp.org>
66796
66797         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
66798         * lib/gcd.c (gcd): Likewise.
66799
66800 2002-11-05  Bruno Haible  <bruno@clisp.org>
66801
66802         * lib/gcd.h: New file, from gettext-0.11.5.
66803         * lib/gcd.c: New file, from gettext-0.11.5.
66804
66805 2002-11-05  Bruno Haible  <bruno@clisp.org>
66806
66807         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66808         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66809         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66810         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66811
66812         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
66813         <libintl.h>.
66814         * lib/makepath.c: Include gettext.h instead of <locale.h> and
66815         <libintl.h>.
66816
66817         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
66818         * lib/human.c: Include gettext.h instead of <libintl.h>.
66819         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
66820         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
66821         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
66822         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
66823         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
66824         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
66825         (textdomain): Remove definition.
66826         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
66827
66828         * lib/long-options.c: Remove include of <libintl.h> and definition of
66829         _.
66830         * lib/same.c: Remove include of <libintl.h> and definition of _.
66831
66832 2002-11-04  Owen Taylor  <otaylor@redhat.com>
66833
66834         * lib/config.charset: A few additions for Solaris.
66835
66836 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
66837
66838         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
66839         * lib/localcharset.c (locale_charset): Declare as extern "C".
66840
66841 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
66842
66843         * lib/config.charset: msdos in uk_UA uses CP1125.
66844
66845 2002-11-04  Bruno Haible  <bruno@clisp.org>
66846
66847         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
66848         * lib/strcase.h: New file, from GNU gettext-0.11.5.
66849         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
66850         * lib/strstr.h: New file, from GNU gettext-0.11.5.
66851         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
66852
66853 2002-11-04  Bruno Haible  <bruno@clisp.org>
66854
66855         * lib/localcharset.c (locale_charset): Don't return an empty string.
66856
66857 2002-11-04  Bruno Haible  <bruno@clisp.org>
66858
66859         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
66860         aliases.
66861
66862 2002-11-04  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/config.charset: Update for newest glibc. Add canonical names
66865         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
66866
66867 2002-11-04  Bruno Haible  <bruno@clisp.org>
66868
66869         * lib/config.charset: Add support for NetBSD.
66870
66871 2002-11-04  Bruno Haible  <bruno@clisp.org>
66872
66873         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
66874
66875 2002-11-01  Bruno Haible  <bruno@clisp.org>
66876
66877         * configure.in: Add AC_CONFIG_AUX_DIR call.
66878         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
66879         test/Makefile.
66880         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
66881
66882 2002-09-28  Karl Berry  <karl@gnu.org>
66883
66884         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
66885         installed automake until the next release, since changes have been
66886         made.
66887
66888 2002-09-25  Karl Berry  <karl@gnu.org>
66889
66890         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
66891         * lib/getopt*: copy from libc/posix.
66892         * lib/gettext.h: copy from gettext.
66893         * lib/.cppi-disable: add strdup.c, gettext.h.
66894
66895 2002-09-25  Karl Berry  <karl@gnu.org>
66896
66897         * config/srclist.txt: enable gettext.h check.
66898         * config/config.{guess,sub}: update from prep.
66899         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
66900                 from automake 1.6.3.
66901         See srclist*.
66902
66903 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
66904
66905         * regex.c (PATFETCH): Remove the translating fetch.
66906         (PATFETCH_RAW): Rename to PATFETCH.
66907         (set_image_of_range): New fun.
66908         (SET_RANGE_TABLE_WORK_AREA): Use it.
66909         (regex_compile): Don't translate the pattern chars so eagerly.
66910         Only do it when inserting an `exactn' bytecode or when handling
66911         a char-range.
66912         (mutually_exclusive_p): Avoid empty statement.
66913
66914 2002-07-06  Jim Meyering  <meyering@lucent.com>
66915
66916         * m4/README: Don't mention Makefile.am.in.
66917         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
66918
66919 2002-07-01  Jim Meyering  <meyering@lucent.com>
66920
66921         * lib/c-stack.c: Include sys/time.h.
66922         From Volker Borchert.
66923
66924 2002-06-26  Paul Eggert  <eggert@twinsun.com>
66925
66926         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
66927
66928 2002-06-26  Paul Eggert  <eggert@twinsun.com>
66929
66930         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
66931         New macro.  Use it uniformly instead of
66932         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
66933         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
66934         reported by Vin Shelton.
66935
66936 2002-06-22  Paul Eggert  <eggert@twinsun.com>
66937
66938         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
66939         Do not assume SA_SIGINFO behavior.
66940         Bug reported by Jim Meyering on NetBSD 1.5.2.
66941
66942 2002-06-22  Jim Meyering  <meyering@lucent.com>
66943
66944         * m4/c-stack.m4: New file, from diffutils-2.8.2.
66945         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
66946
66947         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
66948         now that configure.ac uses AC_GNU_SOURCE.
66949         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
66950         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
66951
66952         Update to latest tools.  Suggestions from Paul Eggert.
66953         * m4/stdbool.m4: New file, from diffutils-2.8.2.
66954         * m4/gnu-source.m4: Update from diffutils-2.8.2.
66955         * m4/fnmatch.m4: Likewise.
66956         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
66957         to AC_HEADER_STDBOOL
66958
66959 2002-06-22  Jim Meyering  <meyering@lucent.com>
66960
66961         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
66962         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
66963
66964 2002-06-22  Jim Meyering  <meyering@lucent.com>
66965
66966         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
66967
66968         * lib/exitfail.c, exitfail.h: Likewise.
66969         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
66970
66971         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
66972         of fnmatch.h.
66973         (EXTRA_DIST): Add fnmatch_loop.c.
66974         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
66975
66976         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
66977         * lib/fnmatch.c: Update from diffutils-2.8.2.
66978         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
66979         * lib/fnmatch.h: Remove file.
66980
66981 2002-06-21  Jim Meyering  <meyering@lucent.com>
66982
66983         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
66984         * m4/mbrtowc.m4: Likewise.
66985
66986         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
66987         * m4/mbswidth.m4: Reflect name change:
66988         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
66989         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66990
66991         * m4/lib-link.m4: Update from gettext-0.11.2.
66992         * m4/gettext.m4: Likewise.
66993
66994         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
66995         From Alfred M. Szmidt.
66996
66997 2002-06-18  Paul Eggert  <eggert@twinsun.com>
66998
66999         * lib/file-type.h: Report an error if neither S_ISREG nor
67000         S_IFREG is defined, instead of using a test specific to glibc
67001         2.2.  This should be safe, since POSIX requires S_ISREG and
67002         Unix Version 7 had S_IFREG.  We don't need to check for
67003         <sys/types.h> since we don't use any symbols that it defines.
67004
67005 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67006
67007         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67008         $@-t, so that each temporary file name is unique and valid in the first
67009         8 characters, for operation under DOS.
67010
67011 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67012
67013         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67014
67015 2002-06-15  Jim Meyering  <meyering@lucent.com>
67016
67017         Work even with DJGPP 2.03, which lacks support for symlinks.
67018         From Richard Dawe.
67019         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67020         is defined.
67021         * lib/lchown.c (S_ISLNK): Likewise.
67022
67023 2002-06-15  Jim Meyering  <meyering@lucent.com>
67024
67025         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67026         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67027         have been included before this file.
67028
67029 2002-06-14  Jim Meyering  <meyering@lucent.com>
67030
67031         * lib/file-type.h: Use the version from diffutils-2.8.2.
67032         * lib/file-type.c: Likewise.
67033
67034 2002-06-07  Jim Meyering  <meyering@lucent.com>
67035
67036         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67037         They're needed at least for NetBSD 1.5.2.
67038         ($statxfs_includes): Include those same headers.
67039         ($statxfs_includes): Include sys/vfs.h if available.
67040         ($statxfs_includes): Likewise for sys/statvfs.h.
67041         Check for the following members in both structs statfs and statvfs:
67042         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67043
67044 2002-06-01  Jim Meyering  <meyering@lucent.com>
67045
67046         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67047         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67048
67049 2002-05-28  Jim Meyering  <meyering@lucent.com>
67050
67051         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67052         Reported by Volker Borchert.
67053
67054 2002-05-27  Jim Meyering  <meyering@lucent.com>
67055
67056         Fix a problem seen only on nonconforming systems whereby ls.c's
67057         use of localtime, and then of gettimeofday would cause trouble:
67058         the localtime call used to initialize rpl_gettimeofday's save
67059         mechanism would clobber ls's current local time information so
67060         that in any long listing the first file would always be listed
67061         with date 1970-01-01.  Analysis by Volker Borchert.
67062
67063         * lib/gettimeofday.c (localtime): Undefine.
67064         (rpl_localtime): New function.
67065
67066 2002-05-27  Jim Meyering  <meyering@lucent.com>
67067
67068         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67069         localtime.
67070
67071         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67072         use the replacement function; it wouldn't resolve at link time.
67073         Reported by Volker Borchert.
67074
67075 2002-05-22  Jim Meyering  <meyering@lucent.com>
67076
67077         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67078         file-type.h.
67079         * lib/file-type.h: New file.
67080         * lib/file-type.c (file_type): New file/function.  Extracted from
67081         diffutils.
67082
67083 2002-04-30  Jim Meyering  <meyering@lucent.com>
67084
67085         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67086
67087 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67088
67089         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67090
67091 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67092
67093         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67094         Do not check for alloca.h (no longer used) or stdbool.h (was never
67095         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67096
67097 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67098
67099         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67100
67101 2002-04-29  Jim Meyering  <meyering@lucent.com>
67102
67103         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67104         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67105         Use AC_FUNC_STRNLEN here instead.
67106
67107         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67108         With autoconf-2.53a, it's part of AC_PROG_CC.
67109
67110 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67111
67112         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67113         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67114
67115 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67116
67117         * lib/sig2str.h, lib/sig2str.c: New files.
67118         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67119
67120 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67121
67122         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67123         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67124         of 127, since 64 is the largest conceivable number for ancient
67125         nonstandard hosts.
67126         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67127
67128 2002-04-28  Jim Meyering  <meyering@lucent.com>
67129
67130         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67131
67132 2002-04-24  Jim Meyering  <meyering@lucent.com>
67133
67134         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67135         (jm_PREREQ): Use it.
67136
67137         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67138         mach/mach.h fcntl.h.
67139         Check for this function: setlocale.
67140
67141 2002-04-24  Jim Meyering  <meyering@lucent.com>
67142
67143         * lib/gettext.h: New file, from Gettext.
67144         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67145         (libfetish_a_SOURCES): Add gettext.h.
67146
67147 2002-04-16  Jim Meyering  <meyering@lucent.com>
67148
67149         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67150         ut_pid, ut_id, ut_exit.
67151
67152 2002-04-16  Jim Meyering  <meyering@lucent.com>
67153
67154         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67155         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67156         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67157
67158 2002-04-12  Jim Meyering  <meyering@lucent.com>
67159
67160         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67161         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67162         existence of the getmntinfo function.  Needed for Darwin 5.3.
67163
67164         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67165         This is necessary at least on Darwin 5.3.
67166
67167         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67168         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67169         strnlen.o in the library, and that makes some versions of ranlib
67170         object.
67171
67172 2002-04-12  Jim Meyering  <meyering@lucent.com>
67173
67174         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67175
67176 2002-04-09  Jim Meyering  <meyering@lucent.com>
67177
67178         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67179         to be more precise.  Rather than saying we're checking whether the
67180         function `works', say what we're testing.
67181         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67182         Reported by Bruno Haible.
67183
67184 2002-03-10  Jim Meyering  <meyering@lucent.com>
67185
67186         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67187         Suggestion from Santiago Vila.
67188
67189 2002-03-08  Jim Meyering  <meyering@lucent.com>
67190
67191         * lib/rename.c: Mention that this wrapper is needed also on
67192         mips-dec-ultrix4.4 systems.
67193
67194 2002-03-02  Jim Meyering  <meyering@lucent.com>
67195
67196         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67197         not HAVE_CLOCK_SETTIME.
67198
67199 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67200
67201         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67202         Check for clock_settime.
67203
67204 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67205
67206         * lib/nanosleep.h: Rename to....
67207         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67208
67209         * lib/gettime.c: New file.
67210         * lib/settime.c: New file.
67211         * lib/stime.c: Remove.
67212
67213         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67214         timespec.h.  Remove nanosleep.h.
67215
67216 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67217
67218         * m4/acl.m4: New file.
67219         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67220         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67221
67222 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67223
67224         * lib/acl.c, lib/acl.h: New files.
67225         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67226
67227 2002-02-24  Jim Meyering  <meyering@lucent.com>
67228
67229         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67230         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67231         cause trouble.  Reported by Nelson Beebe.
67232
67233 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67234
67235         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67236         compilers that don't know that xalloc_die never returns.
67237
67238 2002-02-20  Jim Meyering  <meyering@lucent.com>
67239
67240         * lib/getdate.c: Regenerate using bison-1.33.
67241
67242 2002-02-17  Jim Meyering  <meyering@lucent.com>
67243
67244         * config/config.guess (main): Don't use `head -1'; it's no longer
67245         portable. Use `sed 1q' instead.
67246
67247 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
67248
67249         * m4/codeset.m4: Upgrade to gettext-0.11.
67250         * m4/gettext.m4: Upgrade to gettext-0.11.
67251         * m4/glibc21.m4: Upgrade to gettext-0.11.
67252         * m4/iconv.m4: Upgrade to gettext-0.11.
67253         * m4/isc-posix.m4: Upgrade to gettext-0.11.
67254         * m4/lcmessage.m4: Upgrade to gettext-0.11.
67255         * m4/lib-ld.m4: New file, from gettext-0.11.
67256         * m4/lib-link.m4: New file, from gettext-0.11.
67257         * m4/lib-prefix.m4: New file, from gettext-0.11.
67258         * m4/progtest.m4: Upgrade to gettext-0.11.
67259
67260 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67261
67262         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
67263         (jm_PREREQ): Use it.
67264
67265 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67266
67267         * lib/posixver.c, lib/posixver.h: New files.
67268         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67269
67270 2002-02-02  Paul Eggert  <eggert@twinsun.com>
67271             Bruno Haible  <bruno@clisp.org>
67272
67273         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
67274         (fwrite_success_callback): New declaration.
67275         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
67276         print_unicode_char. Call failure callback instead of error.
67277         (fwrite_success_callback): New function.
67278         (exit_failure_callback): New function.
67279         (fallback_failure_callback): New function.
67280         (print_unicode_char): Call unicode_to_mb.
67281
67282 2002-01-26  Jim Meyering  <meyering@lucent.com>
67283
67284         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67285         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67286
67287 2002-01-26  Jim Meyering  <meyering@lucent.com>
67288
67289         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67290
67291 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67292
67293         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67294
67295 2002-01-22  Jim Meyering  <meyering@lucent.com>
67296
67297         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67298         Otherwise, some versions of automake would omit the rule that makes
67299         Makefile from Makefile.in.
67300
67301 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67302
67303         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67304         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67305         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67306         (memcoll): Set errno to zero if there is no error.
67307
67308         * lib/quotearg.c (quotearg_buffer_restyled):
67309         Fix bug with quoting buffers containing NUL when backslashing escapes.
67310         This bug was exposed by the other changes in this patch.
67311         (quotearg_n_options): New arg ARGSIZE.
67312         All callers changed.
67313         (quoting_options_from_style): New function.
67314         (quotearg_n_style): Use it.
67315         (quotearg_n_style_mem): New function.
67316
67317         * lib/quotearg.h (quotearg_n_style_mem): New function.
67318
67319 2002-01-19  Jim Meyering  <meyering@lucent.com>
67320
67321         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67322         Remove useless quotes: DF_PROG="df".
67323         * m4/strnlen.m4: New file.
67324
67325 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67326
67327         * lib/backupfile.c (ISDIGIT): Comment fix.
67328         * lib/getdate.y (ISDIGIT): Likewise.
67329         * lib/posixtm.c (ISDIGIT, year): Likewise.
67330         * lib/strverscmp.c (ISDIGIT): Likewise.
67331         * lib/userspec.c (ISDIGIT): Likewise.
67332
67333 2002-01-16  Jim Meyering  <meyering@lucent.com>
67334
67335         * lib/getdate.y: Add three semicolons, each just before a closing
67336         brace. Bison (as of version 1.31) no longer papers over that mistake.
67337
67338 2002-01-05  Jim Meyering  <meyering@lucent.com>
67339
67340         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67341
67342 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67343
67344         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67345         not silently exit merely because the output buffer happens to
67346         have nothing pending.
67347
67348 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67349
67350         See the big note in ../ChangeLog.
67351         * lib/human.c (suffixes): Prefer K to k for 1024.
67352         (generate_suffix_backwards): New function.
67353         (human_readable_inexact): Use it.
67354         * lib/xstrtol.c (__xstrtol): If there is no number but there
67355         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67356         Accept 'K' as well as 'k'.
67357
67358 2001-12-15  Jim Meyering  <meyering@lucent.com>
67359
67360         * lib/regex.h (__restrict_arr): Update from libc.
67361
67362         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67363         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67364         (STREQ): Define.
67365
67366 2001-12-14  Jim Meyering  <meyering@lucent.com>
67367
67368         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67369         Suggestion from Bruno Haible.
67370
67371 2001-12-10  Jim Meyering  <meyering@lucent.com>
67372
67373         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67374         xrealloc, Instead, include "xalloc.h".
67375         (initbuffer): Don't cast xmalloc return value to char*.
67376         (readline): Reword comment.
67377         Don't cast xrealloc return value to char*
67378         Return NULL, not 0.
67379
67380 2001-12-09  Jim Meyering  <meyering@lucent.com>
67381
67382         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67383         about `signed and unsigned type in conditional expression'.
67384         * lib/posixtm.c (posix_time_parse): Likewise.
67385
67386         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67387
67388         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67389         to avoid a pedantic warning.
67390
67391         * lib/getstr.c: Don't include assert.h.
67392         (getstr): Remove warning-evoking assertions.
67393         Return -1 if offset parameter is out of bounds.
67394         Change the type of a local from int to size_t.
67395
67396         * lib/strftime.c (my_strftime_localtime_r): Include this function
67397         definition in the `#if ! HAVE_TM_GMTOFF' block.
67398
67399         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67400         Include xalloc.h instead.
67401
67402 2001-12-02  Jim Meyering  <meyering@lucent.com>
67403
67404         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67405         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67406         included.
67407
67408         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67409         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67410
67411 2001-11-30  Akim Demaille  <akim@epita.fr>
67412
67413         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
67414         before being defined.
67415
67416 2001-11-27  Paul Eggert  <eggert@twinsun.com>
67417
67418         * lib/quotearg.h (quotearg_n, quotearg_n_style):
67419         First arg is int, not unsigned.
67420         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
67421         (SIZE_MAX, UINT_MAX): New macros.
67422         (quotearg_n_options): Abort if N is negative.
67423         Avoid overflow check on hosts where size_t is 64 bits and int
67424         is 32 bits, as overflow is impossible there.
67425         Fix off-by-one typo that caused unnecessary reallocation.
67426
67427 2001-11-27  Jim Meyering  <meyering@lucent.com>
67428
67429         * lib/tempname.c: Merge with version from libc.
67430         * lib/regex.c: Likewise.
67431
67432         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
67433         systems for which STDC_HEADERS is 0, it was not included, resulting in
67434         a warning about an integer-to-pointer conversion problem with getenv.
67435         Reported by Volker Borchert.
67436
67437 2001-11-26  Jim Meyering  <meyering@lucent.com>
67438
67439         * lib/gtod.h: Remove file.
67440         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
67441         * lib/gettimeofday.c: Don't include gtod.h.
67442         (GTOD_init): Remove function.
67443         (rpl_gettimeofday): Do its job here instead, rather than aborting.
67444         Suggestion from Volker Borchert.
67445
67446 2001-11-23  Jim Meyering  <meyering@lucent.com>
67447
67448         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
67449         it.
67450         * lib/hash.c (struct hash_table): Define it here instead.
67451
67452 2001-11-22  Jim Meyering  <meyering@lucent.com>
67453
67454         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
67455
67456 2001-11-20  Jim Meyering  <meyering@lucent.com>
67457
67458         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
67459         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
67460
67461 2001-11-19  Jim Meyering  <meyering@lucent.com>
67462
67463         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
67464         directory.  Use "conftestXXXXXX" as the template.
67465         Suggestion from Paul Eggert.
67466
67467         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
67468         immediately, so the test doesn't mistakenly hit the max-open-files
67469         limit.
67470
67471 2001-11-18  Paul Eggert  <eggert@twinsun.com>
67472
67473         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
67474         (TEMPORARIES): New macro.
67475         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
67476         removes an artificial limitation (e.g. HP-UX 10.20, where
67477         TMP_MAX is 17576).
67478
67479 2001-11-18  Jim Meyering  <meyering@lucent.com>
67480
67481         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
67482
67483 2001-11-18  Jim Meyering  <meyering@lucent.com>
67484
67485         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
67486         on SunOS 4.
67487
67488         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
67489         files will be created before anything else.
67490
67491 2001-11-17  Paul Eggert  <eggert@twinsun.com>
67492
67493         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
67494         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
67495
67496 2001-11-17  Jim Meyering  <meyering@lucent.com>
67497
67498         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
67499         Prompted by a report from Bob Proulx.
67500
67501         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
67502         Instead, require UTILS_FUNC_MKSTEMP.
67503
67504 2001-11-17  Jim Meyering  <meyering@lucent.com>
67505
67506         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
67507         Now, that's done as part of AC_FUNC_STRTOD.
67508
67509 2001-11-17  Jim Meyering  <meyering@lucent.com>
67510
67511         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
67512         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
67513         rather than group writable.  Patch by Juan F. Codagnone.
67514
67515         * lib/readtokens.c: Remove explicit declarations of xmalloc and
67516         xrealloc, Instead, include "xalloc.h".
67517
67518         * lib/mountlist.c: Include unlocked-io.h after all system headers.
67519         Remove explicit declarations of xmalloc, xrealloc,
67520         and xstrdup.  Instead, include "xalloc.h".
67521
67522         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
67523         unlocked-io.h.
67524         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
67525         Likewise.
67526         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
67527
67528         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
67529         Reported by Padraig Brady.
67530
67531         * lib/mkstemp.c: #undef mkstemp.
67532         Include config.h.
67533         (rpl_mkstemp): Rename from mkstemp.
67534         Protoize.
67535
67536 2001-11-16  Jim Meyering  <meyering@lucent.com>
67537
67538         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
67539         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
67540         determine the amount of total physical memory, use pstat_getstatic.
67541         HPUX-11 doesn't define _SC_PHYS_PAGES.
67542         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
67543         If sysconf couldn't be used to determine the amount of available
67544         physical memory, use both pstat_getstatic and pstat_getdynamic.
67545         Based on a patch from Bob Proulx.
67546
67547 2001-11-10  Jim Meyering  <meyering@lucent.com>
67548
67549         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
67550         (jm_PREREQ): Use it.
67551
67552 2001-11-09  Jim Meyering  <meyering@lucent.com>
67553
67554         * m4/jm-macros.m4: Require autoconf-2.52f.
67555         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
67556         Use these AC_-prefixed names, not the AM_-prefixed ones.
67557
67558         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
67559
67560 2001-11-05  Jim Meyering  <meyering@lucent.com>
67561
67562         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
67563
67564 2001-11-04  Jim Meyering  <meyering@lucent.com>
67565
67566         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
67567         $DEFS.
67568
67569 2001-11-03  Jim Meyering  <meyering@lucent.com>
67570
67571         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
67572         of AC_DEFUN.
67573
67574         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
67575         know the name of the variable in the macro definition.
67576
67577 2001-11-03  Jim Meyering  <meyering@lucent.com>
67578
67579         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
67580         in argmatch_to_argument call.
67581
67582         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
67583         argument.
67584
67585         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
67586         e.g., a fault due to an attempt to free a NULL pointer.
67587
67588 2001-11-01  Jim Meyering  <meyering@lucent.com>
67589
67590         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
67591         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
67592
67593 2001-11-01  Jim Meyering  <meyering@lucent.com>
67594
67595         * lib/dirfd.c, lib/dirfd.h: New files.
67596         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
67597
67598         * lib/hash.c (hash_print) [TESTING]: Clean up.
67599
67600 2001-10-22  Paul Eggert  <eggert@twinsun.com>
67601
67602         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
67603         to avoid a warning if -Wall.
67604
67605 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
67606
67607         * README: New file
67608         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
67609         (per RMS's instructions, this is now the canonical source)
67610         * lgpl/, gpl/: New directories.
67611
67612 2001-10-21  Paul Eggert  <eggert@twinsun.com>
67613
67614         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
67615
67616 2001-10-21  Jim Meyering  <meyering@lucent.com>
67617
67618         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
67619         this code would end up calling gettext even in packages built
67620         with --disable-nls.
67621         * lib/getopt.c (_): Likewise.
67622         * lib/regex.c (_): Likewise.
67623
67624 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67625
67626         * m4/error.m4 (jm_PREREQ_ERROR):
67627         Do not invoke AC_CHECK_FUNCS with strerror_r, as
67628         AC_FUNC_STRERROR_R does that.
67629         Check for strerror declaration.
67630
67631         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
67632         are supposed to have them these days.
67633         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
67634         Merge changes from latest Autoconf CVS.
67635         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
67636         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
67637         POSIX decided to standardize on the int flavor of strerror_r.
67638
67639 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67640
67641         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
67642         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
67643         Use strerror_r that is only a macro, even if it is not a function.
67644         (strerror): Check for HAVE_DECL_STRERROR before declaring.
67645         (private_strerror): Use prototypes, not old-style function definition.
67646         (print_errno_message): New function.
67647         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
67648         char*-flavored one.
67649         (error_tail, error, error_at_line): Use it.
67650
67651 2001-10-11  Jim Meyering  <meyering@lucent.com>
67652
67653         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
67654         and quote_n (1, ... to avoid clobbering a buffer.
67655
67656 2001-10-05  Jim Meyering  <meyering@lucent.com>
67657
67658         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
67659         hash-pjw.h.
67660         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
67661         * lib/hash-pjw.h: New file.
67662
67663 2001-09-30  Jim Meyering  <meyering@lucent.com>
67664
67665         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
67666         `struct fsstat' has the `f_fstypename' member.
67667         Use that to define FS_TYPE, which is now used to make
67668         the getfsstat link test tighter.
67669
67670 2001-09-30  Jim Meyering  <meyering@lucent.com>
67671
67672         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
67673         Include <sys/ucred.h>, for Apple Darwin.
67674         Include sys/mount.h and sys/fs_types.h only if available.
67675         (FS_TYPE): Define.
67676         (read_filesystem_list): Use FS_TYPE.
67677
67678 2001-09-29  Paul Eggert  <eggert@twinsun.com>
67679
67680         * lib/exclude.c (excluded_filename): 0 -> false, since it's
67681         a boolean context.
67682
67683 2001-09-29  Jim Meyering  <meyering@lucent.com>
67684
67685         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67686         [one-argument getmntent function]): Include stdio.h before mntent.h.
67687         SunOS 4.1.x needs it for the declaration of `FILE'.
67688         Patch by Volker Borchert.
67689
67690         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67691         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
67692         sys/fs_types.h, and make the link-test for getfsstat guard #include
67693         directives with appropriate #if HAVE_*_H tests so that we can
67694         detect getfsstat on Apple Darwin1.3.7 systems.
67695         Reported by Nelson Beebe.
67696         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
67697
67698 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67699
67700         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67701         #defines strtoimax.  Also treat the other strto* functions
67702         like strtoimax.
67703
67704         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67705         Check for strtoul and strtoumax,
67706         as those declarations are made even in the signed case.
67707         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
67708         Likewise, for strtol and strtoimax.
67709
67710 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67711
67712         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67713         #defines strtoimax.  Also treat the other strto* functions
67714         like strtoimax.
67715
67716         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
67717         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
67718         (strtoimax, strtoumax): Do not declare if already defined as a macro.
67719
67720 2001-09-26  Jim Meyering  <meyering@lucent.com>
67721
67722         Most macros in unlocked-io.h had the wrong number of arguments.
67723         * lib/gen-uio: New script.
67724         (USE_UNLOCKED_IO): Define to 1 if not already defined.
67725         * lib/unlocked-io.hin: Remove file.
67726         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
67727         rather than trying to embed it here.
67728         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
67729         Reported by Padraig Brady.
67730
67731 2001-09-25  Volker Borchert  <bt@teknon.de>
67732
67733         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
67734         `result'.
67735
67736 2001-09-24  Jim Meyering  <meyering@lucent.com>
67737
67738         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
67739
67740 2001-09-23  Jim Meyering  <meyering@lucent.com>
67741
67742         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
67743         instead of the mere test for existence of mntent.h.  The latter
67744         would get a false-positive on AIX 3.4 systems.
67745         In the outer getmntent if-block, don't die if neither of the getmntent
67746         tests succeeds.  Instead, just fall through and continue with the
67747         remaining tests.
67748
67749 2001-09-23  Jim Meyering  <meyering@lucent.com>
67750
67751         * lib/mountlist.c: Remove useless parentheses in #if directives.
67752         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
67753         the deprecated MOUNTED symbol is no longer defined in mntent.h.
67754
67755 2001-09-22  Jim Meyering  <meyering@lucent.com>
67756
67757         * m4/gettext.m4: New file.  From gettext.
67758         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
67759         * m4/progtest.m4: Likewise
67760         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
67761         * m4/glibc21.m4: Likewise.
67762
67763         * m4/libintl.m4: Remove.  No longer used.
67764
67765 2001-09-22  Jim Meyering  <meyering@lucent.com>
67766
67767         * lib/localcharset.c: Update from latest gettext.
67768         * lib/config.charset: Likewise.
67769
67770 2001-09-20  Jim Meyering  <meyering@lucent.com>
67771
67772         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
67773         strtoimax.
67774         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
67775         strtoumax.
67776
67777 2001-09-20  Jim Meyering  <meyering@lucent.com>
67778
67779         * lib/xstrtol.c (strtoimax): Guard declaration with
67780         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
67781         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
67782         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
67783         (strtoumax): Likewise, for completeness (it wasn't necessary).
67784
67785 2001-09-17  Paul Eggert  <eggert@twinsun.com>
67786
67787         * lib/strtoimax.c (HAVE_LONG_LONG):
67788         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
67789         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
67790         to work around bug in IBM C compiler.
67791
67792 2001-09-17  Jim Meyering  <meyering@lucent.com>
67793
67794         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
67795         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
67796         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
67797         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
67798         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
67799         whenever the right hand side need not be expanded by the shell.
67800
67801 2001-09-16  Paul Eggert  <eggert@twinsun.com>
67802
67803         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
67804         library.  It's not correct, as some older glibcs are buggy.
67805         fnmatch wasn't fixed until glibc 2.2.
67806
67807         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
67808         special shell magic here.
67809
67810 2001-09-16  Jim Meyering  <meyering@lucent.com>
67811
67812         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
67813         * m4/jm-macros.m4: Require it.
67814
67815 2001-09-16  Jim Meyering  <meyering@lucent.com>
67816
67817         * lib/mkdir.c: New file.
67818
67819 2001-09-15  Jim Meyering  <meyering@lucent.com>
67820
67821         * m4/jm-macros.m4: Check for help2man.
67822
67823 2001-09-11  Jim Meyering  <meyering@lucent.com>
67824
67825         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
67826         The body, by Paul Eggert, was moved here from configure.in.
67827         * m4/jm-macros.m4: Require UTILS_HOST_OS.
67828
67829 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67830
67831         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
67832         (jm_PREREQ): Use it.
67833
67834 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67835
67836         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
67837         Use ssize_t, not int, to store result of readlink.
67838         Check for ssize_t overflow as well as size_t overflow,
67839         as POSIX says the result of readlink is implementation-defined
67840         when ssize_t overflows.
67841         Remove unnecessary cast to char*.
67842         Use free+malloc instead of realloc, as the storage doesn't need
67843         to be preserved and it's clearer and can be more efficient that way.
67844         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
67845         * lib/xreadlink.h (xreadlink): Update prototype.
67846
67847 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67848
67849         * lib/xgetcwd.c: Revert some of the previous change; intead,
67850         fix the HAVE_GETCWD_NULL code to behave more like the
67851         !HAVE_GETCWD_NULL code used to.
67852
67853         Include "xalloc.h".
67854         (xgetcwd): Do not return NULL when memory is exhausted; instead,
67855         invoke xalloc_die.
67856
67857 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67858
67859         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
67860         sys/param.h, as pathmax.h includes them.
67861
67862 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67863
67864         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
67865         (jm_PREREQ_XGETCWD): New macro.
67866
67867         * m4/getcwd.m4: New file.
67868
67869 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67870
67871         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
67872         like the HAVE_GETCWD_NULL code.
67873         Include pathmax.h if not HAVE_GETCWD.
67874         Do not include xalloc.h.
67875         (INITIAL_BUFFER_SIZE): New symbol.
67876         Do not use xmalloc / xrealloc, since the caller is responsible for
67877         handling errors.  Preserve errno around `free' during failure.
67878         Do not overrun buffer when using getwd.
67879
67880 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67881
67882         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
67883         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
67884         getcwd (NULL, 0).
67885
67886 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67887
67888         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
67889         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
67890         spotted by Jim Meyering.
67891
67892 2001-09-03  Jim Meyering  <meyering@lucent.com>
67893
67894         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
67895         failure.
67896
67897 2001-09-02  Jim Meyering  <meyering@lucent.com>
67898
67899         * lib/error.c: Update from GNU libc.
67900
67901 2001-09-01  Jim Meyering  <meyering@lucent.com>
67902
67903         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
67904         Used by df.
67905
67906 2001-09-01  Jim Meyering  <meyering@lucent.com>
67907
67908         * lib/xreadlink.c: New file.
67909         * lib/xreadlink.h: New file.
67910         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
67911         xreadlink.h.
67912
67913         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
67914         doesn't conflict with sparc Solaris 7's definition in
67915         /usr/include/sys/int_types.h.
67916
67917         * lib/exclude.c: Use `""', not `<>' to #include non-system header
67918         files.
67919         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
67920         and strncasecmp as r-values.  Unixware didn't have declarations.
67921
67922 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67923
67924         * lib/xstrtol.h: Add copyright notice.
67925         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
67926         LONGINT_INVALID_SUFFIX_CHAR.
67927
67928 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67929
67930         * lib/xstrtol.c (strtoimax): New decl.
67931
67932 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67933
67934         * lib/xgetcwd.c: Don't include pathmax.h.
67935         Include stdlib.h and unistd.h if available.
67936         Include xalloc.h.
67937         (xmalloc, xstrdup, free): Remove decls.
67938         (xgetcwd): Don't assume sizes fit in unsigned.
67939         Check for overflow when computing sizes.
67940         Simplify reallocation code.
67941
67942 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67943
67944         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
67945         a directory's st_size can have an arbitrary value, so the old
67946         usage could waste an arbitrary amount of memory.  All uses
67947         changed.
67948         * lib/savedir.h: Update prototype.
67949
67950 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67951
67952         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
67953
67954         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
67955         old strtoimax.c.
67956
67957         Also, make the following further changes to make this file's
67958         configuration more similar to that of strtol.c:
67959         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
67960         (strtoumax, uintmax_t, strtoull, strtol): Remove.
67961         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
67962         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
67963         changed to signed values.
67964
67965         And make the following changes as well:
67966         Fix copyright notice, as 1999 was missing.
67967         (verify): New macro.
67968         (strtoimax): Check sizes at compile-time, not run-time.
67969         Prefer strtol to strtoll if both work.
67970         (main): Remove; it was not that useful and was a pain to maintain.
67971
67972         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
67973
67974 2001-08-31  Jim Meyering  <meyering@lucent.com>
67975
67976         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
67977         Use an initial, malloc'd, buffer of length 128 rather than
67978         a statically allocated one of length 1024.
67979
67980 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67981
67982         Simplify code, partly by assuming autoconf 2.52 semantics.
67983
67984         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
67985
67986         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
67987         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
67988         All uses removed.
67989         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
67990         Move AC_REQUIRE to next-to-top level, to avoid confusion.
67991         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
67992         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
67993         jm_AC_HEADER_INTTYPES_H.
67994         * m4/jm-macros.m4 (jm_MACROS): Likewise.
67995
67996         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
67997
67998         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67999         Quote first arg of AC_DEFUN.
68000         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68001         since they are needed to parse the include file even if we need
68002         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68003         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68004         but with opposite signedness.
68005
68006 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68007
68008         Merge 'exclude' changes from tar 1.13.22.
68009         This fixes one or two unlikely storage allocation overflow bugs,
68010         but doesn't change user-visible behavior otherwise.
68011
68012 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68013
68014         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68015         (jm_PREREQ_EXCLUDE): New macro.
68016
68017 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68018
68019         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68020         tm to be declared.
68021
68022 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68023
68024         * lib/hash.c: Remove '2001' from copyright notice.
68025
68026 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68027
68028         * lib/full-write.h: New file.
68029         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68030         * lib/full-write.c: Correct credits, as cccp.c no longer
68031         exists and anyway it was so heavily changed from the old cccp
68032         code as to be unrecognizable.  Include full-write.h.
68033         (full_write) Return size_t, with short writes meaning failure.
68034         All callers changed.  This fixes a bug with large buffers
68035         on 64-bit hosts.
68036         * lib/utime.c: Include full-write.h.
68037
68038 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68039
68040         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68041         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68042         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68043         Include if available.
68044         (<xalloc.h>): Include
68045         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68046         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68047         collide with FNM macros.
68048         (struct patopts): New struct.
68049         (struct exclude): Use it, as exclude patterns now come with options.
68050         (new_exclude): Support above changes.
68051         (new_exclude, add_exclude_file):
68052         Initial size must now be a power of two to simplify overflow checking.
68053         (free_exclude, fnmatch_no_wildcards): New function.
68054         (excluded_filename): No longer requires options arg, as the options
68055         are determined by add_exclude.  Now returns bool, not int.
68056         (excluded_filename, add_exclude):
68057         Add support for the fancy new exclusion options.
68058         (add_exclude, add_exclude_file): Now takes int options arg.
68059         Check for arithmetic overflow when computing sizes.
68060         (add_exclude_file): xrealloc might modify errno, so don't
68061         realloc until after errno might be used.
68062
68063         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68064         New macros.
68065         (free_exclude): New decl.
68066         (add_exclude, add_exclude_file): Now takes int options arg.
68067         (excluded_filename): No longer requires options arg, as the options
68068         are determined by add_exclude.  Now returns bool, not int.
68069
68070 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68071
68072         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68073
68074 2001-08-27  Jim Meyering  <meyering@lucent.com>
68075
68076         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68077
68078         * lib/version-etc.c (N_): Remove definition.
68079         Revert most of last change.
68080         Instead, simply don't mark the `Copyright...' string for translation.
68081         Based on advice from Paul Eggert.
68082
68083         * lib/strtoxmax.c: Tweak comment.
68084
68085 2001-08-26  Jim Meyering  <meyering@lucent.com>
68086
68087         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68088
68089         * m4/xstrtoimax.m4: New file.
68090         * m4/xstrtoumax.m4: Add comments explaining why we
68091         AC_REPLACE_FUNCS(strtol).
68092
68093 2001-08-26  Jim Meyering  <meyering@lucent.com>
68094
68095         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68096         of copyright with `%s' so translators don't get an untranslated
68097         message in 2002.
68098         (COPYRIGHT_YEAR): Define.
68099         (version_etc): Use fprintf rather than fputs.
68100         Suggestion from Ulrich Drepper.
68101
68102         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68103
68104         * lib/strtoll.c: New file, from GNU libc.
68105         * lib/xstrtoimax.c: New file.
68106
68107         * lib/xstrtol.h: Add xstrtoimax.
68108         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68109         * lib/strtoimax.c: New file.  Likewise, but first define
68110         STRTOUXMAX_SIGNED.
68111
68112         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68113         ...
68114         * lib/strtoxmax.c: ... then renamed to this.
68115
68116 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68117
68118         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68119         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68120         (jm_AC_TYPE_INTMAX_T): New macro.
68121         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68122
68123         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68124
68125         * m4/longlong.m4: Renamed from ulonglong.m4.
68126         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68127         * m4/uintmax_t.m4: Removed.
68128
68129 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68130
68131         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68132         Port to Solaris 8, where 'sed' requires a space after the 'r'
68133         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68134         Redirect output to $tmp just once.
68135
68136 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68137
68138         * lib/addext.c (<errno.h>): Include.
68139         (errno): Declare if not defined.
68140         (addext): Work correctly when pathconf returns -1 and leaves
68141         errno alone because there is no limit.  Also, work even if
68142         pathconf returns a value greater than SIZE_MAX.
68143
68144 2001-08-12  Jim Meyering  <meyering@lucent.com>
68145
68146         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68147         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68148         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68149         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68150         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68151         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68152         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68153         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68154         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68155         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68156         utime.m4, utimes.m4, xstrtoumax.m4:
68157         Quote the first argument in each use of AC_DEFUN.
68158
68159 2001-08-12  Jim Meyering  <meyering@lucent.com>
68160
68161         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68162         Simply `return getcwd (NULL, 0);'.
68163         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68164         Use 1300 as initial value for length, not PATH_MAX.
68165
68166         * lib/pathmax.h: Clean up cpp syntax.
68167
68168 2001-08-12  Jim Meyering  <meyering@lucent.com>
68169
68170         * lib/gettimeofday.c: New file.
68171         * lib/gtod.h: New file.
68172         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68173
68174 2001-08-05  Jim Meyering  <meyering@lucent.com>
68175
68176         * m4/jm-macros.m4: Require autoconf-2.52.
68177
68178 2001-08-04  Jim Meyering  <meyering@lucent.com>
68179
68180         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68181         stmt, to get in sync with glibc.
68182
68183 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68184
68185         The following changes are from gettext 0.10.39 as maintained by
68186         Bruno Haible.
68187
68188         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68189         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68190         with inverted sense.  All uses changed.
68191
68192         * lib/mbswidth.c: Don't include <limits.h>.
68193         Include <stdlib.h> and <string.h> unconditionally.
68194         (iswcntrl, mbsinit, ISCNTRL): New macros.
68195         (mbsnwidth): Use K&R style function declarations.
68196         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68197         can optimize it when MB_CUR_MAX == 1.
68198         The width of control characters is zero, not 1.
68199
68200 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68201
68202         The following changes are from gettext 0.10.39 as maintained by
68203         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68204
68205         * m4/codeset.m4: Upgrade to serial AM1.
68206         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68207         all uses changed.  Quote first arg of AC_DEFUN.
68208         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68209
68210         * m4/iconv.m4: Upgrade to serial AM2.
68211         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68212         Add --with-libconv-prefix.
68213         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68214         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68215         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68216         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68217         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68218
68219         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68220         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68221         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68222         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68223         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68224         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68225         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68226         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68227         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68228
68229         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68230         string.h any more.
68231
68232         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68233         not the default value.
68234
68235         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68236         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68237         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68238         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68239         Also check for iswcntrl, used for wcwidth fallback.
68240         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68241         to Autoconf 2.13.
68242
68243 2001-08-03  Jim Meyering  <meyering@lucent.com>
68244
68245         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
68246         as it was in the original.  Reported by Paul Eggert.
68247
68248 2001-07-16  Jim Meyering  <meyering@lucent.com>
68249
68250         * m4/gettimeofday.m4: New file.
68251         Prompted by a report from Bernhard Baehr.
68252
68253 2001-07-15  Jim Meyering  <meyering@lucent.com>
68254
68255         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
68256         stuff. Now it's in ../Makefile.cfg.
68257
68258 2001-07-15  Jim Meyering  <meyering@lucent.com>
68259
68260         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
68261         (BUILT_SOURCES): Add unlocked-io.h.
68262         (io_functions): Define.
68263         (unlocked-io.h): New rule.
68264         (DISTCLEANFILES): Add unlocked-io.h.
68265         (all-local): Depend on unlocked-io.h, to ensure it is created.
68266
68267         * lib/unlocked-io.hin: New file
68268
68269         * lib/regex.c: Update from glibc.
68270
68271 2001-07-05  Jim Meyering  <meyering@lucent.com>
68272
68273         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
68274         recommendation.
68275         (libfetish_a_SOURCES): Put all .h files here instead.
68276         Remove a thus-exposed (better checks in automake) duplicate and
68277         two unnecessary .h files.
68278
68279 2001-07-04  Jim Meyering  <meyering@lucent.com>
68280
68281         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
68282         that generates jm-glibc-io.m4 so that it doesn't trigger any make
68283         distcheck failure.
68284
68285 2001-07-02  Jim Meyering  <meyering@lucent.com>
68286
68287         The following changes were prompted by suggestions from Bruno Haible.
68288
68289         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68290         is now generated.
68291         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68292         definition of EXTRA_DIST.
68293         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68294         ensure that the generated file is created/updated whenever the list
68295         of $(unlocked_functions) is changed.
68296         (jm-glibc-io.m4): New rule.
68297         (unlocked-io.h): New rule -- currently unused.
68298
68299 2001-06-24  Jim Meyering  <meyering@lucent.com>
68300
68301         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68302         unmatched right bracket, rather than kludging it with an extra,
68303         falsely-matching quote in a comment.  Patch by Akim Demaille.
68304
68305 2001-06-11  Jim Meyering  <meyering@lucent.com>
68306
68307         * lib/regex.c: Update from GNU libc.
68308
68309 2001-05-27  Jim Meyering  <meyering@lucent.com>
68310
68311         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68312         Check for ut_type in struct utmp.
68313
68314 2001-05-27  Jim Meyering  <meyering@lucent.com>
68315
68316         * lib/readutmp.h (UT_TYPE): Define.
68317
68318 2001-05-24  Jim Meyering  <meyering@lucent.com>
68319
68320         * lib/argmatch.c: Include "quote.h".
68321         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68322         quote function.  Reported by Göran Uddeborg.
68323
68324 2001-05-22  Jim Meyering  <meyering@lucent.com>
68325
68326         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68327         now that we use the package-supplied version unconditionally.
68328         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68329
68330 2001-05-21  Jim Meyering  <meyering@lucent.com>
68331
68332         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68333         shell syntax errors.
68334
68335 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68336
68337         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68338
68339 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68340
68341         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68342         Don't bother to check library strftime, since
68343         we'll be using our own my_strftime function anyway.
68344         Define my_strftime instead of strftime.
68345
68346 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68347
68348         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68349         which is not yet declared.
68350
68351 2001-05-15  Jim Meyering  <meyering@lucent.com>
68352
68353         * m4/regex.m4: Use proper quoting so brackets appear in the test
68354         program.
68355         Reported by, and with help from, Bruno Haible.
68356
68357 2001-05-13  Jim Meyering  <meyering@lucent.com>
68358
68359         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68360         undefined.
68361
68362 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68363
68364         dirname code cleanup.  base_name now behaves more compatibly
68365         with POSIX basename when given file names that have trailing
68366         slashes, and similarly for dir_name.  Add new primitives
68367         base_len and dir_len.  Put the directory-name-related decls
68368         into dirname.h.
68369
68370         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68371         * lib/backupfile.c (base_name): Likewise.
68372         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68373         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68374         * lib/makepath.c (strip_trailing_slashes): Likewise.
68375         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68376         ISSLASH): Likewise.
68377         * lib/rename.c (strip_trailing_slashes): Likewise.
68378         * lib/same.c (base_name): Likewise.
68379         * lib/stripslash.c (ISSLASH): Likewise.
68380
68381         * lib/addext.c: Include <dirname.h> after size_t is defined.
68382         * lib/backupfile.c: Likewise.
68383
68384         * lib/addext.c (addext): Use base_len to trim redundant
68385         trailing slashes instead of doing it ourselves.
68386         But do not trim the last slash if it is not redundant.
68387
68388         * lib/backupfile.c (find_backup_file_name,
68389         max_backup_version): Use base_len instead of rolling it ourselves.
68390         Handle the case of "" and (on DOS) "C:" correctly.
68391
68392         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68393         needed. Include <string.h>, <dirname.h>.
68394         (base_name): Allow file names ending in slashes, other than names
68395         that are all slashes.  In this case, return the basename followed
68396         by the slashes.  This is more general, and can be used in places
68397         where the original base_name purposely had an assertion failure.
68398         (base_len): New function.
68399
68400         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68401         Do not include <assert.h>; no longer needed.
68402         Include xalloc.h.
68403         (memrchr): Remove decl.
68404         (dir_name_r): Remove.
68405         (dir_len): Renamed from dirlen.  All callers changed.
68406         Rewrite in terms of base_name, for simplicity and consistency.
68407         (dir_name): Never return NULL.  All callers changed.
68408         Do not include <stdlib.h> in test program; no longer needed.
68409         return 0; is fine for test program.
68410
68411         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68412         New macros.
68413         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
68414
68415         * lib/path-concat.c (path_concat): Use base_len to compute
68416         base length, not strlen; this means we cannot rely on memcpy
68417         to null-terminate.
68418
68419         * lib/same.c (STREQ): Remove.
68420         (same_name): Handle the case where the basename ends in trailing '/'.
68421
68422         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
68423         a slash was stripped.  Do not strip the last slash after a
68424         file system prefix.
68425
68426 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68427
68428         * lib/Makefile.am (libfetish_a_SOURCES):
68429         Add strftime.c, since we now compile it on all hosts.
68430
68431         * lib/strftime.c (my_strftime):
68432         Define to nstrftime if emacs, but only if my_strftime is not defined.
68433         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
68434         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
68435         Add one more extra argument: a nanoseconds value.
68436         All uses changed.
68437         (ns): New macro.
68438         (my_strftime function): Add %N format.
68439         (emacs_strftimeu): Renamed from emacs_strftime,
68440         with extra ut argument.
68441
68442 2001-05-09  Paul Eggert  <eggert@twinsun.com>
68443
68444         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
68445
68446 2001-04-21  Jim Meyering  <meyering@lucent.com>
68447
68448         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
68449         doesn't interfere.
68450
68451 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68452
68453         * m4/ftruncate.m4: Check for chsize.
68454         Link with ftruncate.o unconditionally if ftruncate is missing.
68455         This was required when cross-compiling to i586-mingw32msvc.
68456
68457 2001-04-08  Jim Meyering  <meyering@lucent.com>
68458
68459         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
68460         recomputed; that's necessary when the offset spans a DST transition.
68461         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
68462
68463 2001-04-02  Jim Meyering  <meyering@lucent.com>
68464
68465         * lib/regex.h, regex.c: Update from GNU libc.
68466
68467 2001-03-24  Jim Meyering  <meyering@lucent.com>
68468
68469         * m4/jm-macros.m4: Require autoconf-2.49d.
68470
68471 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
68472
68473         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
68474
68475 2001-03-19  Paul Eggert  <eggert@twinsun.com>
68476
68477         * lib/version-etc.c (version_etc_copyright): Update to 2001.
68478
68479 2001-03-17  Jim Meyering  <meyering@lucent.com>
68480
68481         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
68482         now that the version in autoconf is equivalent.
68483         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
68484
68485         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
68486         Suggestion from Akim Demaille.
68487
68488         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
68489         (jm_PREREQ_TEMPNAME): New function.
68490
68491 2001-03-16  Paul Eggert  <eggert@twinsun.com>
68492
68493         * lib/tempname.c (uint64_t): Define to uintmax_t if
68494         not defined, and if UINT64_MAX is not defined.
68495         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
68496         Reported by John David Anglin.
68497
68498 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
68499
68500         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
68501         resolve alias if codeset is empty.
68502         * lib/config.charset (BeOS): Use wildcard syntax.
68503
68504 2001-03-13  Jim Meyering  <meyering@lucent.com>
68505
68506         * lib/path-concat.c (path_concat)
68507         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
68508         concatenating e.g., `C:' and `foo'.
68509         From Bruno Haible.
68510
68511 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68512
68513         * lib/localcharset.c (locale_charset): Don't use
68514         setlocale(LC_CTYPE,NULL). Don't return NULL.
68515         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
68516
68517 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68518
68519         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
68520         support for DOS/DJGPP.
68521
68522 2001-03-01  Paul Eggert  <eggert@twinsun.com>
68523
68524         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
68525         lacks mkstemp.  Compile our own tempname.c if we compile our own
68526         mkstemp.c, as mkstemp relies on tempname.
68527
68528 2001-03-01  Jim Meyering  <meyering@lucent.com>
68529
68530         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
68531         AH_VERBATIM really does output its argument verbatim.
68532
68533 2001-02-28  Paul Eggert  <eggert@twinsun.com>
68534
68535         * lib/Makefile.am (libfetish_a_SOURCES):
68536         Add dup-safer.c, fopen-safer.c.
68537         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
68538
68539         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
68540         * lib/unistd-safer.h: New files.
68541
68542 2001-02-25  Paul Eggert  <eggert@twinsun.com>
68543
68544         The mkstemp replacement is taken from glibc 2.2.2, with some
68545         portability fixes for use outside glibc, as follows:
68546
68547         * lib/tempname.c (struct_stat64): New macro.
68548         (direxists, __gen_tempname): Use it.
68549         This avoids a portability problem with Solaris 8.
68550
68551         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
68552         (<stddef.h>, <stdint.h>, <string.h>):
68553         Include only if STDC_HEADERS || _LIBC.
68554         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
68555         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
68556         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
68557         (__set_errno): Define this macro if <errno.h> doesn't.
68558         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
68559         Define these macros if <stdio.h> doesn't.
68560         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
68561         Define these macros if <sys/stat.h>
68562         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
68563         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
68564         __xstat64): Define if not _LIBC.
68565         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
68566         (__gen_tempname): Invoke gettimeofday only if
68567         HAVE_GETTIMEOFDAY || _LIBC;
68568         otherwise, fall back on plain "time".
68569         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
68570
68571         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
68572
68573         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
68574
68575 2001-02-18  Paul Eggert  <eggert@twinsun.com>
68576
68577         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
68578
68579 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68580
68581         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
68582         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
68583         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
68584         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68585
68586 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68587
68588         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
68589         Remove workaround macros for hosts that have mbrtowc but not
68590         mbstate_t, as we now insist on proper declarations for both
68591         before using mbrtowc.
68592
68593 2001-02-17  Jim Meyering  <meyering@lucent.com>
68594
68595         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
68596         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
68597         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
68598         UnixWare 7.1.1.
68599
68600         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
68601         rather than AC_CACHE_VAL.
68602
68603 2001-02-17  Jim Meyering  <meyering@lucent.com>
68604
68605         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
68606         around included file name.
68607
68608         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
68609
68610         * lib/strftime.c: Update from GNU libc (the only changes were to
68611         comments).
68612
68613 2001-02-17  Jim Meyering  <meyering@lucent.com>
68614
68615         * lib/regex.c: Update from libc.
68616
68617 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
68618
68619         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
68620         clash.
68621
68622 2001-02-16  Paul Eggert  <eggert@twinsun.com>
68623
68624         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
68625         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
68626         Reported by Mark Hounschell via Paul Eggert.
68627
68628 2001-02-07  Jim Meyering  <meyering@lucent.com>
68629
68630         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
68631
68632 2001-02-05  Jim Meyering  <meyering@lucent.com>
68633
68634         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
68635         it includes the patch required for `large file' support with at least
68636         HP-UX's 10.20 /bin/cc.
68637
68638 2001-02-03  Jim Meyering  <meyering@lucent.com>
68639
68640         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
68641         AS_IF, now that it works once again (mysteriously).
68642         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68643
68644 2001-01-30  Jim Meyering  <meyering@lucent.com>
68645
68646         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
68647         * m4/chown.m4: Rename conftestchown to conftest.chown.
68648         * m4/rename.m4: s/conftestdir/conftest.d1/ and
68649         s/conftestdir2/conftest.d2/.
68650         * m4/utimes.m4: s/conftestdata/conftest.data/
68651         Inspired by Pavel Roskin's change in autoconf.
68652
68653 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
68654
68655         * lib/config.charset: Update for FreeBSD 4.2.
68656
68657 2001-01-27  Jim Meyering  <meyering@lucent.com>
68658
68659         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
68660         a use of AS_IF.
68661         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68662
68663 2001-01-26  Jim Meyering  <meyering@lucent.com>
68664
68665         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
68666         quotearg.c includes it.
68667
68668 2001-01-26  Jim Meyering  <meyering@lucent.com>
68669
68670         * lib/quotearg.c: Include stddef.h.
68671         * lib/quote.c: Include stddef.h.
68672         Reported by Axel Kittenberger.
68673
68674         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
68675         line in double quotes so that it evokes a better diagnostic.
68676         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
68677         Reported by Axel Kittenberger.
68678
68679 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
68680
68681         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
68682         as if it was a `charset'.
68683
68684 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68685
68686         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
68687         has const.
68688
68689 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68690
68691         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
68692         to avoid a warning.  Add back 'const' to inptr.
68693
68694 2001-01-20  Jim Meyering  <meyering@lucent.com>
68695
68696         Be sure that headers are checked before used in code compiled
68697         for the type checks.
68698         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
68699         In place of that, invoke jm_CHECK_ALL_TYPES.
68700         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
68701         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
68702         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
68703         The check for ssize_t was mistakenly run before the test for unistd.h.
68704
68705         The configure-time check for stdbool.h was missing.
68706         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
68707         (jm_PREREQ_HASH): New function.
68708
68709 2001-01-17  Jim Meyering  <meyering@lucent.com>
68710
68711         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
68712         for autoconf-2.49c.
68713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
68714
68715 2001-01-16  Jim Meyering  <meyering@lucent.com>
68716
68717         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
68718         From Bruno Haible.
68719
68720 2001-01-14  Jim Meyering  <meyering@lucent.com>
68721
68722         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
68723         foo and bar.  Create conftestdir/ in the script, not in the C code.
68724         Remove directories in the script, not in the C code.
68725         Remove conftestdir{,2} before trying to create the directory.
68726         Make the entire configure script fail if the mkdir fails.
68727
68728 2001-01-14  Jim Meyering  <meyering@lucent.com>
68729
68730         * lib/rename.c: New file.  From Volker Borchert.
68731         Include stdlib.h, string.h or strings.h, and xalloc.h.
68732         Use strip_trailing_slashes rather than open-coding it.
68733
68734 2001-01-03  Paul Eggert  <eggert@twinsun.com>
68735
68736         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
68737
68738 2001-01-03  Jim Meyering  <meyering@lucent.com>
68739
68740         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
68741         of local `inptr' to avoid warning with some system declarations of
68742         iconv.
68743
68744 2001-01-02  Volker Borchert  <bt@teknon.de>
68745
68746         * m4/rename.m4: New file.
68747         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
68748
68749 2001-01-01  Jim Meyering  <meyering@lucent.com>
68750
68751         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
68752         even on systems with utmpx.h.  It's necessary for the declaration of
68753         utmp's ut_user member.  Reported by Andreas Jaeger.
68754
68755         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
68756         available. They are required for the declarations of getgrgid and
68757         getpwuid resp.
68758         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
68759         Reported by Andreas Jaeger.
68760
68761 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
68762
68763         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
68764         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
68765         so `make install' also works in VPATH builds.
68766
68767 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
68768
68769         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
68770         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
68771         can be used in subdirectories.
68772
68773 2000-12-29  Paul Eggert  <eggert@twinsun.com>
68774
68775         * lib/modechange.c: Do not assume that mode_t uses the
68776         traditional octal encoding.  E.g. "chmod 1 FOO" should set
68777         the other-execute bit of FOO even if S_IXOTH != 1.
68778
68779         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
68780         WOTH, XOTH, ALLM): New macros.
68781         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
68782          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
68783         Use them.
68784         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
68785         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
68786         (mode_compile):
68787         No need to use uintmax_t; unsigned long is long enough.
68788         Don't bother to get suffix since we don't use it.
68789
68790 2000-12-26  Jim Meyering  <meyering@lucent.com>
68791
68792         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
68793         better with autoheader.
68794
68795 2000-12-24  Jim Meyering  <meyering@lucent.com>
68796
68797         * lib/hash.c (is_prime): Return explicit boolean values.
68798         (hash_get_first): Return NULL to appease Irix5.6's 89.
68799         Reported by Nelson Beebe.
68800
68801 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
68802
68803         * lib/localcharset.c (locale_charset): Add support for Win32.
68804
68805 2000-12-18  Paul Eggert  <eggert@twinsun.com>
68806
68807         * lib/physmem.h, lib/physmem.c: New files.
68808
68809         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
68810         (noinst_HEADERS): Add physmem.h.
68811
68812         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
68813         't' for compatibility with Solaris 8 sort.
68814
68815 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
68816
68817         * lib/config.charset: Add support for BeOS.
68818
68819 2000-12-17  Jim Meyering  <meyering@lucent.com>
68820
68821         * m4/dos.m4 (jm_AC_DOS): New file and macro.
68822         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
68823
68824 2000-12-16  Jim Meyering  <meyering@lucent.com>
68825
68826         This bug had a serious impact on chown: `chown N:M FILE' (for integer
68827         N and M) would have treated it like `chown N:N FILE'.
68828
68829         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
68830
68831 2000-12-16  Jim Meyering  <meyering@lucent.com>
68832
68833         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
68834         SHELLS_FILE to a file name that's useful on djgpp systems.
68835         Include stdlib.h.
68836         (ADDITIONAL_DEFAULT_SHELLS): Define.
68837         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
68838         Based mostly on a patch from Prashant TR.
68839
68840 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
68841
68842         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
68843         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
68844         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
68845
68846 2000-12-08  Andreas Schwab  <schwab@suse.de>
68847
68848         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
68849         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
68850
68851 2000-12-07  Jim Meyering  <meyering@lucent.com>
68852
68853         * lib/stripslash.c (ISSLASH): Define.
68854         (strip_trailing_slashes): Use ISSLASH rather than comparing against
68855         `/'.
68856         From Prashant TR.
68857
68858         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
68859         (dir_name_r): Declare this function as static.
68860         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
68861         manifest itself on a name containing a mix of slashes and
68862         backslashes.
68863         Make this function work with names starting with a DOS-style
68864         drive letter and colon prefix.
68865         (dir_name): Append `.' if necessary.
68866         Based mostly on patches from Prashant TR and Eli Zaretskii.
68867
68868         * lib/dirname.h (dir_name_r): Remove prototype.
68869
68870 2000-12-06  Paul Eggert  <eggert@twinsun.com>
68871
68872         * m4/off_t-format.m4: Remove this file.
68873         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
68874
68875 2000-12-06  Jim Meyering  <meyering@lucent.com>
68876
68877         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
68878         replacement strtoull, we may well need the replacement strtoul, too.
68879         Check for declarations of strtoul and strtoull.
68880         Check for strtol.  Mainly as a cue to cause automake to include
68881         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
68882         Check for limits.h -- strtol.c needs it.
68883
68884 2000-12-05  Jim Meyering  <meyering@lucent.com>
68885
68886         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
68887
68888 2000-12-04  Jim Meyering  <meyering@lucent.com>
68889
68890         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
68891         Also include memory.h, stdlib.h, unistd.h if appropriate.
68892         Reported by Andreas Jaeger (conflicting declaration of malloc).
68893
68894 2000-12-02  Jim Meyering  <meyering@lucent.com>
68895
68896         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
68897         * m4/jm-macros.m4 (jm_MACROS): require it.
68898
68899 2000-12-02  Jim Meyering  <meyering@lucent.com>
68900
68901         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
68902
68903 2000-12-01  Paul Eggert  <eggert@twinsun.com>
68904
68905         * lib/memrchr.c: Include <config.h> before any system include file.
68906
68907 2000-11-30  Jim Meyering  <meyering@lucent.com>
68908
68909         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
68910
68911 2000-11-30  Jim Meyering  <meyering@lucent.com>
68912
68913         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
68914
68915 2000-11-29  Paul Eggert  <eggert@twinsun.com>
68916
68917         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
68918
68919 2000-11-26  Jim Meyering  <meyering@lucent.com>
68920
68921         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
68922
68923 2000-11-22  Paul Eggert  <eggert@twinsun.com>
68924
68925         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
68926         size of (size_t) -1; it's not portable.
68927
68928 2000-11-17  Jim Meyering  <meyering@lucent.com>
68929
68930         * lib/strstr.c: Update from GNU libc.
68931
68932 2000-11-17  Akim Demaille  <akim@epita.fr>
68933
68934         * lib/obstack.h: Formatting changes.
68935         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
68936         prevent type checking.
68937         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
68938         cast the value to (void *): assigning a `foo *' to a `void *'
68939         variable is valid.
68940         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
68941
68942 2000-11-16  Jim Meyering  <meyering@lucent.com>
68943
68944         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
68945
68946 2000-11-11  Jim Meyering  <meyering@lucent.com>
68947
68948         * lib/error.c: Add a couple #includes, merging from GNU libc version.
68949
68950 2000-11-10  Jim Meyering  <meyering@lucent.com>
68951
68952         * lib/obstack.h: Update from GNU libc.
68953         * lib/obstack.c: Likewise.
68954
68955 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
68956
68957         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
68958
68959 2000-11-06  Paul Eggert  <eggert@twinsun.com>
68960
68961         * lib/getusershell.c (setusershell): Use rewind rather than
68962         fseek/fseeko, to avoid configuration hassles with fseeko.
68963         Don't bother opening SHELLS_FILE if shellstream is NULL;
68964         it's not necessary.
68965
68966 2000-11-05  Jim Meyering  <meyering@lucent.com>
68967
68968         * lib/makepath.h (make_dir): Declare.
68969         * lib/makepath.c (make_dir): Remove `static' attribute.
68970         Tweak a comment.
68971
68972 2000-11-04  Jim Meyering  <meyering@lucent.com>
68973
68974         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
68975
68976 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
68977
68978         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
68979         last one in a bucket, advance to the next bucket.
68980
68981 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
68982
68983         * lib/fnmatch.c: Do not comment out all the code if we are using
68984         the GNU C library, because in some cases we are replacing buggy
68985         code in the GNU C library itself.
68986
68987 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
68988
68989         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
68990         (regex_compile): Catch bogus \(\1\).
68991
68992 2000-10-30  Paul Eggert  <eggert@twinsun.com>
68993
68994         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
68995         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
68996         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
68997
68998 2000-10-30  Paul Eggert  <eggert@twinsun.com>
68999
69000         * lib/error.h, getline.h, modechange.h:
69001         Remove "2000" from Copyright line, as the file hasn't been
69002         changed this year other than in the copyright notice.
69003
69004         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69005         was changed this year.
69006
69007 2000-10-29  Jim Meyering  <meyering@lucent.com>
69008
69009         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69010         renaming.
69011         * m4/ls-mntd-fs.m4: Likewise
69012
69013 2000-10-29  Jim Meyering  <meyering@lucent.com>
69014
69015         * lib/xstat.in: Fix grammar in comment.
69016
69017 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69018
69019         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69020         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69021         doesn't define __restrict_arr.
69022
69023 2000-10-28  Jim Meyering  <meyering@lucent.com>
69024
69025         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69026         (jm_PREREQ_MEMCHR): New function.
69027
69028 2000-10-28  Jim Meyering  <meyering@lucent.com>
69029
69030         * lib/memchr.c: Update from libc.
69031         Adjust for portability:
69032         [HAVE_STDLIB_H]: Include stdlib.h.
69033         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69034         Undef __memchr, too.
69035         [!weak_alias]: Define __memchr to memchr.
69036
69037         * lib/regex.c: Update from libc.
69038         * lib/regex.h: Likewise.
69039         * lib/getopt1.c: Likewise.
69040         * lib/memcmp.c: Likewise.
69041
69042         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69043         Avoid using fseek, when possible -- it's broken by design.
69044         Patch by Ulrich Drepper.
69045
69046 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69047
69048         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69049         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69050         Giving in to popular pressure to shut up the compiler with casts.
69051
69052 2000-10-26  Jim Meyering  <meyering@lucent.com>
69053
69054         * lib/strftime.c: Update from libc.
69055
69056 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69057
69058         * regex.c: More `unsigned char' -> `re_char' changes.
69059         Also change several `int' into `re_wchar_t'.
69060         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69061         (PUSH_FAILURE_POINTER): Don't cast any more.
69062         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69063         We want GCC to complain, since this piece of code makes
69064         re_match non-reentrant, which *should* be fixed.
69065         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69066         (EXTEND_BUFFER): Use RETALLOC.
69067         (SET_LIST_BIT): Don't cast.
69068         (re_wchar_t): New type.
69069         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69070         that those two functions will always properly return.
69071         (IMMEDIATE_QUIT_CHECK): Cast to void.
69072         (analyse_first): Use recursion rather than an explicit stack.
69073         (re_compile_fastmap): Can't fail anymore.
69074         (re_search_2): Don't check re_compile_fastmap for failure.
69075         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69076         Now also sets the new value (passed in a new argument).
69077         (re_match_2_internal): Use it.
69078         Also, use a new var `reg' of type size_t when looping through regs
69079         rather than reuse the inappropriate `mcnt'.
69080
69081 2000-10-25  Jim Meyering  <meyering@lucent.com>
69082
69083         * lib/obstack.c: Update from libc.
69084
69085 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69086
69087         * regex.c (regex_compile): Change the way of handling a range from
69088         a char less than 256 to a char not less than 256.
69089
69090 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69091
69092         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69093         NT-Emacs only.
69094         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69095         so that re_search functions only quit when callers expect them to.
69096
69097 2000-10-23  Jim Meyering  <meyering@lucent.com>
69098
69099         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69100         wrong.  That set_locale call must not have any side effects.
69101         From Paul Eggert.
69102
69103 2000-10-22  Jim Meyering  <meyering@lucent.com>
69104
69105         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69106         [CYCLIC]: Remove now-unused definition.
69107
69108         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69109         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69110         Suggestion from Ulrich Drepper.
69111
69112 2000-10-21  Jim Meyering  <meyering@lucent.com>
69113
69114         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69115         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69116         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69117
69118 2000-10-21  Jim Meyering  <meyering@lucent.com>
69119
69120         * lib/dirname.c (memrchr): Declare if necessary.
69121         (dir_name): Remove the restriction that there be no
69122         trailing slashes.  Now, this code skips past them, effectively
69123         ignoring them.
69124         [TEST_DIRNAME] (main): New unit tests.
69125
69126         * lib/memrchr.c: New file from GNU libc.
69127         Undef __memrchr, too.
69128         [!weak_alias]: Define __memrchr to memrchr.
69129         Guard weak_alias use with `#ifdef weak_alias'.
69130
69131 2000-10-21  Jim Meyering  <meyering@lucent.com>
69132
69133         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69134         (dir_name): Use dir_name_r.
69135         * lib/dirname.h (dir_name_r): Declare it.
69136
69137 2000-10-17  Jim Meyering  <meyering@lucent.com>
69138
69139         * lib/quote.h (PARAMS): Define and use.
69140         Reported by Akim Demaille.
69141
69142         * lib/getopt.c: Update from libc.
69143
69144 2000-10-16  Jim Meyering  <meyering@lucent.com>
69145
69146         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69147         setlocale.
69148         From Jan Fedak.
69149
69150 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69151
69152         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69153
69154 2000-09-25  Jim Meyering  <meyering@lucent.com>
69155
69156         * lib/md5.h (rol): Define (from GnuPG).
69157
69158         * lib/sha.c: Give credit (GnuPG) where due.
69159         (M): Use rol rather than open-coding it.
69160         Add a FIXME comment.
69161
69162 2000-09-21  Jim Meyering  <meyering@lucent.com>
69163
69164         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69165         Reported by Michael Stone.
69166
69167 2000-09-20  Jim Meyering  <meyering@lucent.com>
69168
69169         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69170         (noinst_HEADERS): Add sha.h.
69171         Based on code from Scott G. Miller and from GnuPG.
69172
69173 2000-09-18  Jim Meyering  <meyering@lucent.com>
69174
69175         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69176         LIBS. Otherwise, everyone ends up linking with -lelf for some
69177         configurations.
69178         Reported by Mike Stone.
69179
69180 2000-09-15  Jim Meyering  <meyering@lucent.com>
69181
69182         * lib/regex.c: Update from libc.
69183
69184 2000-09-10  Jim Meyering  <meyering@lucent.com>
69185
69186         * lib/getopt.c (_getopt_internal): Update from glibc.
69187
69188 2000-09-09  Jim Meyering  <meyering@lucent.com>
69189
69190         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69191         think it should be used as a general replacement for isascii.
69192         * lib/fnmatch.c: Likewise.
69193         * lib/mbswidth.c: Likewise
69194         * lib/regex.c: Likewise.
69195
69196         Don't use atoi.
69197         * lib/userspec.c: Include sys/param.h and limits.h.
69198         Include xstrtol.h.
69199         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69200         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69201         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69202         UID, GID.  Check range.
69203
69204 2000-09-06  Jim Meyering  <meyering@lucent.com>
69205
69206         * lib/getopt.c (_getopt_internal): Update from glibc.
69207
69208 2000-08-30  Jim Meyering  <meyering@lucent.com>
69209
69210         * lib/strftime.c: Merge in changes from GNU libc.
69211
69212 2000-08-26  Jim Meyering  <meyering@lucent.com>
69213
69214         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69215         * m4/fpending.m4: New file.
69216
69217 2000-08-26  Jim Meyering  <meyering@lucent.com>
69218
69219         * lib/closeout.c: Include "__fpending.h".
69220         (close_stdout_status): Return right away if there's nothing to flush.
69221
69222         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69223         * lib/__fpending.c: New file.
69224         * lib/__fpending.h: New file.
69225
69226 2000-08-20  Jim Meyering  <meyering@lucent.com>
69227
69228         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69229         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69230         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69231
69232 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69233
69234         Improve fileutils installation on systems where running
69235         programs (like install) can't be unlinked.
69236         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69237         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69238
69239 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69240
69241         Standardize on "memory exhausted" instead of "Memory exhausted"
69242         or "virtual memory exhausted".
69243         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69244         "virtual memory exhausted".
69245         * lib/same.c (same_name): Invoke xalloc_die instead of printing
69246         our own message.
69247         * lib/userspec.c (parse_user_spec): Likewise.
69248         * lib/bumpalloc.h: comment fix
69249         * lib/same.c, userspec.c: Include xalloc.h.
69250
69251         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
69252         not char *const and pointing to a constant array.
69253         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
69254         (xrealloc): Comment fix.
69255
69256         * lib/userspec.c (parse_user_spec):
69257         Don't translate a message until just before returning,
69258         to avoid unnecessary translation.
69259
69260 2000-08-07  Jim Meyering  <meyering@lucent.com>
69261
69262         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
69263         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
69264         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
69265         getgroups.c, gethostname.c, getopt.h, group-member.c,
69266         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
69267         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
69268         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
69269         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
69270         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
69271         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
69272         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
69273         yesno.c: Back out Copyright date changes for each file with no change
69274         this year.  This eases coordination with other programs using the same
69275         source code modules.  From Paul Eggert.
69276
69277 2000-08-06  Paul Eggert  <eggert@twinsun.com>
69278
69279         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
69280         not char, for compatibility with glibc 2.1.3 strftime.c.
69281
69282 2000-08-03  Greg McGary  <greg@mcgary.org>
69283
69284         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69285         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69286         (EXTEND_BUFFER): Use them.
69287
69288 2000-08-01  Jim Meyering  <meyering@lucent.com>
69289
69290         * lib/dirname.c (ISSLASH): Define.
69291         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69292         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69293         both `\' and `/' may be use as path separators.
69294         Based on a patch from Prashant TR.
69295
69296 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69297
69298         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69299         slot vector a constant, since it might get modified.
69300
69301 2000-07-31  Jim Meyering  <meyering@lucent.com>
69302
69303         * lib/xmalloc.c: Use `virtual memory exhausted', not
69304         `Memory exhausted'.
69305         * lib/obstack.c (print_and_abort): Likewise.
69306
69307 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69308
69309         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69310         buffer, so that the caller can always quote one small
69311         component of a "memory exhausted" message in slot 0.
69312         From a suggestion by Jim Meyering.
69313
69314 2000-07-30  Jim Meyering  <meyering@lucent.com>
69315
69316         * lib/makepath.c (make_path): Quote the other instance, too.
69317
69318         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69319         (STATIC_BUF_SIZE): Define.
69320         (quotearg_n_options): Use only statically allocated storage when
69321         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69322         than STATIC_BUF_SIZE.
69323
69324 2000-07-29  Jim Meyering  <meyering@lucent.com>
69325
69326         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69327         * lib/dirname.c (dir_name): Likewise.
69328
69329         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69330         `/'.
69331
69332         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69333         (dir_name): Assert that there are no trailing slashes.
69334
69335 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69336
69337         * lib/mbswidth.h (mbswidth): Add a flags argument.
69338         (mbswidth): New declaration.
69339         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69340         * lib/mbswidth.c (mbswidth): Add a flags argument.
69341         (mbsnwidth): New function.
69342
69343 2000-07-24  Jim Meyering  <meyering@lucent.com>
69344
69345         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69346
69347 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69348
69349         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69350
69351 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69352
69353         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69354         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69355         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69356         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69357         invoke multibyte primitives.
69358
69359 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69360
69361         * lib/quotearg.c:
69362         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69363         so that mbstate_t is always defined.
69364
69365         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69366         be 1 in at least one GCC installation, and this configuration
69367         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69368         performance on hosts that have mbrtowc but have only unibyte
69369         locales, but I assume these hosts are rare.
69370
69371 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69372
69373         * lib/mbswidth.c (_XOPEN_SOURCE):
69374         Don't define; this causes problems on Solaris 7.
69375         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69376
69377 2000-07-23  Jim Meyering  <meyering@lucent.com>
69378
69379         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69380         too: getgrgid, getpwuid, getuid.
69381
69382 2000-07-23  Jim Meyering  <meyering@lucent.com>
69383
69384         * lib/basename.c (base_name): Add an assertion.
69385
69386 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69387
69388         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69389         shadow its mbsinit function.
69390
69391 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69392
69393         * lib/mbswidth.h: New file.
69394         * lib/mbswidth.c: New file.
69395         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69396         (noinst_HEADERS): Add mbswidth.h.
69397
69398 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69399
69400         * lib/config.charset: Add support for FreeBSD. Improve support for
69401         HP-UX and IRIX 6.
69402
69403 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69404
69405         * m4/mbswidth.m4: New file.
69406         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69407
69408 2000-07-15  Jim Meyering  <meyering@lucent.com>
69409
69410         * lib/makepath.c: Include quote.h.
69411         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69412         corresponding argument in a `quote (...)' call.
69413         Give better diagnostics.
69414
69415         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
69416         (noinst_HEADERS): Add quote.h.
69417
69418         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
69419         from tar's src/misc.c.
69420         * lib/quote.h: New file.  Prototypes for same.
69421
69422 2000-07-14  Paul Eggert  <eggert@twinsun.com>
69423
69424         From a suggestion by Bruno Haible.
69425         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
69426         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
69427         to decide whether to define the BeOS workaround macro;
69428         this adjusts to the change to AC_MBSTATE_T.
69429
69430 2000-07-14  Jim Meyering  <meyering@lucent.com>
69431
69432         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
69433         jm_AC_TYPE_UINTMAX_T.
69434
69435 2000-07-13  Paul Eggert  <eggert@twinsun.com>
69436
69437         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
69438
69439         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
69440         quotearg_buffer_restyled): Add support for
69441         clocale_quoting_style.  Undo previous change to
69442         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
69443         and "{RIGHT QUOTATION MARK}" msgids.
69444
69445 2000-07-10  Paul Eggert  <eggert@twinsun.com>
69446
69447         From a suggestion by Bruno Haible.
69448         * m4/mbstate_t.m4 (AC_MBSTATE_T):
69449         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
69450         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
69451         and mbstate_t, to a single-part test that simply defines mbstate_t.
69452         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
69453         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
69454
69455 2000-07-10  Jim Meyering  <meyering@lucent.com>
69456
69457         * m4/strerror_r.m4: Mirror the correction made in autoconf.
69458
69459         * m4/gnu-source.m4: Output to confdefs.h directly.
69460         Suggestion from Akim Demaille.
69461
69462 2000-07-09  Paul Eggert  <eggert@twinsun.com>
69463
69464         The old behavior of quoting `like this' doesn't look good with
69465         newer, ISO-style fonts.  See:
69466         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
69467
69468         Instead, quote "like this" by default.  Let the translator
69469         tailor the locale-specific quoting behavior by providing
69470         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
69471
69472         * lib/quotearg.c (N_): New macro.
69473         (gettext_default): New function.
69474         (quotearg_buffer_restyled): Use
69475         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
69476         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
69477
69478 2000-07-09  Jim Meyering  <meyering@lucent.com>
69479
69480         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
69481         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
69482
69483         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
69484         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
69485
69486 2000-07-09  Jim Meyering  <meyering@lucent.com>
69487
69488         * lib/Most files: Update copyright dates to include 2000.
69489
69490 2000-07-08  Jim Meyering  <meyering@lucent.com>
69491
69492         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
69493         if not defined.
69494         (xgethostname): Remove now-unnecessary #ifdef.
69495         Move declaration of `err' into loop where it's used.
69496
69497 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69498         and Bruno Haible  <haible@clisp.cons.org>
69499
69500         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
69501         only if the test for an object-type mbstate_t fails.  This
69502         prevents us from mistakenly reporting that mbstate_t is a
69503         system object type after we "#define mbstate_t int" to work
69504         around its lack.
69505
69506 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69507         and Bruno Haible  <haible@clisp.cons.org>
69508
69509         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
69510
69511 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69512
69513         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
69514         to strerror_r.
69515         Include <ctype.h> for use of isalpha.
69516
69517 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69518
69519         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
69520         by allocating a larger buffer. Test the gethostname return value for
69521         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
69522         returns an error and ENAMETOOLONG isn't defined.
69523
69524 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69525
69526         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
69527         dimension.
69528
69529 2000-07-04  Jim Meyering  <meyering@lucent.com>
69530
69531         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
69532         of the deprecated AC_CHECKING.
69533
69534 2000-07-04  Jim Meyering  <meyering@lucent.com>
69535
69536         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
69537         Reported by Bruno Haible.
69538
69539 2000-07-04  Jim Meyering  <meyering@lucent.com>
69540
69541         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
69542         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
69543         lacks mbrtowc.
69544
69545 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69546
69547         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
69548         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
69549
69550 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69551         and Bruno Haible  <haible@clisp.cons.org>
69552
69553         * lib/quotearg.c (mbrtowc):
69554         Assign to *pwc, and return 1 only if result is nonzero.
69555         (iswprint): Use ISPRINT when substituting our own mbrtowc.
69556
69557 2000-07-03  Jim Meyering  <meyering@lucent.com>
69558
69559         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
69560
69561 2000-07-03  Jim Meyering  <meyering@lucent.com>
69562
69563         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
69564         This is necessary to get a definition of e.g., UTMP_FILE on
69565         HP-UX 10.20.
69566         From Bob Proulx.
69567
69568 2000-07-02  Jim Meyering  <meyering@lucent.com>
69569
69570         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
69571
69572         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
69573         AC_LIBOBJ(function_name).
69574         * m4/chown.m4: Likewise.
69575         * m4/fnmatch.m4: Likewise.
69576         * m4/ftruncate.m4: Likewise.
69577         * m4/getgroups.m4: Likewise.
69578         * m4/getline.m4: Likewise.
69579         * m4/group-member.m4: Likewise.
69580         * m4/jm-macros.m4: Likewise.
69581         * m4/lstat.m4: Likewise.
69582         * m4/malloc.m4: Likewise.
69583         * m4/memcmp.m4: Likewise.
69584         * m4/nanosleep.m4: Likewise.
69585         * m4/putenv.m4: Likewise.
69586         * m4/realloc.m4: Likewise.
69587         * m4/regex.m4: Likewise.
69588         * m4/stat.m4: Likewise.
69589         * m4/strftime.m4: Likewise.
69590
69591 2000-07-02  Jim Meyering  <meyering@lucent.com>
69592
69593         * lib/quotearg.c (mbstate_t): Don't define here.
69594
69595 2000-07-02  Jim Meyering  <meyering@lucent.com>
69596
69597         * lib/nanosleep.c (SIGCONT): Define if not already defined.
69598
69599 2000-07-01  Jim Meyering  <meyering@lucent.com>
69600
69601         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
69602
69603 2000-07-01  Jim Meyering  <meyering@lucent.com>
69604
69605         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
69606         problem.
69607
69608 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69609
69610         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
69611         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
69612
69613 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69614
69615         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
69616         per change in ../m4/ls-mntd-fs.m4.
69617         (read_filesystem_list): Ignore symbolic links.
69618
69619 2000-06-29  Jim Meyering  <meyering@lucent.com>
69620
69621         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
69622         for declaration of strcmp.
69623
69624         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
69625
69626         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
69627         Avoid warning by casting result to `char *' to remove `const'.
69628
69629 2000-06-28  Jim Meyering  <meyering@lucent.com>
69630
69631         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
69632         included by quotearg.c, for which we perform this test.  From
69633         Bruno Haible.
69634
69635 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69636
69637         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
69638         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
69639         <utmpx.h> exists, put readutmp.o into LIBOBJS.
69640
69641 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69642
69643         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
69644
69645 2000-06-26  Paul Eggert  <eggert@twinsun.com>
69646
69647         savedir now sets errno on failure and invokes xmalloc to get memory.
69648         Fix a couple of other minor bugs while we're at it.
69649
69650         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
69651         (NAMLEN): Remove macro.
69652         (malloc, realloc): Remove decls.
69653         (stpcpy): Likewise.
69654         ("xalloc.h"): Include.
69655         (NAME_SIZE_DEFAULT): New macro.
69656         (savedir): Use xmalloc / xrealloc to allocate memory.
69657         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
69658         Skip "" directory entries.
69659         Use strlen to calculate directory entry length, since the old method
69660         is rarely used these days and isn't worth supporting.
69661         Don't use a pointer after freeing it.
69662         Check for integer overflow when calculating allocation size.
69663         Use memcpy to copy entries, instead of stpcpy.
69664         Set errno properly when returning NULL.
69665         Check for readdir error.
69666
69667 2000-06-26  Jim Meyering  <meyering@lucent.com>
69668
69669         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
69670
69671 2000-06-25  Jim Meyering  <meyering@lucent.com>
69672
69673         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
69674         Linux header bug when _XOPEN_SOURCE is defined to 500.
69675
69676 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69677
69678         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
69679         deficiency.
69680
69681 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69682
69683         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
69684         Include xalloc.h.
69685         Don't include <stdlib.h>.  Don't declare malloc, realloc.
69686
69687 2000-06-24  Jim Meyering  <meyering@lucent.com>
69688
69689         * m4/strerror_r.m4: Revive this file -- to try out an experimental
69690         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
69691         for which strerror does return char*, but which lacks a conveniently
69692         accessible declaration of the function.  If the compile-test says
69693         strerror_r doesn't work, then resort to a `run'-test that works on
69694         BeOS and segfaults on DEC Unix.
69695
69696 2000-06-24  Jim Meyering  <meyering@lucent.com>
69697
69698         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
69699
69700 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69701
69702         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
69703         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
69704
69705 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69706
69707         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
69708         (mbrtowc, mbstate_t): Define substitutes if
69709         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
69710         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
69711         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
69712
69713 2000-06-23  Jim Meyering  <meyering@lucent.com>
69714
69715         * m4/afs.m4: Add missing AC_MSG_RESULT.
69716         Reported by Bruno Haible.
69717
69718         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
69719         Suggestion from Bruno Haible.
69720
69721 2000-06-23  Jim Meyering  <meyering@lucent.com>
69722
69723         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
69724
69725 2000-06-21  Jim Meyering  <meyering@lucent.com>
69726
69727         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
69728
69729 2000-06-21  Jim Meyering  <meyering@lucent.com>
69730
69731         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
69732         (noinst_HEADERS): Add getstr.h.
69733
69734         * lib/getline.c (getstr): Move into a separate file.
69735         * lib/getstr.c (getstr): New file, extracted from getline.c, with
69736         the following changes: new parameter, delim2; both delim[12]
69737         parameters have type `int', not `char'.  The latter would lose
69738         with 8-bit delimiters.
69739         * lib/getstr.h: New file.
69740
69741 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69742
69743         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
69744         than 1024, return a memory chunk of least possible size, instead
69745         of size PATH_MAX + 2. In the loop, increment the size proportionally.
69746         Use free/xmalloc instead of xrealloc to avoid copying for very long
69747         paths.
69748
69749 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69750
69751         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
69752         the empty string.
69753
69754 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69755
69756         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
69757         address, not strdup.  Include <stdlib.h> and don't declare free().
69758
69759 2000-06-19  Jim Meyering  <meyering@lucent.com>
69760
69761         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
69762
69763 2000-06-18  Jim Meyering  <meyering@lucent.com>
69764
69765         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
69766
69767         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
69768         `checking whether...' message to be consistent with that of the
69769         lstat test.
69770
69771 2000-06-18  Jim Meyering  <meyering@lucent.com>
69772
69773         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
69774         Besides, these days every porting target provides a mkdir function.
69775
69776         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
69777         needed. (this snippet comes from src/system.h).
69778
69779 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
69780
69781         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
69782
69783 2000-06-15  Paul Eggert  <eggert@twinsun.com>
69784
69785         * lib/human.c (adjust_value): New function.
69786         (human_readable_inexact): Apply rounding style even when
69787         printing approximate values.
69788
69789 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69790
69791         * lib/human.c (human_readable_inexact): Allow an input block
69792         size that is not a multiple of the output block size, and vice versa.
69793         Reported by Piergiorgio Sartor.
69794
69795 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69796
69797         * lib/getdate.y (get_date): Apply relative times after time
69798         zone indicator, not before.  Reported by Todd A. Jacobs.
69799
69800 2000-06-13  Jim Meyering  <meyering@lucent.com>
69801
69802         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
69803
69804         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
69805
69806 2000-06-12  Paul Eggert  <eggert@twinsun.com>
69807
69808         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
69809
69810 2000-06-12  Jim Meyering  <meyering@lucent.com>
69811
69812         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
69813         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
69814         optional argument.
69815         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
69816         the optional argument, `lib'.
69817
69818 2000-06-08  Jim Meyering  <meyering@lucent.com>
69819
69820         * m4/largefile.m4: Remove file (now that it's part of autoconf).
69821
69822 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69823
69824         Rewrite largefile configuration so that we don't need to run
69825         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
69826         AC_CANONICAL_HOST in configure.in -- jmm]
69827
69828         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
69829         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
69830         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
69831         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
69832         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
69833         All uses changed.
69834         Instead of inspecting the output of getconf, try to compile the
69835         test program without and with the macro definition.
69836         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
69837         for getconf.  Instead, check for the needed flags by compiling
69838         test programs.
69839
69840 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69841
69842         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
69843
69844 2000-06-04  Jim Meyering  <meyering@lucent.com>
69845
69846         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
69847         SunOS 4.1.4 for which gid_t is an unsigned type.
69848
69849 2000-06-03  Jim Meyering  <meyering@lucent.com>
69850
69851         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
69852         now that autoconf requires that.
69853
69854         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
69855         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
69856         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
69857
69858 2000-06-03  Jim Meyering  <meyering@lucent.com>
69859
69860         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
69861
69862 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
69863
69864         * m4/glibc21.m4: New file.
69865         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
69866
69867 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
69868
69869         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
69870         newer, don't install charset.alias.
69871         * lib/config.charset: Change the Linux/glibc rules so they become empty
69872         on glibc-2.1 or newer.
69873
69874 2000-06-02  Jim Meyering  <meyering@lucent.com>
69875
69876         * lib/mountlist.c: Back out last change.  Instead, do this...
69877         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
69878         me_dummy member using the same `ignore'-testing code.
69879         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
69880         fs_type strings.
69881         From Mark D. Roth.
69882
69883 2000-05-29  Jim Meyering  <meyering@lucent.com>
69884
69885         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
69886         mounts with the `ignore' attribute.  Based on a patch from
69887         Mark D. Roth.
69888
69889 2000-05-28  Jim Meyering  <meyering@lucent.com>
69890
69891         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
69892         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69893         * m4/stat.m4: Likewise.
69894         * m4/lstat.m4: Likewise.
69895         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
69896
69897         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
69898         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
69899
69900 2000-05-26  Jim Meyering  <meyering@lucent.com>
69901
69902         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
69903
69904 2000-05-24  Jim Meyering  <meyering@lucent.com>
69905
69906         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
69907         autoconf requires that.
69908         * m4/lib-check.m4: Likewise.
69909         * m4/jm-macros.m4: Likewise.
69910         * m4/strftime.m4: Likewise.
69911
69912         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
69913         AC_CHECK_DECLS, now that autoconf requires that.
69914
69915 2000-05-22  Jim Meyering  <meyering@lucent.com>
69916
69917         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69918         * m4/lstat.m4: Likewise.
69919
69920 2000-05-22  Jim Meyering  <meyering@lucent.com>
69921
69922         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
69923
69924 2000-05-20  Jim Meyering  <meyering@lucent.com>
69925
69926         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
69927         (jm_PREREQ): Use it.
69928
69929 2000-05-18  Jim Meyering  <meyering@lucent.com>
69930
69931         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
69932         back, too, since it may have been modified by allocate_entry.
69933         (hash_delete): Rewrite to use neither the assignment operator
69934         nor the comma operator in an if-expression.
69935
69936 2000-05-15  Paul Eggert  <eggert@twinsun.com>
69937
69938         * lib/closeout.c:
69939         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
69940         Remove; no longer needed.
69941         "quotearg.h": Add include.
69942         (file_name): Do not bother to explicitly initialize to NULL; it's less
69943         efficient on some hosts.
69944         (close_stdout_status): Remove test as to whether stdout was already
69945         closed; it breaks for the case "echo x | sort >&-".
69946         Quote file name colons.
69947         Do not assume that _("write error") lacks format strings.
69948
69949 2000-05-15  Jim Meyering  <meyering@lucent.com>
69950
69951         * lib/version-etc.c (version_etc_copyright): Update the copyright
69952         string used in all --version output.
69953
69954 2000-05-14  Jim Meyering  <meyering@lucent.com>
69955
69956         * lib/closeout.c (close_stdout_set_file_name): New function.
69957         (close_stdout_status): Use new file-scoped global.
69958         Return right away if fstat says the stdout file descriptor is invalid.
69959         * lib/closeout.h (close_stdout_set_file_name): Declare.
69960
69961 2000-05-10  Jim Meyering  <meyering@lucent.com>
69962
69963         * lib/closeout.c [default_exit_status]: New file-scoped variable.
69964         (close_stdout_set_status): New function.
69965         * lib/closeout.h (close_stdout_set_status): Declare.
69966
69967 2000-05-09  Jim Meyering  <meyering@lucent.com>
69968
69969         * m4/gettext.m4: Rename this...
69970         * m4/libintl.m4: ...to this.
69971
69972 2000-05-08  Jim Meyering  <meyering@lucent.com>
69973
69974         * lib/long-options.c: Don't include closeout.h.
69975         (parse_long_options): Don't call close_stdout for --version.
69976
69977 2000-05-06  Paul Eggert  <eggert@twinsun.com>
69978
69979         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
69980         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
69981         2.1.3 bug.  This avoids a clash when files like regex.c define
69982         _GNU_SOURCE.
69983
69984 2000-05-06  Jim Meyering  <meyering@lucent.com>
69985
69986         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
69987         (AC_REPLACE_FUNCS): Add strnlen.
69988
69989         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
69990         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
69991
69992         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
69993         AC_SEARCH_LIBS call for nanosleep.
69994         (LIB_NANOSLEEP): Set and AC_SUBST.
69995
69996 2000-05-06  Jim Meyering  <meyering@lucent.com>
69997
69998         * lib/strnlen.c: Undefine __strnlen and strnlen.
69999         [!weak_alias]: Define __strnlen to strnlen.
70000
70001         * lib/atexit.c: New file, from libiberty.
70002
70003 2000-05-06  Jim Meyering  <meyering@lucent.com>
70004
70005         * lib/closeout.c (close_stdout_status): Also check for errors on the
70006         stderr stream.
70007
70008 2000-05-05  Jim Meyering  <meyering@lucent.com>
70009
70010         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70011         AC_SEARCH_LIBS call for clock_gettime.
70012         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70013
70014         * m4/search-libs.m4: Update from autoconf.
70015
70016         su doesn't work on Solaris 2.6.
70017         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70018         <shadow.h>.  Reported by Dragos Harabor.
70019
70020 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70021
70022         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70023         memcpy instead of xmalloc, xrealloc, path_concat.
70024         (locale_charset): Treat empty environment variables as absent.
70025         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70026
70027 2000-05-04  Jim Meyering  <meyering@lucent.com>
70028
70029         * lib/getopt.c: Update from glibc.
70030         * lib/obstack.c: Likewise.
70031         * lib/obstack.h: Likewise.
70032         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70033         file
70034
70035         * lib/regex.h: Likewise.
70036         * lib/strndup.c: Likewise.
70037         * lib/strnlen.c: New file, from glibc.
70038
70039 2000-05-03  Jim Meyering  <meyering@lucent.com>
70040
70041         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70042
70043 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70044
70045         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70046         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70047         compile-time test, rather than inspecting host and OS, to
70048         decide whether to define _LARGEFILE_SOURCE.
70049
70050 2000-05-01  Jim Meyering  <meyering@lucent.com>
70051
70052         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70053
70054         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70055         Based on a patch from Bruno Haible.
70056
70057 2000-05-01  Jim Meyering  <meyering@lucent.com>
70058
70059         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70060
70061 2000-04-29  Jim Meyering  <meyering@lucent.com>
70062
70063         * lib/path-concat.c: Declare strdup only if it's not defined.
70064         * lib/canon-host.c: Likewise.
70065
70066 2000-04-28  Jim Meyering  <meyering@lucent.com>
70067
70068         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70069         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70070         is included first, then limits.h is included by locale.h by libintl.h.
70071         From John David Anglin.
70072
70073 2000-04-25  Jim Meyering  <meyering@lucent.com>
70074
70075         * lib/makepath.c (S_IRWXUGO): Define.
70076         (make_path): Always perform explicit chmod if MODE specifies any
70077         of the `special' permission bits.  Prompted by a bug report against
70078         install from Mate Wierdl and Joost van Baal.
70079
70080 2000-04-18  Jim Meyering  <meyering@lucent.com>
70081
70082         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70083         (jm_PREREQ): Use it.
70084
70085 2000-04-18  Jim Meyering  <meyering@lucent.com>
70086
70087         * lib/README: New file.
70088
70089         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70090         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70091
70092 2000-04-17  Jim Meyering  <meyering@lucent.com>
70093
70094         Get it right :-)
70095         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70096         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70097         Suggestion from Akim Demaille.
70098
70099 2000-04-17  Jim Meyering  <meyering@lucent.com>
70100
70101         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70102         the definition of it to rpl_strftime also defined-away the system's
70103         declaration.
70104
70105 2000-04-15  Jim Meyering  <meyering@lucent.com>
70106
70107         Use `C' to denote so-called `contiguous' files, the same way
70108         that tar does.
70109         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70110         (ftypelet): Use S_ISCTG.
70111         From Michael Deutschmann.
70112
70113 2000-04-14  Jim Meyering  <meyering@lucent.com>
70114
70115         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70116         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70117         clobbered.
70118
70119 2000-04-14  Jim Meyering  <meyering@lucent.com>
70120
70121         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70122
70123 2000-04-13  Jim Meyering  <meyering@lucent.com>
70124
70125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70126         AH_VERBATIM to insert required #ifndef into config.h.in.
70127         Suggestion from Akim Demaille.
70128
70129 2000-04-12  Jim Meyering  <meyering@lucent.com>
70130
70131         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70132         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70133         Christian Krackowizer.
70134
70135         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70136         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70137         (AC_SYS_LARGEFILE): Require.
70138         (AM_C_PROTOTYPES): Require.
70139
70140 2000-04-08  Jim Meyering  <meyering@lucent.com>
70141
70142         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70143         names don't conflict.  Reported by Eli Zaretskii.
70144
70145 2000-04-07  Jim Meyering  <meyering@lucent.com>
70146
70147         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70148         sys/types.h, to work around system header problems on AIX 3.2.5.
70149         From Bruno Haible.
70150
70151 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70152
70153         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70154         bug.  Deal with the different error behavior of Irix iconv.
70155
70156 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70157
70158         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70159         IRIX if the installer said otherwise.
70160
70161 2000-04-05  Jim Meyering  <meyering@lucent.com>
70162
70163         Portability tweaks required for ultrix4.3.
70164         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70165         (jm_CHECK_DECLS): Add getutent to the list of functions.
70166         (_jm_DECL_HEADERS): Add utmpx.h.
70167         From John David Anglin.
70168
70169         * m4/strftime.m4: Back out the 2000-04-02 change.
70170         Instead of that change, simply undefine putenv in the test program.
70171
70172 2000-04-05  Jim Meyering  <meyering@lucent.com>
70173
70174         Portability tweaks required for ultrix4.3.
70175         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70176         getutent.
70177         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70178         * lib/canon-host.c: Declare strdup.
70179         * lib/path-concat.c: Likewise.
70180         From John David Anglin.
70181
70182 2000-04-04  Jim Meyering  <meyering@lucent.com>
70183
70184         Be more DOS 8.3-friendly.
70185         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70186         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70187         * lib/Makefile.am: Reflect renaming.
70188         Reported by Eli Zaretskii.
70189
70190         Use a temporary file name that won't clash with `charset.alias'
70191         in the DOS 8.3 name space.
70192         * lib/Makefile.am (charset_tmp): Define.
70193         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70194         (uninstall-local): Likewise.
70195         Reported by Eli Zaretskii.
70196
70197 2000-04-03  Jim Meyering  <meyering@lucent.com>
70198
70199         * m4/gettext.m4: Fix typo in comment.
70200
70201         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70202         textutils/configure.in).  Suggestion from Paul Eggert.
70203         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70204
70205 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70206
70207         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70208         variable in the shell rather than using putenv, which isn't
70209         portable.  This avoids the configure-time inter-test dependency
70210         on the potentially-renamed putenv function.
70211
70212 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70213
70214         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70215         before checking struct stat.st_blksize, so that
70216         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70217
70218 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70219
70220         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70221         since strftime.c uses HAVE_STRFTIME to decide whether to use
70222         the underlying strftime.
70223
70224 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70225
70226         * lib/time/strftime.c (my_strftime): Make sure we call the system
70227         strftime, not ourselves, when invoking the underlying strftime.
70228
70229 2000-03-24  Jim Meyering  <meyering@lucent.com>
70230
70231         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70232         (charset_alias): Define.
70233         (install-exec-local): Factor out common code.
70234         (uninstall-local): Split lines longer than 80.
70235         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70236         (SUFFIXES): Define.
70237         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70238         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70239
70240 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70241
70242         * lib/config.charset: Output a line containing "Packages using this
70243         file".
70244         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
70245         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
70246         ref-del.sed): New rules.
70247
70248 2000-03-17  Jim Meyering  <meyering@lucent.com>
70249
70250         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
70251         Otherwise, include <strings.h>
70252
70253 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
70254
70255         * lib/unicodeio.c (utf8_wctomb): New function.
70256         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
70257         format instead of in UCS-4 with platform dependent endianness.
70258
70259 2000-03-10  Jim Meyering  <meyering@lucent.com>
70260
70261         * m4/lib-check.m4: Look for getspnam in -lgen, too.
70262         From Marco Franzen.
70263
70264 2000-03-07  Paul Eggert  <eggert@twinsun.com>
70265
70266         * lib/savedir.c (savedir): Work even if directory size is
70267         negative; this can happen with some screwy NFS configurations.
70268
70269 2000-03-06  Jim Meyering  <meyering@lucent.com>
70270
70271         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
70272         if it's NULL (because we ran out of memory).  From Bruno Haible.
70273
70274 2000-03-05  Jim Meyering  <meyering@lucent.com>
70275
70276         * lib/localcharset.c ("path-concat.h"): Include.
70277         (get_charset_aliases): Use path_concat instead of ANSI string
70278         concatenation.
70279
70280         * lib/unicodeio.h (PARAMS): Define.
70281         Use it to guard prototype.
70282
70283 2000-03-04  Jim Meyering  <meyering@lucent.com>
70284
70285         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70286         for lib/localcharset.c.
70287
70288 2000-03-04  Jim Meyering  <meyering@lucent.com>
70289
70290         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70291         installing into it.
70292         (uninstall-local): Uncomment this rule so `make distcheck' works
70293         once again.
70294
70295         * lib/unicodeio.c (<errno.h>): Include it.
70296         (errno): Declare if not defined.
70297
70298         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70299
70300         * lib/config.charset: New version, incorporating remarks from a linux
70301         i18n mailing list.  From Bruno Haible.
70302
70303 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70304
70305         * m4/codeset.m4: New file.
70306         * m4/iconv.m4: New file.
70307         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70308
70309 2000-03-03  Jim Meyering  <meyering@lucent.com>
70310
70311         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70312
70313 2000-03-02  Jim Meyering  <meyering@lucent.com>
70314
70315         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70316         the messages come out on separate lines.
70317
70318         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70319         rather than jm_CHECK_DECLARATIONS.
70320         * m4/decl.m4: Remove now-unused file.
70321
70322         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70323         geteuid.
70324
70325 2000-03-02  Jim Meyering  <meyering@lucent.com>
70326
70327         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70328
70329 2000-03-01  Jim Meyering  <meyering@lucent.com>
70330
70331         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70332         * lib/unicodeio.c: Likewise.
70333
70334 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70335
70336         * lib/config.charset: New file.
70337         * lib/localcharset.c: New file.
70338         * lib/unicodeio.h, lib/unicodeio.c: New files.
70339         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70340         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70341         (noinst_HEADERS): Add unicodeio.h.
70342         (all-local, install-exec-local, charset.alias): New targets.
70343
70344 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70345
70346         * lib/quotearg.c (ALERT_CHAR): New macro.
70347         (quotearg_buffer_restyled): Use it.
70348
70349 2000-02-27  Jim Meyering  <meyering@lucent.com>
70350
70351         * m4/check-decl.m4: Add getenv to the list.
70352
70353 2000-02-27  Jim Meyering  <meyering@lucent.com>
70354
70355         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70356         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70357
70358         * lib/backupfile.c: Guard inclusion of stdlib.h with
70359         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70360         Declare malloc if needed.
70361
70362         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70363         `#ifndef HAVE_DECL..'
70364         now that autoconf always defines the HAVE_DECL_ symbols.
70365         * lib/human.c: Likewise.
70366         * lib/same.c: Likewise.
70367         * lib/strtoumax.c: Likewise.
70368
70369         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70370         declaration check was not run.
70371         * lib/hash.c: Likewise.
70372         * lib/human.c: Likewise.
70373         * lib/same.c: Likewise.
70374         * lib/strtoumax.c: Likewise.
70375
70376         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70377         `.', then first look up the entire `.'-containing string as a login
70378         name.
70379
70380 2000-02-23  Jim Meyering  <meyering@lucent.com>
70381
70382         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70383         in place of my hack.
70384
70385 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70386
70387         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70388         (textint): New typedef.
70389         (parser_control): Member year changed from int to textint.
70390         All uses changed.
70391         (YYSTYPE): Removed; replaced by %union with int and textint members.
70392         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70393         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70394         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70395         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70396         (date, number, to_year): Use width of number in digits, not its value,
70397         to determine whether it's a 2-digit year, or a 2-digit time.
70398         (yylex): Store number of digits of numeric tokens.
70399         Reported by John Kendall.
70400
70401         (parser_control): Changed from struct parser_control to typedef (for
70402         consistency).  All uses changed.
70403
70404         (tID): Removed; not used.
70405         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70406
70407 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70408
70409         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70410         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70411
70412 2000-02-12  Jim Meyering  <meyering@lucent.com>
70413
70414         * lib/userspec.c (ISDIGIT): Define it.
70415         (isdigit): Remove definition.
70416         (is_number): Use ISDIGIT, not isdigit.
70417         <libintl.h>: Include.
70418         (_ and N_): Define.
70419         (parse_user_spec): Mark translatable strings.
70420
70421 2000-02-10  Jim Meyering  <meyering@lucent.com>
70422
70423         With these changes, nanosleep.[ch] are finally enough like the other
70424         lib/* replacement files to compile on a few more losing systems.
70425
70426         * lib/nanosleep.h: Don't include config.h.
70427         Remove prototype from declaration of nanosleep.
70428         (PARAMS): Remove now-unneeded definition.
70429         * lib/nanosleep.c: #undef nanosleep.
70430         (rpl_nanosleep): Rename from nanosleep.
70431
70432 2000-02-10  Jim Meyering  <meyering@lucent.com>
70433
70434         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
70435         gnu_nanosleep to rpl_nanosleep.
70436
70437 2000-02-09  Jim Meyering  <meyering@lucent.com>
70438
70439         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
70440         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
70441
70442 2000-02-08  Akim Demaille  <akim@epita.fr>
70443
70444         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
70445         `[' and `]' and remove uses of `changequote'.
70446         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
70447         (AC_SYS_LARGEFILE): Likewise.
70448         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70449         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
70450         of changequote.
70451         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
70452         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
70453         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
70454         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
70455
70456 2000-02-05  Jim Meyering  <meyering@lucent.com>
70457
70458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
70459         Remove explicit use of AC_HEADER_TIME.  It is required by
70460         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
70461         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
70462         in autoconf whereby the expansion of the latter ended up preceding
70463         the expansion of its prerequisite, AC_HEADER_TIME.
70464         Reported by Volker Borchert.
70465
70466 2000-02-03  Jim Meyering  <meyering@lucent.com>
70467
70468         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
70469
70470 2000-02-03  Jim Meyering  <meyering@lucent.com>
70471
70472         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
70473         rather than with `#if HAVE_UTMPNAME'.
70474
70475 2000-02-02  Jim Meyering  <meyering@lucent.com>
70476
70477         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
70478         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
70479         Reported by Eli Zaretskii.
70480
70481 2000-02-01  Jim Meyering  <meyering@lucent.com>
70482
70483         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
70484
70485 2000-01-31  Jim Meyering  <meyering@lucent.com>
70486
70487         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
70488         functions.  Add the time.h and sys/time.h headers along with the
70489         AC_REQUIRE'ment of AC_HEADER_TIME.
70490
70491 2000-01-31  Jim Meyering  <meyering@lucent.com>
70492
70493         * lib/nanosleep.h (nanosleep): Guard declaration with
70494         `#if ! HAVE_DECL_NANOSLEEP'.
70495         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
70496         the declaration in that vendor's sys/timers.h.
70497         Reported by Christian Krackowizer.
70498
70499         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
70500         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
70501         (ISPRINT): Likewise.
70502         Reported by Tom Tromey.
70503
70504 2000-01-30  Jim Meyering  <meyering@lucent.com>
70505
70506         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
70507
70508         * m4/prereq.m4 (utmp_includes): Define.
70509         Check for ut_user and ut_name members in both struct utmpx
70510         and struct utmp.
70511
70512 2000-01-30  Jim Meyering  <meyering@lucent.com>
70513
70514         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
70515         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
70516         header files where only utmpx.ut_user is declared.
70517
70518         * lib/readutmp.h (UT_USER): Define.
70519
70520 2000-01-29  Jim Meyering  <meyering@lucent.com>
70521
70522         * m4/lib-check.m4: New file containing library-related checks from
70523         fileutils and sh-utils (textutils had none).
70524
70525 2000-01-28  Jim Meyering  <meyering@lucent.com>
70526
70527         * m4/perl.m4: Change format of warning message to look more like that
70528         from the missing script.  Suggestion from François Pinard.
70529
70530 2000-01-25  Jim Meyering  <meyering@lucent.com>
70531
70532         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
70533         well as time.h in the compile check.
70534         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
70535         Fix typo in cross-compiling case: s/yes/no/.
70536
70537 2000-01-23  Jim Meyering  <meyering@lucent.com>
70538
70539         * m4/jm-macros.m4: Move df-related tests here from
70540         fileutils/configure.in
70541
70542         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
70543         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
70544
70545         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
70546         s/space/ac_fsusage_space/.
70547         (jm_FILE_SYSTEM_USAGE): Take two parameters.
70548
70549         * m4/ftruncate.m4: New file (derived from part of
70550         fileutils/configure.in).
70551         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
70552         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
70553
70554         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
70555         AC_SUBST these here, rather than just in sh-util/configure.in, so
70556         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
70557         all the same.
70558         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
70559         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
70560         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
70561         (AC_SUBST(POW_LIBM)): Likewise.
70562         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
70563
70564 2000-01-23  Jim Meyering  <meyering@lucent.com>
70565
70566         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
70567         obstack.c.
70568
70569 2000-01-22  Jim Meyering  <meyering@lucent.com>
70570
70571         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
70572
70573         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
70574
70575         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
70576         configure.in
70577         (AC_CHECK_HEADERS): Likewise for sh-utils.
70578         (AC_CHECK_HEADERS): Likewise for textutils.
70579         Merge the three lists of headers.
70580
70581         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
70582         from fileutils' configure.in.
70583
70584         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
70585         code. Moved tests into their own function (_jm_DECL_HEADERS) in
70586         check-decl.m4.
70587
70588         * m4/check-decl.m4: Use #if rather than #ifdef.
70589         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
70590         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
70591         (_jm_DECL_HEADERS): Define new function.
70592         (jm_CHECK_DECLARATIONS): Require it.
70593
70594 2000-01-22  Jim Meyering  <meyering@lucent.com>
70595
70596         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
70597         [! HAVE_DECL_STRTOULL]: Declare strtoull.
70598         Required for some AIX systems.  Reported by Christian Krackowizer.
70599         [TESTING] (main): New function.
70600
70601         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
70602         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
70603         letters.
70604
70605         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
70606         iswprint.
70607
70608         * lib/strverscmp.c (ISDIGIT): Define.
70609         (strverscmp): Use ISDIGIT, not isdigit.
70610
70611 2000-01-19  Jim Meyering  <meyering@lucent.com>
70612
70613         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
70614         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
70615         defines `struct timespec' in <sys/time.h>
70616
70617         * m4/c-bs-a.m4: Remove uses of changequote altogether.
70618         Thanks to Akim for explaining.
70619
70620 2000-01-17  Paul Eggert  <eggert@twinsun.com>
70621
70622         * lib/nanosleep.c (nanosleep):
70623         Don't use SA_INTERRUPT to decide whether to call sigaction, as
70624         POSIX.1 doesn't require SA_INTERRUPT and some systems
70625         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
70626         it's been part of POSIX.1 since day 1 (in 1988).
70627
70628 2000-01-17  Jim Meyering  <meyering@lucent.com>
70629
70630         * lib/interlock: Remove unused file.  Reported by François Pinard.
70631
70632 2000-01-16  Paul Eggert  <eggert@twinsun.com>
70633
70634         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
70635         alert, backslash, formfeed, and vertical tab unnecessarily in
70636         shell quoting style.
70637
70638 2000-01-16  Jim Meyering  <meyering@lucent.com>
70639
70640         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
70641         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
70642         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
70643         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
70644
70645 2000-01-16  Jim Meyering  <meyering@lucent.com>
70646
70647         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
70648         because the latter didn't work.
70649
70650 2000-01-15  Jim Meyering  <meyering@lucent.com>
70651
70652         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
70653         (AC_REPLACE_FUNCS): Add memcpy and memset.
70654         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
70655         Add strpbrk.
70656         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
70657
70658 2000-01-12  Jim Meyering  <meyering@lucent.com>
70659
70660         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
70661         (jm_PREREQ): Use it.
70662         (jm_PREREQ_READUTMP): New macro.
70663         (jm_PREREQ): Use it.
70664
70665 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70666
70667         Quote multibyte characters correctly.
70668         * m4/c-bs-a.m4: New file.
70669         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
70670         (jm_PREREQ): Use it.
70671
70672 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70673
70674         * m4/uintmax_t.m4: Port to autoconf 2.13.
70675
70676 2000-01-08  Jim Meyering  <meyering@ascend.com>
70677
70678         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
70679         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
70680
70681 2000-01-04  Jim Meyering  <meyering@ascend.com>
70682
70683         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
70684         jm_STRUCT_DIRENT_D_TYPE.
70685         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
70686         jm_STRUCT_DIRENT_D_INO.
70687         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
70688         jm_STRUCT_UTIMBUF.
70689         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
70690         renamings.
70691         * m4/utime.m4: Likewise.
70692
70693         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
70694         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
70695
70696 2000-01-03  Paul Eggert  <eggert@twinsun.com>
70697
70698         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
70699         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
70700
70701 2000-01-02  Jim Meyering  <meyering@ascend.com>
70702
70703         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
70704         remember if this is necessary.
70705
70706 1999-12-26  Jim Meyering  <meyering@ascend.com>
70707
70708         * m4/jm-macros.m4: Use it here.
70709         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
70710
70711 1999-12-23  Jim Meyering  <meyering@ascend.com>
70712
70713         * m4/jm-macros.m4: Check for clock_gettime (moved from
70714         fileutils/configure.in)
70715         Check for gettimeofday.
70716
70717 1999-12-20  Jim Meyering  <meyering@ascend.com>
70718
70719         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
70720         autoconf-2.14a-1999-12-20.
70721
70722 1999-12-19  Jim Meyering  <meyering@ascend.com>
70723
70724         * m4/lstat-slash.m4: New file.
70725         * m4/jm-macros.m4: Use the new macro:
70726         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70727
70728 1999-12-07  Jim Meyering  <meyering@ascend.com>
70729
70730         * m4/perl.m4: Require that File::Compare be available, too.
70731         Too many systems seem to lack it.
70732
70733         * m4/strftime.m4: Add checks for most of the cpp macros tested in
70734         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
70735
70736 1999-11-18  Paul Eggert  <eggert@twinsun.com>
70737
70738         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
70739         problem with the QNX 4.25 shell, which doesn't propagate exit
70740         status of failed commands inside shell assignments.
70741
70742 1999-11-17  Jim Meyering  <meyering@ascend.com>
70743
70744         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
70745
70746 1999-11-07  Jim Meyering  <meyering@ascend.com>
70747
70748         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
70749
70750 1999-11-06  Jim Meyering  <meyering@ascend.com>
70751
70752         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
70753         * m4/jm-macros.m4 (jm_MACROS): Use it here.
70754
70755 1999-11-05  Jim Meyering  <meyering@ascend.com>
70756
70757         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
70758         configure.in of textutils, fileutils, and sh-utils into this one
70759         (shared between those packages) file.
70760         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
70761         AC_STRUCT_ST_BLKSIZE.
70762
70763 1999-11-03  Jim Meyering  <meyering@ascend.com>
70764
70765         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
70766         of AC_CHECK_TYPE checks includes unistd.h.
70767         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
70768         Suggestion from Akim Demaille.
70769
70770 1999-10-30  Jim Meyering  <meyering@ascend.com>
70771
70772         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
70773         m4-quoted string.
70774         * m4/ls-mntd-fs.m4: Likewise.
70775         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
70776         * m4/jm-winsz1.m4: Likewise.
70777
70778         * m4/const.m4: Remove file, since the fix made it into the experimental
70779         version of autoconf.
70780         * m4/mktime.m4: Likewise.
70781
70782         * m4/check-type.m4: Remove file, now that the latest version of
70783         AC_CHECK_TYPE takes a third arg to specify additional #includes.
70784
70785         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
70786         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
70787         AC_CHECK_TYPE.
70788
70789 1999-10-04  Jim Meyering  <meyering@ascend.com>
70790
70791         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
70792
70793 1999-09-22  Paul Eggert  <eggert@twinsun.com>
70794
70795         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
70796         2.95.1 bug with HP-UX 10.20.
70797
70798 1999-09-17  Jim Meyering  <meyering@ascend.com>
70799
70800         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
70801         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
70802         due to missing strdup (against sh-utils-2.0).
70803
70804 1999-08-29  Jim Meyering  <meyering@ascend.com>
70805
70806         * m4/jm-macros.m4: Require jm_BISON.
70807         * m4/bison.m4: New file.
70808
70809 1999-08-17  Paul Eggert  <eggert@twinsun.com>
70810
70811         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
70812         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
70813
70814 1999-08-05  Jim Meyering  <meyering@ascend.com>
70815
70816         * m4/getline.m4: Rename test file from conftestdata to conftest.data
70817         to avoid conflicts with `conftest' on 8+3 filesystems.
70818         Suggestion from Eli Zaretskii.
70819
70820 1999-08-04  Jim Meyering  <meyering@ascend.com>
70821
70822         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
70823         fileutils and sh-utils (textutils's getline test was inadequate).
70824         (AM_FUNC_GETLINE): Run this test.
70825         (AC_CHECK_FUNCS): Check for getdelim.
70826         Reported by Bob Proulx.
70827
70828 1999-08-02  Jim Meyering  <meyering@ascend.com>
70829
70830         * m4/jm-macros.m4: Add a comment.
70831
70832 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70833
70834         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
70835         <inttypes.h> defines strtoumax as a macro (and not as a
70836         function).
70837
70838 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70839
70840         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
70841         that we can shift, multiply and divide unsigned long long
70842         values; Ultrix cc can't do it.
70843
70844 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70845
70846         * m4/mktime.m4: New file, which is a preview of what should appear
70847         in the next public autoconf release.
70848
70849 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70850
70851         * m4/lfs.m4: Remove this file.
70852         * m4/largefile.m4: New file.  It contains the old contents of
70853         lfs.m4, except that all names with prefix AC_LFS have been
70854         changed to use the prefix AC_SYS_LARGEFILE instead, to be
70855         compatible with future autoconf versions.  Also, some minor m4
70856         quoting problems have been fixed.
70857
70858 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70859
70860         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
70861         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
70862         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
70863         and simplify the shell code.
70864
70865 1999-08-01  Jim Meyering  <meyering@ascend.com>
70866
70867         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
70868         m4.
70869
70870 1999-07-20  Jim Meyering  <meyering@ascend.com>
70871
70872         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
70873
70874 1999-07-15  Jim Meyering  <meyering@ascend.com>
70875
70876         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
70877
70878 1999-05-22  Jim Meyering  <meyering@ascend.com>
70879
70880         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
70881
70882 1999-05-20  Jim Meyering  <meyering@ascend.com>
70883
70884         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
70885         Add a colon after each `then' in case $4 is empty.
70886
70887 1999-05-16  Jim Meyering  <meyering@ascend.com>
70888
70889         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
70890
70891 1999-05-10  Jim Meyering  <meyering@ascend.com>
70892
70893         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
70894
70895         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
70896         AC_FUNC_MKTIME.
70897
70898 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
70899
70900         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
70901
70902 1999-05-04  Paul Eggert  <eggert@twinsun.com>
70903
70904         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
70905         not CPPFLAGS, so that linking works correctly in IRIX.
70906
70907 1999-04-30  Paul Eggert  <eggert@twinsun.com>
70908
70909         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
70910
70911 1999-04-20  Paul Eggert  <eggert@twinsun.com>
70912
70913         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
70914         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
70915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
70916         jm_AC_TYPE_UNSIGNED_LONG_LONG.
70917         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
70918
70919         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
70920
70921 1999-04-20  Jim Meyering  <meyering@ascend.com>
70922
70923         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
70924         AC_REPLACE xstroull if necessary.  From Paul Eggert.
70925         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
70926
70927 1999-04-18  Jim Meyering  <meyering@ascend.com>
70928
70929         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
70930         * m4/jm-macros.m4: Use it.
70931
70932 1999-04-06  Jim Meyering  <meyering@ascend.com>
70933
70934         * m4/strftime.m4: Remove test for %f.
70935
70936 1999-03-29  Jim Meyering  <meyering@ascend.com>
70937
70938         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
70939         superset of the AC_TYPE_* checks in the textutils, fileutils,
70940         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
70941         AC_TYPE_PID_T.
70942
70943 1999-03-28  Jim Meyering  <meyering@ascend.com>
70944
70945         * m4/jm-macros.m4: Define GNU_PACKAGE here.
70946         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
70947         replaced e.g., in the *.sh files of the sh-utils.
70948
70949 1999-03-20  Jim Meyering  <meyering@ascend.com>
70950
70951         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
70952         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
70953         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
70954
70955 1999-03-19  Jim Meyering  <meyering@ascend.com>
70956
70957         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
70958
70959 1999-03-12  Jim Meyering  <meyering@ascend.com>
70960
70961         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
70962
70963 1999-03-07  Jim Meyering  <meyering@ascend.com>
70964
70965         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
70966         declared.
70967
70968 1999-02-17  Jim Meyering  <meyering@ascend.com>
70969
70970         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
70971         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
70972
70973 1999-02-07  Jim Meyering  <meyering@ascend.com>
70974
70975         * m4/group-member.m4: New file -- extracted from sh-utils'
70976         configure.in.
70977
70978         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
70979         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
70980
70981 1999-02-06  Jim Meyering  <meyering@ascend.com>
70982
70983         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
70984         * m4/fnmatch.m4: Likewise.
70985         * m4/getgroups.m4: Likewise.
70986         * m4/lstat.m4: Likewise.
70987         * m4/malloc.m4: Likewise.
70988         * m4/putenv.m4: Likewise.
70989         * m4/realloc.m4: Likewise.
70990         * m4/regex.m4: Likewise.
70991         * m4/stat.m4: Likewise.
70992         * m4/strftime.m4: Likewise.
70993         Suggestion from Alain Magloire.
70994
70995         * m4/chown.m4: Use `.$ac_objext', not `.o'.
70996         * m4/fnmatch.m4: Likewise.
70997         * m4/getgroups.m4: Likewise.
70998         * m4/getline.m4: Likewise.
70999         * m4/lstat.m4: Likewise.
71000         * m4/malloc.m4: Likewise.
71001         * m4/memcmp.m4: Likewise.
71002         * m4/putenv.m4: Likewise.
71003         * m4/realloc.m4: Likewise.
71004         * m4/regex.m4: Likewise.
71005         * m4/stat.m4: Likewise.
71006         * m4/strftime.m4: Likewise.
71007         Suggestion from Alain Magloire.
71008
71009         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71010         an argument.
71011
71012         * m4/regex.m4: Add a run-time Test for proper operation of
71013         re_compile_pattern.
71014
71015 1999-01-31  Jim Meyering  <meyering@ascend.com>
71016
71017         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71018
71019 1999-01-30  Jim Meyering  <meyering@ascend.com>
71020
71021         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71022
71023         * m4/jm-mktime.m4: Make this a wrapper around the official
71024         AM_FUNC_MKTIME rather than my private copy, now that the official one
71025         is up to date.
71026         * m4/mktime.m4: Remove file.
71027
71028         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71029         * m4/uptime.m4: Likewise.
71030         * m4/uintmax_t.m4: Likewise.
71031
71032 1999-01-28  Jim Meyering  <meyering@ascend.com>
71033
71034         * m4/jm-macros.m4: Use jm_AFS.
71035         * m4/afs.m4: New file (from fileutils' configure.in).
71036
71037         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71038         * m4/chown.m4: Likewise.
71039         * m4/d-ino.m4: Likewise.
71040         * m4/d-type.m4: Likewise.
71041         * m4/fnmatch.m4: Likewise.
71042         * m4/getgroups.m4: Likewise.
71043         * m4/gettext.m4: Likewise.
71044         * m4/jm-mktime.m4: Likewise.
71045         * m4/jm-winsz2.m4: Likewise.
71046         * m4/lcmessage.m4: Likewise.
71047         * m4/ls-mntd-fs.m4: Likewise.
71048         * m4/malloc.m4: Likewise.
71049         * m4/memcmp.m4: Likewise.
71050         * m4/putenv.m4: Likewise.
71051         * m4/realloc.m4: Likewise.
71052         * m4/st_mtim.m4: Likewise.
71053         * m4/strftime.m4: Likewise.
71054
71055 1999-01-16  Jim Meyering  <meyering@ascend.com>
71056
71057         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71058         (ARGMATCH_DIE_DECL): Define.
71059
71060 1999-01-12  Jim Meyering  <meyering@ascend.com>
71061
71062         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71063         Reported by Lars Hecking.
71064
71065 1999-01-10  Jim Meyering  <meyering@ascend.com>
71066
71067         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71068         gross kludge.
71069         * m4/inttypes_h.m4: Likewise.
71070         * m4/lstat.m4: Likewise.
71071         * m4/malloc.m4: Likewise.
71072         * m4/readdir.m4: Likewise.
71073         * m4/realloc.m4: Likewise.
71074         * m4/st_dm_mode.m4: Likewise.
71075         * m4/stat.m4: Likewise.
71076         * m4/utimbuf.m4: Likewise.
71077         * m4/utimes.m4: Likewise.
71078
71079         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71080         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71081         comments in config.h.in are meaningful.
71082
71083         * m4/jm-macros.m4: Require autoconf-2.13 here.
71084
71085         * m4/regex.m4: By default, don't use the included regex.c on systems
71086         with glibc 2.  Suggestion from Uli Drepper.
71087
71088 1999-01-02  Jim Meyering  <meyering@ascend.com>
71089
71090         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71091
71092 1998-12-18  Jim Meyering  <meyering@ascend.com>
71093
71094         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71095         Based on a suggestion from Lars Hecking.
71096
71097 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71098
71099         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71100
71101 1998-11-16  Jim Meyering  <meyering@ascend.com>
71102
71103         * m4/lfs.m4: Double-quote the `uname...` expression.
71104
71105 1998-11-14  Jim Meyering  <meyering@ascend.com>
71106
71107         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71108         * m4/stat.m4: Likewise.
71109
71110 1998-11-03  Jim Meyering  <meyering@ascend.com>
71111
71112         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71113         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71114
71115 1998-10-18  Jim Meyering  <meyering@ascend.com>
71116
71117         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71118
71119 1998-10-17  Jim Meyering  <meyering@ascend.com>
71120
71121         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71122         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71123         calls for those previously hard-coded headers.  Instead, take a new
71124         parameter.
71125         (jm_CHECK_DECLARATIONS): Reflect interface change.
71126         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71127         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71128
71129         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71130
71131 1998-10-14  Jim Meyering  <meyering@ascend.com>
71132
71133         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71134         instead of "TZ=America/Vancouver".  From Paul Eggert.
71135
71136 1998-10-11  Jim Meyering  <meyering@ascend.com>
71137
71138         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71139         This adds a test for a recently added compatibility fix for mktime.c.
71140         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71141
71142 1998-09-27  Jim Meyering  <meyering@ascend.com>
71143
71144         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71145
71146         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71147         ../configure.in, including a change from Gordon Matzigkeit to allow
71148         cross-compiling for the Hurd.
71149
71150         * m4/glibc.m4: New file/macro to test for the GNU C Library
71151         versions 1 and 2.  From Gordon Matzigkeit.
71152         Indent.
71153
71154 1998-09-21  Jim Meyering  <meyering@ascend.com>
71155
71156         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71157
71158 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71159
71160         Port nanosecond-resolution times to UnixWare 2.1.2 and
71161         pedantic Solaris 2.6.
71162
71163         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71164         AC_STRUCT_ST_MTIM.
71165         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71166         Generate name of ns member, instead of just 1 or undef.
71167         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71168
71169 1998-08-15  Jim Meyering  <meyering@ascend.com>
71170
71171         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71172         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71173         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71174         instead of jm_TYPE_SSIZE_T.
71175
71176 1998-08-12  Jim Meyering  <meyering@ascend.com>
71177
71178         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71179
71180 1998-08-02  Jim Meyering  <meyering@ascend.com>
71181
71182         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71183         in acconfig.h manually.
71184
71185 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71186
71187         * m4/st_mtim.m4: New file.
71188
71189 1998-07-28  Jim Meyering  <meyering@ascend.com>
71190
71191         * m4/utimes.m4: Undef stat.
71192
71193 1998-07-25  Jim Meyering  <meyering@ascend.com>
71194
71195         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71196         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71197
71198 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71199
71200         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71201         uid and gid actually remain unchanged.
71202
71203 1998-07-07  Jim Meyering  <meyering@ascend.com>
71204
71205         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71206
71207 1998-07-04  Jim Meyering  <meyering@ascend.com>
71208
71209         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71210         to prove that this macro can be used in packages without regex.c.
71211
71212 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71213
71214         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71215         is to be used.
71216
71217 1998-07-03  Jim Meyering  <meyering@ascend.com>
71218
71219         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71220
71221         * m4/gettext.m4: New file -- from gettext-0.10.35.
71222         * m4/lcmessage.m4: Likewise.
71223         * m4/progtest.m4: Likewise.
71224
71225         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71226         * m4/jm-macros.m4: Require the new macro.
71227
71228 1998-06-29  Jim Meyering  <meyering@ascend.com>
71229
71230         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71231         for the definition of NGROUPS (used in a system header included
71232         by sys/mount.h).
71233
71234 1998-06-28  Jim Meyering  <meyering@ascend.com>
71235
71236         * m4/ls-mntd-fs.m4: New file.
71237         * m4/fstypename.m4: New file.
71238
71239         * m4/jm-macros.m4: Require the new macro.
71240         * m4/jm-glibc-io.m4: New file.
71241
71242 1998-05-19  Jim Meyering  <meyering@ascend.com>
71243
71244         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
71245         * m4/lchown.m4: New file.
71246
71247         * m4/Makefile.am.in: New file.
71248         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
71249
71250 1998-05-14  Jim Meyering  <meyering@ascend.com>
71251
71252         * m4/Makefile.am (EXTRA_DIST): Add them.
71253         * m4/jm-macros.m4: New file.
71254         * m4/utimbuf.m4: New file.
71255
71256 1998-05-12  Jim Meyering  <meyering@ascend.com>
71257
71258         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
71259
71260 1998-05-11  Jim Meyering  <meyering@ascend.com>
71261
71262         * m4/isc-posix.m4: New file.
71263
71264 1998-05-10  Jim Meyering  <meyering@ascend.com>
71265
71266         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
71267
71268 1998-05-09  Jim Meyering  <meyering@ascend.com>
71269
71270         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
71271         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
71272         with automake.
71273
71274         * m4/ssize_t.m4: New file.
71275         * m4/mktime.m4: Remove file -- the new automake has this now.
71276
71277 1998-04-26  Jim Meyering  <meyering@ascend.com>
71278
71279         * m4/assert.m4: New file.
71280         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
71281
71282 1998-04-05  Jim Meyering  <meyering@ascend.com>
71283
71284         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71285         (jm_PREREQ): Use it here.
71286
71287 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71288
71289         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71290         in acconfig.h.
71291
71292 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71293
71294         * m4/prereq.m4: New file.
71295         * m4/error.m4: New file.
71296         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71297
71298 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71299
71300         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71301         cache-check for the same variable -- that defeated the purpose of
71302         the test; the test program was never run.  This was a problem only
71303         on systems with losing getline functions -- HP-UX 10.20 is one.
71304         Reported by Bjorn Helgaas.
71305
71306 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71307
71308         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71309
71310 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71311
71312         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71313
71314         * m4/const.m4: New file.  Use an initializer in this declaration
71315         typedef int charset[2]; const charset x;
71316         Reported by Bob Glickstein.
71317
71318 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71319
71320         * m4/chown.m4: Fix reversed types on -1 args to chown.
71321         From Kaveh Ghazi.
71322
71323 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71324
71325         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71326         Add lseek and memchr.
71327
71328         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71329         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71330         have a 20-character limit on names.
71331
71332 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71333
71334         * m4/inttypes_h.m4: New file.
71335         * m4/uintmax_t.m4: New file.
71336         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71337
71338
71339         -----
71340
71341         Local Variables:
71342         coding: utf-8
71343         End:
71344
71345         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71346
71347         Copying and distribution of this file, with or without
71348         modification, are permitted provided the copyright notice
71349         and this notice are preserved.